window.EmberENV=function(e,t){for(var r in t)e[r]=t[r]
return e}(window.EmberENV||{},{EXTEND_PROTOTYPES:!1,FEATURES:{},_APPLICATION_TEMPLATE_WRAPPER:!1,_DEFAULT_ASYNC_OBSERVERS:!0,_JQUERY_INTEGRATION:!1,_TEMPLATE_ONLY_GLIMMER_COMPONENTS:!0})
var runningTests=!1,loader,define,requireModule,require,requirejs
if(
/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */
function(e,t){"use strict"
"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document")
return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict"
var r=[],i=Object.getPrototypeOf,n=r.slice,s=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},a=r.push,o=r.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,b={type:!0,src:!0,nonce:!0,noModule:!0}
function y(e,t,r){var i,n,s=(r=r||g).createElement("script")
if(s.text=e,t)for(i in b)(n=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,n)
r.head.appendChild(s).parentNode.removeChild(s)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var w="3.7.1",x=/HTML$/i,_=function(e,t){return new _.fn.init(e,t)}
function S(e){var t=!!e&&"length"in e&&e.length,r=v(e)
return!f(e)&&!m(e)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}_.fn=_.prototype={jquery:w,constructor:_,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e)
return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,r){return e.call(t,r,t)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,r=+e+(e<0?t:0)
return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:r.sort,splice:r.splice},_.extend=_.fn.extend=function(){var e,t,r,i,n,s,a=arguments[0]||{},o=1,l=arguments.length,c=!1
for("boolean"==typeof a&&(c=a,a=arguments[o]||{},o++),"object"==typeof a||f(a)||(a={}),o===l&&(a=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(_.isPlainObject(i)||(n=Array.isArray(i)))?(r=a[t],s=n&&!Array.isArray(r)?[]:n||_.isPlainObject(r)?r:{},n=!1,a[t]=_.extend(c,s,i)):void 0!==i&&(a[t]=i))
return a},_.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r
return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(r=u.call(t,"constructor")&&t.constructor)&&d.call(r)===h)},isEmptyObject:function(e){var t
for(t in e)return!1
return!0},globalEval:function(e,t,r){y(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,i=0
if(S(e))for(r=e.length;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break
return e},text:function(e){var t,r="",i=0,n=e.nodeType
if(!n)for(;t=e[i++];)r+=_.text(t)
return 1===n||11===n?e.textContent:9===n?e.documentElement.textContent:3===n||4===n?e.nodeValue:r},makeArray:function(e,t){var r=t||[]
return null!=e&&(S(Object(e))?_.merge(r,"string"==typeof e?[e]:e):a.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:o.call(t,e,r)},isXMLDoc:function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement
return!x.test(t||r&&r.nodeName||"HTML")},merge:function(e,t){for(var r=+t.length,i=0,n=e.length;i<r;i++)e[n++]=t[i]
return e.length=n,e},grep:function(e,t,r){for(var i=[],n=0,s=e.length,a=!r;n<s;n++)!t(e[n],n)!==a&&i.push(e[n])
return i},map:function(e,t,r){var i,n,a=0,o=[]
if(S(e))for(i=e.length;a<i;a++)null!=(n=t(e[a],a,r))&&o.push(n)
else for(a in e)null!=(n=t(e[a],a,r))&&o.push(n)
return s(o)},guid:1,support:p}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=r[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}))
var A=r.pop,C=r.sort,P=r.splice,O="[\\x20\\t\\r\\n\\f]",E=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g")
_.contains=function(e,t){var r=t&&t.parentNode
return e===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}
var T=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g
function M(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}_.escapeSelector=function(e){return(e+"").replace(T,M)}
var I=g,F=a;(function(){var t,i,s,a,l,c,d,h,f,m,g=F,b=_.expando,y=0,v=0,w=ee(),x=ee(),S=ee(),T=ee(),M=function(e,t){return e===t&&(l=!0),0},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+O+"*("+R+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+O+"*\\]",j=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",L=new RegExp(O+"+","g"),B=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp(O+"|>"),U=new RegExp(j),q=new RegExp("^"+R+"$"),H={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var r="0x"+e.slice(1)-65536
return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},J=function(){le()},Q=he((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"})
try{g.apply(r=n.call(I.childNodes),I.childNodes),r[I.childNodes.length].nodeType}catch(ve){g={apply:function(e,t){F.apply(e,n.call(t))},call:function(e){F.apply(e,n.call(arguments,1))}}}function Z(e,t,r,i){var n,s,a,o,l,u,d,m=t&&t.ownerDocument,y=t?t.nodeType:9
if(r=r||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return r
if(!i&&(le(t),t=t||c,h)){if(11!==y&&(l=W.exec(e)))if(n=l[1]){if(9===y){if(!(a=t.getElementById(n)))return r
if(a.id===n)return g.call(r,a),r}else if(m&&(a=m.getElementById(n))&&Z.contains(t,a)&&a.id===n)return g.call(r,a),r}else{if(l[2])return g.apply(r,t.getElementsByTagName(e)),r
if((n=l[3])&&t.getElementsByClassName)return g.apply(r,t.getElementsByClassName(n)),r}if(!(T[e+" "]||f&&f.test(e))){if(d=e,m=t,1===y&&(z.test(e)||$.test(e))){for((m=X.test(e)&&oe(t.parentNode)||t)==t&&p.scope||((o=t.getAttribute("id"))?o=_.escapeSelector(o):t.setAttribute("id",o=b)),s=(u=ue(e)).length;s--;)u[s]=(o?"#"+o:":scope")+" "+de(u[s])
d=u.join(",")}try{return g.apply(r,m.querySelectorAll(d)),r}catch(v){T(e,!0)}finally{o===b&&t.removeAttribute("id")}}}return ye(e.replace(E,"$1"),t,r,i)}function ee(){var e=[]
return function t(r,n){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=n}}function te(e){return e[b]=!0,e}function re(e){var t=c.createElement("fieldset")
try{return!!e(t)}catch(ve){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return k(t,"input")&&t.type===e}}function ne(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function se(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(r,i){for(var n,s=e([],r.length,t),a=s.length;a--;)r[n=s[a]]&&(r[n]=!(i[n]=r[n]))}))}))}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,r=e?e.ownerDocument||e:I
return r!=c&&9===r.nodeType&&r.documentElement?(d=(c=r).documentElement,h=!_.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&I!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",J),p.getById=re((function(e){return d.appendChild(e).id=_.expando,!c.getElementsByName||!c.getElementsByName(_.expando).length})),p.disconnectedMatch=re((function(e){return m.call(e,"*")})),p.scope=re((function(){return c.querySelectorAll(":scope")})),p.cssHas=re((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(ve){return!0}})),p.getById?(i.filter.ID=function(e){var t=e.replace(K,Y)
return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var r=t.getElementById(e)
return r?[r]:[]}}):(i.filter.ID=function(e){var t=e.replace(K,Y)
return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id")
return r&&r.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var r,i,n,s=t.getElementById(e)
if(s){if((r=s.getAttributeNode("id"))&&r.value===e)return[s]
for(n=t.getElementsByName(e),i=0;s=n[i++];)if((r=s.getAttributeNode("id"))&&r.value===e)return[s]}return[]}}),i.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},i.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},f=[],re((function(e){var t
d.appendChild(e).innerHTML="<a id='"+b+"' href='' disabled='disabled'></a><select id='"+b+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+b+"-]").length||f.push("~="),e.querySelectorAll("a#"+b+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),M=function(e,t){if(e===t)return l=!0,0
var r=!e.compareDocumentPosition-!t.compareDocumentPosition
return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===r?e===c||e.ownerDocument==I&&Z.contains(I,e)?-1:t===c||t.ownerDocument==I&&Z.contains(I,t)?1:a?o.call(a,e)-o.call(a,t):0:4&r?-1:1)},c):c}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),h&&!T[t+" "]&&(!f||!f.test(t)))try{var r=m.call(e,t)
if(r||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(ve){T(t,!0)}return Z(t,c,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),_.contains(e,t)},Z.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e)
var r=i.attrHandle[t.toLowerCase()],n=r&&u.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):void 0
return void 0!==n?n:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,r=[],i=0,s=0
if(l=!p.sortStable,a=!p.sortStable&&n.call(e,0),C.call(e,M),l){for(;t=e[s++];)t===e[s]&&(i=r.push(s))
for(;i--;)P.call(e,r[i],1)}return a=null,e},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(n.apply(this)))},i=_.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(K,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2]
return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&U.test(r)&&(t=ue(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,Y).toLowerCase()
return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=w[e+" "]
return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(i){var n=Z.attr(i,e)
return null==n?"!="===t:!t||(n+="","="===t?n===r:"!="===t?n!==r:"^="===t?r&&0===n.indexOf(r):"*="===t?r&&n.indexOf(r)>-1:"$="===t?r&&n.slice(-r.length)===r:"~="===t?(" "+n.replace(L," ")+" ").indexOf(r)>-1:"|="===t&&(n===r||n.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,i,n){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t
return 1===i&&0===n?function(e){return!!e.parentNode}:function(t,r,l){var c,u,d,h,p,f=s!==a?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),v=!l&&!o,w=!1
if(m){if(s){for(;f;){for(d=t;d=d[f];)if(o?k(d,g):1===d.nodeType)return!1
p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&v){for(w=(h=(c=(u=m[b]||(m[b]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===t){u[e]=[y,h,w]
break}}else if(v&&(w=h=(c=(u=t[b]||(t[b]={}))[e]||[])[0]===y&&c[1]),!1===w)for(;(d=++h&&d&&d[f]||(w=h=0)||p.pop())&&(!(o?k(d,g):1===d.nodeType)||!++w||(v&&((u=d[b]||(d[b]={}))[e]=[y,w]),d!==t)););return(w-=n)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,t){var r,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e)
return n[b]?n(t):n.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,r){for(var i,s=n(e,t),a=s.length;a--;)e[i=o.call(e,s[a])]=!(r[i]=s[a])})):function(e){return n(e,0,r)}):n}},pseudos:{not:te((function(e){var t=[],r=[],i=be(e.replace(E,"$1"))
return i[b]?te((function(e,t,r,n){for(var s,a=i(e,null,n,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))})):function(e,n,s){return t[0]=e,i(t,null,s,r),t[0]=null,!r.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(K,Y),function(t){return(t.textContent||_.text(t)).indexOf(e)>-1}})),lang:te((function(e){return q.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(K,Y).toLowerCase(),function(t){var r
do{if(r=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType)
return!1}})),target:function(t){var r=e.location&&e.location.hash
return r&&r.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1
return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t
return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,r){return[r<0?r+t:r]})),even:ae((function(e,t){for(var r=0;r<t;r+=2)e.push(r)
return e})),odd:ae((function(e,t){for(var r=1;r<t;r+=2)e.push(r)
return e})),lt:ae((function(e,t,r){var i
for(i=r<0?r+t:r>t?t:r;--i>=0;)e.push(i)
return e})),gt:ae((function(e,t,r){for(var i=r<0?r+t:r;++i<t;)e.push(i)
return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ie(t)
for(t in{submit:!0,reset:!0})i.pseudos[t]=ne(t)
function ce(){}function ue(e,t){var r,n,s,a,o,l,c,u=x[e+" "]
if(u)return t?0:u.slice(0)
for(o=e,l=[],c=i.preFilter;o;){for(a in r&&!(n=B.exec(o))||(n&&(o=o.slice(n[0].length)||o),l.push(s=[])),r=!1,(n=$.exec(o))&&(r=n.shift(),s.push({value:r,type:n[0].replace(E," ")}),o=o.slice(r.length)),i.filter)!(n=H[a].exec(o))||c[a]&&!(n=c[a](n))||(r=n.shift(),s.push({value:r,type:a,matches:n}),o=o.slice(r.length))
if(!r)break}return t?o.length:o?Z.error(e):x(e,l).slice(0)}function de(e){for(var t=0,r=e.length,i="";t<r;t++)i+=e[t].value
return i}function he(e,t,r){var i=t.dir,n=t.next,s=n||i,a=r&&"parentNode"===s,o=v++
return t.first?function(t,r,n){for(;t=t[i];)if(1===t.nodeType||a)return e(t,r,n)
return!1}:function(t,r,l){var c,u,d=[y,o]
if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,r,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=t[b]||(t[b]={}),n&&k(t,n))t=t[i]||t
else{if((c=u[s])&&c[0]===y&&c[1]===o)return d[2]=c[2]
if(u[s]=d,d[2]=e(t,r,l))return!0}return!1}}function pe(e){return e.length>1?function(t,r,i){for(var n=e.length;n--;)if(!e[n](t,r,i))return!1
return!0}:e[0]}function fe(e,t,r,i,n){for(var s,a=[],o=0,l=e.length,c=null!=t;o<l;o++)(s=e[o])&&(r&&!r(s,i,n)||(a.push(s),c&&t.push(o)))
return a}function me(e,t,r,i,n,s){return i&&!i[b]&&(i=me(i)),n&&!n[b]&&(n=me(n,s)),te((function(s,a,l,c){var u,d,h,p,f=[],m=[],b=a.length,y=s||function(e,t,r){for(var i=0,n=t.length;i<n;i++)Z(e,t[i],r)
return r}(t||"*",l.nodeType?[l]:l,[]),v=!e||!s&&t?y:fe(y,f,e,l,c)
if(r?r(v,p=n||(s?e:b||i)?[]:a,l,c):p=v,i)for(u=fe(p,m),i(u,[],l,c),d=u.length;d--;)(h=u[d])&&(p[m[d]]=!(v[m[d]]=h))
if(s){if(n||e){if(n){for(u=[],d=p.length;d--;)(h=p[d])&&u.push(v[d]=h)
n(null,p=[],u,c)}for(d=p.length;d--;)(h=p[d])&&(u=n?o.call(s,h):f[d])>-1&&(s[u]=!(a[u]=h))}}else p=fe(p===a?p.splice(b,p.length):p),n?n(null,a,p,c):g.apply(a,p)}))}function ge(e){for(var t,r,n,a=e.length,l=i.relative[e[0].type],c=l||i.relative[" "],u=l?1:0,d=he((function(e){return e===t}),c,!0),h=he((function(e){return o.call(t,e)>-1}),c,!0),p=[function(e,r,i){var n=!l&&(i||r!=s)||((t=r).nodeType?d(e,r,i):h(e,r,i))
return t=null,n}];u<a;u++)if(r=i.relative[e[u].type])p=[he(pe(p),r)]
else{if((r=i.filter[e[u].type].apply(null,e[u].matches))[b]){for(n=++u;n<a&&!i.relative[e[n].type];n++);return me(u>1&&pe(p),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(E,"$1"),r,u<n&&ge(e.slice(u,n)),n<a&&ge(e=e.slice(n)),n<a&&de(e))}p.push(r)}return pe(p)}function be(e,t){var r,n=[],a=[],o=S[e+" "]
if(!o){for(t||(t=ue(e)),r=t.length;r--;)(o=ge(t[r]))[b]?n.push(o):a.push(o)
o=S(e,function(e,t){var r=t.length>0,n=e.length>0,a=function(a,o,l,u,d){var p,f,m,b=0,v="0",w=a&&[],x=[],S=s,k=a||n&&i.find.TAG("*",d),C=y+=null==S?1:Math.random()||.1,P=k.length
for(d&&(s=o==c||o||d);v!==P&&null!=(p=k[v]);v++){if(n&&p){for(f=0,o||p.ownerDocument==c||(le(p),l=!h);m=e[f++];)if(m(p,o||c,l)){g.call(u,p)
break}d&&(y=C)}r&&((p=!m&&p)&&b--,a&&w.push(p))}if(b+=v,r&&v!==b){for(f=0;m=t[f++];)m(w,x,o,l)
if(a){if(b>0)for(;v--;)w[v]||x[v]||(x[v]=A.call(u))
x=fe(x)}g.apply(u,x),d&&!a&&x.length>0&&b+t.length>1&&_.uniqueSort(u)}return d&&(y=C,s=S),w}
return r?te(a):a}(a,n)),o.selector=e}return o}function ye(e,t,r,n){var s,a,o,l,c,u="function"==typeof e&&e,d=!n&&ue(e=u.selector||e)
if(r=r||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===t.nodeType&&h&&i.relative[a[1].type]){if(!(t=(i.find.ID(o.matches[0].replace(K,Y),t)||[])[0]))return r
u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(s=H.needsContext.test(e)?0:a.length;s--&&(o=a[s],!i.relative[l=o.type]);)if((c=i.find[l])&&(n=c(o.matches[0].replace(K,Y),X.test(a[0].type)&&oe(t.parentNode)||t))){if(a.splice(s,1),!(e=n.length&&de(a)))return g.apply(r,n),r
break}}return(u||be(e,d))(n,t,!h,r,!t||X.test(e)&&oe(t.parentNode)||t),r}ce.prototype=i.filters=i.pseudos,i.setFilters=new ce,p.sortStable=b.split("").sort(M).join("")===b,le(),p.sortDetached=re((function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),_.find=Z,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Z.compile=be,Z.select=ye,Z.setDocument=le,Z.tokenize=ue,Z.escape=_.escapeSelector,Z.getText=_.text,Z.isXML=_.isXMLDoc,Z.selectors=_.expr,Z.support=_.support,Z.uniqueSort=_.uniqueSort})()
var N=function(e,t,r){for(var i=[],n=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&_(e).is(r))break
i.push(e)}return i},R=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e)
return r},D=_.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i
function L(e,t,r){return f(t)?_.grep(e,(function(e,i){return!!t.call(e,i,e)!==r})):t.nodeType?_.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?_.grep(e,(function(e){return o.call(t,e)>-1!==r})):_.filter(t,e,r)}_.filter=function(e,t,r){var i=t[0]
return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?_.find.matchesSelector(i,e)?[i]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,r,i=this.length,n=this
if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<i;t++)if(_.contains(n[t],this))return!0})))
for(r=this.pushStack([]),t=0;t<i;t++)_.find(e,n[t],r)
return i>1?_.uniqueSort(r):r},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&D.test(e)?_(e):e||[],!1).length}})
var B,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,r){var i,n
if(!e)return this
if(r=r||B,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e)
if(i[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),j.test(i[1])&&_.isPlainObject(t))for(i in t)f(this[i])?this[i](t[i]):this.attr(i,t[i])
return this}return(n=g.getElementById(i[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==r.ready?r.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,B=_(g)
var z=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0}
function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),r=t.length
return this.filter((function(){for(var e=0;e<r;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var r,i=0,n=this.length,s=[],a="string"!=typeof e&&_(e)
if(!D.test(e))for(;i<n;i++)for(r=this[i];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:1===r.nodeType&&_.find.matchesSelector(r,e))){s.push(r)
break}return this.pushStack(s.length>1?_.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?o.call(_(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode
return t&&11!==t.nodeType?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,r){return N(e,"parentNode",r)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,r){return N(e,"nextSibling",r)},prevUntil:function(e,t,r){return N(e,"previousSibling",r)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(r,i){var n=_.map(this,t,r)
return"Until"!==e.slice(-5)&&(i=r),i&&"string"==typeof i&&(n=_.filter(i,n)),this.length>1&&(U[e]||_.uniqueSort(n),z.test(e)&&n.reverse()),this.pushStack(n)}}))
var H=/[^\x20\t\r\n\f]+/g
function V(e){return e}function G(e){throw e}function W(e,t,r,i){var n
try{e&&f(n=e.promise)?n.call(e).done(t).fail(r):e&&f(n=e.then)?n.call(e,t,r):t.apply(void 0,[e].slice(i))}catch(e){r.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={}
return _.each(e.match(H)||[],(function(e,r){t[r]=!0})),t}(e):_.extend({},e)
var t,r,i,n,s=[],a=[],o=-1,l=function(){for(n=n||e.once,i=t=!0;a.length;o=-1)for(r=a.shift();++o<s.length;)!1===s[o].apply(r[0],r[1])&&e.stopOnFalse&&(o=s.length,r=!1)
e.memory||(r=!1),t=!1,n&&(s=r?[]:"")},c={add:function(){return s&&(r&&!t&&(o=s.length-1,a.push(r)),function t(r){_.each(r,(function(r,i){f(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==v(i)&&t(i)}))}(arguments),r&&!t&&l()),this},remove:function(){return _.each(arguments,(function(e,t){for(var r;(r=_.inArray(t,s,r))>-1;)s.splice(r,1),r<=o&&o--})),this},has:function(e){return e?_.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return n=a=[],s=r="",this},disabled:function(){return!s},lock:function(){return n=a=[],r||t||(s=r=""),this},locked:function(){return!!n},fireWith:function(e,r){return n||(r=[e,(r=r||[]).slice?r.slice():r],a.push(r),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}}
return c},_.extend({Deferred:function(t){var r=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments
return _.Deferred((function(t){_.each(r,(function(r,i){var n=f(e[i[4]])&&e[i[4]]
s[i[1]]((function(){var e=n&&n.apply(this,arguments)
e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,n){var s=0
function a(t,r,i,n){return function(){var o=this,l=arguments,c=function(){var e,c
if(!(t<s)){if((e=i.apply(o,l))===r.promise())throw new TypeError("Thenable self-resolution")
c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?n?c.call(e,a(s,r,V,n),a(s,r,G,n)):(s++,c.call(e,a(s,r,V,n),a(s,r,G,n),a(s,r,V,r.notifyWith))):(i!==V&&(o=void 0,l=[e]),(n||r.resolveWith)(o,l))}},u=n?c:function(){try{c()}catch(e){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(e,u.error),t+1>=s&&(i!==G&&(o=void 0,l=[e]),r.rejectWith(o,l))}}
t?u():(_.Deferred.getErrorHook?u.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(u.error=_.Deferred.getStackHook()),e.setTimeout(u))}}return _.Deferred((function(e){r[0][3].add(a(0,e,f(n)?n:V,e.notifyWith)),r[1][3].add(a(0,e,f(t)?t:V)),r[2][3].add(a(0,e,f(i)?i:G))})).promise()},promise:function(e){return null!=e?_.extend(e,n):n}},s={}
return _.each(r,(function(e,t){var a=t[2],o=t[5]
n[t[1]]=a.add,o&&a.add((function(){i=o}),r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),a.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=a.fireWith})),n.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,r=t,i=Array(r),s=n.call(arguments),a=_.Deferred(),o=function(e){return function(r){i[e]=this,s[e]=arguments.length>1?n.call(arguments):r,--t||a.resolveWith(i,s)}}
if(t<=1&&(W(e,a.done(o(r)).resolve,a.reject,!t),"pending"===a.state()||f(s[r]&&s[r].then)))return a.then()
for(;r--;)W(s[r],o(r),a.reject)
return a.promise()}})
var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/
_.Deferred.exceptionHook=function(t,r){e.console&&e.console.warn&&t&&X.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,r)},_.readyException=function(t){e.setTimeout((function(){throw t}))}
var K=_.Deferred()
function Y(){g.removeEventListener("DOMContentLoaded",Y),e.removeEventListener("load",Y),_.ready()}_.fn.ready=function(e){return K.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||K.resolveWith(g,[_]))}}),_.ready.then=K.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(_.ready):(g.addEventListener("DOMContentLoaded",Y),e.addEventListener("load",Y))
var J=function(e,t,r,i,n,s,a){var o=0,l=e.length,c=null==r
if("object"===v(r))for(o in n=!0,r)J(e,t,o,r[o],!0,s,a)
else if(void 0!==i&&(n=!0,f(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,r){return c.call(_(e),r)})),t))for(;o<l;o++)t(e[o],r,a?i:i.call(e[o],o,t(e[o],r)))
return n?e:c?t.call(e):l?t(e[0],r):s},Q=/^-ms-/,Z=/-([a-z])/g
function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(Q,"ms-").replace(Z,ee)}var re=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}
function ie(){this.expando=_.expando+ie.uid++}ie.uid=1,ie.prototype={cache:function(e){var t=e[this.expando]
return t||(t={},re(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var i,n=this.cache(e)
if("string"==typeof t)n[te(t)]=r
else for(i in t)n[te(i)]=t[i]
return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,i=e[this.expando]
if(void 0!==i){if(void 0!==t){r=(t=Array.isArray(t)?t.map(te):(t=te(t))in i?[t]:t.match(H)||[]).length
for(;r--;)delete i[t[r]]}(void 0===t||_.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando]
return void 0!==t&&!_.isEmptyObject(t)}}
var ne=new ie,se=new ie,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g
function le(e,t,r){var i
if(void 0===r&&1===e.nodeType)if(i="data-"+t.replace(oe,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(i))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ae.test(e)?JSON.parse(e):e)}(r)}catch(n){}se.set(e,t,r)}else r=void 0
return r}_.extend({hasData:function(e){return se.hasData(e)||ne.hasData(e)},data:function(e,t,r){return se.access(e,t,r)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,r){return ne.access(e,t,r)},_removeData:function(e,t){ne.remove(e,t)}}),_.fn.extend({data:function(e,t){var r,i,n,s=this[0],a=s&&s.attributes
if(void 0===e){if(this.length&&(n=se.get(s),1===s.nodeType&&!ne.get(s,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&0===(i=a[r].name).indexOf("data-")&&(i=te(i.slice(5)),le(s,i,n[i]))
ne.set(s,"hasDataAttrs",!0)}return n}return"object"==typeof e?this.each((function(){se.set(this,e)})):J(this,(function(t){var r
if(s&&void 0===t)return void 0!==(r=se.get(s,e))||void 0!==(r=le(s,e))?r:void 0
this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),_.extend({queue:function(e,t,r){var i
if(e)return t=(t||"fx")+"queue",i=ne.get(e,t),r&&(!i||Array.isArray(r)?i=ne.access(e,t,_.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,t){t=t||"fx"
var r=_.queue(e,t),i=r.length,n=r.shift(),s=_._queueHooks(e,t)
"inprogress"===n&&(n=r.shift(),i--),n&&("fx"===t&&r.unshift("inprogress"),delete s.stop,n.call(e,(function(){_.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks"
return ne.get(e,r)||ne.access(e,r,{empty:_.Callbacks("once memory").add((function(){ne.remove(e,[t+"queue",r])}))})}}),_.fn.extend({queue:function(e,t){var r=2
return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?_.queue(this[0],e):void 0===t?this:this.each((function(){var r=_.queue(this,e,t)
_._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,i=1,n=_.Deferred(),s=this,a=this.length,o=function(){--i||n.resolveWith(s,[s])}
for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=ne.get(s[a],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(o))
return o(),n.promise(t)}})
var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],he=g.documentElement,pe=function(e){return _.contains(e.ownerDocument,e)},fe={composed:!0}
he.getRootNode&&(pe=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument})
var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe(e)&&"none"===_.css(e,"display")}
function ge(e,t,r,i){var n,s,a=20,o=i?function(){return i.cur()}:function(){return _.css(e,t,"")},l=o(),c=r&&r[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+l)&&ue.exec(_.css(e,t))
if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)_.style(e,t,u+c),(1-s)*(1-(s=o()/l||.5))<=0&&(a=0),u/=s
u*=2,_.style(e,t,u+c),r=r||[]}return r&&(u=+u||+l||0,n=r[1]?u+(r[1]+1)*r[2]:+r[2],i&&(i.unit=c,i.start=u,i.end=n)),n}var be={}
function ye(e){var t,r=e.ownerDocument,i=e.nodeName,n=be[i]
return n||(t=r.body.appendChild(r.createElement(i)),n=_.css(t,"display"),t.parentNode.removeChild(t),"none"===n&&(n="block"),be[i]=n,n)}function ve(e,t){for(var r,i,n=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(r=i.style.display,t?("none"===r&&(n[s]=ne.get(i,"display")||null,n[s]||(i.style.display="")),""===i.style.display&&me(i)&&(n[s]=ye(i))):"none"!==r&&(n[s]="none",ne.set(i,"display",r)))
for(s=0;s<a;s++)null!=n[s]&&(e[s].style.display=n[s])
return e}_.fn.extend({show:function(){return ve(this,!0)},hide:function(){return ve(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){me(this)?_(this).show():_(this).hide()}))}})
var we,xe,_e=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i
we=g.createDocumentFragment().appendChild(g.createElement("div")),(xe=g.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),we.appendChild(xe),p.checkClone=we.cloneNode(!0).cloneNode(!0).lastChild.checked,we.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!we.cloneNode(!0).lastChild.defaultValue,we.innerHTML="<option></option>",p.option=!!we.lastChild
var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]}
function Ce(e,t){var r
return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?_.merge([e],r):r}function Pe(e,t){for(var r=0,i=e.length;r<i;r++)ne.set(e[r],"globalEval",!t||ne.get(t[r],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,p.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"])
var Oe=/<|&#?\w+;/
function Ee(e,t,r,i,n){for(var s,a,o,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((s=e[p])||0===s)if("object"===v(s))_.merge(h,s.nodeType?[s]:s)
else if(Oe.test(s)){for(a=a||d.appendChild(t.createElement("div")),o=(Se.exec(s)||["",""])[1].toLowerCase(),l=Ae[o]||Ae._default,a.innerHTML=l[1]+_.htmlPrefilter(s)+l[2],u=l[0];u--;)a=a.lastChild
_.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(s))
for(d.textContent="",p=0;s=h[p++];)if(i&&_.inArray(s,i)>-1)n&&n.push(s)
else if(c=pe(s),a=Ce(d.appendChild(s),"script"),c&&Pe(a),r)for(u=0;s=a[u++];)ke.test(s.type||"")&&r.push(s)
return d}var Te=/^([^.]*)(?:\.(.+)|)/
function Me(){return!0}function Ie(){return!1}function Fe(e,t,r,i,n,s){var a,o
if("object"==typeof t){for(o in"string"!=typeof r&&(i=i||r,r=void 0),t)Fe(e,o,r,i,t[o],s)
return e}if(null==i&&null==n?(n=r,i=r=void 0):null==n&&("string"==typeof r?(n=i,i=void 0):(n=i,i=r,r=void 0)),!1===n)n=Ie
else if(!n)return e
return 1===s&&(a=n,n=function(e){return _().off(e),a.apply(this,arguments)},n.guid=a.guid||(a.guid=_.guid++)),e.each((function(){_.event.add(this,t,n,i,r)}))}function Ne(e,t,r){r?(ne.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var r,i=ne.get(this,t)
if(1&e.isTrigger&&this[t]){if(i)(_.event.special[t]||{}).delegateType&&e.stopPropagation()
else if(i=n.call(arguments),ne.set(this,t,i),this[t](),r=ne.get(this,t),ne.set(this,t,!1),i!==r)return e.stopImmediatePropagation(),e.preventDefault(),r}else i&&(ne.set(this,t,_.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ne.get(e,t)&&_.event.add(e,t,Me)}_.event={global:{},add:function(e,t,r,i,n){var s,a,o,l,c,u,d,h,p,f,m,g=ne.get(e)
if(re(e))for(r.handler&&(r=(s=r).handler,n=s.selector),n&&_.find.matchesSelector(he,n),r.guid||(r.guid=_.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)p=m=(o=Te.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p&&(d=_.event.special[p]||{},p=(n?d.delegateType:d.bindType)||p,d=_.event.special[p]||{},u=_.extend({type:p,origType:m,data:i,handler:r,guid:r.guid,selector:n,needsContext:n&&_.expr.match.needsContext.test(n),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=r.guid)),n?h.splice(h.delegateCount++,0,u):h.push(u),_.event.global[p]=!0)},remove:function(e,t,r,i,n){var s,a,o,l,c,u,d,h,p,f,m,g=ne.hasData(e)&&ne.get(e)
if(g&&(l=g.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(p=m=(o=Te.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p){for(d=_.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;s--;)u=h[s],!n&&m!==u.origType||r&&r.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u))
a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||_.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)_.event.remove(e,p+t[c],r,i,!0)
_.isEmptyObject(l)&&ne.remove(e,"handle events")}},dispatch:function(e){var t,r,i,n,s,a,o=new Array(arguments.length),l=_.event.fix(e),c=(ne.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{}
for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t]
if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,c),t=0;(n=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=n.elem,r=0;(s=n.handlers[r++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((_.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,o))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()))
return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var r,i,n,s,a,o=[],l=t.delegateCount,c=e.target
if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],a={},r=0;r<l;r++)void 0===a[n=(i=t[r]).selector+" "]&&(a[n]=i.needsContext?_(n,this).index(c)>-1:_.find(n,this,null,[c]).length),a[n]&&s.push(i)
s.length&&o.push({elem:c,handlers:s})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e
return _e.test(t.type)&&t.click&&k(t,"input")&&Ne(t,"click",!0),!1},trigger:function(e){var t=this||e
return _e.test(t.type)&&t.click&&k(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target
return _e.test(t.type)&&t.click&&k(t,"input")&&ne.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t)
e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent
this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent
this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent
this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){function r(e){if(g.documentMode){var r=ne.get(this,"handle"),i=_.event.fix(e)
i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,r(e),i.target===i.currentTarget&&r(i)}else _.event.simulate(t,e.target,_.event.fix(e))}_.event.special[e]={setup:function(){var i
if(Ne(this,e,!0),!g.documentMode)return!1;(i=ne.get(this,t))||this.addEventListener(t,r),ne.set(this,t,(i||0)+1)},trigger:function(){return Ne(this,e),!0},teardown:function(){var e
if(!g.documentMode)return!1;(e=ne.get(this,t)-1)?ne.set(this,t,e):(this.removeEventListener(t,r),ne.remove(this,t))},_default:function(t){return ne.get(t.target,e)},delegateType:t},_.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,n=g.documentMode?this:i,s=ne.get(n,t)
s||(g.documentMode?this.addEventListener(t,r):i.addEventListener(e,r,!0)),ne.set(n,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,n=g.documentMode?this:i,s=ne.get(n,t)-1
s?ne.set(n,t,s):(g.documentMode?this.removeEventListener(t,r):i.removeEventListener(e,r,!0),ne.remove(n,t))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,i=e.relatedTarget,n=e.handleObj
return i&&(i===this||_.contains(this,i))||(e.type=n.origType,r=n.handler.apply(this,arguments),e.type=t),r}}})),_.fn.extend({on:function(e,t,r,i){return Fe(this,e,t,r,i)},one:function(e,t,r,i){return Fe(this,e,t,r,i,1)},off:function(e,t,r){var i,n
if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,_(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this
if("object"==typeof e){for(n in e)this.off(n,t,e[n])
return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=Ie),this.each((function(){_.event.remove(this,e,r,t)}))}})
var Re=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!\[CDATA\[|\]\]>\s*$/g
function Le(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var r,i,n,s,a,o
if(1===t.nodeType){if(ne.hasData(e)&&(o=ne.get(e).events))for(n in ne.remove(t,"handle events"),o)for(r=0,i=o[n].length;r<i;r++)_.event.add(t,n,o[n][r])
se.hasData(e)&&(s=se.access(e),a=_.extend({},s),se.set(t,a))}}function Ue(e,t){var r=t.nodeName.toLowerCase()
"input"===r&&_e.test(e.type)?t.checked=e.checked:"input"!==r&&"textarea"!==r||(t.defaultValue=e.defaultValue)}function qe(e,t,r,i){t=s(t)
var n,a,o,l,c,u,d=0,h=e.length,m=h-1,g=t[0],b=f(g)
if(b||h>1&&"string"==typeof g&&!p.checkClone&&De.test(g))return e.each((function(n){var s=e.eq(n)
b&&(t[0]=g.call(this,n,s.html())),qe(s,t,r,i)}))
if(h&&(a=(n=Ee(t,e[0].ownerDocument,!1,e,i)).firstChild,1===n.childNodes.length&&(n=a),a||i)){for(l=(o=_.map(Ce(n,"script"),Be)).length;d<h;d++)c=n,d!==m&&(c=_.clone(c,!0,!0),l&&_.merge(o,Ce(c,"script"))),r.call(e[d],c,d)
if(l)for(u=o[o.length-1].ownerDocument,_.map(o,$e),d=0;d<l;d++)c=o[d],ke.test(c.type||"")&&!ne.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(je,""),c,u))}return e}function He(e,t,r){for(var i,n=t?_.filter(t,e):e,s=0;null!=(i=n[s]);s++)r||1!==i.nodeType||_.cleanData(Ce(i)),i.parentNode&&(r&&pe(i)&&Pe(Ce(i,"script")),i.parentNode.removeChild(i))
return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var i,n,s,a,o=e.cloneNode(!0),l=pe(e)
if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(a=Ce(o),i=0,n=(s=Ce(e)).length;i<n;i++)Ue(s[i],a[i])
if(t)if(r)for(s=s||Ce(e),a=a||Ce(o),i=0,n=s.length;i<n;i++)ze(s[i],a[i])
else ze(e,o)
return(a=Ce(o,"script")).length>0&&Pe(a,!l&&Ce(e,"script")),o},cleanData:function(e){for(var t,r,i,n=_.event.special,s=0;void 0!==(r=e[s]);s++)if(re(r)){if(t=r[ne.expando]){if(t.events)for(i in t.events)n[i]?_.event.remove(r,i):_.removeEvent(r,i,t.handle)
r[ne.expando]=void 0}r[se.expando]&&(r[se.expando]=void 0)}}}),_.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return J(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e)
t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(Ce(e,!1)),e.textContent="")
return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return J(this,(function(e){var t=this[0]||{},r=0,i=this.length
if(void 0===e&&1===t.nodeType)return t.innerHTML
if("string"==typeof e&&!Re.test(e)&&!Ae[(Se.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e)
try{for(;r<i;r++)1===(t=this[r]||{}).nodeType&&(_.cleanData(Ce(t,!1)),t.innerHTML=e)
t=0}catch(n){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[]
return qe(this,arguments,(function(t){var r=this.parentNode
_.inArray(this,e)<0&&(_.cleanData(Ce(this)),r&&r.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var r,i=[],n=_(e),s=n.length-1,o=0;o<=s;o++)r=o===s?this:this.clone(!0),_(n[o])[t](r),a.apply(i,r.get())
return this.pushStack(i)}}))
var Ve=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),Ge=/^--/,We=function(t){var r=t.ownerDocument.defaultView
return r&&r.opener||(r=e),r.getComputedStyle(t)},Xe=function(e,t,r){var i,n,s={}
for(n in t)s[n]=e.style[n],e.style[n]=t[n]
for(n in i=r.call(e),t)e.style[n]=s[n]
return i},Ke=new RegExp(de.join("|"),"i")
function Ye(e,t,r){var i,n,s,a,o=Ge.test(t),l=e.style
return(r=r||We(e))&&(a=r.getPropertyValue(t)||r[t],o&&a&&(a=a.replace(E,"$1")||void 0),""!==a||pe(e)||(a=_.style(e,t)),!p.pixelBoxStyles()&&Ve.test(a)&&Ke.test(t)&&(i=l.width,n=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=r.width,l.width=i,l.minWidth=n,l.maxWidth=s)),void 0!==a?a+"":a}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments)
delete this.get}}}(function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(c).appendChild(u)
var t=e.getComputedStyle(u)
i="1%"!==t.top,l=12===r(t.marginLeft),u.style.right="60%",a=36===r(t.right),n=36===r(t.width),u.style.position="absolute",s=12===r(u.offsetWidth/3),he.removeChild(c),u=null}}function r(e){return Math.round(parseFloat(e))}var i,n,s,a,o,l,c=g.createElement("div"),u=g.createElement("div")
u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(p,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,r,i,n
return null==o&&(t=g.createElement("table"),r=g.createElement("tr"),i=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",r.style.cssText="box-sizing:content-box;border:1px solid",r.style.height="1px",i.style.height="9px",i.style.display="block",he.appendChild(t).appendChild(r).appendChild(i),n=e.getComputedStyle(r),o=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===r.offsetHeight,he.removeChild(t)),o}}))})()
var Qe=["Webkit","Moz","ms"],Ze=g.createElement("div").style,et={}
function tt(e){var t=_.cssProps[e]||et[e]
return t||(e in Ze?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=Qe.length;r--;)if((e=Qe[r]+t)in Ze)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"}
function st(e,t,r){var i=ue.exec(t)
return i?Math.max(0,i[2]-(r||0))+(i[3]||"px"):t}function at(e,t,r,i,n,s){var a="width"===t?1:0,o=0,l=0,c=0
if(r===(i?"border":"content"))return 0
for(;a<4;a+=2)"margin"===r&&(c+=_.css(e,r+de[a],!0,n)),i?("content"===r&&(l-=_.css(e,"padding"+de[a],!0,n)),"margin"!==r&&(l-=_.css(e,"border"+de[a]+"Width",!0,n))):(l+=_.css(e,"padding"+de[a],!0,n),"padding"!==r?l+=_.css(e,"border"+de[a]+"Width",!0,n):o+=_.css(e,"border"+de[a]+"Width",!0,n))
return!i&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l+c}function ot(e,t,r){var i=We(e),n=(!p.boxSizingReliable()||r)&&"border-box"===_.css(e,"boxSizing",!1,i),s=n,a=Ye(e,t,i),o="offset"+t[0].toUpperCase()+t.slice(1)
if(Ve.test(a)){if(!r)return a
a="auto"}return(!p.boxSizingReliable()&&n||!p.reliableTrDimensions()&&k(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(e,"display",!1,i))&&e.getClientRects().length&&(n="border-box"===_.css(e,"boxSizing",!1,i),(s=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+at(e,t,r||(n?"border":"content"),s,i,a)+"px"}function lt(e,t,r,i,n){return new lt.prototype.init(e,t,r,i,n)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Ye(e,"opacity")
return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,s,a,o=te(t),l=Ge.test(t),c=e.style
if(l||(t=tt(o)),a=_.cssHooks[t]||_.cssHooks[o],void 0===r)return a&&"get"in a&&void 0!==(n=a.get(e,!1,i))?n:c[t]
"string"===(s=typeof r)&&(n=ue.exec(r))&&n[1]&&(r=ge(e,t,n),s="number"),null!=r&&r==r&&("number"!==s||l||(r+=n&&n[3]||(_.cssNumber[o]?"":"px")),p.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,i))||(l?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,i){var n,s,a,o=te(t)
return Ge.test(t)||(t=tt(o)),(a=_.cssHooks[t]||_.cssHooks[o])&&"get"in a&&(n=a.get(e,!0,r)),void 0===n&&(n=Ye(e,t,i)),"normal"===n&&t in nt&&(n=nt[t]),""===r||r?(s=parseFloat(n),!0===r||isFinite(s)?s||0:n):n}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,r,i){if(r)return!rt.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):Xe(e,it,(function(){return ot(e,t,i)}))},set:function(e,r,i){var n,s=We(e),a=!p.scrollboxSize()&&"absolute"===s.position,o=(a||i)&&"border-box"===_.css(e,"boxSizing",!1,s),l=i?at(e,t,i,o,s):0
return o&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-at(e,t,"border",!1,s)-.5)),l&&(n=ue.exec(r))&&"px"!==(n[3]||"px")&&(e.style[t]=r,r=_.css(e,t)),st(0,r,l)}}})),_.cssHooks.marginLeft=Je(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(r){for(var i=0,n={},s="string"==typeof r?r.split(" "):[r];i<4;i++)n[e+de[i]+t]=s[i]||s[i-2]||s[0]
return n}},"margin"!==e&&(_.cssHooks[e+t].set=st)})),_.fn.extend({css:function(e,t){return J(this,(function(e,t,r){var i,n,s={},a=0
if(Array.isArray(t)){for(i=We(e),n=t.length;a<n;a++)s[t[a]]=_.css(e,t[a],!1,i)
return s}return void 0!==r?_.style(e,t,r):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,r,i,n,s){this.elem=e,this.prop=r,this.easing=n||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(_.cssNumber[r]?"":"px")},cur:function(){var e=lt.propHooks[this.prop]
return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,r=lt.propHooks[this.prop]
return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.propHooks={_default:{get:function(e){var t
return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=lt.prototype.init,_.fx.step={}
var ct,ut,dt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/
function pt(){ut&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pt):e.setTimeout(pt,_.fx.interval),_.fx.tick())}function ft(){return e.setTimeout((function(){ct=void 0})),ct=Date.now()}function mt(e,t){var r,i=0,n={height:e}
for(t=t?1:0;i<4;i+=2-t)n["margin"+(r=de[i])]=n["padding"+r]=e
return t&&(n.opacity=n.width=e),n}function gt(e,t,r){for(var i,n=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),s=0,a=n.length;s<a;s++)if(i=n[s].call(r,t,e))return i}function bt(e,t,r){var i,n,s=0,a=bt.prefilters.length,o=_.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1
for(var t=ct||ft(),r=Math.max(0,c.startTime+c.duration-t),i=1-(r/c.duration||0),s=0,a=c.tweens.length;s<a;s++)c.tweens[s].run(i)
return o.notifyWith(e,[c,i,r]),i<1&&a?r:(a||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},r),originalProperties:t,originalOptions:r,startTime:ct||ft(),duration:r.duration,tweens:[],createTween:function(t,r){var i=_.Tween(e,c.opts,t,r,c.opts.specialEasing[t]||c.opts.easing)
return c.tweens.push(i),i},stop:function(t){var r=0,i=t?c.tweens.length:0
if(n)return this
for(n=!0;r<i;r++)c.tweens[r].run(1)
return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props
for(function(e,t){var r,i,n,s,a
for(r in e)if(n=t[i=te(r)],s=e[r],Array.isArray(s)&&(n=s[1],s=e[r]=s[0]),r!==i&&(e[i]=s,delete e[r]),(a=_.cssHooks[i])&&"expand"in a)for(r in s=a.expand(s),delete e[i],s)r in e||(e[r]=s[r],t[r]=n)
else t[i]=n}(u,c.opts.specialEasing);s<a;s++)if(i=bt.prefilters[s].call(c,e,u,c.opts))return f(i.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i
return _.map(u,gt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(bt,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t)
return ge(r.elem,e,ue.exec(t),r),r}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(H)
for(var r,i=0,n=e.length;i<n;i++)r=e[i],bt.tweeners[r]=bt.tweeners[r]||[],bt.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var i,n,s,a,o,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&me(e),g=ne.get(e,"fxshow")
for(i in r.queue||(null==(a=_._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()}))}))),t)if(n=t[i],dt.test(n)){if(delete t[i],s=s||"toggle"===n,n===(m?"hide":"show")){if("show"!==n||!g||void 0===g[i])continue
m=!0}p[i]=g&&g[i]||_.style(e,i)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(p))for(i in d&&1===e.nodeType&&(r.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ne.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(ve([e],!0),c=e.style.display||c,u=_.css(e,"display"),ve([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),r.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=r.overflow[0],f.overflowX=r.overflow[1],f.overflowY=r.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ne.access(e,"fxshow",{display:c}),s&&(g.hidden=!m),m&&ve([e],!0),h.done((function(){for(i in m||ve([e]),ne.remove(e,"fxshow"),p)_.style(e,i,p[i])}))),l=gt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),_.speed=function(e,t,r){var i=e&&"object"==typeof e?_.extend({},e):{complete:r||!r&&t||f(e)&&e,duration:e,easing:r&&t||t&&!f(t)&&t}
return _.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _.fx.speeds?i.duration=_.fx.speeds[i.duration]:i.duration=_.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){f(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.fn.extend({fadeTo:function(e,t,r,i){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,r,i)},animate:function(e,t,r,i){var n=_.isEmptyObject(e),s=_.speed(t,r,i),a=function(){var t=bt(this,_.extend({},e),s);(n||ne.get(this,"finish"))&&t.stop(!0)}
return a.finish=a,n||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(e,t,r){var i=function(e){var t=e.stop
delete e.stop,t(r)}
return"string"!=typeof e&&(r=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",s=_.timers,a=ne.get(this)
if(n)a[n]&&a[n].stop&&i(a[n])
else for(n in a)a[n]&&a[n].stop&&ht.test(n)&&i(a[n])
for(n=s.length;n--;)s[n].elem!==this||null!=e&&s[n].queue!==e||(s[n].anim.stop(r),t=!1,s.splice(n,1))
!t&&r||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,r=ne.get(this),i=r[e+"queue"],n=r[e+"queueHooks"],s=_.timers,a=i?i.length:0
for(r.finish=!0,_.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1))
for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this)
delete r.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var r=_.fn[t]
_.fn[t]=function(e,i,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(mt(t,!0),e,i,n)}})),_.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,r,i){return this.animate(t,e,r,i)}})),_.timers=[],_.fx.tick=function(){var e,t=0,r=_.timers
for(ct=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1)
r.length||_.fx.stop(),ct=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ut||(ut=!0,pt())},_.fx.stop=function(){ut=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,r){return t=_.fx&&_.fx.speeds[t]||t,r=r||"fx",this.queue(r,(function(r,i){var n=e.setTimeout(r,t)
i.stop=function(){e.clearTimeout(n)}}))},function(){var e=g.createElement("input"),t=g.createElement("select").appendChild(g.createElement("option"))
e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=g.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}()
var yt,vt=_.expr.attrHandle
_.fn.extend({attr:function(e,t){return J(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,r){var i,n,s=e.nodeType
if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?_.prop(e,t,r):(1===s&&_.isXMLDoc(e)||(n=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?yt:void 0)),void 0!==r?null===r?void _.removeAttr(e,t):n&&"set"in n&&void 0!==(i=n.set(e,r,t))?i:(e.setAttribute(t,r+""),r):n&&"get"in n&&null!==(i=n.get(e,t))?i:null==(i=_.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&k(e,"input")){var r=e.value
return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i=0,n=t&&t.match(H)
if(n&&1===e.nodeType)for(;r=n[i++];)e.removeAttribute(r)}}),yt={set:function(e,t,r){return!1===t?_.removeAttr(e,r):e.setAttribute(r,r),r}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=vt[t]||_.find.attr
vt[t]=function(e,t,i){var n,s,a=t.toLowerCase()
return i||(s=vt[a],vt[a]=n,n=null!=r(e,t,i)?a:null,vt[a]=s),n}}))
var wt=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i
function _t(e){return(e.match(H)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}_.fn.extend({prop:function(e,t){return J(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,r){var i,n,s=e.nodeType
if(3!==s&&8!==s&&2!==s)return 1===s&&_.isXMLDoc(e)||(t=_.propFix[t]||t,n=_.propHooks[t]),void 0!==r?n&&"set"in n&&void 0!==(i=n.set(e,r,t))?i:e[t]=r:n&&"get"in n&&null!==(i=n.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex")
return t?parseInt(t,10):wt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode
return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode
t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,r,i,n,s,a
return f(e)?this.each((function(t){_(this).addClass(e.call(this,t,St(this)))})):(t=kt(e)).length?this.each((function(){if(i=St(this),r=1===this.nodeType&&" "+_t(i)+" "){for(s=0;s<t.length;s++)n=t[s],r.indexOf(" "+n+" ")<0&&(r+=n+" ")
a=_t(r),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,r,i,n,s,a
return f(e)?this.each((function(t){_(this).removeClass(e.call(this,t,St(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(i=St(this),r=1===this.nodeType&&" "+_t(i)+" "){for(s=0;s<t.length;s++)for(n=t[s];r.indexOf(" "+n+" ")>-1;)r=r.replace(" "+n+" "," ")
a=_t(r),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,i,n,s,a=typeof e,o="string"===a||Array.isArray(e)
return f(e)?this.each((function(r){_(this).toggleClass(e.call(this,r,St(this),t),t)})):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(r=kt(e),this.each((function(){if(o)for(s=_(this),n=0;n<r.length;n++)i=r[n],s.hasClass(i)?s.removeClass(i):s.addClass(i)
else void 0!==e&&"boolean"!==a||((i=St(this))&&ne.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":ne.get(this,"__className__")||""))})))},hasClass:function(e){var t,r,i=0
for(t=" "+e+" ";r=this[i++];)if(1===r.nodeType&&(" "+_t(St(r))+" ").indexOf(t)>-1)return!0
return!1}})
var At=/\r/g
_.fn.extend({val:function(e){var t,r,i,n=this[0]
return arguments.length?(i=f(e),this.each((function(r){var n
1===this.nodeType&&(null==(n=i?e.call(this,r,_(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=_.map(n,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=_.valHooks[n.type]||_.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(n,"value"))?r:"string"==typeof(r=n.value)?r.replace(At,""):null==r?"":r:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value")
return null!=t?t:_t(_.text(e))}},select:{get:function(e){var t,r,i,n=e.options,s=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?s+1:n.length
for(i=s<0?l:a?s:0;i<l;i++)if(((r=n[i]).selected||i===s)&&!r.disabled&&(!r.parentNode.disabled||!k(r.parentNode,"optgroup"))){if(t=_(r).val(),a)return t
o.push(t)}return o},set:function(e,t){for(var r,i,n=e.options,s=_.makeArray(t),a=n.length;a--;)((i=n[a]).selected=_.inArray(_.valHooks.option.get(i),s)>-1)&&(r=!0)
return r||(e.selectedIndex=-1),s}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},p.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}))
var Ct=e.location,Pt={guid:Date.now()},Ot=/\?/
_.parseXML=function(t){var r,i
if(!t||"string"!=typeof t)return null
try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(n){}return i=r&&r.getElementsByTagName("parsererror")[0],r&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),r}
var Et=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()}
_.extend(_.event,{trigger:function(t,r,i,n){var s,a,o,l,c,d,h,p,b=[i||g],y=u.call(t,"type")?t.type:t,v=u.call(t,"namespace")?t.namespace.split("."):[]
if(a=p=o=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!Et.test(y+_.event.triggered)&&(y.indexOf(".")>-1&&(v=y.split("."),y=v.shift(),v.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[_.expando]?t:new _.Event(y,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),r=null==r?[t]:_.makeArray(r,[t]),h=_.event.special[y]||{},n||!h.trigger||!1!==h.trigger.apply(i,r))){if(!n&&!h.noBubble&&!m(i)){for(l=h.delegateType||y,Et.test(l+y)||(a=a.parentNode);a;a=a.parentNode)b.push(a),o=a
o===(i.ownerDocument||g)&&b.push(o.defaultView||o.parentWindow||e)}for(s=0;(a=b[s++])&&!t.isPropagationStopped();)p=a,t.type=s>1?l:h.bindType||y,(d=(ne.get(a,"events")||Object.create(null))[t.type]&&ne.get(a,"handle"))&&d.apply(a,r),(d=c&&a[c])&&d.apply&&re(a)&&(t.result=d.apply(a,r),!1===t.result&&t.preventDefault())
return t.type=y,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(b.pop(),r)||!re(i)||c&&f(i[y])&&!m(i)&&((o=i[c])&&(i[c]=null),_.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,Tt),i[y](),t.isPropagationStopped()&&p.removeEventListener(y,Tt),_.event.triggered=void 0,o&&(i[c]=o)),t.result}},simulate:function(e,t,r){var i=_.extend(new _.Event,r,{type:e,isSimulated:!0})
_.event.trigger(i,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0]
if(r)return _.event.trigger(e,t,r,!0)}})
var Mt=/\[\]$/,It=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i
function Rt(e,t,r,i){var n
if(Array.isArray(t))_.each(t,(function(t,n){r||Mt.test(e)?i(e,n):Rt(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,r,i)}))
else if(r||"object"!==v(t))i(e,t)
else for(n in t)Rt(e+"["+n+"]",t[n],r,i)}_.param=function(e,t){var r,i=[],n=function(e,t){var r=f(t)?t():t
i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)}
if(null==e)return""
if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){n(this.name,this.value)}))
else for(r in e)Rt(r,e[r],t,n)
return i.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements")
return e?_.makeArray(e):this})).filter((function(){var e=this.type
return this.name&&!_(this).is(":disabled")&&Nt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!_e.test(e))})).map((function(e,t){var r=_(this).val()
return null==r?null:Array.isArray(r)?_.map(r,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:r.replace(It,"\r\n")}})).get()}})
var Dt=/%20/g,jt=/#.*$/,Lt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,zt=/^\/\//,Ut={},qt={},Ht="*/".concat("*"),Vt=g.createElement("a")
function Gt(e){return function(t,r){"string"!=typeof t&&(r=t,t="*")
var i,n=0,s=t.toLowerCase().match(H)||[]
if(f(r))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(r)):(e[i]=e[i]||[]).push(r)}}function Wt(e,t,r,i){var n={},s=e===qt
function a(o){var l
return n[o]=!0,_.each(e[o]||[],(function(e,o){var c=o(t,r,i)
return"string"!=typeof c||s||n[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!n["*"]&&a("*")}function Xt(e,t){var r,i,n=_.ajaxSettings.flatOptions||{}
for(r in t)void 0!==t[r]&&((n[r]?e:i||(i={}))[r]=t[r])
return i&&_.extend(!0,e,i),e}Vt.href=Ct.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,_.ajaxSettings),t):Xt(_.ajaxSettings,e)},ajaxPrefilter:Gt(Ut),ajaxTransport:Gt(qt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{}
var i,n,s,a,o,l,c,u,d,h,p=_.ajaxSetup({},r),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?_(f):_.event,b=_.Deferred(),y=_.Callbacks("once memory"),v=p.statusCode||{},w={},x={},S="canceled",k={readyState:0,getResponseHeader:function(e){var t
if(c){if(!a)for(a={};t=Bt.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2])
t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t
if(e)if(c)k.always(e[k.status])
else for(t in e)v[t]=[v[t],e[t]]
return this},abort:function(e){var t=e||S
return i&&i.abort(t),A(0,t),this}}
if(b.promise(k),p.url=((t||p.url||Ct.href)+"").replace(zt,Ct.protocol+"//"),p.type=r.method||r.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(H)||[""],null==p.crossDomain){l=g.createElement("a")
try{l.href=p.url,l.href=l.href,p.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_.param(p.data,p.traditional)),Wt(Ut,p,r,k),c)return k
for(d in(u=_.event&&p.global)&&0==_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!$t.test(p.type),n=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(h=p.url.slice(n.length),p.data&&(p.processData||"string"==typeof p.data)&&(n+=(Ot.test(n)?"&":"?")+p.data,delete p.data),!1===p.cache&&(n=n.replace(Lt,"$1"),h=(Ot.test(n)?"&":"?")+"_="+Pt.guid+++h),p.url=n+h),p.ifModified&&(_.lastModified[n]&&k.setRequestHeader("If-Modified-Since",_.lastModified[n]),_.etag[n]&&k.setRequestHeader("If-None-Match",_.etag[n])),(p.data&&p.hasContent&&!1!==p.contentType||r.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d])
if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort()
if(S="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),i=Wt(qt,p,r,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,p]),c)return k
p.async&&p.timeout>0&&(o=e.setTimeout((function(){k.abort("timeout")}),p.timeout))
try{c=!1,i.send(w,A)}catch(C){if(c)throw C
A(-1,C)}}else A(-1,"No Transport")
function A(t,r,a,l){var d,h,g,w,x,S=r
c||(c=!0,o&&e.clearTimeout(o),i=void 0,s=l||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(w=function(e,t,r){for(var i,n,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"))
if(i)for(n in o)if(o[n]&&o[n].test(i)){l.unshift(n)
break}if(l[0]in r)s=l[0]
else{for(n in r){if(!l[0]||e.converters[n+" "+l[0]]){s=n
break}a||(a=n)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),r[s]}(p,k,a)),!d&&_.inArray("script",p.dataTypes)>-1&&_.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(e,t,r,i){var n,s,a,o,l,c={},u=e.dataTypes.slice()
if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a]
for(s=u.shift();s;)if(e.responseFields[s]&&(r[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l
else if("*"!==l&&l!==s){if(!(a=c[l+" "+s]||c["* "+s]))for(n in c)if((o=n.split(" "))[1]===s&&(a=c[l+" "+o[0]]||c["* "+o[0]])){!0===a?a=c[n]:!0!==c[n]&&(s=o[0],u.unshift(o[1]))
break}if(!0!==a)if(a&&e.throws)t=a(t)
else try{t=a(t)}catch(C){return{state:"parsererror",error:a?C:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,w,k,d),d?(p.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(_.lastModified[n]=x),(x=k.getResponseHeader("etag"))&&(_.etag[n]=x)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=w.state,h=w.data,d=!(g=w.error))):(g=S,!t&&S||(S="error",t<0&&(t=0))),k.status=t,k.statusText=(r||S)+"",d?b.resolveWith(f,[h,S,k]):b.rejectWith(f,[k,S,g]),k.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:g]),y.fireWith(f,[k,S]),u&&(m.trigger("ajaxComplete",[k,p]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,r){return _.get(e,t,r,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,r,i,n){return f(r)&&(n=n||i,i=r,r=void 0),_.ajax(_.extend({url:e,type:t,dataType:n,data:r,success:i},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t
for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,r){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,r)}})},_.fn.extend({wrapAll:function(e){var t
return this[0]&&(f(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild
return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),r=t.contents()
r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e)
return this.each((function(r){_(this).wrapAll(t?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}}
var Kt={0:200,1223:204},Yt=_.ajaxSettings.xhr()
p.cors=!!Yt&&"withCredentials"in Yt,p.ajax=Yt=!!Yt,_.ajaxTransport((function(t){var r,i
if(p.cors||Yt&&!t.crossDomain)return{send:function(n,s){var a,o=t.xhr()
if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a]
for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(a,n[a])
r=function(e){return function(){r&&(r=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Kt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=r(),i=o.onerror=o.ontimeout=r("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){r&&i()}))},r=r("abort")
try{o.send(t.hasContent&&t.data||null)}catch(l){if(r)throw l}},abort:function(){r&&r()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,r
if(e.crossDomain||e.scriptAttrs)return{send:function(i,n){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&n("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){r&&r()}}}))
var Jt,Qt=[],Zt=/(=)\?(?=&|$)|\?\?/
_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||_.expando+"_"+Pt.guid++
return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(t,r,i){var n,s,a,o=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data")
if(o||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Zt,"$1"+n):!1!==t.jsonp&&(t.url+=(Ot.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return a||_.error(n+" was not called"),a[0]},t.dataTypes[0]="json",s=e[n],e[n]=function(){a=arguments},i.always((function(){void 0===s?_(e).removeProp(n):e[n]=s,t[n]&&(t.jsonpCallback=r.jsonpCallback,Qt.push(n)),a&&f(s)&&s(a[0]),a=s=void 0})),"script"})),p.createHTMLDocument=((Jt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),_.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(p.createHTMLDocument?((i=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(i)):t=g),s=!r&&[],(n=j.exec(e))?[t.createElement(n[1])]:(n=Ee([e],t,s),s&&s.length&&_(s).remove(),_.merge([],n.childNodes)))
var i,n,s},_.fn.load=function(e,t,r){var i,n,s,a=this,o=e.indexOf(" ")
return o>-1&&(i=_t(e.slice(o)),e=e.slice(0,o)),f(t)?(r=t,t=void 0):t&&"object"==typeof t&&(n="POST"),a.length>0&&_.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done((function(e){s=arguments,a.html(i?_("<div>").append(_.parseHTML(e)).find(i):e)})).always(r&&function(e,t){a.each((function(){r.apply(this,s||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,r){var i,n,s,a,o,l,c=_.css(e,"position"),u=_(e),d={}
"static"===c&&(e.style.position="relative"),o=u.offset(),s=_.css(e,"top"),l=_.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(a=(i=u.position()).top,n=i.left):(a=parseFloat(s)||0,n=parseFloat(l)||0),f(t)&&(t=t.call(e,r,_.extend({},o))),null!=t.top&&(d.top=t.top-o.top+a),null!=t.left&&(d.left=t.left-o.left+n),"using"in t?t.using.call(e,d):u.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}))
var t,r,i=this[0]
return i?i.getClientRects().length?(t=i.getBoundingClientRect(),r=i.ownerDocument.defaultView,{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,i=this[0],n={top:0,left:0}
if("fixed"===_.css(i,"position"))t=i.getBoundingClientRect()
else{for(t=this.offset(),r=i.ownerDocument,e=i.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode
e&&e!==i&&1===e.nodeType&&((n=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),n.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-_.css(i,"marginTop",!0),left:t.left-n.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent
return e||he}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var r="pageYOffset"===t
_.fn[e]=function(i){return J(this,(function(e,i,n){var s
if(m(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===n)return s?s[t]:e[i]
s?s.scrollTo(r?s.pageXOffset:n,r?n:s.pageYOffset):e[i]=n}),e,i,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=Je(p.pixelPosition,(function(e,r){if(r)return r=Ye(e,t),Ve.test(r)?_(e).position()[t]+"px":r}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(r,i){_.fn[i]=function(n,s){var a=arguments.length&&(r||"boolean"!=typeof n),o=r||(!0===n||!0===s?"margin":"border")
return J(this,(function(t,r,n){var s
return m(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===n?_.css(t,r,o):_.style(t,r,n,o)}),t,a?n:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,i){return this.on(t,e,r,i)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){_.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}}))
var er=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g
_.proxy=function(e,t){var r,i,s
if("string"==typeof t&&(r=e[t],t=e,e=r),f(e))return i=n.call(arguments,2),s=function(){return e.apply(t||this,i.concat(n.call(arguments)))},s.guid=e.guid=e.guid||_.guid++,s},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=k,_.isFunction=f,_.isWindow=m,_.camelCase=te,_.type=v,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e)
return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(er,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}))
var tr=e.jQuery,rr=e.$
return _.noConflict=function(t){return e.$===_&&(e.$=rr),t&&e.jQuery===_&&(e.jQuery=tr),_},void 0===t&&(e.jQuery=e.$=_),_})),function(e){"use strict"
function t(){var e=Object.create(null)
return e.__=void 0,delete e.__,e}var r={loader:loader,define:define,requireModule:requireModule,require:require,requirejs:requirejs}
requirejs=require=requireModule=function(e){for(var t=[],r=c(e,"(require)",t),i=t.length-1;i>=0;i--)t[i].exports()
return r.module.exports},loader={noConflict:function(t){var i,n
for(i in t)t.hasOwnProperty(i)&&r.hasOwnProperty(i)&&(n=t[i],e[n]=e[i],e[i]=r[i])},makeDefaultExport:!0}
var i=t(),n=(t(),0)
var s=["require","exports","module"]
function a(e,t,r,i){this.uuid=n++,this.id=e,this.deps=!t.length&&r.length?s:t,this.module={exports:{}},this.callback=r,this.hasExportsAsDep=!1,this.isAlias=i,this.reified=new Array(t.length),this.state="new"}function o(){}function l(e){this.id=e}function c(e,t,r){for(var n=i[e]||i[e+"/index"];n&&n.isAlias;)n=i[n.id]||i[n.id+"/index"]
return n||function(e,t){throw new Error("Could not find module `"+e+"` imported from `"+t+"`")}(e,t),r&&"pending"!==n.state&&"finalized"!==n.state&&(n.findDeps(r),r.push(n)),n}function u(e,t){if("."!==e.charAt(0))return e
for(var r=e.split("/"),i=t.split("/").slice(0,-1),n=0,s=r.length;n<s;n++){var a=r[n]
if(".."===a){if(0===i.length)throw new Error("Cannot access parent module of root")
i.pop()}else{if("."===a)continue
i.push(a)}}return i.join("/")}function d(e){return!(!i[e]&&!i[e+"/index"])}a.prototype.makeDefaultExport=function(){var e=this.module.exports
null===e||"object"!=typeof e&&"function"!=typeof e||void 0!==e.default||!Object.isExtensible(e)||(e.default=e)},a.prototype.exports=function(){if("finalized"===this.state||"reifying"===this.state)return this.module.exports
loader.wrapModules&&(this.callback=loader.wrapModules(this.id,this.callback)),this.reify()
var e=this.callback.apply(this,this.reified)
return this.reified.length=0,this.state="finalized",this.hasExportsAsDep&&void 0===e||(this.module.exports=e),loader.makeDefaultExport&&this.makeDefaultExport(),this.module.exports},a.prototype.unsee=function(){this.state="new",this.module={exports:{}}},a.prototype.reify=function(){if("reified"!==this.state){this.state="reifying"
try{this.reified=this._reify(),this.state="reified"}finally{"reifying"===this.state&&(this.state="errored")}}},a.prototype._reify=function(){for(var e=this.reified.slice(),t=0;t<e.length;t++){var r=e[t]
e[t]=r.exports?r.exports:r.module.exports()}return e},a.prototype.findDeps=function(e){if("new"===this.state){this.state="pending"
for(var t=this.deps,r=0;r<t.length;r++){var i=t[r],n=this.reified[r]={exports:void 0,module:void 0}
"exports"===i?(this.hasExportsAsDep=!0,n.exports=this.module.exports):"require"===i?n.exports=this.makeRequire():"module"===i?n.exports=this.module:n.module=c(u(i,this.id),this.id,e)}}},a.prototype.makeRequire=function(){var e=this.id,t=function(t){return require(u(t,e))}
return t.default=t,t.moduleId=e,t.has=function(t){return d(u(t,e))},t},define=function(e,t,r){var n=i[e]
n&&"new"!==n.state||(arguments.length<2&&function(e){throw new Error("an unsupported module was defined, expected `define(id, deps, module)` instead got: `"+e+"` arguments to define`")}(arguments.length),Array.isArray(t)||(r=t,t=[]),i[e]=r instanceof l?new a(r.id,t,r,!0):new a(e,t,r,!1))},define.exports=function(e,t){var r=i[e]
if(!r||"new"===r.state)return(r=new a(e,[],o,null)).module.exports=t,r.state="finalized",i[e]=r,r},define.alias=function(e,t){return 2===arguments.length?define(t,new l(e)):new l(e)},requirejs.entries=requirejs._eak_seen=i,requirejs.has=d,requirejs.unsee=function(e){c(e,"(unsee)",!1).unsee()},requirejs.clear=function(){requirejs.entries=requirejs._eak_seen=i=t(),t()},define("foo",(function(){})),define("foo/bar",[],(function(){})),define("foo/asdf",["module","exports","require"],(function(e,t,r){r.has("foo/bar")&&r("foo/bar")})),define("foo/baz",[],define.alias("foo")),define("foo/quz",define.alias("foo")),define.alias("foo","foo/qux"),define("foo/bar",["foo","./quz","./baz","./asdf","./bar","../foo"],(function(){})),define("foo/main",["foo/bar"],(function(){})),define.exports("foo/exports",{}),require("foo/exports"),require("foo/main"),require.unsee("foo/bar"),requirejs.clear(),"object"==typeof exports&&"object"==typeof module&&module.exports&&(module.exports={require:require,define:define})}(this),function(){
/*!
 * @overview  Ember - JavaScript Application Framework
 * @copyright Copyright 2011 Tilde Inc. and contributors
 *            Portions Copyright 2006-2011 Strobe Inc.
 *            Portions Copyright 2008-2011 Apple Inc. All rights reserved.
 * @license   Licensed under MIT license
 *            See https://raw.github.com/emberjs/ember.js/master/LICENSE
 * @version   4.12.4
 */
var e,t;(function(){var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:null
if(null===r)throw new Error("unable to locate global object")
if("function"==typeof r.define&&"function"==typeof r.require)return e=r.define,void(t=r.require)
var i=Object.create(null),n=Object.create(null)
function s(e,r){var s=e,a=i[s]
a||(a=i[s+="/index"])
var o=n[s]
if(void 0!==o)return o
o=n[s]={},a||function(e,t){throw t?new Error("Could not find module "+e+" required by: "+t):new Error("Could not find module "+e)}(e,r)
for(var l=a.deps,c=a.callback,u=new Array(l.length),d=0;d<l.length;d++)"exports"===l[d]?u[d]=o:"require"===l[d]?u[d]=t:u[d]=t(l[d],s)
return c.apply(this,u),o}e=function(e,t,r){i[e]={deps:t,callback:r}},(t=function(e){return s(e,null)}).default=t,t.has=function(e){return Boolean(i[e])||Boolean(i[e+"/index"])},t._eak_seen=t.entries=i})(),e("@ember/-internals/bootstrap/index",["require"],(function(e){"use strict"
"object"==typeof module&&"function"==typeof module.require&&(module.exports=(0,e.default)("ember").default)})),e("@ember/-internals/browser-environment/index",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.window=e.userAgent=e.location=e.isFirefox=e.isChrome=e.history=e.hasDOM=void 0
var t=e.hasDOM="object"==typeof self&&null!==self&&self.Object===Object&&"undefined"!=typeof Window&&self.constructor===Window&&"object"==typeof document&&null!==document&&self.document===document&&"object"==typeof location&&null!==location&&self.location===location&&"object"==typeof history&&null!==history&&self.history===history&&"object"==typeof navigator&&null!==navigator&&self.navigator===navigator&&"string"==typeof navigator.userAgent,r=(e.window=t?self:null,e.location=t?self.location:null,e.history=t?self.history:null,e.userAgent=t?self.navigator.userAgent:"Lynx (textmode)")
e.isChrome=!!t&&("object"==typeof chrome&&!("object"==typeof opera)),e.isFirefox=!!t&&/Firefox|FxiOS/.test(r)})),e("@ember/-internals/container/index",["exports","@ember/-internals/owner","@ember/-internals/utils","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=e.INIT_FACTORY=e.Container=void 0,e.getFactoryFor=function(e){return e[u]},e.privatize=function([e]){var t=m[e]
if(t)return t
var[i,n]=e.split(":")
return m[e]=(0,r.intern)(`${i}:${n}-${g}`)},e.setFactoryFor=d
class n{constructor(e,t={}){this.registry=e,this.owner=t.owner||null,this.cache=(0,r.dictionary)(t.cache||null),this.factoryManagerCache=(0,r.dictionary)(t.factoryManagerCache||null),this.isDestroyed=!1,this.isDestroying=!1}lookup(e,t){if(this.isDestroyed)throw new Error(`Cannot call \`.lookup('${e}')\` after the owner has been destroyed`)
return function(e,t,r={}){var i=t
if(!0===r.singleton||void 0===r.singleton&&s(e,t)){var n=e.cache[i]
if(void 0!==n)return n}return function(e,t,r,i){var n=o(e,t,r)
if(void 0===n)return
if(function(e,t,{instantiate:r,singleton:i}){return!1!==i&&!1!==r&&(!0===i||s(e,t))&&a(e,t)}(e,r,i)){var l=e.cache[t]=n.create()
return e.isDestroying&&"function"==typeof l.destroy&&l.destroy(),l}if(function(e,t,{instantiate:r,singleton:i}){return!1!==r&&(!1===i||!s(e,t))&&a(e,t)}(e,r,i))return n.create()
if(function(e,t,{instantiate:r,singleton:i}){return!1!==i&&!r&&s(e,t)&&!a(e,t)}(e,r,i)||function(e,t,{instantiate:r,singleton:i}){return!(!1!==r||!1!==i&&s(e,t)||a(e,t))}(e,r,i))return n.class
throw new Error("Could not create factory")}(e,i,t,r)}(this,this.registry.normalize(e),t)}destroy(){this.isDestroying=!0,l(this)}finalizeDestroy(){c(this),this.isDestroyed=!0}reset(e){this.isDestroyed||(void 0===e?(l(this),c(this)):function(e,t){var r=e.cache[t]
delete e.factoryManagerCache[t],r&&(delete e.cache[t],r.destroy&&r.destroy())}(this,this.registry.normalize(e)))}ownerInjection(){var e={}
return(0,t.setOwner)(e,this.owner),e}factoryFor(e){if(this.isDestroyed)throw new Error(`Cannot call \`.factoryFor('${e}')\` after the owner has been destroyed`)
var t=this.registry.normalize(e)
return o(this,t,e)}}function s(e,t){return!1!==e.registry.getOption(t,"singleton")}function a(e,t){return!1!==e.registry.getOption(t,"instantiate")}function o(e,t,r){var i=e.factoryManagerCache[t]
if(void 0!==i)return i
var n=e.registry.resolve(t)
if(void 0!==n){0
var s=new h(e,n,r,t)
return e.factoryManagerCache[t]=s,s}}function l(e){var t=e.cache,r=Object.keys(t)
for(var i of r){var n=t[i]
n.destroy&&n.destroy()}}function c(e){e.cache=(0,r.dictionary)(null),e.factoryManagerCache=(0,r.dictionary)(null)}e.Container=n
var u=e.INIT_FACTORY=Symbol("INIT_FACTORY")
function d(e,t){e[u]=t}class h{constructor(e,t,r,i){this.container=e,this.owner=e.owner,this.class=t,this.fullName=r,this.normalizedName=i,this.madeToString=void 0,this.injections=void 0}toString(){return void 0===this.madeToString&&(this.madeToString=this.container.registry.makeToString(this.class,this.fullName)),this.madeToString}create(e){var{container:r}=this
if(r.isDestroyed)throw new Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`)
var i=e?Object.assign({},e):{}
return(0,t.setOwner)(i,r.owner),d(i,this),this.class.create(i)}}var p=/^[^:]+:[^:]+$/
class f{constructor(e={}){this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=(0,r.dictionary)(e.registrations||null),this._normalizeCache=(0,r.dictionary)(null),this._resolveCache=(0,r.dictionary)(null),this._failSet=new Set,this._options=(0,r.dictionary)(null),this._typeOptions=(0,r.dictionary)(null)}container(e){return new n(this,e)}register(e,t,r={}){var i=this.normalize(e)
this._failSet.delete(i),this.registrations[i]=t,this._options[i]=r}unregister(e){var t=this.normalize(e)
delete this.registrations[t],delete this._resolveCache[t],delete this._options[t],this._failSet.delete(t)}resolve(e){var t=function(e,t){var r,i=t,n=e._resolveCache[i]
if(void 0!==n)return n
if(e._failSet.has(i))return
e.resolver&&(r=e.resolver.resolve(i))
void 0===r&&(r=e.registrations[i])
void 0===r?e._failSet.add(i):e._resolveCache[i]=r
return r}(this,this.normalize(e))
return void 0===t&&null!==this.fallback&&(t=this.fallback.resolve(e)),t}describe(e){return null!==this.resolver&&this.resolver.lookupDescription?this.resolver.lookupDescription(e):null!==this.fallback?this.fallback.describe(e):e}normalizeFullName(e){return null!==this.resolver&&this.resolver.normalize?this.resolver.normalize(e):null!==this.fallback?this.fallback.normalizeFullName(e):e}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this.normalizeFullName(e))}makeToString(e,t){var r
return null!==this.resolver&&this.resolver.makeToString?this.resolver.makeToString(e,t):null!==this.fallback?this.fallback.makeToString(e,t):"string"==typeof e?e:null!==(r=e.name)&&void 0!==r?r:"(unknown class)"}has(e){return!!this.isValidFullName(e)&&function(e,t){return void 0!==e.resolve(t)}(this,this.normalize(e))}optionsForType(e,t){this._typeOptions[e]=t}getOptionsForType(e){var t=this._typeOptions[e]
return void 0===t&&null!==this.fallback&&(t=this.fallback.getOptionsForType(e)),t}options(e,t){var r=this.normalize(e)
this._options[r]=t}getOptions(e){var t=this.normalize(e),r=this._options[t]
return void 0===r&&null!==this.fallback&&(r=this.fallback.getOptions(e)),r}getOption(e,t){var r=this._options[e]
if(void 0!==r&&void 0!==r[t])return r[t]
var i=e.split(":")[0]
return(r=this._typeOptions[i])&&void 0!==r[t]?r[t]:null!==this.fallback?this.fallback.getOption(e,t):void 0}injection(e,t){}knownForType(e){var t,i,n=(0,r.dictionary)(null),s=Object.keys(this.registrations)
for(var a of s){a.split(":")[0]===e&&(n[a]=!0)}return null!==this.fallback&&(t=this.fallback.knownForType(e)),null!==this.resolver&&this.resolver.knownForType&&(i=this.resolver.knownForType(e)),Object.assign({},t,n,i)}isValidFullName(e){return p.test(e)}}e.Registry=f
var m=(0,r.dictionary)(null),g=`${Math.random()}${Date.now()}`.replace(".","")})),e("@ember/-internals/environment/index",["exports"],(function(e){"use strict"
function t(e){return e&&e.Object===Object?e:void 0}Object.defineProperty(e,"__esModule",{value:!0}),e.context=e.ENV=void 0,e.getENV=function(){return s},e.getLookup=function(){return n.lookup},e.global=void 0,e.setLookup=function(e){n.lookup=e}
var r,i=e.global=t((r="object"==typeof global&&global)&&void 0===r.nodeType?r:void 0)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||"undefined"!=typeof mainContext&&mainContext||new Function("return this")(),n=e.context=function(e,t){return void 0===t?{imports:e,exports:e,lookup:e}:{imports:t.imports||e,exports:t.exports||e,lookup:t.lookup||e}}(i,i.Ember)
var s=e.ENV={ENABLE_OPTIONAL_FEATURES:!1,EXTEND_PROTOTYPES:{Array:!0},LOG_STACKTRACE_ON_DEPRECATION:!0,LOG_VERSION:!0,RAISE_ON_DEPRECATION:!1,STRUCTURED_PROFILE:!1,_APPLICATION_TEMPLATE_WRAPPER:!0,_TEMPLATE_ONLY_GLIMMER_COMPONENTS:!1,_DEBUG_RENDER_TREE:!1,_DEFAULT_ASYNC_OBSERVERS:!1,_RERENDER_LOOP_LIMIT:1e3,EMBER_LOAD_HOOKS:{},FEATURES:{}};(e=>{if("object"==typeof e&&null!==e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"EXTEND_PROTOTYPES"!==t&&"EMBER_LOAD_HOOKS"!==t){var r=s[t]
!0===r?s[t]=!1!==e[t]:!1===r&&(s[t]=!0===e[t])}var{EXTEND_PROTOTYPES:i}=e
void 0!==i&&(s.EXTEND_PROTOTYPES.Array="object"==typeof i&&null!==i?!1!==i.Array:!1!==i)
var{EMBER_LOAD_HOOKS:n}=e
if("object"==typeof n&&null!==n)for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a)){var o=n[a]
Array.isArray(o)&&(s.EMBER_LOAD_HOOKS[a]=o.filter((e=>"function"==typeof e)))}var{FEATURES:l}=e
if("object"==typeof l&&null!==l)for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s.FEATURES[c]=!0===l[c])
0}})(i.EmberENV)})),e("@ember/-internals/error-handling/index",["exports"],(function(e){"use strict"
var t
Object.defineProperty(e,"__esModule",{value:!0}),e.getDispatchOverride=function(){return r},e.getOnerror=function(){return t},e.onErrorTarget=void 0,e.setDispatchOverride=function(e){r=e},e.setOnerror=function(e){t=e}
e.onErrorTarget={get onerror(){return t}}
var r=null})),e("@ember/-internals/glimmer/index",["exports","@glimmer/opcode-compiler","@ember/-internals/owner","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/reference","@glimmer/validator","@ember/-internals/metal","@ember/object","@ember/-internals/browser-environment","@ember/-internals/views","@ember/engine","@ember/engine/instance","@ember/instrumentation","@ember/service","@ember/-internals/string","@glimmer/destroyable","@ember/runloop","@glimmer/util","@glimmer/runtime","@ember/-internals/runtime","@ember/object/-internals","@ember/-internals/environment","@ember/-internals/container","@glimmer/node","@ember/array/-internals","@ember/-internals/glimmer","@ember/array","@glimmer/global-context","@ember/routing/-internals","@glimmer/program","rsvp"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y,v,w,x,_,S,k,A,C,P,O,E,T,M,I){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0,Object.defineProperty(e,"DOMChanges",{enumerable:!0,get:function(){return w.DOMChanges}}),Object.defineProperty(e,"DOMTreeConstruction",{enumerable:!0,get:function(){return w.DOMTreeConstruction}}),e.LinkTo=e.Input=e.Helper=void 0,Object.defineProperty(e,"NodeDOMTreeConstruction",{enumerable:!0,get:function(){return A.NodeDOMTreeConstruction}}),e.Textarea=e.SafeString=e.RootTemplate=e.Renderer=e.OutletView=void 0,e._resetRenderers=function(){pr.length=0},e.componentCapabilities=void 0,e.escapeExpression=function(e){var t
if("string"!=typeof e){if(ft(e))return e.toHTML()
if(null==e)return""
if(!e)return String(e)
t=String(e)}else t=e
if(!dt.test(t))return t
return t.replace(ht,pt)},e.getTemplate=function(e){if(Object.prototype.hasOwnProperty.call(yr,e))return yr[e]},e.getTemplates=function(){return yr},e.hasTemplate=function(e){return Object.prototype.hasOwnProperty.call(yr,e)},e.helper=it,e.htmlSafe=function(e){null==e?e="":"string"!=typeof e&&(e=String(e))
return new ct(e)},e.isHTMLSafe=ft,Object.defineProperty(e,"isSerializationFirstNode",{enumerable:!0,get:function(){return w.isSerializationFirstNode}}),e.modifierCapabilities=void 0,e.renderSettled=function(){null===mr&&(mr=I.default.defer(),(0,y._getCurrentRunLoop)()||y._backburner.schedule("actions",null,dr))
return mr.promise},e.setComponentManager=function(e,t){return(0,s.setComponentManager)(e,t)},e.setTemplate=function(e,t){return yr[e]=t},e.setTemplates=function(e){yr=e},e.setupApplicationRegistry=function(e){e.register("service:-dom-builder",{create(e){var t=(0,r.getOwner)(e)
switch(t.lookup("-environment:main")._renderMode){case"serialize":return A.serializeBuilder.bind(null)
case"rehydrate":return w.rehydrationBuilder.bind(null)
default:return w.clientBuilder.bind(null)}}}),e.register(k.privatize`template:-root`,F),e.register("renderer:-dom",br)},e.setupEngineRegistry=function(e){e.optionsForType("template",{instantiate:!1}),e.register("view:-outlet",cr),e.register("template:-outlet",vr),e.optionsForType("helper",{instantiate:!1}),e.register("component:input",ee),e.register("component:link-to",be),e.register("component:textarea",xe),S.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS||e.register(k.privatize`component:-default`,et)},Object.defineProperty(e,"template",{enumerable:!0,get:function(){return t.templateFactory}}),Object.defineProperty(e,"templateCacheCounters",{enumerable:!0,get:function(){return t.templateCacheCounters}})
var F=e.RootTemplate=(0,t.templateFactory)({id:"9BtKrod8",block:'[[[46,[30,0],null,null,null]],[],false,["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/root.hbs",isStrictMode:!1}),N=(0,t.templateFactory)({id:"OGSIkgXP",block:'[[[11,"input"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,4,[30,0,["type"]]],[16,"checked",[30,0,["checked"]]],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/input.hbs",isStrictMode:!1})
function R(){}class D{static toString(){return"internal component"}constructor(e,t,i){this.owner=e,this.args=t,this.caller=i,(0,r.setOwner)(this,e)}get id(){return(0,i.guidFor)(this)}get class(){return"ember-view"}validateArguments(){for(var e of Object.keys(this.args.named))this.isSupportedArgument(e)||this.onUnsupportedArgument(e)}named(e){var t=this.args.named[e]
return t?(0,a.valueForRef)(t):void 0}positional(e){var t=this.args.positional[e]
return t?(0,a.valueForRef)(t):void 0}listenerFor(e){var t=this.named(e)
return t||R}isSupportedArgument(e){return!1}onUnsupportedArgument(e){}toString(){return`<${this.constructor}:${(0,i.guidFor)(this)}>`}}var j=new WeakMap
function L(e,t){var r={create(){throw(0,n.assert)("Use constructor instead of create")},toString:()=>e.toString()}
return j.set(r,e),(0,s.setInternalComponentManager)($,r),(0,s.setComponentTemplate)(t,r),r}var B={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!0,dynamicScope:!1,updateHook:!1,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1}
var $=new class{getCapabilities(){return B}create(e,t,r,i,n,s){var l,c=new(l=t,j.get(l))(e,r.capture(),(0,a.valueForRef)(s))
return(0,o.untrack)(c.validateArguments.bind(c)),c}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}getDebugName(e){return e.toString()}getSelf(e){return(0,a.createConstRef)(e,"this")}getDestroyable(e){return e}},z=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a},U=Object.freeze({})
function q(e){return function(e){return e.target}(e).value}function H(e){return void 0===e?new V(void 0):(0,a.isConstRef)(e)?new V((0,a.valueForRef)(e)):(0,a.isUpdatableRef)(e)?new G(e):new W(e)}class V{constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}}z([l.tracked],V.prototype,"value",void 0)
class G{constructor(e){this.reference=e}get(){return(0,a.valueForRef)(this.reference)}set(e){(0,a.updateRef)(this.reference,e)}}class W{constructor(e){this.lastUpstreamValue=U,this.upstream=new G(e)}get(){var e=this.upstream.get()
return e!==this.lastUpstreamValue&&(this.lastUpstreamValue=e,this.local=new V(e)),this.local.get()}set(e){this.local.set(e)}}class X extends D{constructor(){super(...arguments),this._value=H(this.args.named.value)}validateArguments(){super.validateArguments()}get value(){return this._value.get()}set value(e){this._value.set(e)}valueDidChange(e){this.value=q(e)}change(e){this.valueDidChange(e)}input(e){this.valueDidChange(e)}keyUp(e){switch(e.key){case"Enter":this.listenerFor("enter")(e),this.listenerFor("insert-newline")(e)
break
case"Escape":this.listenerFor("escape-press")(e)}}listenerFor(e){var t,r=super.listenerFor(e)
return this.isVirtualEventListener(e,r)?(t=r,e=>t(q(e),e)):r}isVirtualEventListener(e,t){return-1!==["enter","insert-newline","escape-press"].indexOf(e)}}z([c.action],X.prototype,"valueDidChange",null),z([c.action],X.prototype,"keyUp",null)
var K,Y=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a}
if(u.hasDOM){var J=Object.create(null),Q=document.createElement("input")
J[""]=!1,J.text=!0,J.checkbox=!0,K=e=>{var t=J[e]
if(void 0===t){try{Q.type=e,t=Q.type===e}catch(r){t=!1}finally{Q.type="text"}J[e]=t}return t}}else K=e=>""!==e
class Z extends X{constructor(){super(...arguments),this._checked=H(this.args.named.checked)}static toString(){return"Input"}get class(){return this.isCheckbox?"ember-checkbox ember-view":"ember-text-field ember-view"}get type(){var e=this.named("type")
return null==e?"text":K(e)?e:"text"}get isCheckbox(){return"checkbox"===this.named("type")}get checked(){return this.isCheckbox?this._checked.get():void 0}set checked(e){this._checked.set(e)}change(e){this.isCheckbox?this.checkedDidChange(e):super.change(e)}input(e){this.isCheckbox||super.input(e)}checkedDidChange(e){var t=e.target
this.checked=t.checked}isSupportedArgument(e){return-1!==["type","value","checked","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}Y([c.action],Z.prototype,"change",null),Y([c.action],Z.prototype,"input",null),Y([c.action],Z.prototype,"checkedDidChange",null)
var ee=e.Input=L(Z,N),te=(0,t.templateFactory)({id:"CVwkBtGh",block:'[[[11,3],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[16,"role",[30,0,["role"]]],[16,"title",[30,0,["title"]]],[16,"rel",[30,0,["rel"]]],[16,"tabindex",[30,0,["tabindex"]]],[16,"target",[30,0,["target"]]],[17,1],[16,6,[30,0,["href"]]],[4,[38,0],["click",[30,0,["click"]]],null],[12],[18,2,null],[13]],["&attrs","&default"],false,["on","yield"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs",isStrictMode:!1}),re=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a},ie=[],ne={}
function se(e){return null==e}function ae(e){return!se(e)}function oe(e){return"object"==typeof e&&null!==e&&!0===e.isQueryParams}(0,n.debugFreeze)(ie),(0,n.debugFreeze)(ne)
class le extends D{constructor(){super(...arguments),this.currentRouteCache=(0,o.createCache)((()=>((0,o.consumeTag)((0,o.tagFor)(this.routing,"currentState")),(0,o.untrack)((()=>this.routing.currentRouteName)))))}static toString(){return"LinkTo"}validateArguments(){super.validateArguments()}get class(){var e="ember-view"
return this.isActive?(e+=this.classFor("active"),!1===this.willBeActive&&(e+=" ember-transitioning-out")):this.willBeActive&&(e+=" ember-transitioning-in"),this.isLoading&&(e+=this.classFor("loading")),this.isDisabled&&(e+=this.classFor("disabled")),e}get href(){if(this.isLoading)return"#"
var{routing:e,route:t,models:r,query:i}=this
return(0,o.consumeTag)((0,o.tagFor)(e,"currentState")),e.generateURL(t,r,i)}click(e){if((0,d.isSimpleClick)(e)){var t=e.currentTarget
if((""===t.target||"_self"===t.target)&&(this.preventDefault(e),!this.isDisabled&&!this.isLoading)){var{routing:r,route:i,models:n,query:s,replace:a}=this,o={routeName:i,queryParams:s,transition:void 0};(0,f.flaggedInstrument)("interaction.link-to",o,(()=>{o.transition=r.transitionTo(i,n,s,a)}))}}}get route(){if("route"in this.args.named){var e=this.named("route")
return e&&this.namespaceRoute(e)}return this.currentRoute}get currentRoute(){return(0,o.getValue)(this.currentRouteCache)}get models(){if("models"in this.args.named){var e=this.named("models")
return e}return"model"in this.args.named?[this.named("model")]:ie}get query(){if("query"in this.args.named){var e=this.named("query")
return Object.assign({},e)}return ne}get replace(){return!0===this.named("replace")}get isActive(){return this.isActiveForState(this.routing.currentState)}get willBeActive(){var e=this.routing.currentState,t=this.routing.targetState
return e===t?null:this.isActiveForState(t)}get isLoading(){return se(this.route)||this.models.some((e=>se(e)))}get isDisabled(){return Boolean(this.named("disabled"))}get isEngine(){var e=this.owner
return e instanceof p.default&&void 0!==(0,h.getEngineParent)(e)}get engineMountPoint(){var e=this.owner
return e instanceof p.default?e.mountPoint:void 0}classFor(e){var t=this.named(`${e}Class`)
return!0===t||se(t)?` ${e}`:t?` ${t}`:""}namespaceRoute(e){var{engineMountPoint:t}=this
return void 0===t?e:"application"===e?t:`${t}.${e}`}isActiveForState(e){if(!ae(e))return!1
if(this.isLoading)return!1
var t=this.named("current-when")
if("boolean"==typeof t)return t
if("string"==typeof t){var{models:r,routing:i}=this
return t.split(" ").some((t=>i.isActiveForRoute(r,void 0,this.namespaceRoute(t),e)))}var{route:n,models:s,query:a,routing:o}=this
return o.isActiveForRoute(s,a,n,e)}preventDefault(e){e.preventDefault()}isSupportedArgument(e){return-1!==["route","model","models","query","replace","disabled","current-when","activeClass","loadingClass","disabledClass"].indexOf(e)||super.isSupportedArgument(e)}}re([(0,m.service)("-routing")],le.prototype,"routing",void 0),re([c.action],le.prototype,"click",null)
var{prototype:ce}=le,ue=(e,t)=>e?Object.getOwnPropertyDescriptor(e,t)||ue(Object.getPrototypeOf(e),t):null,de=ce.onUnsupportedArgument
Object.defineProperty(ce,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(e){"href"===e||de.call(this,e)}})
var he=ue(ce,"models"),pe=he.get
Object.defineProperty(ce,"models",{configurable:!0,enumerable:!1,get:function(){var e=pe.call(this)
return e.length>0&&!("query"in this.args.named)&&oe(e[e.length-1])&&(e=e.slice(0,-1)),e}})
var fe=ue(ce,"query"),me=fe.get
Object.defineProperty(ce,"query",{configurable:!0,enumerable:!1,get:function(){var e
if("query"in this.args.named){var t=me.call(this)
return oe(t)?null!==(e=t.values)&&void 0!==e?e:ne:t}var r=pe.call(this)
if(r.length>0){var i=r[r.length-1]
if(oe(i)&&null!==i.values)return i.values}return ne}})
var ge=ce.onUnsupportedArgument
Object.defineProperty(ce,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(e){"params"!==e&&ge.call(this,e)}})
var be=e.LinkTo=L(le,te),ye=(0,t.templateFactory)({id:"OpzctQXz",block:'[[[11,"textarea"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs",isStrictMode:!1}),ve=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a}
class we extends X{static toString(){return"Textarea"}get class(){return"ember-text-area ember-view"}change(e){super.change(e)}input(e){super.input(e)}isSupportedArgument(e){return-1!==["type","value","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}ve([c.action],we.prototype,"change",null),ve([c.action],we.prototype,"input",null)
var xe=e.Textarea=L(we,ye)
function _e(e){return"function"==typeof e}function Se(e,t){return"attrs"===t[0]&&(t.shift(),1===t.length)?(0,a.childRefFor)(e,t[0]):(0,a.childRefFromParts)(e,t)}function ke(e){var t=e.indexOf(":")
if(-1===t)return[e,e,!0]
var r=e.substring(0,t),i=e.substring(t+1)
return[r,i,!1]}function Ae(e,t,r,i){var[n,s,o]=r
if("id"!==s){var c=n.indexOf(".")>-1,u=c?Se(t,n.split(".")):(0,a.childRefFor)(t,n)
i.setAttribute(s,u,!1,null)}else{var d=(0,l.get)(e,n)
null==d&&(d=e.elementId)
var h=(0,a.createPrimitiveRef)(d)
i.setAttribute("id",h,!0,null)}}function Ce(e,t,r){var i=t.split(":"),[n,s,o]=i
if(""===n)r.setAttribute("class",(0,a.createPrimitiveRef)(s),!0,null)
else{var l,c=n.indexOf(".")>-1,u=c?n.split("."):[],d=c?Se(e,u):(0,a.childRefFor)(e,n)
l=void 0===s?Pe(d,c?u[u.length-1]:n):function(e,t,r){return(0,a.createComputeRef)((()=>(0,a.valueForRef)(e)?t:r))}(d,s,o),r.setAttribute("class",l,!1,null)}}function Pe(e,t){var r
return(0,a.createComputeRef)((()=>{var i=(0,a.valueForRef)(e)
return!0===i?r||(r=(0,g.dasherize)(t)):i||0===i?String(i):null}))}function Oe(){}class Ee{constructor(e,t,r,i,n,s){this.component=e,this.args=t,this.argsTag=r,this.finalizer=i,this.hasWrappedElement=n,this.isInteractive=s,this.classRef=null,this.classRef=null,this.argsRevision=null===t?0:(0,o.valueForTag)(r),this.rootRef=(0,a.createConstRef)(e,"this"),(0,b.registerDestructor)(this,(()=>this.willDestroy()),!0),(0,b.registerDestructor)(this,(()=>this.component.destroy()))}willDestroy(){var{component:e,isInteractive:t}=this
if(t){(0,o.beginUntrackFrame)(),e.trigger("willDestroyElement"),e.trigger("willClearRender"),(0,o.endUntrackFrame)()
var r=(0,d.getViewElement)(e)
r&&((0,d.clearElementView)(r),(0,d.clearViewElement)(e))}e.renderer.unregister(e)}finalize(){var{finalizer:e}=this
e(),this.finalizer=Oe}}function Te(e){return(0,s.setInternalHelperManager)(e,{})}var Me=new v._WeakSet,Ie=Te((e=>{var t,{named:r,positional:i}=e,[n,s,...o]=i,c=s.debugLabel,u="target"in r?r.target:n,d=function(e,t){var r,i
t.length>0&&(r=e=>t.map(a.valueForRef).concat(e))
e&&(i=t=>{var r=(0,a.valueForRef)(e)
return r&&t.length>0&&(t[0]=(0,l.get)(t[0],r)),t})
return r&&i?e=>i(r(e)):r||i||Fe}("value"in r&&r.value||!1,o)
return t=(0,a.isInvokableRef)(s)?Ne(s,s,Re,d,c):function(e,t,r,i,n){0
return(...s)=>Ne(e,(0,a.valueForRef)(t),(0,a.valueForRef)(r),i,n)(...s)}((0,a.valueForRef)(n),u,s,d,c),Me.add(t),(0,a.createUnboundRef)(t,"(result of an `action` helper)")}))
function Fe(e){return e}function Ne(e,t,r,i,n){var s,a
return"string"==typeof r?(s=t,a=t.actions&&t.actions[r]):"function"==typeof r&&(s=e,a=r),(...e)=>{var t={target:s,args:e,label:"@glimmer/closure-action"}
return(0,f.flaggedInstrument)("interaction.ember-action",t,(()=>(0,y.join)(s,a,...i(e))))}}function Re(e){(0,a.updateRef)(this,e)}function De(e){var t=Object.create(null),r=Object.create(null)
for(var i in r[$e]=e,e){var n=e[i],s=(0,a.valueForRef)(n),o="function"==typeof s&&Me.has(s);(0,a.isUpdatableRef)(n)&&!o?t[i]=new Le(n,s):t[i]=s,r[i]=s}return r.attrs=t,r}var je=Symbol("REF")
class Le{constructor(e,t){this[d.MUTABLE_CELL]=!0,this[je]=e,this.value=t}update(e){(0,a.updateRef)(this[je],e)}}var Be=function(e,t){var r={}
for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i])
if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0
for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r},$e=(0,i.enumerableSymbol)("ARGS"),ze=(0,i.enumerableSymbol)("HAS_BLOCK"),Ue=Symbol("DIRTY_TAG"),qe=Symbol("IS_DISPATCHING_ATTRS"),He=Symbol("BOUNDS"),Ve=(0,a.createPrimitiveRef)("ember-view");(0,n.debugFreeze)([])
class Ge{templateFor(e){var t,{layout:i,layoutName:n}=e,s=(0,r.getOwner)(e)
if(void 0===i){if(void 0===n)return null
var a=s.lookup(`template:${n}`)
t=a}else{if(!_e(i))return null
t=i}return(0,v.unwrapTemplate)(t(s)).asWrappedLayout()}getDynamicLayout(e){return this.templateFor(e.component)}getTagName(e){var{component:t,hasWrappedElement:r}=e
return r?t&&t.tagName||"div":null}getCapabilities(){return Ke}prepareArgs(e,t){var r
if(t.named.has("__ARGS__")){var i=t.named.capture(),{__ARGS__:n}=i,s=Be(i,["__ARGS__"]),o=(0,a.valueForRef)(n)
return{positional:o.positional,named:Object.assign(Object.assign({},s),o.named)}}var l,{positionalParams:c}=null!==(r=e.class)&&void 0!==r?r:e
if(null==c||0===t.positional.length)return null
if("string"==typeof c){var u=t.positional.capture()
l={[c]:(0,a.createComputeRef)((()=>(0,w.reifyPositional)(u)))},Object.assign(l,t.named.capture())}else{if(!(Array.isArray(c)&&c.length>0))return null
var d=Math.min(c.length,t.positional.length)
l={},Object.assign(l,t.named.capture())
for(var h=0;h<d;h++){var p=c[h]
l[p]=t.positional.at(h)}}return{positional:v.EMPTY_ARRAY,named:l}}create(e,t,i,{isInteractive:n},s,l,c){var u=s.view,h=i.named.capture();(0,o.beginTrackFrame)()
var p=De(h),m=(0,o.endTrackFrame)();(function(e,t){e.named.has("id")&&(t.elementId=t.id)})(i,p),p.parentView=u,p[ze]=c,p._target=(0,a.valueForRef)(l),(0,r.setOwner)(p,e),(0,o.beginUntrackFrame)()
var g=t.create(p),b=(0,f._instrumentStart)("render.component",We,g)
s.view=g,null!=u&&(0,d.addChildView)(u,g),g.trigger("didReceiveAttrs")
var y=""!==g.tagName
y||(n&&g.trigger("willRender"),g._transitionTo("hasElement"),n&&g.trigger("willInsertElement"))
var v=new Ee(g,h,m,b,y,n)
return i.named.has("class")&&(v.classRef=i.named.get("class")),n&&y&&g.trigger("willRender"),(0,o.endUntrackFrame)(),(0,o.consumeTag)(v.argsTag),(0,o.consumeTag)(g[Ue]),v}getDebugName(e){var t
return e.fullName||e.normalizedName||(null===(t=e.class)||void 0===t?void 0:t.name)||e.name}getSelf({rootRef:e}){return e}didCreateElement({component:e,classRef:t,isInteractive:r,rootRef:n},s,l){(0,d.setViewElement)(e,s),(0,d.setElementView)(s,e)
var{attributeBindings:c,classNames:u,classNameBindings:h}=e
if(c&&c.length)(function(e,t,r,n){for(var s=[],o=e.length-1;-1!==o;){var l=ke(e[o]),c=l[1];-1===s.indexOf(c)&&(s.push(c),Ae(t,r,l,n)),o--}if(-1===s.indexOf("id")){var u=t.elementId?t.elementId:(0,i.guidFor)(t)
n.setAttribute("id",(0,a.createPrimitiveRef)(u),!1,null)}})(c,e,n,l)
else{var p=e.elementId?e.elementId:(0,i.guidFor)(e)
l.setAttribute("id",(0,a.createPrimitiveRef)(p),!1,null)}if(t){var f=Pe(t)
l.setAttribute("class",f,!1,null)}u&&u.length&&u.forEach((e=>{l.setAttribute("class",(0,a.createPrimitiveRef)(e),!1,null)})),h&&h.length&&h.forEach((e=>{Ce(n,e,l)})),l.setAttribute("class",Ve,!1,null),"ariaRole"in e&&l.setAttribute("role",(0,a.childRefFor)(n,"ariaRole"),!1,null),e._transitionTo("hasElement"),r&&((0,o.beginUntrackFrame)(),e.trigger("willInsertElement"),(0,o.endUntrackFrame)())}didRenderLayout(e,t){e.component[He]=t,e.finalize()}didCreate({component:e,isInteractive:t}){t&&(e._transitionTo("inDOM"),e.trigger("didInsertElement"),e.trigger("didRender"))}update(e){var{component:t,args:r,argsTag:i,argsRevision:n,isInteractive:s}=e
if(e.finalizer=(0,f._instrumentStart)("render.component",Xe,t),(0,o.beginUntrackFrame)(),null!==r&&!(0,o.validateTag)(i,n)){(0,o.beginTrackFrame)()
var a=De(r)
i=e.argsTag=(0,o.endTrackFrame)(),e.argsRevision=(0,o.valueForTag)(i),t[qe]=!0,t.setProperties(a),t[qe]=!1,t.trigger("didUpdateAttrs"),t.trigger("didReceiveAttrs")}s&&(t.trigger("willUpdate"),t.trigger("willRender")),(0,o.endUntrackFrame)(),(0,o.consumeTag)(i),(0,o.consumeTag)(t[Ue])}didUpdateLayout(e){e.finalize()}didUpdate({component:e,isInteractive:t}){t&&(e.trigger("didUpdate"),e.trigger("didRender"))}getDestroyable(e){return e}}function We(e){return e.instrumentDetails({initialRender:!0})}function Xe(e){return e.instrumentDetails({initialRender:!1})}var Ke={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!0,hasSubOwner:!1},Ye=new Ge
function Je(e){return e===Ye}var Qe,Ze=new WeakMap
class et extends(d.CoreView.extend(d.ChildViewsSupport,d.ViewStateSupport,d.ClassNamesSupport,x.TargetActionSupport,d.ActionSupport,d.ViewMixin,{didReceiveAttrs(){},didRender(){},didUpdate(){},didUpdateAttrs(){},willRender(){},willUpdate(){}})){constructor(){super(...arguments),this.isComponent=!0}init(e){super.init(e),this._superRerender=this.rerender,this.rerender=this._rerender,this[qe]=!1,this[Ue]=(0,o.createTag)(),this[He]=null
var t=this._dispatcher
if(t){var r=Ze.get(t)
r||(r=new WeakSet,Ze.set(t,r))
var i=Object.getPrototypeOf(this)
if(!r.has(i))t.lazyEvents.forEach(((e,r)=>{null!==e&&"function"==typeof this[e]&&t.setupHandlerForBrowserEvent(r)})),r.add(i)}}get _dispatcher(){if(void 0===this.__dispatcher){var e=(0,r.getOwner)(this)
if(e.lookup("-environment:main").isInteractive){var t=e.lookup("event_dispatcher:main")
this.__dispatcher=t}else this.__dispatcher=null}return this.__dispatcher}on(e,t,r){var i
return null===(i=this._dispatcher)||void 0===i||i.setupHandlerForEmberEvent(e),super.on(e,t,r)}_rerender(){(0,o.dirtyTag)(this[Ue]),this._superRerender()}[l.PROPERTY_DID_CHANGE](e,t){if(!this[qe]){var r=this[$e],i=void 0!==r?r[e]:void 0
void 0!==i&&(0,a.isUpdatableRef)(i)&&(0,a.updateRef)(i,2===arguments.length?t:(0,l.get)(this,e))}}getAttr(e){return this.get(e)}readDOMAttr(e){var t=(0,d.getViewElement)(this),r=t,i="http://www.w3.org/2000/svg"===r.namespaceURI,{type:n,normalized:s}=(0,w.normalizeProperty)(r,e)
return i||"attr"===n?r.getAttribute(s):r[s]}static toString(){return"@ember/component"}}e.Component=et,et.isComponentFactory=!0,et.reopenClass({positionalParams:[]}),(0,s.setInternalComponentManager)(Ye,et)
var tt=Symbol("RECOMPUTE_TAG"),rt=Symbol("IS_CLASSIC_HELPER")
function it(e){return new ot(e)}class nt extends _.FrameworkObject{init(e){super.init(e),this[tt]=(0,o.createTag)()}recompute(){(0,y.join)((()=>(0,o.dirtyTag)(this[tt])))}}e.Helper=nt,Qe=rt,nt.isHelperFactory=!0,nt[Qe]=!0,nt.helper=it
class st{constructor(e){this.capabilities=(0,s.helperCapabilities)("3.23",{hasValue:!0,hasDestroyable:!0})
var t={};(0,r.setOwner)(t,e),this.ownerInjection=t}createHelper(e,t){var r,i=null!=(r=e)&&"class"in r?e.create():e.create(this.ownerInjection)
return{instance:i,args:t}}getDestroyable({instance:e}){return e}getValue({instance:e,args:t}){var{positional:r,named:i}=t,n=e.compute(r,i)
return(0,o.consumeTag)(e[tt]),n}getDebugName(e){return(0,i.getDebugName)((e.class||e).prototype)}}(0,s.setHelperManager)((e=>new st(e)),nt)
var at=(0,s.getInternalHelperManager)(nt)
class ot{constructor(e){this.compute=e,this.isHelperFactory=!0}create(){return{compute:this.compute}}}var lt=new class{constructor(){this.capabilities=(0,s.helperCapabilities)("3.23",{hasValue:!0})}createHelper(e,t){var{compute:r}=e
return()=>r.call(null,t.positional,t.named)}getValue(e){return e()}getDebugName(e){return(0,i.getDebugName)(e.compute)}};(0,s.setHelperManager)((()=>lt),ot.prototype)
class ct{constructor(e){this.__string=e}toString(){return`${this.__string}`}toHTML(){return this.toString()}}e.SafeString=ct
var ut={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},dt=/[&<>"'`=]/,ht=/[&<>"'`=]/g
function pt(e){return ut[e]}function ft(e){return null!==e&&"object"==typeof e&&"toHTML"in e&&"function"==typeof e.toHTML}function mt(e){return{object:`${e.name}:${e.outlet}`}}var gt={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!1,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1}
class bt{create(e,t,r,i,n){var s=n.get("outletState"),o=t.ref
n.set("outletState",o)
var l={self:(0,a.createConstRef)(t.controller,"this"),finalize:(0,f._instrumentStart)("render.outlet",mt,t)}
if(void 0!==i.debugRenderTree){l.outlet={name:t.outlet}
var c=(0,a.valueForRef)(s),u=c&&c.render&&c.render.owner,d=(0,a.valueForRef)(o).render.owner
if(u&&u!==d){var h=d.mountPoint
l.engine=d,h&&(l.engineBucket={mountPoint:h})}}return l}getDebugName({name:e}){return e}getDebugCustomRenderTree(e,t,r){var i=[]
return t.outlet&&i.push({bucket:t.outlet,type:"outlet",name:t.outlet.name,args:w.EMPTY_ARGS,instance:void 0,template:void 0}),t.engineBucket&&i.push({bucket:t.engineBucket,type:"engine",name:t.engineBucket.mountPoint,args:w.EMPTY_ARGS,instance:t.engine,template:void 0}),i.push({bucket:t,type:"route-template",name:e.name,args:r,instance:e.controller,template:(0,v.unwrapTemplate)(e.template).moduleName}),i}getCapabilities(){return gt}getSelf({self:e}){return e}didCreate(){}didUpdate(){}didRenderLayout(e){e.finalize()}didUpdateLayout(){}getDestroyable(){return null}}var yt=new bt
class vt{constructor(e,t=yt){this.state=e,this.manager=t,this.handle=-1
var r=t.getCapabilities()
this.capabilities=(0,s.capabilityFlagsFrom)(r),this.compilable=r.wrapped?(0,v.unwrapTemplate)(e.template).asWrappedLayout():(0,v.unwrapTemplate)(e.template).asLayout(),this.resolvedName=e.name}}class wt extends Ge{constructor(e){super(),this.component=e}create(e,t,r,{isInteractive:i},n){var s=this.component,a=(0,f._instrumentStart)("render.component",We,s)
n.view=s
var l=""!==s.tagName
l||(i&&s.trigger("willRender"),s._transitionTo("hasElement"),i&&s.trigger("willInsertElement"))
var c=new Ee(s,null,o.CONSTANT_TAG,a,l,i)
return(0,o.consumeTag)(s[Ue]),c}}var xt={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!1,createArgs:!1,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!1,hasSubOwner:!1}
class _t{constructor(e){this.handle=-1,this.resolvedName="-top-level",this.capabilities=(0,s.capabilityFlagsFrom)(xt),this.compilable=null,this.manager=new wt(e)
var t=(0,k.getFactoryFor)(e)
this.state=t}}class St{constructor(e){this.inner=e}}var kt=Te((({positional:e})=>{var t=e[0]
return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(t)
return(0,o.consumeTag)((0,l.tagForObject)(e)),(0,i.isProxy)(e)&&(e=(0,x._contentFor)(e)),new St(e)}))}))
class At{constructor(e){this.length=e,this.position=0}isEmpty(){return!1}memoFor(e){return e}next(){var{length:e,position:t}=this
if(t>=e)return null
var r=this.valueFor(t),i=this.memoFor(t)
return this.position++,{value:r,memo:i}}}class Ct extends At{static from(e){return e.length>0?new this(e):null}static fromForEachable(e){var t=[]
return e.forEach((e=>t.push(e))),this.from(t)}constructor(e){super(e.length),this.array=e}valueFor(e){return this.array[e]}}class Pt extends At{static from(e){return e.length>0?new this(e):null}constructor(e){super(e.length),this.array=e}valueFor(e){return(0,l.objectAt)(this.array,e)}}class Ot extends At{static fromIndexable(e){var t=Object.keys(e)
if(0===t.length)return null
var r=[]
for(var i of t){var n
n=e[i],(0,o.isTracking)()&&((0,o.consumeTag)((0,o.tagFor)(e,i)),Array.isArray(n)&&(0,o.consumeTag)((0,o.tagFor)(n,"[]"))),r.push(n)}return new this(t,r)}static fromForEachable(e){var t=[],r=[],i=0,n=!1
return e.forEach((function(e,s){(n=n||arguments.length>=2)&&t.push(s),r.push(e),i++})),0===i?null:n?new this(t,r):new Ct(r)}constructor(e,t){super(t.length),this.keys=e,this.values=t}valueFor(e){return this.values[e]}memoFor(e){return this.keys[e]}}class Et{static from(e){var t=e[Symbol.iterator](),r=t.next(),{done:i}=r
return i?null:new this(t,r)}constructor(e,t){this.iterable=e,this.result=t,this.position=0}isEmpty(){return!1}next(){var{iterable:e,result:t,position:r}=this
if(t.done)return null
var i=this.valueFor(t,r),n=this.memoFor(t,r)
return this.position++,this.result=e.next(),{value:i,memo:n}}}class Tt extends Et{valueFor(e){return e.value}memoFor(e,t){return t}}class Mt extends Et{valueFor(e){return e.value[1]}memoFor(e){return e.value[0]}}function It(e){return null!=e&&"function"==typeof e.forEach}function Ft(e){return null!=e&&"function"==typeof e[Symbol.iterator]}(0,E.default)({FEATURES:{DEFAULT_HELPER_MANAGER:!0},scheduleRevalidate(){y._backburner.ensureInstance()},toBool:function(e){return(0,i.isProxy)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"content")),Boolean((0,l.get)(e,"isTruthy"))):(0,O.isArray)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),0!==e.length):(0,P.isHTMLSafe)(e)?Boolean(e.toString()):Boolean(e)},toIterator:function(e){return e instanceof St?function(e){if(t=e,null===t||"object"!=typeof t&&"function"!=typeof t)return null
var t
return Array.isArray(e)||(0,C.isEmberArray)(e)?Ot.fromIndexable(e):Ft(e)?Mt.from(e):It(e)?Ot.fromForEachable(e):Ot.fromIndexable(e)}(e.inner):function(e){if(!(0,i.isObject)(e))return null
return Array.isArray(e)?Ct.from(e):(0,C.isEmberArray)(e)?Pt.from(e):Ft(e)?Tt.from(e):It(e)?Ct.fromForEachable(e):null}(e)},getProp:l._getProp,setProp:l._setProp,getPath:l.get,setPath:l.set,scheduleDestroy(e,t){(0,y.schedule)("actions",null,t,e)},scheduleDestroyed(e){(0,y.schedule)("destroy",null,e)},warnIfStyleNotTrusted(e){},assert(e,t,r){},deprecate(e,t,r){}})
class Nt{constructor(e,t){this.owner=e,this.isInteractive=t,this.enableDebugTooling=S.ENV._DEBUG_RENDER_TREE}onTransactionCommit(){}}var Rt=Te((({positional:e,named:t})=>{var r=e[0],i=t.type,n=t.loc,s=t.original;(0,a.valueForRef)(i),(0,a.valueForRef)(n),(0,a.valueForRef)(s)
return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r)
return e}))})),Dt=Te((e=>{var t=e.positional[0]
return t})),jt=Te((({positional:e})=>(0,a.createComputeRef)((()=>{var t=e[0],r=e[1],i=(0,a.valueForRef)(t).split("."),n=i[i.length-1],s=(0,a.valueForRef)(r)
return!0===s?(0,g.dasherize)(n):s||0===s?String(s):""})))),Lt=Te((({positional:e},t)=>{var r,i=e[0],n=(0,a.valueForRef)(i)
return(0,a.createConstRef)(null===(r=t.factoryFor(n))||void 0===r?void 0:r.class,`(-resolve "${n}")`)})),Bt=Te((({positional:e})=>{var t=e[0]
return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(t)
return(0,i.isObject)(e)&&(0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),e}))})),$t=Te((({positional:e})=>{var t=e[0]
return(0,a.createInvokableRef)(t)})),zt=Te((({positional:e})=>{var t=e[0]
return(0,a.createReadOnlyRef)(t)})),Ut=Te((({positional:e,named:t})=>(0,a.createUnboundRef)((0,a.valueForRef)(e[0]),"(result of an `unbound` helper)"))),qt=Te((()=>(0,a.createConstRef)(([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,(e=>(4*e^16*Math.random()>>(2&e)).toString(16))),"unique-id")))
var Ht=["alt","shift","meta","ctrl"],Vt=/^click|mouse|touch/
var Gt={registeredActions:d.ActionManager.registeredActions,registerAction(e){var{actionId:t}=e
return d.ActionManager.registeredActions[t]=e,t},unregisterAction(e){var{actionId:t}=e
delete d.ActionManager.registeredActions[t]}}
class Wt{constructor(e,t,r,i,n,s){this.tag=(0,o.createUpdatableTag)(),this.element=e,this.owner=t,this.actionId=r,this.actionArgs=i,this.namedArgs=n,this.positional=s,this.eventName=this.getEventName(),(0,b.registerDestructor)(this,(()=>Gt.unregisterAction(this)))}getEventName(){var{on:e}=this.namedArgs
return void 0!==e?(0,a.valueForRef)(e):"click"}getActionArgs(){for(var e=new Array(this.actionArgs.length),t=0;t<this.actionArgs.length;t++)e[t]=(0,a.valueForRef)(this.actionArgs[t])
return e}getTarget(){var{implicitTarget:e,namedArgs:t}=this,{target:r}=t
return void 0!==r?(0,a.valueForRef)(r):(0,a.valueForRef)(e)}handler(e){var{actionName:t,namedArgs:r}=this,{bubbles:i,preventDefault:n,allowedKeys:s}=r,o=void 0!==i?(0,a.valueForRef)(i):void 0,l=void 0!==n?(0,a.valueForRef)(n):void 0,c=void 0!==s?(0,a.valueForRef)(s):void 0,u=this.getTarget(),h=!1!==o
return!function(e,t){if(null==t){if(Vt.test(e.type))return(0,d.isSimpleClick)(e)
t=""}if(t.indexOf("any")>=0)return!0
for(var r=0;r<Ht.length;r++)if(e[Ht[r]+"Key"]&&-1===t.indexOf(Ht[r]))return!1
return!0}(e,c)||(!1!==l&&e.preventDefault(),h||e.stopPropagation(),(0,y.join)((()=>{var e=this.getActionArgs(),r={args:e,target:u,name:null};(0,a.isInvokableRef)(t)?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{(0,a.updateRef)(t,e[0])})):"function"!=typeof t?(r.name=t,u.send?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{u.send.apply(u,[t,...e])})):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{u[t].apply(u,e)}))):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{t.apply(u,e)}))})),h)}}var Xt=new class{create(e,t,r,{named:n,positional:s}){for(var a=[],o=2;o<s.length;o++)a.push(s[o])
var l=(0,i.uuid)()
return new Wt(t,e,l,a,n,s)}getDebugName(){return"action"}install(e){var t,r,i,{element:n,actionId:s,positional:o}=e
o.length>1&&(i=o[0],r=o[1],t=(0,a.isInvokableRef)(r)?r:(0,a.valueForRef)(r))
e.actionName=t,e.implicitTarget=i,this.ensureEventSetup(e),Gt.registerAction(e),n.setAttribute("data-ember-action",""),n.setAttribute(`data-ember-action-${s}`,String(s))}update(e){var{positional:t}=e,r=t[1];(0,a.isInvokableRef)(r)||(e.actionName=(0,a.valueForRef)(r)),e.getEventName()!==e.eventName&&(this.ensureEventSetup(e),e.eventName=e.getEventName())}ensureEventSetup(e){var t=e.owner.lookup("event_dispatcher:main")
null==t||t.setupHandlerForEmberEvent(e.eventName)}getTag(e){return e.tag}getDestroyable(e){return e}},Kt=(0,s.setInternalModifierManager)(Xt,{}),Yt={dynamicLayout:!0,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!0}
var Jt=new class{getDynamicLayout(e){var t=e.engine.lookup("template:application")
return(0,v.unwrapTemplate)(t(e.engine)).asLayout()}getCapabilities(){return Yt}getOwner(e){return e.engine}create(e,{name:t},r,i){var n=e.buildChildEngineInstance(t)
n.boot()
var s,o,l,c=n.factoryFor("controller:application")||(0,T.generateControllerFactory)(n,"application")
if(r.named.has("model")&&(l=r.named.get("model")),void 0===l)o={engine:n,controller:s=c.create(),self:(0,a.createConstRef)(s,"this"),modelRef:l}
else{var u=(0,a.valueForRef)(l)
o={engine:n,controller:s=c.create({model:u}),self:(0,a.createConstRef)(s,"this"),modelRef:l}}return i.debugRenderTree&&(0,b.associateDestroyableChild)(n,s),o}getDebugName({name:e}){return e}getDebugCustomRenderTree(e,t,r,i){return[{bucket:t.engine,instance:t.engine,type:"engine",name:e.name,args:r},{bucket:t.controller,instance:t.controller,type:"route-template",name:"application",args:r,template:i}]}getSelf({self:e}){return e}getDestroyable(e){return e.engine}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}update(e){var{controller:t,modelRef:r}=e
void 0!==r&&t.set("model",(0,a.valueForRef)(r))}}
class Qt{constructor(e){this.resolvedName=e,this.handle=-1,this.manager=Jt,this.compilable=null,this.capabilities=(0,s.capabilityFlagsFrom)(Yt),this.state={name:e}}}var Zt=Te(((e,t)=>{var r,i,n,s=e.positional[0]
return r=(0,w.createCapturedArgs)(e.named,w.EMPTY_POSITIONAL),(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(s)
return"string"==typeof e?i===e?n:(i=e,n=(0,w.curry)(0,new Qt(e),t,r,!0)):(n=null,i=null,null)}))})),er=Te(((e,t,r)=>{var i=(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r.get("outletState")),t=void 0!==e?e.outlets:void 0
return void 0!==t?t.main:void 0})),n=null,s=null
return(0,a.createComputeRef)((()=>{var e,r,o=(0,a.valueForRef)(i),l=function(e,t){if(void 0===t)return null
var r=t.render
if(void 0===r)return null
var i=r.template
if(void 0===i)return null
_e(i)&&(i=i(r.owner))
return{ref:e,name:r.name,outlet:r.outlet,template:i,controller:r.controller,model:r.model}}(i,o)
if(!function(e,t){if(null===e)return null===t
if(null===t)return!1
return e.template===t.template&&e.controller===t.controller}(l,n))if(n=l,null!==l){var c=(0,v.dict)(),u=(0,a.childRefFromParts)(i,["render","model"]),d=(0,a.valueForRef)(u)
c.model=(0,a.createComputeRef)((()=>(n===l&&(d=(0,a.valueForRef)(u)),d)))
var h=(0,w.createCapturedArgs)(c,w.EMPTY_POSITIONAL)
s=(0,w.curry)(0,new vt(l),null!==(r=null===(e=null==o?void 0:o.render)||void 0===e?void 0:e.owner)&&void 0!==r?r:t,h,!0)}else s=null
return s}))}))
function tr(e){return{object:`component:${e}`}}var rr={action:Ie,mut:$t,readonly:zt,unbound:Ut,"-hash":w.hash,"-each-in":kt,"-normalize-class":jt,"-resolve":Lt,"-track-array":Bt,"-mount":Zt,"-outlet":er,"-in-el-null":Dt},ir=Object.assign(Object.assign({},rr),{array:w.array,concat:w.concat,fn:w.fn,get:w.get,hash:w.hash,"unique-id":qt})
ir["-disallow-dynamic-resolution"]=Rt
var nr={action:Kt},sr=Object.assign(Object.assign({},nr),{on:w.on})
new v._WeakSet
class ar{constructor(){this.componentDefinitionCache=new Map}lookupPartial(){return null}lookupHelper(e,t){var r=ir[e]
if(void 0!==r)return r
var i=t.factoryFor(`helper:${e}`)
if(void 0===i)return null
var n=i.class
return void 0===n?null:"function"==typeof n&&!0===n[rt]?((0,s.setInternalHelperManager)(at,i),i):n}lookupBuiltInHelper(e){var t
return null!==(t=rr[e])&&void 0!==t?t:null}lookupModifier(e,t){var r=sr[e]
if(void 0!==r)return r
var i=t.factoryFor(`modifier:${e}`)
return void 0===i?null:i.class||null}lookupBuiltInModifier(e){var t
return null!==(t=nr[e])&&void 0!==t?t:null}lookupComponent(e,t){var i=function(e,t,i){var n=function(e,t){var r=`component:${e}`
return t.factoryFor(r)||null}(t,e)
if((0,r.isFactory)(n)&&n.class){var a=(0,s.getComponentTemplate)(n.class)
if(void 0!==a)return{component:n,layout:a}}var o=function(e,t,r){var i=`template:components/${e}`
return t.lookup(i,r)||null}(t,e,i)
return null===n&&null===o?null:{component:n,layout:o}}(t,e)
if(null===i)return null
var n,a=null
n=null===i.component?a=i.layout(t):i.component
var o=this.componentDefinitionCache.get(n)
if(void 0!==o)return o
null===a&&null!==i.layout&&(a=i.layout(t))
var l=(0,f._instrumentStart)("render.getComponentDefinition",tr,e),c=null
if(null===i.component)if(S.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS)c={state:(0,w.templateOnlyComponent)(void 0,e),manager:w.TEMPLATE_ONLY_COMPONENT_MANAGER,template:a}
else{var u=t.factoryFor(k.privatize`component:-default`)
c={state:u,manager:(0,s.getInternalComponentManager)(u.class),template:a}}else{var d=i.component,h=d.class,p=(0,s.getInternalComponentManager)(h)
c={state:Je(p)?d:h,manager:p,template:a}}return l(),this.componentDefinitionCache.set(n,c),c}}var or="-top-level",lr="main"
class cr{static extend(e){return class extends cr{static create(t){return t?super.create(Object.assign({},e,t)):super.create(e)}}}static reopenClass(e){Object.assign(this,e)}static create(e){var{environment:t,application:i,template:n}=e,s=(0,r.getOwner)(e),a=n(s)
return new cr(t,s,a,i)}constructor(e,t,r,i){this._environment=e,this.owner=t,this.template=r,this.namespace=i
var n=(0,o.createTag)(),s={outlets:{main:void 0},render:{owner:t,into:void 0,outlet:lr,name:or,controller:void 0,model:void 0,template:r}},l=this.ref=(0,a.createComputeRef)((()=>((0,o.consumeTag)(n),s)),(e=>{(0,o.dirtyTag)(n),s.outlets.main=e}))
this.state={ref:l,name:or,outlet:lr,template:r,controller:void 0,model:void 0}}appendTo(e){var t
t=this._environment.hasDOM&&"string"==typeof e?document.querySelector(e):e
var r=this.owner.lookup("renderer:-dom");(0,y.schedule)("render",r,"appendOutletView",this,t)}rerender(){}setOutletState(e){(0,a.updateRef)(this.ref,e)}destroy(){}}e.OutletView=cr
class ur{constructor(e,t){this.view=e,this.outletState=t}child(){return new ur(this.view,this.outletState)}get(e){return this.outletState}set(e,t){return this.outletState=t,t}}var dr=()=>{}
class hr{constructor(e,t,r,n,s,a,o,l,c){this.root=e,this.runtime=t,this.id=e instanceof cr?(0,i.guidFor)(e):(0,d.getViewId)(e),this.result=void 0,this.destroyed=!1,this.render=()=>{var e=(0,v.unwrapTemplate)(s).asLayout(),i=(0,w.renderMain)(t,r,n,a,c(t.env,{element:o,nextSibling:null}),e,l),u=this.result=i.sync()
this.render=()=>u.rerender({alwaysRevalidate:!1})}}isFor(e){return this.root===e}destroy(){var{result:e,runtime:{env:t}}=this
this.destroyed=!0,this.runtime=void 0,this.root=null,this.result=void 0,this.render=void 0,void 0!==e&&(0,w.inTransaction)(t,(()=>(0,b.destroy)(e)))}}var pr=[]
function fr(e){var t=pr.indexOf(e)
pr.splice(t,1)}var mr=null
var gr=0
y._backburner.on("begin",(function(){for(var e of pr)e._scheduleRevalidate()})),y._backburner.on("end",(function(){for(var e of pr)if(!e._isValid()){if(gr>S.ENV._RERENDER_LOOP_LIMIT)throw gr=0,e.destroy(),new Error("infinite rendering invalidation detected")
return gr++,y._backburner.join(null,dr)}gr=0,function(){if(null!==mr){var e=mr.resolve
mr=null,y._backburner.join(null,e)}}()}))
class br{static create(e){var{_viewRegistry:t}=e,i=(0,r.getOwner)(e),n=i.lookup("service:-document"),s=i.lookup("-environment:main"),a=i.lookup(k.privatize`template:-root`),o=i.lookup("service:-dom-builder")
return new this(i,n,s,a,t,o)}constructor(e,r,i,n,s,a=w.clientBuilder){this._inRenderTransaction=!1,this._lastRevision=-1,this._destroyed=!1,this._owner=e,this._rootTemplate=n(e),this._viewRegistry=s||e.lookup("-view-registry:main"),this._roots=[],this._removedRoots=[],this._builder=a,this._isInteractive=i.isInteractive
var o=this._runtimeResolver=new ar,l=(0,M.artifacts)()
this._context=(0,t.programCompilationContext)(l,o)
var c=new Nt(e,i.isInteractive)
this._runtime=(0,w.runtimeContext)({appendOperations:i.hasDOM?new w.DOMTreeConstruction(r):new A.NodeDOMTreeConstruction(r),updateOperations:new w.DOMChanges(r)},c,l,o)}get debugRenderTree(){var{debugRenderTree:e}=this._runtime.env
return e}appendOutletView(e,t){var r=function(e){if(S.ENV._APPLICATION_TEMPLATE_WRAPPER){var t=Object.assign({},gt,{dynamicTag:!0,elementHook:!0,wrapped:!0}),r=new class extends bt{getTagName(){return"div"}getCapabilities(){return t}didCreateElement(e,t){t.setAttribute("class","ember-view"),t.setAttribute("id",(0,i.guidFor)(e))}}
return new vt(e.state,r)}return new vt(e.state)}(e)
this._appendDefinition(e,(0,w.curry)(0,r,e.owner,null,!0),t)}appendTo(e,t){var r=new _t(e)
this._appendDefinition(e,(0,w.curry)(0,r,this._owner,null,!0),t)}_appendDefinition(e,t,r){var i=(0,a.createConstRef)(t,"this"),n=new ur(null,a.UNDEFINED_REFERENCE),s=new hr(e,this._runtime,this._context,this._owner,this._rootTemplate,i,r,n,this._builder)
this._renderRoot(s)}rerender(){this._scheduleRevalidate()}register(e){var t=(0,d.getViewId)(e)
this._viewRegistry[t]=e}unregister(e){delete this._viewRegistry[(0,d.getViewId)(e)]}remove(e){e._transitionTo("destroying"),this.cleanupRootFor(e),this._isInteractive&&e.trigger("didDestroyElement")}cleanupRootFor(e){if(!this._destroyed)for(var t=this._roots,r=this._roots.length;r--;){var i=t[r]
i.isFor(e)&&(i.destroy(),t.splice(r,1))}}destroy(){this._destroyed||(this._destroyed=!0,this._clearAllRoots())}getElement(e){if(this._isInteractive)return(0,d.getViewElement)(e)
throw new Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")}getBounds(e){var t=e[He]
return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}createElement(e){return this._runtime.env.getAppendOperations().createElement(e)}_renderRoot(e){var t,{_roots:r}=this
r.push(e),1===r.length&&(t=this,pr.push(t)),this._renderRootsTransaction()}_renderRoots(){var e,{_roots:t,_runtime:r,_removedRoots:i}=this
do{e=t.length,(0,w.inTransaction)(r.env,(()=>{for(var r=0;r<t.length;r++){var n=t[r]
n.destroyed?i.push(n):r>=e||n.render()}this._lastRevision=(0,o.valueForTag)(o.CURRENT_TAG)}))}while(t.length>e)
for(;i.length;){var n=i.pop(),s=t.indexOf(n)
t.splice(s,1)}0===this._roots.length&&fr(this)}_renderRootsTransaction(){if(!this._inRenderTransaction){this._inRenderTransaction=!0
var e=!1
try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=(0,o.valueForTag)(o.CURRENT_TAG)),this._inRenderTransaction=!1}}}_clearAllRoots(){var e=this._roots
for(var t of e)t.destroy()
this._removedRoots.length=0,this._roots=[],e.length&&fr(this)}_scheduleRevalidate(){y._backburner.scheduleOnce("render",this,this._revalidate)}_isValid(){return this._destroyed||0===this._roots.length||(0,o.validateTag)(o.CURRENT_TAG,this._lastRevision)}_revalidate(){this._isValid()||this._renderRootsTransaction()}}e.Renderer=br
var yr={}
var vr=(0,t.templateFactory)({id:"3jT+eJpe",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs",isStrictMode:!1})
e.componentCapabilities=s.componentCapabilities,e.modifierCapabilities=s.modifierCapabilities})),e("@ember/-internals/meta/index",["exports","@ember/-internals/meta/lib/meta"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Meta",{enumerable:!0,get:function(){return t.Meta}}),Object.defineProperty(e,"UNDEFINED",{enumerable:!0,get:function(){return t.UNDEFINED}}),Object.defineProperty(e,"counters",{enumerable:!0,get:function(){return t.counters}}),Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return t.meta}}),Object.defineProperty(e,"peekMeta",{enumerable:!0,get:function(){return t.peekMeta}}),Object.defineProperty(e,"setMeta",{enumerable:!0,get:function(){return t.setMeta}})})),e("@ember/-internals/meta/lib/meta",["exports","@ember/-internals/utils","@ember/debug","@glimmer/destroyable"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.meta=e.counters=e.UNDEFINED=e.Meta=void 0,e.peekMeta=d,e.setMeta=u
var n=Object.prototype
var s=e.UNDEFINED=(0,t.symbol)("undefined"),a=1
class o{constructor(e){this._listenersVersion=1,this._inheritedEnd=-1,this._flattenedVersion=0,this._parent=void 0,this._descriptors=void 0,this._mixins=void 0,this._lazyChains=void 0,this._values=void 0,this._revisions=void 0,this._isInit=!1,this.source=e,this.proto=void 0===e.constructor?void 0:e.constructor.prototype,this._listeners=void 0}get parent(){var e=this._parent
if(void 0===e){var t=l(this.source)
this._parent=e=null===t||t===n?null:h(t)}return e}setInitializing(){this._isInit=!0}unsetInitializing(){this._isInit=!1}isInitializing(){return this._isInit}isPrototypeMeta(e){return this.proto===this.source&&this.source===e}_getOrCreateOwnMap(e){return this[e]||(this[e]=Object.create(null))}_getOrCreateOwnSet(e){return this[e]||(this[e]=new Set)}_findInheritedMap(e,t){for(var r=this;null!==r;){var i=r[e]
if(void 0!==i){var n=i.get(t)
if(void 0!==n)return n}r=r.parent}}_hasInInheritedSet(e,t){for(var r=this;null!==r;){var i=r[e]
if(void 0!==i&&i.has(t))return!0
r=r.parent}return!1}valueFor(e){var t=this._values
return void 0!==t?t[e]:void 0}setValueFor(e,t){this._getOrCreateOwnMap("_values")[e]=t}revisionFor(e){var t=this._revisions
return void 0!==t?t[e]:void 0}setRevisionFor(e,t){this._getOrCreateOwnMap("_revisions")[e]=t}writableLazyChainsFor(e){var t=this._getOrCreateOwnMap("_lazyChains"),r=t[e]
return void 0===r&&(r=t[e]=[]),r}readableLazyChainsFor(e){var t=this._lazyChains
if(void 0!==t)return t[e]}addMixin(e){this._getOrCreateOwnSet("_mixins").add(e)}hasMixin(e){return this._hasInInheritedSet("_mixins",e)}forEachMixins(e){for(var t,r=this;null!==r;){var i=r._mixins
void 0!==i&&(t=void 0===t?new Set:t,i.forEach((r=>{t.has(r)||(t.add(r),e(r))}))),r=r.parent}}writeDescriptors(e,t){(this._descriptors||(this._descriptors=new Map)).set(e,t)}peekDescriptors(e){var t=this._findInheritedMap("_descriptors",e)
return t===s?void 0:t}removeDescriptors(e){this.writeDescriptors(e,s)}forEachDescriptors(e){for(var t,r=this;null!==r;){var i=r._descriptors
void 0!==i&&(t=void 0===t?new Set:t,i.forEach(((r,i)=>{t.has(i)||(t.add(i),r!==s&&e(i,r))}))),r=r.parent}}addToListeners(e,t,r,i,n){this.pushListener(e,t,r,i?1:0,n)}removeFromListeners(e,t,r){this.pushListener(e,t,r,2)}pushListener(e,t,r,i,n=!1){var s=this.writableListeners(),a=p(s,e,t,r)
if(-1!==a&&a<this._inheritedEnd&&(s.splice(a,1),this._inheritedEnd--,a=-1),-1===a)s.push({event:e,target:t,method:r,kind:i,sync:n})
else{var o=s[a]
2===i&&2!==o.kind?s.splice(a,1):(o.kind=i,o.sync=n)}}writableListeners(){return this._flattenedVersion!==a||this.source!==this.proto&&-1!==this._inheritedEnd||a++,-1===this._inheritedEnd&&(this._inheritedEnd=0,this._listeners=[]),this._listeners}flattenedListeners(){if(this._flattenedVersion<a){0
var e=this.parent
if(null!==e){var t=e.flattenedListeners()
if(void 0!==t)if(void 0===this._listeners)this._listeners=t
else{var r=this._listeners
for(var i of(this._inheritedEnd>0&&(r.splice(0,this._inheritedEnd),this._inheritedEnd=0),t)){-1===p(r,i.event,i.target,i.method)&&(r.unshift(i),this._inheritedEnd++)}}}this._flattenedVersion=a}return this._listeners}matchingListeners(e){var t,r=this.flattenedListeners()
if(void 0!==r)for(var i of r)i.event!==e||0!==i.kind&&1!==i.kind||(void 0===t&&(t=[]),t.push(i.target,i.method,1===i.kind))
return t}observerEvents(){var e,t=this.flattenedListeners()
if(void 0!==t)for(var r of t)0!==r.kind&&1!==r.kind||-1===r.event.indexOf(":change")||(void 0===e&&(e=[]),e.push(r))
return e}}e.Meta=o
var l=Object.getPrototypeOf,c=new WeakMap
function u(e,t){c.set(e,t)}function d(e){var t=c.get(e)
if(void 0!==t)return t
for(var r=l(e);null!==r;){if(void 0!==(t=c.get(r)))return t.proto!==r&&(t.proto=r),t
r=l(r)}return null}var h=e.meta=function(e){var t=d(e)
if(null!==t&&t.source===e)return t
var r=new o(e)
return u(e,r),r}
function p(e,t,r,i){for(var n=e.length-1;n>=0;n--){var s=e[n]
if(s.event===t&&s.target===r&&s.method===i)return n}return-1}})),e("@ember/-internals/metal/index",["exports","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@ember/-internals/environment","@ember/runloop","@glimmer/destroyable","@glimmer/validator","@glimmer/manager","@glimmer/util","@ember/array/-internals","ember/version","@ember/-internals/owner"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h){"use strict"
function p(e,r,i,n,s,a=!0){n||"function"!=typeof i||(n=i,i=null),(0,t.meta)(e).addToListeners(r,i,n,!0===s,a)}function f(e,r,i,n){var s,a
"object"==typeof i?(s=i,a=n):(s=null,a=i),(0,t.meta)(e).removeFromListeners(r,s,a)}function m(e,r,i,n,s){if(void 0===n){var a=void 0===s?(0,t.peekMeta)(e):s
n=null!==a?a.matchingListeners(r):void 0}if(void 0===n||0===n.length)return!1
for(var o=n.length-3;o>=0;o-=3){var l=n[o],c=n[o+1],u=n[o+2]
if(c){u&&f(e,r,l,c),l||(l=e)
var d=typeof c
"string"!==d&&"symbol"!==d||(c=l[c]),c.apply(l,i)}}return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.TrackedDescriptor=e.SYNC_OBSERVERS=e.PROXY_CONTENT=e.PROPERTY_DID_CHANGE=e.NAMESPACES_BY_ID=e.NAMESPACES=e.Libraries=e.DEBUG_INJECTION_FUNCTIONS=e.ComputedProperty=e.ComputedDescriptor=e.ASYNC_OBSERVERS=void 0,e._getPath=Ae,e._getProp=ke,e._setProp=Oe,e.activateObserver=S,e.addArrayObserver=function(e,t,r){return G(e,t,r,p)},e.addListener=p,e.addNamespace=function(e){$e.unprocessedNamespaces=!0,Ue.push(e)},e.addObserver=x,e.alias=function(e){return ie(new Te(e),Ee)},e.arrayContentDidChange=z,e.arrayContentWillChange=$,e.autoComputed=function(...e){return ie(new fe(e),me)},e.beginPropertyChanges=j,e.cached=void 0,e.changeProperties=B,e.computed=ge,Object.defineProperty(e,"createCache",{enumerable:!0,get:function(){return o.createCache}}),e.defineDecorator=ye,e.defineProperty=be,e.defineValue=ve,e.deprecateProperty=function(e,t,r,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set(e){Pe(this,r,e)},get(){return Se(this,r)}})},e.descriptorForDecorator=ae,e.descriptorForProperty=se,e.eachProxyArrayDidChange=function(e,t,r,i){var n=Fe.get(e)
void 0!==n&&n.arrayDidChange(e,t,r,i)},e.eachProxyArrayWillChange=function(e,t,r,i){var n=Fe.get(e)
void 0!==n&&n.arrayWillChange(e,t,r,i)},e.endPropertyChanges=L,e.expandProperties=ue,e.findNamespace=function(e){Be||Ge()
return qe[e]}
e.findNamespaces=He,e.flushAsyncObservers=function(e=!0){var r=(0,o.valueForTag)(o.CURRENT_TAG)
if(O===r)return
O=r,w.forEach(((r,i)=>{var n=(0,t.peekMeta)(i)
r.forEach(((r,a)=>{if(!(0,o.validateTag)(r.tag,r.lastRevision)){var l=()=>{try{m(i,a,[i,r.path],void 0,n)}finally{r.tag=Y(i,r.path,(0,o.tagMetaFor)(i),(0,t.peekMeta)(i)),r.lastRevision=(0,o.valueForTag)(r.tag)}}
e?(0,s.schedule)("actions",l):l()}}))}))},e.get=Se,e.getCachedValueFor=function(e,r){var i=(0,t.peekMeta)(e)
return i?i.valueFor(r):void 0},e.getProperties=function(e,t){var r,i={},n=1
2===arguments.length&&Array.isArray(t)?(n=0,r=arguments[1]):r=Array.from(arguments)
for(;n<r.length;n++)i[r[n]]=Se(e,r[n])
return i},Object.defineProperty(e,"getValue",{enumerable:!0,get:function(){return o.getValue}}),e.hasListeners=function(e,r){var i=(0,t.peekMeta)(e)
if(null===i)return!1
var n=i.matchingListeners(r)
return void 0!==n&&n.length>0},e.hasUnknownProperty=_e,e.inject=function(e,...t){var r,i
Q(t)?r=t:"string"==typeof t[0]&&(i=t[0])
var n=function(t){var r=(0,h.getOwner)(this)||this.container
return r.lookup(`${e}:${i||t}`)}
0
var s=ge({get:n,set(e,t){be(this,e,null,t)}})
return r?s(r[0],r[1],r[2]):s},e.isClassicDecorator=oe,e.isComputed=function(e,t){return Boolean(se(e,t))},Object.defineProperty(e,"isConst",{enumerable:!0,get:function(){return o.isConst}}),e.isElementDescriptor=Q,e.isNamespaceSearchDisabled=function(){return Be},e.libraries=void 0,e.makeComputedDecorator=ie,e.markObjectAsDirty=F,e.nativeDescDecorator=function(e){var t=function(){return e}
return le(t),t},e.notifyPropertyChange=D,e.objectAt=q,e.on=function(...e){var t=e.pop(),i=e
return(0,r.setListeners)(t,i),t},e.processAllNamespaces=Ge,e.processNamespace=Ve,e.removeArrayObserver=function(e,t,r){return G(e,t,r,f)},e.removeListener=f,e.removeNamespace=function(e){var t=(0,r.getName)(e)
delete qe[t],Ue.splice(Ue.indexOf(e),1),t in n.context.lookup&&e===n.context.lookup[t]&&(n.context.lookup[t]=void 0)},e.removeObserver=function(e,r,i,n,s=y){var a=b(r),o=(0,t.peekMeta)(e)
null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||C(e,a,s)
f(e,a,i,n)},e.replace=function(e,t,r,i=U){n=e,null!=n&&"function"==typeof n.replace?e.replace(t,r,i):V(e,t,r,i)
var n},e.replaceInNativeArray=V,e.revalidateObservers=P
e.sendEvent=m,e.set=Pe,e.setClassicDecorator=le,e.setNamespaceSearchDisabled=function(e){Be=Boolean(e)},e.setProperties=function(e,t){if(null===t||"object"!=typeof t)return t
return B((()=>{var r=Object.keys(t)
for(var i of r)Pe(e,i,t[i])})),t},e.setUnprocessedMixins=function(){ze=!0},e.tagForObject=function(e){if((0,r.isObject)(e))return(0,o.tagFor)(e,M)
return o.CONSTANT_TAG},e.tagForProperty=I,e.tracked=Re,e.trySet=function(e,t,r){return Pe(e,t,r,!0)}
var g=":change"
function b(e){return e+g}var y=!n.ENV._DEFAULT_ASYNC_OBSERVERS,v=e.SYNC_OBSERVERS=new Map,w=e.ASYNC_OBSERVERS=new Map
function x(e,r,i,n,s=y){var a=b(r)
p(e,a,i,n,!1,s)
var o=(0,t.peekMeta)(e)
null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||S(e,a,s)}function _(e,t){var r=!0===t?v:w
return r.has(e)||(r.set(e,new Map),(0,a.registerDestructor)(e,(()=>function(e){v.size>0&&v.delete(e)
w.size>0&&w.delete(e)}(e)),!0)),r.get(e)}function S(e,r,i=!1){var n=_(e,i)
if(n.has(r))n.get(r).count++
else{var s=r.substring(0,r.lastIndexOf(":")),a=Y(e,s,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e))
n.set(r,{count:1,path:s,tag:a,lastRevision:(0,o.valueForTag)(a),suspended:!1})}}var k=!1,A=[]
function C(e,t,r=!1){if(!0!==k){var i=!0===r?v:w,n=i.get(e)
if(void 0!==n){var s=n.get(t)
s.count--,0===s.count&&(n.delete(t),0===n.size&&i.delete(e))}}else A.push([e,t,r])}function P(e){w.has(e)&&w.get(e).forEach((r=>{r.tag=Y(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)})),v.has(e)&&v.get(e).forEach((r=>{r.tag=Y(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)}))}var O=0
function E(){v.forEach(((e,r)=>{var i=(0,t.peekMeta)(r)
e.forEach(((e,n)=>{if(!e.suspended&&!(0,o.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,m(r,n,[r,e.path],void 0,i)}finally{e.tag=Y(r,e.path,(0,o.tagMetaFor)(r),(0,t.peekMeta)(r)),e.lastRevision=(0,o.valueForTag)(e.tag),e.suspended=!1}}))}))}function T(e,t,r){var i=v.get(e)
if(i){var n=i.get(b(t))
n&&(n.suspended=r)}}var M=(0,r.symbol)("SELF_TAG")
function I(e,t,r=!1,i){var n=(0,l.getCustomTagFor)(e)
if(void 0!==n)return n(e,t,r)
var s=(0,o.tagFor)(e,t,i)
return s}function F(e,t){(0,o.dirtyTagFor)(e,t),(0,o.dirtyTagFor)(e,M)}var N=e.PROPERTY_DID_CHANGE=Symbol("PROPERTY_DID_CHANGE")
var R=0
function D(e,r,i,n){var s=void 0===i?(0,t.peekMeta)(e):i
null!==s&&(s.isInitializing()||s.isPrototypeMeta(e))||(F(e,r),R<=0&&E(),N in e&&(4===arguments.length?e[N](r,n):e[N](r)))}function j(){R++,k=!0}function L(){--R<=0&&(E(),function(){for(var[e,t,r]of(k=!1,A))C(e,t,r)
A=[]}())}function B(e){j()
try{e()}finally{L()}}function $(e,t,r,i){return void 0===t?(t=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1)),m(e,"@array:before",[e,t,r,i]),e}function z(e,r,i,n,s=!0){void 0===r?(r=0,i=n=-1):(void 0===i&&(i=-1),void 0===n&&(n=-1))
var a=(0,t.peekMeta)(e)
if(s&&((n<0||i<0||n-i!=0)&&D(e,"length",a),D(e,"[]",a)),m(e,"@array:change",[e,r,i,n]),null!==a){var o=-1===i?0:i,l=e.length-((-1===n?0:n)-o),c=r<0?l+r:r
if(void 0!==a.revisionFor("firstObject")&&0===c&&D(e,"firstObject",a),void 0!==a.revisionFor("lastObject"))l-1<c+o&&D(e,"lastObject",a)}return e}var U=Object.freeze([])
function q(e,t){return Array.isArray(e)?e[t]:e.objectAt(t)}var H=6e4
function V(e,t,r,i){if($(e,t,r,i.length),i.length<=H)e.splice(t,r,...i)
else{e.splice(t,r)
for(var n=0;n<i.length;n+=H){var s=i.slice(n,n+H)
e.splice(t+n,0,...s)}}z(e,t,r,i.length)}function G(e,t,r,i){var n,{willChange:s,didChange:a}=r
return i(e,"@array:before",t,s),i(e,"@array:change",t,a),null===(n=e._revalidate)||void 0===n||n.call(e),e}var W=new c._WeakSet
function X(e,i,n){var s=e.readableLazyChainsFor(i)
if(void 0!==s){if((0,r.isObject)(n))for(var[a,l]of s)(0,o.updateTag)(a,Y(n,l,(0,o.tagMetaFor)(n),(0,t.peekMeta)(n)))
s.length=0}}function K(e,t,r,i){var n=[]
for(var s of t)J(n,e,s,r,i)
return(0,o.combine)(n)}function Y(e,t,r,i){return(0,o.combine)(J([],e,t,r,i))}function J(e,i,n,s,a){for(var l,c,u=i,d=s,h=a,p=n.length,f=-1;;){var m=f+1
if(-1===(f=n.indexOf(".",m))&&(f=p),"@each"===(l=n.slice(m,f))&&f!==p){m=f+1,f=n.indexOf(".",m)
var g=u.length
if("number"!=typeof g||!Array.isArray(u)&&!("objectAt"in u))break
if(0===g){e.push(I(u,"[]"))
break}l=-1===f?n.slice(m):n.slice(m,f)
for(var b=0;b<g;b++){var y=q(u,b)
y&&(e.push(I(y,l,!0)),void 0!==(c=null!==(h=(0,t.peekMeta)(y))?h.peekDescriptors(l):void 0)&&"string"==typeof c.altKey&&y[l])}e.push(I(u,"[]",!0,d))
break}var v=I(u,l,!0,d)
if(c=null!==h?h.peekDescriptors(l):void 0,e.push(v),f===p){W.has(c)&&u[l]
break}if(void 0===c)u=l in u||"function"!=typeof u.unknownProperty?u[l]:u.unknownProperty(l)
else if(W.has(c))u=u[l]
else{var w=h.source===u?h:(0,t.meta)(u),x=w.revisionFor(l)
if(void 0===x||!(0,o.validateTag)(v,x)){var _=w.writableLazyChainsFor(l),S=n.substring(f+1),k=(0,o.createUpdatableTag)()
_.push([k,S]),e.push(k)
break}u=w.valueFor(l)}if(!(0,r.isObject)(u))break
d=(0,o.tagMetaFor)(u),h=(0,t.peekMeta)(u)}return e}function Q(e){var[t,r,i]=e
return 3===e.length&&("function"==typeof t||"object"==typeof t&&null!==t)&&"string"==typeof r&&("object"==typeof i&&null!==i||void 0===i)}class Z{constructor(){this.enumerable=!0,this.configurable=!0,this._dependentKeys=void 0,this._meta=void 0}setup(e,t,r,i){i.writeDescriptors(t,this)}teardown(e,t,r){r.removeDescriptors(t)}}function ee(e,t){function r(){return t.get(this,e)}return r}function te(e,t){var r=function(r){return t.set(this,e,r)}
return re.add(r),r}e.ComputedDescriptor=Z
var re=new c._WeakSet
function ie(e,r){var i=function(r,i,n,s,a){var o=3===arguments.length?(0,t.meta)(r):s
return e.setup(r,i,n,o),{enumerable:e.enumerable,configurable:e.configurable,get:ee(i,e),set:te(i,e)}}
return le(i,e),Object.setPrototypeOf(i,r.prototype),i}var ne=new WeakMap
function se(e,r,i){var n=void 0===i?(0,t.peekMeta)(e):i
if(null!==n)return n.peekDescriptors(r)}function ae(e){return ne.get(e)}function oe(e){return"function"==typeof e&&ne.has(e)}function le(e,t=!0){ne.set(e,t)}var ce=/\.@each$/
function ue(e,t){var r=e.indexOf("{")
r<0?t(e.replace(ce,".[]")):de("",e,r,t)}function de(e,t,r,i){var n,s,a=t.indexOf("}"),o=0,l=t.substring(r+1,a).split(","),c=t.substring(a+1)
for(e+=t.substring(0,r),s=l.length;o<s;)(n=c.indexOf("{"))<0?i((e+l[o++]+c).replace(ce,".[]")):de(e+l[o++],c,n,i)}function he(){}class pe extends Z{constructor(e){super(),this._readOnly=!1,this._hasConfig=!1,this._getter=void 0,this._setter=void 0
var t=e[e.length-1]
if("function"==typeof t||null!==t&&"object"==typeof t){this._hasConfig=!0
var r=e.pop()
if("function"==typeof r)this._getter=r
else{var i=r
this._getter=i.get||he,this._setter=i.set}}e.length>0&&this._property(...e)}setup(e,t,r,i){if(super.setup(e,t,r,i),!1===this._hasConfig){var{get:n,set:s}=r
void 0!==n&&(this._getter=n),void 0!==s&&(this._setter=function(e,t){var r=s.call(this,t)
return void 0!==n&&void 0===r?n.call(this):r})}}_property(...e){var t=[]
function r(e){t.push(e)}for(var i of e)ue(i,r)
this._dependentKeys=t}get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s),l=n.revisionFor(r)
if(void 0!==l&&(0,o.validateTag)(a,l))i=n.valueFor(r)
else{var{_getter:c,_dependentKeys:u}=this;(0,o.untrack)((()=>{i=c.call(e,r)})),void 0!==u&&(0,o.updateTag)(a,K(e,u,s,n)),n.setValueFor(r,i),n.setRevisionFor(r,(0,o.valueForTag)(a)),X(n,r,i)}return(0,o.consumeTag)(a),Array.isArray(i)&&(0,o.consumeTag)((0,o.tagFor)(i,"[]")),i}set(e,r,i){this._readOnly&&this._throwReadOnlyError(e,r)
var n,s=(0,t.meta)(e)
s.isInitializing()&&void 0!==this._dependentKeys&&this._dependentKeys.length>0&&"function"==typeof e[N]&&e.isComponent&&x(e,r,(()=>{e[N](r)}),void 0,!0)
try{j(),n=this._set(e,r,i,s),X(s,r,n)
var a=(0,o.tagMetaFor)(e),l=(0,o.tagFor)(e,r,a),{_dependentKeys:c}=this
void 0!==c&&(0,o.updateTag)(l,K(e,c,a,s)),s.setRevisionFor(r,(0,o.valueForTag)(l))}finally{L()}return n}_throwReadOnlyError(e,t){throw new Error(`Cannot set read-only property "${t}" on object: ${(0,i.inspect)(e)}`)}_set(e,t,r,i){var n,s=void 0!==i.revisionFor(t),a=i.valueFor(t),{_setter:o}=this
T(e,t,!0)
try{n=o.call(e,t,r,a)}finally{T(e,t,!1)}return s&&a===n||(i.setValueFor(t,n),D(e,t,i,r)),n}teardown(e,t,r){void 0!==r.revisionFor(t)&&(r.setRevisionFor(t,void 0),r.setValueFor(t,void 0)),super.teardown(e,t,r)}}e.ComputedProperty=pe
class fe extends pe{get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s),l=n.revisionFor(r)
if(void 0!==l&&(0,o.validateTag)(a,l))i=n.valueFor(r)
else{var{_getter:c}=this,u=(0,o.track)((()=>{i=c.call(e,r)}));(0,o.updateTag)(a,u),n.setValueFor(r,i),n.setRevisionFor(r,(0,o.valueForTag)(a)),X(n,r,i)}return(0,o.consumeTag)(a),Array.isArray(i)&&(0,o.consumeTag)((0,o.tagFor)(i,"[]",s)),i}}class me extends Function{readOnly(){var e=ae(this)
return e._readOnly=!0,this}meta(e){var t=ae(this)
return 0===arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return ae(this)._getter}set enumerable(e){ae(this).enumerable=e}}function ge(...e){return Q(e)?ie(new pe([]),me)(e[0],e[1],e[2]):ie(new pe(e),me)}function be(e,r,i,n,s){var a=void 0===s?(0,t.meta)(e):s,o=se(e,r,a),l=void 0!==o
l&&o.teardown(e,r,a),oe(i)?ye(e,r,i,a):null==i?ve(e,r,n,l,!0):Object.defineProperty(e,r,i),a.isPrototypeMeta(e)||P(e)}function ye(e,t,r,i){var n
return n=r(e,t,void 0,i),Object.defineProperty(e,t,n),r}function ve(e,t,r,i,n=!0){return!0===i||!1===n?Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r}):e[t]=r,r}var we=new r.Cache(1e3,(e=>e.indexOf(".")))
function xe(e){return"string"==typeof e&&-1!==we.get(e)}e.PROXY_CONTENT=(0,r.symbol)("PROXY_CONTENT")
function _e(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function Se(e,t){return xe(t)?Ae(e,t):ke(e,t)}function ke(e,t){var r
if(null!=e)return"object"==typeof e||"function"==typeof e?(void 0===(r=e[t])&&"object"==typeof e&&!(t in e)&&_e(e)&&(r=e.unknownProperty(t)),(0,o.isTracking)()&&((0,o.consumeTag)((0,o.tagFor)(e,t)),(Array.isArray(r)||(0,u.isEmberArray)(r))&&(0,o.consumeTag)((0,o.tagFor)(r,"[]")))):r=e[t],r}function Ae(e,t,r){var i="string"==typeof t?t.split("."):t
for(var n of i){if(null==e||e.isDestroyed)return
if(r&&("__proto__"===n||"constructor"===n))return
e=ke(e,n)}return e}ke("foo","a"),ke("foo",1),ke({},"a"),ke({},1),ke({unknownProperty(){}},"a"),ke({unknownProperty(){}},1),Se({},"foo"),Se({},"foo.bar")
var Ce={}
function Pe(e,t,r,i){return e.isDestroyed?r:xe(t)?function(e,t,r,i){var n=t.split("."),s=n.pop()
var a=Ae(e,n,!0)
if(null!=a)return Pe(a,s,r)
if(!i)throw new Error(`Property set failed: object in path "${n.join(".")}" could not be found.`)}(e,t,r,i):Oe(e,t,r)}function Oe(e,t,i){var n,s=(0,r.lookupDescriptor)(e,t)
return null!==s&&re.has(s.set)?(e[t]=i,i):(void 0!==(n=e[t])||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=i,n!==i&&D(e,t)):e.setUnknownProperty(t,i),i)}(0,r.setProxy)(Ce),(0,o.track)((()=>ke({},"a"))),(0,o.track)((()=>ke({},1))),(0,o.track)((()=>ke({a:[]},"a"))),(0,o.track)((()=>ke({a:Ce},"a")))
class Ee extends Function{readOnly(){return ae(this).readOnly(),this}oneWay(){return ae(this).oneWay(),this}meta(e){var t=ae(this)
if(0===arguments.length)return t._meta||{}
t._meta=e}}class Te extends Z{constructor(e){super(),this.altKey=e}setup(e,t,r,i){super.setup(e,t,r,i),W.add(this)}get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s);(0,o.untrack)((()=>{i=Se(e,this.altKey)}))
var l=n.revisionFor(r)
return void 0!==l&&(0,o.validateTag)(a,l)||((0,o.updateTag)(a,Y(e,this.altKey,s,n)),n.setRevisionFor(r,(0,o.valueForTag)(a)),X(n,r,i)),(0,o.consumeTag)(a),i}set(e,t,r){return Pe(e,this.altKey,r)}readOnly(){this.set=Me}oneWay(){this.set=Ie}}function Me(e,t){throw new Error(`Cannot set read-only property '${t}' on object: ${(0,i.inspect)(e)}`)}function Ie(e,t,r){return be(e,t,null),Pe(e,t,r)}var Fe=new WeakMap
class Ne{constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){var t=this._registry
for(var r of t)if(r.name===e)return r}register(e,t,r){var i=this._registry.length
this._getLibraryByName(e)||(r&&(i=this._coreLibIndex++),this._registry.splice(i,0,{name:e,version:t}))}registerCoreLibrary(e,t){this.register(e,t,!0)}deRegister(e){var t,r=this._getLibraryByName(e)
r&&(t=this._registry.indexOf(r),this._registry.splice(t,1))}}function Re(...e){if(!Q(e)){var t=e[0],r=t?t.initializer:void 0,i=t?t.value:void 0,n=function(e,t,n,s,a){return De([e,t,{initializer:r||(()=>i)}])}
return le(n),n}return De(e)}function De([e,r,i]){var{getter:n,setter:s}=(0,o.trackedData)(r,i?i.initializer:void 0)
function a(){var e=n(this)
return(Array.isArray(e)||(0,u.isEmberArray)(e))&&(0,o.consumeTag)((0,o.tagFor)(e,"[]")),e}function l(e){s(this,e),(0,o.dirtyTagFor)(this,M)}var c={enumerable:!0,configurable:!0,isTracked:!0,get:a,set:l}
return re.add(l),(0,t.meta)(e).writeDescriptors(r,new je(a,l)),c}e.Libraries=Ne,(e.libraries=new Ne).registerCoreLibrary("Ember",d.default)
class je{constructor(e,t){this._get=e,this._set=t,W.add(this)}get(e){return this._get.call(e)}set(e,t,r){this._set.call(e,r)}}e.TrackedDescriptor=je
e.cached=(...e)=>{var[t,r,i]=e
var n=new WeakMap,s=i.get
i.get=function(){return n.has(this)||n.set(this,(0,o.createCache)(s.bind(this))),(0,o.getValue)(n.get(this))}}
var Le=Object.prototype.hasOwnProperty,Be=!1,$e={_set:0,_unprocessedNamespaces:!1,get unprocessedNamespaces(){return this._unprocessedNamespaces},set unprocessedNamespaces(e){this._set++,this._unprocessedNamespaces=e}},ze=!1,Ue=e.NAMESPACES=[],qe=e.NAMESPACES_BY_ID=Object.create(null)
function He(){if($e.unprocessedNamespaces){var e,t=n.context.lookup,i=Object.keys(t)
for(var s of i)if((e=s.charCodeAt(0))>=65&&e<=90){var a=Ke(t,s)
a&&(0,r.setName)(a,s)}}}function Ve(e){We([e.toString()],e,new Set)}function Ge(){var e=$e.unprocessedNamespaces
if(e&&(He(),$e.unprocessedNamespaces=!1),e||ze){var t=Ue
for(var r of t)Ve(r)
ze=!1}}function We(e,t,i){var n=e.length,s=e.join(".")
for(var a in qe[s]=t,(0,r.setName)(t,s),t)if(Le.call(t,a)){var o=t[a]
if(e[n]=a,o&&void 0===(0,r.getName)(o))(0,r.setName)(o,e.join("."))
else if(o&&Xe(o)){if(i.has(o))continue
i.add(o),We(e,o,i)}}e.length=n}function Xe(e){return null!=e&&"object"==typeof e&&e.isNamespace}function Ke(e,t){try{var r=e[t]
return(null!==r&&"object"==typeof r||"function"==typeof r)&&r.isNamespace&&r}catch(i){}}})),e("@ember/-internals/overrides/index",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.onEmberGlobalAccess=void 0})),e("@ember/-internals/owner/index",["exports","@glimmer/owner"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.getOwner=function(e){return(0,t.getOwner)(e)},e.isFactory=function(e){return null!=e&&"function"==typeof e.create},e.setOwner=function(e,r){(0,t.setOwner)(e,r)}})),e("@ember/-internals/routing/index",["exports","@ember/routing/-internals"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterDSL",{enumerable:!0,get:function(){return t.DSL}}),Object.defineProperty(e,"controllerFor",{enumerable:!0,get:function(){return t.controllerFor}}),Object.defineProperty(e,"generateController",{enumerable:!0,get:function(){return t.generateController}}),Object.defineProperty(e,"generateControllerFactory",{enumerable:!0,get:function(){return t.generateControllerFactory}})})),e("@ember/-internals/runtime/index",["exports","@ember/-internals/runtime/lib/mixins/registry_proxy","@ember/-internals/runtime/lib/mixins/container_proxy","@ember/-internals/runtime/lib/mixins/comparable","@ember/-internals/runtime/lib/mixins/action_handler","@ember/-internals/runtime/lib/mixins/-proxy","@ember/enumerable/mutable","@ember/-internals/runtime/lib/mixins/target_action_support","@ember/-internals/runtime/lib/ext/rsvp"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ActionHandler",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Comparable",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"ContainerProxyMixin",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"MutableEnumerable",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"RSVP",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"RegistryProxyMixin",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"TargetActionSupport",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"_ProxyMixin",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"_contentFor",{enumerable:!0,get:function(){return s.contentFor}}),Object.defineProperty(e,"onerrorDefault",{enumerable:!0,get:function(){return l.onerrorDefault}})})),e("@ember/-internals/runtime/lib/ext/rsvp",["exports","rsvp","@ember/runloop","@ember/-internals/error-handling","@ember/debug"],(function(e,t,r,i,n){"use strict"
function s(e){var t=function(e){if(!e)return
var t=e
if(t.errorThrown)return function(e){var t=e.errorThrown
"string"==typeof t&&(t=new Error(t))
return Object.defineProperty(t,"__reason_with_error_thrown__",{value:e,enumerable:!1}),t}(t)
var r=e
if("UnrecognizedURLError"===r.name)return
if("TransitionAborted"===e.name)return
return e}(e)
if(t){var r=(0,i.getDispatchOverride)()
if(!r)throw t
r(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.onerrorDefault=s,t.configure("async",((e,t)=>{r._backburner.schedule("actions",null,e,t)})),t.configure("after",(e=>{r._backburner.schedule(r._rsvpErrorQueue,null,e)})),t.on("error",s)
e.default=t})),e("@ember/-internals/runtime/lib/mixins/-proxy",["exports","@ember/-internals/meta","@ember/object/mixin","@ember/-internals/metal","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/validator"],(function(e,t,r,i,n,s,a,o){"use strict"
function l(e){var t=(0,i.get)(e,"content")
return(0,o.updateTag)((0,i.tagForObject)(e),(0,i.tagForObject)(t)),t}function c(e,t,r){var s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,t,s)
if(t in e)return a
var c=[a,(0,o.tagFor)(e,"content",s)],u=l(e)
return(0,n.isObject)(u)&&c.push((0,i.tagForProperty)(u,t,r)),(0,o.combine)(c)}Object.defineProperty(e,"__esModule",{value:!0}),e.contentFor=l,e.default=void 0
var u=r.default.create({content:null,init(){this._super(...arguments),(0,n.setProxy)(this),(0,i.tagForObject)(this),(0,a.setCustomTagFor)(this,c)},willDestroy(){this.set("content",null),this._super(...arguments)},isTruthy:(0,i.computed)("content",(function(){return Boolean((0,i.get)(this,"content"))})),unknownProperty(e){var t=l(this)
if(t)return(0,i.get)(t,e)},setUnknownProperty(e,r){var n=(0,t.meta)(this)
if(n.isInitializing()||n.isPrototypeMeta(this))return(0,i.defineProperty)(this,e,null,r),r
var s=l(this)
return(0,i.set)(s,e,r)}})
e.default=u})),e("@ember/-internals/runtime/lib/mixins/action_handler",["exports","@ember/object/mixin","@ember/-internals/metal","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create({mergedProperties:["actions"],send(e,...t){if(this.actions&&this.actions[e]&&!(!0===this.actions[e].apply(this,t)))return
var i=(0,r.get)(this,"target")
i&&i.send(...arguments)}})
e.default=n})),e("@ember/-internals/runtime/lib/mixins/comparable",["exports","@ember/object/mixin"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.create({compare:null})
e.default=r})),e("@ember/-internals/runtime/lib/mixins/container_proxy",["exports","@ember/runloop","@ember/object/mixin"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=r.default.create({__container__:null,ownerInjection(){return this.__container__.ownerInjection()},lookup(e,t){return this.__container__.lookup(e,t)},destroy(){var e=this.__container__
e&&(0,t.join)((()=>{e.destroy(),(0,t.schedule)("destroy",e,"finalizeDestroy")})),this._super()},factoryFor(e){return this.__container__.factoryFor(e)}})
e.default=i})),e("@ember/-internals/runtime/lib/mixins/registry_proxy",["exports","@ember/debug","@ember/object/mixin"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=r.default.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:n("register"),unregister:n("unregister"),hasRegistration:n("has"),registeredOption:n("getOption"),registerOptions:n("options"),registeredOptions:n("getOptions"),registerOptionsForType:n("optionsForType"),registeredOptionsForType:n("getOptionsForType"),inject:n("injection")})
function n(e){return function(...t){return this.__registry__[e](...t)}}e.default=i})),e("@ember/-internals/runtime/lib/mixins/target_action_support",["exports","@ember/-internals/environment","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=i.default.create({target:null,action:null,actionContext:null,actionContextObject:(0,r.computed)("actionContext",(function(){var e=(0,r.get)(this,"actionContext")
if("string"==typeof e){var i=(0,r.get)(this,e)
return void 0===i&&(i=(0,r.get)(t.context.lookup,e)),i}return e})),triggerAction(e={}){var{action:i,target:n,actionContext:s}=e
i=i||(0,r.get)(this,"action"),n=n||function(e){var i=(0,r.get)(e,"target")
if(i){if("string"==typeof i){var n=(0,r.get)(e,i)
return void 0===n&&(n=(0,r.get)(t.context.lookup,i)),n}return i}if(e._target)return e._target
return null}(this),void 0===s&&(s=(0,r.get)(this,"actionContextObject")||this)
var a,o=Array.isArray(s)?s:[s]
if(n&&i&&!1!==(null!=(a=n)&&"object"==typeof a&&"function"==typeof a.send?n.send(i,...o):n[i](...o)))return!0
return!1}})
e.default=s})),e("@ember/-internals/string/index",["exports","@ember/-internals/utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.classify=function(e){return o.get(e)},e.dasherize=function(e){return i.get(e)}
var r=/[ _]/g,i=new t.Cache(1e3,(e=>{return(t=e,c.get(t)).replace(r,"-")
var t})),n=/^(-|_)+(.)?/,s=/(.)(-|_|\.|\s)+(.)?/g,a=/(^|\/|\.)([a-z])/g,o=new t.Cache(1e3,(e=>{for(var t=(e,t,r)=>r?`_${r.toUpperCase()}`:"",r=(e,t,r,i)=>t+(i?i.toUpperCase():""),i=e.split("/"),o=0;o<i.length;o++)i[o]=i[o].replace(n,t).replace(s,r)
return i.join("/").replace(a,(e=>e.toUpperCase()))})),l=/([a-z\d])([A-Z])/g,c=new t.Cache(1e3,(e=>e.replace(l,"$1_$2").toLowerCase()))})),e("@ember/-internals/utility-types/index",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/-internals/utils/index",["exports","@glimmer/util","@ember/debug"],(function(e,t,r){"use strict"
function i(e){var t=Object.create(null)
for(var r in t[e]=1,t)if(r===e)return r
return e}function n(e){return null!==e&&("object"==typeof e||"function"==typeof e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT=e.GUID_KEY=e.Cache=void 0,e.canInvoke=function(e,t){return null!=e&&"function"==typeof e[t]},e.checkHasSuper=void 0,e.dictionary=function(e){var t=Object.create(e)
return t._dict=null,delete t._dict,t},e.enumerableSymbol=function(e){var t=u+Math.floor(Math.random()*Date.now()).toString(),r=i(`__${e}${t}__`)
0
return r},e.generateGuid=function(e,t=o){var r=t+a().toString()
n(e)&&l.set(e,r)
return r},e.getDebugName=void 0,e.getName=function(e){return A.get(e)},e.guidFor=function(e){var t
if(n(e))void 0===(t=l.get(e))&&(t=`${o}${a()}`,l.set(e,t))
else if(void 0===(t=c.get(e))){var r=typeof e
t="string"===r?`st${a()}`:"number"===r?`nu${a()}`:"symbol"===r?`sy${a()}`:`(${e})`,c.set(e,t)}return t},e.intern=i,e.isInternalSymbol=function(e){return-1!==d.indexOf(e)},e.isObject=n,e.isProxy=function(e){if(n(e))return O.has(e)
return!1},e.lookupDescriptor=k,e.observerListenerMetaFor=function(e){return w.get(e)},e.setListeners=function(e,t){x(e).listeners=t},e.setName=function(e,t){n(e)&&A.set(e,t)},e.setObservers=function(e,t){x(e).observers=t},e.setProxy=function(e){n(e)&&O.add(e)},e.teardownMandatorySetter=e.symbol=e.setupMandatorySetter=e.setWithMandatorySetter=void 0,e.toString=function e(t){if("string"==typeof t)return t
if(null===t)return"null"
if(void 0===t)return"undefined"
if(Array.isArray(t)){for(var r="",i=0;i<t.length;i++)i>0&&(r+=","),P(t[i])||(r+=e(t[i]))
return r}if("function"==typeof t.toString)return t.toString()
return C.call(t)},e.uuid=a,e.wrap=function(e,t){if(!y(e))return e
if(!_.has(t)&&y(t))return S(e,S(t,b))
return S(e,t)}
var s=0
function a(){return++s}var o="ember",l=new WeakMap,c=new Map,u=e.GUID_KEY=i(`__ember${Date.now()}`)
var d=[]
var h
e.symbol=Symbol
e.getDebugName=h
var p=/\.(_super|call\(this|apply\(this)/,f=Function.prototype.toString,m=e.checkHasSuper=f.call((function(){return this})).indexOf("return this")>-1?function(e){return p.test(f.call(e))}:function(){return!0},g=new WeakMap,b=e.ROOT=Object.freeze((function(){}))
function y(e){var t=g.get(e)
return void 0===t&&(t=m(e),g.set(e,t)),t}g.set(b,!1)
class v{constructor(){this.listeners=void 0,this.observers=void 0}}var w=new WeakMap
function x(e){var t=w.get(e)
return void 0===t&&(t=new v,w.set(e,t)),t}var _=new t._WeakSet
function S(e,t){function r(){var r=this._super
this._super=t
var i=e.apply(this,arguments)
return this._super=r,i}_.add(r)
var i=w.get(e)
return void 0!==i&&w.set(r,i),r}function k(e,t){var r=e
do{var i=Object.getOwnPropertyDescriptor(r,t)
if(void 0!==i)return i
r=Object.getPrototypeOf(r)}while(null!==r)
return null}var A=new WeakMap
var C=Object.prototype.toString
function P(e){return null==e}var O=new t._WeakSet
e.Cache=class{constructor(e,t,r=new Map){this.limit=e,this.func=t,this.store=r,this.size=0,this.misses=0,this.hits=0}get(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}})),e("@ember/-internals/views/index",["exports","@ember/-internals/views/lib/system/utils","@ember/-internals/views/lib/system/event_dispatcher","@ember/-internals/views/lib/component_lookup","@ember/-internals/views/lib/views/core_view","@ember/-internals/views/lib/mixins/class_names_support","@ember/-internals/views/lib/mixins/child_views_support","@ember/-internals/views/lib/mixins/view_state_support","@ember/-internals/views/lib/mixins/view_support","@ember/-internals/views/lib/mixins/action_support","@ember/-internals/views/lib/compat/attrs","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,i,n,s,a,o,l,c,u,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ActionManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"ActionSupport",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ChildViewsSupport",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ClassNamesSupport",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ComponentLookup",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"CoreView",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"MUTABLE_CELL",{enumerable:!0,get:function(){return u.MUTABLE_CELL}}),Object.defineProperty(e,"ViewMixin",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ViewStateSupport",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"addChildView",{enumerable:!0,get:function(){return t.addChildView}}),Object.defineProperty(e,"clearElementView",{enumerable:!0,get:function(){return t.clearElementView}}),Object.defineProperty(e,"clearViewElement",{enumerable:!0,get:function(){return t.clearViewElement}}),Object.defineProperty(e,"constructStyleDeprecationMessage",{enumerable:!0,get:function(){return t.constructStyleDeprecationMessage}}),Object.defineProperty(e,"getChildViews",{enumerable:!0,get:function(){return t.getChildViews}}),Object.defineProperty(e,"getElementView",{enumerable:!0,get:function(){return t.getElementView}}),Object.defineProperty(e,"getRootViews",{enumerable:!0,get:function(){return t.getRootViews}}),Object.defineProperty(e,"getViewBoundingClientRect",{enumerable:!0,get:function(){return t.getViewBoundingClientRect}}),Object.defineProperty(e,"getViewBounds",{enumerable:!0,get:function(){return t.getViewBounds}}),Object.defineProperty(e,"getViewClientRects",{enumerable:!0,get:function(){return t.getViewClientRects}}),Object.defineProperty(e,"getViewElement",{enumerable:!0,get:function(){return t.getViewElement}}),Object.defineProperty(e,"getViewId",{enumerable:!0,get:function(){return t.getViewId}}),Object.defineProperty(e,"isSimpleClick",{enumerable:!0,get:function(){return t.isSimpleClick}}),Object.defineProperty(e,"setElementView",{enumerable:!0,get:function(){return t.setElementView}}),Object.defineProperty(e,"setViewElement",{enumerable:!0,get:function(){return t.setViewElement}})})),e("@ember/-internals/views/lib/compat/attrs",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.MUTABLE_CELL=void 0
e.MUTABLE_CELL=Symbol("MUTABLE_CELL")})),e("@ember/-internals/views/lib/compat/fallback-view-registry",["exports","@ember/-internals/utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.dictionary)(null)})),e("@ember/-internals/views/lib/component_lookup",["exports","@ember/object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({componentFor(e,t){var r=`component:${e}`
return t.factoryFor(r)},layoutFor(e,t,r){var i=`template:components/${e}`
return t.lookup(i,r)}})})),e("@ember/-internals/views/lib/mixins/action_support",["exports","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=r.default.create({send(e,...r){var i=this.actions&&this.actions[e]
if(i&&!(!0===i.apply(this,r)))return
var n=(0,t.get)(this,"target")
n&&n.send(...arguments)}})
e.default=n})),e("@ember/-internals/views/lib/mixins/child_views_support",["exports","@ember/-internals/metal","@ember/object/mixin","@ember/-internals/views/lib/system/utils"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=r.default.create({childViews:(0,t.nativeDescDecorator)({configurable:!1,enumerable:!1,get(){return(0,i.getChildViews)(this)}}),appendChild(e){(0,i.addChildView)(this,e)}})
e.default=n}))
e("@ember/-internals/views/lib/mixins/class_names_support",["exports","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=Object.freeze([]),s=r.default.create({concatenatedProperties:["classNames","classNameBindings"],init(){this._super(...arguments)},classNames:n,classNameBindings:n})
e.default=s})),e("@ember/-internals/views/lib/mixins/view_state_support",["exports","@ember/object/mixin"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.create({_transitionTo(e){var t=this._currentState,r=this._currentState=this._states[e]
this._state=e,t&&t.exit&&t.exit(this),r.enter&&r.enter(this)}})
e.default=r})),e("@ember/-internals/views/lib/mixins/view_support",["exports","@ember/-internals/utils","@ember/-internals/metal","@ember/object/mixin","@ember/debug","@ember/-internals/browser-environment","@ember/-internals/views/lib/system/utils"],(function(e,t,r,i,n,s,a){"use strict"
function o(){return this}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=i.default.create({concatenatedProperties:["attributeBindings"],nearestOfType(e){for(var t=this.parentView,r=e instanceof i.default?t=>e.detect(t):t=>e.detect(t.constructor);t;){if(r(t))return t
t=t.parentView}},nearestWithProperty(e){for(var t=this.parentView;t;){if(e in t)return t
t=t.parentView}},rerender(){return this._currentState.rerender(this)},element:(0,r.nativeDescDecorator)({configurable:!1,enumerable:!1,get(){return this.renderer.getElement(this)}}),appendTo(e){var t
return t=s.hasDOM&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this},append(){return this.appendTo(document.body)},elementId:null,willInsertElement:o,didInsertElement:o,willClearRender:o,destroy(){this._super(...arguments),this._currentState.destroy(this)},willDestroyElement:o,didDestroyElement:o,parentViewDidChange:o,tagName:null,init(){this._super(...arguments),this.elementId||""===this.tagName||(this.elementId=(0,t.guidFor)(this))},handleEvent(e,t){return this._currentState.handleEvent(this,e,t)}})
e.default=l})),e("@ember/-internals/views/lib/system/action_manager",["exports"],(function(e){"use strict"
function t(){}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.registeredActions={}})),e("@ember/-internals/views/lib/system/event_dispatcher",["exports","@ember/-internals/owner","@ember/debug","@ember/-internals/metal","@ember/object","@ember/-internals/views","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o="ember-application"
class l extends n.default{constructor(){super(...arguments),this.events={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"},this.rootElement="body",this._eventHandlers=Object.create(null),this._didSetup=!1,this.finalEventNameMapping=null,this._sanitizedRootElement=null,this.lazyEvents=new Map,this._reverseEventNameMapping=null}setup(e,t){var r,n=this.finalEventNameMapping=Object.assign(Object.assign({},(0,i.get)(this,"events")),e)
this._reverseEventNameMapping=Object.keys(n).reduce(((e,t)=>{var r=n[t]
return r?Object.assign(Object.assign({},e),{[r]:t}):e}),{})
var s=this.lazyEvents
null!=t&&(0,i.set)(this,"rootElement",t)
var a=(0,i.get)(this,"rootElement"),l="string"!=typeof a?a:document.querySelector(a)
for(var c in l.classList.add(o),this._sanitizedRootElement=l,n)Object.prototype.hasOwnProperty.call(n,c)&&s.set(c,null!==(r=n[c])&&void 0!==r?r:null)
this._didSetup=!0}setupHandlerForBrowserEvent(e){var t
this.setupHandler(this._sanitizedRootElement,e,null!==(t=this.finalEventNameMapping[e])&&void 0!==t?t:null)}setupHandlerForEmberEvent(e){var t,r=null===(t=this._reverseEventNameMapping)||void 0===t?void 0:t[e]
r&&this.setupHandler(this._sanitizedRootElement,r,e)}setupHandler(e,t,r){if(null!==r&&this.lazyEvents.has(t)){var i=(e,t)=>{var i=(0,s.getElementView)(e),n=!0
return i&&(n=i.handleEvent(r,t)),n},n=(e,t)=>{var i,n=e.getAttribute("data-ember-action")
if(""===n)for(var s of(i=[],e.attributes)){if(0===s.name.indexOf("data-ember-action-")){var o=a.default.registeredActions[s.value]
i.push(o)}}else if(n){var l=a.default.registeredActions[n]
l&&(i=[l])}if(i){for(var c=!0,u=0;u<i.length;u++){var d=i[u]
d&&d.eventName===r&&(c=d.handler(t)&&c)}return c}},o=this._eventHandlers[t]=e=>{var t=e.target
do{if((0,s.getElementView)(t)){if(!1===i(t,e)){e.preventDefault(),e.stopPropagation()
break}if(!0===e.cancelBubble)break}else if("function"==typeof t.hasAttribute&&t.hasAttribute("data-ember-action")&&!1===n(t,e))break
t=t.parentNode}while(t instanceof Element)}
e.addEventListener(t,o),this.lazyEvents.delete(t)}}destroy(){if(!1!==this._didSetup){var e=this._sanitizedRootElement
if(e){for(var t in this._eventHandlers)e.removeEventListener(t,this._eventHandlers[t])
return e.classList.remove(o),this._super(...arguments)}}}toString(){return"(EventDispatcher)"}}e.default=l})),e("@ember/-internals/views/lib/system/utils",["exports","@ember/-internals/owner","@ember/-internals/utils","@ember/debug"],(function(e,t,r,i){"use strict"
function n(e){return""!==e.tagName&&e.elementId?e.elementId:(0,r.guidFor)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.addChildView=function(e,t){var r=o.get(e)
void 0===r&&(r=l(e))
r.add(n(t))},e.clearElementView=function(e){s.delete(e)},e.clearViewElement=function(e){a.delete(e)},e.collectChildViews=c,e.constructStyleDeprecationMessage=function(e){return'Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. Style affected: "'+e+'"'},e.contains=function(e,t){if(void 0!==e.contains)return e.contains(t)
var r=t.parentNode
for(;r&&(r=r.parentNode);)if(r===e)return!0
return!1},e.elMatches=void 0,e.getChildViews=function(e){var r=(0,t.getOwner)(e)
var i=r.lookup("-view-registry:main")
return c(e,i)},e.getElementView=function(e){return s.get(e)||null},e.getRootViews=function(e){var t=e.lookup("-view-registry:main"),r=[]
return Object.keys(t).forEach((e=>{var i=t[e]
null===i.parentView&&r.push(i)})),r},e.getViewBoundingClientRect=function(e){return d(e).getBoundingClientRect()},e.getViewBounds=u,e.getViewClientRects=function(e){return d(e).getClientRects()},e.getViewElement=function(e){return a.get(e)||null},e.getViewId=n,e.getViewRange=d,e.initChildViews=l,e.isSimpleClick=function(e){if(!(e instanceof MouseEvent))return!1
var t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,r=e.which>1
return!t&&!r},e.matches=function(e,t){return h.call(e,t)},e.setElementView=function(e,t){s.set(e,t)},e.setViewElement=function(e,t){a.set(e,t)}
var s=new WeakMap,a=new WeakMap
var o=new WeakMap
function l(e){var t=new Set
return o.set(e,t),t}function c(e,t){var r=[],i=o.get(e)
return void 0!==i&&i.forEach((e=>{var i=t[e]
!i||i.isDestroying||i.isDestroyed||r.push(i)})),r}function u(e){return e.renderer.getBounds(e)}function d(e){var t=u(e),r=document.createRange()
return r.setStartBefore(t.firstNode),r.setEndAfter(t.lastNode),r}var h=e.elMatches="undefined"!=typeof Element?Element.prototype.matches:void 0})),e("@ember/-internals/views/lib/views/core_view",["exports","@ember/-internals/metal","@ember/-internals/runtime","@ember/object/evented","@ember/object/-internals","@ember/-internals/views/lib/views/states"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a}
class o extends(n.FrameworkObject.extend(i.default,r.ActionHandler)){constructor(){super(...arguments),this.isView=!0}init(e){var t
super.init(e),this._superTrigger=this.trigger,this.trigger=this._trigger,this._superHas=this.has,this.has=this._has,null!==(t=this.parentView)&&void 0!==t||(this.parentView=null),this._state="preRender",this._currentState=this._states.preRender}instrumentDetails(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e}_trigger(e,...t){this._superTrigger(e,...t)
var r=this[e]
if("function"==typeof r)return r.apply(this,t)}_has(e){return"function"==typeof this[e]||this._superHas(e)}}o.isViewFactory=!0,a([(0,t.inject)("renderer","-dom")],o.prototype,"renderer",void 0),o.prototype._states=s.default
e.default=o})),e("@ember/-internals/views/lib/views/states",["exports","@ember/-internals/utils","@ember/debug","@ember/instrumentation","@ember/runloop"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=Object.freeze({appendChild(){throw new Error("You can't use appendChild outside of the rendering process")},handleEvent:()=>!0,rerender(){},destroy(){}}),a=Object.freeze(Object.assign({},s)),o=Object.freeze(Object.assign(Object.assign({},s),{rerender(e){e.renderer.rerender()},destroy(e){e.renderer.remove(e)},handleEvent:(e,t,r)=>!e.has(t)||(0,i.flaggedInstrument)(`interaction.${t}`,{event:r,view:e},(()=>(0,n.join)(e,e.trigger,t,r)))})),l=Object.freeze(Object.assign(Object.assign({},o),{enter(e){e.renderer.register(e)}})),c=Object.freeze(Object.assign(Object.assign({},s),{appendChild(){throw new Error("You can't call appendChild on a view being destroyed")},rerender(){throw new Error("You can't call rerender on a view being destroyed")}})),u=Object.freeze({preRender:a,inDOM:l,hasElement:o,destroying:c})
e.default=u})),e("@ember/application/index",["exports","@ember/owner","@ember/-internals/utils","@ember/-internals/environment","@ember/-internals/browser-environment","@ember/debug","@ember/runloop","@ember/-internals/metal","@ember/application/lib/lazy_load","@ember/-internals/runtime","@ember/-internals/views","@ember/routing/route","@ember/routing/router","@ember/routing/auto-location","@ember/routing/hash-location","@ember/routing/history-location","@ember/routing/none-location","@ember/routing/-internals","@ember/application/instance","@ember/engine","@ember/-internals/container","@ember/-internals/glimmer","@ember/routing/router-service"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y,v,w,x,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"_loaded",{enumerable:!0,get:function(){return l._loaded}}),e.getOwner=e.default=void 0,Object.defineProperty(e,"onLoad",{enumerable:!0,get:function(){return l.onLoad}}),Object.defineProperty(e,"runLoadHooks",{enumerable:!0,get:function(){return l.runLoadHooks}}),e.setOwner=void 0
e.getOwner=t.getOwner,e.setOwner=t.setOwner
class S extends v.default{constructor(){super(...arguments),this._bootPromise=null,this._bootResolver=null}static buildRegistry(e){var t=super.buildRegistry(e)
return function(e){e.register("router:main",h.default),e.register("-view-registry:main",{create:()=>(0,r.dictionary)(null)}),e.register("route:basic",d.default),e.register("event_dispatcher:main",u.EventDispatcher),e.register("location:auto",p.default),e.register("location:hash",f.default),e.register("location:history",m.default),e.register("location:none",g.default),e.register(w.privatize`-bucket-cache:main`,{create:()=>new b.BucketCache}),e.register("service:router",_.default)}(t),(0,x.setupApplicationRegistry)(t),t}init(e){var t,r,i,s,a,o,l
super.init(e),null!==(t=this.rootElement)&&void 0!==t||(this.rootElement="body"),null!==(r=this._document)&&void 0!==r||(this._document=null),null!==(i=this.eventDispatcher)&&void 0!==i||(this.eventDispatcher=null),null!==(s=this.customEvents)&&void 0!==s||(this.customEvents=null),null!==(a=this.autoboot)&&void 0!==a||(this.autoboot=!0),null!==(o=this._document)&&void 0!==o||(this._document=n.hasDOM?window.document:null),null!==(l=this._globalsMode)&&void 0!==l||(this._globalsMode=!0),this._readinessDeferrals=1,this._booted=!1,this._applicationInstances=new Set,this.autoboot=this._globalsMode=Boolean(this.autoboot),this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()}buildInstance(e={}){return y.default.create(Object.assign(Object.assign({},e),{base:this,application:this}))}_watchInstance(e){this._applicationInstances.add(e)}_unwatchInstance(e){return this._applicationInstances.delete(e)}_prepareForGlobalsMode(){this.Router=(this.Router||h.default).extend(),this._buildDeprecatedInstance()}_buildDeprecatedInstance(){var e=this.buildInstance()
this.__deprecatedInstance__=e,this.__container__=e.__container__}waitForDOMReady(){var e=this._document
if(null===e||"loading"!==e.readyState)(0,a.schedule)("actions",this,this.domReady)
else{var t=()=>{e.removeEventListener("DOMContentLoaded",t),(0,a.run)(this,this.domReady)}
e.addEventListener("DOMContentLoaded",t)}}domReady(){this.isDestroying||this.isDestroyed||this._bootSync()}deferReadiness(){this._readinessDeferrals++}advanceReadiness(){this._readinessDeferrals--,0===this._readinessDeferrals&&(0,a.once)(this,this.didBecomeReady)}boot(){if(this._bootPromise)return this._bootPromise
try{this._bootSync()}catch(e){}return this._bootPromise}_bootSync(){if(!(this._booted||this.isDestroying||this.isDestroyed)){var e=this._bootResolver=c.RSVP.defer()
this._bootPromise=e.promise
try{this.runInitializers(),(0,l.runLoadHooks)("application",this),this.advanceReadiness()}catch(t){throw e.reject(t),t}}}reset(){var e=this.__deprecatedInstance__
this._readinessDeferrals=1,this._bootPromise=null,this._bootResolver=null,this._booted=!1,(0,a.join)(this,(function(){(0,a.run)(e,"destroy"),this._buildDeprecatedInstance(),(0,a.schedule)("actions",this,"_bootSync")}))}didBecomeReady(){if(!this.isDestroying&&!this.isDestroyed)try{var e
if(this.autoboot)(e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance())._bootSync(),this.ready(),e.startRouting()
this._bootResolver.resolve(this),this._booted=!0}catch(t){throw this._bootResolver.reject(t),t}}ready(){return this}willDestroy(){super.willDestroy(),l._loaded.application===this&&(l._loaded.application=void 0),this._applicationInstances.size&&(this._applicationInstances.forEach((e=>e.destroy())),this._applicationInstances.clear())}visit(e,t){return this.boot().then((()=>{var r=this.buildInstance()
return r.boot(t).then((()=>r.visit(e))).catch((e=>{throw(0,a.run)(r,"destroy"),e}))}))}}e.default=S,S.initializer=(0,v.buildInitializerMethod)("initializers","initializer"),S.instanceInitializer=(0,v.buildInitializerMethod)("instanceInitializers","instance initializer")})),e("@ember/application/instance",["exports","@ember/object","@ember/-internals/browser-environment","@ember/engine/instance","@ember/-internals/glimmer","@ember/debug","@ember/routing/router","@ember/-internals/views"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends i.default{constructor(){super(...arguments),this.rootElement=null}init(e){super.init(e),this.application._watchInstance(this),this.register("-application-instance:main",this,{instantiate:!1})}_bootSync(e){return this._booted||(e=new c(e),this.setupRegistry(e),e.rootElement?this.rootElement=e.rootElement:this.rootElement=this.application.rootElement,e.location&&(0,t.set)(this.router,"location",e.location),this.application.runInstanceInitializers(this),e.isInteractive&&this.setupEventDispatcher(),this._booted=!0),this}setupRegistry(e){this.constructor.setupRegistry(this.__registry__,e)}get router(){if(!this._router){var e=this.lookup("router:main")
this._router=e}return this._router}didCreateRootView(e){e.appendTo(this.rootElement)}startRouting(){this.router.startRouting()}setupRouter(){this.router.setupRouter()}handleURL(e){return this.setupRouter(),this.router.handleURL(e)}setupEventDispatcher(){var e=this.lookup("event_dispatcher:main"),r=(0,t.get)(this.application,"customEvents"),i=(0,t.get)(this,"customEvents"),n=Object.assign({},r,i)
return e.setup(n,this.rootElement),e}getURL(){return this.router.url}visit(e){this.setupRouter()
var r=this.__container__.lookup("-environment:main"),i=this.router,s=()=>r.options.shouldRender?(0,n.renderSettled)().then((()=>this)):this,a=e=>{if(e.error)throw e.error
if("TransitionAborted"===e.name&&i._routerMicrolib.activeTransition)return i._routerMicrolib.activeTransition.then(s,a)
throw"TransitionAborted"===e.name?new Error(e.message):e},o=(0,t.get)(i,"location")
return o.setURL(e),i.handleURL(o.getURL()).then(s,a)}willDestroy(){super.willDestroy(),this.application._unwatchInstance(this)}static setupRegistry(e,t={}){var r=t instanceof c?t:new c(t)
e.register("-environment:main",r.toEnvironment(),{instantiate:!1}),e.register("service:-document",r.document,{instantiate:!1}),super.setupRegistry(e,r)}}class c{constructor(e={}){this.location=null,this.isInteractive=Boolean(r.hasDOM),this._renderMode=e._renderMode,void 0!==e.isBrowser?this.isBrowser=Boolean(e.isBrowser):this.isBrowser=Boolean(r.hasDOM),this.isBrowser||(this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=Boolean(e.shouldRender):this.shouldRender=!0,this.shouldRender||(this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.isInteractive&&(this.isInteractive=Boolean(e.isInteractive))}toEnvironment(){return Object.assign(Object.assign({},r),{hasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this})}}e.default=l})),e("@ember/application/lib/lazy_load",["exports","@ember/-internals/environment","@ember/-internals/browser-environment"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._loaded=void 0,e.onLoad=function(e,t){var r,s=n[e];((r=i[e])!==null&&r!==void 0?r:i[e]=[]).push(t),s&&t(s)},e.runLoadHooks=function(e,t){var s
if(n[e]=t,r.window&&"function"==typeof CustomEvent){var a=new CustomEvent(e,{detail:t})
r.window.dispatchEvent(a)}null===(s=i[e])||void 0===s||s.forEach((e=>e(t)))}
var i=t.ENV.EMBER_LOAD_HOOKS||{},n={}
e._loaded=n})),e("@ember/application/namespace",["exports","@ember/-internals/metal","@ember/object","@ember/-internals/utils","@ember/debug"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends r.default{init(e){super.init(e),(0,t.addNamespace)(this)}toString(){var e=(0,r.get)(this,"name")||(0,r.get)(this,"modulePrefix")
if(e)return e;(0,t.findNamespaces)()
var n=(0,i.getName)(this)
return void 0===n&&(n=(0,i.guidFor)(this),(0,i.setName)(this,n)),n}nameClasses(){(0,t.processNamespace)(this)}destroy(){return(0,t.removeNamespace)(this),super.destroy()}}s.NAMESPACES=t.NAMESPACES,s.NAMESPACES_BY_ID=t.NAMESPACES_BY_ID,s.processAll=t.processAllNamespaces,s.byName=t.findNamespace,s.prototype.isNamespace=!0
e.default=s})),e("@ember/array/-internals",["exports","@glimmer/util"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.isEmberArray=function(e){return r.has(e)},e.setEmberArray=function(e){r.add(e)}
var r=new t._WeakSet})),e("@ember/array/index",["exports","@ember/-internals/metal","@ember/object","@ember/object/mixin","@ember/debug","@ember/enumerable","@ember/enumerable/mutable","@ember/utils","@ember/-internals/environment","@ember/object/observable","@ember/array/-internals","@ember/array/lib/make-array"],(function(e,t,r,i,n,s,a,o,l,c,u,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.NativeArray=e.MutableArray=e.A=void 0,e.isArray=S,Object.defineProperty(e,"makeArray",{enumerable:!0,get:function(){return d.default}}),e.removeAt=x,e.uniqBy=f
var h=Object.freeze([]),p=e=>e
function f(e,t=p){var i=C(),n=new Set,s="function"==typeof t?t:e=>(0,r.get)(e,t)
return e.forEach((e=>{var t=s(e)
n.has(t)||(n.add(t),i.push(e))})),i}function m(...e){var t=2===e.length,[i,n]=e
return t?e=>n===(0,r.get)(e,i):e=>Boolean((0,r.get)(e,i))}function g(e,r,i){for(var n=e.length,s=i;s<n;s++){if(r((0,t.objectAt)(e,s),s,e))return s}return-1}function b(e,r,i=null){var n=g(e,r.bind(i),0)
return-1===n?void 0:(0,t.objectAt)(e,n)}function y(e,t,r=null){return-1!==g(e,t.bind(r),0)}function v(e,t,r=null){var i=t.bind(r)
return-1===g(e,((e,t,r)=>!i(e,t,r)),0)}function w(e,t,r=0,i){var n=e.length
return r<0&&(r+=n),g(e,i&&t!=t?e=>e!=e:e=>e===t,r)}function x(e,r,i){return(0,t.replace)(e,r,null!=i?i:1,h),e}function _(e,r,i){return(0,t.replace)(e,r,0,[i]),i}function S(e){if(!e||e.setInterval)return!1
if(Array.isArray(e)||P.detect(e))return!0
var t=(0,o.typeOf)(e)
if("array"===t)return!0
var r=e.length
return"number"==typeof r&&r==r&&"object"===t}function k(e){var r=(0,t.computed)(e)
return r.enumerable=!1,r}function A(e){return this.map((t=>(0,r.get)(t,e)))}var C,P=i.default.create(s.default,{init(){this._super(...arguments),(0,u.setEmberArray)(this)},objectsAt(e){return e.map((e=>(0,t.objectAt)(this,e)))},"[]":k({get(){return this},set(e,t){return this.replace(0,this.length,t),this}}),firstObject:k((function(){return(0,t.objectAt)(this,0)})).readOnly(),lastObject:k((function(){return(0,t.objectAt)(this,this.length-1)})).readOnly(),slice(e=0,r){var i,n=C(),s=this.length
for(e<0&&(e=s+e),i=void 0===r||r>s?s:r<0?s+r:r;e<i;)n[n.length]=(0,t.objectAt)(this,e++)
return n},indexOf(e,t){return w(this,e,t,!1)},lastIndexOf(e,r){var i=this.length;(void 0===r||r>=i)&&(r=i-1),r<0&&(r+=i)
for(var n=r;n>=0;n--)if((0,t.objectAt)(this,n)===e)return n
return-1},forEach(e,t=null){for(var r=this.length,i=0;i<r;i++){var n=this.objectAt(i)
e.call(t,n,i,this)}return this},getEach:A,setEach(e,t){return this.forEach((i=>(0,r.set)(i,e,t)))},map(e,t=null){var r=C()
return this.forEach(((i,n,s)=>r[n]=e.call(t,i,n,s))),r},mapBy:A,filter(e,t=null){var r=C()
return this.forEach(((i,n,s)=>{e.call(t,i,n,s)&&r.push(i)})),r},reject(e,t=null){return this.filter((function(){return!e.apply(t,arguments)}))},filterBy(){return this.filter(m(...arguments))},rejectBy(){return this.reject(m(...arguments))},find(e,t=null){return b(this,e,t)},findBy(){return b(this,m(...arguments))},every(e,t=null){return v(this,e,t)},isEvery(){return v(this,m(...arguments))},any(e,t=null){return y(this,e,t)},isAny(){return y(this,m(...arguments))},reduce(e,t){var r=t
return this.forEach((function(t,i){r=e(r,t,i,this)}),this),r},invoke(e,...t){var r=C()
return this.forEach((i=>{var n,s
return r.push(null===(s=(n=i)[e])||void 0===s?void 0:s.call(n,...t))})),r},toArray(){return this.map((e=>e))},compact(){return this.filter((e=>null!=e))},includes(e,t){return-1!==w(this,e,t,!0)},sortBy(){var e=arguments
return this.toArray().sort(((t,i)=>{for(var n=0;n<e.length;n++){var s=e[n],a=(0,r.get)(t,s),l=(0,r.get)(i,s),c=(0,o.compare)(a,l)
if(c)return c}return 0}))},uniq(){return f(this)},uniqBy(e){return f(this,e)},without(e){if(!this.includes(e))return this
var t=e==e?t=>t!==e:e=>e==e
return this.filter(t)}}),O=e.MutableArray=i.default.create(P,a.default,{clear(){var e=this.length
return 0===e||this.replace(0,e,h),this},insertAt(e,t){return _(this,e,t),this},removeAt(e,t){return x(this,e,t)},pushObject(e){return _(this,this.length,e)},pushObjects(e){return this.replace(this.length,0,e),this},popObject(){var e=this.length
if(0===e)return null
var r=(0,t.objectAt)(this,e-1)
return this.removeAt(e-1,1),r},shiftObject(){if(0===this.length)return null
var e=(0,t.objectAt)(this,0)
return this.removeAt(0),e},unshiftObject(e){return _(this,0,e)},unshiftObjects(e){return this.replace(0,0,e),this},reverseObjects(){var e=this.length
if(0===e)return this
var t=this.toArray().reverse()
return this.replace(0,e,t),this},setObjects(e){if(0===e.length)return this.clear()
var t=this.length
return this.replace(0,t,e),this},removeObject(e){for(var r=this.length||0;--r>=0;){(0,t.objectAt)(this,r)===e&&this.removeAt(r)}return this},removeObjects(e){(0,t.beginPropertyChanges)()
for(var r=e.length-1;r>=0;r--)this.removeObject(e[r])
return(0,t.endPropertyChanges)(),this},addObject(e){return this.includes(e)||this.pushObject(e),this},addObjects(e){return(0,t.beginPropertyChanges)(),e.forEach((e=>this.addObject(e))),(0,t.endPropertyChanges)(),this}}),E=e.NativeArray=i.default.create(O,c.default,{objectAt(e){return this[e]},replace(e,r,i=h){return(0,t.replaceInNativeArray)(this,e,r,i),this}}),T=["length"]
E.keys().forEach((e=>{Array.prototype[e]&&T.push(e)})),e.NativeArray=E=E.without(...T),l.ENV.EXTEND_PROTOTYPES.Array?(E.apply(Array.prototype,!0),e.A=C=function(e){return e||[]}):e.A=C=function(e){return(0,u.isEmberArray)(e)?e:E.apply(null!=e?e:[])}
e.default=P})),e("@ember/array/lib/make-array",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var{isArray:t}=Array
e.default=function(e){return null==e?[]:t(e)?e:[e]}})),e("@ember/array/mutable",["exports","@ember/array"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.MutableArray}})})),e("@ember/array/proxy",["exports","@ember/-internals/metal","@ember/object","@ember/-internals/utils","@ember/array","@ember/array/mutable","@ember/debug","@glimmer/manager","@glimmer/validator"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c={willChange:"_arrangedContentArrayWillChange",didChange:"_arrangedContentArrayDidChange"}
function u(e,t){return"[]"===t?(e._revalidate(),e._arrTag):"length"===t?(e._revalidate(),e._lengthTag):(0,l.tagFor)(e,t)}class d extends r.default{constructor(){super(...arguments),this._objectsDirtyIndex=0,this._objects=null,this._lengthDirty=!0,this._length=0,this._arrangedContent=null,this._arrangedContentIsUpdating=!1,this._arrangedContentTag=null,this._arrangedContentRevision=null,this._lengthTag=null,this._arrTag=null}init(e){super.init(e),(0,o.setCustomTagFor)(this,u)}[t.PROPERTY_DID_CHANGE](){this._revalidate()}willDestroy(){this._removeArrangedContentArrayObserver()}objectAtContent(e){var i=(0,r.get)(this,"arrangedContent")
return(0,t.objectAt)(i,e)}replace(e,t,r){this.replaceContent(e,t,r)}replaceContent(e,i,n){var s=(0,r.get)(this,"content");(0,t.replace)(s,e,i,n)}objectAt(e){if(this._revalidate(),null===this._objects&&(this._objects=[]),-1!==this._objectsDirtyIndex&&e>=this._objectsDirtyIndex){var t=(0,r.get)(this,"arrangedContent")
if(t)for(var i=this._objects.length=(0,r.get)(t,"length"),n=this._objectsDirtyIndex;n<i;n++)this._objects[n]=this.objectAtContent(n)
else this._objects.length=0
this._objectsDirtyIndex=-1}return this._objects[e]}get length(){if(this._revalidate(),this._lengthDirty){var e=(0,r.get)(this,"arrangedContent")
this._length=e?(0,r.get)(e,"length"):0,this._lengthDirty=!1}return(0,l.consumeTag)(this._lengthTag),this._length}set length(e){var i,n=this.length-e
if(0!==n){n<0&&(i=new Array(-n),n=0)
var s=(0,r.get)(this,"content")
s&&((0,t.replace)(s,e,n,i),this._invalidate())}}_updateArrangedContentArray(e){var i=null===this._objects?0:this._objects.length,n=e?(0,r.get)(e,"length"):0
this._removeArrangedContentArrayObserver(),(0,t.arrayContentWillChange)(this,0,i,n),this._invalidate(),(0,t.arrayContentDidChange)(this,0,i,n,!1),this._addArrangedContentArrayObserver(e)}_addArrangedContentArrayObserver(e){e&&!e.isDestroyed&&((0,t.addArrayObserver)(e,this,c),this._arrangedContent=e)}_removeArrangedContentArrayObserver(){this._arrangedContent&&(0,t.removeArrayObserver)(this._arrangedContent,this,c)}_arrangedContentArrayWillChange(){}_arrangedContentArrayDidChange(e,i,n,s){(0,t.arrayContentWillChange)(this,i,n,s)
var a=i
a<0&&(a+=(0,r.get)(this._arrangedContent,"length")+n-s);(-1===this._objectsDirtyIndex||this._objectsDirtyIndex>a)&&(this._objectsDirtyIndex=a),this._lengthDirty=!0,(0,t.arrayContentDidChange)(this,i,n,s,!1)}_invalidate(){this._objectsDirtyIndex=0,this._lengthDirty=!0}_revalidate(){if(!0!==this._arrangedContentIsUpdating&&(null===this._arrangedContentTag||!(0,l.validateTag)(this._arrangedContentTag,this._arrangedContentRevision))){var e=this.get("arrangedContent")
null===this._arrangedContentTag?this._addArrangedContentArrayObserver(e):(this._arrangedContentIsUpdating=!0,this._updateArrangedContentArray(e),this._arrangedContentIsUpdating=!1)
var r=this._arrangedContentTag=(0,l.tagFor)(this,"arrangedContent")
this._arrangedContentRevision=(0,l.valueForTag)(this._arrangedContentTag),(0,i.isObject)(e)?(this._lengthTag=(0,l.combine)([r,(0,t.tagForProperty)(e,"length")]),this._arrTag=(0,l.combine)([r,(0,t.tagForProperty)(e,"[]")])):this._lengthTag=this._arrTag=r}}}d.reopen(s.default,{arrangedContent:(0,t.alias)("content")})
e.default=d})),e("@ember/canary-features/index",["exports","@ember/-internals/environment"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.DEFAULT_FEATURES=void 0,e.isEnabled=function(e){var r=i[e]
return!0===r||!1===r?r:!!t.ENV.ENABLE_OPTIONAL_FEATURES}
var r=e.DEFAULT_FEATURES={},i=e.FEATURES=Object.assign(r,t.ENV.FEATURES)})),e("@ember/component/helper",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.Helper}}),Object.defineProperty(e,"helper",{enumerable:!0,get:function(){return t.helper}})})),e("@ember/component/index",["exports","@glimmer/manager","@ember/-internals/glimmer"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return r.Input}}),Object.defineProperty(e,"Textarea",{enumerable:!0,get:function(){return r.Textarea}}),Object.defineProperty(e,"capabilities",{enumerable:!0,get:function(){return r.componentCapabilities}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(e,"getComponentTemplate",{enumerable:!0,get:function(){return t.getComponentTemplate}}),Object.defineProperty(e,"setComponentManager",{enumerable:!0,get:function(){return r.setComponentManager}}),Object.defineProperty(e,"setComponentTemplate",{enumerable:!0,get:function(){return t.setComponentTemplate}})})),e("@ember/component/template-only",["exports","@glimmer/runtime"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.templateOnlyComponent}})})),e("@ember/controller/index",["exports","@ember/-internals/owner","@ember/object","@ember/object/-internals","@ember/-internals/metal","@ember/object/mixin","@ember/routing/-internals","@ember/-internals/runtime","@ember/-internals/utils"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ControllerMixin=void 0,e.inject=function(...e){return(0,n.inject)("controller",...e)}
var c=(0,l.symbol)("MODEL"),u=e.ControllerMixin=s.default.create(o.ActionHandler,{isController:!0,concatenatedProperties:["queryParams"],target:null,store:null,init(){this._super(...arguments)
var e=(0,t.getOwner)(this)
e&&(this.namespace=e.lookup("application:main"),this.target=e.lookup("router:main"))},model:(0,r.computed)({get(){return this[c]},set(e,t){return this[c]=t}}),queryParams:null,_qpDelegate:null,_qpChanged(e,t){var i=t.indexOf(".[]"),n=-1===i?t:t.slice(0,i);(0,e._qpDelegate)(n,(0,r.get)(e,n))},transitionToRoute(...e){var t;(0,a.deprecateTransitionMethods)("controller","transitionToRoute")
var i=(0,r.get)(this,"target")
return(null!==(t=i.transitionToRoute)&&void 0!==t?t:i.transitionTo).apply(i,(0,a.prefixRouteNameArg)(this,e))},replaceRoute(...e){var t;(0,a.deprecateTransitionMethods)("controller","replaceRoute")
var i=(0,r.get)(this,"target")
return(null!==(t=i.replaceRoute)&&void 0!==t?t:i.replaceWith).apply(i,(0,a.prefixRouteNameArg)(this,e))}})
class d extends(i.FrameworkObject.extend(u)){}e.default=d})),e("@ember/debug/container-debug-adapter",["exports","@ember/-internals/string","@ember/object","@ember/utils","@ember/-internals/owner","@ember/application/namespace"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends r.default{constructor(e){super(e),this.resolver=(0,n.getOwner)(this).lookup("resolver-for-debugging:main")}canCatalogEntriesByType(e){return"model"!==e&&"template"!==e}catalogEntriesByType(e){var r=s.default.NAMESPACES,n=[],a=new RegExp(`${(0,t.classify)(e)}$`)
return r.forEach((e=>{for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&a.test(r)){var s=e[r]
"class"===(0,i.typeOf)(s)&&n.push((0,t.dasherize)(r.replace(a,"")))}})),n}}e.default=a})),e("@ember/debug/data-adapter",["exports","@ember/-internals/owner","@ember/runloop","@ember/object","@ember/-internals/string","@ember/application/namespace","@ember/array","@glimmer/validator","@ember/debug"],(function(e,t,r,i,n,s,a,o,l){"use strict"
function c(e,t){if(Symbol.iterator in e)for(var r of e)t(r)
else(0,l.assert)("","function"==typeof e.forEach),e.forEach(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class u{getCacheForItem(e){var t=this.recordCaches.get(e)
if(!t){var r=!1
t=(0,o.createCache)((()=>{r?this.updated.push(this.wrapRecord(e)):(this.added.push(this.wrapRecord(e)),r=!0)})),this.recordCaches.set(e,t)}return t}constructor(e,t,r,i,n,s){this.wrapRecord=n,this.release=s,this.recordCaches=new Map,this.added=[],this.updated=[],this.removed=[],this.recordArrayCache=(0,o.createCache)((()=>{var s=new Set;(0,o.consumeTag)((0,o.tagFor)(e,"[]")),c(e,(e=>{(0,o.getValue)(this.getCacheForItem(e)),s.add(e)})),(0,o.untrack)((()=>{this.recordCaches.forEach(((e,t)=>{s.has(t)||(this.removed.push(n(t)),this.recordCaches.delete(t))}))})),this.added.length>0&&(t(this.added),this.added=[]),this.updated.length>0&&(r(this.updated),this.updated=[]),this.removed.length>0&&(i(this.removed),this.removed=[])}))}revalidate(){(0,o.getValue)(this.recordArrayCache)}}class d{constructor(e,t,i){this.release=i
var n=!1
this.cache=(0,o.createCache)((()=>{c(e,(()=>{})),(0,o.consumeTag)((0,o.tagFor)(e,"[]")),!0===n?(0,r.next)(t):n=!0})),this.release=i}revalidate(){(0,o.getValue)(this.cache)}}class h extends i.default{constructor(e){super(e),this.releaseMethods=(0,a.A)(),this.recordsWatchers=new Map,this.typeWatchers=new Map,this.flushWatchers=null,this.attributeLimit=3,this.acceptsModelName=!0,this.containerDebugAdapter=(0,t.getOwner)(this).lookup("container-debug-adapter:main")}getFilters(){return(0,a.A)()}watchModelTypes(e,t){var r=this.getModelTypes(),i=(0,a.A)()
e(r.map((e=>{var r=e.klass,n=this.wrapModelType(r,e.name)
return i.push(this.observeModelType(e.name,t)),n})))
var n=()=>{i.forEach((e=>e())),this.releaseMethods.removeObject(n)}
return this.releaseMethods.pushObject(n),n}_nameToClass(e){if("string"==typeof e){var r=(0,t.getOwner)(this).factoryFor(`model:${e}`)
e=r&&r.class}return e}watchRecords(e,t,r,i){var n=this._nameToClass(e),s=this.getRecords(n,e),{recordsWatchers:a}=this,o=a.get(s)
return o||(o=new u(s,t,r,i,(e=>this.wrapRecord(e)),(()=>{a.delete(s),this.updateFlushWatchers()})),a.set(s,o),this.updateFlushWatchers(),o.revalidate()),o.release}updateFlushWatchers(){null===this.flushWatchers?(this.typeWatchers.size>0||this.recordsWatchers.size>0)&&(this.flushWatchers=()=>{this.typeWatchers.forEach((e=>e.revalidate())),this.recordsWatchers.forEach((e=>e.revalidate()))},r._backburner.on("end",this.flushWatchers)):0===this.typeWatchers.size&&0===this.recordsWatchers.size&&(r._backburner.off("end",this.flushWatchers),this.flushWatchers=null)}willDestroy(){this._super(...arguments),this.typeWatchers.forEach((e=>e.release())),this.recordsWatchers.forEach((e=>e.release())),this.releaseMethods.forEach((e=>e())),this.flushWatchers&&r._backburner.off("end",this.flushWatchers)}detect(e){return!1}columnsForType(e){return(0,a.A)()}observeModelType(e,t){var r=this._nameToClass(e),i=this.getRecords(r,e),{typeWatchers:n}=this,s=n.get(i)
return s||(s=new d(i,(()=>{t([this.wrapModelType(r,e)])}),(()=>{n.delete(i),this.updateFlushWatchers()})),n.set(i,s),this.updateFlushWatchers(),s.revalidate()),s.release}wrapModelType(e,t){var r=this.getRecords(e,t)
return{name:t,count:(0,i.get)(r,"length"),columns:this.columnsForType(e),object:e}}getModelTypes(){var e=this.containerDebugAdapter
return(e.canCatalogEntriesByType("model")?e.catalogEntriesByType("model"):this._getObjectsOnNamespaces()).map((e=>({klass:this._nameToClass(e),name:e}))).filter((e=>this.detect(e.klass)))}_getObjectsOnNamespaces(){var e=s.default.NAMESPACES,t=[]
return e.forEach((e=>{for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&this.detect(e[r])){var i=(0,n.dasherize)(r)
t.push(i)}})),t}getRecords(e,t){return(0,a.A)()}wrapRecord(e){return{object:e,columnValues:this.getRecordColumnValues(e),searchKeywords:this.getRecordKeywords(e),filterValues:this.getRecordFilterValues(e),color:this.getRecordColor(e)}}getRecordColumnValues(e){return{}}getRecordKeywords(e){return(0,a.A)()}getRecordFilterValues(e){return{}}getRecordColor(e){return null}}e.default=h})),e("@ember/debug/index",["exports","@ember/-internals/browser-environment","@ember/debug/lib/deprecate","@ember/debug/lib/testing","@ember/debug/lib/warn","@ember/debug/lib/inspect","@ember/debug/lib/capture-render-tree"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.assert=e._warnIfUsingStrippedFeatureFlags=void 0,Object.defineProperty(e,"captureRenderTree",{enumerable:!0,get:function(){return a.default}}),e.info=e.getDebugFunction=e.deprecateFunc=e.deprecate=e.debugSeal=e.debugFreeze=e.debug=void 0,Object.defineProperty(e,"inspect",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"isTesting",{enumerable:!0,get:function(){return i.isTesting}}),Object.defineProperty(e,"registerDeprecationHandler",{enumerable:!0,get:function(){return r.registerHandler}}),Object.defineProperty(e,"registerWarnHandler",{enumerable:!0,get:function(){return n.registerHandler}}),e.setDebugFunction=e.runInDebug=void 0,Object.defineProperty(e,"setTesting",{enumerable:!0,get:function(){return i.setTesting}}),e.warn=void 0
var o=()=>{},l=(e.assert=o,e.info=o,e.warn=o,e.debug=o,e.deprecate=o,e.debugSeal=o,e.debugFreeze=o,e.runInDebug=o,e.setDebugFunction=o,e.getDebugFunction=o,function(){return arguments[arguments.length-1]})
e.deprecateFunc=l})),e("@ember/debug/lib/capture-render-tree",["exports","@glimmer/util"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.expect)(e.lookup("renderer:-dom"),"BUG: owner is missing renderer").debugRenderTree.capture()}})),e("@ember/debug/lib/deprecate",["exports","@ember/-internals/environment","@ember/debug/index","@ember/debug/lib/handlers"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.missingOptionsIdDeprecation=e.missingOptionsDeprecation=e.missingOptionDeprecation=e.default=void 0
var n=()=>{}
e.registerHandler=n
var s=()=>""
e.missingOptionDeprecation=s
var a=()=>{}
e.default=a})),e("@ember/debug/lib/handlers",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.invoke=e.HANDLERS=void 0
e.HANDLERS={},e.registerHandler=function(e,t){}
var t=()=>{}
e.invoke=t})),e("@ember/debug/lib/inspect",["exports","@glimmer/util","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if("number"==typeof e&&2===arguments.length)return this
return d(e,0)}
var{toString:i}=Object.prototype,{toString:n}=Function.prototype,{isArray:s}=Array,{keys:a}=Object,{stringify:o}=JSON,l=100,c=4,u=/^[\w$]+$/
function d(e,r,u){var p=!1
switch(typeof e){case"undefined":return"undefined"
case"object":if(null===e)return"null"
if(s(e)){p=!0
break}if(e.toString===i||void 0===e.toString)break
return e.toString()
case"function":return e.toString===n?e.name?`[Function:${e.name}]`:"[Function]":e.toString()
case"string":return o(e)
default:return e.toString()}if(void 0===u)u=new t._WeakSet
else if(u.has(e))return"[Circular]"
return u.add(e),p?function(e,t,r){if(t>c)return"[Array]"
for(var i="[",n=0;n<e.length;n++){if(i+=0===n?" ":", ",n>=l){i+=`... ${e.length-l} more items`
break}i+=d(e[n],t,r)}return i+=" ]"}(e,r+1,u):function(e,t,r){if(t>c)return"[Object]"
for(var i="{",n=a(e),s=0;s<n.length;s++){if(i+=0===s?" ":", ",s>=l){i+=`... ${n.length-l} more keys`
break}var o=n[s]
i+=`${h(String(o))}: ${d(e[o],t,r)}`}return i+=" }"}(e,r+1,u)}function h(e){return u.test(e)?e:o(e)}})),e("@ember/debug/lib/testing",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.isTesting=function(){return t},e.setTesting=function(e){t=Boolean(e)}
var t=!1}))
e("@ember/debug/lib/warn",["exports","@ember/debug/index","@ember/debug/lib/handlers"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.missingOptionsIdDeprecation=e.missingOptionsDeprecation=e.default=void 0
var i=()=>{}
e.registerHandler=i
var n=()=>{}
e.default=n})),e("@ember/deprecated-features/index",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.ASSIGN=void 0
e.ASSIGN=!0})),e("@ember/destroyable/index",["exports","@glimmer/destroyable"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertDestroyablesDestroyed",{enumerable:!0,get:function(){return t.assertDestroyablesDestroyed}}),Object.defineProperty(e,"associateDestroyableChild",{enumerable:!0,get:function(){return t.associateDestroyableChild}}),Object.defineProperty(e,"destroy",{enumerable:!0,get:function(){return t.destroy}}),Object.defineProperty(e,"enableDestroyableTracking",{enumerable:!0,get:function(){return t.enableDestroyableTracking}}),Object.defineProperty(e,"isDestroyed",{enumerable:!0,get:function(){return t.isDestroyed}}),Object.defineProperty(e,"isDestroying",{enumerable:!0,get:function(){return t.isDestroying}}),e.registerDestructor=function(e,r){return(0,t.registerDestructor)(e,r)},e.unregisterDestructor=function(e,r){return(0,t.unregisterDestructor)(e,r)}})),e("@ember/engine/index",["exports","@ember/engine/lib/engine-parent","@ember/-internals/utils","@ember/controller","@ember/application/namespace","@ember/-internals/container","dag-map","@ember/debug","@ember/debug/container-debug-adapter","@ember/object","@ember/engine/instance","@ember/routing/-internals","@ember/-internals/views","@ember/-internals/glimmer","@ember/-internals/runtime"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.buildInitializerMethod=b,e.default=void 0,Object.defineProperty(e,"getEngineParent",{enumerable:!0,get:function(){return t.getEngineParent}}),Object.defineProperty(e,"setEngineParent",{enumerable:!0,get:function(){return t.setEngineParent}})
class m extends(n.default.extend(f.RegistryProxyMixin)){constructor(){super(...arguments),this._initializersRan=!1}static buildRegistry(e){var t=new s.Registry({resolver:g(e)})
return t.set=c.set,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",i.default,{instantiate:!1}),e.register("service:-routing",d.RoutingService),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",l.default),e.register("component-lookup:main",h.ComponentLookup)}(t),(0,p.setupEngineRegistry)(t),t}init(e){super.init(e),this.buildRegistry()}ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(e={}){return this.ensureInitializers(),u.default.create(Object.assign(Object.assign({},e),{base:this}))}buildRegistry(){return this.__registry__=this.constructor.buildRegistry(this)}initializer(e){this.constructor.initializer(e)}instanceInitializer(e){this.constructor.instanceInitializer(e)}runInitializers(){this._runInitializer("initializers",((e,t)=>{t.initialize(this)}))}runInstanceInitializers(e){this._runInitializer("instanceInitializers",((t,r)=>{r.initialize(e)}))}_runInitializer(e,t){var r,i=(0,c.get)(this.constructor,e),n=function(e){var t=[]
for(var r in e)t.push(r)
return t}(i),s=new a.default
for(var o of n)r=i[o],s.add(r.name,r,r.before,r.after)
s.topsort(t)}}function g(e){var t={namespace:e}
return e.Resolver.create(t)}function b(e,t){return function(t){var r=this.superclass
if(void 0!==r[e]&&r[e]===this[e]){var i={[e]:Object.create(this[e])}
this.reopenClass(i)}this[e][t.name]=t}}m.initializers=Object.create(null),m.instanceInitializers=Object.create(null),m.initializer=b("initializers","initializer"),m.instanceInitializer=b("instanceInitializers","instance initializer")
e.default=m})),e("@ember/engine/instance",["exports","@ember/object","@ember/-internals/runtime","@ember/debug","@ember/-internals/container","@ember/-internals/utils","@ember/engine/lib/engine-parent","@ember/-internals/owner","@ember/engine"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class c extends(t.default.extend(r.RegistryProxyMixin,r.ContainerProxyMixin)){constructor(){super(...arguments),this._booted=!1,this._bootPromise=null}static setupRegistry(e,t){}init(e){var t
super.init(e),(0,s.guidFor)(this),null!==(t=this.base)&&void 0!==t||(this.base=this.application)
var r=this.__registry__=new n.Registry({fallback:this.base.__registry__})
this.__container__=r.container({owner:this}),this._booted=!1}boot(e){return this._bootPromise||(this._bootPromise=new r.RSVP.Promise((t=>{t(this._bootSync(e))}))),this._bootPromise}_bootSync(e){return this._booted||(this.cloneParentDependencies(),this.setupRegistry(e),this.base.runInstanceInitializers(this),this._booted=!0),this}setupRegistry(e=this.__container__.lookup("-environment:main")){this.constructor.setupRegistry(this.__registry__,e)}unregister(e){this.__container__.reset(e),this.__registry__.unregister(e)}buildChildEngineInstance(e,t={}){var r=this.lookup(`engine:${e}`)
if(!r)throw new Error(`You attempted to mount the engine '${e}', but it is not registered with its parent.`)
var i=r.buildInstance(t)
return(0,a.setEngineParent)(i,this),i}cloneParentDependencies(){var e=(0,a.getEngineParent)(this);["route:basic","service:-routing"].forEach((t=>{var r=e.resolveRegistration(t)
this.register(t,r)}))
var t=e.lookup("-environment:main")
this.register("-environment:main",t,{instantiate:!1})
var r=["router:main",n.privatize`-bucket-cache:main`,"-view-registry:main","renderer:-dom","service:-document"]
t.isInteractive&&r.push("event_dispatcher:main"),r.forEach((t=>{var r=e.lookup(t)
this.register(t,r,{instantiate:!1})}))}}e.default=c})),e("@ember/engine/lib/engine-parent",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.ENGINE_PARENT=void 0,e.getEngineParent=function(e){return e[t]},e.setEngineParent=function(e,r){e[t]=r}
var t=e.ENGINE_PARENT=Symbol("ENGINE_PARENT")})),e("@ember/enumerable/index",["exports","@ember/object/mixin"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.create()
e.default=r})),e("@ember/enumerable/mutable",["exports","@ember/enumerable","@ember/object/mixin"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=r.default.create(t.default)
e.default=i})),e("@ember/error/index",["exports","@ember/debug"],(function(e,t){"use strict"
var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r=Error
e.default=r})),e("@ember/helper/index",["exports","@glimmer/manager","@glimmer/runtime"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return r.array}}),Object.defineProperty(e,"capabilities",{enumerable:!0,get:function(){return t.helperCapabilities}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r.concat}}),Object.defineProperty(e,"fn",{enumerable:!0,get:function(){return r.fn}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r.get}}),Object.defineProperty(e,"hash",{enumerable:!0,get:function(){return r.hash}}),Object.defineProperty(e,"invokeHelper",{enumerable:!0,get:function(){return r.invokeHelper}}),Object.defineProperty(e,"setHelperManager",{enumerable:!0,get:function(){return t.setHelperManager}})})),e("@ember/instrumentation/index",["exports","@ember/-internals/environment","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._instrumentStart=c,e.flaggedInstrument=function(e,t,r){return r()},e.instrument=function(e,t,r,n){var s,a,o
arguments.length<=3&&(u=t,"function"==typeof u)?(a=t,o=r):(s=t,a=r,o=n)
var u
if(0===i.length)return a.call(o)
var d=s||{},h=c(e,(()=>d))
return h===l?a.call(o):function(e,t,r,i){try{return e.call(i)}catch(n){throw r.exception=n,n}finally{t()}}(a,h,d,o)},e.reset=function(){i.length=0,n={}},e.subscribe=function(e,t){var r=e.split("."),s=[]
for(var a of r)"*"===a?s.push("[^\\.]*"):s.push(a)
var o=s.join("\\.")
o=`${o}(\\..*)?`
var l={pattern:e,regex:new RegExp(`^${o}$`),object:t}
return i.push(l),n={},l},e.subscribers=void 0,e.unsubscribe=function(e){for(var t=0,r=0;r<i.length;r++)i[r]===e&&(t=r)
i.splice(t,1),n={}}
var i=e.subscribers=[],n={}
var s,a,o=(s="undefined"!=typeof window&&window.performance||{},(a=s.now||s.mozNow||s.webkitNow||s.msNow||s.oNow)?a.bind(s):Date.now)
function l(){}function c(e,r,s){if(0===i.length)return l
var a=n[e]
if(a||(a=function(e){var t=[]
for(var r of i)r.regex.test(e)&&t.push(r.object)
return n[e]=t,t}(e)),0===a.length)return l
var c,u=r(s),d=t.ENV.STRUCTURED_PROFILE
d&&(c=`${e}: ${u.object}`,console.time(c))
var h=[],p=o()
for(var f of a)h.push(f.before(e,p,u))
var m=a
return function(){for(var t=o(),r=0;r<m.length;r++){var i=m[r]
"function"==typeof i.after&&i.after(e,t,u,h[r])}d&&console.timeEnd(c)}}})),e("@ember/modifier/index",["exports","@glimmer/manager","@ember/-internals/glimmer","@glimmer/runtime"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capabilities",{enumerable:!0,get:function(){return r.modifierCapabilities}}),Object.defineProperty(e,"on",{enumerable:!0,get:function(){return i.on}}),Object.defineProperty(e,"setModifierManager",{enumerable:!0,get:function(){return t.setModifierManager}})})),e("@ember/object/-internals",["exports","@ember/-internals/metal","@ember/-internals/utils","@ember/debug","@ember/object"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.FrameworkObject=void 0,Object.defineProperty(e,"cacheFor",{enumerable:!0,get:function(){return t.getCachedValueFor}}),Object.defineProperty(e,"guidFor",{enumerable:!0,get:function(){return r.guidFor}})
e.FrameworkObject=class extends n.default{}})),e("@ember/object/compat",["exports","@ember/-internals/metal","@ember/debug","@glimmer/validator"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.dependentKeyCompat=s
var n=function(e,t,r){var{get:n}=r
return void 0!==n&&(r.get=function(){var e,r=(0,i.tagFor)(this,t),s=(0,i.track)((()=>{e=n.call(this)}))
return(0,i.updateTag)(r,s),(0,i.consumeTag)(s),e}),r}
function s(...e){if((0,t.isElementDescriptor)(e)){var[r,i,s]=e
return n(r,i,s)}var a=e[0],o=function(e,t,r,i,s){return n(e,t,a)}
return(0,t.setClassicDecorator)(o),o}(0,t.setClassicDecorator)(s)})),e("@ember/object/computed",["exports","@ember/-internals/metal","@ember/object/lib/computed/computed_macros","@ember/object/lib/computed/reduce_computed_macros"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"alias",{enumerable:!0,get:function(){return t.alias}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return r.and}}),Object.defineProperty(e,"bool",{enumerable:!0,get:function(){return r.bool}}),Object.defineProperty(e,"collect",{enumerable:!0,get:function(){return i.collect}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.ComputedProperty}}),Object.defineProperty(e,"deprecatingAlias",{enumerable:!0,get:function(){return r.deprecatingAlias}}),Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return r.empty}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return r.equal}}),Object.defineProperty(e,"expandProperties",{enumerable:!0,get:function(){return t.expandProperties}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return i.filter}}),Object.defineProperty(e,"filterBy",{enumerable:!0,get:function(){return i.filterBy}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return r.gt}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return r.gte}}),Object.defineProperty(e,"intersect",{enumerable:!0,get:function(){return i.intersect}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return r.lt}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return r.lte}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return i.map}}),Object.defineProperty(e,"mapBy",{enumerable:!0,get:function(){return i.mapBy}}),Object.defineProperty(e,"match",{enumerable:!0,get:function(){return r.match}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return i.max}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return i.min}}),Object.defineProperty(e,"none",{enumerable:!0,get:function(){return r.none}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return r.not}}),Object.defineProperty(e,"notEmpty",{enumerable:!0,get:function(){return r.notEmpty}}),Object.defineProperty(e,"oneWay",{enumerable:!0,get:function(){return r.oneWay}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return r.or}}),Object.defineProperty(e,"readOnly",{enumerable:!0,get:function(){return r.readOnly}}),Object.defineProperty(e,"reads",{enumerable:!0,get:function(){return r.oneWay}}),Object.defineProperty(e,"setDiff",{enumerable:!0,get:function(){return i.setDiff}})
Object.defineProperty(e,"sort",{enumerable:!0,get:function(){return i.sort}}),Object.defineProperty(e,"sum",{enumerable:!0,get:function(){return i.sum}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return i.uniq}}),Object.defineProperty(e,"uniqBy",{enumerable:!0,get:function(){return i.uniqBy}})})),e("@ember/object/core",["exports","@ember/-internals/container","@ember/-internals/owner","@ember/-internals/utils","@ember/-internals/meta","@ember/-internals/metal","@ember/object/mixin","@ember/-internals/runtime","@ember/array","@ember/debug","@glimmer/util","@glimmer/destroyable","@glimmer/owner"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p=a.default.prototype.reopen,f=new u._WeakSet,m=new WeakMap,g=new Set
function b(e){g.has(e)||e.destroy()}function y(e,t){var r,i=(0,n.meta)(e)
if(void 0!==t){var a=e.concatenatedProperties,o=e.mergedProperties,c=Object.keys(t)
for(var u of c){var d=t[u],h=(0,s.descriptorForProperty)(e,u,i),p=void 0!==h
if(!p){if(void 0!==a&&a.length>0&&a.includes(u)){var f=e[u]
d=f?(0,l.makeArray)(f).concat(d):(0,l.makeArray)(d)}if(void 0!==o&&o.length>0&&o.includes(u)){var m=e[u]
d=Object.assign({},m,d)}}p?h.set(e,u,d):"object"!=typeof(r=e)||null===r||"function"!=typeof r.setUnknownProperty||u in e?e[u]=d:e.setUnknownProperty(u,d)}}e.init(t),i.unsetInitializing()
var g=i.observerEvents()
if(void 0!==g)for(var b=0;b<g.length;b++)(0,s.activateObserver)(e,g[b].event,g[b].sync);(0,s.sendEvent)(e,"init",void 0,void 0,i)}class v{constructor(e){var t
this[h.OWNER]=e,this.constructor.proto()
var r=t=this;(0,d.registerDestructor)(t,b,!0),(0,d.registerDestructor)(t,(()=>r.willDestroy())),(0,n.meta)(t).setInitializing()}reopen(...e){return(0,a.applyMixin)(this,e),this}init(e){}get isDestroyed(){return(0,d.isDestroyed)(this)}set isDestroyed(e){}get isDestroying(){return(0,d.isDestroying)(this)}set isDestroying(e){}destroy(){g.add(this)
try{(0,d.destroy)(this)}finally{g.delete(this)}return this}willDestroy(){}toString(){var e,r="object"==typeof(e=this)&&null!==e&&"function"==typeof e.toStringExtension?`:${this.toStringExtension()}`:""
return`<${(0,t.getFactoryFor)(this)||"(unknown)"}:${(0,i.guidFor)(this)}${r}>`}static extend(...e){var t=class extends(this){}
return p.apply(t.PrototypeMixin,e),t}static create(...e){var i,n=e[0]
if(void 0!==n){i=new this((0,r.getOwner)(n))
var s=(0,t.getFactoryFor)(n);(0,t.setFactoryFor)(i,s)}else i=new this
return e.length<=1?y(i,n):y(i,w.apply(this,e)),i}static reopen(...e){return this.willReopen(),p.apply(this.PrototypeMixin,e),this}static willReopen(){var e=this.prototype
f.has(e)&&(f.delete(e),m.has(this)&&m.set(this,a.default.create(this.PrototypeMixin)))}static reopenClass(...e){return(0,a.applyMixin)(this,e),this}static detect(e){if("function"!=typeof e)return!1
for(;e;){if(e===this)return!0
e=e.superclass}return!1}static detectInstance(e){return e instanceof this}static metaForProperty(e){var t=this.proto(),r=(0,s.descriptorForProperty)(t,e)
return r._meta||{}}static eachComputedProperty(e,t=this){this.proto()
var r={};(0,n.meta)(this.prototype).forEachDescriptors(((i,n)=>{if(n.enumerable){var s=n._meta||r
e.call(t,i,s)}}))}static get PrototypeMixin(){var e=m.get(this)
return void 0===e&&((e=a.default.create()).ownerConstructor=this,m.set(this,e)),e}static get superclass(){var e=Object.getPrototypeOf(this)
return e!==Function.prototype?e:void 0}static proto(){var e=this.prototype
if(!f.has(e)){f.add(e)
var t=this.superclass
t&&t.proto(),m.has(this)&&this.PrototypeMixin.apply(e)}return e}static toString(){return`<${(0,t.getFactoryFor)(this)||"(unknown)"}:constructor>`}}function w(...e){var t={}
for(var r of e)for(var i=Object.keys(r),n=0,s=i.length;n<s;n++){var a=i[n],o=r[a]
t[a]=o}return t}v.isClass=!0,v.isMethod=!1
e.default=v})),e("@ember/object/evented",["exports","@ember/-internals/metal","@ember/object/mixin"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"on",{enumerable:!0,get:function(){return t.on}})
var i=r.default.create({on(e,r,i){return(0,t.addListener)(this,e,r,i),this},one(e,r,i){return(0,t.addListener)(this,e,r,i,!0),this},trigger(e,...r){(0,t.sendEvent)(this,e,r)},off(e,r,i){return(0,t.removeListener)(this,e,r,i),this},has(e){return(0,t.hasListeners)(this,e)}})
e.default=i})),e("@ember/object/events",["exports","@ember/-internals/metal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addListener",{enumerable:!0,get:function(){return t.addListener}}),Object.defineProperty(e,"removeListener",{enumerable:!0,get:function(){return t.removeListener}}),Object.defineProperty(e,"sendEvent",{enumerable:!0,get:function(){return t.sendEvent}})})),e("@ember/object/index",["exports","@ember/debug","@ember/-internals/environment","@ember/-internals/metal","@ember/-internals/container","@ember/-internals/utils","@ember/object/core","@ember/object/observable"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.action=d,Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return i.computed}}),e.default=void 0,Object.defineProperty(e,"defineProperty",{enumerable:!0,get:function(){return i.defineProperty}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return i.get}}),Object.defineProperty(e,"getProperties",{enumerable:!0,get:function(){return i.getProperties}}),Object.defineProperty(e,"notifyPropertyChange",{enumerable:!0,get:function(){return i.notifyPropertyChange}}),e.observer=function(...e){var t,n,a,o=e.pop()
"function"==typeof o?(t=o,n=e,a=!r.ENV._DEFAULT_ASYNC_OBSERVERS):(t=o.fn,n=o.dependentKeys,a=o.sync)
var l=[]
for(var c of n)(0,i.expandProperties)(c,(e=>l.push(e)))
return(0,s.setObservers)(t,{paths:l,sync:a}),t},Object.defineProperty(e,"set",{enumerable:!0,get:function(){return i.set}}),Object.defineProperty(e,"setProperties",{enumerable:!0,get:function(){return i.setProperties}}),Object.defineProperty(e,"trySet",{enumerable:!0,get:function(){return i.trySet}})
class l extends(a.default.extend(o.default)){get _debugContainerKey(){var e=(0,n.getFactoryFor)(this)
return void 0!==e&&e.fullName}}e.default=l
var c=new WeakMap
function u(e,t,r){var i
if(null!=(i=e)&&void 0!==i.constructor&&"function"==typeof i.constructor.proto&&e.constructor.proto(),!Object.prototype.hasOwnProperty.call(e,"actions")){var n=e.actions
e.actions=n?Object.assign({},n):{}}return e.actions[t]=r,{get(){var e=c.get(this)
void 0===e&&(e=new Map,c.set(this,e))
var t=e.get(r)
return void 0===t&&(t=r.bind(this),e.set(r,t)),t}}}function d(...e){var t
if(!(0,i.isElementDescriptor)(e)){t=e[0]
var r=function(e,r,i,n,s){return u(e,r,t)}
return(0,i.setClassicDecorator)(r),r}var[n,s,a]=e
return u(n,s,t=null==a?void 0:a.value)}(0,i.setClassicDecorator)(d)})),e("@ember/object/internals",["exports","@ember/object/-internals"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cacheFor",{enumerable:!0,get:function(){return t.cacheFor}}),Object.defineProperty(e,"guidFor",{enumerable:!0,get:function(){return t.guidFor}})})),e("@ember/object/lib/computed/computed_macros",["exports","@ember/-internals/metal","@ember/object","@ember/debug","@ember/utils"],(function(e,t,r,i,n){"use strict"
function s(e,i){return(e,...n)=>{var s=[e,...n],a=function(e,r){var i=[]
function n(e){i.push(e)}for(var s of r)(0,t.expandProperties)(s,n)
return i}(0,s)
return(0,t.computed)(...a,(function(){for(var e=a.length-1,t=0;t<e;t++){var n=(0,r.get)(this,a[t])
if(!i(n))return n}return(0,r.get)(this,a[e])}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.and=void 0,e.bool=function(e){return(0,t.computed)(e,(function(){return Boolean((0,r.get)(this,e))}))},e.deprecatingAlias=function(e,i){return(0,t.computed)(e,{get(t){return(0,r.get)(this,e)},set(t,i){return(0,r.set)(this,e,i),i}})},e.empty=function(e){return(0,t.computed)(`${e}.length`,(function(){return(0,n.isEmpty)((0,r.get)(this,e))}))},e.equal=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)===i}))},e.gt=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)>i}))},e.gte=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)>=i}))},e.lt=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)<i}))},e.lte=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)<=i}))},e.match=function(e,i){return(0,t.computed)(e,(function(){var t=(0,r.get)(this,e)
return i.test(t)}))},e.none=function(e){return(0,t.computed)(e,(function(){return(0,n.isNone)((0,r.get)(this,e))}))},e.not=function(e){return(0,t.computed)(e,(function(){return!(0,r.get)(this,e)}))},e.notEmpty=function(e){return(0,t.computed)(`${e}.length`,(function(){return!(0,n.isEmpty)((0,r.get)(this,e))}))},e.oneWay=function(e){return(0,t.alias)(e).oneWay()},e.or=void 0,e.readOnly=function(e){return(0,t.alias)(e).readOnly()}
e.and=s(0,(e=>e)),e.or=s(0,(e=>!e))})),e("@ember/object/lib/computed/reduce_computed_macros",["exports","@ember/debug","@ember/-internals/metal","@ember/object","@ember/utils","@ember/array"],(function(e,t,r,i,n,s){"use strict"
function a(e){return Array.isArray(e)||s.default.detect(e)}function o(e,t,r,n){return(0,i.computed)(`${e}.[]`,(function(){var n=(0,i.get)(this,e)
return null===n||"object"!=typeof n?r:n.reduce(t,r,this)})).readOnly()}function l(e,t,r){var n
return/@each/.test(e)?n=e.replace(/\.@each.*$/,""):(n=e,e+=".[]"),(0,i.computed)(e,...t,(function(){var e=(0,i.get)(this,n)
return a(e)?(0,s.A)(r.call(this,e)):(0,s.A)()})).readOnly()}function c(e,t,r){var n=e.map((e=>`${e}.[]`))
return(0,i.computed)(...n,(function(){return(0,s.A)(t.call(this,e))})).readOnly()}function u(e,t,r){var i
"function"==typeof t?(r=t,i=[]):i=t
var n=r
return l(e,i,(function(e){return Array.isArray(e),e.map(n,this)}))}function d(e,t,r){var i
"function"==typeof t?(r=t,i=[]):i=t
var n=r
return l(e,i,(function(e){return Array.isArray(e),e.filter(n,this)}))}function h(e,...t){return c([e,...t],(function(e){var t=(0,s.A)(),r=new Set
return e.forEach((e=>{var n=(0,i.get)(this,e)
a(n)&&n.forEach((e=>{r.has(e)||(r.add(e),t.push(e))}))})),t}))}Object.defineProperty(e,"__esModule",{value:!0}),e.collect=function(e,...t){var r=[e,...t]
return c(r,(function(){var e=r.map((e=>{var t=(0,i.get)(this,e)
return void 0===t?null:t}))
return(0,s.A)(e)}),"collect")},e.filter=d,e.filterBy=function(e,t,r){var n
n=2===arguments.length?e=>(0,i.get)(e,t):e=>(0,i.get)(e,t)===r
return d(`${e}.@each.${t}`,n)},e.intersect=function(e,...t){return c([e,...t],(function(e){var t=e.map((e=>{var t=(0,i.get)(this,e)
return Array.isArray(t)?t:[]})),r=t.pop(),n=r.filter((e=>{for(var r of t){var i=!1
for(var n of r)if(n===e){i=!0
break}if(!1===i)return!1}return!0}))
return(0,s.A)(n)}),"intersect")},e.map=u,e.mapBy=function(e,t){return u(`${e}.@each.${t}`,(e=>(0,i.get)(e,t)))},e.max=function(e){return o(e,((e,t)=>Math.max(e,t)),-1/0,"max")},e.min=function(e){return o(e,((e,t)=>Math.min(e,t)),1/0,"min")},e.setDiff=function(e,t){return(0,i.computed)(`${e}.[]`,`${t}.[]`,(function(){var r=(0,i.get)(this,e),n=(0,i.get)(this,t)
return a(r)?a(n)?r.filter((e=>-1===n.indexOf(e))):r:(0,s.A)()})).readOnly()},e.sort=function(e,t,o){var c,u
Array.isArray(t)?(c=t,u=o):(c=[],u=t)
return"function"==typeof u?function(e,t,r){return l(e,t,(function(e){return e.slice().sort(((e,t)=>r.call(this,e,t)))}))}(e,c,u):function(e,t){var o=(0,r.autoComputed)((function(r){var o=(0,i.get)(this,t),l="@this"===e,c=function(e){var t=e=>{var[t,r]=e.split(":")
return[t,r=r||"asc"]}
return Array.isArray(e),e.map(t)}(o),u=l?this:(0,i.get)(this,e)
return a(u)?0===c.length?(0,s.A)(u.slice()):function(e,t){return(0,s.A)(e.slice().sort(((e,r)=>{for(var[s,a]of t){var o=(0,n.compare)((0,i.get)(e,s),(0,i.get)(r,s))
if(0!==o)return"desc"===a?-1*o:o}return 0})))}(u,c):(0,s.A)()})).readOnly()
return o}(e,u)},e.sum=function(e){return o(e,((e,t)=>e+t),0,"sum")},e.union=void 0,e.uniq=h,e.uniqBy=function(e,t){return(0,i.computed)(`${e}.[]`,(function(){var r=(0,i.get)(this,e)
return a(r)?(0,s.uniqBy)(r,t):(0,s.A)()})).readOnly()}
e.union=h})),e("@ember/object/mixin",["exports","@ember/-internals/container","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@glimmer/util","@ember/-internals/metal","@ember/object/events"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixin=v,e.default=void 0,e.mixin=function(e,...t){return v(e,t),e}
var l=Array.prototype.concat,{isArray:c}=Array
function u(e,t,r,i){var n=r[e]||i[e]
return t[e]&&(n=n?l.call(n,t[e]):t[e]),n}function d(e,t,r,n){if(!0===r)return t
var s=r._getter
if(void 0===s)return t
var o=n[e],l="function"==typeof o?(0,a.descriptorForDecorator)(o):o
if(void 0===l||!0===l)return t
var c=l._getter
if(void 0===c)return t
var u,d=(0,i.wrap)(s,c),h=r._setter,p=l._setter
if(u=void 0!==p?void 0!==h?(0,i.wrap)(h,p):p:h,d!==s||u!==h){var f=r._dependentKeys||[],m=new a.ComputedProperty([...f,{get:d,set:u}])
return m._readOnly=r._readOnly,m._meta=r._meta,m.enumerable=r.enumerable,(0,a.makeComputedDecorator)(m,a.ComputedProperty)}return t}function h(e,t,r,n){if(void 0!==n[e])return t
var s=r[e]
return"function"==typeof s?(0,i.wrap)(t,s):t}function p(e){return e?Array.isArray(e)?e:[e]:[]}function f(e,t,r){var i=p(r[e]).concat(p(t))
return i}function m(e,t,r){var n=r[e]
if(!n)return t
var s=Object.assign({},n),a=!1,o=Object.keys(t)
for(var l of o){var c=t[l]
"function"==typeof c?(a=!0,s[l]=h(l,c,n,{})):s[l]=c}return a&&(s._super=i.ROOT),s}function g(e,t,r,i,n,s,a){for(var o,l=0;l<e.length;l++)if(o=e[l],w.has(o)){if(t.hasMixin(o))continue
t.addMixin(o)
var{properties:c,mixins:u}=o
void 0!==c?b(t,c,r,i,n,s,a):void 0!==u&&(g(u,t,r,i,n,s,a),o instanceof x&&void 0!==o._without&&o._without.forEach((e=>{var t=s.indexOf(e);-1!==t&&s.splice(t,1)})))}else b(t,o,r,i,n,s,a)}function b(e,t,r,i,n,s,o){var l=u("concatenatedProperties",t,i,n),c=u("mergedProperties",t,i,n),p=Object.keys(t)
for(var g of p){var b=t[g]
if(void 0!==b){if(-1===s.indexOf(g)){s.push(g)
var v=e.peekDescriptors(g)
if(void 0===v){if(!(0,a.isClassicDecorator)(b)){var w=i[g]=n[g]
"function"==typeof w&&y(n,g,w,!1)}}else r[g]=v,o.push(g),v.teardown(n,g,e)}var x="function"==typeof b
if(x){var _=(0,a.descriptorForDecorator)(b)
if(void 0!==_){r[g]=d(g,b,_,r),i[g]=void 0
continue}}l&&l.indexOf(g)>=0||"concatenatedProperties"===g||"mergedProperties"===g?b=f(g,b,i):c&&c.indexOf(g)>-1?b=m(g,b,i):x&&(b=h(g,b,i,r)),i[g]=b,r[g]=void 0}}}function y(e,t,r,n){var s=(0,i.observerListenerMetaFor)(r)
if(void 0!==s){var{observers:l,listeners:c}=s
if(void 0!==l){var u=n?a.addObserver:a.removeObserver
for(var d of l.paths)u(e,d,null,t,l.sync)}if(void 0!==c){var h=n?o.addListener:o.removeListener
for(var p of c)h(e,p,null,t)}}}function v(e,t,n=!1){var s=Object.create(null),o=Object.create(null),l=(0,r.meta)(e),c=[],u=[]
for(var d of(e._super=i.ROOT,g(t,l,s,o,e,c,u),c)){var h=o[d],p=s[d]
void 0!==h?("function"==typeof h&&y(e,d,h,!0),(0,a.defineValue)(e,d,h,-1!==u.indexOf(d),!n)):void 0!==p&&(0,a.defineDecorator)(e,d,p,l)}return l.isPrototypeMeta(e)||(0,a.revalidateObservers)(e),e}var w=new s._WeakSet
class x{constructor(e,t){w.add(this),this.properties=function(e){if(void 0!==e)for(var t of Object.keys(e)){var r=Object.getOwnPropertyDescriptor(e,t)
void 0===r.get&&void 0===r.set||Object.defineProperty(e,t,{value:(0,a.nativeDescDecorator)(r)})}return e}(t),this.mixins=_(e),this.ownerConstructor=void 0,this._without=void 0}static create(...e){(0,a.setUnprocessedMixins)()
return new this(e,void 0)}static mixins(e){var t=(0,r.peekMeta)(e),i=[]
return null===t||t.forEachMixins((e=>{e.properties||i.push(e)})),i}reopen(...e){if(0!==e.length){if(this.properties){var t=new x(void 0,this.properties)
this.properties=void 0,this.mixins=[t]}else this.mixins||(this.mixins=[])
return this.mixins=this.mixins.concat(_(e)),this}}apply(e,t=!1){return v(e,[this],t)}applyPartial(e){return v(e,[this])}detect(e){if("object"!=typeof e||null===e)return!1
if(w.has(e))return S(e,this)
var t=(0,r.peekMeta)(e)
return null!==t&&t.hasMixin(this)}without(...e){var t=new x([this])
return t._without=e,t}keys(){var e=k(this)
return e}toString(){return"(unknown mixin)"}}function _(e){var t=e&&e.length||0,r=void 0
if(t>0){r=new Array(t)
for(var i=0;i<t;i++){var n=e[i]
w.has(n)?r[i]=n:r[i]=new x(void 0,n)}}return r}function S(e,t,r=new Set){if(r.has(e))return!1
if(r.add(e),e===t)return!0
var i=e.mixins
return!!i&&i.some((e=>S(e,t,r)))}function k(e,t=new Set,r=new Set){if(!r.has(e)){if(r.add(e),e.properties){var i=Object.keys(e.properties)
for(var n of i)t.add(n)}else e.mixins&&e.mixins.forEach((e=>k(e,t,r)))
return t}}e.default=x})),e("@ember/object/observable",["exports","@ember/-internals/meta","@ember/-internals/metal","@ember/object","@ember/object/mixin","@ember/debug"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=n.default.create({get(e){return(0,i.get)(this,e)},getProperties(...e){return(0,i.getProperties)(this,...e)},set(e,t){return(0,i.set)(this,e,t)},setProperties(e){return(0,i.setProperties)(this,e)},beginPropertyChanges(){return(0,r.beginPropertyChanges)(),this},endPropertyChanges(){return(0,r.endPropertyChanges)(),this},notifyPropertyChange(e){return(0,r.notifyPropertyChange)(this,e),this},addObserver(e,t,i,n){return(0,r.addObserver)(this,e,t,i,n),this},removeObserver(e,t,i,n){return(0,r.removeObserver)(this,e,t,i,n),this},hasObserverFor(e){return(0,r.hasListeners)(this,`${e}:change`)},incrementProperty(e,t=1){return(0,i.set)(this,e,(parseFloat((0,i.get)(this,e))||0)+t)},decrementProperty(e,t=1){return(0,i.set)(this,e,((0,i.get)(this,e)||0)-t)},toggleProperty(e){return(0,i.set)(this,e,!(0,i.get)(this,e))},cacheFor(e){var r=(0,t.peekMeta)(this)
if(null!==r)return r.valueFor(e)}})
e.default=a})),e("@ember/object/observers",["exports","@ember/-internals/metal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addObserver",{enumerable:!0,get:function(){return t.addObserver}}),Object.defineProperty(e,"removeObserver",{enumerable:!0,get:function(){return t.removeObserver}})})),e("@ember/object/promise-proxy-mixin",["exports","@ember/object","@ember/object/mixin"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=r.default.create({reason:null,isPending:(0,t.computed)("isSettled",(function(){return!(0,t.get)(this,"isSettled")})).readOnly(),isSettled:(0,t.computed)("isRejected","isFulfilled",(function(){return(0,t.get)(this,"isRejected")||(0,t.get)(this,"isFulfilled")})).readOnly(),isRejected:!1,isFulfilled:!1,promise:(0,t.computed)({get(){throw new Error("PromiseProxy's promise must be set")},set(e,r){return function(e,r){return(0,t.setProperties)(e,{isFulfilled:!1,isRejected:!1}),r.then((r=>(e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{content:r,isFulfilled:!0}),r)),(r=>{throw e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{reason:r,isRejected:!0}),r}),"Ember: PromiseProxy")}(this,r)}}),then:n("then"),catch:n("catch"),finally:n("finally")})
function n(e){return function(...r){return(0,t.get)(this,"promise")[e](...r)}}e.default=i})),e("@ember/object/proxy",["exports","@ember/object/-internals","@ember/-internals/runtime"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.FrameworkObject{}i.PrototypeMixin.reopen(r._ProxyMixin)
e.default=i})),e("@ember/owner/index",["exports","@ember/-internals/owner"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.getOwner=void 0,Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}})
e.getOwner=t.getOwner})),e("@ember/polyfills/index",["exports","@ember/polyfills/lib/assign"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return t.assign}}),e.hasPropertyAccessors=void 0
e.hasPropertyAccessors=!0})),e("@ember/polyfills/lib/assign",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(e,...t){return Object.assign(e,...t)}}))
e("@ember/renderer/index",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"renderSettled",{enumerable:!0,get:function(){return t.renderSettled}})})),e("@ember/routing/-internals",["exports","@ember/routing/lib/router_state","@ember/routing/lib/routing-service","@ember/routing/lib/utils","@ember/routing/lib/generate_controller","@ember/routing/lib/cache","@ember/routing/lib/dsl","@ember/routing/lib/controller_for"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BucketCache",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"DSL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"RouterState",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"RoutingService",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"controllerFor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"deprecateTransitionMethods",{enumerable:!0,get:function(){return i.deprecateTransitionMethods}}),Object.defineProperty(e,"generateController",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"generateControllerFactory",{enumerable:!0,get:function(){return n.generateControllerFactory}}),Object.defineProperty(e,"prefixRouteNameArg",{enumerable:!0,get:function(){return i.prefixRouteNameArg}})})),e("@ember/routing/auto-location",["exports","@ember/-internals/browser-environment","@ember/-internals/owner","@ember/object","@ember/debug","@ember/routing/lib/location-utils"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getHashPath=c,e.getHistoryPath=l
class a extends i.default{constructor(){super(...arguments),this.implementation="auto"}detect(){var e=this.rootURL,t=function(e){var{location:t,userAgent:r,history:i,documentMode:n,global:a,rootURL:o}=e,u="none",d=!1,h=(0,s.getFullPath)(t)
if((0,s.supportsHistory)(r,i)){var p=l(o,t)
h===p?u="history":"/#"===h.substring(0,2)?(i.replaceState({path:p},"",p),u="history"):(d=!0,(0,s.replacePath)(t,p))}else if((0,s.supportsHashChange)(n,a)){var f=c(o,t)
h===f||"/"===h&&"/#/"===f?u="hash":(d=!0,(0,s.replacePath)(t,f))}if(d)return!1
return u}({location:this.location,history:this.history,userAgent:this.userAgent,rootURL:e,documentMode:this.documentMode,global:this.global})
!1===t&&((0,i.set)(this,"cancelRouterSetup",!0),t="none")
var n=(0,r.getOwner)(this),a=n.lookup(`location:${t}`);(0,i.set)(a,"rootURL",e),(0,i.set)(this,"concreteImplementation",a)}willDestroy(){var{concreteImplementation:e}=this
e&&e.destroy()}}function o(e){return function(...t){var r,{concreteImplementation:i}=this
return null===(r=i[e])||void 0===r?void 0:r.call(i,...t)}}function l(e,t){var r,i,n=(0,s.getPath)(t),a=(0,s.getHash)(t),o=(0,s.getQuery)(t)
n.indexOf(e)
return"#/"===a.substring(0,2)?(r=(i=a.substring(1).split("#")).shift(),"/"===n.charAt(n.length-1)&&(r=r.substring(1)),n+=r+o,i.length&&(n+=`#${i.join("#")}`)):n+=o+a,n}function c(e,t){var r=e,i=l(e,t).substring(e.length)
return""!==i&&("/"!==i[0]&&(i=`/${i}`),r+=`#${i}`),r}e.default=a,a.reopen({rootURL:"/",initState:o("initState"),getURL:o("getURL"),setURL:o("setURL"),replaceURL:o("replaceURL"),onUpdateURL:o("onUpdateURL"),formatURL:o("formatURL"),location:t.location,history:t.history,global:t.window,userAgent:t.userAgent,cancelRouterSetup:!1})})),e("@ember/routing/hash-location",["exports","@ember/object","@ember/runloop","@ember/routing/lib/location-utils"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(){super(...arguments),this.implementation="hash",this.lastSetURL=null}init(){(0,t.set)(this,"location",this._location||window.location),this._hashchangeHandler=void 0}getHash(){return(0,i.getHash)(this.location)}getURL(){var e=this.getHash().substring(1),t=e
return"/"!==t[0]&&(t="/",e&&(t+=`#${e}`)),t}setURL(e){this.location.hash=e,(0,t.set)(this,"lastSetURL",e)}replaceURL(e){this.location.replace(`#${e}`),(0,t.set)(this,"lastSetURL",e)}onUpdateURL(e){this._removeEventListener(),this._hashchangeHandler=(0,r.bind)(this,(function(r){var i=this.getURL()
this.lastSetURL!==i&&((0,t.set)(this,"lastSetURL",null),e(i))})),window.addEventListener("hashchange",this._hashchangeHandler)}formatURL(e){return`#${e}`}willDestroy(){this._removeEventListener()}_removeEventListener(){this._hashchangeHandler&&window.removeEventListener("hashchange",this._hashchangeHandler)}}e.default=n})),e("@ember/routing/history-location",["exports","@ember/object","@ember/routing/lib/location-utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=!1
function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t
return t=16*Math.random()|0,("x"===e?t:3&t|8).toString(16)}))}class s extends t.default{constructor(){super(...arguments),this.implementation="history",this.rootURL="/"}getHash(){return(0,r.getHash)(this.location)}init(){var e
this._super(...arguments)
var r=document.querySelector("base"),i=""
null!==r&&r.hasAttribute("href")&&(i=null!==(e=r.getAttribute("href"))&&void 0!==e?e:""),(0,t.set)(this,"baseURL",i),(0,t.set)(this,"location",this.location||window.location),this._popstateHandler=void 0}initState(){var e=this.history||window.history;(0,t.set)(this,"history",e)
var{state:r}=e,i=this.formatURL(this.getURL())
r&&r.path===i?this._previousURL=this.getURL():this.replaceState(i)}getURL(){var{location:e,rootURL:t,baseURL:r}=this,i=e.pathname
t=t.replace(/\/$/,""),r=r.replace(/\/$/,"")
var n=i.replace(new RegExp(`^${r}(?=/|$)`),"").replace(new RegExp(`^${t}(?=/|$)`),"").replace(/\/\//g,"/")
return n+=(e.search||"")+this.getHash()}setURL(e){var{state:t}=this.history
e=this.formatURL(e),t&&t.path===e||this.pushState(e)}replaceURL(e){var{state:t}=this.history
e=this.formatURL(e),t&&t.path===e||this.replaceState(e)}pushState(e){var t={path:e,uuid:n()}
this.history.pushState(t,null,e),this._previousURL=this.getURL()}replaceState(e){var t={path:e,uuid:n()}
this.history.replaceState(t,null,e),this._previousURL=this.getURL()}onUpdateURL(e){this._removeEventListener(),this._popstateHandler=()=>{(i||(i=!0,this.getURL()!==this._previousURL))&&e(this.getURL())},window.addEventListener("popstate",this._popstateHandler)}formatURL(e){var{rootURL:t,baseURL:r}=this
return""!==e?(t=t.replace(/\/$/,""),r=r.replace(/\/$/,"")):"/"===r[0]&&"/"===t[0]&&(r=r.replace(/\/$/,"")),r+t+e}willDestroy(){this._removeEventListener()}_removeEventListener(){this._popstateHandler&&window.removeEventListener("popstate",this._popstateHandler)}}e.default=s})),e("@ember/routing/index",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LinkTo",{enumerable:!0,get:function(){return t.LinkTo}})})),e("@ember/routing/lib/cache",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(){this.cache=new Map}has(e){return this.cache.has(e)}stash(e,t,r){var i=this.cache.get(e)
void 0===i&&(i=new Map,this.cache.set(e,i)),i.set(t,r)}lookup(e,t,r){if(!this.has(e))return r
var i=this.cache.get(e)
return i.has(t)?i.get(t):r}}})),e("@ember/routing/lib/controller_for",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){return e.lookup(`controller:${t}`,r)}})),e("@ember/routing/lib/dsl",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=0
function i(e){return"function"==typeof e}class n{constructor(e=null,t){this.explicitIndex=!1,this.parent=e,this.enableLoadingSubstates=Boolean(t&&t.enableLoadingSubstates),this.matches=[],this.options=t}route(e,t,r){var o,l=null,c=`/_unused_dummy_error_path_route_${e}/:error`
if(i(t)?(o={},l=t):i(r)?(o=t,l=r):o=t||{},this.enableLoadingSubstates&&(a(this,`${e}_loading`,{resetNamespace:o.resetNamespace}),a(this,`${e}_error`,{resetNamespace:o.resetNamespace,path:c})),l){var u=s(this,e,o.resetNamespace),d=new n(u,this.options)
a(d,"loading"),a(d,"error",{path:c}),l.call(d),a(this,e,o,d.generate())}else a(this,e,o)}push(e,t,r,i){var n=t.split(".")
if(this.options.engineInfo){var s=t.slice(this.options.engineInfo.fullName.length+1),a=Object.assign({localFullName:s},this.options.engineInfo)
i&&(a.serializeMethod=i),this.options.addRouteForEngine(t,a)}else if(i)throw new Error(`Defining a route serializer on route '${t}' outside an Engine is not allowed.`)
""!==e&&"/"!==e&&"index"!==n[n.length-1]||(this.explicitIndex=!0),this.matches.push(e,t,r)}generate(){var e=this.matches
return this.explicitIndex||this.route("index",{path:"/"}),t=>{for(var r=0;r<e.length;r+=3)t(e[r]).to(e[r+1],e[r+2])}}mount(e,t={}){var i=this.options.resolveRouteMap(e),o=e
t.as&&(o=t.as)
var l,c=s(this,o,t.resetNamespace),u={name:e,instanceId:r++,mountPoint:c,fullName:c},d=t.path
"string"!=typeof d&&(d=`/${o}`)
var h=`/_unused_dummy_error_path_route_${o}/:error`
if(i){var p=!1,f=this.options.engineInfo
f&&(p=!0,this.options.engineInfo=u)
var m=Object.assign({engineInfo:u},this.options),g=new n(c,m)
a(g,"loading"),a(g,"error",{path:h}),i.class.call(g),l=g.generate(),p&&(this.options.engineInfo=f)}var b=Object.assign({localFullName:"application"},u)
if(this.enableLoadingSubstates){var y=`${o}_loading`,v="application_loading",w=Object.assign({localFullName:v},u)
a(this,y,{resetNamespace:t.resetNamespace}),this.options.addRouteForEngine(y,w),y=`${o}_error`,v="application_error",w=Object.assign({localFullName:v},u),a(this,y,{resetNamespace:t.resetNamespace,path:h}),this.options.addRouteForEngine(y,w)}this.options.addRouteForEngine(c,b),this.push(d,c,l)}}function s(e,t,r){return function(e){return"application"!==e.parent}(e)&&!0!==r?`${e.parent}.${t}`:t}function a(e,t,r={},i){var n=s(e,t,r.resetNamespace)
"string"!=typeof r.path&&(r.path=`/${t}`),e.push(r.path,n,i,r.serialize)}e.default=n})),e("@ember/routing/lib/engines",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/routing/lib/generate_controller",["exports","@ember/-internals/metal","@ember/controller","@ember/debug"],(function(e,t,r,i){"use strict"
function n(e,t){var r=e.factoryFor("controller:basic"),i=r.class
i=i.extend({toString:()=>`(generated ${t} controller)`})
var n=`controller:${t}`
return e.register(n,i),e.factoryFor(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){n(e,t)
var r=`controller:${t}`,i=e.lookup(r)
!1
return i},e.generateControllerFactory=n})),e("@ember/routing/lib/location-utils",["exports"],(function(e){"use strict"
function t(e){var t=e.pathname
return"/"!==t[0]&&(t=`/${t}`),t}function r(e){return e.search}function i(e){return void 0!==e.hash?e.hash.substring(0):""}function n(e){var t=e.origin
return t||(t=`${e.protocol}//${e.hostname}`,e.port&&(t+=`:${e.port}`)),t}Object.defineProperty(e,"__esModule",{value:!0}),e.getFullPath=function(e){return t(e)+r(e)+i(e)},e.getHash=i,e.getOrigin=n,e.getPath=t,e.getQuery=r,e.replacePath=function(e,t){e.replace(n(e)+t)},e.supportsHashChange=function(e,t){return Boolean(t&&"onhashchange"in t&&(void 0===e||e>7))},e.supportsHistory=function(e,t){if((-1!==e.indexOf("Android 2.")||-1!==e.indexOf("Android 4.0"))&&-1!==e.indexOf("Mobile Safari")&&-1===e.indexOf("Chrome")&&-1===e.indexOf("Windows Phone"))return!1
return Boolean(t&&"pushState"in t)}})),e("@ember/routing/lib/query_params",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e=null){this.isQueryParams=!0,this.values=e}}})),e("@ember/routing/lib/route-info",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/routing/lib/router_state",["exports","@ember/routing/lib/utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e,t,r){this.emberRouter=e,this.router=t,this.routerJsState=r}isActiveIntent(e,r,i){var n=this.routerJsState
if(!this.router.isActiveIntent(e,r,void 0,n))return!1
if(void 0!==i&&Object.keys(i).length>0){var s=Object.assign({},i)
return this.emberRouter._prepareQueryParams(e,r,s),(0,t.shallowEqual)(s,n.queryParams)}return!0}}})),e("@ember/routing/lib/routing-service",["exports","@ember/-internals/owner","@ember/debug","@ember/object/computed","@ember/service","@ember/routing/router","@ember/routing/router-service"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class o extends n.default{get router(){var e=this[a.ROUTER]
if(void 0!==e)return e
var r=(0,t.getOwner)(this),i=r.lookup("router:main")
return i.setupRouter(),this[a.ROUTER]=i}hasRoute(e){return this.router.hasRoute(e)}transitionTo(e,t,r,i){var n=this.router._doTransition(e,t,r)
return i&&n.method("replace"),n}normalizeQueryParams(e,t,r){this.router._prepareQueryParams(e,t,r)}_generateURL(e,t,r){var i={}
return r&&(Object.assign(i,r),this.normalizeQueryParams(e,t,i)),this.router.generate(e,...t,{queryParams:i})}generateURL(e,t,r){if(this.router._initialTransitionStarted)return this._generateURL(e,t,r)
try{return this._generateURL(e,t,r)}catch(i){return}}isActiveForRoute(e,t,r,i){var n=this.router._routerMicrolib.recognizer.handlersFor(r),s=n[n.length-1].handler,a=function(e,t){for(var r=0,i=0;i<t.length&&(r+=t[i].names.length,t[i].handler!==e);i++);return r}(r,n)
return e.length>a&&(r=s),i.isActiveIntent(r,e,t)}}e.default=o,o.reopen({targetState:(0,i.readOnly)("router.targetState"),currentState:(0,i.readOnly)("router.currentState"),currentRouteName:(0,i.readOnly)("router.currentRouteName"),currentPath:(0,i.readOnly)("router.currentPath")})})),e("@ember/routing/lib/utils",["exports","@ember/-internals/metal","@ember/-internals/owner","@ember/debug","@ember/engine/instance","router_js"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.calculateCacheKey=function(e,r=[],i){var n=""
for(var s of r){var l=o(e,s),c=void 0
if(i)if(l&&l in i){var u=0===s.indexOf(l)?s.substring(l.length+1):s
c=(0,t.get)(i[l],u)}else c=(0,t.get)(i,s)
n+=`::${s}:${c}`}return e+n.replace(a,"-")},e.deprecateTransitionMethods=function(e,t){},e.extractRouteArgs=function(e){var t,r,i=(e=e.slice())[e.length-1]
!function(e){if(e&&"object"==typeof e){var t=e.queryParams
if(t&&"object"==typeof t)return Object.keys(t).every((e=>"string"==typeof e))}return!1}(i)?t={}:(e.pop(),t=i.queryParams)
"string"==typeof e[0]&&(r=e.shift())
return{routeName:r,models:e,queryParams:t}},e.getActiveTargetName=function(e){var t=e.activeTransition?e.activeTransition[s.STATE_SYMBOL].routeInfos:e.state.routeInfos,r=t[t.length-1]
return r.name},e.normalizeControllerQueryParams=function(e){var t={}
for(var r of e)l(r,t)
return t},e.prefixRouteNameArg=function(e,t){var i,n=(0,r.getOwner)(e)
var s=n.mountPoint
if(n.routable&&"string"==typeof t[0]){if(c(i=t[0]))throw new Error("Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.")
i=`${s}.${i}`,t[0]=i}return t},e.resemblesURL=c,e.shallowEqual=function(e,t){var r=0,i=0
for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(e[n]!==t[n])return!1
r++}for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&i++
return r===i},e.stashParamNames=function(e,t){if(t._namesStashed)return
var r=t[t.length-1]
for(var i,n=r.name,s=e._routerMicrolib.recognizer.handlersFor(n),a=0;a<t.length;++a){var o=t[a],l=s[a].names
l.length&&(i=o),o._names=l,o.route._stashNames(o,i)}t._namesStashed=!0}
var a=/\./g
function o(e,t){for(var r=e.split("."),i="",n=0;n<r.length;n++){var s=r.slice(0,n+1).join(".")
if(0!==t.indexOf(s))break
i=s}return i}function l(e,t){var r="string"==typeof e?{[e]:{as:null}}:e
for(var i in r){if(!Object.prototype.hasOwnProperty.call(r,i))return
var n=r[i],s="string"==typeof n?{as:n}:n,a=t[i]||{as:null,scope:"model"},o=Object.assign(Object.assign({},a),s)
t[i]=o}}function c(e){return"string"==typeof e&&(""===e||"/"===e[0])}})),e("@ember/routing/location",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={create(e){var t=null==e?void 0:e.implementation,r=this.implementations[t]
return r.create(...arguments)},implementations:{}}})),e("@ember/routing/none-location",["exports","@ember/object","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(){super(...arguments),this.implementation="none"}initState(){this._super(...arguments)
var{rootURL:e}=this}getURL(){var{path:e,rootURL:t}=this
return t=t.replace(/\/$/,""),e.replace(new RegExp(`^${t}(?=/|$)`),"")}setURL(e){(0,t.set)(this,"path",e)}onUpdateURL(e){this.updateCallback=e}handleURL(e){(0,t.set)(this,"path",e),this.updateCallback(e)}formatURL(e){var{rootURL:t}=this
return""!==e&&(t=t.replace(/\/$/,"")),t+e}}e.default=i,i.reopen({path:"",rootURL:"/"})})),e("@ember/routing/route-info",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/routing/route",["exports","@ember/-internals/container","@ember/-internals/metal","@ember/-internals/owner","@ember/routing/-internals","@ember/object","@ember/object/evented","@ember/array","@ember/-internals/runtime","@ember/utils","@ember/-internals/utils","@ember/controller","@ember/debug","@ember/engine/instance","@ember/object/compat","@ember/runloop","router_js","@ember/routing/router","@ember/routing/lib/utils"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSerialize=e.default=e.ROUTE_CONNECTIONS=void 0,e.getFullQueryParams=S,e.hasDefaultSerialize=function(e){return e.serialize===P}
var v=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a},w=e.ROUTE_CONNECTIONS=new WeakMap,x=Symbol("render")
class _ extends(s.default.extend(l.ActionHandler,a.default)){constructor(e){if(super(e),this.context={},e){var r=e.lookup("router:main"),i=e.lookup(t.privatize`-bucket-cache:main`)
this._router=r,this._bucketCache=i,this._topLevelViewTemplate=e.lookup("template:-outlet"),this._environment=e.lookup("-environment:main")}}serialize(e,t){if(!(t.length<1)&&e){var r={}
if(1===t.length){var[i]=t
"object"==typeof e&&i in e?r[i]=(0,s.get)(e,i):/_id$/.test(i)?r[i]=(0,s.get)(e,"id"):(0,u.isProxy)(e)&&(r[i]=(0,s.get)(e,i))}else r=(0,s.getProperties)(e,t)
return r}}_setRouteName(e){this.routeName=e
var t=(0,i.getOwner)(this)
this.fullRouteName=C(t,e)}_stashNames(e,t){if(!this._names){var r=this._names=e._names
r.length||(r=(e=t)&&e._names||[])
for(var i=(0,s.get)(this,"_qp").qps,n=new Array(r.length),a=0;a<r.length;++a)n[a]=`${e.name}.${r[a]}`
for(var o of i)"model"===o.scope&&(o.parts=n)}}_activeQPChanged(e,t){this._router._activeQPChanged(e.scopedPropertyName,t)}_updatingQPChanged(e){this._router._updatingQPChanged(e.urlKey)}paramsFor(e){var t=(0,i.getOwner)(this),r=t.lookup(`route:${e}`)
if(void 0===r)return{}
var n=this._router._routerMicrolib.activeTransition,s=n?n[g.STATE_SYMBOL]:this._router._routerMicrolib.state,a=r.fullRouteName,o=Object.assign({},s.params[a]),l=k(r,s)
return Object.entries(l).reduce(((e,[t,r])=>(e[t]=r,e)),o)}serializeQueryParamKey(e){return e}serializeQueryParam(e,t,r){return this._router._serializeQueryParam(e,r)}deserializeQueryParam(e,t,r){return this._router._deserializeQueryParam(e,r)}_optionsForQueryParam(e){var t=(0,s.get)(this,"queryParams")
return(0,s.get)(t,e.urlKey)||(0,s.get)(t,e.prop)||t[e.urlKey]||t[e.prop]||{}}resetController(e,t,r){return this}exit(e){this.deactivate(e),this.trigger("deactivate",e),this.teardownViews()}_internalReset(e,t){var r=this.controller
r._qpDelegate=(0,s.get)(this,"_qp").states.inactive,this.resetController(r,e,t)}enter(e){w.set(this,[]),this.activate(e),this.trigger("activate",e)}deactivate(e){}activate(e){}transitionTo(...e){return(0,y.deprecateTransitionMethods)("route","transitionTo"),this._router.transitionTo(...(0,y.prefixRouteNameArg)(this,e))}intermediateTransitionTo(...e){var[t,...r]=(0,y.prefixRouteNameArg)(this,e)
this._router.intermediateTransitionTo(t,...r)}refresh(){return this._router._routerMicrolib.refresh(this)}replaceWith(...e){return(0,y.deprecateTransitionMethods)("route","replaceWith"),this._router.replaceWith(...(0,y.prefixRouteNameArg)(this,e))}setup(e,t){var i=this.controllerName||this.routeName,n=this.controllerFor(i,!0),a=null!=n?n:this.generateController(i),o=(0,s.get)(this,"_qp")
if(!this.controller){var l=o.propertyNames;(function(e,t){t.forEach((t=>{if(void 0===(0,r.descriptorForProperty)(e,t)){var i=(0,u.lookupDescriptor)(e,t)
null===i||"function"!=typeof i.get&&"function"!=typeof i.set||(0,r.defineProperty)(e,t,(0,f.dependentKeyCompat)({get:i.get,set:i.set}))}(0,r.addObserver)(e,`${t}.[]`,e,e._qpChanged,!1)}))})(a,l),this.controller=a}var c=o.states
if(a._qpDelegate=c.allowOverrides,t){(0,y.stashParamNames)(this._router,t[g.STATE_SYMBOL].routeInfos)
var d=this._bucketCache,h=t[g.PARAMS_SYMBOL]
o.propertyNames.forEach((e=>{var t=o.map[e]
t.values=h
var r=(0,y.calculateCacheKey)(t.route.fullRouteName,t.parts,t.values),i=d.lookup(r,e,t.undecoratedDefaultValue);(0,s.set)(a,e,i)}))
var p=k(this,t[g.STATE_SYMBOL]);(0,s.setProperties)(a,p)}this.setupController(a,e,t),this._environment.options.shouldRender&&this[x](),(0,r.flushAsyncObservers)(!1)}_qpChanged(e,t,r){if(r){var i=this._bucketCache,n=(0,y.calculateCacheKey)(r.route.fullRouteName,r.parts,r.values)
i.stash(n,e,t)}}beforeModel(e){}afterModel(e,t){}redirect(e,t){}contextDidChange(){this.currentModel=this.context}model(e,t){var r,i,n,a=(0,s.get)(this,"_qp").map
for(var o in e)if(!("queryParams"===o||a&&o in a)){var l=o.match(/^(.*)_id$/)
null!==l&&(r=l[1],n=e[o]),i=!0}if(!r){if(i)return Object.assign({},e)
if(t.resolveIndex<1)return
return t[g.STATE_SYMBOL].routeInfos[t.resolveIndex-1].context}return this.findModel(r,n)}deserialize(e,t){return this.model(this._paramsFor(this.routeName,e),t)}findModel(...e){return(0,s.get)(this,"store").find(...e)}setupController(e,t,r){e&&void 0!==t&&(0,s.set)(e,"model",t)}controllerFor(e,t=!1){var r=(0,i.getOwner)(this),n=r.lookup(`route:${e}`)
n&&n.controllerName&&(e=n.controllerName)
var s=r.lookup(`controller:${e}`)
return s}generateController(e){var t=(0,i.getOwner)(this)
return(0,n.generateController)(t,e)}modelFor(e){var t,r=(0,i.getOwner)(this),n=this._router&&this._router._routerMicrolib?this._router._routerMicrolib.activeTransition:void 0
t=r.routable&&void 0!==n?C(r,e):e
var s=r.lookup(`route:${t}`)
if(null!=n){var a=s&&s.routeName||t
if(Object.prototype.hasOwnProperty.call(n.resolvedModels,a))return n.resolvedModels[a]}return null==s?void 0:s.currentModel}[x](e,t){var r=function(e,t,r){var n,s=!t&&!r
s||("object"!=typeof t||r?n=t:(n=e.templateName||e.routeName,r=t))
var a,o,l,c,u,d,h=(0,i.getOwner)(e)
r&&(l=r.into&&r.into.replace(/\//g,"."),c=r.outlet,d=r.controller,u=r.model)
c=c||"main",s?(a=e.routeName,o=e.templateName||a):o=a=n.replace(/\//g,".")
void 0===d&&(d=s?e.controllerName||h.lookup(`controller:${a}`):h.lookup(`controller:${a}`)||e.controllerName||e.routeName)
if("string"==typeof d){var p=d
d=h.lookup(`controller:${p}`)}void 0===u?u=e.currentModel:d.set("model",u)
var f,m=h.lookup(`template:${o}`)
l&&(f=function(e){var t=function(e,t,r=0){if(!t)return
for(var i=0;i<t.length;i++){var n=t[i]
if(n.route===e)return t[i+r]}return}(e,e._router._routerMicrolib.state.routeInfos,-1)
return t&&t.route}(e))&&l===f.routeName&&(l=void 0)
var g={owner:h,into:l,outlet:c,name:a,controller:d,model:u,template:void 0!==m?m(h):e._topLevelViewTemplate(h)}
return g}(this,e,t)
w.get(this).push(r),(0,m.once)(this._router,"_setOutlets")}willDestroy(){this.teardownViews()}teardownViews(){var e=w.get(this)
void 0!==e&&e.length>0&&(w.set(this,[]),(0,m.once)(this._router,"_setOutlets"))}buildRouteInfoMetadata(){}_paramsFor(e,t){return void 0!==this._router._routerMicrolib.activeTransition?this.paramsFor(e):t}get store(){var e=(0,i.getOwner)(this)
this.routeName
return{find(t,r){var i=e.factoryFor(`model:${t}`)
if(i)return(i=i.class).find(r)}}}set store(e){(0,r.defineProperty)(this,"store",null,e)}get _qp(){var e={},t=this.controllerName||this.routeName,r=(0,i.getOwner)(this),a=r.lookup(`controller:${t}`),o=(0,s.get)(this,"queryParams"),l=Object.keys(o).length>0
if(a){var u=(0,s.get)(a,"queryParams")||[]
e=function(e,t){var r={},i={defaultValue:!0,type:!0,scope:!0,as:!0}
for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Object.assign(Object.assign({},e[n]),t[n]),i[n]=!0)
for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&!i[s]&&(r[s]=Object.assign(Object.assign({},t[s]),e[s]))
return r}((0,y.normalizeControllerQueryParams)(u),o)}else l&&(a=(0,n.generateController)(r,t),e=o)
var d=[],h={},p=[]
for(var f in e)if(Object.prototype.hasOwnProperty.call(e,f)&&"unknownProperty"!==f&&"_super"!==f){var m=e[f],g=m.scope||"model",b=void 0
"controller"===g&&(b=[])
var v=m.as||this.serializeQueryParamKey(f),w=(0,s.get)(a,f)
w=A(w)
var x=m.type||(0,c.typeOf)(w),_=this.serializeQueryParam(w,v,x),S=`${t}:${f}`,k={undecoratedDefaultValue:(0,s.get)(a,f),defaultValue:w,serializedDefaultValue:_,serializedValue:_,type:x,urlKey:v,prop:f,scopedPropertyName:S,controllerName:t,route:this,parts:b,values:null,scope:g}
h[f]=h[v]=h[S]=k,d.push(k),p.push(f)}return{qps:d,map:h,propertyNames:p,states:{inactive:(e,t)=>{var r=h[e]
this._qpChanged(e,t,r)},active:(e,t)=>{var r=h[e]
return this._qpChanged(e,t,r),this._activeQPChanged(r,t)},allowOverrides:(e,t)=>{var r=h[e]
return this._qpChanged(e,t,r),this._updatingQPChanged(r)}}}}}function S(e,t){if(t.fullQueryParams)return t.fullQueryParams
var r=t.routeInfos.every((e=>e.route)),i=Object.assign({},t.queryParams)
return e._deserializeQueryParams(t.routeInfos,i),r&&(t.fullQueryParams=i),i}function k(e,t){t.queryParamsFor=t.queryParamsFor||{}
var r=e.fullRouteName,i=t.queryParamsFor[r]
if(i)return i
var n=S(e._router,t),a=t.queryParamsFor[r]={},o=(0,s.get)(e,"_qp").qps
for(var l of o){var c=l.prop in n
a[l.prop]=c?n[l.prop]:A(l.defaultValue)}return a}function A(e){return Array.isArray(e)?(0,o.A)(e.slice()):e}function C(e,t){if(e.routable){var r=e.mountPoint
return"application"===t?r:`${r}.${t}`}return t}_.isRouteFactory=!0,v([s.computed],_.prototype,"store",null),v([s.computed],_.prototype,"_qp",null)
var P=e.defaultSerialize=_.prototype.serialize
_.reopen({mergedProperties:["queryParams"],queryParams:{},templateName:null,controllerName:null,send(...e){if(this._router&&this._router._routerMicrolib||!(0,h.isTesting)())this._router.send(...e)
else{var t=e.shift(),r=this.actions[t]
if(r)return r.apply(this,e)}},actions:{queryParamsDidChange(e,t,r){var i=(0,s.get)(this,"_qp").map,n=Object.keys(e).concat(Object.keys(r))
for(var a of n){var o=i[a]
if(o){var l=this._optionsForQueryParam(o)
if((0,s.get)(l,"refreshModel")&&this._router.currentState){this.refresh()
break}}}return!0},finalizeQueryParamChange(e,t,i){if("application"!==this.fullRouteName)return!0
if(i){var n,a=i[g.STATE_SYMBOL].routeInfos,o=this._router,l=o._queryParamsFor(a),c=o._qpUpdates,u=!1
for(var d of((0,y.stashParamNames)(o,a),l.qps)){var h=d.route,p=h.controller,f=d.urlKey in e&&d.urlKey,m=void 0,b=void 0
if(c.has(d.urlKey)?(m=(0,s.get)(p,d.prop),b=h.serializeQueryParam(m,d.urlKey,d.type)):f?void 0!==(b=e[f])&&(m=h.deserializeQueryParam(b,d.urlKey,d.type)):(b=d.serializedDefaultValue,m=A(d.defaultValue)),p._qpDelegate=(0,s.get)(h,"_qp").states.inactive,b!==d.serializedValue){if(i.queryParamsOnly&&!1!==n){var v=h._optionsForQueryParam(d),w=(0,s.get)(v,"replace")
w?n=!0:!1===w&&(n=!1)}(0,s.set)(p,d.prop,m),u=!0}d.serializedValue=b,d.serializedDefaultValue===b||t.push({value:b,visible:!0,key:f||d.urlKey})}!0===u&&(0,r.flushAsyncObservers)(!1),n&&i.method("replace"),l.qps.forEach((e=>{var t=(0,s.get)(e.route,"_qp")
e.route.controller._qpDelegate=(0,s.get)(t,"states.active")})),o._qpUpdates.clear()}}}})
e.default=_})),e("@ember/routing/router-service",["exports","@ember/-internals/owner","@ember/object/evented","@ember/debug","@ember/object/computed","@ember/service","@glimmer/validator","@ember/routing/router","@ember/routing/lib/utils"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ROUTER=void 0
var c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a},u=e.ROUTER=Symbol("ROUTER")
function d(e,t){return"/"===t?e:e.substring(t.length)}class h extends(s.default.extend(r.default)){get _router(){var e=this[u]
if(void 0!==e)return e
var r=(0,t.getOwner)(this),i=r.lookup("router:main")
return this[u]=i}willDestroy(){super.willDestroy(),this[u]=void 0}transitionTo(...e){if((0,l.resemblesURL)(e[0]))return this._router._doURLTransition("transitionTo",e[0])
var{routeName:t,models:r,queryParams:i}=(0,l.extractRouteArgs)(e)
return this._router._doTransition(t,r,i,!0)}replaceWith(...e){return this.transitionTo(...e).method("replace")}urlFor(e,...t){return this._router.setupRouter(),this._router.generate(e,...t)}isActive(...e){var{routeName:t,models:r,queryParams:i}=(0,l.extractRouteArgs)(e),n=this._router._routerMicrolib
if((0,a.consumeTag)((0,a.tagFor)(this._router,"currentURL")),!n.isActiveIntent(t,r))return!1
if(Object.keys(i).length>0){var s=t
i=Object.assign({},i),this._router._prepareQueryParams(s,r,i,!0)
var o=Object.assign({},n.state.queryParams)
return this._router._prepareQueryParams(s,r,o,!0),(0,l.shallowEqual)(i,o)}return!0}recognize(e){this._router.setupRouter()
var t=d(e,this.rootURL)
return this._router._routerMicrolib.recognize(t)}recognizeAndLoad(e){this._router.setupRouter()
var t=d(e,this.rootURL)
return this._router._routerMicrolib.recognizeAndLoad(t)}refresh(e){if(!e)return this._router._routerMicrolib.refresh()
var r=(0,t.getOwner)(this),i=r.lookup(`route:${e}`)
return this._router._routerMicrolib.refresh(i)}}e.default=h,c([(0,n.readOnly)("_router.currentRouteName")],h.prototype,"currentRouteName",void 0),c([(0,n.readOnly)("_router.currentURL")],h.prototype,"currentURL",void 0),c([(0,n.readOnly)("_router.location")],h.prototype,"location",void 0),c([(0,n.readOnly)("_router.rootURL")],h.prototype,"rootURL",void 0),c([(0,n.readOnly)("_router.currentRoute")],h.prototype,"currentRoute",void 0)})),e("@ember/routing/router",["exports","@ember/-internals/container","@ember/object","@ember/owner","@ember/routing/-internals","@ember/routing/lib/utils","@ember/routing/location","@ember/array","@ember/utils","@ember/object/evented","@ember/debug","@ember/runloop","@ember/routing/route","router_js","@ember/engine/instance"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f){"use strict"
function m(e){P(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)}function g(e,t){0}function b(){return this}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.triggerEvent=A
var{slice:y}=Array.prototype
class v extends(r.default.extend(c.default)){static map(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this}static _routePath(e){var t,r,i=[]
function n(e,t){for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1
return!0}for(var s=1;s<e.length;s++){var a=e[s]
for(t=a.name.split("."),r=y.call(i);r.length&&!n(r,t);)r.shift()
i.push(...t.slice(r.length))}return i.join(".")}constructor(e){super(e),this._didSetupRouter=!1,this._initialTransitionStarted=!1,this.currentURL=null,this.currentRouteName=null,this.currentPath=null,this.currentRoute=null,this._qpCache=Object.create(null),this._qpUpdates=new Set,this._queuedQPChanges={},this._toplevelView=null,this._handledErrors=new Set,this._engineInstances=Object.create(null),this._engineInfoByRoute=Object.create(null),this._slowTransitionTimer=null,this.currentState=null,this.targetState=null,this._resetQueuedQueryParameterChanges(),this.namespace=e.lookup("application:main")
var r=e.lookup(t.privatize`-bucket-cache:main`)
this._bucketCache=r
var i=e.lookup("service:router")
this._routerService=i}_initRouterJs(){var e=(0,r.get)(this,"location"),t=this,n=(0,i.getOwner)(this),s=Object.create(null)
class a extends p.default{getRoute(e){var r=e,i=n,a=t._engineInfoByRoute[r]
a&&(i=t._getEngineInstance(a),r=a.localFullName)
var o=`route:${r}`,l=i.lookup(o)
if(s[e])return l
if(s[e]=!0,!l){var c=i.factoryFor("route:basic").class
i.register(o,c.extend()),l=i.lookup(o)}if(l._setRouteName(r),a&&!(0,h.hasDefaultSerialize)(l))throw new Error("Defining a custom serialize method on an Engine route is not supported.")
return l}getSerializer(e){var r=t._engineInfoByRoute[e]
if(r)return r.serializeMethod||h.defaultSerialize}updateURL(i){(0,d.once)((()=>{e.setURL(i),(0,r.set)(t,"currentURL",i)}))}didTransition(e){t.didTransition(e)}willTransition(e,r){t.willTransition(e,r)}triggerEvent(e,r,i,n){return A.bind(t)(e,r,i,n)}routeWillChange(e){t.trigger("routeWillChange",e),t._routerService.trigger("routeWillChange",e),e.isIntermediate&&t.set("currentRoute",e.to)}routeDidChange(e){t.set("currentRoute",e.to),(0,d.once)((()=>{t.trigger("routeDidChange",e),t._routerService.trigger("routeDidChange",e)}))}transitionDidError(e,r){return e.wasAborted||r.isAborted?(0,p.logAbort)(r):(r.trigger(!1,"error",e.error,r,e.route),t._isErrorHandled(e.error)?(r.rollback(),this.routeDidChange(r),e.error):(r.abort(),e.error))}replaceURL(i){if(e.replaceURL){(0,d.once)((()=>{e.replaceURL(i),(0,r.set)(t,"currentURL",i)}))}else this.updateURL(i)}}var o=this._routerMicrolib=new a,l=this.constructor.dslCallbacks||[b],c=this._buildDSL()
c.route("application",{path:"/",resetNamespace:!0,overrideNameAssertion:!0},(function(){for(var e=0;e<l.length;e++)l[e].call(this)})),o.map(c.generate())}_buildDSL(){var e=this._hasModuleBasedResolver(),t=this,r=(0,i.getOwner)(this),s={enableLoadingSubstates:e,resolveRouteMap:e=>r.factoryFor(`route-map:${e}`),addRouteForEngine(e,r){t._engineInfoByRoute[e]||(t._engineInfoByRoute[e]=r)}}
return new n.DSL(null,s)}_resetQueuedQueryParameterChanges(){this._queuedQPChanges={}}_hasModuleBasedResolver(){var e=(0,i.getOwner)(this),t=(0,r.get)(e,"application.__registry__.resolver.moduleBasedResolver")
return Boolean(t)}startRouting(){if(this.setupRouter()){var e=(0,r.get)(this,"initialURL")
void 0===e&&(e=(0,r.get)(this,"location").getURL())
var t=this.handleURL(e)
if(t&&t.error)throw t.error}}setupRouter(){if(this._didSetupRouter)return!1
this._didSetupRouter=!0,this._setupLocation()
var e=(0,r.get)(this,"location")
return!(0,r.get)(e,"cancelRouterSetup")&&(this._initRouterJs(),e.onUpdateURL((e=>{this.handleURL(e)})),!0)}_setOutlets(){if(!this.isDestroying&&!this.isDestroyed){var e=this._routerMicrolib.currentRouteInfos
if(e){var t,r=null
for(var n of e){var s=n.route,a=h.ROUTE_CONNECTIONS.get(s),o=void 0
if(0===a.length)o=I(r,t,s)
else for(var l=0;l<a.length;l++){var c=M(r,t,a[l])
r=c.liveRoutes
var{name:u,outlet:d}=c.ownState.render
u!==s.routeName&&"main"!==d||(o=c.ownState)}t=o}if(r)if(this._toplevelView)this._toplevelView.setOutletState(r)
else{var p=(0,i.getOwner)(this),f=p.factoryFor("view:-outlet"),m=p.lookup("application:main"),g=p.lookup("-environment:main"),b=p.lookup("template:-outlet")
this._toplevelView=f.create({environment:g,template:b,application:m}),this._toplevelView.setOutletState(r)
var y=p.lookup("-application-instance:main")
y&&y.didCreateRootView(this._toplevelView)}}}}handleURL(e){var t=e.split(/#(.+)?/)[0]
return this._doURLTransition("handleURL",t)}_doURLTransition(e,t){this._initialTransitionStarted=!0
var r=this._routerMicrolib[e](t||"/")
return O(r,this),r}transitionTo(...e){if((0,s.resemblesURL)(e[0]))return this._doURLTransition("transitionTo",e[0])
var{routeName:t,models:r,queryParams:i}=(0,s.extractRouteArgs)(e)
return this._doTransition(t,r,i)}intermediateTransitionTo(e,...t){this._routerMicrolib.intermediateTransitionTo(e,...t),P(this)}replaceWith(...e){return this.transitionTo(...e).method("replace")}generate(e,...t){var r=this._routerMicrolib.generate(e,...t)
return this.location.formatURL(r)}isActive(e){return this._routerMicrolib.isActive(e)}isActiveIntent(e,t,r){return this.currentState.isActiveIntent(e,t,r)}send(e,...t){this._routerMicrolib.trigger(e,...t)}hasRoute(e){return this._routerMicrolib.hasRoute(e)}reset(){this._didSetupRouter=!1,this._initialTransitionStarted=!1,this._routerMicrolib&&this._routerMicrolib.reset()}willDestroy(){this._toplevelView&&(this._toplevelView.destroy(),this._toplevelView=null),super.willDestroy(),this.reset()
var e=this._engineInstances
for(var t in e){var r=e[t]
for(var i in r){var n=r[i];(0,d.run)(n,"destroy")}}}_activeQPChanged(e,t){this._queuedQPChanges[e]=t,(0,d.once)(this,this._fireQueryParamTransition)}_updatingQPChanged(e){this._qpUpdates.add(e)}_fireQueryParamTransition(){this.transitionTo({queryParams:this._queuedQPChanges}),this._resetQueuedQueryParameterChanges()}_setupLocation(){var e=this.location,t=this.rootURL,n=(0,i.getOwner)(this)
if("string"==typeof e){var s=n.lookup(`location:${e}`)
if(void 0!==s)e=(0,r.set)(this,"location",s)
else{var o={implementation:e}
e=(0,r.set)(this,"location",a.default.create(o))}}null!==e&&"object"==typeof e&&(t&&(0,r.set)(e,"rootURL",t),"function"==typeof e.detect&&(this.location,e.detect()),"function"==typeof e.initState&&e.initState())}_serializeQueryParams(e,t){E(this,e,t,((e,r,i)=>{if(i)delete t[e],t[i.urlKey]=i.route.serializeQueryParam(r,i.urlKey,i.type)
else{if(void 0===r)return
t[e]=this._serializeQueryParam(r,(0,l.typeOf)(r))}}))}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){E(this,e,t,((e,r,i)=>{i&&(delete t[e],t[i.prop]=i.route.deserializeQueryParam(r,i.urlKey,i.type))}))}_deserializeQueryParam(e,t){return null==e?e:"boolean"===t?"true"===e:"number"===t?Number(e).valueOf():"array"===t?(0,o.A)(JSON.parse(e)):e}_pruneDefaultQueryParamValues(e,t){var r=this._queryParamsFor(e)
for(var i in t){var n=r.map[i]
n&&n.serializedDefaultValue===t[i]&&delete t[i]}}_doTransition(e,t,r,i){var n=e||(0,s.getActiveTargetName)(this._routerMicrolib)
this._initialTransitionStarted=!0
var a={}
this._processActiveTransitionQueryParams(n,t,a,r),Object.assign(a,r),this._prepareQueryParams(n,t,a,Boolean(i))
var o=this._routerMicrolib.transitionTo(n,...t,{queryParams:a})
return O(o,this),o}_processActiveTransitionQueryParams(e,t,r,i){if(this._routerMicrolib.activeTransition){var n={},s=this._qpUpdates,a=(0,h.getFullQueryParams)(this,this._routerMicrolib.activeTransition[p.STATE_SYMBOL])
for(var o in a)s.has(o)||(n[o]=a[o])
this._fullyScopeQueryParams(e,t,i),this._fullyScopeQueryParams(e,t,n),Object.assign(r,n)}}_prepareQueryParams(e,t,r,i){var n=C(this,e,t)
this._hydrateUnsuppliedQueryParams(n,r,Boolean(i)),this._serializeQueryParams(n.routeInfos,r),i||this._pruneDefaultQueryParamValues(n.routeInfos,r)}_getQPMeta(e){var t=e.route
return t&&(0,r.get)(t,"_qp")}_queryParamsFor(e){var t=e[e.length-1].name,r=this._qpCache[t]
if(void 0!==r)return r
var i,n=!0,s={},a=[]
for(var o of e)if(i=this._getQPMeta(o)){for(var l of i.qps)a.push(l)
Object.assign(s,i.map)}else n=!1
var c={qps:a,map:s}
return n&&(this._qpCache[t]=c),c}_fullyScopeQueryParams(e,t,r){var i,n=C(this,e,t).routeInfos
for(var s of n)if(i=this._getQPMeta(s))for(var a of i.qps){var o=a.prop in r&&a.prop||a.scopedPropertyName in r&&a.scopedPropertyName||a.urlKey in r&&a.urlKey
o&&o!==a.scopedPropertyName&&(r[a.scopedPropertyName]=r[o],delete r[o])}}_hydrateUnsuppliedQueryParams(e,t,r){var i,n,a,o=e.routeInfos,l=this._bucketCache
for(var c of o)if(i=this._getQPMeta(c))for(var u=0,d=i.qps.length;u<d;++u)if(n=i.qps[u],a=n.prop in t&&n.prop||n.scopedPropertyName in t&&n.scopedPropertyName||n.urlKey in t&&n.urlKey)a!==n.scopedPropertyName&&(t[n.scopedPropertyName]=t[a],delete t[a])
else{var h=(0,s.calculateCacheKey)(n.route.fullRouteName,n.parts,e.params)
t[n.scopedPropertyName]=l.lookup(h,n.prop,n.defaultValue)}}_scheduleLoadingEvent(e,t){this._cancelSlowTransitionTimer(),this._slowTransitionTimer=(0,d.scheduleOnce)("routerTransitions",this,this._handleSlowTransition,e,t)}_handleSlowTransition(e,t){if(this._routerMicrolib.activeTransition){var r=new n.RouterState(this,this._routerMicrolib,this._routerMicrolib.activeTransition[p.STATE_SYMBOL])
this.set("targetState",r),e.trigger(!0,"loading",e,t)}}_cancelSlowTransitionTimer(){this._slowTransitionTimer&&(0,d.cancel)(this._slowTransitionTimer),this._slowTransitionTimer=null}_markErrorAsHandled(e){this._handledErrors.add(e)}_isErrorHandled(e){return this._handledErrors.has(e)}_clearHandledError(e){this._handledErrors.delete(e)}_getEngineInstance({name:e,instanceId:t,mountPoint:r}){var n=this._engineInstances,s=n[e]
s||(s=Object.create(null),n[e]=s)
var a=s[t]
if(!a){var o=(0,i.getOwner)(this);(a=o.buildChildEngineInstance(e,{routable:!0,mountPoint:r})).boot(),s[t]=a}return a}}function w(e,t){for(var r=e.length-1;r>=0;--r){var i=e[r],n=i.route
if(void 0!==n&&!0!==t(n,i))return}}var x={willResolveModel(e,t,r){this._scheduleLoadingEvent(t,r)},error(e,t,r){var i=this,n=e[e.length-1]
w(e,((e,r)=>{if(r!==n){var s=S(e,"error")
if(s)return i._markErrorAsHandled(t),i.intermediateTransitionTo(s,t),!1}var a=_(e,"error")
return!a||(i._markErrorAsHandled(t),i.intermediateTransitionTo(a,t),!1)})),function(e,t){var r,i=[]
r=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e
t&&i.push(t)
r&&(r.message&&i.push(r.message),r.stack&&i.push(r.stack),"string"==typeof r&&i.push(r))
console.error(...i)}(t,`Error while processing route: ${r.targetName}`)},loading(e,t){var r=this,i=e[e.length-1]
w(e,((e,n)=>{if(n!==i){var s=S(e,"loading")
if(s)return r.intermediateTransitionTo(s),!1}var a=_(e,"loading")
return a?(r.intermediateTransitionTo(a),!1):t.pivotHandler!==e}))}}
function _(e,t){var r=(0,i.getOwner)(e),{routeName:n,fullRouteName:s,_router:a}=e,o=`${s}_${t}`
return k(r,a,`${n}_${t}`,o)?o:""}function S(e,t){var r=(0,i.getOwner)(e),{routeName:n,fullRouteName:s,_router:a}=e,o="application"===s?t:`${s}.${t}`
return k(r,a,"application"===n?t:`${n}.${t}`,o)?o:""}function k(e,t,r,i){var n=t.hasRoute(i),s=e.factoryFor(`template:${r}`)||e.factoryFor(`route:${r}`)
return n&&s}function A(e,t,r,i){if(!e){if(t)return
throw new Error(`Can't trigger action '${r}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks.`)}for(var n,s,a=!1,o=e.length-1;o>=0;o--)if(s=(n=e[o].route)&&n.actions&&n.actions[r]){if(!0!==s.apply(n,i))return void("error"===r&&n._router._markErrorAsHandled(i[0]))
a=!0}var l=x[r]
if(l)l.call(this,e,...i)
else if(!a&&!t)throw new Error(`Nothing handled the action '${r}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`)}function C(e,t,r){var i=e._routerMicrolib.applyIntent(t,r),{routeInfos:n,params:s}=i
for(var a of n)a.isResolved?s[a.name]=a.params:s[a.name]=a.serialize(a.context)
return i}function P(e){var t=e._routerMicrolib.currentRouteInfos
if(0!==t.length){var i=v._routePath(t),n=t[t.length-1],s=n.name,a=e.location,o=a.getURL();(0,r.set)(e,"currentPath",i),(0,r.set)(e,"currentRouteName",s),(0,r.set)(e,"currentURL",o)}}function O(e,t){var r=new n.RouterState(t,t._routerMicrolib,e[p.STATE_SYMBOL])
t.currentState||t.set("currentState",r),t.set("targetState",r),e.promise=e.catch((e=>{if(!t._isErrorHandled(e))throw e
t._clearHandledError(e)}),"Transition Error")}function E(e,t,r,i){var n=e._queryParamsFor(t)
for(var s in r){if(Object.prototype.hasOwnProperty.call(r,s))i(s,r[s],n.map[s])}}function T(e,t){if(e)for(var r=[e];r.length>0;){var i=r.shift()
if(i.render.name===t)return i
var n=i.outlets
for(var s in n)r.push(n[s])}}function M(e,t,i){var n,s={render:i,outlets:Object.create(null),wasUsed:!1}
return(n=i.into?T(e,i.into):t)?(0,r.set)(n.outlets,i.outlet,s):e=s,{liveRoutes:e,ownState:s}}function I(e,t,{routeName:r}){var i=T(e,r)
return i||(t.outlets.main={render:{name:r,outlet:"main"},outlets:{}},t)}v.reopen({didTransition:m,willTransition:g,rootURL:"/",location:"hash",url:(0,r.computed)((function(){var e=(0,r.get)(this,"location")
if("string"!=typeof e)return e.getURL()}))})
e.default=v})),e("@ember/routing/transition",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/runloop/index",["exports","@ember/debug","@ember/-internals/error-handling","@ember/-internals/metal","backburner"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._backburner=void 0,e._cancelTimers=function(){l.cancelTimers()},e._getCurrentRunLoop=function(){return s},e._hasScheduledTimers=function(){return l.hasTimers()},e._rsvpErrorQueue=e._queues=void 0,e.begin=function(){l.begin()},e.bind=function(...e){return(...t)=>c(...e.concat(t))},e.cancel=function(e){return l.cancel(e)},e.debounce=function(...e){return l.debounce(...e)},e.end=function(){l.end()},e.join=c,e.later=function(...e){return l.later(...e)},e.next=function(...e){return l.later(...e,1)},e.once=function(...e){return l.scheduleOnce("actions",...e)},e.run=function(...e){return l.run(...e)},e.schedule=function(...e){return l.schedule(...e)},e.scheduleOnce=function(...e){return l.scheduleOnce(...e)},e.throttle=function(...e){return l.throttle(...e)}
var s=null
var a=e._rsvpErrorQueue=`${Math.random()}${Date.now()}`.replace(".",""),o=e._queues=["actions","routerTransitions","render","afterRender","destroy",a],l=e._backburner=new n.default(o,{defaultQueue:"actions",onBegin:function(e){s=e},onEnd:function(e,t){s=t,(0,i.flushAsyncObservers)()},onErrorTarget:r.onErrorTarget,onErrorMethod:"onerror",flush:function(e,t){"render"!==e&&e!==a||(0,i.flushAsyncObservers)(),t()}})
function c(e,t,...r){return l.join(e,t,...r)}})),e("@ember/service/index",["exports","@ember/object/-internals","@ember/-internals/metal"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.inject=function(...e){return(0,r.inject)("service",...e)},e.service=function(...e){return(0,r.inject)("service",...e)}
class i extends t.FrameworkObject{}e.default=i,i.isServiceFactory=!0})),e("@ember/string/index",["exports","@ember/string/lib/string_registry","@ember/-internals/utils","@ember/debug","@ember/-internals/glimmer"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"_getStrings",{enumerable:!0,get:function(){return t.getStrings}}),Object.defineProperty(e,"_setStrings",{enumerable:!0,get:function(){return t.setStrings}}),e.camelize=function(e){return _(),c.get(e)},e.capitalize=function(e){return _(),y.get(e)},e.classify=function(e){return _(),p.get(e)},e.dasherize=function(e){return _(),a.get(e)},e.decamelize=x,e.htmlSafe=function(e){return S("htmlSafe"),(0,n.htmlSafe)(e)},e.isHTMLSafe=function(e){return S("isHTMLSafe"),(0,n.isHTMLSafe)(e)},e.underscore=function(e){return _(),g.get(e)},e.w=function(e){return _(),e.split(/\s+/)}
var s=/[ _]/g,a=new r.Cache(1e3,(e=>x(e).replace(s,"-"))),o=/(-|_|\.|\s)+(.)?/g,l=/(^|\/)([A-Z])/g,c=new r.Cache(1e3,(e=>e.replace(o,((e,t,r)=>r?r.toUpperCase():"")).replace(l,(e=>e.toLowerCase())))),u=/^(-|_)+(.)?/,d=/(.)(-|_|\.|\s)+(.)?/g,h=/(^|\/|\.)([a-z])/g,p=new r.Cache(1e3,(e=>{for(var t=(e,t,r)=>r?`_${r.toUpperCase()}`:"",r=(e,t,r,i)=>t+(i?i.toUpperCase():""),i=e.split("/"),n=0;n<i.length;n++)i[n]=i[n].replace(u,t).replace(d,r)
return i.join("/").replace(h,(e=>e.toUpperCase()))})),f=/([a-z\d])([A-Z]+)/g,m=/-|\s+/g,g=new r.Cache(1e3,(e=>e.replace(f,"$1_$2").replace(m,"_").toLowerCase())),b=/(^|\/)([a-z\u00C0-\u024F])/g,y=new r.Cache(1e3,(e=>e.replace(b,(e=>e.toUpperCase())))),v=/([a-z\d])([A-Z])/g,w=new r.Cache(1e3,(e=>e.replace(v,"$1_$2").toLowerCase()))
function x(e){return _(),w.get(e)}function _(){}function S(e,t=`Importing ${e} from '@ember/string' is deprecated. Please import ${e} from '@ember/template' instead.`){}})),e("@ember/string/lib/string_registry",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.getStrings=function(){return i(),r},e.setStrings=function(e){i(),r=e}
var r={}
function i(){}})),e("@ember/template-compilation/index",["exports","ember-template-compiler"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compileTemplate",{enumerable:!0,get:function(){return t.compile}}),e.precompileTemplate=void 0})),e("@ember/template-factory/index",["exports","@glimmer/opcode-compiler"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createTemplateFactory",{enumerable:!0,get:function(){return t.templateFactory}})}))
e("@ember/template/index",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"htmlSafe",{enumerable:!0,get:function(){return t.htmlSafe}}),Object.defineProperty(e,"isHTMLSafe",{enumerable:!0,get:function(){return t.isHTMLSafe}})})),e("@ember/test/adapter",["exports","ember-testing"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.Adapter})),e("@ember/test/index",["exports","require"],(function(e,t){"use strict"
if(Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterWaiter=e.unregisterHelper=e.registerWaiter=e.registerHelper=e.registerAsyncHelper=void 0,(0,t.has)("ember-testing")){var{Test:r}=(0,t.default)("ember-testing")
e.registerAsyncHelper=r.registerAsyncHelper,e.registerHelper=r.registerHelper,e.registerWaiter=r.registerWaiter,e.unregisterHelper=r.unregisterHelper,e.unregisterWaiter=r.unregisterWaiter}else{var i=()=>{throw new Error("Attempted to use test utilities, but `ember-testing` was not included")}
e.registerAsyncHelper=i,e.registerHelper=i,e.registerWaiter=i,e.unregisterHelper=i,e.unregisterWaiter=i}})),e("@ember/utils/index",["exports","@ember/utils/lib/is_none","@ember/utils/lib/is_blank","@ember/utils/lib/is_empty","@ember/utils/lib/is_present","@ember/utils/lib/is-equal","@ember/utils/lib/type-of","@ember/utils/lib/compare"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compare",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"isBlank",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"isNone",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isPresent",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"typeOf",{enumerable:!0,get:function(){return a.default}})})),e("@ember/utils/lib/compare",["exports","@ember/utils/lib/type-of","@ember/-internals/runtime","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(r,i){if(r===i)return 0
var o=(0,t.default)(r),l=(0,t.default)(i)
if("instance"===o&&a(r)&&r.constructor.compare)return r.constructor.compare(r,i)
if("instance"===l&&a(i)&&i.constructor.compare)return-1*i.constructor.compare(i,r)
var c=s(n[o],n[l])
if(0!==c)return c
switch(o){case"boolean":return s(Number(r),Number(i))
case"number":return s(r,i)
case"string":return s(r.localeCompare(i),0)
case"array":for(var u=r.length,d=i.length,h=Math.min(u,d),p=0;p<h;p++){var f=e(r[p],i[p])
if(0!==f)return f}return s(u,d)
case"instance":return a(r)&&r.compare?r.compare(r,i):0
case"date":return s(r.getTime(),i.getTime())
default:return 0}}
var n={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10,regexp:11,filelist:12,error:13}
function s(e,t){return Math.sign(e-t)}function a(e){return r.Comparable.detect(e)}})),e("@ember/utils/lib/is-equal",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){if(e&&"function"==typeof e.isEqual)return e.isEqual(t)
if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime()
return e===t}})),e("@ember/utils/lib/is_blank",["exports","@ember/utils/lib/is_empty"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e)||"string"==typeof e&&!1===/\S/.test(e)}})),e("@ember/utils/lib/is_empty",["exports","@ember/object","@ember/-internals/metal"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(null==e)return!0
if(!(0,r.hasUnknownProperty)(e)&&"number"==typeof e.size)return!e.size
if("object"==typeof e){var i=(0,t.get)(e,"size")
if("number"==typeof i)return!i
var n=(0,t.get)(e,"length")
if("number"==typeof n)return!n}if("number"==typeof e.length&&"function"!=typeof e)return!e.length
return!1}})),e("@ember/utils/lib/is_none",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return null==e}})),e("@ember/utils/lib/is_present",["exports","@ember/utils/lib/is_blank"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return!(0,t.default)(e)}})),e("@ember/utils/lib/type-of",["exports","@ember/object/core"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(null===e)return"null"
if(void 0===e)return"undefined"
var n=r[i.call(e)]||"object"
"function"===n?t.default.detect(e)&&(n="class"):"object"===n&&(e instanceof Error?n="error":e instanceof t.default?n="instance":e instanceof Date&&(n="date"))
return n}
var r={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:i}=Object.prototype})),e("@ember/version/index",["exports","ember/version"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"VERSION",{enumerable:!0,get:function(){return t.default}})})),e("@glimmer/destroyable",["exports","@glimmer/util","@glimmer/global-context"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._hasDestroyableChildren=function(e){var t=i.get(e)
return void 0!==t&&null!==t.children},e.assertDestroyablesDestroyed=void 0,e.associateDestroyableChild=function(e,t){0
var r=o(e),i=o(t)
return r.children=n(r.children,t),i.parents=n(i.parents,e),t},e.destroy=l,e.destroyChildren=function(e){var{children:t}=o(e)
s(t,l)},e.enableDestroyableTracking=void 0,e.isDestroyed=function(e){var t=i.get(e)
return void 0!==t&&t.state>=2},e.isDestroying=c,e.registerDestructor=function(e,t,r=!1){0
var i=o(e),s=!0===r?"eagerDestructors":"destructors"
return i[s]=n(i[s],t),t},e.unregisterDestructor=function(e,t,r=!1){0
var i=o(e),n=!0===r?"eagerDestructors":"destructors"
i[n]=a(i[n],t,!1)}
var i=new WeakMap
function n(e,t){return null===e?t:Array.isArray(e)?(e.push(t),e):[e,t]}function s(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)t(e[r])
else null!==e&&t(e)}function a(e,t,r){if(Array.isArray(e)&&e.length>1){var i=e.indexOf(t)
return e.splice(i,1),e}return null}function o(e){var t=i.get(e)
return void 0===t&&(t={parents:null,children:null,eagerDestructors:null,destructors:null,state:0},i.set(e,t)),t}function l(e){var t=o(e)
if(!(t.state>=1)){var{parents:i,children:n,eagerDestructors:c,destructors:u}=t
t.state=1,s(n,l),s(c,(t=>t(e))),s(u,(t=>(0,r.scheduleDestroy)(e,t))),(0,r.scheduleDestroyed)((()=>{s(i,(t=>function(e,t){var r=o(t)
0===r.state&&(r.children=a(r.children,e))}(e,t))),t.state=2}))}}function c(e){var t=i.get(e)
return void 0!==t&&t.state>=1}})),e("@glimmer/encoder",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.InstructionEncoderImpl=void 0
e.InstructionEncoderImpl=class{constructor(e){this.buffer=e,this.size=0}encode(e,t){if(e>255)throw new Error(`Opcode type over 8-bits. Got ${e}.`)
var r=e|t|arguments.length-2<<8
this.buffer.push(r)
for(var i=2;i<arguments.length;i++){var n=arguments[i]
0,this.buffer.push(n)}this.size=this.buffer.length}patch(e,t){if(-1!==this.buffer[e+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.")
this.buffer[e+1]=t}}})),e("@glimmer/env",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.DEBUG=e.CI=void 0
e.DEBUG=!1,e.CI=!1})),e("@glimmer/global-context",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.warnIfStyleNotTrusted=e.toIterator=e.toBool=e.testOverrideGlobalContext=e.setProp=e.setPath=e.scheduleRevalidate=e.scheduleDestroyed=e.scheduleDestroy=e.getProp=e.getPath=e.deprecate=e.default=e.assertGlobalContextWasSet=e.assert=e.FEATURE_DEFAULT_HELPER_MANAGER=void 0
e.FEATURE_DEFAULT_HELPER_MANAGER=!0
var t=()=>{}
e.scheduleRevalidate=t
e.default=function(r){var i
e.scheduleRevalidate=t=r.scheduleRevalidate,e.scheduleDestroy=r.scheduleDestroy,e.scheduleDestroyed=r.scheduleDestroyed,e.toIterator=r.toIterator,e.toBool=r.toBool,e.getProp=r.getProp,e.setProp=r.setProp,e.getPath=r.getPath,e.setPath=r.setPath,e.warnIfStyleNotTrusted=r.warnIfStyleNotTrusted,e.assert=r.assert,e.deprecate=r.deprecate,"boolean"==typeof(null===(i=r.FEATURES)||void 0===i?void 0:i.DEFAULT_HELPER_MANAGER)&&(e.FEATURE_DEFAULT_HELPER_MANAGER=r.FEATURES.DEFAULT_HELPER_MANAGER)}})),e("@glimmer/low-level",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.Stack=void 0
e.Storage=class{constructor(){this.array=[],this.next=0}add(e){var{next:t,array:r}=this
if(t===r.length)this.next++
else{var i=r[t]
this.next=i}return this.array[t]=e,t}deref(e){return this.array[e]}drop(e){this.array[e]=this.next,this.next=e}}
class t{constructor(e=[]){this.vec=e}clone(){return new t(this.vec.slice())}sliceFrom(e){return new t(this.vec.slice(e))}slice(e,r){return new t(this.vec.slice(e,r))}copy(e,t){this.vec[t]=this.vec[e]}writeRaw(e,t){this.vec[e]=t}getRaw(e){return this.vec[e]}reset(){this.vec.length=0}len(){return this.vec.length}}e.Stack=t})),e("@glimmer/manager",["exports","@glimmer/util","@glimmer/reference","@glimmer/validator","@glimmer/destroyable","@glimmer/global-context"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.CustomModifierManager=e.CustomHelperManager=e.CustomComponentManager=void 0,e.capabilityFlagsFrom=function(e){return(e.dynamicLayout?1:0)|(e.dynamicTag?2:0)|(e.prepareArgs?4:0)|(e.createArgs?8:0)|(e.attributeHook?16:0)|(e.elementHook?32:0)|(e.dynamicScope?64:0)|(e.createCaller?128:0)|(e.updateHook?256:0)|(e.createInstance?512:0)|(e.wrapped?1024:0)|(e.willDestroy?2048:0)|(e.hasSubOwner?4096:0)},e.componentCapabilities=function(e,t={}){0
var r=Boolean(t.updateHook)
return a({asyncLifeCycleCallbacks:Boolean(t.asyncLifecycleCallbacks),destructor:Boolean(t.destructor),updateHook:r})},e.getComponentTemplate=function(e){var t=e
for(;null!==t;){var r=R.get(t)
if(void 0!==r)return r
t=D(t)}return},e.getCustomTagFor=function(e){return l.get(e)},e.getInternalComponentManager=function(e,t){0
var r=k(v,e)
if(void 0===r&&!0===t)return null
return r},e.getInternalHelperManager=function(e,t){0
var r=k(x,e)
s.FEATURE_DEFAULT_HELPER_MANAGER&&void 0===r&&"function"==typeof e&&(r=P)
if(r)return r
if(!0===t)return null
return null},e.getInternalModifierManager=function(e,t){0
var r=k(w,e)
if(void 0===r&&!0===t)return null
return r},e.hasCapability=function(e,t){return!!(e&t)},e.hasDestroyable=g,e.hasInternalComponentManager=function(e){return void 0!==k(v,e)},e.hasInternalHelperManager=function(e){return function(e){if(s.FEATURE_DEFAULT_HELPER_MANAGER)return"function"==typeof e
return!1}(e)||void 0!==k(x,e)},e.hasInternalModifierManager=function(e){return void 0!==k(w,e)},e.hasValue=m,e.helperCapabilities=function(e,t={}){0
0
0
return a({hasValue:Boolean(t.hasValue),hasDestroyable:Boolean(t.hasDestroyable),hasScheduledEffect:Boolean(t.hasScheduledEffect)})},e.managerHasCapability=function(e,t,r){return!!(t&r)},e.modifierCapabilities=function(e,t={}){0
return a({disableAutoTracking:Boolean(t.disableAutoTracking)})},e.setComponentManager=function(e,t){return O(new I(e),t)},e.setComponentTemplate=function(e,t){0
0
return R.set(t,e),t},e.setCustomTagFor=c,e.setHelperManager=function(e,t){return C(new b(e),t)},e.setInternalComponentManager=O,e.setInternalHelperManager=C,e.setInternalModifierManager=A,e.setModifierManager=function(e,t){return A(new N(e),t)}
function a(e){return e}var o,l=new WeakMap
function c(e,t){l.set(e,t)}function u(e){if("symbol"==typeof e)return null
var t=Number(e)
return isNaN(t)?null:t%1==0?t:null}function d(e,t){return(0,i.track)((()=>{t in e&&(0,r.valueForRef)(e[t])}))}function h(e,t){return(0,i.track)((()=>{"[]"===t&&e.forEach(r.valueForRef)
var i=u(t)
null!==i&&i<e.length&&(0,r.valueForRef)(e[i])}))}class p{constructor(e){this.named=e}get(e,t){var i=this.named[t]
if(void 0!==i)return(0,r.valueForRef)(i)}has(e,t){return t in this.named}ownKeys(){return Object.keys(this.named)}isExtensible(){return!1}getOwnPropertyDescriptor(e,t){return{enumerable:!0,configurable:!0}}}class f{constructor(e){this.positional=e}get(e,t){var{positional:i}=this
if("length"===t)return i.length
var n=u(t)
return null!==n&&n<i.length?(0,r.valueForRef)(i[n]):e[t]}isExtensible(){return!1}has(e,t){var r=u(t)
return null!==r&&r<this.positional.length}}function m(e){return e.capabilities.hasValue}function g(e){return e.capabilities.hasDestroyable}o=t.HAS_NATIVE_PROXY?(e,t)=>{var{named:r,positional:i}=e,n=new p(r),s=new f(i),a=Object.create(null),o=new Proxy(a,n),l=new Proxy([],s)
return c(o,((e,t)=>d(r,t))),c(l,((e,t)=>h(i,t))),{named:o,positional:l}}:(e,t)=>{var{named:i,positional:n}=e,s={},a=[]
return c(s,((e,t)=>d(i,t))),c(a,((e,t)=>h(n,t))),Object.keys(i).forEach((e=>{Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>(0,r.valueForRef)(i[e])})})),n.forEach(((e,t)=>{Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>(0,r.valueForRef)(e)})})),{named:s,positional:a}}
class b{constructor(e){this.factory=e,this.helperManagerDelegates=new WeakMap,this.undefinedDelegate=null}getDelegateForOwner(e){var t=this.helperManagerDelegates.get(e)
if(void 0===t){var{factory:r}=this
t=r(e),this.helperManagerDelegates.set(e,t)}return t}getDelegateFor(e){if(void 0===e){var{undefinedDelegate:t}=this
if(null===t){var{factory:r}=this
this.undefinedDelegate=t=r(void 0)}return t}return this.getDelegateForOwner(e)}getHelper(e){return(t,i)=>{var s=this.getDelegateFor(i),a=o(t,"helper"),l=s.createHelper(e,a)
if(m(s)){var c=(0,r.createComputeRef)((()=>s.getValue(l)),null,!1)
return g(s)&&(0,n.associateDestroyableChild)(c,s.getDestroyable(l)),c}if(g(s)){var u=(0,r.createConstRef)(void 0,!1)
return(0,n.associateDestroyableChild)(u,s.getDestroyable(l)),u}return r.UNDEFINED_REFERENCE}}}e.CustomHelperManager=b
class y{constructor(){this.capabilities={hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}}createHelper(e,t){return{fn:e,args:t}}getValue({fn:e,args:t}){return Object.keys(t.named).length>0?e(...[...t.positional,t.named]):e(...t.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}}var v=new WeakMap,w=new WeakMap,x=new WeakMap,_=Object.getPrototypeOf
function S(e,t,r){return e.set(r,t),r}function k(e,t){for(var r=t;null!=r;){var i=e.get(r)
if(void 0!==i)return i
r=_(r)}}function A(e,t){return S(w,e,t)}function C(e,t){return S(x,e,t)}var P=new b((()=>new y))
function O(e,t){return S(v,e,t)}var E={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1}
function T(e){return e.capabilities.asyncLifeCycleCallbacks}function M(e){return e.capabilities.updateHook}class I{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){var{componentManagerDelegates:t}=this,r=t.get(e)
if(void 0===r){var{factory:i}=this
r=i(e),t.set(e,r)}return r}create(e,t,r){var i=this.getDelegateFor(e),n=o(r.capture(),"component"),s=i.createComponent(t,n)
return new F(s,i,n)}getDebugName(e){return"function"==typeof e?e.name:e.toString()}update(e){var{delegate:t}=e
if(M(t)){var{component:r,args:i}=e
t.updateComponent(r,i)}}didCreate({component:e,delegate:t}){T(t)&&t.didCreateComponent(e)}didUpdate({component:e,delegate:t}){(function(e){return T(e)&&M(e)})(t)&&t.didUpdateComponent(e)}didRenderLayout(){}didUpdateLayout(){}getSelf({component:e,delegate:t}){return(0,r.createConstRef)(t.getContext(e),"this")}getDestroyable(e){var{delegate:t}=e
if(function(e){return e.capabilities.destructor}(t)){var{component:r}=e
return(0,n.registerDestructor)(e,(()=>t.destroyComponent(r))),e}return null}getCapabilities(){return E}}e.CustomComponentManager=I
class F{constructor(e,t,r){this.component=e,this.delegate=t,this.args=r}}class N{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){var{componentManagerDelegates:t}=this,r=t.get(e)
if(void 0===r){var{factory:i}=this
r=i(e),t.set(e,r)}return r}create(e,t,r,s){var a,l=this.getDelegateFor(e),c=o(s,"modifier"),u=l.createModifier(r,c)
return a={tag:(0,i.createUpdatableTag)(),element:t,delegate:l,args:c,modifier:u},(0,n.registerDestructor)(a,(()=>l.destroyModifier(u,c))),a}getDebugName({debugName:e}){return e}getTag({tag:e}){return e}install({element:e,args:t,modifier:r,delegate:n}){var{capabilities:s}=n
!0===s.disableAutoTracking?(0,i.untrack)((()=>n.installModifier(r,e,t))):n.installModifier(r,e,t)}update({args:e,modifier:t,delegate:r}){var{capabilities:n}=r
!0===n.disableAutoTracking?(0,i.untrack)((()=>r.updateModifier(t,e))):r.updateModifier(t,e)}getDestroyable(e){return e}}e.CustomModifierManager=N
var R=new WeakMap,D=Object.getPrototypeOf})),e("@glimmer/node",["exports","@glimmer/runtime","@simple-dom/document"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.NodeDOMTreeConstruction=void 0,e.serializeBuilder=function(e,t){return s.forInitialRender(e,t)}
class i extends t.DOMTreeConstruction{constructor(e){super(e||(0,r.default)())}setupUselessElement(){}insertHTMLBefore(e,r,i){var n=this.document.createRawHTMLSection(i)
return e.insertBefore(n,r),new t.ConcreteBounds(e,n,n)}createElement(e){return this.document.createElement(e)}setAttribute(e,t,r){e.setAttribute(t,r)}}e.NodeDOMTreeConstruction=i
var n=new WeakMap
class s extends t.NewElementBuilder{constructor(){super(...arguments),this.serializeBlockDepth=0}__openBlock(){var{tagName:e}=this.element
if("TITLE"!==e&&"SCRIPT"!==e&&"STYLE"!==e){var t=this.serializeBlockDepth++
this.__appendComment(`%+b:${t}%`)}super.__openBlock()}__closeBlock(){var{tagName:e}=this.element
if(super.__closeBlock(),"TITLE"!==e&&"SCRIPT"!==e&&"STYLE"!==e){var t=--this.serializeBlockDepth
this.__appendComment(`%-b:${t}%`)}}__appendHTML(e){var{tagName:r}=this.element
if("TITLE"===r||"SCRIPT"===r||"STYLE"===r)return super.__appendHTML(e)
var i=this.__appendComment("%glmr%")
if("TABLE"===r){var n=e.indexOf("<")
if(n>-1)"tr"===e.slice(n+1,n+3)&&(e=`<tbody>${e}</tbody>`)}""===e?this.__appendComment("% %"):super.__appendHTML(e)
var s=this.__appendComment("%glmr%")
return new t.ConcreteBounds(this.element,i,s)}__appendText(e){var{tagName:t}=this.element,r=function(e){var{element:t,nextSibling:r}=e
return null===r?t.lastChild:r.previousSibling}(this)
return"TITLE"===t||"SCRIPT"===t||"STYLE"===t?super.__appendText(e):""===e?this.__appendComment("% %"):(r&&3===r.nodeType&&this.__appendComment("%|%"),super.__appendText(e))}closeElement(){return n.has(this.element)&&(n.delete(this.element),super.closeElement()),super.closeElement()}openElement(e){return"tr"===e&&"TBODY"!==this.element.tagName&&"THEAD"!==this.element.tagName&&"TFOOT"!==this.element.tagName&&(this.openElement("tbody"),n.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t,r=null){var{dom:i}=this,n=i.createElement("script")
return n.setAttribute("glmr",t),i.insertBefore(e,n,r),super.pushRemoteElement(e,t,r)}}})),e("@glimmer/opcode-compiler",["exports","@glimmer/util","@glimmer/vm","@glimmer/global-context","@glimmer/manager","@glimmer/encoder"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuilder=e.StdLib=e.MINIMAL_CAPABILITIES=e.EMPTY_BLOCKS=e.DEFAULT_CAPABILITIES=e.CompileTimeCompilationContextImpl=void 0,e.compilable=ee,e.compileStatements=te,e.compileStd=ae,e.debugCompiler=void 0,e.invokeStaticBlock=N,e.invokeStaticBlockWithStack=R,e.meta=C,e.programCompilationContext=function(e,t){return new ce(e,t)},e.templateCacheCounters=void 0,e.templateCompilationContext=G,e.templateFactory=function({id:e,moduleName:t,block:r,scope:i,isStrictMode:n}){var s,a=e||"client-"+de++,o=null,l=new WeakMap,c=e=>{if(void 0===s&&(s=JSON.parse(r)),void 0===e)return null===o?(he.cacheMiss++,o=new pe({id:a,block:s,moduleName:t,owner:null,scope:i,isStrictMode:n})):he.cacheHit++,o
var c=l.get(e)
return void 0===c?(he.cacheMiss++,c=new pe({id:a,block:s,moduleName:t,owner:e,scope:i,isStrictMode:n}),l.set(e,c)):he.cacheHit++,c}
return c.__id=a,c.__meta={moduleName:t},c}
class a{constructor(e){this.blocks=e,this.names=e?Object.keys(e):[]}get(e){return this.blocks&&this.blocks[e]||null}has(e){var{blocks:t}=this
return null!==t&&e in t}with(e,r){var{blocks:i}=this
return new a(i?(0,t.assign)({},i,{[e]:r}):{[e]:r})}get hasAny(){return null!==this.blocks}}var o=e.EMPTY_BLOCKS=new a(null)
function l(e){if(null===e)return o
for(var r=(0,t.dict)(),[i,n]=e,s=0;s<i.length;s++)r[i[s]]=n[s]
return new a(r)}function c(e){return{type:1,value:e}}function u(e){return{type:5,value:e}}function d(e){return{type:7,value:e}}function h(e){return{type:8,value:e}}function p(e){return t=>{if(!function(e){return Array.isArray(e)&&2===e.length}(t))return!1
var r=t[0]
return 31===r||32===r||r===e}}var f=p(39),m=p(38),g=p(37),b=p(35),y=p(34)
function v(e,t,r,i,n){var{upvars:s}=r,a=s[e[1]],o=t.lookupBuiltInHelper(a)
return i.helper(o,a)}class w{constructor(){this.names={},this.funcs=[]}add(e,t){this.names[e]=this.funcs.push(t)-1}compile(e,t){var r=t[0],i=this.names[r];(0,this.funcs[i])(e,t)}}var x=new w
function _(e,t){if(void 0!==t&&0!==t.length)for(var r=0;r<t.length;r++)e(22,t[r])}function S(e,t){Array.isArray(t)?x.compile(e,t):(E(e,t),e(31))}function k(e,r,i,n){if(null!==r||null!==i){var s=A(e,r)<<4
n&&(s|=8)
var a=t.EMPTY_STRING_ARRAY
if(i){a=i[0]
for(var o=i[1],l=0;l<o.length;l++)S(e,o[l])}e(82,a,t.EMPTY_STRING_ARRAY,s)}else e(83)}function A(e,t){if(null===t)return 0
for(var r=0;r<t.length;r++)S(e,t[r])
return t.length}function C(e){var t,r,[,i,,n]=e.block
return{evalSymbols:P(e),upvars:n,scopeValues:null!==(r=null===(t=e.scope)||void 0===t?void 0:t.call(e))&&void 0!==r?r:null,isStrictMode:e.isStrictMode,moduleName:e.moduleName,owner:e.owner,size:i.length}}function P(e){var{block:t}=e,[,r,i]=t
return i?r:null}function O(e,t){E(e,t),e(31)}function E(e,r){var i=r
"number"==typeof i&&(i=(0,t.isSmallInt)(i)?(0,t.encodeImmediate)(i):{type:6,value:i}),e(30,i)}function T(e,t,i,n){e(0),k(e,i,n,!1),e(16,t),e(1),e(36,r.$v0)}function M(e,t,i,n){e(0),k(e,t,i,!1),e(33,r.$fp,1),e(107),n?(e(36,r.$v0),n(),e(1),e(34,1)):(e(1),e(34,1),e(36,r.$v0))}function I(e,t,r){k(e,r,null,!0),e(23,t),e(24),e(61),e(64),e(40),e(1)}function F(e,t){(function(e,t){null!==t?e(63,d({parameters:t})):E(e,null)})(e,t&&t[1]),e(62),D(e,t)}function N(e,t){e(0),D(e,t),e(61),e(2),e(1)}function R(e,t,i){var n=t[1],s=n.length,a=Math.min(i,s)
if(0!==a){if(e(0),a){e(39)
for(var o=0;o<a;o++)e(33,r.$fp,i-o),e(19,n[o])}D(e,t),e(61),e(2),a&&e(40),e(1)}else N(e,t)}function D(e,t){null===t?E(e,null):e(28,{type:4,value:t})}function j(e,t,r){var i=[],n=0
for(var s of(r((function(e,t){i.push({match:e,callback:t,label:"CLAUSE"+n++})})),e(69,1),t(),e(1001),i.slice(0,-1)))e(67,c(s.label),s.match)
for(var a=i.length-1;a>=0;a--){var o=i[a]
e(1e3,o.label),e(34,1),o.callback(),0!==a&&e(4,c("END"))}e(1e3,"END"),e(1002),e(70)}function L(e,t,r){e(1001),e(0),e(6,c("ENDINITIAL")),e(69,t()),r(),e(1e3,"FINALLY"),e(70),e(5),e(1e3,"ENDINITIAL"),e(1),e(1002)}function B(e,t,r,i){return L(e,t,(()=>{e(66,c("ELSE")),r(),e(4,c("FINALLY")),e(1e3,"ELSE"),void 0!==i&&i()}))}x.add(29,((e,[,t])=>{for(var r of t)S(e,r)
e(27,t.length)})),x.add(28,((e,[,t,r,i])=>{g(t)?e(1005,t,(t=>{T(e,t,r,i)})):(S(e,t),M(e,r,i))})),x.add(50,((e,[,t,i,n,s])=>{(function(e,t,i,n,s){e(0),k(e,n,s,!1),e(86),S(e,i),e(77,t,{type:2,value:void 0}),e(1),e(36,r.$v0)})(e,i,t,n,s)})),x.add(30,((e,[,t,r])=>{e(21,t),_(e,r)})),x.add(32,((e,[,t,r])=>{e(1011,t,(t=>{e(29,t),_(e,r)}))})),x.add(31,((e,[,t,r])=>{e(1009,t,(e=>{}))})),x.add(34,(()=>{throw new Error("unimplemented opcode")})),x.add(36,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:t=>{T(e,t,null,null)}})}))})),x.add(99,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:(r,i,n)=>{t[2][0]
T(e,r,null,null)}})}))})),x.add(27,(e=>O(e,void 0))),x.add(48,((e,[,t])=>{S(e,t),e(25)})),x.add(49,((e,[,t])=>{S(e,t),e(24),e(61),e(26)})),x.add(52,((e,[,t,r,i])=>{S(e,i),S(e,r),S(e,t),e(109)})),x.add(51,((e,[,t])=>{S(e,t),e(110)})),x.add(53,((e,[,t])=>{S(e,t),e(111)})),x.add(54,((e,[,t])=>{e(0),k(e,t,null,!1),e(112),e(1),e(36,r.$v0)}))
var $="&attrs"
function z(e,i,s,a,o,c){var{compilable:u,capabilities:d,handle:p}=i,f=s?[s,[]]:null,m=Array.isArray(c)||null===c?l(c):c
u?(e(78,p),function(e,{capabilities:i,layout:s,elementBlock:a,positional:o,named:l,blocks:c}){var{symbolTable:u}=s,d=u.hasEval||(0,n.hasCapability)(i,4)
if(d)return void q(e,{capabilities:i,elementBlock:a,positional:o,named:l,atNames:!0,blocks:c,layout:s})
e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0)
var{symbols:p}=u,f=[],m=[],g=[],b=c.names
if(null!==a){var y=p.indexOf($);-1!==y&&(F(e,a),f.push(y))}for(var v=0;v<b.length;v++){var w=b[v],x=p.indexOf(`&${w}`);-1!==x&&(F(e,c.get(w)),f.push(x))}if((0,n.hasCapability)(i,8)){var _=A(e,o)<<4
_|=8
var k=t.EMPTY_STRING_ARRAY
if(null!==l){k=l[0]
for(var C=l[1],P=0;P<C.length;P++){var O=p.indexOf(k[P])
S(e,C[P]),m.push(O)}}e(82,k,t.EMPTY_STRING_ARRAY,_),m.push(-1)}else if(null!==l)for(var E=l[0],T=l[1],M=0;M<T.length;M++){var I=E[M],N=p.indexOf(I);-1!==N&&(S(e,T[M]),m.push(N),g.push(I))}e(97,r.$s0),(0,n.hasCapability)(i,64)&&e(59);(0,n.hasCapability)(i,512)&&e(87,0|c.has("default"),r.$s0)
e(88,r.$s0),(0,n.hasCapability)(i,8)?e(90,r.$s0):e(90,r.$s0,g)
e(37,p.length+1,Object.keys(c).length>0?1:0),e(19,0)
for(var R=m.length-1;R>=0;R--){var D=m[R];-1===D?e(34,1):e(19,D+1)}null!==o&&e(34,o.length)
for(var j=f.length-1;j>=0;j--){e(20,f[j]+1)}e(28,h(s)),e(61),e(2),e(100,r.$s0),e(1),e(40),(0,n.hasCapability)(i,64)&&e(60)
e(98),e(35,r.$s0)}(e,{capabilities:d,layout:u,elementBlock:f,positional:a,named:o,blocks:m})):(e(78,p),q(e,{capabilities:d,elementBlock:f,positional:a,named:o,atNames:!0,blocks:m}))}function U(e,t,i,n,s,a,o,u){var d=i?[i,[]]:null,h=Array.isArray(a)||null===a?l(a):a
L(e,(()=>(S(e,t),e(33,r.$sp,0),2)),(()=>{e(66,c("ELSE")),u?e(81):e(80,{type:2,value:void 0}),e(79),q(e,{capabilities:!0,elementBlock:d,positional:n,named:s,atNames:o,blocks:h}),e(1e3,"ELSE")}))}function q(e,{capabilities:i,elementBlock:s,positional:a,named:o,atNames:l,blocks:c,layout:u}){var p=!!c,f=!0===i||(0,n.hasCapability)(i,4)||!(!o||0===o[0].length),m=c.with("attrs",s)
e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0),function(e,r,i,n,s){for(var a=n.names,o=0;o<a.length;o++)F(e,n.get(a[o]))
var l=A(e,r)<<4
s&&(l|=8),n&&(l|=7)
var c=t.EMPTY_ARRAY
if(i){c=i[0]
for(var u=i[1],d=0;d<u.length;d++)S(e,u[d])}e(82,c,a,l)}(e,a,o,m,l),e(85,r.$s0),H(e,m.has("default"),p,f,(()=>{u?(e(63,d(u.symbolTable)),e(28,h(u)),e(61)):e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}function H(e,t,i,n,s=null){e(97,r.$s0),e(59),e(87,0|t,r.$s0),s&&s(),e(88,r.$s0),e(90,r.$s0),e(38,r.$s0),e(19,0),e(94,r.$s0),n&&e(17,r.$s0),i&&e(18,r.$s0),e(34,1),e(96,r.$s0),e(100,r.$s0),e(1),e(40),e(60),e(98)}class V{constructor(e,t,r,i,n){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=r,this.trustingNonDynamicAppend=i,this.cautiousNonDynamicAppend=n}get"trusting-append"(){return this.trustingGuardedAppend}get"cautious-append"(){return this.cautiousGuardedAppend}get"trusting-non-dynamic-append"(){return this.trustingNonDynamicAppend}get"cautious-non-dynamic-append"(){return this.cautiousNonDynamicAppend}getAppend(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend}}function G(e,t){return{program:e,encoder:new ne(e.heap,t,e.stdlib),meta:t}}e.StdLib=V
var W=new w,X=["class","id","value","name","type","style","href"],K=["div","span","p","a"]
function Y(e){return"string"==typeof e?e:K[e]}function J(e){return"string"==typeof e?e:X[e]}function Q(e){return null===e?null:[e[0].map((e=>`@${e}`)),e[1]]}W.add(3,((e,t)=>e(42,t[1]))),W.add(13,(e=>e(55))),W.add(12,(e=>e(54))),W.add(4,((e,[,t,i,n])=>{m(t)?e(1003,t,(t=>{e(0),k(e,i,n,!1),e(57,t),e(1)})):(S(e,t),e(0),k(e,i,n,!1),e(33,r.$fp,1),e(108),e(1))})),W.add(14,((e,[,t,r,i])=>{e(51,J(t),r,null!=i?i:null)})),W.add(24,((e,[,t,r,i])=>{e(105,J(t),r,null!=i?i:null)})),W.add(15,((e,[,t,r,i])=>{S(e,r),e(52,J(t),!1,null!=i?i:null)})),W.add(22,((e,[,t,r,i])=>{S(e,r),e(52,J(t),!0,null!=i?i:null)})),W.add(16,((e,[,t,r,i])=>{S(e,r),e(53,J(t),!1,null!=i?i:null)})),W.add(23,((e,[,t,r,i])=>{S(e,r),e(53,J(t),!0,null!=i?i:null)})),W.add(10,((e,[,t])=>{e(48,Y(t))})),W.add(11,((e,[,t])=>{e(89),e(48,Y(t))})),W.add(8,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{z(e,t,r,null,i,n)})):U(e,t,r,null,i,n,!0,!0)})),W.add(18,((e,[,t,r])=>I(e,t,r))),W.add(17,((e,[,t])=>I(e,t,null))),W.add(26,((e,[,t])=>e(103,{type:3,value:void 0},t))),W.add(1,((e,[,t])=>{if(Array.isArray(t))if(y(t))e(1008,t,{ifComponent(t){z(e,t,null,null,null,null)},ifHelper(t){e(0),T(e,t,null,null),e(3,u("cautious-non-dynamic-append")),e(1)},ifValue(t){e(0),e(29,t),e(3,u("cautious-non-dynamic-append")),e(1)}})
else if(28===t[0]){var[,r,i,n]=t
b(r)?e(1007,r,{ifComponent(t){z(e,t,null,i,Q(n),null)},ifHelper(t){e(0),T(e,t,i,n),e(3,u("cautious-non-dynamic-append")),e(1)}}):j(e,(()=>{S(e,r),e(106)}),(t=>{t(0,(()=>{e(81),e(79),q(e,{capabilities:!0,elementBlock:null,positional:i,named:n,atNames:!1,blocks:l(null)})})),t(1,(()=>{M(e,i,n,(()=>{e(3,u("cautious-non-dynamic-append"))}))}))}))}else e(0),S(e,t),e(3,u("cautious-append")),e(1)
else e(41,null==t?"":String(t))})),W.add(2,((e,[,t])=>{Array.isArray(t)?(e(0),S(e,t),e(3,u("trusting-append")),e(1)):e(41,null==t?"":String(t))})),W.add(6,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{z(e,t,null,r,Q(i),n)})):U(e,t,null,r,i,n,!1,!1)})),W.add(40,((e,[,t,i,n,s])=>{B(e,(()=>(S(e,i),void 0===s?O(e,void 0):S(e,s),S(e,n),e(33,r.$sp,0),4)),(()=>{e(50),N(e,t),e(56)}))})),W.add(41,((e,[,t,r,i])=>B(e,(()=>(S(e,t),e(71),1)),(()=>{N(e,r)}),i?()=>{N(e,i)}:void 0))),W.add(42,((e,[,t,i,n,s])=>L(e,(()=>(i?S(e,i):O(e,null),S(e,t),2)),(()=>{e(72,c("BODY"),c("ELSE")),e(0),e(33,r.$fp,1),e(6,c("ITER")),e(1e3,"ITER"),e(74,c("BREAK")),e(1e3,"BODY"),R(e,n,2),e(34,2),e(4,c("FINALLY")),e(1e3,"BREAK"),e(1),e(73),e(4,c("FINALLY")),e(1e3,"ELSE"),s&&N(e,s)})))),W.add(43,((e,[,t,i,n])=>{B(e,(()=>(S(e,t),e(33,r.$sp,0),e(71),2)),(()=>{R(e,i,1)}),(()=>{n&&N(e,n)}))})),W.add(44,((e,[,t,r])=>{R(e,r,A(e,t))})),W.add(45,((e,[,t,r])=>{if(t){var[i,n]=t
A(e,n),function(e,t,r){e(59),e(58,t),r(),e(60)}(e,i,(()=>{N(e,r)}))}else N(e,r)})),W.add(46,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{z(e,t,null,r,Q(i),n)})):U(e,t,null,r,i,n,!1,!1)}))
class Z{constructor(e,t,r,i="plain block"){this.statements=e,this.meta=t,this.symbolTable=r,this.moduleName=i,this.compiled=null}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled
e.compiled=-1
var{statements:r,meta:i}=e,n=te(r,i,t)
return e.compiled=n,n}(this,e)}}function ee(e,t){var[r,i,n]=e.block
return new Z(r,C(e),{symbols:i,hasEval:n},t)}function te(e,t,r){var i=W,n=G(r,t),{encoder:s,program:{constants:a,resolver:o}}=n
function l(...e){ie(s,a,o,t,e)}for(var c=0;c<e.length;c++)i.compile(l,e[c])
return n.encoder.commit(t.size)}class re{constructor(){this.labels=(0,t.dict)(),this.targets=[]}label(e,t){this.labels[e]=t}target(e,t){this.targets.push({at:e,target:t})}patch(e){for(var{targets:t,labels:r}=this,i=0;i<t.length;i++){var{at:n,target:s}=t[i],a=r[s]-n
e.setbyaddr(n,a)}}}function ie(e,t,r,i,n){if(function(e){return e<1e3}(n[0])){var[s,...a]=n
e.push(t,s,...a)}else switch(n[0]){case 1e3:return e.label(n[1])
case 1001:return e.startLabels()
case 1002:return e.stopLabels()
case 1004:return function(e,t,r,[,i,n]){if(32===i[0]){var{scopeValues:s,owner:a}=r,o=s[i[1]]
n(t.component(o,a))}else{var{upvars:l,owner:c}=r,u=l[i[1]],d=e.lookupComponent(u,c)
n(t.resolvedComponent(d,u))}}(r,t,i,n)
case 1003:return function(e,t,r,[,i,n]){var s=i[0]
if(32===s){var{scopeValues:a}=r,o=a[i[1]]
n(t.modifier(o))}else if(31===s){var{upvars:l}=r,c=l[i[1]],u=e.lookupBuiltInModifier(c)
n(t.modifier(u,c))}else{var{upvars:d,owner:h}=r,p=d[i[1]],f=e.lookupModifier(p,h)
n(t.modifier(f,p))}}(r,t,i,n)
case 1005:return function(e,t,r,[,i,n]){var s=i[0]
if(32===s){var{scopeValues:a}=r,o=a[i[1]]
n(t.helper(o))}else if(31===s)n(v(i,e,r,t))
else{var{upvars:l,owner:c}=r,u=l[i[1]],d=e.lookupHelper(u,c)
n(t.helper(d,u))}}(r,t,i,n)
case 1007:return function(e,t,r,[,i,{ifComponent:n,ifHelper:s}]){var a=i[0]
if(32===a){var{scopeValues:o,owner:l}=r,c=o[i[1]],u=t.component(c,l,!0)
if(null!==u)return void n(u)
s(t.helper(c,null,!0))}else if(31===a)s(v(i,e,r,t))
else{var{upvars:d,owner:h}=r,p=d[i[1]],f=e.lookupComponent(p,h)
if(null!==f)n(t.resolvedComponent(f,p))
else{var m=e.lookupHelper(p,h)
s(t.helper(m,p))}}}(r,t,i,n)
case 1006:return function(e,t,r,[,i,{ifHelper:n}]){var{upvars:s,owner:a}=r,o=s[i[1]],l=e.lookupHelper(o,a)
l&&n(t.helper(l,o),o,r.moduleName)}(r,t,i,n)
case 1008:return function(e,t,r,[,i,{ifComponent:n,ifHelper:s,ifValue:a}]){var o=i[0]
if(32===o){var{scopeValues:l,owner:c}=r,u=l[i[1]]
if("function"!=typeof u&&("object"!=typeof u||null===u))return void a(t.value(u))
var d=t.component(u,c,!0)
if(null!==d)return void n(d)
var h=t.helper(u,null,!0)
if(null!==h)return void s(h)
a(t.value(u))}else if(31===o)s(v(i,e,r,t))
else{var{upvars:p,owner:f}=r,m=p[i[1]],g=e.lookupComponent(m,f)
if(null!==g)return void n(t.resolvedComponent(g,m))
var b=e.lookupHelper(m,f)
null!==b&&s(t.helper(b,m))}}(r,t,i,n)
case 1010:var o=n[1],l=i.upvars[o];(0,n[2])(l,i.moduleName)
break
case 1011:var[,c,u]=n,d=i.scopeValues[c]
u(t.value(d))
break
case 1009:break
default:throw new Error(`Unexpected high level opcode ${n[0]}`)}}class ne{constructor(e,r,i){this.heap=e,this.meta=r,this.stdlib=i,this.labelsStack=new t.Stack,this.encoder=new s.InstructionEncoderImpl([]),this.errors=[],this.handle=e.malloc()}error(e){this.encoder.encode(30,0),this.errors.push(e)}commit(e){var t=this.handle
return this.heap.push(1029),this.heap.finishMalloc(t,e),this.errors.length?{errors:this.errors,handle:t}:t}push(e,t,...i){var{heap:n}=this
var s=t|((0,r.isMachineOp)(t)?1024:0)|i.length<<8
n.push(s)
for(var a=0;a<i.length;a++){var o=i[a]
n.push(this.operand(e,o))}}operand(e,r){if("number"==typeof r)return r
if("object"==typeof r&&null!==r){if(Array.isArray(r))return(0,t.encodeHandle)(e.array(r))
switch(r.type){case 1:return this.currentLabels.target(this.heap.offset,r.value),-1
case 2:return(0,t.encodeHandle)(e.value(this.meta.isStrictMode))
case 3:return(0,t.encodeHandle)(e.array(this.meta.evalSymbols||t.EMPTY_STRING_ARRAY))
case 4:return(0,t.encodeHandle)(e.value((i=r.value,n=this.meta,new Z(i[0],n,{parameters:i[1]||t.EMPTY_ARRAY}))))
case 5:return this.stdlib[r.value]
case 6:case 7:case 8:return e.value(r.value)}}var i,n
return(0,t.encodeHandle)(e.value(r))}get currentLabels(){return this.labelsStack.current}label(e){this.currentLabels.label(e,this.heap.offset+1)}startLabels(){this.labelsStack.push(new re)}stopLabels(){this.labelsStack.pop().patch(this.heap)}}function se(e,t,i){j(e,(()=>e(76)),(n=>{n(2,(()=>{t?(e(68),e(43)):e(47)})),"number"==typeof i?(n(0,(()=>{e(81),e(79),function(e){e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0),e(83),e(85,r.$s0),H(e,!1,!1,!0,(()=>{e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}(e)})),n(1,(()=>{M(e,null,null,(()=>{e(3,i)}))}))):(n(0,(()=>{e(47)})),n(1,(()=>{e(47)}))),n(4,(()=>{e(68),e(44)})),n(5,(()=>{e(68),e(45)})),n(6,(()=>{e(68),e(46)}))}))}function ae(e){var t=le(e,(e=>function(e){e(75,r.$s0),H(e,!1,!1,!0)}(e))),i=le(e,(e=>se(e,!0,null))),n=le(e,(e=>se(e,!1,null))),s=le(e,(e=>se(e,!0,i))),a=le(e,(e=>se(e,!1,n)))
return new V(t,s,a,i,n)}var oe={evalSymbols:null,upvars:null,moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0}
function le(e,t){var{constants:r,heap:i,resolver:n}=e,s=new ne(i,oe)
t((function(...e){ie(s,r,n,oe,e)}))
var a=s.commit(0)
if("number"!=typeof a)throw new Error("Unexpected errors compiling std")
return a}class ce{constructor({constants:e,heap:t},r){this.resolver=r,this.constants=e,this.heap=t,this.stdlib=ae(this)}}e.CompileTimeCompilationContextImpl=ce
e.DEFAULT_CAPABILITIES={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!1,elementHook:!1,dynamicScope:!0,createCaller:!1,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},e.MINIMAL_CAPABILITIES={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,dynamicScope:!1,createCaller:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1}
class ue{constructor(e,t){this.layout=e,this.moduleName=t,this.compiled=null
var{block:r}=e,[,i,n]=r,s=(i=i.slice()).indexOf($)
this.attrsBlockNumber=-1===s?i.push($):s+1,this.symbolTable={hasEval:n,symbols:i}}compile(e){if(null!==this.compiled)return this.compiled
var t,i,n,s=C(this.layout),a=G(e,s),{encoder:o,program:{constants:l,resolver:u}}=a
t=function(...e){ie(o,l,u,s,e)},i=this.layout,n=this.attrsBlockNumber,t(1001),function(e,t,r){e(36,t),r(),e(35,t)}(t,r.$s1,(()=>{t(91,r.$s0),t(31),t(33,r.$sp,0)})),t(66,c("BODY")),t(36,r.$s1),t(89),t(49),t(99,r.$s0),I(t,n,null),t(54),t(1e3,"BODY"),N(t,[i.block[0],[]]),t(36,r.$s1),t(66,c("END")),t(55),t(1e3,"END"),t(35,r.$s1),t(1002)
var d=a.encoder.commit(s.size)
return"number"!=typeof d||(this.compiled=d),d}}e.WrappedBuilder=ue
var de=0,he=e.templateCacheCounters={cacheHit:0,cacheMiss:0}
class pe{constructor(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.wrappedLayout=null}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=ee((0,t.assign)({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new ue((0,t.assign)({},this.parsedLayout),this.moduleName)}}})),e("@glimmer/owner",["exports","@glimmer/util"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.OWNER=void 0,e.getOwner=function(e){return e[r]},e.setOwner=function(e,t){e[r]=t}
var r=e.OWNER=(0,t.symbol)("OWNER")})),e("@glimmer/program",["exports","@glimmer/util","@glimmer/manager","@glimmer/opcode-compiler"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.RuntimeProgramImpl=e.RuntimeOpImpl=e.RuntimeHeapImpl=e.RuntimeConstantsImpl=e.HeapImpl=e.ConstantsImpl=e.CompileTimeConstantImpl=void 0,e.artifacts=function(){return{constants:new c,heap:new p}},e.hydrateHeap=function(e){return new h(e)}
var n={id:"1b32f5c2-7623-43d6-a0ad-9672898920a1",moduleName:"__default__.hbs",block:JSON.stringify([[[18,1,null]],["&default"],!1,[]]),scope:null,isStrictMode:!0},s=Object.freeze([]),a=(0,t.constants)(s),o=a.indexOf(s)
class l{constructor(){this.values=a.slice(),this.indexMap=new Map(this.values.map(((e,t)=>[e,t])))}value(e){var t=this.indexMap,r=t.get(e)
return void 0===r&&(r=this.values.push(e)-1,t.set(e,r)),r}array(e){if(0===e.length)return o
for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=this.value(e[r])
return this.value(t)}toPool(){return this.values}}e.CompileTimeConstantImpl=l
e.RuntimeConstantsImpl=class{constructor(e){this.values=e}getValue(e){return this.values[e]}getArray(e){for(var t=this.getValue(e),r=new Array(t.length),i=0;i<t.length;i++){var n=t[i]
r[i]=this.getValue(n)}return r}}
class c extends l{constructor(){super(...arguments),this.reifiedArrs={[o]:s},this.defaultTemplate=(0,i.templateFactory)(n)(),this.helperDefinitionCount=0,this.modifierDefinitionCount=0,this.componentDefinitionCount=0,this.helperDefinitionCache=new WeakMap,this.modifierDefinitionCache=new WeakMap,this.componentDefinitionCache=new WeakMap}helper(e,t=null,i){var n=this.helperDefinitionCache.get(e)
if(void 0===n){var s=(0,r.getInternalHelperManager)(e,i)
if(null===s)return this.helperDefinitionCache.set(e,null),null
var a="function"==typeof s?s:s.getHelper(e)
n=this.value(a),this.helperDefinitionCache.set(e,n),this.helperDefinitionCount++}return n}modifier(e,t=null,i){var n=this.modifierDefinitionCache.get(e)
if(void 0===n){var s=(0,r.getInternalModifierManager)(e,i)
if(null===s)return this.modifierDefinitionCache.set(e,null),null
var a={resolvedName:t,manager:s,state:e}
n=this.value(a),this.modifierDefinitionCache.set(e,n),this.modifierDefinitionCount++}return n}component(e,i,n){var s,a=this.componentDefinitionCache.get(e)
if(void 0===a){var o=(0,r.getInternalComponentManager)(e,n)
if(null===o)return this.componentDefinitionCache.set(e,null),null
var l,c=(0,r.capabilityFlagsFrom)(o.getCapabilities(e)),u=(0,r.getComponentTemplate)(e),d=null
void 0!==(l=(0,r.managerHasCapability)(o,c,1)?null==u?void 0:u(i):null!==(s=null==u?void 0:u(i))&&void 0!==s?s:this.defaultTemplate)&&(l=(0,t.unwrapTemplate)(l),d=(0,r.managerHasCapability)(o,c,1024)?l.asWrappedLayout():l.asLayout()),(a={resolvedName:null,handle:-1,manager:o,capabilities:c,state:e,compilable:d}).handle=this.value(a),this.componentDefinitionCache.set(e,a),this.componentDefinitionCount++}return a}resolvedComponent(e,i){var n=this.componentDefinitionCache.get(e)
if(void 0===n){var{manager:s,state:a,template:o}=e,l=(0,r.capabilityFlagsFrom)(s.getCapabilities(e)),c=null;(0,r.managerHasCapability)(s,l,1)||(o=null!=o?o:this.defaultTemplate),null!==o&&(o=(0,t.unwrapTemplate)(o),c=(0,r.managerHasCapability)(s,l,1024)?o.asWrappedLayout():o.asLayout()),(n={resolvedName:i,handle:-1,manager:s,capabilities:l,state:a,compilable:c}).handle=this.value(n),this.componentDefinitionCache.set(e,n),this.componentDefinitionCount++}return n}getValue(e){return this.values[e]}getArray(e){var t=this.reifiedArrs,r=t[e]
if(void 0===r){var i=this.getValue(e)
r=new Array(i.length)
for(var n=0;n<i.length;n++)r[n]=this.getValue(i[n])
t[e]=r}return r}}e.ConstantsImpl=c
class u{constructor(e){this.heap=e,this.offset=0}get size(){return 1+((768&this.heap.getbyaddr(this.offset))>>8)}get isMachine(){return 1024&this.heap.getbyaddr(this.offset)?1:0}get type(){return 255&this.heap.getbyaddr(this.offset)}get op1(){return this.heap.getbyaddr(this.offset+1)}get op2(){return this.heap.getbyaddr(this.offset+2)}get op3(){return this.heap.getbyaddr(this.offset+3)}}e.RuntimeOpImpl=u
var d=1048576
class h{constructor(e){var{buffer:t,table:r}=e
this.heap=new Int32Array(t),this.table=r}getaddr(e){return this.table[e]}getbyaddr(e){return this.heap[e]}sizeof(e){return f(this.table,e)}}e.RuntimeHeapImpl=h
class p{constructor(){this.offset=0,this.handle=0,this.heap=new Int32Array(d),this.handleTable=[],this.handleState=[]}push(e){this.sizeCheck(),this.heap[this.offset++]=e}sizeCheck(){var{heap:e}=this
if(this.offset===this.heap.length){var t=new Int32Array(e.length+d)
t.set(e,0),this.heap=t}}getbyaddr(e){return this.heap[e]}setbyaddr(e,t){this.heap[e]=t}malloc(){return this.handleTable.push(this.offset),this.handleTable.length-1}finishMalloc(e){}size(){return this.offset}getaddr(e){return this.handleTable[e]}sizeof(e){return f(this.handleTable,e)}free(e){this.handleState[e]=1}compact(){for(var e=0,{handleTable:t,handleState:r,heap:i}=this,n=0;n<length;n++){var s=t[n],a=t[n+1]-s,o=r[n]
if(2!==o)if(1===o)r[n]=2,e+=a
else if(0===o){for(var l=s;l<=n+a;l++)i[l-e]=i[l]
t[n]=s-e}else 3===o&&(t[n]=s-e)}this.offset=this.offset-e}capture(e=this.offset){var t=function(e,t,r){if(void 0!==e.slice)return e.slice(t,r)
for(var i=new Int32Array(r);t<r;t++)i[t]=e[t]
return i}(this.heap,0,e).buffer
return{handle:this.handle,table:this.handleTable,buffer:t}}}e.HeapImpl=p
function f(e,t){return-1}e.RuntimeProgramImpl=class{constructor(e,t){this.constants=e,this.heap=t,this._opcode=new u(this.heap)}opcode(e){return this._opcode.offset=e,this._opcode}}})),e("@glimmer/reference",["exports","@glimmer/global-context","@glimmer/util","@glimmer/validator"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.UNDEFINED_REFERENCE=e.TRUE_REFERENCE=e.REFERENCE=e.NULL_REFERENCE=e.FALSE_REFERENCE=void 0,e.childRefFor=p,e.childRefFromParts=function(e,t){for(var r=e,i=0;i<t.length;i++)r=p(r,t[i])
return r},e.createComputeRef=c,e.createConstRef=function(e,t){var r=new s(0)
r.lastValue=e,r.tag=i.CONSTANT_TAG,!1
return r},e.createDebugAliasRef=void 0,e.createInvokableRef=function(e){var t=c((()=>d(e)),(t=>h(e,t)))
return t.debugLabel=e.debugLabel,t[n]=3,t},e.createIteratorItemRef=function(e){var t=e,r=(0,i.createTag)()
return c((()=>((0,i.consumeTag)(r),t)),(e=>{t!==e&&(t=e,(0,i.dirtyTag)(r))}))},e.createIteratorRef=function(e,i){return c((()=>{var n=d(e),s=function(e){switch(e){case"@key":return w(m)
case"@index":return w(g)
case"@identity":return w(b)
default:return function(e){0
return w((r=>(0,t.getPath)(r,e)))}(e)}}(i)
if(Array.isArray(n))return new _(n,s)
var a=(0,t.toIterator)(n)
return null===a?new _(r.EMPTY_ARRAY,(()=>null)):new x(a,s)}))},e.createPrimitiveRef=a,e.createReadOnlyRef=function(e){return u(e)?c((()=>d(e)),null,e.debugLabel):e},e.createUnboundRef=l,e.isConstRef=function(e){return e.tag===i.CONSTANT_TAG},e.isInvokableRef=function(e){return 3===e[n]},e.isUpdatableRef=u,e.updateRef=h,e.valueForRef=d
var n=e.REFERENCE=(0,r.symbol)("REFERENCE")
class s{constructor(e){this.tag=null,this.lastRevision=i.INITIAL,this.children=null,this.compute=null,this.update=null,this[n]=e}}function a(e){var t=new s(2)
return t.tag=i.CONSTANT_TAG,t.lastValue=e,t}var o=e.UNDEFINED_REFERENCE=a(void 0)
e.NULL_REFERENCE=a(null),e.TRUE_REFERENCE=a(!0),e.FALSE_REFERENCE=a(!1)
function l(e,t){var r=new s(2)
return r.lastValue=e,r.tag=i.CONSTANT_TAG,r}function c(e,t=null,r="unknown"){var i=new s(1)
return i.compute=e,i.update=t,i}function u(e){return null!==e.update}function d(e){var t=e,{tag:r}=t
if(r===i.CONSTANT_TAG)return t.lastValue
var n,{lastRevision:s}=t
if(null!==r&&(0,i.validateTag)(r,s))n=t.lastValue
else{var{compute:a}=t
r=t.tag=(0,i.track)((()=>{n=t.lastValue=a()}),!1),t.lastRevision=(0,i.valueForTag)(r)}return(0,i.consumeTag)(r),n}function h(e,t){(0,e.update)(t)}function p(e,i){var s,a=e,u=a[n],h=a.children
if(null===h)h=a.children=new Map
else if(void 0!==(s=h.get(i)))return s
if(2===u){var p=d(a)
s=(0,r.isDict)(p)?l(p[i]):o}else s=c((()=>{var e=d(a)
if((0,r.isDict)(e))return(0,t.getProp)(e,i)}),(e=>{var n=d(a)
if((0,r.isDict)(n))return(0,t.setProp)(n,i,e)}))
return h.set(i,s),s}var f={},m=(e,t)=>t,g=(e,t)=>String(t),b=e=>null===e?f:e
class y{get weakMap(){return void 0===this._weakMap&&(this._weakMap=new WeakMap),this._weakMap}get primitiveMap(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map),this._primitiveMap}set(e,t){(0,r.isObject)(e)?this.weakMap.set(e,t):this.primitiveMap.set(e,t)}get(e){return(0,r.isObject)(e)?this.weakMap.get(e):this.primitiveMap.get(e)}}var v=new y
function w(e){var t=new y
return(r,i)=>{var n=e(r,i),s=t.get(n)||0
return t.set(n,s+1),0===s?n:function(e,t){var r=v.get(e)
void 0===r&&(r=[],v.set(e,r))
var i=r[t]
return void 0===i&&(i={value:e,count:t},r[t]=i),i}(n,s)}}class x{constructor(e,t){this.inner=e,this.keyFor=t}isEmpty(){return this.inner.isEmpty()}next(){var e=this.inner.next()
return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e}}class _{constructor(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}isEmpty(){return"empty"===this.current.kind}next(){var e,t=this.current
if("first"===t.kind)this.current={kind:"progress"},e=t.value
else{if(this.pos>=this.iterator.length-1)return null
e=this.iterator[++this.pos]}var{keyFor:r}=this
return{key:r(e,this.pos),value:e,memo:this.pos}}}})),e("@glimmer/runtime",["exports","@glimmer/util","@glimmer/reference","@glimmer/global-context","@glimmer/destroyable","@glimmer/vm","@glimmer/validator","@glimmer/manager","@glimmer/program","@glimmer/owner","@glimmer/runtime"],(function(e,t,r,i,n,s,a,o,l,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.UpdatingVM=e.UpdatableBlockImpl=e.TemplateOnlyComponentManager=e.TemplateOnlyComponent=e.TEMPLATE_ONLY_COMPONENT_MANAGER=e.SimpleDynamicAttribute=e.SERIALIZATION_FIRST_NODE_STRING=e.RemoteLiveBlock=e.RehydrateBuilder=e.PartialScopeImpl=e.NewElementBuilder=e.LowLevelVM=e.IDOMChanges=e.EnvironmentImpl=e.EMPTY_POSITIONAL=e.EMPTY_NAMED=e.EMPTY_ARGS=e.DynamicScopeImpl=e.DynamicAttribute=e.DOMTreeConstruction=e.DOMChanges=e.CursorImpl=e.CurriedValue=e.ConcreteBounds=void 0,e.clear=k,e.clientBuilder=function(e,t){return se.forInitialRender(e,t)},e.concat=void 0,e.createCapturedArgs=Me,e.curry=_e,Object.defineProperty(e,"destroy",{enumerable:!0,get:function(){return n.destroy}}),e.dynamicAttribute=G,e.hash=e.get=e.fn=void 0,e.inTransaction=Nt,e.invokeHelper=function(e,t,r){0
var i=(0,c.getOwner)(e),s=(0,o.getInternalHelperManager)(t)
0
0
var l,u=s.getDelegateFor(i),d=new lr(e,r),h=u.createHelper(t,d)
if(!(0,o.hasValue)(u))throw new Error("TODO: unreachable, to be implemented with hasScheduledEffect")
l=(0,a.createCache)((()=>u.getValue(h))),(0,n.associateDestroyableChild)(e,l)
if((0,o.hasDestroyable)(u)){var p=u.getDestroyable(h);(0,n.associateDestroyableChild)(l,p)}return l},Object.defineProperty(e,"isDestroyed",{enumerable:!0,get:function(){return n.isDestroyed}}),Object.defineProperty(e,"isDestroying",{enumerable:!0,get:function(){return n.isDestroying}}),e.isSerializationFirstNode=function(e){return e.nodeValue===Yt},e.isWhitespace=function(e){return wt.test(e)},e.normalizeProperty=T,e.on=void 0,Object.defineProperty(e,"registerDestructor",{enumerable:!0,get:function(){return n.registerDestructor}}),e.rehydrationBuilder=function(e,t){return Qt.forInitialRender(e,t)},e.reifyArgs=Ne,e.reifyNamed=Ie,e.reifyPositional=Fe,e.renderComponent=function(e,i,n,s,a,o={},l=new d){var c=Gt.empty(e,{treeBuilder:i,handle:n.stdlib.main,dynamicScope:l,owner:s},n)
return function(e,r,i,n,s){var a=Object.keys(s).map((e=>[e,s[e]])),o=["main","else","attrs"],l=a.map((([e])=>`@${e}`)),c=e[y].component(n,i)
e.pushFrame()
for(var u=0;u<3*o.length;u++)e.stack.push(null)
e.stack.push(null),a.forEach((([,t])=>{e.stack.push(t)})),e[v].setup(e.stack,l,o,0,!0)
var d=c.compilable,h=(0,t.unwrapHandle)(d.compile(r)),p={handle:h,symbolTable:d.symbolTable}
return e.stack.push(e[v]),e.stack.push(p),e.stack.push(c),new Kt(e)}(c,n,s,a,(u=o,h=(0,r.createConstRef)(u,"args"),Object.keys(u).reduce(((e,t)=>(e[t]=(0,r.childRefFor)(h,t),e)),{})))
var u,h},e.renderMain=function(e,r,i,n,s,a,o=new d){var l=(0,t.unwrapHandle)(a.compile(r)),c=a.symbolTable.symbols.length,u=Gt.initial(e,r,{self:n,dynamicScope:o,treeBuilder:s,handle:l,numSymbols:c,owner:i})
return new Kt(u)},e.renderSync=function(e,t){var r
return Nt(e,(()=>r=t.sync())),r},e.resetDebuggerCallback=function(){ot=at},e.runtimeContext=function(e,t,r,i){return{env:new Ft(e,t),program:new l.RuntimeProgramImpl(r.constants,r.heap),resolver:i}},e.setDebuggerCallback=function(e){ot=e},e.templateOnlyComponent=function(e,t){return new ht(e,t)}
class d{constructor(e){this.bucket=e?(0,t.assign)({},e):{}}get(e){return this.bucket[e]}set(e,t){return this.bucket[e]=t}child(){return new d(this.bucket)}}e.DynamicScopeImpl=d
class h{constructor(e,t,r,i,n){this.slots=e,this.owner=t,this.callerScope=r,this.evalScope=i,this.partialMap=n}static root(e,t=0,i){for(var n=new Array(t+1),s=0;s<=t;s++)n[s]=r.UNDEFINED_REFERENCE
return new h(n,i,null,null,null).init({self:e})}static sized(e=0,t){for(var i=new Array(e+1),n=0;n<=e;n++)i[n]=r.UNDEFINED_REFERENCE
return new h(i,t,null,null,null)}init({self:e}){return this.slots[0]=e,this}getSelf(){return this.get(0)}getSymbol(e){return this.get(e)}getBlock(e){var t=this.get(e)
return t===r.UNDEFINED_REFERENCE?null:t}getEvalScope(){return this.evalScope}getPartialMap(){return this.partialMap}bind(e,t){this.set(e,t)}bindSelf(e){this.set(0,e)}bindSymbol(e,t){this.set(e,t)}bindBlock(e,t){this.set(e,t)}bindEvalScope(e){this.evalScope=e}bindPartialMap(e){this.partialMap=e}bindCallerScope(e){this.callerScope=e}getCallerScope(){return this.callerScope}child(){return new h(this.slots.slice(),this.owner,this.callerScope,this.evalScope,this.partialMap)}get(e){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`)
return this.slots[e]}set(e,t){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`)
this.slots[e]=t}}e.PartialScopeImpl=h
var p=(0,t.symbol)("INNER_VM"),f=(0,t.symbol)("DESTROYABLE_STACK"),m=(0,t.symbol)("STACKS"),g=(0,t.symbol)("REGISTERS"),b=(0,t.symbol)("HEAP"),y=(0,t.symbol)("CONSTANTS"),v=(0,t.symbol)("ARGS");(0,t.symbol)("PC")
class w{constructor(e,t){this.element=e,this.nextSibling=t}}e.CursorImpl=w
class x{constructor(e,t,r){this.parentNode=e,this.first=t,this.last=r}parentElement(){return this.parentNode}firstNode(){return this.first}lastNode(){return this.last}}e.ConcreteBounds=x
class _{constructor(e,t){this.parentNode=e,this.node=t}parentElement(){return this.parentNode}firstNode(){return this.node}lastNode(){return this.node}}function S(e,t){for(var r=e.parentElement(),i=e.firstNode(),n=e.lastNode(),s=i;;){var a=s.nextSibling
if(r.insertBefore(s,t),s===n)return a
s=a}}function k(e){for(var t=e.parentElement(),r=e.firstNode(),i=e.lastNode(),n=r;;){var s=n.nextSibling
if(t.removeChild(n),n===i)return s
n=s}}function A(e){return C(e)?"":String(e)}function C(e){return null==e||"function"!=typeof e.toString}function P(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function O(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function E(e){return"string"==typeof e}function T(e,t){var r,i,n,s,a
if(t in e)i=t,r="prop"
else{var o=t.toLowerCase()
o in e?(r="prop",i=o):(r="attr",i=t)}return"prop"===r&&("style"===i.toLowerCase()||(n=e.tagName,s=i,(a=M[n.toUpperCase()])&&a[s.toLowerCase()]))&&(r="attr"),{normalized:i,type:r}}var M={INPUT:{form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0},OUTPUT:{form:!0},BUTTON:{form:!0}}
var I,F,N=["javascript:","vbscript:"],R=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],D=["EMBED"],j=["href","src","background","action"],L=["src"]
function B(e,t){return-1!==e.indexOf(t)}function $(e,t){return(null===e||B(R,e))&&B(j,t)}function z(e,t){return null!==e&&(B(D,e)&&B(L,t))}function U(e,t){return $(e,t)||z(e,t)}if("object"==typeof URL&&null!==URL&&"function"==typeof URL.parse){var q=URL
I=e=>{var t=null
return"string"==typeof e&&(t=q.parse(e).protocol),null===t?":":t}}else if("function"==typeof URL)I=e=>{try{return new URL(e).protocol}catch(t){return":"}}
else{var H=document.createElement("a")
I=e=>(H.href=e,H.protocol)}function V(e,t,r){var i=null
if(null==r)return r
if(P(r))return r.toHTML()
i=e?e.tagName.toUpperCase():null
var n=A(r)
if($(i,t)){var s=I(n)
if(B(N,s))return`unsafe:${n}`}return z(i,t)?`unsafe:${n}`:n}function G(e,t,r,i=!1){var{tagName:n,namespaceURI:s}=e,a={element:e,name:t,namespace:r}
if("http://www.w3.org/2000/svg"===s)return W(n,t,a)
var{type:o,normalized:l}=T(e,t)
return"attr"===o?W(n,l,a):function(e,t,r){if(U(e,t))return new J(t,r)
if(function(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}(e,t))return new Z(t,r)
if(function(e,t){return"OPTION"===e&&"selected"===t}(e,t))return new ee(t,r)
return new Y(t,r)}(n,l,a)}function W(e,t,r){return U(e,t)?new Q(r):new K(r)}class X{constructor(e){this.attribute=e}}e.DynamicAttribute=X
class K extends X{set(e,t,r){var i=te(t)
if(null!==i){var{name:n,namespace:s}=this.attribute
e.__setAttribute(n,i,s)}}update(e,t){var r=te(e),{element:i,name:n}=this.attribute
null===r?i.removeAttribute(n):i.setAttribute(n,r)}}e.SimpleDynamicAttribute=K
class Y extends X{constructor(e,t){super(t),this.normalizedName=e}set(e,t,r){null!=t&&(this.value=t,e.__setProperty(this.normalizedName,t))}update(e,t){var{element:r}=this.attribute
this.value!==e&&(r[this.normalizedName]=this.value=e,null==e&&this.removeAttribute())}removeAttribute(){var{element:e,namespace:t}=this.attribute
t?e.removeAttributeNS(t,this.normalizedName):e.removeAttribute(this.normalizedName)}}class J extends Y{set(e,t,r){var{element:i,name:n}=this.attribute,s=V(i,n,t)
super.set(e,s,r)}update(e,t){var{element:r,name:i}=this.attribute,n=V(r,i,e)
super.update(n,t)}}class Q extends K{set(e,t,r){var{element:i,name:n}=this.attribute,s=V(i,n,t)
super.set(e,s,r)}update(e,t){var{element:r,name:i}=this.attribute,n=V(r,i,e)
super.update(n,t)}}class Z extends Y{set(e,t){e.__setProperty("value",A(t))}update(e){var t=this.attribute.element,r=t.value,i=A(e)
r!==i&&(t.value=i)}}class ee extends Y{set(e,t){null!=t&&!1!==t&&e.__setProperty("selected",!0)}update(e){var t=this.attribute.element
t.selected=!!e}}function te(e){return!1===e||null==e||void 0===e.toString?null:!0===e?"":"function"==typeof e?null:String(e)}class re{constructor(e){this.node=e}firstNode(){return this.node}}class ie{constructor(e){this.node=e}lastNode(){return this.node}}var ne=(0,t.symbol)("CURSOR_STACK")
class se{constructor(e,r,i){this.constructing=null,this.operations=null,this[F]=new t.Stack,this.modifierStack=new t.Stack,this.blockStack=new t.Stack,this.pushElement(r,i),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}static forInitialRender(e,t){return new this(e,t.element,t.nextSibling).initialize()}static resume(e,t){var r=new this(e,t.parentElement(),t.reset(e)).initialize()
return r.pushLiveBlock(t),r}initialize(){return this.pushSimpleBlock(),this}debugBlocks(){return this.blockStack.toArray()}get element(){return this[ne].current.element}get nextSibling(){return this[ne].current.nextSibling}get hasBlocks(){return this.blockStack.size>0}block(){return this.blockStack.current}popElement(){this[ne].pop(),this[ne].current}pushSimpleBlock(){return this.pushLiveBlock(new ae(this.element))}pushUpdatableBlock(){return this.pushLiveBlock(new le(this.element))}pushBlockList(e){return this.pushLiveBlock(new ce(this.element,e))}pushLiveBlock(e,t=!1){var r=this.blockStack.current
return null!==r&&(t||r.didAppendBounds(e)),this.__openBlock(),this.blockStack.push(e),e}popBlock(){return this.block().finalize(this),this.__closeBlock(),this.blockStack.pop()}__openBlock(){}__closeBlock(){}openElement(e){var t=this.__openElement(e)
return this.constructing=t,t}__openElement(e){return this.dom.createElement(e,this.element)}flushElement(e){var t=this.element,r=this.constructing
this.__flushElement(t,r),this.constructing=null,this.operations=null,this.pushModifiers(e),this.pushElement(r,null),this.didOpenElement(r)}__flushElement(e,t){this.dom.insertBefore(e,t,this.nextSibling)}closeElement(){return this.willCloseElement(),this.popElement(),this.popModifiers()}pushRemoteElement(e,t,r){return this.__pushRemoteElement(e,t,r)}__pushRemoteElement(e,t,r){if(this.pushElement(e,r),void 0===r)for(;e.lastChild;)e.removeChild(e.lastChild)
var i=new oe(e)
return this.pushLiveBlock(i,!0)}popRemoteElement(){this.popBlock(),this.popElement()}pushElement(e,t=null){this[ne].push(new w(e,t))}pushModifiers(e){this.modifierStack.push(e)}popModifiers(){return this.modifierStack.pop()}didAppendBounds(e){return this.block().didAppendBounds(e),e}didAppendNode(e){return this.block().didAppendNode(e),e}didOpenElement(e){return this.block().openElement(e),e}willCloseElement(){this.block().closeElement()}appendText(e){return this.didAppendNode(this.__appendText(e))}__appendText(e){var{dom:t,element:r,nextSibling:i}=this,n=t.createTextNode(e)
return t.insertBefore(r,n,i),n}__appendNode(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e}__appendFragment(e){var t=e.firstChild
if(t){var r=new x(this.element,t,e.lastChild)
return this.dom.insertBefore(this.element,e,this.nextSibling),r}return new _(this.element,this.__appendComment(""))}__appendHTML(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)}appendDynamicHTML(e){var t=this.trustedContent(e)
this.didAppendBounds(t)}appendDynamicText(e){var t=this.untrustedContent(e)
return this.didAppendNode(t),t}appendDynamicFragment(e){var t=this.__appendFragment(e)
this.didAppendBounds(t)}appendDynamicNode(e){var t=this.__appendNode(e),r=new _(this.element,t)
this.didAppendBounds(r)}trustedContent(e){return this.__appendHTML(e)}untrustedContent(e){return this.__appendText(e)}appendComment(e){return this.didAppendNode(this.__appendComment(e))}__appendComment(e){var{dom:t,element:r,nextSibling:i}=this,n=t.createComment(e)
return t.insertBefore(r,n,i),n}__setAttribute(e,t,r){this.dom.setAttribute(this.constructing,e,t,r)}__setProperty(e,t){this.constructing[e]=t}setStaticAttribute(e,t,r){this.__setAttribute(e,t,r)}setDynamicAttribute(e,t,r,i){var n=G(this.constructing,e,i,r)
return n.set(this,t,this.env),n}}e.NewElementBuilder=se,F=ne
class ae{constructor(e){this.parent=e,this.first=null,this.last=null,this.nesting=0}parentElement(){return this.parent}firstNode(){return this.first.firstNode()}lastNode(){return this.last.lastNode()}openElement(e){this.didAppendNode(e),this.nesting++}closeElement(){this.nesting--}didAppendNode(e){0===this.nesting&&(this.first||(this.first=new re(e)),this.last=new ie(e))}didAppendBounds(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)}finalize(e){null===this.first&&e.appendComment("")}}class oe extends ae{constructor(e){super(e),(0,n.registerDestructor)(this,(()=>{this.parentElement()===this.firstNode().parentNode&&k(this)}))}}e.RemoteLiveBlock=oe
class le extends ae{reset(){(0,n.destroy)(this)
var e=k(this)
return this.first=null,this.last=null,this.nesting=0,e}}e.UpdatableBlockImpl=le
class ce{constructor(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}parentElement(){return this.parent}firstNode(){return this.boundList[0].firstNode()}lastNode(){var e=this.boundList
return e[e.length-1].lastNode()}openElement(e){}closeElement(){}didAppendNode(e){}didAppendBounds(e){}finalize(e){}}var ue=new class{constructor(){this.evaluateOpcode=(0,t.fillNulls)(104).slice()}add(e,t,r="syscall"){this.evaluateOpcode[e]={syscall:"machine"!==r,evaluate:t}}debugBefore(e,t){return{sp:undefined,pc:e.fetchValue(s.$pc),name:undefined,params:undefined,type:t.type,isMachine:t.isMachine,size:t.size,state:void 0}}debugAfter(e,t){}evaluate(e,t,r){var i=this.evaluateOpcode[r]
i.syscall?i.evaluate(e,t):i.evaluate(e[p],t)}}
function de(e){return"function"!=typeof e.toString?"":String(e)}var he=(0,t.symbol)("TYPE"),pe=(0,t.symbol)("INNER"),fe=(0,t.symbol)("OWNER"),me=(0,t.symbol)("ARGS"),ge=(0,t.symbol)("RESOLVED"),be=new t._WeakSet
function ye(e){return be.has(e)}function ve(e,t){return ye(e)&&e[he]===t}class we{constructor(e,t,r,i,n=!1){be.add(this),this[he]=e,this[pe]=t,this[fe]=r,this[me]=i,this[ge]=n}}function xe(e){for(var t,r,i,n,s,a=e;;){var{[me]:o,[pe]:l}=a
if(null!==o){var{named:c,positional:u}=o
u.length>0&&(t=void 0===t?u:u.concat(t)),void 0===r&&(r=[]),r.unshift(c)}if(!ye(l)){i=l,n=a[fe],s=a[ge]
break}a=l}return{definition:i,owner:n,resolved:s,positional:t,named:r}}function _e(e,t,r,i,n=!1){return new we(e,t,r,i,n)}e.CurriedValue=we
class Se{constructor(){this.stack=null,this.positional=new Ae,this.named=new Ce,this.blocks=new Ee}empty(e){var t=e[g][s.$sp]+1
return this.named.empty(e,t),this.positional.empty(e,t),this.blocks.empty(e,t),this}setup(e,t,r,i,n){this.stack=e
var a=this.named,o=t.length,l=e[g][s.$sp]-o+1
a.setup(e,l,o,t,n)
var c=l-i
this.positional.setup(e,c,i)
var u=this.blocks,d=r.length,h=c-3*d
u.setup(e,h,d,r)}get base(){return this.blocks.base}get length(){return this.positional.length+this.named.length+3*this.blocks.length}at(e){return this.positional.at(e)}realloc(e){var{stack:t}=this
if(e>0&&null!==t){for(var{positional:r,named:i}=this,n=r.base+e,a=r.length+i.length-1;a>=0;a--)t.copy(a+r.base,a+n)
r.base+=e,i.base+=e,t[g][s.$sp]+=e}}capture(){var e=0===this.positional.length?De:this.positional.capture()
return{named:0===this.named.length?Re:this.named.capture(),positional:e}}clear(){var{stack:e,length:t}=this
t>0&&null!==e&&e.pop(t)}}var ke=(0,t.emptyArray)()
class Ae{constructor(){this.base=0,this.length=0,this.stack=null,this._references=null}empty(e,t){this.stack=e,this.base=t,this.length=0,this._references=ke}setup(e,t,r){this.stack=e,this.base=t,this.length=r,this._references=0===r?ke:null}at(e){var{base:t,length:i,stack:n}=this
return e<0||e>=i?r.UNDEFINED_REFERENCE:n.get(e,t)}capture(){return this.references}prepend(e){var t=e.length
if(t>0){var{base:r,length:i,stack:n}=this
this.base=r-=t,this.length=i+t
for(var s=0;s<t;s++)n.set(e[s],s,r)
this._references=null}}get references(){var e=this._references
if(!e){var{stack:t,base:r,length:i}=this
e=this._references=t.slice(r,r+i)}return e}}class Ce{constructor(){this.base=0,this.length=0,this._references=null,this._names=t.EMPTY_STRING_ARRAY,this._atNames=t.EMPTY_STRING_ARRAY}empty(e,r){this.stack=e,this.base=r,this.length=0,this._references=ke,this._names=t.EMPTY_STRING_ARRAY,this._atNames=t.EMPTY_STRING_ARRAY}setup(e,r,i,n,s){this.stack=e,this.base=r,this.length=i,0===i?(this._references=ke,this._names=t.EMPTY_STRING_ARRAY,this._atNames=t.EMPTY_STRING_ARRAY):(this._references=null,s?(this._names=null,this._atNames=n):(this._names=n,this._atNames=null))}get names(){var e=this._names
return e||(e=this._names=this._atNames.map(this.toSyntheticName)),e}get atNames(){var e=this._atNames
return e||(e=this._atNames=this._names.map(this.toAtName)),e}has(e){return-1!==this.names.indexOf(e)}get(e,t=!1){var{base:i,stack:n}=this,s=(t?this.atNames:this.names).indexOf(e)
if(-1===s)return r.UNDEFINED_REFERENCE
var a=n.get(s,i)
return a}capture(){for(var{names:e,references:r}=this,i=(0,t.dict)(),n=0;n<e.length;n++){var s=e[n]
i[s]=r[n]}return i}merge(e){var t=Object.keys(e)
if(t.length>0){for(var{names:r,length:i,stack:n}=this,s=r.slice(),a=0;a<t.length;a++){var o=t[a];-1===s.indexOf(o)&&(i=s.push(o),n.push(e[o]))}this.length=i,this._references=null,this._names=s,this._atNames=null}}get references(){var e=this._references
if(!e){var{base:t,length:r,stack:i}=this
e=this._references=i.slice(t,t+r)}return e}toSyntheticName(e){return e.slice(1)}toAtName(e){return`@${e}`}}function Pe(e){return`&${e}`}var Oe=(0,t.emptyArray)()
class Ee{constructor(){this.internalValues=null,this._symbolNames=null,this.internalTag=null,this.names=t.EMPTY_STRING_ARRAY,this.length=0,this.base=0}empty(e,r){this.stack=e,this.names=t.EMPTY_STRING_ARRAY,this.base=r,this.length=0,this._symbolNames=null,this.internalTag=a.CONSTANT_TAG,this.internalValues=Oe}setup(e,t,r,i){this.stack=e,this.names=i,this.base=t,this.length=r,this._symbolNames=null,0===r?(this.internalTag=a.CONSTANT_TAG,this.internalValues=Oe):(this.internalTag=null,this.internalValues=null)}get values(){var e=this.internalValues
if(!e){var{base:t,length:r,stack:i}=this
e=this.internalValues=i.slice(t,t+3*r)}return e}has(e){return-1!==this.names.indexOf(e)}get(e){var t=this.names.indexOf(e)
if(-1===t)return null
var{base:r,stack:i}=this,n=i.get(3*t,r),s=i.get(3*t+1,r),a=i.get(3*t+2,r)
return null===a?null:[a,s,n]}capture(){return new Te(this.names,this.values)}get symbolNames(){var e=this._symbolNames
return null===e&&(e=this._symbolNames=this.names.map(Pe)),e}}class Te{constructor(e,t){this.names=e,this.values=t,this.length=e.length}has(e){return-1!==this.names.indexOf(e)}get(e){var t=this.names.indexOf(e)
return-1===t?null:[this.values[3*t+2],this.values[3*t+1],this.values[3*t]]}}function Me(e,t){return{named:e,positional:t}}function Ie(e){var i=(0,t.dict)()
for(var n in e)i[n]=(0,r.valueForRef)(e[n])
return i}function Fe(e){return e.map(r.valueForRef)}function Ne(e){return{named:Ie(e.named),positional:Fe(e.positional)}}var Re=e.EMPTY_NAMED=Object.freeze(Object.create(null)),De=e.EMPTY_POSITIONAL=ke,je=e.EMPTY_ARGS=Me(Re,De)
function Le(e,t,r){var i=e.helper(t,null,!0)
return e.getValue(i)}function Be(e){return e===r.UNDEFINED_REFERENCE}function $e(e){return"getDebugCustomRenderTree"in e}ue.add(77,((e,{op1:i,op2:n})=>{var a=e.stack,o=a.pop(),l=a.pop(),c=e.getOwner()
e.runtime.resolver
e.loadValue(s.$v0,function(e,i,n,s){var a,o
return(0,r.createComputeRef)((()=>{var l=(0,r.valueForRef)(i)
return l===a||(o=ve(l,e)?s?_e(e,l,n,s):s:0===e&&"string"==typeof l&&l||(0,t.isObject)(l)?_e(e,l,n,s):null,a=l),o}))}(i,o,c,l))})),ue.add(107,(e=>{var i,a=e.stack,o=a.pop(),l=a.pop().capture(),c=e.getOwner(),u=(0,r.createComputeRef)((()=>{void 0!==i&&(0,n.destroy)(i)
var s=(0,r.valueForRef)(o)
if(ve(s,1)){var{definition:a,owner:d,positional:h,named:p}=xe(s),f=Le(e[y],a,o)
void 0!==p&&(l.named=(0,t.assign)({},...p,l.named)),void 0!==h&&(l.positional=h.concat(l.positional)),i=f(l,d),(0,n.associateDestroyableChild)(u,i)}else if((0,t.isObject)(s)){var m=Le(e[y],s,o)
i=m(l,c),(0,n._hasDestroyableChildren)(i)&&(0,n.associateDestroyableChild)(u,i)}else i=r.UNDEFINED_REFERENCE})),d=(0,r.createComputeRef)((()=>((0,r.valueForRef)(u),(0,r.valueForRef)(i))))
e.associateDestroyable(u),e.loadValue(s.$v0,d)})),ue.add(16,((e,{op1:t})=>{var r=e.stack,i=e[y].getValue(t)(r.pop().capture(),e.getOwner(),e.dynamicScope());(0,n._hasDestroyableChildren)(i)&&e.associateDestroyable(i),e.loadValue(s.$v0,i)})),ue.add(21,((e,{op1:t})=>{var r=e.referenceForSymbol(t)
e.stack.push(r)})),ue.add(19,((e,{op1:t})=>{var r=e.stack.pop()
e.scope().bindSymbol(t,r)})),ue.add(20,((e,{op1:t})=>{var r=e.stack.pop(),i=e.stack.pop(),n=e.stack.pop()
e.scope().bindBlock(t,[r,i,n])})),ue.add(102,((e,{op1:t})=>{var i=e[y].getValue(t),n=e.scope().getPartialMap()[i]
void 0===n&&(n=(0,r.childRefFor)(e.getSelf(),i)),e.stack.push(n)})),ue.add(37,((e,{op1:t})=>{e.pushRootScope(t,e.getOwner())})),ue.add(22,((e,{op1:t})=>{var i=e[y].getValue(t),n=e.stack.pop()
e.stack.push((0,r.childRefFor)(n,i))})),ue.add(23,((e,{op1:t})=>{var{stack:r}=e,i=e.scope().getBlock(t)
r.push(i)})),ue.add(24,(e=>{var{stack:t}=e,r=t.pop()
if(r&&!Be(r)){var[i,n,s]=r
t.push(s),t.push(n),t.push(i)}else t.push(null),t.push(null),t.push(null)})),ue.add(25,(e=>{var{stack:t}=e,i=t.pop()
i&&!Be(i)?t.push(r.TRUE_REFERENCE):t.push(r.FALSE_REFERENCE)})),ue.add(26,(e=>{e.stack.pop(),e.stack.pop()
var t=e.stack.pop(),i=t&&t.parameters.length
e.stack.push(i?r.TRUE_REFERENCE:r.FALSE_REFERENCE)})),ue.add(27,((e,{op1:t})=>{for(var i,n=new Array(t),s=t;s>0;s--){n[s-1]=e.stack.pop()}e.stack.push((i=n,(0,r.createComputeRef)((()=>{for(var e=new Array,t=0;t<i.length;t++){var n=(0,r.valueForRef)(i[t])
null!=n&&(e[t]=de(n))}return e.length>0?e.join(""):null}))))})),ue.add(109,(e=>{var t=e.stack.pop(),n=e.stack.pop(),s=e.stack.pop()
e.stack.push((0,r.createComputeRef)((()=>!0===(0,i.toBool)((0,r.valueForRef)(t))?(0,r.valueForRef)(n):(0,r.valueForRef)(s))))})),ue.add(110,(e=>{var t=e.stack.pop()
e.stack.push((0,r.createComputeRef)((()=>!(0,i.toBool)((0,r.valueForRef)(t)))))})),ue.add(111,(e=>{var t=e.dynamicScope(),i=e.stack,n=i.pop()
i.push((0,r.createComputeRef)((()=>{var e=String((0,r.valueForRef)(n))
return(0,r.valueForRef)(t.get(e))})))})),ue.add(112,(e=>{var{positional:t}=e.stack.pop().capture()
e.loadValue(s.$v0,(0,r.createComputeRef)((()=>{console.log(...Fe(t))})))})),ue.add(39,(e=>e.pushChildScope())),ue.add(40,(e=>e.popScope())),ue.add(59,(e=>e.pushDynamicScope())),ue.add(60,(e=>e.popDynamicScope())),ue.add(28,((e,{op1:r})=>{e.stack.push(e[y].getValue((0,t.decodeHandle)(r)))})),ue.add(29,((e,{op1:i})=>{e.stack.push((0,r.createConstRef)(e[y].getValue((0,t.decodeHandle)(i)),!1))})),ue.add(30,((e,{op1:r})=>{var i=e.stack
if((0,t.isHandle)(r)){var n=e[y].getValue((0,t.decodeHandle)(r))
i.push(n)}else i.push((0,t.decodeImmediate)(r))})),ue.add(31,(e=>{var t,i=e.stack,n=i.pop()
t=void 0===n?r.UNDEFINED_REFERENCE:null===n?r.NULL_REFERENCE:!0===n?r.TRUE_REFERENCE:!1===n?r.FALSE_REFERENCE:(0,r.createPrimitiveRef)(n),i.push(t)})),ue.add(33,((e,{op1:t,op2:r})=>{var i=e.fetchValue(t)-r
e.stack.dup(i)})),ue.add(34,((e,{op1:t})=>{e.stack.pop(t)})),ue.add(35,((e,{op1:t})=>{e.load(t)})),ue.add(36,((e,{op1:t})=>{e.fetch(t)}))
ue.add(58,((e,{op1:t})=>{var r=e[y].getArray(t)
e.bindDynamicScope(r)})),ue.add(69,((e,{op1:t})=>{e.enter(t)})),ue.add(70,(e=>{e.exit()})),ue.add(63,((e,{op1:t})=>{e.stack.push(e[y].getValue(t))})),ue.add(62,(e=>{e.stack.push(e.scope())})),ue.add(61,(e=>{var t=e.stack,r=t.pop()
r?t.push(e.compile(r)):t.push(null)})),ue.add(64,(e=>{var{stack:t}=e,r=t.pop(),i=t.pop(),n=t.pop(),s=t.pop()
if(null===n)return e.pushFrame(),void e.pushScope(null!=i?i:e.scope())
var a=i,o=n.parameters,l=o.length
if(l>0){a=a.child()
for(var c=0;c<l;c++)a.bindSymbol(o[c],s.at(c))}e.pushFrame(),e.pushScope(a),e.call(r)})),ue.add(65,((e,{op1:t})=>{var i=e.stack.pop(),n=Boolean((0,r.valueForRef)(i));(0,r.isConstRef)(i)?!0===n&&e.goto(t):(!0===n&&e.goto(t),e.updateWith(new ze(i)))})),ue.add(66,((e,{op1:t})=>{var i=e.stack.pop(),n=Boolean((0,r.valueForRef)(i));(0,r.isConstRef)(i)?!1===n&&e.goto(t):(!1===n&&e.goto(t),e.updateWith(new ze(i)))})),ue.add(67,((e,{op1:t,op2:r})=>{e.stack.peek()===r&&e.goto(t)})),ue.add(68,(e=>{var t=e.stack.peek()
!1===(0,r.isConstRef)(t)&&e.updateWith(new ze(t))})),ue.add(71,(e=>{var{stack:t}=e,n=t.pop()
t.push((0,r.createComputeRef)((()=>(0,i.toBool)((0,r.valueForRef)(n)))))}))
class ze{constructor(e){this.ref=e,this.last=(0,r.valueForRef)(e)}evaluate(e){var{last:t,ref:i}=this
t!==(0,r.valueForRef)(i)&&e.throw()}}class Ue{constructor(e,t){this.ref=e,this.filter=t,this.last=t((0,r.valueForRef)(e))}evaluate(e){var{last:t,ref:i,filter:n}=this
t!==n((0,r.valueForRef)(i))&&e.throw()}}class qe{constructor(){this.tag=a.CONSTANT_TAG,this.lastRevision=a.INITIAL}finalize(e,t){this.target=t,this.didModify(e)}evaluate(e){var{tag:t,target:r,lastRevision:i}=this
!e.alwaysRevalidate&&(0,a.validateTag)(t,i)&&((0,a.consumeTag)(t),e.goto(r))}didModify(e){this.tag=e,this.lastRevision=(0,a.valueForTag)(this.tag),(0,a.consumeTag)(e)}}class He{constructor(e){this.debugLabel=e}evaluate(){(0,a.beginTrackFrame)(this.debugLabel)}}class Ve{constructor(e){this.target=e}evaluate(){var e=(0,a.endTrackFrame)()
this.target.didModify(e)}}ue.add(41,((e,{op1:t})=>{e.elements().appendText(e[y].getValue(t))})),ue.add(42,((e,{op1:t})=>{e.elements().appendComment(e[y].getValue(t))})),ue.add(48,((e,{op1:t})=>{e.elements().openElement(e[y].getValue(t))})),ue.add(49,(e=>{var t=(0,r.valueForRef)(e.stack.pop())
e.elements().openElement(t)})),ue.add(50,(e=>{var t=e.stack.pop(),i=e.stack.pop(),n=e.stack.pop(),s=(0,r.valueForRef)(t),a=(0,r.valueForRef)(i),o=(0,r.valueForRef)(n);(0,r.isConstRef)(t)||e.updateWith(new ze(t)),void 0===a||(0,r.isConstRef)(i)||e.updateWith(new ze(i))
var l=e.elements().pushRemoteElement(s,o,a)
l&&e.associateDestroyable(l)})),ue.add(56,(e=>{e.elements().popRemoteElement()})),ue.add(54,(e=>{var t=e.fetchValue(s.$t0),r=null
t&&(r=t.flush(e),e.loadValue(s.$t0,null)),e.elements().flushElement(r)})),ue.add(55,(e=>{var t=e.elements().closeElement()
t&&t.forEach((t=>{e.env.scheduleInstallModifier(t)
var{manager:r,state:i}=t,n=r.getDestroyable(i)
n&&e.associateDestroyable(n)}))})),ue.add(57,((e,{op1:t})=>{if(!1!==e.env.isInteractive){var r=e.getOwner(),i=e.stack.pop(),n=e[y].getValue(t),{manager:o}=n,{constructing:l}=e.elements(),c=o.create(r,l,n.state,i.capture()),u={manager:o,state:c,definition:n}
e.fetchValue(s.$t0).addModifier(u)
var d=o.getTag(c)
return null!==d?((0,a.consumeTag)(d),e.updateWith(new Ge(d,u))):void 0}})),ue.add(108,(e=>{if(!1!==e.env.isInteractive){var{stack:i,[y]:n}=e,o=i.pop(),l=i.pop().capture(),{constructing:c}=e.elements(),u=e.getOwner(),d=(0,r.createComputeRef)((()=>{var e,i=(0,r.valueForRef)(o)
if((0,t.isObject)(i)){var s
if(ve(i,2)){var{definition:a,owner:d,positional:h,named:p}=xe(i)
s=a,e=d,void 0!==h&&(l.positional=h.concat(l.positional)),void 0!==p&&(l.named=(0,t.assign)({},...p,l.named))}else s=i,e=u
var f=n.modifier(s,null,!0)
0
var m=n.getValue(f),{manager:g}=m,b=g.create(e,c,m.state,l)
return{manager:g,state:b,definition:m}}})),h=(0,r.valueForRef)(d),p=null
if(void 0!==h)e.fetchValue(s.$t0).addModifier(h),null!==(p=h.manager.getTag(h.state))&&(0,a.consumeTag)(p)
return!(0,r.isConstRef)(o)||p?e.updateWith(new We(p,h,d)):void 0}}))
class Ge{constructor(e,t){this.tag=e,this.modifier=t,this.lastUpdated=(0,a.valueForTag)(e)}evaluate(e){var{modifier:t,tag:r,lastUpdated:i}=this;(0,a.consumeTag)(r),(0,a.validateTag)(r,i)||(e.env.scheduleUpdateModifier(t),this.lastUpdated=(0,a.valueForTag)(r))}}class We{constructor(e,t,r){this.tag=e,this.instance=t,this.instanceRef=r,this.lastUpdated=(0,a.valueForTag)(null!=e?e:a.CURRENT_TAG)}evaluate(e){var{tag:t,lastUpdated:i,instance:s,instanceRef:o}=this,l=(0,r.valueForRef)(o)
if(l!==s){if(void 0!==s){var c=s.manager.getDestroyable(s.state)
null!==c&&(0,n.destroy)(c)}if(void 0!==l){var{manager:u,state:d}=l,h=u.getDestroyable(d)
null!==h&&(0,n.associateDestroyableChild)(this,h),null!==(t=u.getTag(d))&&(this.lastUpdated=(0,a.valueForTag)(t)),this.tag=t,e.env.scheduleInstallModifier(l)}this.instance=l}else null===t||(0,a.validateTag)(t,i)||(e.env.scheduleUpdateModifier(s),this.lastUpdated=(0,a.valueForTag)(t))
null!==t&&(0,a.consumeTag)(t)}}ue.add(51,((e,{op1:t,op2:r,op3:i})=>{var n=e[y].getValue(t),s=e[y].getValue(r),a=i?e[y].getValue(i):null
e.elements().setStaticAttribute(n,s,a)})),ue.add(52,((e,{op1:t,op2:i,op3:n})=>{var s=e[y].getValue(t),a=e[y].getValue(i),o=e.stack.pop(),l=(0,r.valueForRef)(o),c=n?e[y].getValue(n):null,u=e.elements().setDynamicAttribute(s,l,a,c);(0,r.isConstRef)(o)||e.updateWith(new Xe(o,u,e.env))}))
class Xe{constructor(e,t,i){var n=!1
this.updateRef=(0,r.createComputeRef)((()=>{var s=(0,r.valueForRef)(e)
!0===n?t.update(s,i):n=!0})),(0,r.valueForRef)(this.updateRef)}evaluate(){(0,r.valueForRef)(this.updateRef)}}ue.add(78,((e,{op1:t})=>{var r=e[y].getValue(t),{manager:i,capabilities:n}=r,s={definition:r,manager:i,capabilities:n,state:null,handle:null,table:null,lookup:null}
e.stack.push(s)})),ue.add(80,((e,{op1:t})=>{var i,n=e.stack,a=(0,r.valueForRef)(n.pop()),o=e[y],l=e.getOwner()
o.getValue(t)
if(e.loadValue(s.$t1,null),"string"==typeof a){0
var c=function(e,t,r,i){var n=e.lookupComponent(r,i)
return t.resolvedComponent(n,r)}(e.runtime.resolver,o,a,l)
i=c}else i=ye(a)?a:o.component(a,l)
n.push(i)})),ue.add(81,(e=>{var t,i=e.stack,n=i.pop(),s=(0,r.valueForRef)(n),a=e[y]
t=ye(s)?s:a.component(s,e.getOwner(),!0),i.push(t)})),ue.add(79,(e=>{var t,r,{stack:i}=e,n=i.pop()
ye(n)?r=t=null:(r=n.manager,t=n.capabilities),i.push({definition:n,capabilities:t,manager:r,state:null,handle:null,table:null})})),ue.add(82,((e,{op1:r,op2:i,op3:n})=>{var s=e.stack,a=e[y].getArray(r),o=n>>4,l=8&n,c=7&n?e[y].getArray(i):t.EMPTY_STRING_ARRAY
e[v].setup(s,a,c,o,!!l),s.push(e[v])})),ue.add(83,(e=>{var{stack:t}=e
t.push(e[v].empty(t))})),ue.add(86,(e=>{var t=e.stack,r=t.pop().capture()
t.push(r)})),ue.add(85,((e,{op1:r})=>{var i=e.stack,n=e.fetchValue(r),a=i.pop(),{definition:l}=n
if(ve(l,0)){var c=e[y],{definition:u,owner:d,resolved:h,positional:p,named:f}=xe(l)
if(!0===h)l=u
else if("string"==typeof u){var m=e.runtime.resolver.lookupComponent(u,d)
l=c.resolvedComponent(m,u)}else l=c.component(u,d)
void 0!==f&&a.named.merge((0,t.assign)({},...f)),void 0!==p&&(a.realloc(p.length),a.positional.prepend(p))
var{manager:g}=l
n.definition=l,n.manager=g,n.capabilities=l.capabilities,e.loadValue(s.$t1,d)}var{manager:b,state:v}=l,w=n.capabilities
if((0,o.managerHasCapability)(b,w,4)){var x=a.blocks.values,_=a.blocks.names,S=b.prepareArgs(v,a)
if(S){a.clear()
for(var k=0;k<x.length;k++)i.push(x[k])
for(var{positional:A,named:C}=S,P=A.length,O=0;O<P;O++)i.push(A[O])
for(var E=Object.keys(C),T=0;T<E.length;T++)i.push(C[E[T]])
a.setup(i,E,_,P,!1)}i.push(a)}else i.push(a)})),ue.add(87,((e,{op1:t,op2:r})=>{var i=e.fetchValue(r),{definition:n,manager:s,capabilities:a}=i
if((0,o.managerHasCapability)(s,a,512)){var l=null;(0,o.managerHasCapability)(s,a,64)&&(l=e.dynamicScope())
var c=1&t,u=null;(0,o.managerHasCapability)(s,a,8)&&(u=e.stack.peek())
var d=null;(0,o.managerHasCapability)(s,a,128)&&(d=e.getSelf())
var h=s.create(e.getOwner(),n.state,u,e.env,l,d,!!c)
i.state=h,(0,o.managerHasCapability)(s,a,256)&&e.updateWith(new Ze(h,s,l))}})),ue.add(88,((e,{op1:t})=>{var{manager:r,state:i,capabilities:n}=e.fetchValue(t),s=r.getDestroyable(i)
s&&e.associateDestroyable(s)})),ue.add(97,((e,{op1:t})=>{var r
e.beginCacheGroup(r),e.elements().pushSimpleBlock()})),ue.add(89,(e=>{e.loadValue(s.$t0,new Ke)})),ue.add(53,((e,{op1:t,op2:r,op3:i})=>{var n=e[y].getValue(t),a=e[y].getValue(r),o=e.stack.pop(),l=i?e[y].getValue(i):null
e.fetchValue(s.$t0).setAttribute(n,o,a,l)})),ue.add(105,((e,{op1:t,op2:r,op3:i})=>{var n=e[y].getValue(t),a=e[y].getValue(r),o=i?e[y].getValue(i):null
e.fetchValue(s.$t0).setStaticAttribute(n,a,o)}))
class Ke{constructor(){this.attributes=(0,t.dict)(),this.classes=[],this.modifiers=[]}setAttribute(e,t,r,i){var n={value:t,namespace:i,trusting:r}
"class"===e&&this.classes.push(t),this.attributes[e]=n}setStaticAttribute(e,t,r){var i={value:t,namespace:r}
"class"===e&&this.classes.push(t),this.attributes[e]=i}addModifier(e){this.modifiers.push(e)}flush(e){var t,r=this.attributes
for(var i in this.attributes)if("type"!==i){var n=this.attributes[i]
"class"===i?Je(e,"class",Ye(this.classes),n.namespace,n.trusting):Je(e,i,n.value,n.namespace,n.trusting)}else t=r[i]
return void 0!==t&&Je(e,"type",t.value,t.namespace,t.trusting),this.modifiers}}function Ye(e){return 0===e.length?"":1===e.length?e[0]:function(e){for(var t=0;t<e.length;t++)if("string"!=typeof e[t])return!1
return!0}(e)?e.join(" "):(t=e,(0,r.createComputeRef)((()=>{for(var e=[],i=0;i<t.length;i++){var n=t[i],s=A("string"==typeof n?n:(0,r.valueForRef)(t[i]))
s&&e.push(s)}return 0===e.length?null:e.join(" ")})))
var t}function Je(e,t,i,n,s=!1){if("string"==typeof i)e.elements().setStaticAttribute(t,i,n)
else{var a=e.elements().setDynamicAttribute(t,(0,r.valueForRef)(i),s,n);(0,r.isConstRef)(i)||e.updateWith(new Xe(i,a,e.env))}}function Qe(e,t,r,i,n){var s=r.table.symbols.indexOf(e),a=i.get(t);-1!==s&&n.scope().bindBlock(s+1,a),r.lookup&&(r.lookup[e]=a)}ue.add(99,((e,{op1:t})=>{var{definition:r,state:i}=e.fetchValue(t),{manager:n}=r,a=e.fetchValue(s.$t0)
n.didCreateElement(i,e.elements().constructing,a)})),ue.add(90,((e,{op1:t,op2:i})=>{var s,a=e.fetchValue(t),{definition:o,state:l}=a,{manager:c}=o,u=c.getSelf(l)
if(void 0!==e.env.debugRenderTree){var d,h,p=e.fetchValue(t),{definition:f,manager:m}=p
if(e.stack.peek()===e[v])d=e[v].capture()
else{var g=e[y].getArray(i)
e[v].setup(e.stack,g,[],0,!0),d=e[v].capture()}var b=f.compilable
if(h=null===b?null!==(b=m.getDynamicLayout(l,e.runtime.resolver))?b.moduleName:"__default__.hbs":b.moduleName,e.associateDestroyable(p),$e(m)){m.getDebugCustomRenderTree(p.definition.state,p.state,d,h).forEach((t=>{var{bucket:r}=t
e.env.debugRenderTree.create(r,t),(0,n.registerDestructor)(p,(()=>{var t
null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(r)})),e.updateWith(new tt(r))}))}else{var w=null!==(s=f.resolvedName)&&void 0!==s?s:m.getDebugName(f.state)
e.env.debugRenderTree.create(p,{type:"component",name:w,args:d,template:h,instance:(0,r.valueForRef)(u)}),e.associateDestroyable(p),(0,n.registerDestructor)(p,(()=>{var t
null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(p)})),e.updateWith(new tt(p))}}e.stack.push(u)})),ue.add(91,((e,{op1:t})=>{var{definition:r,state:i}=e.fetchValue(t),{manager:n}=r,s=n.getTagName(i)
e.stack.push(s)})),ue.add(92,((e,{op1:r})=>{var i=e.fetchValue(r),{manager:n,definition:s}=i,{stack:a}=e,{compilable:l}=s
if(null===l){var{capabilities:c}=i
null===(l=n.getDynamicLayout(i.state,e.runtime.resolver))&&(l=(0,o.managerHasCapability)(n,c,1024)?(0,t.unwrapTemplate)(e[y].defaultTemplate).asWrappedLayout():(0,t.unwrapTemplate)(e[y].defaultTemplate).asLayout())}var u=l.compile(e.context)
a.push(l.symbolTable),a.push(u)})),ue.add(75,((e,{op1:t})=>{var r=e.stack.pop(),i=e.stack.pop(),{manager:n,capabilities:s}=r,a={definition:r,manager:n,capabilities:s,state:null,handle:i.handle,table:i.symbolTable,lookup:null}
e.loadValue(t,a)})),ue.add(95,((e,{op1:t})=>{var{stack:r}=e,i=r.pop(),n=r.pop(),s=e.fetchValue(t)
s.handle=i,s.table=n})),ue.add(38,((e,{op1:t})=>{var r,{table:i,manager:n,capabilities:a,state:l}=e.fetchValue(t);(0,o.managerHasCapability)(n,a,4096)?(r=n.getOwner(l),e.loadValue(s.$t1,null)):null===(r=e.fetchValue(s.$t1))?r=e.getOwner():e.loadValue(s.$t1,null),e.pushRootScope(i.symbols.length+1,r)})),ue.add(94,((e,{op1:r})=>{var i=e.fetchValue(r)
if(i.table.hasEval){var n=i.lookup=(0,t.dict)()
e.scope().bindEvalScope(n)}})),ue.add(17,((e,{op1:t})=>{for(var r=e.fetchValue(t),i=e.scope(),n=e.stack.peek(),s=n.named.atNames,a=s.length-1;a>=0;a--){var o=s[a],l=r.table.symbols.indexOf(s[a]),c=n.named.get(o,!0);-1!==l&&i.bindSymbol(l+1,c),r.lookup&&(r.lookup[o]=c)}})),ue.add(18,((e,{op1:t})=>{for(var r=e.fetchValue(t),{blocks:i}=e.stack.peek(),n=0;n<i.names.length;n++)Qe(i.symbolNames[n],i.names[n],r,i,e)})),ue.add(96,((e,{op1:t})=>{var r=e.fetchValue(t)
e.call(r.handle)})),ue.add(100,((e,{op1:t})=>{var r=e.fetchValue(t),{manager:i,state:n,capabilities:s}=r,a=e.elements().popBlock()
void 0!==e.env.debugRenderTree&&($e(i)?i.getDebugCustomRenderTree(r.definition.state,n,je).reverse().forEach((t=>{var{bucket:r}=t
e.env.debugRenderTree.didRender(r,a),e.updateWith(new rt(r,a))})):(e.env.debugRenderTree.didRender(r,a),e.updateWith(new rt(r,a))));(0,o.managerHasCapability)(i,s,512)&&(i.didRenderLayout(n,a),e.env.didCreate(r),e.updateWith(new et(r,a)))})),ue.add(98,(e=>{e.commitCacheGroup()}))
class Ze{constructor(e,t,r){this.component=e,this.manager=t,this.dynamicScope=r}evaluate(e){var{component:t,manager:r,dynamicScope:i}=this
r.update(t,i)}}class et{constructor(e,t){this.component=e,this.bounds=t}evaluate(e){var{component:t,bounds:r}=this,{manager:i,state:n}=t
i.didUpdateLayout(n,r),e.env.didUpdate(t)}}class tt{constructor(e){this.bucket=e}evaluate(e){var t
null===(t=e.env.debugRenderTree)||void 0===t||t.update(this.bucket)}}class rt{constructor(e,t){this.bucket=e,this.bounds=t}evaluate(e){var t
null===(t=e.env.debugRenderTree)||void 0===t||t.didRender(this.bucket,this.bounds)}}class it{constructor(e,t,r){this.node=e,this.reference=t,this.lastValue=r}evaluate(){var e,t=(0,r.valueForRef)(this.reference),{lastValue:i}=this
t!==i&&((e=C(t)?"":E(t)?t:String(t))!==i&&(this.node.nodeValue=this.lastValue=e))}}function nt(e){return function(e){return E(e)||C(e)||"boolean"==typeof e||"number"==typeof e}(e)?2:ve(e,0)||(0,o.hasInternalComponentManager)(e)?0:ve(e,1)||(0,o.hasInternalHelperManager)(e)?1:P(e)?4:function(e){return O(e)&&11===e.nodeType}(e)?5:O(e)?6:2}function st(e){return(0,t.isObject)(e)?ve(e,0)||(0,o.hasInternalComponentManager)(e)?0:1:2}function at(e,t){console.info("Use `context`, and `get(<path>)` to debug this template."),t("this")}ue.add(76,(e=>{var t=e.stack.peek()
e.stack.push(nt((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new Ue(t,nt))})),ue.add(106,(e=>{var t=e.stack.peek()
e.stack.push(st((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new Ue(t,st))})),ue.add(43,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=C(i)?"":String(i)
e.elements().appendDynamicHTML(n)})),ue.add(44,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t).toHTML(),n=C(i)?"":i
e.elements().appendDynamicHTML(n)})),ue.add(47,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=C(i)?"":String(i),s=e.elements().appendDynamicText(n);(0,r.isConstRef)(t)||e.updateWith(new it(s,t,n))})),ue.add(45,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t)
e.elements().appendDynamicFragment(i)})),ue.add(46,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t)
e.elements().appendDynamicNode(i)}))
var ot=at
class lt{constructor(e,r,i){this.scope=e,this.locals=(0,t.dict)()
for(var n=0;n<i.length;n++){var s=i[n],a=r[s-1],o=e.getSymbol(s)
this.locals[a]=o}}get(e){var t,{scope:i,locals:n}=this,s=e.split("."),[a,...o]=e.split("."),l=i.getEvalScope()
return"this"===a?t=i.getSelf():n[a]?t=n[a]:0===a.indexOf("@")&&l[a]?t=l[a]:(t=this.scope.getSelf(),o=s),o.reduce(((e,t)=>(0,r.childRefFor)(e,t)),t)}}ue.add(103,((e,{op1:i,op2:n})=>{var s=e[y].getArray(i),a=e[y].getArray((0,t.decodeHandle)(n)),o=new lt(e.scope(),s,a)
ot((0,r.valueForRef)(e.getSelf()),(e=>(0,r.valueForRef)(o.get(e))))})),ue.add(72,((e,{op1:t,op2:i})=>{var n=e.stack,s=n.pop(),a=n.pop(),o=(0,r.valueForRef)(a),l=null===o?"@identity":String(o),c=(0,r.createIteratorRef)(s,l),u=(0,r.valueForRef)(c)
e.updateWith(new Ue(c,(e=>e.isEmpty()))),!0===u.isEmpty()?e.goto(i+1):(e.enterList(c,t),e.stack.push(u))})),ue.add(73,(e=>{e.exitList()})),ue.add(74,((e,{op1:t})=>{var r=e.stack.peek().next()
null!==r?e.registerItem(e.enterItem(r)):e.goto(t)}))
var ct={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1}
class ut{getCapabilities(){return ct}getDebugName({name:e}){return e}getSelf(){return r.NULL_REFERENCE}getDestroyable(){return null}}e.TemplateOnlyComponentManager=ut
var dt=e.TEMPLATE_ONLY_COMPONENT_MANAGER=new ut
class ht{constructor(e="@glimmer/component/template-only",t="(unknown template-only component)"){this.moduleName=e,this.name=t}toString(){return this.moduleName}}e.TemplateOnlyComponent=ht,(0,o.setInternalComponentManager)(dt,ht.prototype)
var pt={foreignObject:1,desc:1,title:1},ft=Object.create(null)
class mt{constructor(e){this.document=e,this.setupUselessElement()}setupUselessElement(){this.uselessElement=this.document.createElement("div")}createElement(e,t){var r,i
if(t?(r="http://www.w3.org/2000/svg"===t.namespaceURI||"svg"===e,i=!!pt[t.tagName]):(r="svg"===e,i=!1),r&&!i){if(ft[e])throw new Error(`Cannot create a ${e} inside an SVG context`)
return this.document.createElementNS("http://www.w3.org/2000/svg",e)}return this.document.createElement(e)}insertBefore(e,t,r){e.insertBefore(t,r)}insertHTMLBefore(e,t,r){if(""===r){var i=this.createComment("")
return e.insertBefore(i,t),new x(e,i,i)}var n,s=t?t.previousSibling:e.lastChild
if(null===t)e.insertAdjacentHTML("beforeend",r),n=e.lastChild
else if(t instanceof HTMLElement)t.insertAdjacentHTML("beforebegin",r),n=t.previousSibling
else{var{uselessElement:a}=this
e.insertBefore(a,t),a.insertAdjacentHTML("beforebegin",r),n=a.previousSibling,e.removeChild(a)}var o=s?s.nextSibling:e.firstChild
return new x(e,o,n)}createTextNode(e){return this.document.createTextNode(e)}createComment(e){return this.document.createComment(e)}}var gt="http://www.w3.org/2000/svg"
function bt(e,r,i){if(!e)return r
if(!function(e,t){var r=e.createElementNS(t,"svg")
try{r.insertAdjacentHTML("beforeend","<circle></circle>")}catch(i){}finally{return 1!==r.childNodes.length||r.firstChild.namespaceURI!==gt}}(e,i))return r
var n=e.createElement("div")
return class extends r{insertHTMLBefore(e,r,s){return""===s||e.namespaceURI!==i?super.insertHTMLBefore(e,r,s):function(e,r,i,n){var s
if("FOREIGNOBJECT"===e.tagName.toUpperCase()){var a="<svg><foreignObject>"+i+"</foreignObject></svg>";(0,t.clearElement)(r),r.insertAdjacentHTML("afterbegin",a),s=r.firstChild.firstChild}else{var o="<svg>"+i+"</svg>";(0,t.clearElement)(r),r.insertAdjacentHTML("afterbegin",o),s=r.firstChild}return function(e,t,r){for(var i=e.firstChild,n=i,s=i;s;){var a=s.nextSibling
t.insertBefore(s,r),n=s,s=a}return new x(t,i,n)}(s,e,n)}(e,n,s,r)}}}function yt(e,t){return e&&function(e){var t=e.createElement("div")
if(t.appendChild(e.createTextNode("first")),t.insertAdjacentHTML("beforeend","second"),2===t.childNodes.length)return!1
return!0}(e)?class extends t{constructor(e){super(e),this.uselessComment=e.createComment("")}insertHTMLBefore(e,t,r){if(""===r)return super.insertHTMLBefore(e,t,r)
var i=!1,n=t?t.previousSibling:e.lastChild
n&&n instanceof Text&&(i=!0,e.insertBefore(this.uselessComment,t))
var s=super.insertHTMLBefore(e,t,r)
return i&&e.removeChild(this.uselessComment),s}}:t}["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach((e=>ft[e]=1))
var vt,wt=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,xt="undefined"==typeof document?null:document;(function(e){class t extends mt{createElementNS(e,t){return this.document.createElementNS(e,t)}setAttribute(e,t,r,i=null){i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}}e.TreeConstruction=t
var r=t
r=yt(xt,r),r=bt(xt,r,"http://www.w3.org/2000/svg"),e.DOMTreeConstruction=r})(vt||(vt={}))
class _t extends mt{constructor(e){super(e),this.document=e,this.namespace=null}setAttribute(e,t,r){e.setAttribute(t,r)}removeAttribute(e,t){e.removeAttribute(t)}insertAfter(e,t,r){this.insertBefore(e,t,r.nextSibling)}}e.IDOMChanges=_t
var St=_t
St=yt(xt,St),St=bt(xt,St,"http://www.w3.org/2000/svg")
e.DOMChanges=St
var kt,At=e.DOMTreeConstruction=vt.DOMTreeConstruction,Ct=0
class Pt{constructor(e){this.id=Ct++,this.value=e}get(){return this.value}release(){this.value=null}toString(){var e=`Ref ${this.id}`
if(null===this.value)return`${e} (released)`
try{return`${e}: ${this.value}`}catch(F){return e}}}class Ot{constructor(){this.stack=new t.Stack,this.refs=new WeakMap,this.roots=new Set,this.nodes=new WeakMap}begin(){this.reset()}create(e,r){var i=(0,t.assign)({},r,{bounds:null,refs:new Set})
this.nodes.set(e,i),this.appendChild(i,e),this.enter(e)}update(e){this.enter(e)}didRender(e,t){this.nodeFor(e).bounds=t,this.exit()}willDestroy(e){this.refs.get(e).release()}commit(){this.reset()}capture(){return this.captureRefs(this.roots)}reset(){if(0!==this.stack.size){var e=this.stack.toArray()[0],t=this.refs.get(e)
for(void 0!==t&&this.roots.delete(t);!this.stack.isEmpty();)this.stack.pop()}}enter(e){this.stack.push(e)}exit(){this.stack.pop()}nodeFor(e){return this.nodes.get(e)}appendChild(e,t){var r=this.stack.current,i=new Pt(t)
if(this.refs.set(t,i),r){var n=this.nodeFor(r)
n.refs.add(i),e.parent=n}else this.roots.add(i)}captureRefs(e){var t=[]
return e.forEach((r=>{var i=r.get()
i?t.push(this.captureNode(`render-node:${r.id}`,i)):e.delete(r)})),t}captureNode(e,t){var r=this.nodeFor(t),{type:i,name:n,args:s,instance:a,refs:o}=r,l=this.captureTemplate(r),c=this.captureBounds(r),u=this.captureRefs(o)
return{id:e,type:i,name:n,args:Ne(s),instance:a,template:l,bounds:c,children:u}}captureTemplate({template:e}){return e||null}captureBounds(e){var t=e.bounds
return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}}var Et,Tt,Mt=(0,t.symbol)("TRANSACTION")
class It{constructor(){this.scheduledInstallModifiers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.updatedComponents=[]}didCreate(e){this.createdComponents.push(e)}didUpdate(e){this.updatedComponents.push(e)}scheduleInstallModifier(e){this.scheduledInstallModifiers.push(e)}scheduleUpdateModifier(e){this.scheduledUpdateModifiers.push(e)}commit(){for(var{createdComponents:e,updatedComponents:t}=this,r=0;r<e.length;r++){var{manager:i,state:n}=e[r]
i.didCreate(n)}for(var s=0;s<t.length;s++){var{manager:o,state:l}=t[s]
o.didUpdate(l)}for(var c,u,{scheduledInstallModifiers:d,scheduledUpdateModifiers:h}=this,p=0;p<d.length;p++){var f=d[p]
c=f.manager,u=f.state
var m=c.getTag(u)
if(null!==m){var g=(0,a.track)((()=>c.install(u)),!1);(0,a.updateTag)(m,g)}else c.install(u)}for(var b=0;b<h.length;b++){var y=h[b]
c=y.manager,u=y.state
var v=c.getTag(u)
if(null!==v){var w=(0,a.track)((()=>c.update(u)),!1);(0,a.updateTag)(v,w)}else c.update(u)}}}class Ft{constructor(e,t){this.delegate=t,this[kt]=null,this.isInteractive=this.delegate.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new Ot:void 0,e.appendOperations?(this.appendOperations=e.appendOperations,this.updateOperations=e.updateOperations):e.document&&(this.appendOperations=new At(e.document),this.updateOperations=new _t(e.document))}getAppendOperations(){return this.appendOperations}getDOM(){return this.updateOperations}begin(){var e
null===(e=this.debugRenderTree)||void 0===e||e.begin(),this[Mt]=new It}get transaction(){return this[Mt]}didCreate(e){this.transaction.didCreate(e)}didUpdate(e){this.transaction.didUpdate(e)}scheduleInstallModifier(e){this.isInteractive&&this.transaction.scheduleInstallModifier(e)}scheduleUpdateModifier(e){this.isInteractive&&this.transaction.scheduleUpdateModifier(e)}commit(){var e,t=this.transaction
this[Mt]=null,t.commit(),null===(e=this.debugRenderTree)||void 0===e||e.commit(),this.delegate.onTransactionCommit()}}function Nt(e,t){if(e[Mt])t()
else{e.begin()
try{t()}finally{e.commit()}}}e.EnvironmentImpl=Ft,kt=Mt
class Rt{constructor(e,t,r,i,n){this.stack=e,this.heap=t,this.program=r,this.externs=i,this.registers=n,this.currentOpSize=0}fetchRegister(e){return this.registers[e]}loadRegister(e,t){this.registers[e]=t}setPc(e){this.registers[s.$pc]=e}pushFrame(){this.stack.push(this.registers[s.$ra]),this.stack.push(this.registers[s.$fp]),this.registers[s.$fp]=this.registers[s.$sp]-1}popFrame(){this.registers[s.$sp]=this.registers[s.$fp]-1,this.registers[s.$ra]=this.stack.get(0),this.registers[s.$fp]=this.stack.get(1)}pushSmallFrame(){this.stack.push(this.registers[s.$ra])}popSmallFrame(){this.registers[s.$ra]=this.stack.pop()}goto(e){this.setPc(this.target(e))}target(e){return this.registers[s.$pc]+e-this.currentOpSize}call(e){this.registers[s.$ra]=this.registers[s.$pc],this.setPc(this.heap.getaddr(e))}returnTo(e){this.registers[s.$ra]=this.target(e)}return(){this.setPc(this.registers[s.$ra])}nextStatement(){var{registers:e,program:t}=this,r=e[s.$pc]
if(-1===r)return null
var i=t.opcode(r),n=this.currentOpSize=i.size
return this.registers[s.$pc]+=n,i}evaluateOuter(e,t){this.evaluateInner(e,t)}evaluateInner(e,t){e.isMachine?this.evaluateMachine(e):this.evaluateSyscall(e,t)}evaluateMachine(e){switch(e.type){case 0:return this.pushFrame()
case 1:return this.popFrame()
case 3:return this.call(e.op1)
case 2:return this.call(this.stack.pop())
case 4:return this.goto(e.op1)
case 5:return this.return()
case 6:return this.returnTo(e.op1)}}evaluateSyscall(e,t){ue.evaluate(t,e,e.type)}}class Dt{constructor(e,{alwaysRevalidate:r=!1}){this.frameStack=new t.Stack,this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=r}execute(e,t){this._execute(e,t)}_execute(e,t){var{frameStack:r}=this
for(this.try(e,t);!r.isEmpty();){var i=this.frame.nextStatement()
void 0!==i?i.evaluate(this):r.pop()}}get frame(){return this.frameStack.current}goto(e){this.frame.goto(e)}try(e,t){this.frameStack.push(new Ut(e,t))}throw(){this.frame.handleException(),this.frameStack.pop()}}e.UpdatingVM=Dt
class jt{constructor(e,t){this.state=e,this.resumeCallback=t}resume(e,t){return this.resumeCallback(e,this.state,t)}}class Lt{constructor(e,t,r,i){this.state=e,this.runtime=t,this.children=i,this.bounds=r}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}evaluate(e){e.try(this.children,null)}}class Bt extends Lt{constructor(){super(...arguments),this.type="try"}evaluate(e){e.try(this.children,this)}handleException(){var{state:e,bounds:t,runtime:r}=this;(0,n.destroyChildren)(this)
var i=se.resume(r.env,t),s=e.resume(r,i),a=[],o=this.children=[],l=s.execute((e=>{e.pushUpdating(a),e.updateWith(this),e.pushUpdating(o)}));(0,n.associateDestroyableChild)(this,l.drop)}}class $t extends Bt{constructor(e,t,r,i,n,s){super(e,t,r,[]),this.key=i,this.memo=n,this.value=s,this.retained=!1,this.index=-1}updateReferences(e){this.retained=!0,(0,r.updateRef)(this.value,e.value),(0,r.updateRef)(this.memo,e.memo)}shouldRemove(){return!this.retained}reset(){this.retained=!1}}class zt extends Lt{constructor(e,t,i,n,s){super(e,t,i,n),this.iterableRef=s,this.type="list-block",this.opcodeMap=new Map,this.marker=null,this.lastIterator=(0,r.valueForRef)(s)}initializeChild(e){e.index=this.children.length-1,this.opcodeMap.set(e.key,e)}evaluate(e){var t=(0,r.valueForRef)(this.iterableRef)
if(this.lastIterator!==t){var{bounds:i}=this,{dom:n}=e,s=this.marker=n.createComment("")
n.insertAfter(i.parentElement(),s,i.lastNode()),this.sync(t),this.parentElement().removeChild(s),this.marker=null,this.lastIterator=t}super.evaluate(e)}sync(e){var{opcodeMap:t,children:r}=this,i=0,n=0
for(this.children=this.bounds.boundList=[];;){var s=e.next()
if(null===s)break
for(var a=r[i],{key:o}=s;void 0!==a&&!0===a.retained;)a=r[++i]
if(void 0!==a&&a.key===o)this.retainItem(a,s),i++
else if(t.has(o)){var l=t.get(o)
if(l.index<n)this.moveItem(l,s,a)
else{n=l.index
for(var c=!1,u=i+1;u<n;u++)if(!1===r[u].retained){c=!0
break}!1===c?(this.retainItem(l,s),i=n+1):(this.moveItem(l,s,a),i++)}}else this.insertItem(s,a)}for(var d=0;d<r.length;d++){var h=r[d]
!1===h.retained?this.deleteItem(h):h.reset()}}retainItem(e,t){var{children:i}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,e.index=i.length,i.push(e)}insertItem(e,t){var{opcodeMap:r,bounds:i,state:s,runtime:a,children:o}=this,{key:l}=e,c=void 0===t?this.marker:t.firstNode(),u=se.forInitialRender(a.env,{element:i.parentElement(),nextSibling:c})
s.resume(a,u).execute((t=>{t.pushUpdating()
var i=t.enterItem(e)
i.index=o.length,o.push(i),r.set(l,i),(0,n.associateDestroyableChild)(this,i)}))}moveItem(e,t,i){var n,{children:s}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,void 0===i?S(e,this.marker):e.lastNode().nextSibling!==(n=i.firstNode())&&S(e,n),e.index=s.length,s.push(e)}deleteItem(e){(0,n.destroy)(e),k(e),this.opcodeMap.delete(e.key)}}class Ut{constructor(e,t){this.ops=e,this.exceptionHandler=t,this.current=0}goto(e){this.current=e}nextStatement(){return this.ops[this.current++]}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException()}}class qt{constructor(e,t,r,i){this.env=e,this.updating=t,this.bounds=r,this.drop=i,(0,n.associateDestroyableChild)(this,i),(0,n.registerDestructor)(this,(()=>k(this.bounds)))}rerender({alwaysRevalidate:e=!1}={alwaysRevalidate:!1}){var{env:t,updating:r}=this
new Dt(t,{alwaysRevalidate:e}).execute(r,this)}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}handleException(){throw"this should never happen"}}class Ht{constructor(e=[],t){this.stack=e,this[g]=t}static restore(e){return new this(e.slice(),[0,-1,e.length-1,0])}push(e){this.stack[++this[g][s.$sp]]=e}dup(e=this[g][s.$sp]){this.stack[++this[g][s.$sp]]=this.stack[e]}copy(e,t){this.stack[t]=this.stack[e]}pop(e=1){var t=this.stack[this[g][s.$sp]]
return this[g][s.$sp]-=e,t}peek(e=0){return this.stack[this[g][s.$sp]-e]}get(e,t=this[g][s.$fp]){return this.stack[t+e]}set(e,t,r=this[g][s.$fp]){this.stack[r+t]=e}slice(e,t){return this.stack.slice(e,t)}capture(e){var t=this[g][s.$sp]+1,r=t-e
return this.stack.slice(r,t)}reset(){this.stack.length=0}toArray(){return this.stack.slice(this[g][s.$fp],this[g][s.$sp]+1)}}class Vt{constructor(){this.scope=new t.Stack,this.dynamicScope=new t.Stack,this.updating=new t.Stack,this.cache=new t.Stack,this.list=new t.Stack}}class Gt{constructor(e,{pc:r,scope:i,dynamicScope:n,stack:a},o,l){this.runtime=e,this.elementStack=o,this.context=l,this[Et]=new Vt,this[Tt]=new t.Stack,this.s0=null,this.s1=null,this.t0=null,this.t1=null,this.v0=null,this.resume=Xt(this.context)
var c=Ht.restore(a)
c[g][s.$pc]=r,c[g][s.$sp]=a.length-1,c[g][s.$fp]=-1,this[b]=this.program.heap,this[y]=this.program.constants,this.elementStack=o,this[m].scope.push(i),this[m].dynamicScope.push(n),this[v]=new Se,this[p]=new Rt(c,this[b],e.program,{debugBefore:e=>ue.debugBefore(this,e),debugAfter:e=>{ue.debugAfter(this,e)}},c[g]),this.destructor={},this[f].push(this.destructor)}get stack(){return this[p].stack}get pc(){return this[p].fetchRegister(s.$pc)}fetch(e){var t=this.fetchValue(e)
this.stack.push(t)}load(e){var t=this.stack.pop()
this.loadValue(e,t)}fetchValue(e){if((0,s.isLowLevelRegister)(e))return this[p].fetchRegister(e)
switch(e){case s.$s0:return this.s0
case s.$s1:return this.s1
case s.$t0:return this.t0
case s.$t1:return this.t1
case s.$v0:return this.v0}}loadValue(e,t){switch((0,s.isLowLevelRegister)(e)&&this[p].loadRegister(e,t),e){case s.$s0:this.s0=t
break
case s.$s1:this.s1=t
break
case s.$t0:this.t0=t
break
case s.$t1:this.t1=t
break
case s.$v0:this.v0=t}}pushFrame(){this[p].pushFrame()}popFrame(){this[p].popFrame()}goto(e){this[p].goto(e)}call(e){this[p].call(e)}returnTo(e){this[p].returnTo(e)}return(){this[p].return()}static initial(e,t,{handle:r,self:i,dynamicScope:n,treeBuilder:s,numSymbols:a,owner:o}){var l=h.root(i,a,o),c=Wt(e.program.heap.getaddr(r),l,n),u=Xt(t)(e,c,s)
return u.pushUpdating(),u}static empty(e,{handle:t,treeBuilder:i,dynamicScope:n,owner:s},a){var o=Xt(a)(e,Wt(e.program.heap.getaddr(t),h.root(r.UNDEFINED_REFERENCE,0,s),n),i)
return o.pushUpdating(),o}compile(e){return(0,t.unwrapHandle)(e.compile(this.context))}get program(){return this.runtime.program}get env(){return this.runtime.env}captureState(e,t=this[p].fetchRegister(s.$pc)){return{pc:t,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(e)}}capture(e,t=this[p].fetchRegister(s.$pc)){return new jt(this.captureState(e,t),this.resume)}beginCacheGroup(e){var t=this.updating(),r=new qe
t.push(r),t.push(new He(e)),this[m].cache.push(r),(0,a.beginTrackFrame)(e)}commitCacheGroup(){var e=this.updating(),t=this[m].cache.pop(),r=(0,a.endTrackFrame)()
e.push(new Ve(t)),t.finalize(r,e.length)}enter(e){var t=this.capture(e),r=this.elements().pushUpdatableBlock(),i=new Bt(t,this.runtime,r,[])
this.didEnter(i)}enterItem({key:e,value:t,memo:i}){var{stack:n}=this,s=(0,r.createIteratorItemRef)(t),a=(0,r.createIteratorItemRef)(i)
n.push(s),n.push(a)
var o=this.capture(2),l=this.elements().pushUpdatableBlock(),c=new $t(o,this.runtime,l,e,a,s)
return this.didEnter(c),c}registerItem(e){this.listBlock().initializeChild(e)}enterList(e,t){var r=[],i=this[p].target(t),n=this.capture(0,i),s=this.elements().pushBlockList(r),a=new zt(n,this.runtime,s,r,e)
this[m].list.push(a),this.didEnter(a)}didEnter(e){this.associateDestroyable(e),this[f].push(e),this.updateWith(e),this.pushUpdating(e.children)}exit(){this[f].pop(),this.elements().popBlock(),this.popUpdating()}exitList(){this.exit(),this[m].list.pop()}pushUpdating(e=[]){this[m].updating.push(e)}popUpdating(){return this[m].updating.pop()}updateWith(e){this.updating().push(e)}listBlock(){return this[m].list.current}associateDestroyable(e){var t=this[f].current;(0,n.associateDestroyableChild)(t,e)}tryUpdating(){return this[m].updating.current}updating(){return this[m].updating.current}elements(){return this.elementStack}scope(){return this[m].scope.current}dynamicScope(){return this[m].dynamicScope.current}pushChildScope(){this[m].scope.push(this.scope().child())}pushDynamicScope(){var e=this.dynamicScope().child()
return this[m].dynamicScope.push(e),e}pushRootScope(e,t){var r=h.sized(e,t)
return this[m].scope.push(r),r}pushScope(e){this[m].scope.push(e)}popScope(){this[m].scope.pop()}popDynamicScope(){this[m].dynamicScope.pop()}getOwner(){return this.scope().owner}getSelf(){return this.scope().getSelf()}referenceForSymbol(e){return this.scope().getSymbol(e)}execute(e){return this._execute(e)}_execute(e){var t
for(e&&e(this);!(t=this.next()).done;);return t.value}next(){var e,{env:t,elementStack:r}=this,i=this[p].nextStatement()
return null!==i?(this[p].evaluateOuter(i,this),e={done:!1,value:null}):(this.stack.reset(),e={done:!0,value:new qt(t,this.popUpdating(),r.popBlock(),this.destructor)}),e}bindDynamicScope(e){for(var t=this.dynamicScope(),r=e.length-1;r>=0;r--){var i=e[r]
t.set(i,this.stack.pop())}}}function Wt(e,t,r){return{pc:e,scope:t,dynamicScope:r,stack:[]}}function Xt(e){return(t,r,i)=>new Gt(t,r,i,e)}e.LowLevelVM=Gt,Et=m,Tt=f
class Kt{constructor(e){this.vm=e}next(){return this.vm.next()}sync(){return this.vm.execute()}}var Yt=e.SERIALIZATION_FIRST_NODE_STRING="%+b:0%"
class Jt extends w{constructor(e,t,r){super(e,t),this.startingBlockDepth=r,this.candidate=null,this.injectedOmittedNode=!1,this.openBlockDepth=r-1}}class Qt extends se{constructor(e,t,r){if(super(e,t,r),this.unmatchedAttributes=null,this.blockDepth=0,r)throw new Error("Rehydration with nextSibling not supported")
for(var i=this.currentCursor.element.firstChild;null!==i&&!Zt(i);)i=i.nextSibling
this.candidate=i
var n=tr(i)
if(0!==n){var s=n-1,a=this.dom.createComment(`%+b:${s}%`)
i.parentNode.insertBefore(a,this.candidate)
for(var o=i.nextSibling;null!==o&&(!er(o)||tr(o)!==n);)o=o.nextSibling
var l=this.dom.createComment(`%-b:${s}%`)
i.parentNode.insertBefore(l,o.nextSibling),this.candidate=a,this.startingBlockOffset=s}else this.startingBlockOffset=0}get currentCursor(){return this[ne].current}get candidate(){return this.currentCursor?this.currentCursor.candidate:null}set candidate(e){this.currentCursor.candidate=e}disableRehydration(e){var t=this.currentCursor
t.candidate=null,t.nextSibling=e}enableRehydration(e){var t=this.currentCursor
t.candidate=e,t.nextSibling=null}pushElement(e,t=null){var r=new Jt(e,t,this.blockDepth||0)
null!==this.candidate&&(r.candidate=e.firstChild,this.candidate=e.nextSibling),this[ne].push(r)}clearMismatch(e){var t=e,r=this.currentCursor
if(null!==r){var i=r.openBlockDepth
if(i>=r.startingBlockDepth)for(;t;){if(er(t))if(i>=rr(t,this.startingBlockOffset))break
t=this.remove(t)}else for(;null!==t;)t=this.remove(t)
this.disableRehydration(t)}}__openBlock(){var{currentCursor:e}=this
if(null!==e){var t=this.blockDepth
this.blockDepth++
var{candidate:r}=e
if(null!==r){var{tagName:i}=e.element
Zt(r)&&rr(r,this.startingBlockOffset)===t?(this.candidate=this.remove(r),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(r)}}}__closeBlock(){var{currentCursor:e}=this
if(null!==e){var t=e.openBlockDepth
this.blockDepth--
var{candidate:r}=e,i=!1
if(null!==r)if(i=!0,er(r)&&rr(r,this.startingBlockOffset)===t){var n=this.remove(r)
this.candidate=n,e.openBlockDepth--}else this.clearMismatch(r),i=!1
if(!1===i){var s=e.nextSibling
if(null!==s&&er(s)&&rr(s,this.startingBlockOffset)===this.blockDepth){var a=this.remove(s)
this.enableRehydration(a),e.openBlockDepth--}}}}__appendNode(e){var{candidate:t}=this
return t||super.__appendNode(e)}__appendHTML(e){var t=this.markerBounds()
if(t){var r=t.firstNode(),i=t.lastNode(),n=new x(this.element,r.nextSibling,i.previousSibling),s=this.remove(r)
return this.remove(i),null!==s&&sr(s)&&(this.candidate=this.remove(s),null!==this.candidate&&this.clearMismatch(this.candidate)),n}return super.__appendHTML(e)}remove(e){var t=e.parentNode,r=e.nextSibling
return t.removeChild(e),r}markerBounds(){var e=this.candidate
if(e&&nr(e)){for(var t=e,r=t.nextSibling;r&&!nr(r);)r=r.nextSibling
return new x(this.element,t,r)}return null}__appendText(e){var{candidate:t}=this
return t?3===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):function(e){return 8===e.nodeType&&"%|%"===e.nodeValue}(t)||sr(t)&&""===e?(this.candidate=this.remove(t),this.__appendText(e)):(this.clearMismatch(t),super.__appendText(e)):super.__appendText(e)}__appendComment(e){var t=this.candidate
return t&&8===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):(t&&this.clearMismatch(t),super.__appendComment(e))}__openElement(e){var t=this.candidate
if(t&&ir(t)&&function(e,t){if("http://www.w3.org/2000/svg"===e.namespaceURI)return e.tagName===t
return e.tagName===t.toUpperCase()}(t,e))return this.unmatchedAttributes=[].slice.call(t.attributes),t
if(t){if(ir(t)&&"TBODY"===t.tagName)return this.pushElement(t,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(e)
this.clearMismatch(t)}return super.__openElement(e)}__setAttribute(e,t,r){var i=this.unmatchedAttributes
if(i){var n=ar(i,e)
if(n)return n.value!==t&&(n.value=t),void i.splice(i.indexOf(n),1)}return super.__setAttribute(e,t,r)}__setProperty(e,t){var r=this.unmatchedAttributes
if(r){var i=ar(r,e)
if(i)return i.value!==t&&(i.value=t),void r.splice(r.indexOf(i),1)}return super.__setProperty(e,t)}__flushElement(e,t){var{unmatchedAttributes:r}=this
if(r){for(var i=0;i<r.length;i++)this.constructing.removeAttribute(r[i].name)
this.unmatchedAttributes=null}else super.__flushElement(e,t)}willCloseElement(){var{candidate:e,currentCursor:t}=this
null!==e&&this.clearMismatch(e),t&&t.injectedOmittedNode&&this.popElement(),super.willCloseElement()}getMarker(e,t){var r=e.querySelector(`script[glmr="${t}"]`)
return r||null}__pushRemoteElement(e,t,r){var i=this.getMarker(e,t)
if(void 0===r){for(;null!==e.firstChild&&e.firstChild!==i;)this.remove(e.firstChild)
r=null}var n=new Jt(e,null,this.blockDepth)
this[ne].push(n),null===i?this.disableRehydration(r):this.candidate=this.remove(i)
var s=new oe(e)
return this.pushLiveBlock(s,!0)}didAppendBounds(e){if(super.didAppendBounds(e),this.candidate){var t=e.lastNode()
this.candidate=t&&t.nextSibling}return e}}function Zt(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%+b:",0)}function er(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%-b:",0)}function tr(e){return parseInt(e.nodeValue.slice(4),10)}function rr(e,t){return tr(e)-t}function ir(e){return 1===e.nodeType}function nr(e){return 8===e.nodeType&&"%glmr%"===e.nodeValue}function sr(e){return 8===e.nodeType&&"% %"===e.nodeValue}function ar(e,t){for(var r=0;r<e.length;r++){var i=e[r]
if(i.name===t)return i}}e.RehydrateBuilder=Qt
function or(e){return(0,a.getValue)(e.argsCache)}class lr{constructor(e,t=()=>je){var r=(0,a.createCache)((()=>t(e)))
this.argsCache=r}get named(){return or(this).named||Re}get positional(){return or(this).positional||De}}function cr(e){return(0,o.setInternalHelperManager)(e,{})}var ur=(0,t.buildUntouchableThis)("`fn` helper")
e.fn=cr((({positional:e})=>{var t=e[0]
return(0,r.createComputeRef)((()=>(...i)=>{var[n,...s]=(0,u.reifyPositional)(e)
if((0,r.isInvokableRef)(t)){var a=s.length>0?s[0]:i[0]
return(0,r.updateRef)(t,a)}return n.call(ur,...s,...i)}),null,"fn")}))
e.hash=cr((({named:e})=>{var t=(0,r.createComputeRef)((()=>{var t=(0,u.reifyNamed)(e)
return t}),null,"hash"),i=new Map
for(var n in e)i.set(n,e[n])
return t.children=i,t})),e.array=cr((({positional:e})=>(0,r.createComputeRef)((()=>(0,u.reifyPositional)(e)),null,"array"))),e.get=cr((({positional:e})=>{var n,s,a=null!==(n=e[0])&&void 0!==n?n:r.UNDEFINED_REFERENCE,o=null!==(s=e[1])&&void 0!==s?s:r.UNDEFINED_REFERENCE
return(0,r.createComputeRef)((()=>{var e=(0,r.valueForRef)(a)
if((0,t.isDict)(e))return(0,i.getPath)(e,String((0,r.valueForRef)(o)))}),(e=>{var n=(0,r.valueForRef)(a)
if((0,t.isDict)(n))return(0,i.setPath)(n,String((0,r.valueForRef)(o)),e)}),"get")}))
var dr=e=>(e=>null==e||"function"!=typeof e.toString)(e)?"":String(e),hr=(e.concat=cr((({positional:e})=>(0,r.createComputeRef)((()=>(0,u.reifyPositional)(e).map(dr).join("")),null,"concat"))),(0,t.buildUntouchableThis)("`on` modifier")),pr=(()=>{try{var e,t=document.createElement("div"),r=0
return t.addEventListener("click",(()=>r++),{once:!0}),"function"==typeof Event?e=new Event("click"):(e=document.createEvent("Event")).initEvent("click",!0,!0),t.dispatchEvent(e),t.dispatchEvent(e),1===r}catch(i){return!1}})()
class fr{constructor(e,t){this.tag=(0,a.createUpdatableTag)(),this.shouldUpdate=!0,this.element=e,this.args=t}updateFromArgs(){var e,{args:t}=this,{once:i,passive:n,capture:s}=(0,u.reifyNamed)(t.named)
i!==this.once&&(this.once=i,this.shouldUpdate=!0),n!==this.passive&&(this.passive=n,this.shouldUpdate=!0),s!==this.capture&&(this.capture=s,this.shouldUpdate=!0),i||n||s?e=this.options={once:i,passive:n,capture:s}:this.options=void 0
var a=(0,r.valueForRef)(t.positional[0])
a!==this.eventName&&(this.eventName=a,this.shouldUpdate=!0)
var o=t.positional[1],l=(0,r.valueForRef)(o)
l!==this.userProvidedCallback&&(this.userProvidedCallback=l,this.shouldUpdate=!0)
var c=!1===pr&&i||!1
if(this.shouldUpdate)if(c)var d=this.callback=function(t){return!pr&&i&&br(this,a,d,e),l.call(hr,t)}
else this.callback=l}}var mr=0,gr=0
function br(e,t,r,i){gr++,pr?e.removeEventListener(t,r,i):void 0!==i&&i.capture?e.removeEventListener(t,r,!0):e.removeEventListener(t,r)}function yr(e,t,r,i){mr++,pr?e.addEventListener(t,r,i):void 0!==i&&i.capture?e.addEventListener(t,r,!0):e.addEventListener(t,r)}e.on=(0,o.setInternalModifierManager)(new class{constructor(){this.SUPPORTS_EVENT_OPTIONS=pr}getDebugName(){return"on"}get counters(){return{adds:mr,removes:gr}}create(e,t,r,i){return new fr(t,i)}getTag(e){return null===e?null:e.tag}install(e){if(null!==e){e.updateFromArgs()
var{element:t,eventName:r,callback:i,options:s}=e
yr(t,r,i,s),(0,n.registerDestructor)(e,(()=>br(t,r,i,s))),e.shouldUpdate=!1}}update(e){if(null!==e){var{element:t,eventName:r,callback:i,options:n}=e
e.updateFromArgs(),e.shouldUpdate&&(br(t,r,i,n),yr(e.element,e.eventName,e.callback,e.options),e.shouldUpdate=!1)}}getDestroyable(e){return e}},{})})),e("@glimmer/tracking/index",["exports","@ember/-internals/metal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cached",{enumerable:!0,get:function(){return t.cached}}),Object.defineProperty(e,"tracked",{enumerable:!0,get:function(){return t.tracked}})})),e("@glimmer/tracking/primitives/cache",["exports","@ember/-internals/metal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createCache",{enumerable:!0,get:function(){return t.createCache}}),Object.defineProperty(e,"getValue",{enumerable:!0,get:function(){return t.getValue}}),Object.defineProperty(e,"isConst",{enumerable:!0,get:function(){return t.isConst}})})),e("@glimmer/util",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._WeakSet=e.Stack=e.SERIALIZATION_FIRST_NODE_STRING=e.LOGGER=e.LOCAL_LOGGER=e.HAS_NATIVE_SYMBOL=e.HAS_NATIVE_PROXY=e.EMPTY_STRING_ARRAY=e.EMPTY_NUMBER_ARRAY=e.EMPTY_ARRAY=void 0,e.assert=function(e,t){if(!e)throw new Error(t||"assertion failure")},e.assertNever=function(e,t="unexpected unreachable branch"){throw w.log("unreachable",e),w.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")},e.assertPresent=function(e,t="unexpected empty list"){if(!y(e))throw new Error(t)},e.beginTestSteps=e.assign=void 0,e.buildUntouchableThis=function(e){var t=null
return t},e.castToBrowser=function(e,t){if(null==e)return null
if(void 0===typeof document)throw new Error("Attempted to cast to a browser node in a non-browser context")
if(m(e))return e
if(e.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document")
return g(e,t)},e.castToSimple=function(e){return m(e)||function(e){e.nodeType}(e),e},e.checkNode=g,e.clearElement=function(e){var t=e.firstChild
for(;t;){var r=t.nextSibling
e.removeChild(t),t=r}},e.constants=function(...e){return[!1,!0,null,void 0,...e]},e.debugToString=void 0,e.decodeHandle=function(e){return e},e.decodeImmediate=p,e.decodeNegative=c,e.decodePositive=d,e.deprecate=function(e){v.warn(`DEPRECATION: ${e}`)},e.dict=function(){return Object.create(null)},e.emptyArray=r,e.encodeHandle=function(e){return e},e.encodeImmediate=h,e.encodeNegative=l,e.encodePositive=u,e.endTestSteps=void 0,e.enumerableSymbol=o,e.exhausted=function(e){throw new Error(`Exhausted ${e}`)},e.expect=function(e,t){if(null==e)throw new Error(t)
return e},e.extractHandle=function(e){return"number"==typeof e?e:e.handle},e.fillNulls=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=null
return t}
e.ifPresent=function(e,t,r){return y(e)?t(e):r()},e.intern=n,e.isDict=function(e){return null!=e},e.isEmptyArray=function(e){return e===t},e.isErrHandle=function(e){return"number"==typeof e},e.isHandle=function(e){return e>=0},e.isNonPrimitiveHandle=function(e){return e>3},e.isObject=function(e){return"function"==typeof e||"object"==typeof e&&null!==e},e.isOkHandle=function(e){return"number"==typeof e},e.isPresent=y,e.isSerializationFirstNode=function(e){return e.nodeValue===i},e.isSmallInt=function(e){return e%1==0&&e<=536870911&&e>=-536870912},e.keys=function(e){return Object.keys(e)},e.logStep=void 0,e.mapPresent=function(e,t){if(null===e)return null
var r=[]
for(var i of e)r.push(t(i))
return r},e.strip=function(e,...t){for(var r="",i=0;i<e.length;i++){r+=`${e[i]}${void 0!==t[i]?String(t[i]):""}`}var n=r.split("\n")
for(;n.length&&n[0].match(/^\s*$/);)n.shift()
for(;n.length&&n[n.length-1].match(/^\s*$/);)n.pop()
var s=1/0
for(var a of n){var o=a.match(/^\s*/)[0].length
s=Math.min(s,o)}var l=[]
for(var c of n)l.push(c.slice(s))
return l.join("\n")},e.symbol=void 0,e.toPresentOption=function(e){return y(e)?e:null},e.tuple=void 0,e.unreachable=a,e.unwrap=function(e){if(null==e)throw new Error("Expected value to be present")
return e},e.unwrapHandle=function(e){if("number"==typeof e)return e
var t=e.errors[0]
throw new Error(`Compile Error: ${t.problem} @ ${t.span.start}..${t.span.end}`)},e.unwrapTemplate=function(e){if("error"===e.result)throw new Error(`Compile Error: ${e.problem} @ ${e.span.start}..${e.span.end}`)
return e},e.values=function(e){var t=[]
for(var r in e)t.push(e[r])
return t},e.verifySteps=void 0
var t=e.EMPTY_ARRAY=Object.freeze([])
function r(){return t}e.EMPTY_STRING_ARRAY=r(),e.EMPTY_NUMBER_ARRAY=r()
e.Stack=class{constructor(e=[]){this.current=null,this.stack=e}get size(){return this.stack.length}push(e){this.current=e,this.stack.push(e)}pop(){var e=this.stack.pop(),t=this.stack.length
return this.current=0===t?null:this.stack[t-1],void 0===e?null:e}nth(e){var t=this.stack.length
return t<e?null:this.stack[t-e]}isEmpty(){return 0===this.stack.length}toArray(){return this.stack}}
var i=e.SERIALIZATION_FIRST_NODE_STRING="%+b:0%"
e.assign=Object.assign
function n(e){var t={}
for(var r in t[e]=1,t)if(r===e)return r
return e}e.HAS_NATIVE_PROXY="function"==typeof Proxy
var s=e.HAS_NATIVE_SYMBOL="function"==typeof Symbol&&"symbol"==typeof Symbol()
function a(e="unreachable"){return new Error(e)}function o(e){return n(`__${e}${Math.floor(Math.random()*Date.now())}__`)}e.tuple=(...e)=>e
e.symbol=s?Symbol:o
function l(e){return-536870913&e}function c(e){return 536870912|e}function u(e){return~e}function d(e){return~e}function h(e){return(e|=0)<0?l(e):u(e)}function p(e){return(e|=0)>-536870913?d(e):c(e)}[1,-1].forEach((e=>p(h(e))))
var f
e._WeakSet="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}}
function m(e){return 9===e.nodeType}function g(e,t){var r=!1
if(null!==e)if("string"==typeof t)r=b(e,t)
else{if(!Array.isArray(t))throw a()
r=t.some((t=>b(e,t)))}if(r)return e
throw function(e,t){return new Error(`cannot cast a ${e} into ${t}`)}(`SimpleElement(${e})`,t)}function b(e,t){switch(t){case"NODE":return!0
case"HTML":return e instanceof HTMLElement
case"SVG":return e instanceof SVGElement
case"ELEMENT":return e instanceof Element
default:if(t.toUpperCase()===t)throw new Error("BUG: this code is missing handling for a generic node type")
return e instanceof Element&&e.tagName.toLowerCase()===t}}function y(e){return e.length>0}e.debugToString=f
var v=e.LOCAL_LOGGER=console,w=e.LOGGER=console})),e("@glimmer/validator",["exports","@glimmer/global-context"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.VolatileTag=e.VOLATILE_TAG=e.VOLATILE=e.INITIAL=e.CurrentTag=e.CURRENT_TAG=e.CONSTANT_TAG=e.CONSTANT=e.COMPUTE=e.ALLOW_CYCLES=void 0,e.beginTrackFrame=M,e.beginTrackingTransaction=void 0,e.beginUntrackFrame=F,e.bump=function(){o++},e.combine=void 0,e.consumeTag=R,e.createCache=function(e,t){0
var r={[D]:e,[j]:void 0,[L]:void 0,[B]:-1}
0
return r},e.createTag=function(){return new h(0)},e.createUpdatableTag=m,e.dirtyTag=void 0,e.dirtyTagFor=A,e.endTrackFrame=I,e.endTrackingTransaction=void 0,e.endUntrackFrame=N,e.getValue=function(e){$(e,"getValue")
var t=e[D],r=e[L],i=e[B]
if(void 0!==r&&u(r,i))R(r)
else{M()
try{e[j]=t()}finally{r=I(),e[L]=r,e[B]=c(r),R(r)}}return e[j]},e.isConst=function(e){$(e,"isConst")
var t=e[L]
return function(){0}(),b(t)},e.isConstTag=b,e.isTracking=function(){return null!==E},e.logTrackingStack=void 0,e.resetTracking=function(){for(;T.length>0;)T.pop()
E=null,!1},e.setTrackingTransactionEnv=e.runInTrackingTransaction=void 0,e.tagFor=P,e.tagMetaFor=C,e.track=function(e,t){var r
M(t)
try{e()}finally{r=I()}return r},e.trackedData=function(e,t){var r=new WeakMap,i="function"==typeof t
return{getter:function(n){var s
return R(P(n,e)),i&&!r.has(n)?(s=t.call(n),r.set(n,s)):s=r.get(n),s},setter:function(t,i){A(t,e),r.set(t,i)}}},e.untrack=function(e){F()
try{return e()}finally{N()}},e.updateTag=void 0,e.validateTag=u
e.valueForTag=c
var r="undefined"!=typeof Symbol?Symbol:e=>`__${e}${Math.floor(Math.random()*Date.now())}__`,i="undefined"!=typeof Symbol?Symbol.for:e=>`__GLIMMER_VALIDATOR_SYMBOL_FOR_${e}`
function n(e){if(null==e)throw new Error("Expected value to be present")
return e}e.CONSTANT=0
var s=e.INITIAL=1,a=e.VOLATILE=NaN,o=s
var l=e.COMPUTE=r("TAG_COMPUTE")
function c(e){return e[l]()}function u(e,t){return t>=e[l]()}var d=r("TAG_TYPE")
class h{constructor(e){this.revision=s,this.lastChecked=s,this.lastValue=s,this.isUpdating=!1,this.subtag=null,this.subtagBufferCache=null,this[d]=e}static combine(e){switch(e.length){case 0:return g
case 1:return e[0]
default:var t=new h(2)
return t.subtag=e,t}}[l](){var{lastChecked:e}=this
if(!0===this.isUpdating)this.lastChecked=++o
else if(e!==o){this.isUpdating=!0,this.lastChecked=o
try{var{subtag:t,revision:r}=this
if(null!==t)if(Array.isArray(t))for(var i=0;i<t.length;i++){var n=t[i][l]()
r=Math.max(n,r)}else{var s=t[l]()
s===this.subtagBufferCache?r=Math.max(r,this.lastValue):(this.subtagBufferCache=null,r=Math.max(r,s))}this.lastValue=r}finally{this.isUpdating=!1}}return this.lastValue}static updateTag(e,t){var r=e,i=t
i===g?r.subtag=null:(r.subtagBufferCache=i[l](),r.subtag=i)}static dirtyTag(e,r){e.revision=++o,(0,t.scheduleRevalidate)()}}var p=e.dirtyTag=h.dirtyTag,f=e.updateTag=h.updateTag
function m(){return new h(1)}var g=e.CONSTANT_TAG=new h(3)
function b(e){return e===g}class y{[l](){return a}}e.VolatileTag=y
e.VOLATILE_TAG=new y
class v{[l](){return o}}e.CurrentTag=v
e.CURRENT_TAG=new v
var w=e.combine=h.combine,x=m(),_=m(),S=m()
c(x),p(x),c(x),f(x,w([_,S])),c(x),p(_),c(x),p(S),c(x),f(x,S),c(x),p(S),c(x)
var k=new WeakMap
function A(e,t,r){var i=void 0===r?k.get(e):r
if(void 0!==i){var n=i.get(t)
void 0!==n&&p(n,!0)}}function C(e){var t=k.get(e)
return void 0===t&&(t=new Map,k.set(e,t)),t}function P(e,t,r){var i=void 0===r?C(e):r,n=i.get(t)
return void 0===n&&(n=m(),i.set(t,n)),n}class O{constructor(){this.tags=new Set,this.last=null}add(e){e!==g&&(this.tags.add(e),this.last=e)}combine(){var{tags:e}=this
if(0===e.size)return g
if(1===e.size)return this.last
var t=[]
return e.forEach((e=>t.push(e))),w(t)}}var E=null,T=[]
function M(e){T.push(E),E=new O}function I(){var e=E
return E=T.pop()||null,n(e).combine()}function F(){T.push(E),E=null}function N(){E=T.pop()||null}function R(e){null!==E&&E.add(e)}var D=r("FN"),j=r("LAST_VALUE"),L=r("TAG"),B=r("SNAPSHOT")
r("DEBUG_LABEL")
function $(e,t){0}var z=i("GLIMMER_VALIDATOR_REGISTRATION"),U=function(){if("undefined"!=typeof globalThis)return globalThis
if("undefined"!=typeof self)return self
if("undefined"!=typeof window)return window
if("undefined"!=typeof global)return global
throw new Error("unable to locate global object")}()
if(!0===U[z])throw new Error("The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.")
U[z]=!0})),e("@glimmer/vm",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TemporaryRegister=e.SavedRegister=e.$v0=e.$t1=e.$t0=e.$sp=e.$s1=e.$s0=e.$ra=e.$pc=e.$fp=void 0,e.isLowLevelRegister=function(e){return e<=i},e.isMachineOp=function(e){return e>=0&&e<=15},e.isOp=function(e){return e>=16}
e.$pc=0,e.$ra=1,e.$fp=2
var t,r,i=e.$sp=3
e.$s0=4,e.$s1=5,e.$t0=6,e.$t1=7,e.$v0=8;(function(e){e[e.s0=4]="s0",e[e.s1=5]="s1"})(t||(e.SavedRegister=t={})),function(e){e[e.t0=6]="t0",e[e.t1=7]="t1"}(r||(e.TemporaryRegister=r={}))})),e("@glimmer/wire-format",["exports"],(function(e){"use strict"
function t(e){return function(t){return Array.isArray(t)&&t[0]===e}}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringFromValue=function(e){return e},e.is=t,e.isArgument=function(e){return 21===e[0]||20===e[0]},e.isAttribute=function(e){return 14===e[0]||15===e[0]||22===e[0]||16===e[0]||24===e[0]||23===e[0]||17===e[0]||4===e[0]},e.isGet=e.isFlushElement=void 0,e.isHelper=function(e){return Array.isArray(e)&&28===e[0]},e.isStringLiteral=function(e){return"string"==typeof e}
e.isFlushElement=t(12)
e.isGet=t(30)}))
e("@simple-dom/document",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t=[]
function r(e,t,r){for(var i=0;i<e.length;i++){var n=e[i]
if(n.namespaceURI===t&&n.localName===r)return i}return-1}function i(e,t){return"http://www.w3.org/1999/xhtml"===e?t.toLowerCase():t}function n(e,t,i){var n=r(e,t,i)
return-1===n?null:e[n].value}function s(e,t,i){var n=r(e,t,i);-1!==n&&e.splice(n,1)}function a(e,i,n,s,a){"string"!=typeof a&&(a=""+a)
var{attributes:o}=e
if(o===t)o=e.attributes=[]
else{var l=r(o,i,s)
if(-1!==l)return void(o[l].value=a)}o.push({localName:s,name:null===n?s:n+":"+s,namespaceURI:i,prefix:n,specified:!0,value:a})}class o{constructor(e){this.node=e,this.stale=!0,this._length=0}get length(){if(this.stale){this.stale=!1
for(var e=0,t=this.node.firstChild;null!==t;e++)this[e]=t,t=t.nextSibling
var r=this._length
for(this._length=e;e<r;e++)delete this[e]}return this._length}item(e){return e<this.length?this[e]:null}}function l(e,r){var i=function(e){var r
1===e.nodeType&&(r=e.namespaceURI)
var i=new h(e.ownerDocument,e.nodeType,e.nodeName,e.nodeValue,r)
1===e.nodeType&&(i.attributes=function(e){if(e===t)return t
for(var r=[],i=0;i<e.length;i++){var n=e[i]
r.push({localName:n.localName,name:n.name,namespaceURI:n.namespaceURI,prefix:n.prefix,specified:!0,value:n.value})}return r}(e.attributes))
return i}(e)
if(r)for(var n=e.firstChild,s=n;null!==n;)s=n.nextSibling,i.appendChild(n.cloneNode(!0)),n=s
return i}function c(e,t,r){d(e),function(e,t,r,i){if(11===t.nodeType)return void function(e,t,r,i){var n=e.firstChild
if(null===n)return
e.firstChild=null,e.lastChild=null
var s=n,a=n
n.previousSibling=r,null===r?t.firstChild=n:r.nextSibling=n
for(;null!==a;)a.parentNode=t,s=a,a=a.nextSibling
s.nextSibling=i,null===i?t.lastChild=s:i.previousSibling=s}(t,e,r,i)
null!==t.parentNode&&u(t.parentNode,t)
t.parentNode=e,t.previousSibling=r,t.nextSibling=i,null===r?e.firstChild=t:r.nextSibling=t
null===i?e.lastChild=t:i.previousSibling=t}(e,t,null===r?e.lastChild:r.previousSibling,r)}function u(e,t){d(e),function(e,t,r,i){t.parentNode=null,t.previousSibling=null,t.nextSibling=null,null===r?e.firstChild=i:r.nextSibling=i
null===i?e.lastChild=r:i.previousSibling=r}(e,t,t.previousSibling,t.nextSibling)}function d(e){var t=e._childNodes
void 0!==t&&(t.stale=!0)}class h{constructor(e,r,i,n,s){this.ownerDocument=e,this.nodeType=r,this.nodeName=i,this.nodeValue=n,this.namespaceURI=s,this.parentNode=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.attributes=t,this._childNodes=void 0}get tagName(){return this.nodeName}get childNodes(){var e=this._childNodes
return void 0===e&&(e=this._childNodes=new o(this)),e}cloneNode(e){return l(this,!0===e)}appendChild(e){return c(this,e,null),e}insertBefore(e,t){return c(this,e,t),e}removeChild(e){return u(this,e),e}insertAdjacentHTML(e,t){var r,i,n=new h(this.ownerDocument,-1,"#raw",t,void 0)
switch(e){case"beforebegin":r=this.parentNode,i=this
break
case"afterbegin":r=this,i=this.firstChild
break
case"beforeend":r=this,i=null
break
case"afterend":r=this.parentNode,i=this.nextSibling
break
default:throw new Error("invalid position")}if(null===r)throw new Error(`${e} requires a parentNode`)
c(r,n,i)}getAttribute(e){var t=i(this.namespaceURI,e)
return n(this.attributes,null,t)}getAttributeNS(e,t){return n(this.attributes,e,t)}setAttribute(e,t){a(this,null,null,i(this.namespaceURI,e),t)}setAttributeNS(e,t,r){var[i,n]=function(e){var t=e,r=null,i=e.indexOf(":")
return-1!==i&&(r=e.slice(0,i),t=e.slice(i+1)),[r,t]}(t)
a(this,e,i,n,r)}removeAttribute(e){var t=i(this.namespaceURI,e)
s(this.attributes,null,t)}removeAttributeNS(e,t){s(this.attributes,e,t)}get doctype(){return this.firstChild}get documentElement(){return this.lastChild}get head(){return this.documentElement.firstChild}get body(){return this.documentElement.lastChild}createElement(e){return new h(this,1,e.toUpperCase(),null,"http://www.w3.org/1999/xhtml")}createElementNS(e,t){var r="http://www.w3.org/1999/xhtml"===e?t.toUpperCase():t
return new h(this,1,r,null,e)}createTextNode(e){return new h(this,3,"#text",e,void 0)}createComment(e){return new h(this,8,"#comment",e,void 0)}createRawHTMLSection(e){return new h(this,-1,"#raw",e,void 0)}createDocumentFragment(){return new h(this,11,"#document-fragment",null,void 0)}}e.default=function(){var e=new h(null,9,"#document",null,"http://www.w3.org/1999/xhtml"),t=new h(e,10,"html",null,"http://www.w3.org/1999/xhtml"),r=new h(e,1,"HTML",null,"http://www.w3.org/1999/xhtml"),i=new h(e,1,"HEAD",null,"http://www.w3.org/1999/xhtml"),n=new h(e,1,"BODY",null,"http://www.w3.org/1999/xhtml")
return r.appendChild(i),r.appendChild(n),e.appendChild(t),e.appendChild(r),e}})),e("backburner",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.buildPlatform=n,e.default=void 0
var t=setTimeout,r=()=>{}
function i(e){if("function"==typeof Promise){var r=Promise.resolve()
return()=>r.then(e)}if("function"==typeof MutationObserver){var i=0,n=new MutationObserver(e),s=document.createTextNode("")
return n.observe(s,{characterData:!0}),()=>(i=++i%2,s.data=""+i,i)}return()=>t(e,0)}function n(e){var t=r
return{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now(),next:i(e),clearNext:t}}var s=/\d+/
function a(e){var t=typeof e
return"number"===t&&e==e||"string"===t&&s.test(e)}function o(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function l(e,t,r){for(var i=-1,n=0,s=r.length;n<s;n+=4)if(r[n]===e&&r[n+1]===t){i=n
break}return i}function c(e,t,r){for(var i=-1,n=2,s=r.length;n<s;n+=6)if(r[n]===e&&r[n+1]===t){i=n-2
break}return i}function u(e,t,r=0){for(var i=[],n=0;n<e.length;n+=t){var s=e[n+3+r],a={target:e[n+0+r],method:e[n+1+r],args:e[n+2+r],stack:void 0!==s&&"stack"in s?s.stack:""}
i.push(a)}return i}function d(e,t){for(var r,i,n=0,s=t.length-6;n<s;)e>=t[r=n+(i=(s-n)/6)-i%6]?n=r+6:s=r
return e>=t[n]?n+6:n}class h{constructor(e,t={},r={}){this._queueBeingFlushed=[],this.targetQueues=new Map,this.index=0,this._queue=[],this.name=e,this.options=t,this.globalOptions=r}stackFor(e){if(e<this._queue.length){var t=this._queue[3*e+4]
return t?t.stack:null}}flush(e){var t,r,{before:i,after:n}=this.options
this.targetQueues.clear(),0===this._queueBeingFlushed.length&&(this._queueBeingFlushed=this._queue,this._queue=[]),void 0!==i&&i()
var s=this._queueBeingFlushed
if(s.length>0){var a=o(this.globalOptions)
r=a?this.invokeWithOnError:this.invoke
for(var l=this.index;l<s.length;l+=4)if(this.index+=4,null!==(t=s[l+1])&&r(s[l],t,s[l+2],a,s[l+3]),this.index!==this._queueBeingFlushed.length&&this.globalOptions.mustYield&&this.globalOptions.mustYield())return 1}void 0!==n&&n(),this._queueBeingFlushed.length=0,this.index=0,!1!==e&&this._queue.length>0&&this.flush(!0)}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0}cancel({target:e,method:t}){var r=this._queue,i=this.targetQueues.get(e)
void 0!==i&&i.delete(t)
var n=l(e,t,r)
return n>-1?(r.splice(n,4),!0):(n=l(e,t,r=this._queueBeingFlushed))>-1&&(r[n+1]=null,!0)}push(e,t,r,i){return this._queue.push(e,t,r,i),{queue:this,target:e,method:t}}pushUnique(e,t,r,i){var n=this.targetQueues.get(e)
void 0===n&&(n=new Map,this.targetQueues.set(e,n))
var s=n.get(t)
if(void 0===s){var a=this._queue.push(e,t,r,i)-4
n.set(t,a)}else{var o=this._queue
o[s+2]=r,o[s+3]=i}return{queue:this,target:e,method:t}}_getDebugInfo(e){if(e)return u(this._queue,4)}invoke(e,t,r){void 0===r?t.call(e):t.apply(e,r)}invokeWithOnError(e,t,r,i,n){try{void 0===r?t.call(e):t.apply(e,r)}catch(s){i(s,n)}}}class p{constructor(e=[],t){this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce((function(e,r){return e[r]=new h(r,t[r],t),e}),this.queues)}schedule(e,t,r,i,n,s){var a=this.queues[e]
if(void 0===a)throw new Error(`You attempted to schedule an action in a queue (${e}) that doesn't exist`)
if(null==r)throw new Error(`You attempted to schedule an action in a queue (${e}) for a method that doesn't exist`)
return this.queueNameIndex=0,n?a.pushUnique(t,r,i,s):a.push(t,r,i,s)}flush(e=!1){for(var t,r,i=this.queueNames.length;this.queueNameIndex<i;)if(r=this.queueNames[this.queueNameIndex],!1===(t=this.queues[r]).hasWork()){if(this.queueNameIndex++,e&&this.queueNameIndex<i)return 1}else if(1===t.flush(!1))return 1}_getDebugInfo(e){if(e){for(var t,r,i={},n=this.queueNames.length,s=0;s<n;)r=this.queueNames[s],t=this.queues[r],i[r]=t._getDebugInfo(e),s++
return i}}}function f(e){for(var t=e(),r=t.next();!1===r.done;)r.value(),r=t.next()}var m=function(){},g=Object.freeze([])
function b(){var e,t,r,i=arguments.length
if(0===i);else if(1===i)r=null,t=arguments[0]
else{var n=2,s=arguments[0],a=arguments[1],o=typeof a
if("function"===o?(r=s,t=a):null!==s&&"string"===o&&a in s?t=(r=s)[a]:"function"==typeof s&&(n=1,r=null,t=s),i>n){var l=i-n
e=new Array(l)
for(var c=0;c<l;c++)e[c]=arguments[c+n]}}return[r,t,e]}function y(){var e,t,r,i,n
return 2===arguments.length?(t=arguments[0],n=arguments[1],e=null):([e,t,i]=b(...arguments),void 0===i?n=0:a(n=i.pop())||(r=!0===n,n=i.pop())),[e,t,i,n=parseInt(n,10),r]}var v=0,w=0,x=0,_=0,S=0,k=0,A=0,C=0,P=0,O=0,E=0,T=0,M=0,I=0,F=0,N=0,R=0,D=0,j=0,L=0,B=0
class ${constructor(e,t){this.DEBUG=!1,this.currentInstance=null,this.instanceStack=[],this._eventCallbacks={end:[],begin:[]},this._timerTimeoutId=null,this._timers=[],this._autorun=!1,this._autorunStack=null,this.queueNames=e,this.options=t||{},"string"==typeof this.options.defaultQueue?this._defaultQueue=this.options.defaultQueue:this._defaultQueue=this.queueNames[0],this._onBegin=this.options.onBegin||m,this._onEnd=this.options.onEnd||m,this._boundRunExpiredTimers=this._runExpiredTimers.bind(this),this._boundAutorunEnd=()=>{j++,!1!==this._autorun&&(this._autorun=!1,this._autorunStack=null,this._end(!0))}
var r=this.options._buildPlatform||n
this._platform=r(this._boundAutorunEnd)}get counters(){return{begin:w,end:x,events:{begin:_,end:0},autoruns:{created:D,completed:j},run:S,join:k,defer:A,schedule:C,scheduleIterable:P,deferOnce:O,scheduleOnce:E,setTimeout:T,later:M,throttle:I,debounce:F,cancelTimers:N,cancel:R,loops:{total:L,nested:B}}}get defaultQueue(){return this._defaultQueue}begin(){w++
var e,t=this.options,r=this.currentInstance
return!1!==this._autorun?(e=r,this._cancelAutorun()):(null!==r&&(B++,this.instanceStack.push(r)),L++,e=this.currentInstance=new p(this.queueNames,t),_++,this._trigger("begin",e,r)),this._onBegin(e,r),e}end(){x++,this._end(!1)}on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function")
var r=this._eventCallbacks[e]
if(void 0===r)throw new TypeError(`Cannot on() event ${e} because it does not exist`)
r.push(t)}off(e,t){var r=this._eventCallbacks[e]
if(!e||void 0===r)throw new TypeError(`Cannot off() event ${e} because it does not exist`)
var i=!1
if(t)for(var n=0;n<r.length;n++)r[n]===t&&(i=!0,r.splice(n,1),n--)
if(!i)throw new TypeError("Cannot off() callback that does not exist")}run(){S++
var[e,t,r]=b(...arguments)
return this._run(e,t,r)}join(){k++
var[e,t,r]=b(...arguments)
return this._join(e,t,r)}defer(e,t,r,...i){return A++,this.schedule(e,t,r,...i)}schedule(e,...t){C++
var[r,i,n]=b(...t),s=this.DEBUG?new Error:void 0
return this._ensureInstance().schedule(e,r,i,n,!1,s)}scheduleIterable(e,t){P++
var r=this.DEBUG?new Error:void 0
return this._ensureInstance().schedule(e,null,f,[t],!1,r)}deferOnce(e,t,r,...i){return O++,this.scheduleOnce(e,t,r,...i)}scheduleOnce(e,...t){E++
var[r,i,n]=b(...t),s=this.DEBUG?new Error:void 0
return this._ensureInstance().schedule(e,r,i,n,!0,s)}setTimeout(){return T++,this.later(...arguments)}later(){M++
var[e,t,r,i]=function(){var[e,t,r]=b(...arguments),i=0,n=void 0!==r?r.length:0
return n>0&&a(r[n-1])&&(i=parseInt(r.pop(),10)),[e,t,r,i]}(...arguments)
return this._later(e,t,r,i)}throttle(){I++
var e,[t,r,i,n,s=!0]=y(...arguments),a=c(t,r,this._timers)
if(-1===a)e=this._later(t,r,s?g:i,n),s&&this._join(t,r,i)
else{e=this._timers[a+1]
var o=a+4
this._timers[o]!==g&&(this._timers[o]=i)}return e}debounce(){F++
var e,[t,r,i,n,s=!1]=y(...arguments),a=this._timers,o=c(t,r,a)
if(-1===o)e=this._later(t,r,s?g:i,n),s&&this._join(t,r,i)
else{var l=this._platform.now()+n,u=o+4
a[u]===g&&(i=g),e=a[o+1]
var h=d(l,a)
if(o+6===h)a[o]=l,a[u]=i
else{var p=this._timers[o+5]
this._timers.splice(h,0,l,e,t,r,i,p),this._timers.splice(o,6)}0===o&&this._reinstallTimerTimeout()}return e}cancelTimers(){N++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()}hasTimers(){return this._timers.length>0||this._autorun}cancel(e){if(R++,null==e)return!1
var t=typeof e
return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)}ensureInstance(){this._ensureInstance()}getDebugInfo(){if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:u(this._timers,6,2),instanceStack:[this.currentInstance,...this.instanceStack].map((e=>e&&e._getDebugInfo(this.DEBUG)))}}_end(e){var t=this.currentInstance,r=null
if(null===t)throw new Error("end called without begin")
var i,n=!1
try{i=t.flush(e)}finally{if(!n)if(n=!0,1===i){var s=this.queueNames[t.queueNameIndex]
this._scheduleAutorun(s)}else this.currentInstance=null,this.instanceStack.length>0&&(r=this.instanceStack.pop(),this.currentInstance=r),this._trigger("end",t,r),this._onEnd(t,r)}}_join(e,t,r){return null===this.currentInstance?this._run(e,t,r):void 0===e&&void 0===r?t():t.apply(e,r)}_run(e,t,r){var i=o(this.options)
if(this.begin(),i)try{return t.apply(e,r)}catch(n){i(n)}finally{this.end()}else try{return t.apply(e,r)}finally{this.end()}}_cancelAutorun(){this._autorun&&(this._platform.clearNext(),this._autorun=!1,this._autorunStack=null)}_later(e,t,r,i){var n=this.DEBUG?new Error:void 0,s=this._platform.now()+i,a=v++
if(0===this._timers.length)this._timers.push(s,a,e,t,r,n),this._installTimerTimeout()
else{var o=d(s,this._timers)
this._timers.splice(o,0,s,a,e,t,r,n),this._reinstallTimerTimeout()}return a}_cancelLaterTimer(e){for(var t=1;t<this._timers.length;t+=6)if(this._timers[t]===e)return this._timers.splice(t-1,6),1===t&&this._reinstallTimerTimeout(),!0
return!1}_trigger(e,t,r){var i=this._eventCallbacks[e]
if(void 0!==i)for(var n=0;n<i.length;n++)i[n](t,r)}_runExpiredTimers(){this._timerTimeoutId=null,this._timers.length>0&&(this.begin(),this._scheduleExpiredTimers(),this.end())}_scheduleExpiredTimers(){for(var e=this._timers,t=0,r=e.length,i=this._defaultQueue,n=this._platform.now();t<r;t+=6){if(e[t]>n)break
var s=e[t+4]
if(s!==g){var a=e[t+2],o=e[t+3],l=e[t+5]
this.currentInstance.schedule(i,a,o,s,!1,l)}}e.splice(0,t),this._installTimerTimeout()}_reinstallTimerTimeout(){this._clearTimerTimeout(),this._installTimerTimeout()}_clearTimerTimeout(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)}_installTimerTimeout(){if(0!==this._timers.length){var e=this._timers[0],t=this._platform.now(),r=Math.max(0,e-t)
this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,r)}}_ensureInstance(){var e=this.currentInstance
return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e}_scheduleAutorun(e){D++
var t=this._platform.next,r=this.options.flush
r?r(e,t):t(),this._autorun=!0}}$.Queue=h,$.buildPlatform=n,$.buildNext=i
e.default=$})),e("dag-map",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t=function(){function e(){this._vertices=new r}return e.prototype.add=function(e,t,r,i){if(!e)throw new Error("argument `key` is required")
var n=this._vertices,s=n.add(e)
if(s.val=t,r)if("string"==typeof r)n.addEdge(s,n.add(r))
else for(var a=0;a<r.length;a++)n.addEdge(s,n.add(r[a]))
if(i)if("string"==typeof i)n.addEdge(n.add(i),s)
else for(a=0;a<i.length;a++)n.addEdge(n.add(i[a]),s)},e.prototype.addEdges=function(e,t,r,i){this.add(e,t,r,i)},e.prototype.each=function(e){this._vertices.walk(e)},e.prototype.topsort=function(e){this.each(e)},e}(),r=(e.default=t,function(){function e(){this.length=0,this.stack=new i,this.path=new i,this.result=new i}return e.prototype.add=function(e){if(!e)throw new Error("missing key")
for(var t,r=0|this.length,i=0;i<r;i++)if((t=this[i]).key===e)return t
return this.length=r+1,this[r]={idx:r,key:e,val:void 0,out:!1,flag:!1,length:0}},e.prototype.addEdge=function(e,t){this.check(e,t.key)
for(var r=0|t.length,i=0;i<r;i++)if(t[i]===e.idx)return
t.length=r+1,t[r]=e.idx,e.out=!0},e.prototype.walk=function(e){this.reset()
for(var t=0;t<this.length;t++){var r=this[t]
r.out||this.visit(r,"")}this.each(this.result,e)},e.prototype.check=function(e,t){if(e.key===t)throw new Error("cycle detected: "+t+" <- "+t)
if(0!==e.length){for(var r=0;r<e.length;r++){if(this[e[r]].key===t)throw new Error("cycle detected: "+t+" <- "+e.key+" <- "+t)}if(this.reset(),this.visit(e,t),this.path.length>0){var i="cycle detected: "+t
throw this.each(this.path,(function(e){i+=" <- "+e})),new Error(i)}}},e.prototype.reset=function(){this.stack.length=0,this.path.length=0,this.result.length=0
for(var e=0,t=this.length;e<t;e++)this[e].flag=!1},e.prototype.visit=function(e,t){var r=this,i=r.stack,n=r.path,s=r.result
for(i.push(e.idx);i.length;){var a=0|i.pop()
if(a>=0){var o=this[a]
if(o.flag)continue
if(o.flag=!0,n.push(a),t===o.key)break
i.push(~a),this.pushIncoming(o)}else n.pop(),s.push(~a)}},e.prototype.pushIncoming=function(e){for(var t=this.stack,r=e.length-1;r>=0;r--){var i=e[r]
this[i].flag||t.push(i)}},e.prototype.each=function(e,t){for(var r=0,i=e.length;r<i;r++){var n=this[e[r]]
t(n.key,n.val)}},e}()),i=function(){function e(){this.length=0}return e.prototype.push=function(e){this[this.length++]=0|e},e.prototype.pop=function(){return 0|this[--this.length]},e}()})),e("ember-babel",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.assertThisInitialized=a,e.classCallCheck=function(e,t){0},e.createClass=function(e,t,r){null!=t&&s(e.prototype,t)
null!=r&&s(e,r)
return e},e.createForOfIteratorHelperLoose=function(e){var t=0
if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return
if("string"==typeof e)return l(e,t)
var r=Object.prototype.toString.call(e).slice(8,-1)
"Object"===r&&e.constructor&&(r=e.constructor.name)
if("Map"===r||"Set"===r)return Array.from(r)
if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)},e.createSuper=function(e){return function(){var t,n=r(e)
if(i){var s=r(this).constructor
t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments)
return o(this,t)}},e.inheritsLoose=function(e,r){0
e.prototype=Object.create(null===r?null:r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),null!==r&&t(e,r)},e.objectDestructuringEmpty=function(e){0},e.possibleConstructorReturn=o,e.taggedTemplateLiteralLoose=function(e,t){t||(t=e.slice(0))
return e.raw=t,e},e.wrapNativeSuper=function(e){if(n.has(e))return n.get(e)
function r(){}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n.set(e,r),t(r,e)}
var t=Object.setPrototypeOf,r=Object.getPrototypeOf,i="object"==typeof Reflect&&"function"==typeof Reflect.construct,n=new Map
function s(e,t){for(var r=0;r<t.length;r++){var i=t[r]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){return e}function o(e,t){return"object"==typeof t&&null!==t||"function"==typeof t?t:e}function l(e,t){(null==t||t>e.length)&&(t=e.length)
for(var r=new Array(t),i=0;i<t;i++)r[i]=e[i]
return r}})),e("ember/index",["exports","require","@ember/-internals/environment","@ember/-internals/utils","@ember/-internals/container","@ember/instrumentation","@ember/-internals/meta","@ember/-internals/metal","@ember/canary-features","@ember/debug","backburner","@ember/controller","@ember/string","@ember/service","@ember/object","@ember/object/-internals","@ember/object/compat","@ember/object/computed","@ember/object/events","@ember/-internals/runtime","@ember/-internals/glimmer","ember/version","@ember/-internals/views","@ember/debug/container-debug-adapter","@ember/debug/data-adapter","@ember/error","@ember/runloop","@ember/-internals/error-handling","@ember/array","@ember/array/mutable","@ember/array/proxy","@ember/application","@ember/application/instance","@ember/application/namespace","@ember/component","@ember/component/helper","@ember/engine","@ember/engine/instance","@ember/enumerable","@ember/enumerable/mutable","@ember/object/core","@ember/object/evented","@ember/object/mixin","@ember/object/observable","@ember/object/observers","@ember/object/proxy","@ember/object/promise-proxy-mixin","@ember/polyfills","@ember/routing/auto-location","@ember/routing/hash-location","@ember/routing/history-location","@ember/routing/none-location","@ember/routing/location","@ember/routing/route","@ember/routing/router","@ember/routing/-internals","@ember/utils","@glimmer/runtime","@glimmer/manager","@ember/destroyable"],(function(t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y,v,w,x,_,S,k,A,C,P,O,E,T,M,I,F,N,R,D,j,L,B,$,z,U,q,H,V,G,W,X,K,Y,J,Q,Z,ee,te,re,ie,ne,se,ae){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var oe=u
function le(){}le.controller=h.inject,le.service=f.service
var ce={isNamespace:!0,toString:()=>"Ember",Container:s.Container,Registry:s.Registry,_setComponentManager:x.setComponentManager,_componentManagerCapabilities:x.componentCapabilities,_modifierManagerCapabilities:x.modifierCapabilities,meta:o.meta,_createCache:l.createCache,_cacheGetValue:l.getValue,_cacheIsConst:l.isConst,_descriptor:l.nativeDescDecorator,_getPath:l._getPath,_setClassicDecorator:l.setClassicDecorator,_tracked:l.tracked,beginPropertyChanges:l.beginPropertyChanges,changeProperties:l.changeProperties,endPropertyChanges:l.endPropertyChanges,hasListeners:l.hasListeners,libraries:l.libraries,_ContainerProxyMixin:w.ContainerProxyMixin,_ProxyMixin:w._ProxyMixin,_RegistryProxyMixin:w.RegistryProxyMixin,ActionHandler:w.ActionHandler,Comparable:w.Comparable,RSVP:w.RSVP,ComponentLookup:S.ComponentLookup,EventDispatcher:S.EventDispatcher,_Cache:n.Cache,GUID_KEY:n.GUID_KEY,canInvoke:n.canInvoke,generateGuid:n.generateGuid,guidFor:n.guidFor,uuid:n.uuid,wrap:n.wrap,getOwner:I.getOwner,onLoad:I.onLoad,runLoadHooks:I.runLoadHooks,setOwner:I.setOwner,Application:I.default,ApplicationInstance:F.default,Namespace:N.default,A:E.A,Array:E.default,NativeArray:E.NativeArray,isArray:E.isArray,makeArray:E.makeArray,MutableArray:T.default,ArrayProxy:M.default,FEATURES:Object.assign({isEnabled:c.isEnabled},c.FEATURES),_Input:R.Input,Component:R.default,Helper:D.default,Controller:h.default,ControllerMixin:h.ControllerMixin,_captureRenderTree:u.captureRenderTree,assert:oe.assert,warn:oe.warn,debug:oe.debug,deprecate:oe.deprecate,deprecateFunc:oe.deprecateFunc,runInDebug:oe.runInDebug,inspect:oe.inspect,Debug:{registerDeprecationHandler:oe.registerDeprecationHandler,registerWarnHandler:oe.registerWarnHandler,isComputed:l.isComputed},ContainerDebugAdapter:k.default,DataAdapter:A.default,_assertDestroyablesDestroyed:ae.assertDestroyablesDestroyed,_associateDestroyableChild:ae.associateDestroyableChild,_enableDestroyableTracking:ae.enableDestroyableTracking,_isDestroying:ae.isDestroying,_isDestroyed:ae.isDestroyed,_registerDestructor:ae.registerDestructor,_unregisterDestructor:ae.unregisterDestructor,destroy:ae.destroy,Engine:j.default,EngineInstance:L.default,Enumerable:B.default,MutableEnumerable:$.default,Error:C.default,instrument:a.instrument,subscribe:a.subscribe,Instrumentation:{instrument:a.instrument,subscribe:a.subscribe,unsubscribe:a.unsubscribe,reset:a.reset},Object:m.default,_action:m.action,computed:m.computed,defineProperty:m.defineProperty,get:m.get,getProperties:m.getProperties,notifyPropertyChange:m.notifyPropertyChange,observer:m.observer,set:m.set,trySet:m.trySet,setProperties:m.setProperties,cacheFor:g.cacheFor,_dependentKeyCompat:b.dependentKeyCompat,ComputedProperty:y.default,expandProperties:y.expandProperties,CoreObject:z.default,Evented:U.default,on:U.on,addListener:v.addListener,removeListener:v.removeListener,sendEvent:v.sendEvent,Mixin:q.default,mixin:q.mixin,Observable:H.default,addObserver:V.addObserver,removeObserver:V.removeObserver,PromiseProxyMixin:W.default,ObjectProxy:G.default,assign:X.assign,RouterDSL:re.DSL,controllerFor:re.controllerFor,generateController:re.generateController,generateControllerFactory:re.generateControllerFactory,AutoLocation:K.default,HashLocation:Y.default,HistoryLocation:J.default,Location:Z.default,NoneLocation:Q.default,Route:ee.default,Router:te.default,run:P.run,Service:f.default,String:{camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,decamelize:p.decamelize,dasherize:p.dasherize,underscore:p.underscore,w:p.w},compare:ie.compare,isBlank:ie.isBlank,isEmpty:ie.isEmpty,isEqual:ie.isEqual,isNone:ie.isNone,isPresent:ie.isPresent,typeOf:ie.typeOf,VERSION:_.default,ViewUtils:{getChildViews:S.getChildViews,getElementView:S.getElementView,getRootViews:S.getRootViews,getViewBounds:S.getViewBounds,getViewBoundingClientRect:S.getViewBoundingClientRect,getViewClientRects:S.getViewClientRects,getViewElement:S.getViewElement,isSimpleClick:S.isSimpleClick,isSerializationFirstNode:x.isSerializationFirstNode},_getComponentTemplate:se.getComponentTemplate,_helperManagerCapabilities:se.helperCapabilities,_setComponentTemplate:se.setComponentTemplate,_setHelperManager:se.setHelperManager,_setModifierManager:se.setModifierManager,_templateOnlyComponent:ne.templateOnlyComponent,_invokeHelper:ne.invokeHelper,_hash:ne.hash,_array:ne.array,_concat:ne.concat,_get:ne.get,_on:ne.on,_fn:ne.fn,_Backburner:d.default,inject:le,platform:{defineProperty:!0,hasPropertyAccessors:!0},__loader:{require:r.default,define:e,registry:void 0!==requirejs?requirejs.entries:r.default.entries}}
Object.defineProperty(ce,"ENV",{get:i.getENV,enumerable:!1}),Object.defineProperty(ce,"lookup",{get:i.getLookup,set:i.setLookup,enumerable:!1}),Object.defineProperty(ce,"onerror",{get:O.getOnerror,set:O.setOnerror,enumerable:!1}),Object.defineProperty(ce,"testing",{get:oe.isTesting,set:oe.setTesting,enumerable:!1}),Object.defineProperty(ce,"STRINGS",{configurable:!1,get:p._getStrings,set:p._setStrings}),Object.defineProperty(ce,"BOOTED",{configurable:!1,enumerable:!1,get:l.isNamespaceSearchDisabled,set:l.setNamespaceSearchDisabled}),Object.defineProperty(ce,"TEMPLATES",{get:x.getTemplates,set:x.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(ce,"String",{enumerable:!0,configurable:!0,get:()=>({camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,dasherize:p.dasherize,decamelize:p.decamelize,underscore:p.underscore,w:p.w,htmlSafe:x.htmlSafe,isHTMLSafe:x.isHTMLSafe})}),Object.defineProperty(ce,"TEMPLATES",{get:x.getTemplates,set:x.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(ce,"testing",{get:oe.isTesting,set:oe.setTesting,enumerable:!1}),(0,I.runLoadHooks)("Ember.Application",I.default)
var ue={template:x.template,Utils:{escapeExpression:x.escapeExpression}},de={template:x.template}
function he(e){Object.defineProperty(ce,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-template-compiler")){var t=(0,r.default)("ember-template-compiler")
de.precompile=ue.precompile=t.precompile,de.compile=ue.compile=t.compile,Object.defineProperty(ce,"HTMLBars",{configurable:!0,writable:!0,enumerable:!0,value:de}),Object.defineProperty(ce,"Handlebars",{configurable:!0,writable:!0,enumerable:!0,value:ue})}return"Handlebars"===e?ue:de}})}function pe(e){Object.defineProperty(ce,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-testing")){var t=(0,r.default)("ember-testing"),{Test:i,Adapter:n,QUnitAdapter:s,setupForTesting:a}=t
return i.Adapter=n,i.QUnitAdapter=s,Object.defineProperty(ce,"Test",{configurable:!0,writable:!0,enumerable:!0,value:i}),Object.defineProperty(ce,"setupForTesting",{configurable:!0,writable:!0,enumerable:!0,value:a}),"Test"===e?i:a}}})}he("HTMLBars"),he("Handlebars"),pe("Test"),pe("setupForTesting"),(0,I.runLoadHooks)("Ember")
t.default=ce})),e("ember/version",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default="4.12.4"})),e("route-recognizer",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t=Object.create
function r(){var e=t(null)
return e.__=void 0,delete e.__,e}var i=function(e,t,r){this.path=e,this.matcher=t,this.delegate=r}
i.prototype.to=function(e,t){var r=this.delegate
if(r&&r.willAddRoute&&(e=r.willAddRoute(this.matcher.target,e)),this.matcher.add(this.path,e),t){if(0===t.length)throw new Error("You must have an argument in the function passed to `to`")
this.matcher.addChild(this.path,e,t,this.delegate)}}
var n=function(e){this.routes=r(),this.children=r(),this.target=e}
function s(e,t,r){return function(n,a){var o=e+n
if(!a)return new i(o,t,r)
a(s(o,t,r))}}function a(e,t,r){for(var i=0,n=0;n<e.length;n++)i+=e[n].path.length
var s={path:t=t.substr(i),handler:r}
e.push(s)}function o(e,t,r,i){for(var n=t.routes,s=Object.keys(n),l=0;l<s.length;l++){var c=s[l],u=e.slice()
a(u,c,n[c])
var d=t.children[c]
d?o(u,d,r,i):r.call(i,u)}}n.prototype.add=function(e,t){this.routes[e]=t},n.prototype.addChild=function(e,t,r,i){var a=new n(t)
this.children[e]=a
var o=s(e,a,i)
i&&i.contextEntered&&i.contextEntered(t,o),r(o)}
function l(e){return e.split("/").map(u).join("/")}var c=/%|\//g
function u(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(c,encodeURIComponent)}var d=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g
function h(e){return encodeURIComponent(e).replace(d,decodeURIComponent)}var p=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,f=Array.isArray,m=Object.prototype.hasOwnProperty
function g(e,t){if("object"!=typeof e||null===e)throw new Error("You must pass an object as the second argument to `generate`.")
if(!m.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.")
var r=e[t],i="string"==typeof r?r:""+r
if(0===i.length)throw new Error("You must provide a param `"+t+"`.")
return i}var b=[]
b[0]=function(e,t){for(var r=t,i=e.value,n=0;n<i.length;n++){var s=i.charCodeAt(n)
r=r.put(s,!1,!1)}return r},b[1]=function(e,t){return t.put(47,!0,!0)},b[2]=function(e,t){return t.put(-1,!1,!0)},b[4]=function(e,t){return t}
var y=[]
y[0]=function(e){return e.value.replace(p,"\\$1")},y[1]=function(){return"([^/]+)"},y[2]=function(){return"(.+)"},y[4]=function(){return""}
var v=[]
v[0]=function(e){return e.value},v[1]=function(e,t){var r=g(t,e.value)
return E.ENCODE_AND_DECODE_PATH_SEGMENTS?h(r):r},v[2]=function(e,t){return g(t,e.value)},v[4]=function(){return""}
var w=Object.freeze({}),x=Object.freeze([])
function _(e,t,r){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1))
for(var i=t.split("/"),n=void 0,s=void 0,a=0;a<i.length;a++){var o,l=i[a],c=0
12&(o=2<<(c=""===l?4:58===l.charCodeAt(0)?1:42===l.charCodeAt(0)?2:0))&&(l=l.slice(1),(n=n||[]).push(l),(s=s||[]).push(!!(4&o))),14&o&&r[c]++,e.push({type:c,value:u(l)})}return{names:n||x,shouldDecodes:s||x}}function S(e,t,r){return e.char===t&&e.negate===r}var k=function(e,t,r,i,n){this.states=e,this.id=t,this.char=r,this.negate=i,this.nextStates=n?t:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0}
function A(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function C(e,t){for(var r=[],i=0,n=e.length;i<n;i++){var s=e[i]
r=r.concat(s.match(t))}return r}k.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},k.prototype.get=function(e,t){var r=this.nextStates
if(null!==r)if(f(r))for(var i=0;i<r.length;i++){var n=this.states[r[i]]
if(S(n,e,t))return n}else{var s=this.states[r]
if(S(s,e,t))return s}},k.prototype.put=function(e,t,r){var i
if(i=this.get(e,t))return i
var n=this.states
return i=new k(n,n.length,e,t,r),n[n.length]=i,null==this.nextStates?this.nextStates=i.id:f(this.nextStates)?this.nextStates.push(i.id):this.nextStates=[this.nextStates,i.id],i},k.prototype.match=function(e){var t=this.nextStates
if(!t)return[]
var r=[]
if(f(t))for(var i=0;i<t.length;i++){var n=this.states[t[i]]
A(n,e)&&r.push(n)}else{var s=this.states[t]
A(s,e)&&r.push(s)}return r}
var P=function(e){this.length=0,this.queryParams=e||{}}
function O(e){var t
e=e.replace(/\+/gm,"%20")
try{t=decodeURIComponent(e)}catch(r){t=""}return t}P.prototype.splice=Array.prototype.splice,P.prototype.slice=Array.prototype.slice,P.prototype.push=Array.prototype.push
var E=function(){this.names=r()
var e=[],t=new k(e,0,-1,!0,!1)
e[0]=t,this.states=e,this.rootState=t}
E.prototype.add=function(e,t){for(var r,i=this.rootState,n="^",s=[0,0,0],a=new Array(e.length),o=[],l=!0,c=0,u=0;u<e.length;u++){for(var d=e[u],h=_(o,d.path,s),p=h.names,f=h.shouldDecodes;c<o.length;c++){var m=o[c]
4!==m.type&&(l=!1,i=i.put(47,!1,!1),n+="/",i=b[m.type](m,i),n+=y[m.type](m))}a[u]={handler:d.handler,names:p,shouldDecodes:f}}l&&(i=i.put(47,!1,!1),n+="/"),i.handlers=a,i.pattern=n+"$",i.types=s,"object"==typeof t&&null!==t&&t.as&&(r=t.as),r&&(this.names[r]={segments:o,handlers:a})},E.prototype.handlersFor=function(e){var t=this.names[e]
if(!t)throw new Error("There is no route named "+e)
for(var r=new Array(t.handlers.length),i=0;i<t.handlers.length;i++){var n=t.handlers[i]
r[i]=n}return r},E.prototype.hasRoute=function(e){return!!this.names[e]},E.prototype.generate=function(e,t){var r=this.names[e],i=""
if(!r)throw new Error("There is no route named "+e)
for(var n=r.segments,s=0;s<n.length;s++){var a=n[s]
4!==a.type&&(i+="/",i+=v[a.type](a,t))}return"/"!==i.charAt(0)&&(i="/"+i),t&&t.queryParams&&(i+=this.generateQueryString(t.queryParams)),i},E.prototype.generateQueryString=function(e){var t=[],r=Object.keys(e)
r.sort()
for(var i=0;i<r.length;i++){var n=r[i],s=e[n]
if(null!=s){var a=encodeURIComponent(n)
if(f(s))for(var o=0;o<s.length;o++){var l=n+"[]="+encodeURIComponent(s[o])
t.push(l)}else a+="="+encodeURIComponent(s),t.push(a)}}return 0===t.length?"":"?"+t.join("&")},E.prototype.parseQueryString=function(e){for(var t=e.split("&"),r={},i=0;i<t.length;i++){var n=t[i].split("="),s=O(n[0]),a=s.length,o=!1,l=void 0
1===n.length?l="true":(a>2&&"[]"===s.slice(a-2)&&(o=!0,r[s=s.slice(0,a-2)]||(r[s]=[])),l=n[1]?O(n[1]):""),o?r[s].push(l):r[s]=l}return r},E.prototype.recognize=function(e){var t,r=[this.rootState],i={},n=!1,s=e.indexOf("#");-1!==s&&(e=e.substr(0,s))
var a=e.indexOf("?")
if(-1!==a){var o=e.substr(a+1,e.length)
e=e.substr(0,a),i=this.parseQueryString(o)}"/"!==e.charAt(0)&&(e="/"+e)
var c=e
E.ENCODE_AND_DECODE_PATH_SEGMENTS?e=l(e):(e=decodeURI(e),c=decodeURI(c))
var u=e.length
u>1&&"/"===e.charAt(u-1)&&(e=e.substr(0,u-1),c=c.substr(0,c.length-1),n=!0)
for(var d=0;d<e.length&&(r=C(r,e.charCodeAt(d))).length;d++);for(var h=[],p=0;p<r.length;p++)r[p].handlers&&h.push(r[p])
r=function(e){return e.sort((function(e,t){var r=e.types||[0,0,0],i=r[0],n=r[1],s=r[2],a=t.types||[0,0,0],o=a[0],l=a[1],c=a[2]
if(s!==c)return s-c
if(s){if(i!==o)return o-i
if(n!==l)return l-n}return n!==l?n-l:i!==o?o-i:0}))}(h)
var f=h[0]
return f&&f.handlers&&(n&&f.pattern&&"(.+)$"===f.pattern.slice(-5)&&(c+="/"),t=function(e,t,r){var i=e.handlers,n=e.regex()
if(!n||!i)throw new Error("state not initialized")
var s=t.match(n),a=1,o=new P(r)
o.length=i.length
for(var l=0;l<i.length;l++){var c=i[l],u=c.names,d=c.shouldDecodes,h=w,p=!1
if(u!==x&&d!==x)for(var f=0;f<u.length;f++){p=!0
var m=u[f],g=s&&s[a++]
h===w&&(h={}),E.ENCODE_AND_DECODE_PATH_SEGMENTS&&d[f]?h[m]=g&&decodeURIComponent(g):h[m]=g}o[l]={handler:c.handler,params:h,isDynamic:p}}return o}(f,c,i)),t},E.VERSION="0.3.4",E.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,E.Normalizer={normalizeSegment:u,normalizePath:l,encodePathSegment:h},E.prototype.map=function(e,t){var r=new n
e(s("",r,this.delegate)),o([],r,(function(e){t?t(this,e):this.add(e)}),this)}
e.default=E})),e("router_js",["exports","rsvp","route-recognizer"],(function(e,t,r){"use strict"
function i(){var e=new Error("TransitionAborted")
return e.name="TransitionAborted",e.code="TRANSITION_ABORTED",e}function n(e){if("object"==typeof(t=e)&&null!==t&&"boolean"==typeof t.isAborted&&e.isAborted)throw i()
var t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TransitionState=e.TransitionError=e.STATE_SYMBOL=e.QUERY_PARAMS_SYMBOL=e.PARAMS_SYMBOL=e.InternalTransition=e.InternalRouteInfo=void 0,e.logAbort=w
var s=Array.prototype.slice,a=Object.prototype.hasOwnProperty
function o(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r])}function l(e){var t,r=e&&e.length
if(r&&r>0){var i=e[r-1]
if(function(e){if(e&&"object"==typeof e){var t=e
return"queryParams"in t&&Object.keys(t.queryParams).every((e=>"string"==typeof e))}return!1}(i))return t=i.queryParams,[s.call(e,0,r-1),t]}return[e,null]}function c(e){for(var t in e){var r=e[t]
if("number"==typeof r)e[t]=""+r
else if(Array.isArray(r))for(var i=0,n=r.length;i<n;i++)r[i]=""+r[i]}}function u(e,...t){if(e.log)if(2===t.length){var[r,i]=t
e.log("Transition #"+r+": "+i)}else{var[n]=t
e.log(n)}}function d(e){return"string"==typeof e||e instanceof String||"number"==typeof e||e instanceof Number}function h(e,t){for(var r=0,i=e.length;r<i&&!1!==t(e[r]);r++);}function p(e,t){var r,i={all:{},changed:{},removed:{}}
o(i.all,t)
var n=!1
for(r in c(e),c(t),e)a.call(e,r)&&(a.call(t,r)||(n=!0,i.removed[r]=e[r]))
for(r in t)if(a.call(t,r)){var s=e[r],l=t[r]
if(f(s)&&f(l))if(s.length!==l.length)i.changed[r]=t[r],n=!0
else for(var u=0,d=s.length;u<d;u++)s[u]!==l[u]&&(i.changed[r]=t[r],n=!0)
else e[r]!==t[r]&&(i.changed[r]=t[r],n=!0)}return n?i:void 0}function f(e){return Array.isArray(e)}function m(e){return"Router: "+e}var g=e.STATE_SYMBOL="__STATE__-2619860001345920-3322w3",b=e.PARAMS_SYMBOL="__PARAMS__-261986232992830203-23323",y=e.QUERY_PARAMS_SYMBOL="__QPS__-2619863929824844-32323"
class v{constructor(e,r,i,n=void 0,s=void 0){if(this.from=null,this.to=void 0,this.isAborted=!1,this.isActive=!0,this.urlMethod="update",this.resolveIndex=0,this.queryParamsOnly=!1,this.isTransition=!0,this.isCausedByAbortingTransition=!1,this.isCausedByInitialTransition=!1,this.isCausedByAbortingReplaceTransition=!1,this._visibleQueryParams={},this.isIntermediate=!1,this[g]=i||e.state,this.intent=r,this.router=e,this.data=r&&r.data||{},this.resolvedModels={},this[y]={},this.promise=void 0,this.error=void 0,this[b]={},this.routeInfos=[],this.targetName=void 0,this.pivotHandler=void 0,this.sequence=-1,n)return this.promise=t.Promise.reject(n),void(this.error=n)
if(this.isCausedByAbortingTransition=!!s,this.isCausedByInitialTransition=!!s&&(s.isCausedByInitialTransition||0===s.sequence),this.isCausedByAbortingReplaceTransition=!!s&&"replace"===s.urlMethod&&(!s.isCausedByAbortingTransition||s.isCausedByAbortingReplaceTransition),i){this[b]=i.params,this[y]=i.queryParams,this.routeInfos=i.routeInfos
var a=i.routeInfos.length
a&&(this.targetName=i.routeInfos[a-1].name)
for(var o=0;o<a;++o){var l=i.routeInfos[o]
if(!l.isResolved)break
this.pivotHandler=l.route}this.sequence=e.currentSequence++,this.promise=i.resolve(this).catch((e=>{throw this.router.transitionDidError(e,this)}),m("Handle Abort"))}else this.promise=t.Promise.resolve(this[g]),this[b]={}}then(e,t,r){return this.promise.then(e,t,r)}catch(e,t){return this.promise.catch(e,t)}finally(e,t){return this.promise.finally(e,t)}abort(){this.rollback()
var e=new v(this.router,void 0,void 0,void 0)
return e.to=this.from,e.from=this.from,e.isAborted=!0,this.router.routeWillChange(e),this.router.routeDidChange(e),this}rollback(){this.isAborted||(u(this.router,this.sequence,this.targetName+": transition was aborted"),void 0!==this.intent&&null!==this.intent&&(this.intent.preTransitionState=this.router.state),this.isAborted=!0,this.isActive=!1,this.router.activeTransition=void 0)}redirect(e){this.rollback(),this.router.routeWillChange(e)}retry(){this.abort()
var e=this.router.transitionByIntent(this.intent,!1)
return null!==this.urlMethod&&e.method(this.urlMethod),e}method(e){return this.urlMethod=e,this}send(e=!1,t,r,i,n){this.trigger(e,t,r,i,n)}trigger(e=!1,t,...r){"string"==typeof e&&(t=e,e=!1),this.router.triggerEvent(this[g].routeInfos.slice(0,this.resolveIndex+1),e,t,r)}followRedirects(){var e=this.router
return this.promise.catch((function(r){return e.activeTransition?e.activeTransition.followRedirects():t.Promise.reject(r)}))}toString(){return"Transition (sequence "+this.sequence+")"}log(e){u(this.router,this.sequence,e)}}function w(e){return u(e.router,e.sequence,"detected abort."),i()}function x(e){return"object"==typeof e&&e instanceof v&&e.isTransition}e.InternalTransition=v
var _=new WeakMap
function S(e,t={},r=!1){return e.map(((i,n)=>{var{name:s,params:a,paramNames:o,context:l,route:c}=i,u=i
if(_.has(u)&&r){var d=_.get(u)
d=function(e,t){var r={get metadata(){return A(e)}}
if(!Object.isExtensible(t)||t.hasOwnProperty("metadata"))return Object.freeze(Object.assign({},t,r))
return Object.assign(t,r)}(c,d)
var h=k(d,l)
return _.set(u,h),h}var p={find(t,r){var i,n=[]
3===t.length&&(n=e.map((e=>_.get(e))))
for(var s=0;e.length>s;s++)if(i=_.get(e[s]),t.call(r,i,s,n))return i},get name(){return s},get paramNames(){return o},get metadata(){return A(i.route)},get parent(){var t=e[n-1]
return void 0===t?null:_.get(t)},get child(){var t=e[n+1]
return void 0===t?null:_.get(t)},get localName(){var e=this.name.split(".")
return e[e.length-1]},get params(){return a},get queryParams(){return t}}
return r&&(p=k(p,l)),_.set(i,p),p}))}function k(e,t){var r={get attributes(){return t}}
return!Object.isExtensible(e)||e.hasOwnProperty("attributes")?Object.freeze(Object.assign({},e,r)):Object.assign(e,r)}function A(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class C{constructor(e,t,r,i){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,i&&this._processRoute(i)}getModel(e){return t.Promise.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return t.Promise.resolve(this.routePromise).then((t=>(n(e),t))).then((()=>this.runBeforeModelHook(e))).then((()=>n(e))).then((()=>this.getModel(e))).then((t=>(n(e),t))).then((t=>this.runAfterModelHook(e,t))).then((t=>this.becomeResolved(e,t)))}becomeResolved(e,t){var r,i=this.serialize(t)
e&&(this.stashResolvedModel(e,t),e[b]=e[b]||{},e[b][this.name]=i)
var n=t===this.context
!("context"in this)&&n||(r=t)
var s=_.get(this),a=new P(this.router,this.name,this.paramNames,i,this.route,r)
return void 0!==s&&_.set(a,s),a}shouldSupersede(e){if(!e)return!0
var t=e.context===this.context
return e.name!==this.name||"context"in this&&!t||this.hasOwnProperty("params")&&!function(e,t){if(e===t)return!0
if(!e||!t)return!1
for(var r in e)if(e.hasOwnProperty(r)&&e[r]!==t[r])return!1
return!0}(this.params,e.params)}get route(){return null!==this._route?this._route:this.fetchRoute()}set route(e){this._route=e}get routePromise(){return this._routePromise||this.fetchRoute(),this._routePromise}set routePromise(e){this._routePromise=e}log(e,t){e.log&&e.log(this.name+": "+t)}updateRoute(e){return e._internalName=this.name,this.route=e}runBeforeModelHook(e){var r
return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(r=this.route.beforeModel(e)),x(r)&&(r=null),t.Promise.resolve(r)}runAfterModelHook(e,r){var i,n,s=this.name
return this.stashResolvedModel(e,r),void 0!==this.route&&void 0!==this.route.afterModel&&(i=this.route.afterModel(r,e)),i=x(n=i)?null:n,t.Promise.resolve(i).then((()=>e.resolvedModels[s]))}stashResolvedModel(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t}fetchRoute(){var e=this.router.getRoute(this.name)
return this._processRoute(e)}_processRoute(e){return this.routePromise=t.Promise.resolve(e),null!==(r=e)&&"object"==typeof r&&"function"==typeof r.then?(this.routePromise=this.routePromise.then((e=>this.updateRoute(e))),this.route=void 0):e?this.updateRoute(e):void 0
var r}}e.InternalRouteInfo=C
class P extends C{constructor(e,t,r,i,n,s){super(e,t,r,n),this.params=i,this.isResolved=!0,this.context=s}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),t.Promise.resolve(this)}}class O extends C{constructor(e,t,r,i,n){super(e,t,r,n),this.params={},i&&(this.params=i)}getModel(e){var r=this.params
e&&e[y]&&(o(r={},this.params),r.queryParams=e[y])
var i,n=this.route
return n.deserialize?i=n.deserialize(r,e):n.model&&(i=n.model(r,e)),i&&x(i)&&(i=void 0),t.Promise.resolve(i)}}class E extends C{constructor(e,t,r,i){super(e,t,r),this.context=i,this.serializer=this.router.getSerializer(t)}getModel(e){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),super.getModel(e)}serialize(e){var{paramNames:t,context:r}=this
e||(e=r)
var i={}
if(d(e))return i[t[0]]=e,i
if(this.serializer)return this.serializer.call(null,e,t)
if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t)
if(1===t.length){var n=t[0]
return/_id$/.test(n)?i[n]=e.id:i[n]=e,i}}}class T{constructor(e,t={}){this.router=e,this.data=t}}function M(e,t,r){var i=e.routeInfos,n=t.resolveIndex>=i.length?i.length-1:t.resolveIndex,s=t.isAborted
throw new R(r,e.routeInfos[n].route,s,e)}function I(e,t){if(t.resolveIndex!==e.routeInfos.length){var r=e.routeInfos[t.resolveIndex],i=F.bind(null,e,t)
return r.resolve(t).then(i,null,e.promiseLabel("Proceed"))}}function F(e,t,r){var i=e.routeInfos[t.resolveIndex].isResolved
if(e.routeInfos[t.resolveIndex++]=r,!i){var{route:s}=r
void 0!==s&&s.redirect&&s.redirect(r.context,t)}return n(t),I(e,t)}class N{constructor(){this.routeInfos=[],this.queryParams={},this.params={}}promiseLabel(e){var t=""
return h(this.routeInfos,(function(e){return""!==t&&(t+="."),t+=e.name,!0})),m("'"+t+"': "+e)}resolve(e){var r=this.params
h(this.routeInfos,(e=>(r[e.name]=e.params||{},!0))),e.resolveIndex=0
var i=I.bind(null,this,e),n=M.bind(null,this,e)
return t.Promise.resolve(null,this.promiseLabel("Start transition")).then(i,null,this.promiseLabel("Resolve route")).catch(n,this.promiseLabel("Handle error")).then((()=>this))}}e.TransitionState=N
class R{constructor(e,t,r,i){this.error=e,this.route=t,this.wasAborted=r,this.state=i}}e.TransitionError=R
class D extends T{constructor(e,t,r,i=[],n={},s){super(e,s),this.preTransitionState=void 0,this.name=t,this.pivotHandler=r,this.contexts=i,this.queryParams=n}applyToState(e,t){var r=this.router.recognizer.handlersFor(this.name),i=r[r.length-1].handler
return this.applyToHandlers(e,r,i,t,!1)}applyToHandlers(e,t,r,i,n){var s,a,l=new N,c=this.contexts.slice(0),u=t.length
if(this.pivotHandler)for(s=0,a=t.length;s<a;++s)if(t[s].handler===this.pivotHandler._internalName){u=s
break}for(s=t.length-1;s>=0;--s){var d=t[s],h=d.handler,p=e.routeInfos[s],f=null
if(f=d.names.length>0?s>=u?this.createParamHandlerInfo(h,d.names,c,p):this.getHandlerInfoForDynamicSegment(h,d.names,c,p,r,s):this.createParamHandlerInfo(h,d.names,c,p),n){f=f.becomeResolved(null,f.context)
var m=p&&p.context
d.names.length>0&&void 0!==p.context&&f.context===m&&(f.params=p&&p.params),f.context=m}var g=p;(s>=u||f.shouldSupersede(p))&&(u=Math.min(s,u),g=f),i&&!n&&(g=g.becomeResolved(null,g.context)),l.routeInfos.unshift(g)}if(c.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+r)
return i||this.invalidateChildren(l.routeInfos,u),o(l.queryParams,this.queryParams||{}),i&&e.queryParams&&o(l.queryParams,e.queryParams),l}invalidateChildren(e,t){for(var r=t,i=e.length;r<i;++r){if(e[r].isResolved){var{name:n,params:s,route:a,paramNames:o}=e[r]
e[r]=new O(this.router,n,o,s,a)}}}getHandlerInfoForDynamicSegment(e,t,r,i,n,s){var a
if(r.length>0){if(d(a=r[r.length-1]))return this.createParamHandlerInfo(e,t,r,i)
r.pop()}else{if(i&&i.name===e)return i
if(!this.preTransitionState)return i
var o=this.preTransitionState.routeInfos[s]
a=null==o?void 0:o.context}return new E(this.router,e,t,a)}createParamHandlerInfo(e,t,r,i){for(var n={},s=t.length,a=[];s--;){var o=i&&e===i.name&&i.params||{},l=r[r.length-1],c=t[s]
d(l)?n[c]=""+r.pop():o.hasOwnProperty(c)?n[c]=o[c]:a.push(c)}if(a.length>0)throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${e}. Missing params: ${a}`)
return new O(this.router,e,t,n)}}var j=function(){function e(t){var r=Error.call(this,t)
this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=r.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}()
class L extends T{constructor(e,t,r){super(e,r),this.url=t,this.preTransitionState=void 0}applyToState(e){var t,r,i=new N,n=this.router.recognizer.recognize(this.url)
if(!n)throw new j(this.url)
var s=!1,a=this.url
function l(e){if(e&&e.inaccessibleByURL)throw new j(a)
return e}for(t=0,r=n.length;t<r;++t){var c=n[t],u=c.handler,d=[]
this.router.recognizer.hasRoute(u)&&(d=this.router.recognizer.handlersFor(u)[t].names)
var h=new O(this.router,u,d,c.params),p=h.route
p?l(p):h.routePromise=h.routePromise.then(l)
var f=e.routeInfos[t]
s||h.shouldSupersede(f)?(s=!0,i.routeInfos[t]=h):i.routeInfos[t]=f}return o(i.queryParams,n.queryParams),i}}function B(e,t){if(e.length!==t.length)return!1
for(var r=0,i=e.length;r<i;++r)if(e[r]!==t[r])return!1
return!0}function $(e,t){if(e===t)return!0
if(!e||!t)return!1
var r=Object.keys(e),i=Object.keys(t)
if(r.length!==i.length)return!1
for(var n=0,s=r.length;n<s;++n){var a=r[n]
if(e[a]!==t[a])return!1}return!0}e.default=class{constructor(e){this._lastQueryParams={},this.state=void 0,this.oldState=void 0,this.activeTransition=void 0,this.currentRouteInfos=void 0,this._changedQueryParams=void 0,this.currentSequence=0,this.log=e,this.recognizer=new r.default,this.reset()}map(e){this.recognizer.map(e,(function(e,t){for(var r=t.length-1,i=!0;r>=0&&i;--r){var n=t[r],s=n.handler
e.add(t,{as:s}),i="/"===n.path||""===n.path||".index"===s.slice(-6)}}))}hasRoute(e){return this.recognizer.hasRoute(e)}queryParamsTransition(e,t,r,i){if(this.fireQueryParamDidChange(i,e),!t&&this.activeTransition)return this.activeTransition
var n=new v(this,void 0,void 0)
return n.queryParamsOnly=!0,r.queryParams=this.finalizeQueryParamChange(i.routeInfos,i.queryParams,n),n[y]=i.queryParams,this.toReadOnlyInfos(n,i),this.routeWillChange(n),n.promise=n.promise.then((e=>(n.isAborted||(this._updateURL(n,r),this.didTransition(this.currentRouteInfos),this.toInfos(n,i.routeInfos,!0),this.routeDidChange(n)),e)),null,m("Transition complete")),n}transitionByIntent(e,t){try{return this.getTransitionByIntent(e,t)}catch(r){return new v(this,e,void 0,r,void 0)}}recognize(e){var t=new L(this,e),r=this.generateNewState(t)
if(null===r)return r
var i=S(r.routeInfos,r.queryParams)
return i[i.length-1]}recognizeAndLoad(e){var r=new L(this,e),i=this.generateNewState(r)
if(null===i)return t.Promise.reject(`URL ${e} was not recognized`)
var n=new v(this,r,i,void 0)
return n.then((()=>{var e=S(i.routeInfos,n[y],!0)
return e[e.length-1]}))}generateNewState(e){try{return e.applyToState(this.state,!1)}catch(t){return null}}getTransitionByIntent(e,t){var r,i=!!this.activeTransition,n=i?this.activeTransition[g]:this.state,s=e.applyToState(n,t),a=p(n.queryParams,s.queryParams)
if(B(s.routeInfos,n.routeInfos)){if(a){var o=this.queryParamsTransition(a,i,n,s)
return o.queryParamsOnly=!0,o}return this.activeTransition||new v(this,void 0,void 0)}if(t){var l=new v(this,void 0,s)
return l.isIntermediate=!0,this.toReadOnlyInfos(l,s),this.setupContexts(s,l),this.routeWillChange(l),this.activeTransition}return r=new v(this,e,s,void 0,this.activeTransition),function(e,t){if(e.length!==t.length)return!1
for(var r=0,i=e.length;r<i;++r){if(e[r].name!==t[r].name)return!1
if(!$(e[r].params,t[r].params))return!1}return!0}(s.routeInfos,n.routeInfos)&&(r.queryParamsOnly=!0),this.toReadOnlyInfos(r,s),this.activeTransition&&this.activeTransition.redirect(r),this.activeTransition=r,r.promise=r.promise.then((e=>this.finalizeTransition(r,e)),null,m("Settle transition promise when transition is finalized")),i||this.notifyExistingHandlers(s,r),this.fireQueryParamDidChange(s,a),r}doTransition(e,t=[],r=!1){var i,n=t[t.length-1],s={}
if(n&&Object.prototype.hasOwnProperty.call(n,"queryParams")&&(s=t.pop().queryParams),void 0===e){u(this,"Updating query params")
var{routeInfos:a}=this.state
i=new D(this,a[a.length-1].name,void 0,[],s)}else"/"===e.charAt(0)?(u(this,"Attempting URL transition to "+e),i=new L(this,e)):(u(this,"Attempting transition to "+e),i=new D(this,e,void 0,t,s))
return this.transitionByIntent(i,r)}finalizeTransition(e,r){try{u(e.router,e.sequence,"Resolved all models on destination route; finalizing transition.")
var i=r.routeInfos
return this.setupContexts(r,e),e.isAborted?(this.state.routeInfos=this.currentRouteInfos,t.Promise.reject(w(e))):(this._updateURL(e,r),e.isActive=!1,this.activeTransition=void 0,this.triggerEvent(this.currentRouteInfos,!0,"didTransition",[]),this.didTransition(this.currentRouteInfos),this.toInfos(e,r.routeInfos,!0),this.routeDidChange(e),u(this,e.sequence,"TRANSITION COMPLETE."),i[i.length-1].route)}catch(a){if("object"!=typeof(s=a)||null===s||"TRANSITION_ABORTED"!==s.code){var n=e[g].routeInfos
e.trigger(!0,"error",a,e,n[n.length-1].route),e.abort()}throw a}var s}setupContexts(e,t){var r,i,n,s=this.partitionRoutes(this.state,e)
for(r=0,i=s.exited.length;r<i;r++)delete(n=s.exited[r].route).context,void 0!==n&&(void 0!==n._internalReset&&n._internalReset(!0,t),void 0!==n.exit&&n.exit(t))
var a=this.oldState=this.state
this.state=e
var o=this.currentRouteInfos=s.unchanged.slice()
try{for(r=0,i=s.reset.length;r<i;r++)void 0!==(n=s.reset[r].route)&&void 0!==n._internalReset&&n._internalReset(!1,t)
for(r=0,i=s.updatedContext.length;r<i;r++)this.routeEnteredOrUpdated(o,s.updatedContext[r],!1,t)
for(r=0,i=s.entered.length;r<i;r++)this.routeEnteredOrUpdated(o,s.entered[r],!0,t)}catch(l){throw this.state=a,this.currentRouteInfos=a.routeInfos,l}this.state.queryParams=this.finalizeQueryParamChange(o,e.queryParams,t)}fireQueryParamDidChange(e,t){t&&(this._changedQueryParams=t.all,this.triggerEvent(e.routeInfos,!0,"queryParamsDidChange",[t.changed,t.all,t.removed]),this._changedQueryParams=void 0)}routeEnteredOrUpdated(e,t,r,i){var s=t.route,a=t.context
function o(s){return r&&void 0!==s.enter&&s.enter(i),n(i),s.context=a,void 0!==s.contextDidChange&&s.contextDidChange(),void 0!==s.setup&&s.setup(a,i),n(i),e.push(t),s}return void 0===s?t.routePromise=t.routePromise.then(o):o(s),!0}partitionRoutes(e,t){var r,i,n,s=e.routeInfos,a=t.routeInfos,o={updatedContext:[],exited:[],entered:[],unchanged:[],reset:[]},l=!1
for(i=0,n=a.length;i<n;i++){var c=s[i],u=a[i]
c&&c.route===u.route||(r=!0),r?(o.entered.push(u),c&&o.exited.unshift(c)):l||c.context!==u.context?(l=!0,o.updatedContext.push(u)):o.unchanged.push(c)}for(i=a.length,n=s.length;i<n;i++)o.exited.unshift(s[i])
return o.reset=o.updatedContext.slice(),o.reset.reverse(),o}_updateURL(e,t){var r=e.urlMethod
if(r){for(var{routeInfos:i}=t,{name:n}=i[i.length-1],s={},a=i.length-1;a>=0;--a){var l=i[a]
o(s,l.params),l.route.inaccessibleByURL&&(r=null)}if(r){s.queryParams=e._visibleQueryParams||t.queryParams
var c=this.recognizer.generate(n,s),u=e.isCausedByInitialTransition,d="replace"===r&&!e.isCausedByAbortingTransition,h=e.queryParamsOnly&&"replace"===r,p="replace"===r&&e.isCausedByAbortingReplaceTransition
u||d||h||p?this.replaceURL(c):this.updateURL(c)}}}finalizeQueryParamChange(e,t,r){for(var i in t)t.hasOwnProperty(i)&&null===t[i]&&delete t[i]
var n=[]
this.triggerEvent(e,!0,"finalizeQueryParamChange",[t,n,r]),r&&(r._visibleQueryParams={})
for(var s={},a=0,o=n.length;a<o;++a){var l=n[a]
s[l.key]=l.value,r&&!1!==l.visible&&(r._visibleQueryParams[l.key]=l.value)}return s}toReadOnlyInfos(e,t){var r=this.state.routeInfos
this.fromInfos(e,r),this.toInfos(e,t.routeInfos),this._lastQueryParams=t.queryParams}fromInfos(e,t){if(void 0!==e&&t.length>0){var r=S(t,Object.assign({},this._lastQueryParams),!0)
e.from=r[r.length-1]||null}}toInfos(e,t,r=!1){if(void 0!==e&&t.length>0){var i=S(t,Object.assign({},e[y]),r)
e.to=i[i.length-1]||null}}notifyExistingHandlers(e,t){var r,i,n,s,a=this.state.routeInfos
for(i=a.length,r=0;r<i&&(n=a[r],(s=e.routeInfos[r])&&n.name===s.name);r++)s.isResolved
this.triggerEvent(a,!0,"willTransition",[t]),this.routeWillChange(t),this.willTransition(a,e.routeInfos,t)}reset(){this.state&&h(this.state.routeInfos.slice().reverse(),(function(e){var t=e.route
return void 0!==t&&void 0!==t.exit&&t.exit(),!0})),this.oldState=void 0,this.state=new N,this.currentRouteInfos=void 0}handleURL(e){return"/"!==e.charAt(0)&&(e="/"+e),this.doTransition(e).method(null)}transitionTo(e,...t){return"object"==typeof e?(t.push(e),this.doTransition(void 0,t,!1)):this.doTransition(e,t)}intermediateTransitionTo(e,...t){return this.doTransition(e,t,!0)}refresh(e){var t=this.activeTransition,r=t?t[g]:this.state,i=r.routeInfos
void 0===e&&(e=i[0].route),u(this,"Starting a refresh transition")
var n=i[i.length-1].name,s=new D(this,n,e,[],this._changedQueryParams||r.queryParams),a=this.transitionByIntent(s,!1)
return t&&"replace"===t.urlMethod&&a.method(t.urlMethod),a}replaceWith(e){return this.doTransition(e).method("replace")}generate(e,...t){for(var r=l(t),i=r[0],n=r[1],s=new D(this,e,void 0,i).applyToState(this.state,!1),a={},c=0,u=s.routeInfos.length;c<u;++c){o(a,s.routeInfos[c].serialize())}return a.queryParams=n,this.recognizer.generate(e,a)}applyIntent(e,t){var r=new D(this,e,void 0,t),i=this.activeTransition&&this.activeTransition[g]||this.state
return r.applyToState(i,!1)}isActiveIntent(e,t,r,i){var n,s=i||this.state,a=s.routeInfos
if(!a.length)return!1
var l=a[a.length-1].name,c=this.recognizer.handlersFor(l),u=0
for(n=c.length;u<n&&a[u].name!==e;++u);if(u===c.length)return!1
var d=new N
d.routeInfos=a.slice(0,u+1),c=c.slice(0,u+1)
var h=B(new D(this,l,void 0,t).applyToHandlers(d,c,l,!0,!0).routeInfos,d.routeInfos)
if(!r||!h)return h
var f={}
o(f,r)
var m=s.queryParams
for(var g in m)m.hasOwnProperty(g)&&f.hasOwnProperty(g)&&(f[g]=m[g])
return h&&!p(f,r)}isActive(e,...t){var[r,i]=l(t)
return this.isActiveIntent(e,r,i)}trigger(e,...t){this.triggerEvent(this.currentRouteInfos,!1,e,t)}}})),e("rsvp",["exports"],(function(e){"use strict"
function r(e){var t=e._promiseCallbacks
return t||(t=e._promiseCallbacks={}),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Promise=e.EventTarget=void 0,e.all=T,e.allSettled=I,e.asap=K,e.cast=e.async=void 0,e.configure=s,e.default=void 0,e.defer=B,e.denodeify=O,e.filter=G,e.hash=R,e.hashSettled=j,e.map=z,e.off=fe,e.on=pe,e.race=F,e.reject=q,e.resolve=U,e.rethrow=L
var i=e.EventTarget={mixin(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e._promiseCallbacks=void 0,e},on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function")
var i=r(this),n=i[e]
n||(n=i[e]=[]),-1===n.indexOf(t)&&n.push(t)},off(e,t){var i=r(this)
if(t){var n=i[e],s=n.indexOf(t);-1!==s&&n.splice(s,1)}else i[e]=[]},trigger(e,t,i){var n=r(this)[e]
if(n)for(var s=0;s<n.length;s++)(0,n[s])(t,i)}},n={instrument:!1}
function s(e,t){if(2!==arguments.length)return n[e]
n[e]=t}i.mixin(n)
var a=[]
function o(e,t,r){1===a.push({name:e,payload:{key:t._guidKey,id:t._id,eventName:e,detail:t._result,childId:r&&r._id,label:t._label,timeStamp:Date.now(),error:n["instrument-with-stack"]?new Error(t._label):null}})&&setTimeout((()=>{for(var e=0;e<a.length;e++){var t=a[e],r=t.payload
r.guid=r.key+r.id,r.childGuid=r.key+r.childId,r.error&&(r.stack=r.error.stack),n.trigger(t.name,t.payload)}a.length=0}),50)}function l(e,t){if(e&&"object"==typeof e&&e.constructor===this)return e
var r=new this(c,t)
return f(r,e),r}function c(){}var u=void 0,d=1,h=2
function p(e,t,r){t.constructor===e.constructor&&r===x&&e.constructor.resolve===l?function(e,t){t._state===d?g(e,t._result):t._state===h?(t._onError=null,b(e,t._result)):y(t,void 0,(r=>{t===r?g(e,r):f(e,r)}),(t=>b(e,t)))}(e,t):"function"==typeof r?function(e,t,r){n.async((e=>{var i=!1,n=function(e,t,r,i){try{e.call(t,r,i)}catch(n){return n}}(r,t,(r=>{i||(i=!0,t===r?g(e,r):f(e,r))}),(t=>{i||(i=!0,b(e,t))}),e._label)
!i&&n&&(i=!0,b(e,n))}),e)}(e,t,r):g(e,t)}function f(e,t){if(e===t)g(e,t)
else if(n=typeof(i=t),null===i||"object"!==n&&"function"!==n)g(e,t)
else{var r
try{r=t.then}catch(s){return void b(e,s)}p(e,t,r)}var i,n}function m(e){e._onError&&e._onError(e._result),v(e)}function g(e,t){e._state===u&&(e._result=t,e._state=d,0===e._subscribers.length?n.instrument&&o("fulfilled",e):n.async(v,e))}function b(e,t){e._state===u&&(e._state=h,e._result=t,n.async(m,e))}function y(e,t,r,i){var s=e._subscribers,a=s.length
e._onError=null,s[a]=t,s[a+d]=r,s[a+h]=i,0===a&&e._state&&n.async(v,e)}function v(e){var t=e._subscribers,r=e._state
if(n.instrument&&o(r===d?"fulfilled":"rejected",e),0!==t.length){for(var i,s,a=e._result,l=0;l<t.length;l+=3)i=t[l],s=t[l+r],i?w(r,i,s,a):s(a)
e._subscribers.length=0}}function w(e,t,r,i){var n,s,a="function"==typeof r,o=!0
if(a)try{n=r(i)}catch(l){o=!1,s=l}else n=i
t._state!==u||(n===t?b(t,new TypeError("A promises callback cannot return that same promise.")):!1===o?b(t,s):a?f(t,n):e===d?g(t,n):e===h&&b(t,n))}function x(e,t,r){var i=this,s=i._state
if(s===d&&!e||s===h&&!t)return n.instrument&&o("chained",i,i),i
i._onError=null
var a=new i.constructor(c,r),l=i._result
if(n.instrument&&o("chained",i,a),s===u)y(i,a,e,t)
else{var p=s===d?e:t
n.async((()=>w(s,a,p,l)))}return a}class _{constructor(e,t,r,i){this._instanceConstructor=e,this.promise=new e(c,i),this._abortOnReject=r,this._isUsingOwnPromise=e===C,this._isUsingOwnResolve=e.resolve===l,this._init(...arguments)}_init(e,t){var r=t.length||0
this.length=r,this._remaining=r,this._result=new Array(r),this._enumerate(t)}_enumerate(e){for(var t=this.length,r=this.promise,i=0;r._state===u&&i<t;i++)this._eachEntry(e[i],i,!0)
this._checkFullfillment()}_checkFullfillment(){if(0===this._remaining){var e=this._result
g(this.promise,e),this._result=null}}_settleMaybeThenable(e,t,r){var i=this._instanceConstructor
if(this._isUsingOwnResolve){var n,s,a=!0
try{n=e.then}catch(l){a=!1,s=l}if(n===x&&e._state!==u)e._onError=null,this._settledAt(e._state,t,e._result,r)
else if("function"!=typeof n)this._settledAt(d,t,e,r)
else if(this._isUsingOwnPromise){var o=new i(c)
!1===a?b(o,s):(p(o,e,n),this._willSettleAt(o,t,r))}else this._willSettleAt(new i((t=>t(e))),t,r)}else this._willSettleAt(i.resolve(e),t,r)}_eachEntry(e,t,r){null!==e&&"object"==typeof e?this._settleMaybeThenable(e,t,r):this._setResultAt(d,t,e,r)}_settledAt(e,t,r,i){var n=this.promise
n._state===u&&(this._abortOnReject&&e===h?b(n,r):(this._setResultAt(e,t,r,i),this._checkFullfillment()))}_setResultAt(e,t,r,i){this._remaining--,this._result[t]=r}_willSettleAt(e,t,r){y(e,void 0,(e=>this._settledAt(d,t,e,r)),(e=>this._settledAt(h,t,e,r)))}}function S(e,t,r){this._remaining--,this._result[t]=e===d?{state:"fulfilled",value:r}:{state:"rejected",reason:r}}var k="rsvp_"+Date.now()+"-",A=0
class C{constructor(e,t){this._id=A++,this._label=t,this._state=void 0,this._result=void 0,this._subscribers=[],n.instrument&&o("created",this),c!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof C?function(e,t){var r=!1
try{t((t=>{r||(r=!0,f(e,t))}),(t=>{r||(r=!0,b(e,t))}))}catch(i){b(e,i)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}_onError(e){n.after((()=>{this._onError&&n.trigger("error",e,this._label)}))}catch(e,t){return this.then(void 0,e,t)}finally(e,t){var r=this,i=r.constructor
return"function"==typeof e?r.then((t=>i.resolve(e()).then((()=>t))),(t=>i.resolve(e()).then((()=>{throw t})))):r.then(e,e)}}function P(e,t){return{then:(r,i)=>e.call(t,r,i)}}function O(e,t){var r=function(){for(var r=arguments.length,i=new Array(r+1),n=!1,s=0;s<r;++s){var a=arguments[s]
if(!n){if(null!==a&&"object"==typeof a)if(a.constructor===C)n=!0
else try{n=a.then}catch(u){var o=new C(c)
return b(o,u),o}else n=!1
n&&!0!==n&&(a=P(n,a))}i[s]=a}var l=new C(c)
return i[r]=function(e,r){e?b(l,e):void 0===t?f(l,r):!0===t?f(l,function(e){for(var t=e.length,r=new Array(t-1),i=1;i<t;i++)r[i-1]=e[i]
return r}(arguments)):Array.isArray(t)?f(l,function(e,t){for(var r={},i=e.length,n=new Array(i),s=0;s<i;s++)n[s]=e[s]
for(var a=0;a<t.length;a++)r[t[a]]=n[a+1]
return r}(arguments,t)):f(l,r)},n?function(e,t,r,i){return C.all(t).then((t=>E(e,t,r,i)))}(l,i,e,this):E(l,i,e,this)}
return r.__proto__=e,r}function E(e,t,r,i){try{r.apply(i,t)}catch(n){b(e,n)}return e}function T(e,t){return C.all(e,t)}e.Promise=C,C.cast=l,C.all=function(e,t){return Array.isArray(e)?new _(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},C.race=function(e,t){var r=new this(c,t)
if(!Array.isArray(e))return b(r,new TypeError("Promise.race must be called with an array")),r
for(var i=0;r._state===u&&i<e.length;i++)y(this.resolve(e[i]),void 0,(e=>f(r,e)),(e=>b(r,e)))
return r},C.resolve=l,C.reject=function(e,t){var r=new this(c,t)
return b(r,e),r},C.prototype._guidKey=k,C.prototype.then=x
class M extends _{constructor(e,t,r){super(e,t,!1,r)}}function I(e,t){return Array.isArray(e)?new M(C,e,t).promise:C.reject(new TypeError("Promise.allSettled must be called with an array"),t)}function F(e,t){return C.race(e,t)}M.prototype._setResultAt=S
class N extends _{constructor(e,t,r=!0,i){super(e,t,r,i)}_init(e,t){this._result={},this._enumerate(t)}_enumerate(e){var t,r,i=Object.keys(e),n=i.length,s=this.promise
this._remaining=n
for(var a=0;s._state===u&&a<n;a++)r=e[t=i[a]],this._eachEntry(r,t,!0)
this._checkFullfillment()}}function R(e,t){return C.resolve(e,t).then((function(e){if(null===e||"object"!=typeof e)throw new TypeError("Promise.hash must be called with an object")
return new N(C,e,t).promise}))}class D extends N{constructor(e,t,r){super(e,t,!1,r)}}function j(e,t){return C.resolve(e,t).then((function(e){if(null===e||"object"!=typeof e)throw new TypeError("hashSettled must be called with an object")
return new D(C,e,!1,t).promise}))}function L(e){throw setTimeout((()=>{throw e})),e}function B(e){var t={resolve:void 0,reject:void 0}
return t.promise=new C(((e,r)=>{t.resolve=e,t.reject=r}),e),t}D.prototype._setResultAt=S
class $ extends _{constructor(e,t,r,i){super(e,t,!0,i,r)}_init(e,t,r,i,n){var s=t.length||0
this.length=s,this._remaining=s,this._result=new Array(s),this._mapFn=n,this._enumerate(t)}_setResultAt(e,t,r,i){if(i)try{this._eachEntry(this._mapFn(r,t),t,!1)}catch(n){this._settledAt(h,t,n,!1)}else this._remaining--,this._result[t]=r}}function z(e,t,r){return"function"!=typeof t?C.reject(new TypeError("map expects a function as a second argument"),r):C.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("map must be called with an array")
return new $(C,e,t,r).promise}))}function U(e,t){return C.resolve(e,t)}function q(e,t){return C.reject(e,t)}var H={}
class V extends ${_checkFullfillment(){if(0===this._remaining&&null!==this._result){var e=this._result.filter((e=>e!==H))
g(this.promise,e),this._result=null}}_setResultAt(e,t,r,i){if(i){this._result[t]=r
var n,s=!0
try{n=this._mapFn(r,t)}catch(a){s=!1,this._settledAt(h,t,a,!1)}s&&this._eachEntry(n,t,!1)}else this._remaining--,r||(this._result[t]=H)}}function G(e,t,r){return"function"!=typeof t?C.reject(new TypeError("filter expects function as a second argument"),r):C.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("filter must be called with an array")
return new V(C,e,t,r).promise}))}var W,X=0
function K(e,t){ce[X]=e,ce[X+1]=t,2===(X+=2)&&re()}var Y="undefined"!=typeof window?window:void 0,J=Y||{},Q=J.MutationObserver||J.WebKitMutationObserver,Z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel
function te(){return()=>setTimeout(ue,1)}var re,ie,ne,se,ae,oe,le,ce=new Array(1e3)
function ue(){for(var e=0;e<X;e+=2){(0,ce[e])(ce[e+1]),ce[e]=void 0,ce[e+1]=void 0}X=0}Z?(oe=process.nextTick,le=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(le)&&"0"===le[1]&&"10"===le[2]&&(oe=setImmediate),re=()=>oe(ue)):Q?(ne=0,se=new Q(ue),ae=document.createTextNode(""),se.observe(ae,{characterData:!0}),re=()=>ae.data=ne=++ne%2):ee?((ie=new MessageChannel).port1.onmessage=ue,re=()=>ie.port2.postMessage(0)):re=void 0===Y&&"function"==typeof t?function(){try{var e=Function("return this")().require("vertx")
return void 0!==(W=e.runOnLoop||e.runOnContext)?function(){W(ue)}:te()}catch(t){return te()}}():te(),n.async=K,n.after=e=>setTimeout(e,0)
var de=e.cast=U,he=(e,t)=>n.async(e,t)
function pe(){n.on(...arguments)}function fe(){n.off(...arguments)}if(e.async=he,"undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){var me=window.__PROMISE_INSTRUMENTATION__
for(var ge in s("instrument",!0),me)me.hasOwnProperty(ge)&&pe(ge,me[ge])}var be={asap:K,cast:de,Promise:C,EventTarget:i,all:T,allSettled:I,race:F,hash:R,hashSettled:j,rethrow:L,defer:B,denodeify:O,configure:s,on:pe,off:fe,resolve:U,reject:q,map:z,async:he,filter:G}
e.default=be})),t("@ember/-internals/bootstrap")}(),define("jquery",[],(function(){"use strict"
return{default:self.jQuery,__esModule:!0}})),define("ic-ajax",["ember","exports"],(function(e,t){"use strict"

;/*!
     * ic-ajax
     *
     * - (c) 2013 Instructure, Inc
     * - please see license at https://github.com/instructure/ic-ajax/blob/master/LICENSE
     * - inspired by discourse ajax: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/mixins/ajax.js#L19
     */var r=e.default||e
function i(){return n.apply(null,arguments).then((function(e){return e.response}),null,"ic-ajax: unwrap raw ajax response")}function n(){return e=o.apply(null,arguments),new r.RSVP.Promise((function(t,i){var n=a(e.url)
if(n)return"success"===n.textStatus||null==n.textStatus?r.run.later(null,t,n):r.run.later(null,i,n)
e.success=function(e){return function(t,i,n){r.run(null,e,{response:t,textStatus:i,jqXHR:n})}}(t),e.error=function(e){return function(t,i,n){r.run(null,e,{jqXHR:t,textStatus:i,errorThrown:n})}}(i),r.$.ajax(e)}),"ic-ajax: "+(e.type||"GET")+" to "+e.url)
var e}t.request=i,t.default=i,t.raw=n
var s={}
function a(e){return s&&s[e]}function o(){var e={}
if(1===arguments.length?"string"==typeof arguments[0]?e.url=arguments[0]:e=arguments[0]:2===arguments.length&&((e=arguments[1]).url=arguments[0]),e.success||e.error)throw new r.Error("ajax should use promises, received 'success' or 'error' callback")
return e}t.__fixtures__=s,t.defineFixture=function(e,t){t.response&&(t.response=JSON.parse(JSON.stringify(t.response))),s[e]=t},t.lookupFixture=a})),"undefined"==typeof FastBoot){var preferNative=!1;(function(e){define("fetch",["exports","ember","rsvp"],(function(t,r,i){"use strict"
var n="default"in r?r.default:r,s=("default"in i?i.default:i).Promise,a=["FormData","FileReader","Blob","URLSearchParams","Symbol","ArrayBuffer"],o=a
preferNative&&(o=a.concat(["fetch","Headers","Request","Response","AbortController"])),o.forEach((function(r){e[r]&&Object.defineProperty(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}))
var l=t,c=t;(function(){class e{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}removeEventListener(e,t){if(!(e in this.listeners))return
const r=this.listeners[e]
for(let i=0,n=r.length;i<n;i++)if(r[i].callback===t)return void r.splice(i,1)}dispatchEvent(e){if(!(e.type in this.listeners))return
const t=this.listeners[e.type].slice()
for(let i=0,n=t.length;i<n;i++){const n=t[i]
try{n.callback.call(this,e)}catch(r){s.resolve().then((()=>{throw r}))}n.options&&n.options.once&&this.removeEventListener(e.type,n.callback)}return!e.defaultPrevented}}class t extends e{constructor(){super(),this.listeners||e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.dispatchEvent(e)}}class r{constructor(){Object.defineProperty(this,"signal",{value:new t,writable:!0,configurable:!0})}abort(e){let t
try{t=new Event("abort")}catch(i){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let r=e
if(void 0===r)if("undefined"==typeof document)r=new Error("This operation was aborted"),r.name="AbortError"
else try{r=new DOMException("signal is aborted without reason")}catch(n){r=new Error("This operation was aborted"),r.name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(r.prototype[Symbol.toStringTag]="AbortController",t.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=r,e.AbortSignal=t)}(void 0!==c?c:global)})();(function(e){var t=void 0!==l&&l||void 0!==c&&c||"undefined"!=typeof global&&global||{},r="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,o="ArrayBuffer"in t
if(o)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1}
function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"')
return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift()
return{done:void 0===t,value:t}}}
return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length)
this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(!e._noBody)return e.bodyUsed?s.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function b(e){return new s((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=b(t)
return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0)
var t=new Uint8Array(e.byteLength)
return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&n&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=g(this)
if(e)return e
if(this._bodyBlob)return s.resolve(this._bodyBlob)
if(this._bodyArrayBuffer)return s.resolve(new Blob([this._bodyArrayBuffer]))
if(this._bodyFormData)throw new Error("could not read FormData body as blob")
return s.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=g(this)
return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?s.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):s.resolve(this._bodyArrayBuffer))}if(n)return this.blob().then(y)
throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i,n,a=g(this)
if(a)return a
if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=b(t),i=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n=i?i[1]:"utf-8",t.readAsText(e,n),r
if(this._bodyArrayBuffer)return s.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i])
return r.join("")}(this._bodyArrayBuffer))
if(this._bodyFormData)throw new Error("could not read FormData body as text")
return s.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=h(e),t=p(t)
var r=this.map[e]
this.map[e]=r?r+", "+t:t},m.prototype.delete=function(e){delete this.map[h(e)]},m.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},m.prototype.set=function(e,t){this.map[h(e)]=p(t)},m.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},m.prototype.keys=function(){var e=[]
return this.forEach((function(t,r){e.push(r)})),f(e)},m.prototype.values=function(){var e=[]
return this.forEach((function(t){e.push(t)})),f(e)},m.prototype.entries=function(){var e=[]
return this.forEach((function(t,r){e.push([r,t])})),f(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries)
var x=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"]
function _(e,r){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
var i,n,s=(r=r||{}).body
if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read")
this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e)
if(this.credentials=r.credentials||this.credentials||"same-origin",!r.headers&&this.headers||(this.headers=new m(r.headers)),this.method=(i=r.method||this.method||"GET",n=i.toUpperCase(),x.indexOf(n)>-1?n:i),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests")
if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var a=/([?&])_=[^&]*/
if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime())
else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function S(e){var t=new FormData
return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ")
t.append(decodeURIComponent(i),decodeURIComponent(n))}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].")
this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""})
return e.ok=!1,e.status=0,e.type="error",e}
var A=[301,302,303,307,308]
k.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code")
return new k(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException
try{new e.DOMException}catch(P){e.DOMException=function(e,t){this.message=e,this.name=t
var r=Error(e)
this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(r,i){return new s((function(s,a){var l=new _(r,i)
if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"))
var c=new XMLHttpRequest
function u(){c.abort()}if(c.onload=function(){var e,t,r={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),i=r.shift().trim()
if(i){var n=r.join(":").trim()
try{t.append(i,n)}catch(s){console.warn("Response "+s.message)}}})),t)}
0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL")
var i="response"in c?c.response:c.responseText
setTimeout((function(){s(new k(i,r))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(r){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n?c.responseType="blob":o&&(c.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof m||t.Headers&&i.headers instanceof t.Headers)){var d=[]
Object.getOwnPropertyNames(i.headers).forEach((function(e){d.push(h(e)),c.setRequestHeader(e,p(i.headers[e]))})),l.headers.forEach((function(e,t){-1===d.indexOf(t)&&c.setRequestHeader(t,e)}))}else l.headers.forEach((function(e,t){c.setRequestHeader(t,e)}))
l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}C.polyfill=!0,t.fetch||(t.fetch=C,t.Headers=m,t.Request=_,t.Response=k),e.Headers=m,e.Request=_,e.Response=k,e.fetch=C})({})
if(!l.fetch)throw new Error("fetch is not defined - maybe your browser targets are not covering everything you need?")
var u=0
function d(e){return u--,e}n.Test?(n.Test.registerWaiter((function(){return 0===u})),t.default=function(){return u++,t.fetch.apply(e,arguments).then((function(e){return e.clone().blob().then(d,d),e}),(function(e){throw d(e),e}))}):t.default=t.fetch,a.forEach((function(e){delete t[e]}))}))})("undefined"!=typeof window&&window||"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global)}(function(e){var t="object"==typeof exports&&exports,r="object"==typeof module&&module&&module.exports==t&&module,i="object"==typeof global&&global
i.global!==i&&i.window!==i||(e=i)
var n=function(e){this.message=e};(n.prototype=new Error).name="InvalidCharacterError"
var s=function(e){throw new n(e)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.")
for(var t,r,i,n,o=e.length%3,l="",c=-1,u=e.length-o;++c<u;)t=e.charCodeAt(c)<<16,r=e.charCodeAt(++c)<<8,i=e.charCodeAt(++c),l+=a.charAt((n=t+r+i)>>18&63)+a.charAt(n>>12&63)+a.charAt(n>>6&63)+a.charAt(63&n)
return 2==o?(t=e.charCodeAt(c)<<8,r=e.charCodeAt(++c),l+=a.charAt((n=t+r)>>10)+a.charAt(n>>4&63)+a.charAt(n<<2&63)+"="):1==o&&(n=e.charCodeAt(c),l+=a.charAt(n>>2)+a.charAt(n<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(o,"")).length
t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.")
for(var r,i,n=0,l="",c=-1;++c<t;)i=a.indexOf(e.charAt(c)),r=n%4?64*r+i:i,n++%4&&(l+=String.fromCharCode(255&r>>(-2*n&6)))
return l},version:"0.1.0"}
if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define((function(){return l}))
else if(t&&!t.nodeType)if(r)r.exports=l
else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c])
else e.base64=l})(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=t()}(this,(function(){"use strict"
var e=6e4,t=36e5,r="millisecond",i="second",n="minute",s="hour",a="day",o="week",l="month",c="quarter",u="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100
return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var i=String(e)
return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},b={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),n=r%60
return(t<=0?"+":"-")+g(i,2,"0")+":"+g(n,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t)
var i=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(i,l),s=r-n<0,a=t.clone().add(i+(s?-1:1),l)
return+(-(i+(r-n)/(s?n-a:a-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:o,d:a,D:d,h:s,m:n,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={}
v[y]=m
var w="$isDayjsObject",x=function(e){return e instanceof A||!(!e||!e[w])},_=function e(t,r,i){var n
if(!t)return y
if("string"==typeof t){var s=t.toLowerCase()
v[s]&&(n=s),r&&(v[s]=r,n=s)
var a=t.split("-")
if(!n&&a.length>1)return e(a[0])}else{var o=t.name
v[o]=t,n=o}return!i&&n&&(y=n),n||!i&&y},S=function(e,t){if(x(e))return e.clone()
var r="object"==typeof t?t:{}
return r.date=e,r.args=arguments,new A(r)},k=b
k.l=_,k.i=x,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})}
var A=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype
return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc
if(null===t)return new Date(NaN)
if(k.u(t))return new Date
if(t instanceof Date)return new Date(t)
if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p)
if(i){var n=i[2]-1||0,s=(i[7]||"0").substring(0,3)
return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d
this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var r=S(e)
return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,c=!!k.u(t)||t,h=k.p(e),p=function(e,t){var i=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r)
return c?i:i.endOf(a)},f=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,b=this.$D,y="set"+(this.$u?"UTC":"")
switch(h){case u:return c?p(1,0):p(31,11)
case l:return c?p(1,g):p(0,g+1)
case o:var v=this.$locale().weekStart||0,w=(m<v?m+7:m)-v
return p(c?b-w:b+(6-w),g)
case a:case d:return f(y+"Hours",0)
case s:return f(y+"Minutes",1)
case n:return f(y+"Seconds",2)
case i:return f(y+"Milliseconds",3)
default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,c=k.p(e),h="set"+(this.$u?"UTC":""),p=(o={},o[a]=h+"Date",o[d]=h+"Date",o[l]=h+"Month",o[u]=h+"FullYear",o[s]=h+"Hours",o[n]=h+"Minutes",o[i]=h+"Seconds",o[r]=h+"Milliseconds",o)[c],f=c===a?this.$D+(t-this.$W):t
if(c===l||c===u){var m=this.clone().set(d,1)
m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f)
return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,c){var d,h=this
r=Number(r)
var p=k.p(c),f=function(e){var t=S(h)
return k.w(t.date(t.date()+Math.round(e*r)),h)}
if(p===l)return this.set(l,this.$M+r)
if(p===u)return this.set(u,this.$y+r)
if(p===a)return f(1)
if(p===o)return f(7)
var m=(d={},d[n]=e,d[s]=t,d[i]=1e3,d)[p]||1,g=this.$d.getTime()+r*m
return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale()
if(!this.isValid())return r.invalidDate||h
var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),s=this.$H,a=this.$m,o=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,d=function(e,r,n,s){return e&&(e[r]||e(t,i))||n[r].slice(0,s)},p=function(e){return k.s(s%12||12,e,"0")},m=u||function(e,t,r){var i=e<12?"AM":"PM"
return r?i.toLowerCase():i}
return i.replace(f,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2)
case"YYYY":return k.s(t.$y,4,"0")
case"M":return o+1
case"MM":return k.s(o+1,2,"0")
case"MMM":return d(r.monthsShort,o,c,3)
case"MMMM":return d(c,o)
case"D":return t.$D
case"DD":return k.s(t.$D,2,"0")
case"d":return String(t.$W)
case"dd":return d(r.weekdaysMin,t.$W,l,2)
case"ddd":return d(r.weekdaysShort,t.$W,l,3)
case"dddd":return l[t.$W]
case"H":return String(s)
case"HH":return k.s(s,2,"0")
case"h":return p(1)
case"hh":return p(2)
case"a":return m(s,a,!0)
case"A":return m(s,a,!1)
case"m":return String(a)
case"mm":return k.s(a,2,"0")
case"s":return String(t.$s)
case"ss":return k.s(t.$s,2,"0")
case"SSS":return k.s(t.$ms,3,"0")
case"Z":return n}return null}(e)||n.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,h){var p,f=this,m=k.p(d),g=S(r),b=(g.utcOffset()-this.utcOffset())*e,y=this-g,v=function(){return k.m(f,g)}
switch(m){case u:p=v()/12
break
case l:p=v()
break
case c:p=v()/3
break
case o:p=(y-b)/6048e5
break
case a:p=(y-b)/864e5
break
case s:p=y/t
break
case n:p=y/e
break
case i:p=y/1e3
break
default:p=y}return h?p:k.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return v[this.$L]},g.locale=function(e,t){if(!e)return this.$L
var r=this.clone(),i=_(e,t,!0)
return i&&(r.$L=i),r},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),C=A.prototype
return S.prototype=C,[["$ms",r],["$s",i],["$m",n],["$H",s],["$W",a],["$M",l],["$y",u],["$D",d]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,A,S),e.$i=!0),S},S.locale=_,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=v[y],S.Ls=v,S.p={},S})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_arraySupport=t()}(this,(function(){"use strict"
return function(e,t,r){var i=t.prototype,n=function(e){var t=e.date,i=e.utc
return Array.isArray(t)?i?t.length?new Date(Date.UTC.apply(null,t)):new Date:1===t.length?r(String(t[0])).toDate():new(Function.prototype.bind.apply(Date,[null].concat(t))):t},s=i.parse
i.parse=function(e){e.date=n.bind(this)(e),s.bind(this)(e)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_badMutable=t()}(this,(function(){"use strict"
return function(e,t){var r=t.prototype
r.$g=function(e,t,r){return this.$utils().u(e)?this[t]:this.$set(r,e)},r.set=function(e,t){return this.$set(e,t)}
var i=r.startOf
r.startOf=function(e,t){return this.$d=i.bind(this)(e,t).toDate(),this.init(),this}
var n=r.add
r.add=function(e,t){return this.$d=n.bind(this)(e,t).toDate(),this.init(),this}
var s=r.locale
r.locale=function(e,t){return e?(this.$L=s.bind(this)(e,t).$L,this):this.$L}
var a=r.daysInMonth
r.daysInMonth=function(){return a.bind(this.clone())()}
var o=r.isSame
r.isSame=function(e,t){return o.bind(this.clone())(e,t)}
var l=r.isBefore
r.isBefore=function(e,t){return l.bind(this.clone())(e,t)}
var c=r.isAfter
r.isAfter=function(e,t){return c.bind(this.clone())(e,t)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isoWeek=t()}(this,(function(){"use strict"
var e="day"
return function(t,r,i){var n=function(t){return t.add(4-t.isoWeekday(),e)},s=r.prototype
s.isoWeekYear=function(){return n(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e)
var r,s,a,o=n(this),l=(r=this.isoWeekYear(),a=4-(s=(this.$u?i.utc:i)().year(r).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,e))
return o.diff(l,"week")+1},s.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)}
var a=s.startOf
s.startOf=function(e,t){var r=this.$utils(),i=!!r.u(t)||t
return"isoweek"===r.p(e)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localeData=t()}(this,(function(){"use strict"
return function(e,t,r){var i=t.prototype,n=function(e){return e&&(e.indexOf?e:e.s)},s=function(e,t,r,i,s){var a=e.name?e:e.$locale(),o=n(a[t]),l=n(a[r]),c=o||l.map((function(e){return e.slice(0,i)}))
if(!s)return c
var u=a.weekStart
return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return r.Ls[r.locale()]},o=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this
return{months:function(t){return t?t.format("MMMM"):s(e,"months")},monthsShort:function(t){return t?t.format("MMM"):s(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):s(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):s(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):s(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return o(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}}
i.localeData=function(){return l.bind(this)()},r.localeData=function(){var e=a()
return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return o(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return s(a(),"months")},r.monthsShort=function(){return s(a(),"monthsShort","months",3)},r.weekdays=function(e){return s(a(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return s(a(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return s(a(),"weekdaysMin","weekdays",2,e)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){"use strict"
var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"}
return function(t,r,i){var n=r.prototype,s=n.format
i.en.formats=e,n.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ")
var r=this.$locale().formats,i=function(t,r){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,n){var s=n&&n.toUpperCase()
return i||r[n]||e[n]||r[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))}(t,void 0===r?{}:r)
return s.call(this,i)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=t()}(this,(function(){"use strict"
var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g
return function(i,n,s){var a=n.prototype
s.utc=function(e){return new n({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=s(this.toDate(),{locale:this.$L,utc:!0})
return t?r.add(this.utcOffset(),e):r},a.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})}
var o=a.parse
a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)}
var l=a.init
a.init=function(){if(this.$u){var e=this.$d
this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)}
var c=a.utcOffset
a.utcOffset=function(i,n){var s=this.$utils().u
if(s(i))return this.$u?0:s(this.$offset)?c.call(this):this.$offset
if("string"==typeof i&&(i=function(e){void 0===e&&(e="")
var i=e.match(t)
if(!i)return null
var n=(""+i[0]).match(r)||["-",0,0],s=n[0],a=60*+n[1]+ +n[2]
return 0===a?0:"+"===s?a:-a}(i),null===i))return this
var a=Math.abs(i)<=16?60*i:i,o=this
if(n)return o.$offset=a,o.$u=0===i,o
if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+l,e)).$offset=a,o.$x.$localOffset=l}else o=this.utc()
return o}
var u=a.format
a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"")
return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset())
return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()}
var d=a.toDate
a.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)}
var h=a.diff
a.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r)
var i=this.local(),n=s(e).local()
return h.call(i,n,t,r)}}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_timezone=t()}(this,(function(){"use strict"
var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={}
return function(r,i,n){var s,a=function(e,r,i){void 0===i&&(i={})
var n=new Date(e),s=function(e,r){void 0===r&&(r={})
var i=r.timeZoneName||"short",n=e+"|"+i,s=t[n]
return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[n]=s),s}(r,i)
return s.formatToParts(n)},o=function(t,r){for(var i=a(t,r),s=[],o=0;o<i.length;o+=1){var l=i[o],c=l.type,u=l.value,d=e[c]
d>=0&&(s[d]=parseInt(u,10))}var h=s[3],p=24===h?0:h,f=s[0]+"-"+s[1]+"-"+s[2]+" "+p+":"+s[4]+":"+s[5]+":000",m=+t
return(n.utc(f).valueOf()-(m-=m%1e3))/6e4},l=i.prototype
l.tz=function(e,t){void 0===e&&(e=s)
var r,i=this.utcOffset(),a=this.toDate(),o=a.toLocaleString("en-US",{timeZone:e}),l=Math.round((a-new Date(o))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-l
if(Number(c)){if(r=n(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=r.utcOffset()
r=r.add(i-u,"minute")}}else r=this.utcOffset(0,t)
return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||n.tz.guess(),r=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}))
return r&&r.value}
var c=l.startOf
l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t)
var r=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L})
return c.call(r,e,t).tz(this.$x.$timezone,!0)},n.tz=function(e,t,r){var i=r&&t,a=r||t||s,l=o(+n(),a)
if("string"!=typeof e)return n(e).tz(a)
var c=function(e,t,r){var i=e-60*t*1e3,n=o(i,r)
if(t===n)return[i,t]
var s=o(i-=60*(n-t)*1e3,r)
return n===s?[i,n]:[e-60*Math.min(n,s)*1e3,Math.max(n,s)]}(n.utc(e,i).valueOf(),l,a),u=c[0],d=c[1],h=n(u).utcOffset(d)
return h.$x.$timezone=a,h},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(e){s=e}}})),
/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2023 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */
function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=e.pdfjsLib=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],(()=>e.pdfjsLib=t())):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=e.pdfjsLib=t():e["pdfjs-dist/build/pdf"]=e.pdfjsLib=t()}(globalThis,(()=>(()=>{"use strict"
var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||o(t)},t.bytesToString=u,t.createValidAbsoluteUrl=function(e,t=null,r=null){if(!e)return null
try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g)
t?.length>=2&&(e=`http://${e}`)}if(r.tryConvertEncoding)try{e=f(e)}catch{}}const i=t?new URL(e,t):new URL(e)
if(function(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0
default:return!1}}(i))return i}catch{}return null},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto?.randomUUID)return crypto.randomUUID()
const e=new Uint8Array(32)
if("undefined"!=typeof crypto&&"function"==typeof crypto?.getRandomValues)crypto.getRandomValues(e)
else for(let t=0;t<32;t++)e[t]=Math.floor(255*Math.random())
return u(e)},t.getVerbosityLevel=function(){return s},t.info=function(e){s>=n.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1
for(let r=0,i=e.length;r<i;r++)if(e[r]!==t[r])return!1
return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){m||(m=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,g=new Map([["ﬅ","ſt"]]))
return e.replaceAll(m,((e,t,r)=>t?t.normalize("NFKC"):g.get(r)))},t.objectFromMap=function(e){const t=Object.create(null)
for(const[r,i]of e)t[r]=i
return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(s=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){if(e[0]>="ï"){let t
if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const r=new TextDecoder(t,{fatal:!0}),i=d(e)
return r.decode(i)}catch(r){a(`stringToPDFString: "${r}".`)}}const t=[]
for(let i=0,n=e.length;i<n;i++){const r=p[e.charCodeAt(i)]
t.push(r?String.fromCharCode(r):e.charAt(i))}return t.join("")},t.stringToUTF8String=f,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a
const r=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type)
t.isNodeJS=r
t.IDENTITY_MATRIX=[1,0,0,1,0,0]
t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0]
t.MAX_IMAGE_SIZE_TO_CACHE=1e7
t.LINE_FACTOR=1.35
t.LINE_DESCENT_FACTOR=.35
const i=.35/1.35
t.BASELINE_FACTOR=i
t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256}
t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3}
t.AnnotationEditorPrefix="pdfjs_internal_editor_"
t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15}
t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23}
t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048}
t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4}
t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3}
t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26}
t.AnnotationReplyType={GROUP:"Group",REPLY:"R"}
t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512}
t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864}
t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5}
t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"}
t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"}
t.PageActionEventType={O:"PageOpen",C:"PageClose"}
const n={ERRORS:0,WARNINGS:1,INFOS:5}
t.VerbosityLevel=n
t.CMapCompressionType={NONE:0,BINARY:1}
t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91}
t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}
let s=n.WARNINGS
function a(e){s>=n.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function l(e,t,r,i=!1){return Object.defineProperty(e,t,{value:r,enumerable:!i,configurable:!0,writable:!1}),r}const c=function(){function e(t,r){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}()
t.BaseException=c
t.PasswordException=class extends c{constructor(e,t){super(e,"PasswordException"),this.code=t}}
t.UnknownErrorException=class extends c{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}
t.InvalidPDFException=class extends c{constructor(e){super(e,"InvalidPDFException")}}
t.MissingPDFException=class extends c{constructor(e){super(e,"MissingPDFException")}}
t.UnexpectedResponseException=class extends c{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}
t.FormatError=class extends c{constructor(e){super(e,"FormatError")}}
function u(e){"object"==typeof e&&void 0!==e?.length||o("Invalid argument for bytesToString")
const t=e.length,r=8192
if(t<r)return String.fromCharCode.apply(null,e)
const i=[]
for(let n=0;n<t;n+=r){const s=Math.min(n+r,t),a=e.subarray(n,s)
i.push(String.fromCharCode.apply(null,a))}return i.join("")}function d(e){"string"!=typeof e&&o("Invalid argument for stringToBytes")
const t=e.length,r=new Uint8Array(t)
for(let i=0;i<t;++i)r[i]=255&e.charCodeAt(i)
return r}t.AbortException=class extends c{constructor(e){super(e,"AbortException")}}
t.FeatureTest=class{static get isLittleEndian(){return l(this,"isLittleEndian",function(){const e=new Uint8Array(4)
return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return l(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return l(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?l(this,"platform",{isWin:!1,isMac:!1}):l(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return l(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}
const h=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")))
t.Util=class{static makeHexColor(e,t,r){return`#${h[e]}${h[t]}${h[r]}`}static scaleMinMax(e,t){let r
e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const r=t[0]*t[3]-t[1]*t[2]
return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),n=this.applyTransform([e[0],e[3]],t),s=this.applyTransform([e[2],e[1]],t)
return[Math.min(r[0],i[0],n[0],s[0]),Math.min(r[1],i[1],n[1],s[1]),Math.max(r[0],i[0],n[0],s[0]),Math.max(r[1],i[1],n[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2]
return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(r+s)/2,o=Math.sqrt((r+s)**2-4*(r*s-n*i))/2,l=a+o||1,c=a-o||1
return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0)
return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]))
if(r>i)return null
const n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]))
return n>s?null:[r,n,i,s]}static bezierBoundingBox(e,t,r,i,n,s,a,o){const l=[],c=[[],[]]
let u,d,h,p,f,m,g,b
for(let x=0;x<2;++x)if(0===x?(d=6*e-12*r+6*n,u=-3*e+9*r-9*n+3*a,h=3*r-3*e):(d=6*t-12*i+6*s,u=-3*t+9*i-9*s+3*o,h=3*i-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue
p=-h/d,0<p&&p<1&&l.push(p)}else g=d*d-4*h*u,b=Math.sqrt(g),g<0||(f=(-d+b)/(2*u),0<f&&f<1&&l.push(f),m=(-d-b)/(2*u),0<m&&m<1&&l.push(m))
let y,v=l.length
const w=v
for(;v--;)p=l[v],y=1-p,c[0][v]=y*y*y*e+3*y*y*p*r+3*y*p*p*n+p*p*p*a,c[1][v]=y*y*y*t+3*y*y*p*i+3*y*p*p*s+p*p*p*o
return c[0][w]=e,c[1][w]=t,c[0][w+1]=a,c[1][w+1]=o,c[0].length=c[1].length=w+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}
const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]
function f(e){return decodeURIComponent(escape(e))}t.PromiseCapability=class{#e=!1
constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>{this.#e=!0,e(t)},this.reject=e=>{this.#e=!0,t(e)}}))}get settled(){return this.#e}}
let m=null,g=null
t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0
var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25)
const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory
exports.DefaultCanvasFactory=DefaultCanvasFactory
const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory
exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory
const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory
exports.DefaultFilterFactory=DefaultFilterFactory
const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory
function getDocument(e){if("string"==typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!=typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.")
if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url")
const t=new PDFDocumentLoadingTask,{docId:r}=t,i=e.url?getUrlProp(e.url):null,n=e.data?getDataProp(e.data):null,s=e.httpHeaders||null,a=!0===e.withCredentials,o=e.password??null,l=e.range instanceof PDFDataRangeTransport?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE
let u=e.worker instanceof PDFWorker?e.worker:null
const d=e.verbosity,h="string"!=typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,p="string"==typeof e.cMapUrl?e.cMapUrl:null,f=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,g="string"==typeof e.standardFontDataUrl?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||DefaultStandardFontDataFactory,y=!0!==e.stopAtErrors,v=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,w=!1!==e.isEvalSupported,x="boolean"==typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,_=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,S="boolean"==typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,k=!0===e.fontExtraProperties,A=!0===e.enableXfa,C=e.ownerDocument||globalThis.document,P=!0===e.disableRange,O=!0===e.disableStream,E=!0===e.disableAutoFetch,T=!0===e.pdfBug,M=l?l.length:e.length??NaN,I="boolean"==typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!S,F="boolean"==typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&p&&g&&(0,_display_utils.isValidFetchUrl)(p,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(g,document.baseURI),N=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:C}),R=e.filterFactory||new DefaultFilterFactory({docId:r,ownerDocument:C});(0,_util.setVerbosityLevel)(d)
const D={canvasFactory:N,filterFactory:R}
if(F||(D.cMapReaderFactory=new m({baseUrl:p,isCompressed:f}),D.standardFontDataFactory=new b({baseUrl:g})),!u){const e={verbosity:d,port:_worker_options.GlobalWorkerOptions.workerPort}
u=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=u}const j={docId:r,apiVersion:"3.11.174",data:n,password:o,disableAutoFetch:E,rangeChunkSize:c,length:M,docBaseUrl:h,enableXfa:A,evaluatorOptions:{maxImageSize:v,disableFontFace:S,ignoreErrors:y,isEvalSupported:w,isOffscreenCanvasSupported:x,canvasMaxAreaInBytes:_,fontExtraProperties:k,useSystemFonts:I,cMapUrl:F?p:null,standardFontDataUrl:F?g:null}},L={ignoreErrors:y,isEvalSupported:w,disableFontFace:S,fontExtraProperties:k,enableXfa:A,ownerDocument:C,disableAutoFetch:E,pdfBug:T,styleElement:null}
return u.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted")
const e=_fetchDocument(u,j),o=new Promise((function(e){let t
if(l)t=new _transport_stream.PDFDataTransportStream({length:M,initialData:l.initialData,progressiveDone:l.progressiveDone,contentDispositionFilename:l.contentDispositionFilename,disableRange:P,disableStream:O},l)
else if(!n){t=(e=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(e):(0,_display_utils.isValidFetchUrl)(e.url)?new _displayFetch_stream.PDFFetchStream(e):new _displayNetwork.PDFNetworkStream(e))({url:i,length:M,httpHeaders:s,withCredentials:a,rangeChunkSize:c,disableRange:P,disableStream:O})}e(t)}))
return Promise.all([e,o]).then((function([e,i]){if(t.destroyed)throw new Error("Loading aborted")
const n=new _message_handler.MessageHandler(r,e,u.port),s=new WorkerTransport(n,t,i,L,D)
t._transport=s,n.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed")
const r=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null)
if(e.destroyed)throw new Error("Worker was destroyed")
return r}function getUrlProp(e){if(e instanceof URL)return e.href
try{return new URL(e,window.location).href}catch{if(_util.isNodeJS&&"string"==typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!=typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.")
if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e
if("string"==typeof e)return(0,_util.stringToBytes)(e)
if("object"==typeof e&&!isNaN(e?.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e)
throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory
class PDFDocumentLoadingTask{static#t=0
constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0
try{this._worker?.port&&(this._worker._pendingDestroy=!0),await(this._transport?.destroy())}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask
class PDFDataRangeTransport{constructor(e,t,r=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport
class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e
const t=[]
for(const r in e)t.push(...e[r])
return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy
class PDFPageProxy{#r=null
#i=!1
constructor(e,t,r,i=!1){this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:n=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:n})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e)
return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:r="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:n=null,background:s=null,optionalContentConfigPromise:a=null,annotationCanvasMap:o=null,pageColors:l=null,printAnnotationStorage:c=null}){this._stats?.time("Overall")
const u=this._transport.getRenderingIntent(r,i,c)
this.#i=!1,this.#n(),a||(a=this._transport.getOptionalContentConfig())
let d=this._intentStates.get(u.cacheKey)
d||(d=Object.create(null),this._intentStates.set(u.cacheKey,d)),d.streamReaderCancelTimeout&&(clearTimeout(d.streamReaderCancelTimeout),d.streamReaderCancelTimeout=null)
const h=!!(u.renderingIntent&_util.RenderingIntentFlag.PRINT)
d.displayReadyCapability||(d.displayReadyCapability=new _util.PromiseCapability,d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(u))
const p=e=>{d.renderTasks.delete(f),(this._maybeCleanupAfterRender||h)&&(this.#i=!0),this.#s(!h),e?(f.capability.reject(e),this._abortOperatorList({intentState:d,reason:e instanceof Error?e:new Error(e)})):f.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},f=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:t,transform:n,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:o,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!h,pdfBug:this._pdfBug,pageColors:l});(d.renderTasks||=new Set).add(f)
const m=f.task
return Promise.all([d.displayReadyCapability.promise,a]).then((([e,t])=>{this.destroyed?p():(this._stats?.time("Rendering"),f.initializeGraphics({transparency:e,optionalContentConfig:t}),f.operatorListChanged())})).catch(p),m}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:r=null}={}){const i=this._transport.getRenderingIntent(e,t,r,!0)
let n,s=this._intentStates.get(i.cacheKey)
return s||(s=Object.create(null),this._intentStates.set(i.cacheKey,s)),s.opListReadCapability||(n=Object.create(null),n.operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(n))},s.opListReadCapability=new _util.PromiseCapability,(s.renderTasks||=new Set).add(n),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(i)),s.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)))
const t=this.streamTextContent(e)
return new Promise((function(e,r){const i=t.getReader(),n={items:[],styles:Object.create(null)};(function t(){i.read().then((function({value:r,done:i}){i?e(n):(Object.assign(n.styles,r.styles),n.items.push(...r.items),t())}),r)})()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0
const e=[]
for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const r of t.renderTasks)e.push(r.completed),r.cancel()
return this.objs.clear(),this.#i=!1,this.#n(),Promise.all(e)}cleanup(e=!1){this.#i=!0
const t=this.#s(!1)
return e&&t&&(this._stats&&=new _display_utils.StatTimer),t}#s(e=!1){if(this.#n(),!this.#i||this.destroyed)return!1
if(e)return this.#r=setTimeout((()=>{this.#r=null,this.#s(!1)}),DELAYED_CLEANUP_TIMEOUT),!1
for(const{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1
return this._intentStates.clear(),this.objs.clear(),this.#i=!1,!0}#n(){this.#r&&(clearTimeout(this.#r),this.#r=null)}_startRenderPage(e,t){const r=this._intentStates.get(t)
r&&(this._stats?.timeEnd("Page Request"),r.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let r=0,i=e.length;r<i;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r])
t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots
for(const r of t.renderTasks)r.operatorListChanged()
e.lastChunk&&this.#s(!0)}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:r}){const{map:i,transfers:n}=r,s=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:i},n).getReader(),a=this._intentStates.get(t)
a.streamReader=s
const o=()=>{s.read().then((({value:e,done:t})=>{t?a.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,a),o())}),(e=>{if(a.streamReader=null,!this._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0
for(const e of a.renderTasks)e.operatorListChanged()
this.#s(!0)}if(a.displayReadyCapability)a.displayReadyCapability.reject(e)
else{if(!a.opListReadCapability)throw e
a.opListReadCapability.reject(e)}}}))}
o()}_abortOperatorList({intentState:e,reason:t,force:r=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!r){if(e.renderTasks.size>0)return
if(t instanceof _display_utils.RenderingCancelledException){let r=RENDERING_CANCELLED_TIMEOUT
return t.extraDelay>0&&t.extraDelay<1e3&&(r+=t.extraDelay),void(e.streamReaderCancelTimeout=setTimeout((()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})}),r))}}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,r]of this._intentStates)if(r===e){this._intentStates.delete(t)
break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy
class LoopbackPort{#a=new Set
#o=Promise.resolve()
postMessage(e,t){const r={data:structuredClone(e,t?{transfer:t}:null)}
this.#o.then((()=>{for(const e of this.#a)e.call(this,r)}))}addEventListener(e,t){this.#a.add(t)}removeEventListener(e,t){this.#a.delete(t)}terminate(){this.#a.clear()}}exports.LoopbackPort=LoopbackPort
const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0}
if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS&&"function"==typeof require)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js"
else if("object"==typeof document){const e=document?.currentScript?.src
e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let r
try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch{return!1}const i=new URL(t,r)
return r.origin===i.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`
return URL.createObjectURL(new Blob([t]))}
class PDFWorker{static#l
constructor({name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){if(PDFWorker.#l?.has(t))throw new Error("Cannot use more than one PDFWorker per port.")
return(PDFWorker.#l||=new WeakMap).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker
try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href))
const t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),i=()=>{t.removeEventListener("error",n),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},n=()=>{this._webWorker||i()}
t.addEventListener("error",n),r.on("test",(e=>{t.removeEventListener("error",n),this.destroyed?i():e?(this._messageHandler=r,this._port=t,this._webWorker=t,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",n),this.destroyed)i()
else try{s()}catch{this._setupFakeWorker()}}))
const s=()=>{const e=new Uint8Array
r.send("test",e,[e.buffer])}
return void s()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"))
const t=new LoopbackPort
this._port=t
const r="fake"+PDFWorkerUtil.fakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,t)
e.setup(i,t)
const n=new _message_handler.MessageHandler(r,r+"_worker",t)
this._messageHandler=n,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#l?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.")
const t=this.#l?.get(e.port)
if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.")
return t}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc
if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc
throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler
if(mainWorkerMessageHandler)return mainWorkerMessageHandler
if(_util.isNodeJS&&"function"==typeof require){const worker=eval("require")(this.workerSrc)
return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler}
return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker
class WorkerTransport{#c=new Map
#u=new Map
#d=new Map
#h=null
constructor(e,t,r,i,n){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this._params=i,this.canvasFactory=n.canvasFactory,this.filterFactory=n.filterFactory,this.cMapReaderFactory=n.cMapReaderFactory,this.standardFontDataFactory=n.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#p(e,t=null){const r=this.#c.get(e)
if(r)return r
const i=this.messageHandler.sendWithPromise(e,t)
return this.#c.set(e,i),i}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,r=null,i=!1){let n=_util.RenderingIntentFlag.DISPLAY,s=_annotation_storage.SerializableEmpty
switch(e){case"any":n=_util.RenderingIntentFlag.ANY
break
case"display":break
case"print":n=_util.RenderingIntentFlag.PRINT
break
default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:n+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE
break
case _util.AnnotationMode.ENABLE:break
case _util.AnnotationMode.ENABLE_FORMS:n+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS
break
case _util.AnnotationMode.ENABLE_STORAGE:n+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE
s=(n&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage).serializable
break
default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return i&&(n+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:n,cacheKey:`${n}_${s.hash}`,annotationStorageSerializable:s}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise
this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,this.#h?.reject(new Error("Worker was destroyed during onPassword callback"))
const e=[]
for(const r of this.#u.values())e.push(r._destroy())
this.#u.clear(),this.#d.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified()
const t=this.messageHandler.sendWithPromise("Terminate",null)
return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this
e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const r=new _util.PromiseCapability,i=this._fullReader
return i.headersReady.then((()=>{i.isStreamingSupported&&i.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),i.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.")
const r=this._networkStream.getRangeReader(e.begin,e.end)
r?(t.onPull=()=>{r.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let r
switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code)
break
case"InvalidPDFException":r=new _util.InvalidPDFException(e.message)
break
case"MissingPDFException":r=new _util.MissingPDFException(e.message)
break
case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status)
break
case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details)
break
default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(this.#h=new _util.PromiseCapability,t.onPassword){const i=e=>{e instanceof Error?this.#h.reject(e):this.#h.resolve({password:e})}
try{t.onPassword(i,e.code)}catch(r){this.#h.reject(r)}}else this.#h.reject(new _util.PasswordException(e.message,e.code))
return this.#h.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{if(this.destroyed)return
this.#u.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,r,i])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(r){case"Font":const n=this._params
if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e)
break}const s=n.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,a=new _font_loader.FontFaceObject(i,{isEvalSupported:n.isEvalSupported,disableFontFace:n.disableFontFace,ignoreErrors:n.ignoreErrors,inspectFont:s})
this.fontLoader.bind(a).catch((r=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!n.fontExtraProperties&&a.data&&(a.data=null),this.commonObjs.resolve(t,a)}))
break
case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(t,i)
break
default:throw new Error(`Got unknown common object type ${r}`)}})),e.on("obj",(([e,t,r,i])=>{if(this.destroyed)return
const n=this.#u.get(t)
if(!n.objs.has(e))switch(r){case"Image":if(n.objs.resolve(e,i),i){let e
if(i.bitmap){const{width:t,height:r}=i
e=t*r*4}else e=i.data?.length||0
e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(n._maybeCleanupAfterRender=!0)}break
case"Pattern":n.objs.resolve(e,i)
break
default:throw new Error(`Got unknown object type ${r}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.")
const{map:e,transfers:t}=this.annotationStorage.serializable
return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."))
const t=e-1,r=this.#d.get(t)
if(r)return r
const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed")
const r=new PDFPageProxy(t,e,this,this._params.pdfBug)
return this.#u.set(t,r),r}))
return this.#d.set(t,i),i}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#p("GetFieldObjects")}hasJSActions(){return this.#p("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#p("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=this.#c.get(e)
if(t)return t
const r=this.messageHandler.sendWithPromise(e,null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))
return this.#c.set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null)
for(const e of this.#u.values()){if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`)}this.commonObjs.clear(),e||this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:e,enableXfa:t}=this._params
return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}class PDFObjects{#f=Object.create(null)
#m(e){return this.#f[e]||={capability:new _util.PromiseCapability,data:null}}get(e,t=null){if(t){const r=this.#m(e)
return r.capability.promise.then((()=>t(r.data))),null}const r=this.#f[e]
if(!r?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`)
return r.data}has(e){const t=this.#f[e]
return t?.capability.settled||!1}resolve(e,t=null){const r=this.#m(e)
r.data=t,r.capability.resolve()}clear(){for(const e in this.#f){const{data:t}=this.#f[e]
t?.bitmap?.close()}this.#f=Object.create(null)}}class RenderTask{#g=null
constructor(e){this.#g=e,this.onContinue=null}get promise(){return this.#g.capability.promise}cancel(e=0){this.#g.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#g.operatorList
if(!e)return!1
const{annotationCanvasMap:t}=this.#g
return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask
class InternalRenderTask{static#b=new WeakSet
constructor({callback:e,params:t,objs:r,commonObjs:i,annotationCanvasMap:n,operatorList:s,pageIndex:a,canvasFactory:o,filterFactory:l,useRequestAnimationFrame:c=!1,pdfBug:u=!1,pageColors:d=null}){this.callback=e,this.params=t,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=n,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=o,this.filterFactory=l,this._pdfBug=u,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!=typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return
if(this._canvas){if(InternalRenderTask.#b.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.")
InternalRenderTask.#b.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint())
const{canvasContext:r,viewport:i,transform:n,background:s}=this.params
this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:n,viewport:i,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,t=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),InternalRenderTask.#b.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,t))}operatorListChanged(){this.graphicsReady?(this.stepper?.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),InternalRenderTask.#b.delete(this._canvas),this.callback())))}}const version="3.11.174"
exports.version=version
const build="ce8716743"
exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0
var i=r(1),n=r(4),s=r(8)
const a=Object.freeze({map:null,hash:"",transfers:void 0})
t.SerializableEmpty=a
class o{#y=!1
#v=new Map
constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const r=this.#v.get(e)
return void 0===r?t:Object.assign(t,r)}getRawValue(e){return this.#v.get(e)}remove(e){if(this.#v.delete(e),0===this.#v.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const e of this.#v.values())if(e instanceof n.AnnotationEditor)return
this.onAnnotationEditor(null)}}setValue(e,t){const r=this.#v.get(e)
let i=!1
if(void 0!==r)for(const[n,s]of Object.entries(t))r[n]!==s&&(i=!0,r[n]=s)
else i=!0,this.#v.set(e,t)
i&&this.#w(),t instanceof n.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this.#v.has(e)}getAll(){return this.#v.size>0?(0,i.objectFromMap)(this.#v):null}setAll(e){for(const[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return this.#v.size}#w(){this.#y||(this.#y=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#y&&(this.#y=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new l(this)}get serializable(){if(0===this.#v.size)return a
const e=new Map,t=new s.MurmurHash3_64,r=[],i=Object.create(null)
let o=!1
for(const[s,a]of this.#v){const r=a instanceof n.AnnotationEditor?a.serialize(!1,i):a
r&&(e.set(s,r),t.update(`${s}:${JSON.stringify(r)}`),o||=!!r.bitmap)}if(o)for(const n of e.values())n.bitmap&&r.push(n.bitmap)
return e.size>0?{map:e,hash:t.hexdigest(),transfers:r}:a}}t.AnnotationStorage=o
class l extends o{#x
constructor(e){super()
const{map:t,hash:r,transfers:i}=e.serializable,n=structuredClone(t,i?{transfer:i}:null)
this.#x={map:n,hash:r,transfers:i}}get print(){(0,i.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#x}}t.PrintAnnotationStorage=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0
var i=r(5),n=r(1),s=r(6)
class a{#_=""
#S=!1
#k=null
#A=null
#C=null
#P=!1
#O=null
#E=this.focusin.bind(this)
#T=this.focusout.bind(this)
#M=!1
#I=!1
#F=!1
_initialOptions=Object.create(null)
_uiManager=null
_focusEventsAllowed=!0
_l10nPromise=null
#N=!1
#R=a._zIndex++
static _borderLineWidth=-1
static _colorManager=new i.ColorManager
static _zIndex=1
static SMALL_EDITOR_SIZE=0
constructor(e){this.constructor===a&&(0,n.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null
const{rotation:t,rawDims:{pageWidth:r,pageHeight:i,pageX:s,pageY:o}}=this.parent.viewport
this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[s,o]
const[l,c]=this.parentDimensions
this.x=e.x/l,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,n.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new o({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager})
t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t=null){if(a._l10nPromise||=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)]))),t?.strings)for(const i of t.strings)a._l10nPromise.set(i,e.get(i))
if(-1!==a._borderLineWidth)return
const r=getComputedStyle(document.documentElement)
a._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,n.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#N}set _isDraggable(e){this.#N=e,this.div?.classList.toggle("draggable",e)}center(){const[e,t]=this.pageDimensions
switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t)
break
case 180:this.x+=this.width/2,this.y+=this.height/2
break
case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t)
break
default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#R}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#M?this.#M=!1:this.parent.setSelected(this))}focusout(e){if(!this._focusEventsAllowed)return
if(!this.isAttachedToDOM)return
const t=e.relatedTarget
t?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,r,i){const[n,s]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(e+r)/n,this.y=(t+i)/s,this.fixAndSetPosition()}#D([e,t],r,i){[r,i]=this.screenToPageTranslation(r,i),this.x+=r/e,this.y+=i/t,this.fixAndSetPosition()}translate(e,t){this.#D(this.parentDimensions,e,t)}translateInPage(e,t){this.#D(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){const[r,i]=this.parentDimensions
if(this.x+=e/r,this.y+=t/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect()
this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:n,y:s}=this
const[a,o]=this.#j()
n+=a,s+=o,this.div.style.left=`${(100*n).toFixed(2)}%`,this.div.style.top=`${(100*s).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}#j(){const[e,t]=this.parentDimensions,{_borderLineWidth:r}=a,i=r/e,n=r/t
switch(this.rotation){case 90:return[-i,n]
case 180:return[i,n]
case 270:return[i,-n]
default:return[-i,-n]}}fixAndSetPosition(){const[e,t]=this.pageDimensions
let{x:r,y:i,width:n,height:s}=this
switch(n*=e,s*=t,r*=e,i*=t,this.rotation){case 0:r=Math.max(0,Math.min(e-n,r)),i=Math.max(0,Math.min(t-s,i))
break
case 90:r=Math.max(0,Math.min(e-s,r)),i=Math.min(t,Math.max(n,i))
break
case 180:r=Math.min(e,Math.max(n,r)),i=Math.min(t,Math.max(s,i))
break
case 270:r=Math.min(e,Math.max(s,r)),i=Math.max(0,Math.min(t-n,i))}this.x=r/=e,this.y=i/=t
const[a,o]=this.#j()
r+=a,i+=o
const{style:l}=this.div
l.left=`${(100*r).toFixed(2)}%`,l.top=`${(100*i).toFixed(2)}%`,this.moveInDOM()}static#L(e,t,r){switch(r){case 90:return[t,-e]
case 180:return[-e,-t]
case 270:return[-t,e]
default:return[e,t]}}screenToPageTranslation(e,t){return a.#L(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return a.#L(e,t,360-this.parentRotation)}#B(e){switch(e){case 90:{const[e,t]=this.pageDimensions
return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1]
case 270:{const[e,t]=this.pageDimensions
return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,r]}=this,i=t*e,s=r*e
return n.FeatureTest.isCSSRoundSupported?[Math.round(i),Math.round(s)]:[i,s]}setDims(e,t){const[r,i]=this.parentDimensions
this.div.style.width=`${(100*e/r).toFixed(2)}%`,this.#P||(this.div.style.height=`${(100*t/i).toFixed(2)}%`),this.#k?.classList.toggle("small",e<a.SMALL_EDITOR_SIZE||t<a.SMALL_EDITOR_SIZE)}fixDims(){const{style:e}=this.div,{height:t,width:r}=e,i=r.endsWith("%"),n=!this.#P&&t.endsWith("%")
if(i&&n)return
const[s,a]=this.parentDimensions
i||(e.width=`${(100*parseFloat(r)/s).toFixed(2)}%`),this.#P||n||(e.height=`${(100*parseFloat(t)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#$(){if(this.#O)return
this.#O=document.createElement("div"),this.#O.classList.add("resizers")
const e=["topLeft","topRight","bottomRight","bottomLeft"]
this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft")
for(const t of e){const e=document.createElement("div")
this.#O.append(e),e.classList.add("resizer",t),e.addEventListener("pointerdown",this.#z.bind(this,t)),e.addEventListener("contextmenu",s.noContextMenu)}this.div.prepend(this.#O)}#z(e,t){t.preventDefault()
const{isMac:r}=n.FeatureTest.platform
if(0!==t.button||t.ctrlKey&&r)return
const i=this.#U.bind(this,e),s=this._isDraggable
this._isDraggable=!1
const a={passive:!0,capture:!0}
window.addEventListener("pointermove",i,a)
const o=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,h=this.div.style.cursor
this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor
const p=()=>{this._isDraggable=s,window.removeEventListener("pointerup",p),window.removeEventListener("blur",p),window.removeEventListener("pointermove",i,a),this.parent.div.style.cursor=d,this.div.style.cursor=h
const e=this.x,t=this.y,r=this.width,n=this.height
e===o&&t===l&&r===c&&n===u||this.addCommands({cmd:()=>{this.width=r,this.height=n,this.x=e,this.y=t
const[i,s]=this.parentDimensions
this.setDims(i*r,s*n),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=o,this.y=l
const[e,t]=this.parentDimensions
this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})}
window.addEventListener("pointerup",p),window.addEventListener("blur",p)}#U(e,t){const[r,i]=this.parentDimensions,n=this.x,s=this.y,o=this.width,l=this.height,c=a.MIN_SIZE/r,u=a.MIN_SIZE/i,d=e=>Math.round(1e4*e)/1e4,h=this.#B(this.rotation),p=(e,t)=>[h[0]*e+h[2]*t,h[1]*e+h[3]*t],f=this.#B(360-this.rotation)
let m,g,b=!1,y=!1
switch(e){case"topLeft":b=!0,m=(e,t)=>[0,0],g=(e,t)=>[e,t]
break
case"topMiddle":m=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t]
break
case"topRight":b=!0,m=(e,t)=>[e,0],g=(e,t)=>[0,t]
break
case"middleRight":y=!0,m=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2]
break
case"bottomRight":b=!0,m=(e,t)=>[e,t],g=(e,t)=>[0,0]
break
case"bottomMiddle":m=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0]
break
case"bottomLeft":b=!0,m=(e,t)=>[0,t],g=(e,t)=>[e,0]
break
case"middleLeft":y=!0,m=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2]}const v=m(o,l),w=g(o,l)
let x=p(...w)
const _=d(n+x[0]),S=d(s+x[1])
let k=1,A=1,[C,P]=this.screenToPageTranslation(t.movementX,t.movementY)
var O,E
if([C,P]=(O=C/r,E=P/i,[f[0]*O+f[2]*E,f[1]*O+f[3]*E]),b){const e=Math.hypot(o,l)
k=A=Math.max(Math.min(Math.hypot(w[0]-v[0]-C,w[1]-v[1]-P)/e,1/o,1/l),c/o,u/l)}else y?k=Math.max(c,Math.min(1,Math.abs(w[0]-v[0]-C)))/o:A=Math.max(u,Math.min(1,Math.abs(w[1]-v[1]-P)))/l
const T=d(o*k),M=d(l*A)
x=p(...g(T,M))
const I=_-x[0],F=S-x[1]
this.width=T,this.height=M,this.x=I,this.y=F,this.setDims(r*T,i*M),this.fixAndSetPosition()}async addAltTextButton(){if(this.#k)return
const e=this.#k=document.createElement("button")
e.className="altText"
const t=await a._l10nPromise.get("editor_alt_text_button_label")
if(e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0",e.addEventListener("contextmenu",s.noContextMenu),e.addEventListener("pointerdown",(e=>e.stopPropagation())),e.addEventListener("click",(e=>{e.preventDefault(),this._uiManager.editAltText(this)}),{capture:!0}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))})),this.#q(),this.div.append(e),!a.SMALL_EDITOR_SIZE){const t=40
a.SMALL_EDITOR_SIZE=Math.min(128,Math.round(e.getBoundingClientRect().width*(1+t/100)))}}async#q(){const e=this.#k
if(!e)return
if(!this.#_&&!this.#S)return e.classList.remove("done"),void this.#A?.remove()
a._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}))
let t=this.#A
if(!t){this.#A=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip")
const r=t.id=`alt-text-tooltip-${this.id}`
e.setAttribute("aria-describedby",r)
const i=100
e.addEventListener("mouseenter",(()=>{this.#C=setTimeout((()=>{this.#C=null,this.#A.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),i)})),e.addEventListener("mouseleave",(()=>{clearTimeout(this.#C),this.#C=null,this.#A?.classList.remove("show")}))}e.classList.add("done"),t.innerText=this.#S?await a._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#_,t.parentNode||e.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#_,decorative:this.#S}}set altTextData({altText:e,decorative:t}){this.#_===e&&this.#S===t||(this.#_=e,this.#S=t,this.#q())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#E),this.div.addEventListener("focusout",this.#T)
const[e,t]=this.parentDimensions
this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*t/e).toFixed(2)}%`,this.div.style.maxHeight=`${(100*e/t).toFixed(2)}%`)
const[r,n]=this.getInitialTranslation()
return this.translate(r,n),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=n.FeatureTest.platform
0!==e.button||e.ctrlKey&&t?e.preventDefault():(this.#M=!0,this.#H(e))}#H(e){if(!this._isDraggable)return
const t=this._uiManager.isSelected(this)
let r,i
this._uiManager.setUpDragSession(),t&&(r={passive:!0,capture:!0},i=e=>{const[t,r]=this.screenToPageTranslation(e.movementX,e.movementY)
this._uiManager.dragSelectedEditors(t,r)},window.addEventListener("pointermove",i,r))
const s=()=>{if(window.removeEventListener("pointerup",s),window.removeEventListener("blur",s),t&&window.removeEventListener("pointermove",i,r),this.#M=!1,!this._uiManager.endDragSession()){const{isMac:t}=n.FeatureTest.platform
e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}}
window.addEventListener("pointerup",s),window.addEventListener("blur",s)}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t){const r=this.parentScale,[i,n]=this.pageDimensions,[s,a]=this.pageTranslation,o=e/r,l=t/r,c=this.x*i,u=this.y*n,d=this.width*i,h=this.height*n
switch(this.rotation){case 0:return[c+o+s,n-u-l-h+a,c+o+d+s,n-u-l+a]
case 90:return[c+l+s,n-u+o+a,c+l+h+s,n-u+o+d+a]
case 180:return[c-o-d+s,n-u+l+a,c-o+s,n-u+l+h+a]
case 270:return[c-l-h+s,n-u-o-d+a,c-l+s,n-u-o+a]
default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[r,i,n,s]=e,a=n-r,o=s-i
switch(this.rotation){case 0:return[r,t-s,a,o]
case 90:return[r,t-i,o,a]
case 180:return[n,t-i,a,o]
case 270:return[n,t-s,o,a]
default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#F=!0}disableEditMode(){this.#F=!1}isInEditMode(){return this.#F}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#E),this.div?.addEventListener("focusout",this.#T)}serialize(e=!1,t=null){(0,n.unreachable)("An editor must be serializable")}static deserialize(e,t,r){const i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r})
i.rotation=e.rotation
const[n,s]=i.pageDimensions,[a,o,l,c]=i.getRectInCurrentCoords(e.rect,s)
return i.x=a/n,i.y=o/s,i.width=l/n,i.height=c/s,i}remove(){this.div.removeEventListener("focusin",this.#E),this.div.removeEventListener("focusout",this.#T),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#k?.remove(),this.#k=null,this.#A=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#$(),this.#O.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#O?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){this.#k&&(this.#k.hidden=!0)}enableEditing(){this.#k&&(this.#k.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#I}set isEditing(e){this.#I=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){this.#P=!0
const r=e/t,{style:i}=this.div
i.aspectRatio=r,i.height="auto"}static get MIN_SIZE(){return 16}}t.AnnotationEditor=a
class o extends a{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,r){for(const i of r)t.addEventListener(i,e[i].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}
var i=r(1),n=r(6)
class s{#V=0
getId(){return`${i.AnnotationEditorPrefix}${this.#V++}`}}class a{#G=(0,i.getUuid)()
#V=0
#W=null
static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image
t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>'
const r=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])))
return(0,i.shadow)(this,"_isSVGFittingCanvas",r)}async#X(e,t){this.#W||=new Map
let r=this.#W.get(e)
if(null===r)return null
if(r?.bitmap)return r.refCounter+=1,r
try{let e
if(r||={bitmap:null,id:`image_${this.#G}_${this.#V++}`,refCounter:0,isSvg:!1},"string"==typeof t){r.url=t
const i=await fetch(t)
if(!i.ok)throw new Error(i.statusText)
e=await i.blob()}else e=r.file=t
if("image/svg+xml"===e.type){const t=a._isSVGFittingCanvas,i=new FileReader,n=new Image,s=new Promise(((e,s)=>{n.onload=()=>{r.bitmap=n,r.isSvg=!0,e()},i.onload=async()=>{const e=r.svgUrl=i.result
n.src=await t?`${e}#svgView(preserveAspectRatio(none))`:e},n.onerror=i.onerror=s}))
i.readAsDataURL(e),await s}else r.bitmap=await createImageBitmap(e)
r.refCounter=1}catch(i){console.error(i),r=null}return this.#W.set(e,r),r&&this.#W.set(r.id,r),r}async getFromFile(e){const{lastModified:t,name:r,size:i,type:n}=e
return this.#X(`${t}_${r}_${i}_${n}`,e)}async getFromUrl(e){return this.#X(e,e)}async getFromId(e){this.#W||=new Map
const t=this.#W.get(e)
return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=this.#W.get(e)
return t?.isSvg?t.svgUrl:null}deleteId(e){this.#W||=new Map
const t=this.#W.get(e)
t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith(`image_${this.#G}_`)}}class o{#K=[]
#Y=!1
#J
#Q=-1
constructor(e=128){this.#J=e}add({cmd:e,undo:t,mustExec:r,type:i=NaN,overwriteIfSameType:n=!1,keepUndo:s=!1}){if(r&&e(),this.#Y)return
const a={cmd:e,undo:t,type:i}
if(-1===this.#Q)return this.#K.length>0&&(this.#K.length=0),this.#Q=0,void this.#K.push(a)
if(n&&this.#K[this.#Q].type===i)return s&&(a.undo=this.#K[this.#Q].undo),void(this.#K[this.#Q]=a)
const o=this.#Q+1
o===this.#J?this.#K.splice(0,1):(this.#Q=o,o<this.#K.length&&this.#K.splice(o)),this.#K.push(a)}undo(){-1!==this.#Q&&(this.#Y=!0,this.#K[this.#Q].undo(),this.#Y=!1,this.#Q-=1)}redo(){this.#Q<this.#K.length-1&&(this.#Q+=1,this.#Y=!0,this.#K[this.#Q].cmd(),this.#Y=!1)}hasSomethingToUndo(){return-1!==this.#Q}hasSomethingToRedo(){return this.#Q<this.#K.length-1}destroy(){this.#K=null}}t.CommandManager=o
class l{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set
const{isMac:t}=i.FeatureTest.platform
for(const[r,i,n={}]of e)for(const e of r){const r=e.startsWith("mac+")
t&&r?(this.callbacks.set(e.slice(4),{callback:i,options:n}),this.allKeys.add(e.split("+").at(-1))):t||r||(this.callbacks.set(e,{callback:i,options:n}),this.allKeys.add(e.split("+").at(-1)))}}#Z(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key)
const t=this.buffer.join("+")
return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return
const r=this.callbacks.get(this.#Z(t))
if(!r)return
const{callback:i,options:{bubbles:n=!1,args:s=[],checker:a=null}}=r
a&&!a(e,t)||(i.bind(e,...s)(),n||(t.stopPropagation(),t.preventDefault()))}}t.KeyboardManager=l
class c{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])
get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]])
return(0,n.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){const t=(0,n.getRGB)(e)
if(!window.matchMedia("(forced-colors: active)").matches)return t
for(const[r,i]of this._colors)if(i.every(((e,r)=>e===t[r])))return c._colorsMapping.get(r)
return t}getHexCode(e){const t=this._colors.get(e)
return t?i.Util.makeHexColor(...t):e}}t.ColorManager=c
class u{#ee=null
#te=new Map
#re=new Map
#ie=null
#ne=null
#se=new o
#ae=0
#oe=new Set
#le=null
#ce=null
#ue=new Set
#de=null
#he=new s
#pe=!1
#fe=!1
#me=null
#ge=i.AnnotationEditorType.NONE
#be=new Set
#ye=null
#ve=this.blur.bind(this)
#we=this.focus.bind(this)
#xe=this.copy.bind(this)
#_e=this.cut.bind(this)
#Se=this.paste.bind(this)
#ke=this.keydown.bind(this)
#Ae=this.onEditingAction.bind(this)
#Ce=this.onPageChanging.bind(this)
#Pe=this.onScaleChanging.bind(this)
#Oe=this.onRotationChanging.bind(this)
#Ee={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}
#Te=[0,0]
#Me=null
#Ie=null
#Fe=null
static TRANSLATE_SMALL=1
static TRANSLATE_BIG=10
static get _keyboardManager(){const e=u.prototype,t=e=>{const{activeElement:t}=document
return t&&e.#Ie.contains(t)&&e.hasSomethingToControl()},r=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG
return(0,i.shadow)(this,"_keyboardManager",new l([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}]]))}constructor(e,t,r,i,s,a){this.#Ie=e,this.#Fe=t,this.#ie=r,this._eventBus=i,this._eventBus._on("editingaction",this.#Ae),this._eventBus._on("pagechanging",this.#Ce),this._eventBus._on("scalechanging",this.#Pe),this._eventBus._on("rotationchanging",this.#Oe),this.#ne=s.annotationStorage,this.#de=s.filterFactory,this.#ye=a,this.viewParameters={realScale:n.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#Ne(),this.#Re(),this._eventBus._off("editingaction",this.#Ae),this._eventBus._off("pagechanging",this.#Ce),this._eventBus._off("scalechanging",this.#Pe),this._eventBus._off("rotationchanging",this.#Oe)
for(const e of this.#re.values())e.destroy()
this.#re.clear(),this.#te.clear(),this.#ue.clear(),this.#ee=null,this.#be.clear(),this.#se.destroy(),this.#ie.destroy()}get hcmFilter(){return(0,i.shadow)(this,"hcmFilter",this.#ye?this.#de.addHCMFilter(this.#ye.foreground,this.#ye.background):"none")}get direction(){return(0,i.shadow)(this,"direction",getComputedStyle(this.#Ie).direction)}editAltText(e){this.#ie?.editAltText(this,e)}onPageChanging({pageNumber:e}){this.#ae=e-1}focusMainContainer(){this.#Ie.focus()}findParent(e,t){for(const r of this.#re.values()){const{x:i,y:n,width:s,height:a}=r.div.getBoundingClientRect()
if(e>=i&&e<=i+s&&t>=n&&t<=n+a)return r}return null}disableUserSelect(e=!1){this.#Fe.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#ue.add(e)}removeShouldRescale(e){this.#ue.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*n.PixelsPerInch.PDF_TO_CSS_UNITS
for(const t of this.#ue)t.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}addToAnnotationStorage(e){e.isEmpty()||!this.#ne||this.#ne.has(e.id)||this.#ne.setValue(e.id,e)}#De(){window.addEventListener("focus",this.#we),window.addEventListener("blur",this.#ve)}#Re(){window.removeEventListener("focus",this.#we),window.removeEventListener("blur",this.#ve)}blur(){if(!this.hasSelection)return
const{activeElement:e}=document
for(const t of this.#be)if(t.div.contains(e)){this.#me=[t,e],t._focusEventsAllowed=!1
break}}focus(){if(!this.#me)return
const[e,t]=this.#me
this.#me=null,t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}#je(){window.addEventListener("keydown",this.#ke,{capture:!0})}#Ne(){window.removeEventListener("keydown",this.#ke,{capture:!0})}#Le(){document.addEventListener("copy",this.#xe),document.addEventListener("cut",this.#_e),document.addEventListener("paste",this.#Se)}#Be(){document.removeEventListener("copy",this.#xe),document.removeEventListener("cut",this.#_e),document.removeEventListener("paste",this.#Se)}addEditListeners(){this.#je(),this.#Le()}removeEditListeners(){this.#Ne(),this.#Be()}copy(e){if(e.preventDefault(),this.#ee?.commitOrRemove(),!this.hasSelection)return
const t=[]
for(const r of this.#be){const e=r.serialize(!0)
e&&t.push(e)}0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault()
const{clipboardData:t}=e
for(const i of t.items)for(const e of this.#ce)if(e.isHandlingMimeForPasting(i.type))return void e.paste(i,this.currentLayer)
let r=t.getData("application/pdfjs")
if(!r)return
try{r=JSON.parse(r)}catch(s){return void(0,i.warn)(`paste: "${s.message}".`)}if(!Array.isArray(r))return
this.unselectAll()
const n=this.currentLayer
try{const e=[]
for(const s of r){const t=n.deserialize(s)
if(!t)return
e.push(t)}const t=()=>{for(const t of e)this.#$e(t)
this.#ze(e)},i=()=>{for(const t of e)t.remove()}
this.addCommands({cmd:t,undo:i,mustExec:!0})}catch(s){(0,i.warn)(`paste: "${s.message}".`)}}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||u._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}#Ue(e){Object.entries(e).some((([e,t])=>this.#Ee[e]!==t))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Ee,e)})}#qe(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#De(),this.#je(),this.#Le(),this.#Ue({isEditing:this.#ge!==i.AnnotationEditorType.NONE,isEmpty:this.#He(),hasSomethingToUndo:this.#se.hasSomethingToUndo(),hasSomethingToRedo:this.#se.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Re(),this.#Ne(),this.#Be(),this.#Ue({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#ce){this.#ce=e
for(const e of this.#ce)this.#qe(e.defaultPropertiesToUpdate)}}getId(){return this.#he.getId()}get currentLayer(){return this.#re.get(this.#ae)}getLayer(e){return this.#re.get(e)}get currentPageIndex(){return this.#ae}addLayer(e){this.#re.set(e.pageIndex,e),this.#pe?e.enable():e.disable()}removeLayer(e){this.#re.delete(e.pageIndex)}updateMode(e,t=null){if(this.#ge!==e){if(this.#ge=e,e===i.AnnotationEditorType.NONE)return this.setEditingState(!1),void this.#Ve()
this.setEditingState(!0),this.#Ge(),this.unselectAll()
for(const t of this.#re.values())t.updateMode(e)
if(t)for(const e of this.#te.values())if(e.annotationElementId===t){this.setSelected(e),e.enterInEditMode()
break}}}updateToolbar(e){e!==this.#ge&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(this.#ce)if(e!==i.AnnotationEditorParamsType.CREATE){for(const r of this.#be)r.updateParams(e,t)
for(const r of this.#ce)r.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(e=!1){if(this.#fe!==e){this.#fe=e
for(const t of this.#re.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}#Ge(){if(!this.#pe){this.#pe=!0
for(const e of this.#re.values())e.enable()}}#Ve(){if(this.unselectAll(),this.#pe){this.#pe=!1
for(const e of this.#re.values())e.disable()}}getEditors(e){const t=[]
for(const r of this.#te.values())r.pageIndex===e&&t.push(r)
return t}getEditor(e){return this.#te.get(e)}addEditor(e){this.#te.set(e.id,e)}removeEditor(e){this.#te.delete(e.id),this.unselect(e),e.annotationElementId&&this.#oe.has(e.annotationElementId)||this.#ne?.remove(e.id)}addDeletedAnnotationElement(e){this.#oe.add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return this.#oe.has(e)}removeDeletedAnnotationElement(e){this.#oe.delete(e.annotationElementId),e.deleted=!1}#$e(e){const t=this.#re.get(e.pageIndex)
t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#ee!==e&&(this.#ee=e,e&&this.#qe(e.propertiesToUpdate))}toggleSelected(e){if(this.#be.has(e))return this.#be.delete(e),e.unselect(),void this.#Ue({hasSelectedEditor:this.hasSelection})
this.#be.add(e),e.select(),this.#qe(e.propertiesToUpdate),this.#Ue({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#be)t!==e&&t.unselect()
this.#be.clear(),this.#be.add(e),e.select(),this.#qe(e.propertiesToUpdate),this.#Ue({hasSelectedEditor:!0})}isSelected(e){return this.#be.has(e)}unselect(e){e.unselect(),this.#be.delete(e),this.#Ue({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#be.size}undo(){this.#se.undo(),this.#Ue({hasSomethingToUndo:this.#se.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#He()})}redo(){this.#se.redo(),this.#Ue({hasSomethingToUndo:!0,hasSomethingToRedo:this.#se.hasSomethingToRedo(),isEmpty:this.#He()})}addCommands(e){this.#se.add(e),this.#Ue({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#He()})}#He(){if(0===this.#te.size)return!0
if(1===this.#te.size)for(const e of this.#te.values())return e.isEmpty()
return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return
const e=[...this.#be]
this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#$e(t)},mustExec:!0})}commitOrRemove(){this.#ee?.commitOrRemove()}hasSomethingToControl(){return this.#ee||this.hasSelection}#ze(e){this.#be.clear()
for(const t of e)t.isEmpty()||(this.#be.add(t),t.select())
this.#Ue({hasSelectedEditor:!0})}selectAll(){for(const e of this.#be)e.commit()
this.#ze(this.#te.values())}unselectAll(){if(this.#ee)this.#ee.commitOrRemove()
else if(this.hasSelection){for(const e of this.#be)e.unselect()
this.#be.clear(),this.#Ue({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return
this.#Te[0]+=e,this.#Te[1]+=t
const[i,n]=this.#Te,s=[...this.#be]
this.#Me&&clearTimeout(this.#Me),this.#Me=setTimeout((()=>{this.#Me=null,this.#Te[0]=this.#Te[1]=0,this.addCommands({cmd:()=>{for(const e of s)this.#te.has(e.id)&&e.translateInPage(i,n)},undo:()=>{for(const e of s)this.#te.has(e.id)&&e.translateInPage(-i,-n)},mustExec:!1})}),1e3)
for(const a of s)a.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#le=new Map
for(const e of this.#be)this.#le.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#le)return!1
this.disableUserSelect(!1)
const e=this.#le
this.#le=null
let t=!1
for(const[{x:i,y:n,pageIndex:s},a]of e)a.newX=i,a.newY=n,a.newPageIndex=s,t||=i!==a.savedX||n!==a.savedY||s!==a.savedPageIndex
if(!t)return!1
const r=(e,t,r,i)=>{if(this.#te.has(e.id)){const n=this.#re.get(i)
n?e._setParentAndPosition(n,t,r):(e.pageIndex=i,e.x=t,e.y=r)}}
return this.addCommands({cmd:()=>{for(const[t,{newX:i,newY:n,newPageIndex:s}]of e)r(t,i,n,s)},undo:()=>{for(const[t,{savedX:i,savedY:n,savedPageIndex:s}]of e)r(t,i,n,s)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#le)for(const r of this.#le.keys())r.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex)
t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return this.#ee===e}getActive(){return this.#ee}getMode(){return this.#ge}get imageManager(){return(0,i.shadow)(this,"imageManager",new a)}}t.AnnotationEditorUIManager=u},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span")
t.style.visibility="hidden",document.body.append(t)
for(const r of e.keys()){t.style.color=r
const i=window.getComputedStyle(t).color
e.set(r,y(i))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:r,c:i,d:n,e:s,f:a}=e.getTransform()
return[t,r,i,n,s,a]},t.getCurrentTransformInverse=function(e){const{a:t,b:r,c:i,d:n,e:s,f:a}=e.getTransform().invertSelf()
return[t,r,i,n,s,a]},t.getFilenameFromUrl=function(e,t=!1){t||([e]=e.split(/[#?]/,1))
return e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t
if(m(e))return(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t
const r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e)
let s=r.exec(i[1])||r.exec(i[2])||r.exec(i[3])
if(s&&(s=s[0],s.includes("%")))try{s=r.exec(decodeURIComponent(s))[0]}catch{}return s||t},t.getRGB=y,t.getXfaPageViewport=function(e,{scale:t=1,rotation:r=0}){const{width:i,height:n}=e.attributes.style,s=[0,0,parseInt(i),parseInt(n)]
return new p({viewBox:s,scale:t,rotation:r})},t.isDataScheme=m,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=g,t.loadScript=function(e,t=!1){return new Promise(((r,i)=>{const n=document.createElement("script")
n.src=e,n.onload=function(e){t&&n.remove(),r(e)},n.onerror=function(){i(new Error(`Cannot load script at: ${n.src}`))},(document.head||document.documentElement).append(n)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t,r=!1,i=!0){if(t instanceof p){const{pageWidth:i,pageHeight:s}=t.rawDims,{style:a}=e,o=n.FeatureTest.isCSSRoundSupported,l=`var(--scale-factor) * ${i}px`,c=`var(--scale-factor) * ${s}px`,u=o?`round(${l}, 1px)`:`calc(${l})`,d=o?`round(${c}, 1px)`:`calc(${c})`
r&&t.rotation%180!=0?(a.width=d,a.height=u):(a.width=u,a.height=d)}i&&e.setAttribute("data-main-rotation",t.rotation)}
var i=r(7),n=r(1)
const s="http://www.w3.org/2000/svg"
class a{static CSS=96
static PDF=72
static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=a
class o extends i.BaseFilterFactory{#We
#Xe
#t
#Ke
#Ye
#Je
#Qe
#Ze
#et
#tt
#V=0
constructor({docId:e,ownerDocument:t=globalThis.document}={}){super(),this.#t=e,this.#Ke=t}get#W(){return this.#We||=new Map}get#rt(){if(!this.#Xe){const e=this.#Ke.createElement("div"),{style:t}=e
t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1
const r=this.#Ke.createElementNS(s,"svg")
r.setAttribute("width",0),r.setAttribute("height",0),this.#Xe=this.#Ke.createElementNS(s,"defs"),e.append(r),r.append(this.#Xe),this.#Ke.body.append(e)}return this.#Xe}addFilter(e){if(!e)return"none"
let t,r,i,n,s=this.#W.get(e)
if(s)return s
if(1===e.length){const s=e[0],a=new Array(256)
for(let e=0;e<256;e++)a[e]=s[e]/255
n=t=r=i=a.join(",")}else{const[s,a,o]=e,l=new Array(256),c=new Array(256),u=new Array(256)
for(let e=0;e<256;e++)l[e]=s[e]/255,c[e]=a[e]/255,u[e]=o[e]/255
t=l.join(","),r=c.join(","),i=u.join(","),n=`${t}${r}${i}`}if(s=this.#W.get(n),s)return this.#W.set(e,s),s
const a=`g_${this.#t}_transfer_map_${this.#V++}`,o=`url(#${a})`
this.#W.set(e,o),this.#W.set(n,o)
const l=this.#it(a)
return this.#nt(t,r,i,l),o}addHCMFilter(e,t){const r=`${e}-${t}`
if(this.#Je===r)return this.#Qe
if(this.#Je=r,this.#Qe="none",this.#Ye?.remove(),!e||!t)return this.#Qe
const i=this.#st(e)
e=n.Util.makeHexColor(...i)
const s=this.#st(t)
if(t=n.Util.makeHexColor(...s),this.#rt.style.color="","#000000"===e&&"#ffffff"===t||e===t)return this.#Qe
const a=new Array(256)
for(let n=0;n<=255;n++){const e=n/255
a[n]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const o=a.join(","),l=`g_${this.#t}_hcm_filter`,c=this.#Ze=this.#it(l)
this.#nt(o,o,o,c),this.#at(c)
const u=(e,t)=>{const r=i[e]/255,n=s[e]/255,a=new Array(t+1)
for(let i=0;i<=t;i++)a[i]=r+i/t*(n-r)
return a.join(",")}
return this.#nt(u(0,5),u(1,5),u(2,5),c),this.#Qe=`url(#${l})`,this.#Qe}addHighlightHCMFilter(e,t,r,i){const n=`${e}-${t}-${r}-${i}`
if(this.#et===n)return this.#tt
if(this.#et=n,this.#tt="none",this.#Ze?.remove(),!e||!t)return this.#tt
const[s,a]=[e,t].map(this.#st.bind(this))
let o=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),l=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),[c,u]=[r,i].map(this.#st.bind(this))
l<o&&([o,l,c,u]=[l,o,u,c]),this.#rt.style.color=""
const d=(e,t,r)=>{const i=new Array(256),n=(l-o)/r,s=e/255,a=(t-e)/(255*r)
let c=0
for(let l=0;l<=r;l++){const e=Math.round(o+l*n),t=s+l*a
for(let r=c;r<=e;r++)i[r]=t
c=e+1}for(let o=c;o<256;o++)i[o]=i[c-1]
return i.join(",")},h=`g_${this.#t}_hcm_highlight_filter`,p=this.#Ze=this.#it(h)
return this.#at(p),this.#nt(d(c[0],u[0],5),d(c[1],u[1],5),d(c[2],u[2],5),p),this.#tt=`url(#${h})`,this.#tt}destroy(e=!1){e&&(this.#Qe||this.#tt)||(this.#Xe&&(this.#Xe.parentNode.parentNode.remove(),this.#Xe=null),this.#We&&(this.#We.clear(),this.#We=null),this.#V=0)}#at(e){const t=this.#Ke.createElementNS(s,"feColorMatrix")
t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}#it(e){const t=this.#Ke.createElementNS(s,"filter")
return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#rt.append(t),t}#ot(e,t,r){const i=this.#Ke.createElementNS(s,t)
i.setAttribute("type","discrete"),i.setAttribute("tableValues",r),e.append(i)}#nt(e,t,r,i){const n=this.#Ke.createElementNS(s,"feComponentTransfer")
i.append(n),this.#ot(n,"feFuncR",e),this.#ot(n,"feFuncG",t),this.#ot(n,"feFuncB",r)}#st(e){return this.#rt.style.color=e,y(getComputedStyle(this.#rt).getPropertyValue("color"))}}t.DOMFilterFactory=o
class l extends i.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const r=this._document.createElement("canvas")
return r.width=e,r.height=t,r}}async function c(e,t=!1){if(g(e,document.baseURI)){const r=await fetch(e)
if(!r.ok)throw new Error(r.statusText)
return t?new Uint8Array(await r.arrayBuffer()):(0,n.stringToBytes)(await r.text())}return new Promise(((r,i)=>{const s=new XMLHttpRequest
s.open("GET",e,!0),t&&(s.responseType="arraybuffer"),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){let e
if(t&&s.response?e=new Uint8Array(s.response):!t&&s.responseText&&(e=(0,n.stringToBytes)(s.responseText)),e)return void r(e)}i(new Error(s.statusText))}},s.send(null)}))}t.DOMCanvasFactory=l
class u extends i.BaseCMapReaderFactory{_fetchData(e,t){return c(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=u
class d extends i.BaseStandardFontDataFactory{_fetchData(e){return c(e,!0)}}t.DOMStandardFontDataFactory=d
class h extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS(s,e)}}t.DOMSVGFactory=h
class p{constructor({viewBox:e,scale:t,rotation:r,offsetX:i=0,offsetY:n=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=i,this.offsetY=n
const a=(e[2]+e[0])/2,o=(e[3]+e[1])/2
let l,c,u,d,h,p,f,m
switch((r%=360)<0&&(r+=360),r){case 180:l=-1,c=0,u=0,d=1
break
case 90:l=0,c=1,u=1,d=0
break
case 270:l=0,c=-1,u=-1,d=0
break
case 0:l=1,c=0,u=0,d=-1
break
default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(u=-u,d=-d),0===l?(h=Math.abs(o-e[1])*t+i,p=Math.abs(a-e[0])*t+n,f=(e[3]-e[1])*t,m=(e[2]-e[0])*t):(h=Math.abs(a-e[0])*t+i,p=Math.abs(o-e[1])*t+n,f=(e[2]-e[0])*t,m=(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,h-l*t*a-u*t*o,p-c*t*a-d*t*o],this.width=f,this.height=m}get rawDims(){const{viewBox:e}=this
return(0,n.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:n=!1}={}){return new p({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:n})}convertToViewportPoint(e,t){return n.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform)
return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=p
class f extends n.BaseException{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}}function m(e){const t=e.length
let r=0
for(;r<t&&""===e[r].trim();)r++
return"data:"===e.substring(r,r+5).toLowerCase()}t.RenderingCancelledException=f
function g(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e)
return"http:"===r||"https:"===r}catch{return!1}}let b
t.StatTimer=class{started=Object.create(null)
times=[]
time(e){e in this.started&&(0,n.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,n.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[]
let t=0
for(const{name:r}of this.times)t=Math.max(r.length,t)
for(const{name:r,start:i,end:n}of this.times)e.push(`${r.padEnd(t)} ${n-i}ms\n`)
return e.join("")}}
function y(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16)
return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,n.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null
b||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")
const t=b.exec(e)
if(!t)return null
const r=parseInt(t[1],10)
let i=parseInt(t[2],10)
i=i>=1&&i<=12?i-1:0
let n=parseInt(t[3],10)
n=n>=1&&n<=31?n:1
let s=parseInt(t[4],10)
s=s>=0&&s<=23?s:0
let a=parseInt(t[5],10)
a=a>=0&&a<=59?a:0
let o=parseInt(t[6],10)
o=o>=0&&o<=59?o:0
const l=t[7]||"Z"
let c=parseInt(t[8],10)
c=c>=0&&c<=23?c:0
let u=parseInt(t[9],10)||0
return u=u>=0&&u<=59?u:0,"-"===l?(s+=c,a+=u):"+"===l&&(s-=c,a-=u),new Date(Date.UTC(r,i,n,s,a,o))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0
var i=r(1)
class n{constructor(){this.constructor===n&&(0,i.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,r,i){return"none"}destroy(e=!1){}}t.BaseFilterFactory=n
class s{constructor(){this.constructor===s&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size")
const r=this._createCanvas(e,t)
return{canvas:r,context:r.getContext("2d")}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified")
if(t<=0||r<=0)throw new Error("Invalid canvas size")
e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified")
e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,i.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=s
class a{constructor({baseUrl:e=null,isCompressed:t=!0}){this.constructor===a&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.')
if(!e)throw new Error("CMap name must be specified.")
const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE
return this._fetchData(t,r).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a
class o{constructor({baseUrl:e=null}){this.constructor===o&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.')
if(!e)throw new Error("Font filename must be specified.")
const t=`${this.baseUrl}${e}`
return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=o
class l{constructor(){this.constructor===l&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t,r=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions")
const i=this._createSVG("svg:svg")
return i.setAttribute("version","1.1"),r||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type")
return this._createSVG(e)}_createSVG(e){(0,i.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0
var i=r(1)
const n=3285377520,s=4294901760,a=65535
t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:n,this.h2=e?4294967295&e:n}update(e){let t,r
if("string"==typeof e){t=new Uint8Array(2*e.length),r=0
for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i)
n<=255?t[r++]=n:(t[r++]=n>>>8,t[r++]=255&n)}}else{if(!(0,i.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.")
t=e.slice(),r=t.byteLength}const n=r>>2,o=r-4*n,l=new Uint32Array(t.buffer,0,n)
let c=0,u=0,d=this.h1,h=this.h2
const p=3432918353,f=461845907,m=11601,g=13715
for(let i=0;i<n;i++)1&i?(c=l[i],c=c*p&s|c*m&a,c=c<<15|c>>>17,c=c*f&s|c*g&a,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[i],u=u*p&s|u*m&a,u=u<<15|u>>>17,u=u*f&s|u*g&a,h^=u,h=h<<13|h>>>19,h=5*h+3864292196)
switch(c=0,o){case 3:c^=t[4*n+2]<<16
case 2:c^=t[4*n+1]<<8
case 1:c^=t[4*n],c=c*p&s|c*m&a,c=c<<15|c>>>17,c=c*f&s|c*g&a,1&n?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2
return e^=t>>>1,e=3981806797*e&s|36045*e&a,t=4283543511*t&s|(2950163797*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,e=444984403*e&s|60499*e&a,t=3301882366*t&s|(3120437893*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0
var i=r(1)
t.FontLoader=class{#lt=new Set
constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement))
const t=this.styleElement.sheet
t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e)
this.nativeFontFaces.clear(),this.#lt.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!this.#lt.has(e.loadedName))if((0,i.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:r,style:n}=e,s=new FontFace(t,r,n)
this.addNativeFontFace(s)
try{await s.load(),this.#lt.add(t)}catch{(0,i.warn)(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(s)}}else(0,i.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return
if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e.systemFontInfo)
if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace()
if(t){this.addNativeFontFace(t)
try{await t.loaded}catch(r){throw(0,i.warn)(`Failed to load font '${t.family}': '${r}'.`),e.disableFontFace=!0,r}}return}const t=e.createFontFaceRule()
if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return
await new Promise((t=>{const r=this._queueLoadingCallback(t)
this._prepareFontLoadEvent(e,r)}))}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts
return(0,i.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){let e=!1
return(i.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,r={done:!1,complete:function(){for((0,i.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){const e=t.shift()
setTimeout(e.callback,0)}},callback:e}
return t.push(r),r}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")
return(0,i.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function n(e,t,r,i){return e.substring(0,t)+i+e.substring(t+r)}let s,a
const o=this._document.createElement("canvas")
o.width=1,o.height=1
const l=o.getContext("2d")
let c=0
const u=`lt${Date.now()}${this.loadTestFontId++}`
let d=this._loadTestFont
d=n(d,976,u.length,u)
const h=1482184792
let p=r(d,16)
for(s=0,a=u.length-3;s<a;s+=4)p=p-h+r(u,s)|0
s<u.length&&(p=p-h+r(u+"XXX",s)|0),d=n(d,16,4,(0,i.string32)(p))
const f=`@font-face {font-family:"${u}";src:${`url(data:font/opentype;base64,${btoa(d)});`}}`
this.insertRule(f)
const m=this._document.createElement("div")
m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px"
for(const i of[e.loadedName,u]){const e=this._document.createElement("span")
e.textContent="Hi",e.style.fontFamily=i,m.append(e)}this._document.body.append(m),function e(t,r){if(++c>30)return(0,i.warn)("Load test font never loaded."),void r()
l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(u,(()=>{m.remove(),t.complete()}))}}
t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:r=!1,ignoreErrors:i=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null)
for(const s in e)this[s]=e[s]
this.isEvalSupported=!1!==t,this.disableFontFace=!0===r,this.ignoreErrors=!0===i,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null
let e
if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight}
this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{})
return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null
const e=(0,i.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`
let r
if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`
this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else r=`@font-face {font-family:"${this.loadedName}";src:${t}}`
return this._inspectFont?.(this,t),r}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t]
let r
try{r=e.get(this.loadedName+"_path_"+t)}catch(n){if(!this.ignoreErrors)throw n
return(0,i.warn)(`getPathGenerator - ignoring character: "${n}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.FeatureTest.isEvalSupported){const e=[]
for(const t of r){const r=void 0!==t.args?t.args.join(","):""
e.push("c.",t.cmd,"(",r,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const i of r)"scale"===i.cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0
var i=r(7)
r(1)
const n=function(e){return new Promise(((t,r)=>{require("fs").readFile(e,((e,i)=>{!e&&i?t(new Uint8Array(i)):r(new Error(e))}))}))}
class s extends i.BaseFilterFactory{}t.NodeFilterFactory=s
class a extends i.BaseCanvasFactory{_createCanvas(e,t){return require("canvas").createCanvas(e,t)}}t.NodeCanvasFactory=a
class o extends i.BaseCMapReaderFactory{_fetchData(e,t){return n(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=o
class l extends i.BaseStandardFontDataFactory{_fetchData(e){return n(e)}}t.NodeStandardFontDataFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0
var i=r(1),n=r(6),s=r(12),a=r(13)
const o=4096,l=16
class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){let i
return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,r)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e]
this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,r,i,s,a,o,l,c,u){const[d,h,p,f,m,g]=(0,n.getCurrentTransform)(e)
if(0===h&&0===p){const n=o*d+m,b=Math.round(n),y=l*f+g,v=Math.round(y),w=(o+c)*d+m,x=Math.abs(Math.round(w)-b)||1,_=(l+u)*f+g,S=Math.abs(Math.round(_)-v)||1
return e.setTransform(Math.sign(d),0,0,Math.sign(f),b,v),e.drawImage(t,r,i,s,a,0,0,x,S),e.setTransform(d,h,p,f,m,g),[x,S]}if(0===d&&0===f){const n=l*p+m,b=Math.round(n),y=o*h+g,v=Math.round(y),w=(l+u)*p+m,x=Math.abs(Math.round(w)-b)||1,_=(o+c)*h+g,S=Math.abs(Math.round(_)-v)||1
return e.setTransform(0,Math.sign(h),Math.sign(p),0,b,v),e.drawImage(t,r,i,s,a,0,0,S,x),e.setTransform(d,h,p,f,m,g),[S,x]}e.drawImage(t,r,i,s,a,o,l,c,u)
return[Math.hypot(d,h)*c,Math.hypot(p,f)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this)
return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=i.Util.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){const r=i.Util.applyTransform(t,e),n=i.Util.applyTransform(t.slice(2),e)
this.minX=Math.min(this.minX,r[0],n[0]),this.minY=Math.min(this.minY,r[1],n[1]),this.maxX=Math.max(this.maxX,r[0],n[0]),this.maxY=Math.max(this.maxY,r[1],n[1])}updateScalingPathMinMax(e,t){i.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,r,n,s,a,o,l,c,u){const d=i.Util.bezierBoundingBox(t,r,n,s,a,o,l,c)
if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]))
this.updateRectMinMax(e,d)}getPathBoundingBox(e=s.PathType.FILL,t=null){const r=[this.minX,this.minY,this.maxX,this.maxY]
if(e===s.PathType.STROKE){t||(0,i.unreachable)("Stroke bounding box must include transform.")
const e=i.Util.singularValueDecompose2dScale(t),n=e[0]*this.lineWidth/2,s=e[1]*this.lineWidth/2
r[0]-=n,r[1]-=s,r[2]+=n,r[3]+=s}return r}updateClipFromPath(){const e=i.Util.intersect(this.clipBox,this.getPathBoundingBox())
this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=s.PathType.FILL,t=null){return i.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function h(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0)
const r=t.height,n=t.width,s=r%l,a=(r-s)/l,o=0===s?a:a+1,c=e.createImageData(n,l)
let u,d=0
const h=t.data,p=c.data
let f,m,g,b
if(t.kind===i.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,r=new Uint32Array(p.buffer,0,p.byteLength>>2),b=r.length,y=n+7>>3,v=4294967295,w=i.FeatureTest.isLittleEndian?4278190080:255
for(f=0;f<o;f++){for(g=f<a?l:s,u=0,m=0;m<g;m++){const e=t-d
let i=0
const s=e>y?n:8*e-7,a=-8&s
let o=0,l=0
for(;i<a;i+=8)l=h[d++],r[u++]=128&l?v:w,r[u++]=64&l?v:w,r[u++]=32&l?v:w,r[u++]=16&l?v:w,r[u++]=8&l?v:w,r[u++]=4&l?v:w,r[u++]=2&l?v:w,r[u++]=1&l?v:w
for(;i<s;i++)0===o&&(l=h[d++],o=128),r[u++]=l&o?v:w,o>>=1}for(;u<b;)r[u++]=0
e.putImageData(c,0,f*l)}}else if(t.kind===i.ImageKind.RGBA_32BPP){for(m=0,b=n*l*4,f=0;f<a;f++)p.set(h.subarray(d,d+b)),d+=b,e.putImageData(c,0,m),m+=l
f<o&&(b=n*s*4,p.set(h.subarray(d,d+b)),e.putImageData(c,0,m))}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`)
for(g=l,b=n*g,f=0;f<o;f++){for(f>=a&&(g=s,b=n*g),u=0,m=b;m--;)p[u++]=h[d++],p[u++]=h[d++],p[u++]=h[d++],p[u++]=255
e.putImageData(c,0,f*l)}}}function p(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0)
const r=t.height,i=t.width,n=r%l,s=(r-n)/l,o=0===n?s:s+1,c=e.createImageData(i,l)
let u=0
const d=t.data,h=c.data
for(let p=0;p<o;p++){const t=p<s?l:n;({srcPos:u}=(0,a.convertBlackAndWhiteToRGBA)({src:d,srcPos:u,dest:h,width:i,height:t,nonBlackColor:0})),e.putImageData(c,0,p*l)}}function f(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"]
for(const i of r)void 0!==e[i]&&(t[i]=e[i])
void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function m(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0),!i.isNodeJS){const{filter:t}=e
"none"!==t&&""!==t&&(e.filter="none")}}function g(e,t,r,i){const n=e.length
for(let s=3;s<n;s+=4){const n=e[s]
if(0===n)e[s-3]=t,e[s-2]=r,e[s-1]=i
else if(n<255){const a=255-n
e[s-3]=e[s-3]*n+t*a>>8,e[s-2]=e[s-2]*n+r*a>>8,e[s-1]=e[s-1]*n+i*a>>8}}}function b(e,t,r){const i=e.length,n=1/255
for(let s=3;s<i;s+=4){const i=r?r[e[s]]:e[s]
t[s]=t[s]*i*n|0}}function y(e,t,r){const i=e.length
for(let n=3;n<i;n+=4){const i=77*e[n-3]+152*e[n-2]+28*e[n-1]
t[n]=r?t[n]*r[i>>8]>>8:t[n]*i>>16}}function v(e,t,r,i){const n=i[0],s=i[1],a=i[2]-n,o=i[3]-s
0!==a&&0!==o&&(function(e,t,r,i,n,s,a,o,l,c,u){const d=!!s,h=d?s[0]:0,p=d?s[1]:0,f=d?s[2]:0,m="Luminosity"===n?y:b,v=Math.min(i,Math.ceil(1048576/r))
for(let b=0;b<i;b+=v){const n=Math.min(v,i-b),s=e.getImageData(o-c,b+(l-u),r,n),y=t.getImageData(o,b+l,r,n)
d&&g(s.data,h,p,f),m(s.data,y.data,a),t.putImageData(y,o,b+l)}}(t.context,r,a,o,t.subtype,t.backdrop,t.transferMap,n,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}function w(e,t){const r=i.Util.singularValueDecompose2dScale(e)
r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1])
const s=Math.fround((globalThis.devicePixelRatio||1)*n.PixelsPerInch.PDF_TO_CSS_UNITS)
return void 0!==t?t:r[0]<=s||r[1]<=s}const x=["butt","round","square"],_=["miter","round","bevel"],S={},k={}
class A{constructor(e,t,r,i,n,{optionalContentConfig:s,markedContentStack:a=null},o,l){this.ctx=e,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=i,this.filterFactory=n,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=a||[],this.optionalContentConfig=s,this.cachedCanvases=new c(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l
this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:r=!1,background:i=null}){const s=this.ctx.canvas.width,a=this.ctx.canvas.height,o=this.ctx.fillStyle
if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,s,a),this.ctx.fillStyle=o,r){const e=this.cachedCanvases.getCanvas("transparent",s,a)
this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,n.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),m(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=(0,n.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,r,n){const s=e.argsArray,a=e.fnArray
let o=t||0
const l=s.length
if(l===o)return o
const c=l-o>10&&"function"==typeof r,u=c?Date.now()+15:0
let d=0
const h=this.commonObjs,p=this.objs
let f
for(;;){if(void 0!==n&&o===n.nextBreakPoint)return n.breakIt(o,r),o
if(f=a[o],f!==i.OPS.dependency)this[f].apply(this,s[o])
else for(const e of s[o]){const t=e.startsWith("g_")?h:p
if(!t.has(e))return t.get(e,r),o}if(o++,o===l)return o
if(c&&++d>10){if(Date.now()>u)return r(),o
d=0}}}#ct(){for(;this.stateStack.length||this.inSMaskMode;)this.restore()
this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#ct(),this.cachedCanvases.clear(),this.cachedPatterns.clear()
for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0)
e.clear()}this._cachedBitmapsMap.clear(),this.#ut()}#ut(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background)
if("none"!==e){const t=this.ctx.filter
this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){const r=e.width,i=e.height
let n,s,a=Math.max(Math.hypot(t[0],t[1]),1),o=Math.max(Math.hypot(t[2],t[3]),1),l=r,c=i,u="prescale1"
for(;a>2&&l>1||o>2&&c>1;){let t=l,r=c
a>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),a/=l/t),o>2&&c>1&&(r=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,o/=c/r),n=this.cachedCanvases.getCanvas(u,t,r),s=n.context,s.clearRect(0,0,t,r),s.drawImage(e,0,0,l,c,0,0,t,r),e=n.canvas,l=t,c=r,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:r,height:a}=e,o=this.current.fillColor,l=this.current.patternFill,c=(0,n.getCurrentTransform)(t)
let d,h,f,m
if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer
h=JSON.stringify(l?c:[c.slice(0,4),o]),d=this._cachedBitmapsMap.get(t),d||(d=new Map,this._cachedBitmapsMap.set(t,d))
const r=d.get(h)
if(r&&!l){return{canvas:r,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])}}f=r}f||(m=this.cachedCanvases.getCanvas("maskCanvas",r,a),p(m.context,e))
let g=i.Util.transform(c,[1/r,0,0,-1/a,0,0])
g=i.Util.transform(g,[1,0,0,1,0,-a])
const b=i.Util.applyTransform([0,0],g),y=i.Util.applyTransform([r,a],g),v=i.Util.normalizeRect([b[0],b[1],y[0],y[1]]),x=Math.round(v[2]-v[0])||1,_=Math.round(v[3]-v[1])||1,S=this.cachedCanvases.getCanvas("fillCanvas",x,_),k=S.context,A=Math.min(b[0],y[0]),C=Math.min(b[1],y[1])
k.translate(-A,-C),k.transform(...g),f||(f=this._scaleImage(m.canvas,(0,n.getCurrentTransformInverse)(k)),f=f.img,d&&l&&d.set(h,f)),k.imageSmoothingEnabled=w((0,n.getCurrentTransform)(k),e.interpolate),u(k,f,0,0,f.width,f.height,0,0,r,a),k.globalCompositeOperation="source-in"
const P=i.Util.transform((0,n.getCurrentTransformInverse)(k),[1,0,0,1,-A,-C])
return k.fillStyle=l?o.getPattern(t,this,P,s.PathType.FILL):o,k.fillRect(0,0,r,a),d&&!l&&(this.cachedCanvases.delete("fillCanvas"),d.set(h,S.canvas)),{canvas:S.canvas,offsetX:Math.round(A),offsetY:Math.round(C)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=x[e]}setLineJoin(e){this.ctx.lineJoin=_[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const r=this.ctx
void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r)
break
case"LC":this.setLineCap(r)
break
case"LJ":this.setLineJoin(r)
break
case"ML":this.setMiterLimit(r)
break
case"D":this.setDash(r[0],r[1])
break
case"RI":this.setRenderingIntent(r)
break
case"FL":this.setFlatness(r)
break
case"Font":this.setFont(r[0],r[1])
break
case"CA":this.current.strokeAlpha=r
break
case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r
break
case"BM":this.ctx.globalCompositeOperation=r
break
case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState()
break
case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode
this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode")
const e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,t)
this.suspendedCtx=this.ctx,this.ctx=i.context
const s=this.ctx
s.setTransform(...(0,n.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,s),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.")
e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,r){t.translate(e,r),this.__originalTranslate(e,r)},e.scale=function(e,r){t.scale(e,r),this.__originalScale(e,r)},e.transform=function(e,r,i,n,s,a){t.transform(e,r,i,n,s,a),this.__originalTransform(e,r,i,n,s,a)},e.setTransform=function(e,r,i,n,s,a){t.setTransform(e,r,i,n,s,a),this.__originalSetTransform(e,r,i,n,s,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,r){t.moveTo(e,r),this.__originalMoveTo(e,r)},e.lineTo=function(e,r){t.lineTo(e,r),this.__originalLineTo(e,r)},e.bezierCurveTo=function(e,r,i,n,s,a){t.bezierCurveTo(e,r,i,n,s,a),this.__originalBezierCurveTo(e,r,i,n,s,a)},e.rect=function(e,r,i,n){t.rect(e,r,i,n),this.__originalRect(e,r,i,n)},e.closePath=function(){t.closePath(),this.__originalClosePath()}
e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(s,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode")
this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return
e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height]
const t=this.current.activeSMask
v(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save()
const e=this.current
this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,r,i,n,s){this.ctx.transform(e,t,r,i,n,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){const s=this.ctx,a=this.current
let o,l,c=a.x,u=a.y
const d=(0,n.getCurrentTransform)(s),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],p=h?r.slice(0):null
for(let n=0,f=0,m=e.length;n<m;n++)switch(0|e[n]){case i.OPS.rectangle:c=t[f++],u=t[f++]
const e=t[f++],r=t[f++],n=c+e,m=u+r
s.moveTo(c,u),0===e||0===r?s.lineTo(n,m):(s.lineTo(n,u),s.lineTo(n,m),s.lineTo(c,m)),h||a.updateRectMinMax(d,[c,u,n,m]),s.closePath()
break
case i.OPS.moveTo:c=t[f++],u=t[f++],s.moveTo(c,u),h||a.updatePathMinMax(d,c,u)
break
case i.OPS.lineTo:c=t[f++],u=t[f++],s.lineTo(c,u),h||a.updatePathMinMax(d,c,u)
break
case i.OPS.curveTo:o=c,l=u,c=t[f+4],u=t[f+5],s.bezierCurveTo(t[f],t[f+1],t[f+2],t[f+3],c,u),a.updateCurvePathMinMax(d,o,l,t[f],t[f+1],t[f+2],t[f+3],c,u,p),f+=6
break
case i.OPS.curveTo2:o=c,l=u,s.bezierCurveTo(c,u,t[f],t[f+1],t[f+2],t[f+3]),a.updateCurvePathMinMax(d,o,l,c,u,t[f],t[f+1],t[f+2],t[f+3],p),c=t[f+2],u=t[f+3],f+=4
break
case i.OPS.curveTo3:o=c,l=u,c=t[f+2],u=t[f+3],s.bezierCurveTo(t[f],t[f+1],c,u,c,u),a.updateCurvePathMinMax(d,o,l,t[f],t[f+1],c,u,c,u,p),f+=4
break
case i.OPS.closePath:s.closePath()}h&&a.updateScalingPathMinMax(d,p),a.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(e=!0){const t=this.ctx,r=this.current.strokeColor
t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof r&&r?.getPattern?(t.save(),t.strokeStyle=r.getPattern(t,this,(0,n.getCurrentTransformInverse)(t),s.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e=!0){const t=this.ctx,r=this.current.fillColor
let i=!1
this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,(0,n.getCurrentTransformInverse)(t),s.PathType.FILL),i=!0)
const a=this.current.getClippedPathBoundingBox()
this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=S}eoClip(){this.pendingClip=k}beginText(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx
if(void 0!==e){t.save(),t.beginPath()
for(const r of e)t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize)
t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const r=this.commonObjs.get(e),n=this.current
if(!r)throw new Error(`Can't find font for ${e}`)
if(n.fontMatrix=r.fontMatrix||i.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,r.isType3Font)return
const s=r.loadedName||"sans-serif",a=r.systemFontInfo?.css||`"${s}", ${r.fallbackName}`
let o="normal"
r.black?o="900":r.bold&&(o="bold")
const l=r.italic?"italic":"normal"
let c=t
t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${l} ${o} ${c}px ${a}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,i,n,s){this.current.textMatrix=[e,t,r,i,n,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,s){const a=this.ctx,o=this.current,l=o.font,c=o.textRenderingMode,u=o.fontSize/o.fontSizeScale,d=c&i.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&i.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile
let f
if((l.disableFontFace||h||p)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(a.save(),a.translate(t,r),a.beginPath(),f(a,u),s&&a.setTransform(...s),d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fill(),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fillText(e,t,r),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,r)),h){(this.pendingTextPaths||=[]).push({transform:(0,n.getCurrentTransform)(a),x:t,y:r,fontSize:u,addToPath:f})}}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10)
e.scale(1.5,1),e.fillText("I",0,10)
const t=e.getImageData(0,0,10,10).data
let r=!1
for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){r=!0
break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",r)}showText(e){const t=this.current,r=t.font
if(r.isType3Font)return this.showType3Text(e)
const a=t.fontSize
if(0===a)return
const o=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,p=e.length,f=r.vertical,m=f?1:-1,g=r.defaultVMetrics,b=a*t.fontMatrix[0],y=t.textRenderingMode===i.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill
let v
if(o.save(),o.transform(...t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1),t.patternFill){o.save()
const e=t.fillColor.getPattern(o,this,(0,n.getCurrentTransformInverse)(o),s.PathType.FILL)
v=(0,n.getCurrentTransform)(o),o.restore(),o.fillStyle=e}let w=t.lineWidth
const x=t.textMatrixScale
if(0===x||0===w){const e=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK
e!==i.TextRenderingMode.STROKE&&e!==i.TextRenderingMode.FILL_STROKE||(w=this.getSinglePixelWidth())}else w/=x
if(1!==l&&(o.scale(l,l),w/=l),o.lineWidth=w,r.isInvalidPDFjsFont){const r=[]
let i=0
for(const t of e)r.push(t.unicode),i+=t.width
return o.fillText(r.join(""),0,0),t.x+=i*b*h,o.restore(),void this.compose()}let _,S=0
for(_=0;_<p;++_){const t=e[_]
if("number"==typeof t){S+=m*t*a/1e3
continue}let i=!1
const n=(t.isSpace?u:0)+c,s=t.fontChar,h=t.accent
let p,w,x=t.width
if(f){const e=t.vmetric||g,r=-(t.vmetric?e[1]:.5*x)*b,i=e[2]*b
x=e?-e[0]:x,p=r/l,w=(S+i)/l}else p=S/l,w=0
if(r.remeasure&&x>0){const e=1e3*o.measureText(s).width/a*l
if(x<e&&this.isFontSubpixelAAEnabled){const t=x/e
i=!0,o.save(),o.scale(t,1),p/=t}else x!==e&&(p+=(x-e)/2e3*a/l)}if(this.contentVisible&&(t.isInFont||r.missingFile))if(y&&!h)o.fillText(s,p,w)
else if(this.paintChar(s,p,w,v),h){const e=p+a*h.offset.x/l,t=w-a*h.offset.y/l
this.paintChar(h.fontChar,e,t,v)}S+=f?x*b-n*d:x*b+n*d,i&&o.restore()}f?t.y-=S:t.x+=S*h,o.restore(),this.compose()}showType3Text(e){const t=this.ctx,r=this.current,n=r.font,s=r.fontSize,a=r.fontDirection,o=n.vertical?1:-1,l=r.charSpacing,c=r.wordSpacing,u=r.textHScale*a,d=r.fontMatrix||i.FONT_IDENTITY_MATRIX,h=e.length
let p,f,m,g
if(!(r.textRenderingMode===i.TextRenderingMode.INVISIBLE)&&0!==s){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...r.textMatrix),t.translate(r.x,r.y),t.scale(u,a),p=0;p<h;++p){if(f=e[p],"number"==typeof f){g=o*f*s/1e3,this.ctx.translate(g,0),r.x+=g*u
continue}const a=(f.isSpace?c:0)+l,h=n.charProcOperatorList[f.operatorListId]
if(!h){(0,i.warn)(`Type3 character "${f.operatorListId}" is not available.`)
continue}this.contentVisible&&(this.processingType3=f,this.save(),t.scale(s,s),t.transform(...d),this.executeOperatorList(h),this.restore())
m=i.Util.applyTransform([f.width,0],d)[0]*s+a,t.translate(m,0),r.x+=m*u}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,r,i,n,s){this.ctx.rect(r,i,n-r,s-i),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t
if("TilingPattern"===e[0]){const r=e[1],i=this.baseTransform||(0,n.getCurrentTransform)(this.ctx),a={createCanvasGraphics:e=>new A(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})}
t=new s.TilingPattern(e,r,this.ctx,a,i)}else t=this._getPattern(e[1],e[2])
return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){const n=i.Util.makeHexColor(e,t,r)
this.ctx.strokeStyle=n,this.current.strokeColor=n}setFillRGBColor(e,t,r){const n=i.Util.makeHexColor(e,t,r)
this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1}_getPattern(e,t=null){let r
return this.cachedPatterns.has(e)?r=this.cachedPatterns.get(e):(r=(0,s.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,r)),t&&(r.matrix=t),r}shadingFill(e){if(!this.contentVisible)return
const t=this.ctx
this.save()
const r=this._getPattern(e)
t.fillStyle=r.getPattern(t,this,(0,n.getCurrentTransformInverse)(t),s.PathType.SHADING)
const a=(0,n.getCurrentTransformInverse)(t)
if(a){const{width:e,height:r}=t.canvas,[n,s,o,l]=i.Util.getAxialAlignedBoundingBox([0,0,e,r],a)
this.ctx.fillRect(n,s,o-n,l-s)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10)
this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,n.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],r=t[3]-t[1]
this.ctx.rect(t[0],t[1],e,r),this.current.updateRectMinMax((0,n.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return
this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null)
const t=this.ctx
e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.")
const r=(0,n.getCurrentTransform)(t)
if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.")
let s=i.Util.getAxialAlignedBoundingBox(e.bbox,(0,n.getCurrentTransform)(t))
const a=[0,0,t.canvas.width,t.canvas.height]
s=i.Util.intersect(s,a)||[0,0,0,0]
const l=Math.floor(s[0]),c=Math.floor(s[1])
let u=Math.max(Math.ceil(s[2])-l,1),d=Math.max(Math.ceil(s[3])-c,1),h=1,p=1
u>o&&(h=u/o,u=o),d>o&&(p=d/o,d=o),this.current.startNewPathAndClipBox([0,0,u,d])
let m="groupAt"+this.groupLevel
e.smask&&(m+="_smask_"+this.smaskCounter++%2)
const g=this.cachedCanvases.getCanvas(m,u,d),b=g.context
b.scale(1/h,1/p),b.translate(-l,-c),b.transform(...r),e.smask?this.smaskStack.push({canvas:g.canvas,context:b,offsetX:l,offsetY:c,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(h,p),t.save()),f(t,b),this.ctx=b,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return
this.groupLevel--
const t=this.ctx,r=this.groupStack.pop()
if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore()
else{this.ctx.restore()
const e=(0,n.getCurrentTransform)(this.ctx)
this.restore(),this.ctx.save(),this.ctx.setTransform(...e)
const r=i.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e)
this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(r)}}beginAnnotation(e,t,r,s,a){if(this.#ct(),m(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const s=t[2]-t[0],o=t[3]-t[1]
if(a&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=o
const[a,l]=i.Util.singularValueDecompose2dScale((0,n.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(s*this.outputScaleX*c),d=Math.ceil(o*this.outputScaleY*c)
this.annotationCanvas=this.canvasFactory.create(u,d)
const{canvas:h,context:p}=this.annotationCanvas
this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.save(),this.ctx.setTransform(a,0,0,-l,0,o*l),m(this.ctx)}else m(this.ctx),this.ctx.rect(t[0],t[1],s,o),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...s)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#ut(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return
const t=e.count;(e=this.getObject(e.data,e)).count=t
const r=this.ctx,i=this.processingType3
if(i&&(void 0===i.compiled&&(i.compiled=function(e){const{width:t,height:r}=e
if(t>1e3||r>1e3)return null
const i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),n=t+1
let s,a,o,l=new Uint8Array(n*(r+1))
const c=t+7&-8
let u=new Uint8Array(c*r),d=0
for(const m of e.data){let e=128
for(;e>0;)u[d++]=m&e?0:255,e>>=1}let h=0
for(d=0,0!==u[d]&&(l[0]=1,++h),a=1;a<t;a++)u[d]!==u[d+1]&&(l[a]=u[d]?2:1,++h),d++
for(0!==u[d]&&(l[a]=2,++h),s=1;s<r;s++){d=s*c,o=s*n,u[d-c]!==u[d]&&(l[o]=u[d]?1:8,++h)
let e=(u[d]?4:0)+(u[d-c]?8:0)
for(a=1;a<t;a++)e=(e>>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0),i[e]&&(l[o+a]=i[e],++h),d++
if(u[d-c]!==u[d]&&(l[o+a]=u[d]?2:4,++h),h>1e3)return null}for(d=c*(r-1),o=s*n,0!==u[d]&&(l[o]=8,++h),a=1;a<t;a++)u[d]!==u[d+1]&&(l[o+a]=u[d]?4:8,++h),d++
if(0!==u[d]&&(l[o+a]=4,++h),h>1e3)return null
const p=new Int32Array([0,n,-1,0,-n,0,0,0,1]),f=new Path2D
for(s=0;h&&s<=r;s++){let e=s*n
const r=e+t
for(;e<r&&!l[e];)e++
if(e===r)continue
f.moveTo(e%n,s)
const i=e
let a=l[e]
do{const t=p[a]
do{e+=t}while(!l[e])
const r=l[e]
5!==r&&10!==r?(a=r,l[e]=0):(a=r&51*a>>4,l[e]&=a>>2|a<<2),f.lineTo(e%n,e/n|0),l[e]||--h}while(i!==e);--s}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.fill(f),e.beginPath(),e.restore()}}(e)),i.compiled))return void i.compiled(r)
const n=this._createMaskCanvas(e),s=n.canvas
r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(s,n.offsetX,n.offsetY),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,r=0,s=0,a,o){if(!this.contentVisible)return
e=this.getObject(e.data,e)
const l=this.ctx
l.save()
const c=(0,n.getCurrentTransform)(l)
l.transform(t,r,s,a,0,0)
const u=this._createMaskCanvas(e)
l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5])
for(let n=0,d=o.length;n<d;n+=2){const e=i.Util.transform(c,[t,r,s,a,o[n],o[n+1]]),[d,h]=i.Util.applyTransform([0,0],e)
l.drawImage(u.canvas,d,h)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return
const t=this.ctx,r=this.current.fillColor,i=this.current.patternFill
for(const a of e){const{data:e,width:o,height:l,transform:c}=a,d=this.cachedCanvases.getCanvas("maskCanvas",o,l),h=d.context
h.save()
p(h,this.getObject(e,a)),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this,(0,n.getCurrentTransformInverse)(t),s.PathType.FILL):r,h.fillRect(0,0,o,l),h.restore(),t.save(),t.transform(...c),t.scale(1,-1),u(t,d.canvas,0,0,o,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return
const t=this.getObject(e)
t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,r,n){if(!this.contentVisible)return
const s=this.getObject(e)
if(!s)return void(0,i.warn)("Dependent image isn't ready yet")
const a=s.width,o=s.height,l=[]
for(let i=0,c=n.length;i<c;i+=2)l.push({transform:[t,0,0,r,n[i],n[i+1]],x:0,y:0,w:a,h:o})
this.paintInlineImageXObjectGroup(s,l)}applyTransferMapsToCanvas(e){return"none"!==this.current.transferMaps&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if("none"===this.current.transferMaps)return e.bitmap
const{bitmap:t,width:r,height:i}=e,n=this.cachedCanvases.getCanvas("inlineImage",r,i),s=n.context
return s.filter=this.current.transferMaps,s.drawImage(t,0,0),s.filter="none",n.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return
const t=e.width,r=e.height,s=this.ctx
if(this.save(),!i.isNodeJS){const{filter:e}=s
"none"!==e&&""!==e&&(s.filter="none")}let a
if(s.scale(1/t,-1/r),e.bitmap)a=this.applyTransferMapsToBitmap(e)
else if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e
else{const i=this.cachedCanvases.getCanvas("inlineImage",t,r).context
h(i,e),a=this.applyTransferMapsToCanvas(i)}const o=this._scaleImage(a,(0,n.getCurrentTransformInverse)(s))
s.imageSmoothingEnabled=w((0,n.getCurrentTransform)(s),e.interpolate),u(s,o.img,0,0,o.paintWidth,o.paintHeight,0,-r,t,r),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return
const r=this.ctx
let i
if(e.bitmap)i=e.bitmap
else{const t=e.width,r=e.height,n=this.cachedCanvases.getCanvas("inlineImage",t,r).context
h(n,e),i=this.applyTransferMapsToCanvas(n)}for(const n of t)r.save(),r.transform(...n.transform),r.scale(1,-1),u(r,i,n.x,n.y,n.w,n.h,0,-1,1,1),r.restore()
this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip()
this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e)
const r=this.ctx
this.pendingClip&&(t||(this.pendingClip===k?r.clip("evenodd"):r.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),r.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,n.getCurrentTransform)(this.ctx)
if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]))
else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3])
this._cachedGetSinglePixelWidth=Math.max(r,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:e}=this.current,{a:t,b:r,c:i,d:n}=this.ctx.getTransform()
let s,a
if(0===r&&0===i){const r=Math.abs(t),i=Math.abs(n)
if(r===i)if(0===e)s=a=1/r
else{const t=r*e
s=a=t<1?1/t:1}else if(0===e)s=1/r,a=1/i
else{const t=r*e,n=i*e
s=t<1?1/t:1,a=n<1?1/n:1}}else{const o=Math.abs(t*n-r*i),l=Math.hypot(t,r),c=Math.hypot(i,n)
if(0===e)s=c/o,a=l/o
else{const t=e*o
s=c>t?c/t:1,a=l>t?l/t:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:r}=this.current,[i,n]=this.getScaleForStroking()
if(t.lineWidth=r||1,1===i&&1===n)return void t.stroke()
const s=t.getLineDash()
if(e&&t.save(),t.scale(i,n),s.length>0){const e=Math.max(i,n)
t.setLineDash(s.map((t=>t/e))),t.lineDashOffset/=e}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1
return!0}}t.CanvasGraphics=A
for(const C in i.OPS)void 0!==A.prototype[C]&&(A.prototype[i.OPS[C]]=A.prototype[C])},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e)
case"Mesh":return new d(e)
case"Dummy":return new h}throw new Error(`Unknown IR type: ${e[0]}`)}
var i=r(1),n=r(6)
const s={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"}
function a(e,t){if(!t)return
const r=t[2]-t[0],i=t[3]-t[1],n=new Path2D
n.rect(t[0],t[1],r,i),e.clip(n)}t.PathType=s
class o{constructor(){this.constructor===o&&(0,i.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,i.unreachable)("Abstract method `getPattern` called.")}}class l extends o{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t
"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1))
for(const r of this._colorStops)t.addColorStop(r[0],r[1])
return t}getPattern(e,t,r,o){let l
if(o===s.STROKE||o===s.FILL){const s=t.current.getClippedPathBoundingBox(o,(0,n.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(s[2]-s[0])||1,u=Math.ceil(s[3]-s[1])||1,d=t.cachedCanvases.getCanvas("pattern",c,u,!0),h=d.context
h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-s[0],-s[1]),r=i.Util.transform(r,[1,0,0,1,s[0],s[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),a(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(d.canvas,"no-repeat")
const p=new DOMMatrix(r)
l.setTransform(p)}else a(e,this._bbox),l=this._createGradient(e)
return l}}function c(e,t,r,i,n,s,a,o){const l=t.coords,c=t.colors,u=e.data,d=4*e.width
let h
l[r+1]>l[i+1]&&(h=r,r=i,i=h,h=s,s=a,a=h),l[i+1]>l[n+1]&&(h=i,i=n,n=h,h=a,a=o,o=h),l[r+1]>l[i+1]&&(h=r,r=i,i=h,h=s,s=a,a=h)
const p=(l[r]+t.offsetX)*t.scaleX,f=(l[r+1]+t.offsetY)*t.scaleY,m=(l[i]+t.offsetX)*t.scaleX,g=(l[i+1]+t.offsetY)*t.scaleY,b=(l[n]+t.offsetX)*t.scaleX,y=(l[n+1]+t.offsetY)*t.scaleY
if(f>=y)return
const v=c[s],w=c[s+1],x=c[s+2],_=c[a],S=c[a+1],k=c[a+2],A=c[o],C=c[o+1],P=c[o+2],O=Math.round(f),E=Math.round(y)
let T,M,I,F,N,R,D,j
for(let L=O;L<=E;L++){if(L<g){const e=L<f?0:(f-L)/(f-g)
T=p-(p-m)*e,M=v-(v-_)*e,I=w-(w-S)*e,F=x-(x-k)*e}else{let e
e=L>y?1:g===y?0:(g-L)/(g-y),T=m-(m-b)*e,M=_-(_-A)*e,I=S-(S-C)*e,F=k-(k-P)*e}let e
e=L<f?0:L>y?1:(f-L)/(f-y),N=p-(p-b)*e,R=v-(v-A)*e,D=w-(w-C)*e,j=x-(x-P)*e
const t=Math.round(Math.min(T,N)),r=Math.round(Math.max(T,N))
let i=d*L+4*t
for(let n=t;n<=r;n++)e=(T-n)/(T-N),e<0?e=0:e>1&&(e=1),u[i++]=M-(M-R)*e|0,u[i++]=I-(I-D)*e|0,u[i++]=F-(F-j)*e|0,u[i++]=255}}function u(e,t,r){const i=t.coords,n=t.colors
let s,a
switch(t.type){case"lattice":const o=t.verticesPerRow,l=Math.floor(i.length/o)-1,u=o-1
for(s=0;s<l;s++){let t=s*o
for(let s=0;s<u;s++,t++)c(e,r,i[t],i[t+1],i[t+o],n[t],n[t+1],n[t+o]),c(e,r,i[t+o+1],i[t+1],i[t+o],n[t+o+1],n[t+1],n[t+o])}break
case"triangles":for(s=0,a=i.length;s<a;s+=3)c(e,r,i[s],i[s+1],i[s+2],n[s],n[s+1],n[s+2])
break
default:throw new Error("illegal figure")}}class d extends o{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,r){const i=Math.floor(this._bounds[0]),n=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-i,a=Math.ceil(this._bounds[3])-n,o=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),c=s/o,d=a/l,h={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-n,scaleX:1/c,scaleY:1/d},p=o+4,f=l+4,m=r.getCanvas("mesh",p,f,!1),g=m.context,b=g.createImageData(o,l)
if(t){const e=b.data
for(let r=0,i=e.length;r<i;r+=4)e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=255}for(const y of this._figures)u(b,y,h)
g.putImageData(b,2,2)
return{canvas:m.canvas,offsetX:i-2*c,offsetY:n-2*d,scaleX:c,scaleY:d}}getPattern(e,t,r,o){let l
if(a(e,this._bbox),o===s.SHADING)l=i.Util.singularValueDecompose2dScale((0,n.getCurrentTransform)(e))
else if(l=i.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=i.Util.singularValueDecompose2dScale(this.matrix)
l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,o===s.SHADING?null:this._background,t.cachedCanvases)
return o!==s.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class h extends o{getPattern(){return"hotpink"}}const p=1,f=2
class m{static MAX_PATTERN_SIZE=3e3
constructor(e,t,r,i,n){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=r,this.canvasGraphicsFactory=i,this.baseTransform=n}createPatternCanvas(e){const t=this.operatorList,r=this.bbox,s=this.xstep,a=this.ystep,o=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,i.info)("TilingType: "+l)
const d=r[0],h=r[1],p=r[2],f=r[3],m=i.Util.singularValueDecompose2dScale(this.matrix),g=i.Util.singularValueDecompose2dScale(this.baseTransform),b=[m[0]*g[0],m[1]*g[1]],y=this.getSizeAndScale(s,this.ctx.canvas.width,b[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,b[1]),w=e.cachedCanvases.getCanvas("pattern",y.size,v.size,!0),x=w.context,_=u.createCanvasGraphics(x)
_.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,c)
let S=d,k=h,A=p,C=f
return d<0&&(S=0,A+=Math.abs(d)),h<0&&(k=0,C+=Math.abs(h)),x.translate(-y.scale*S,-v.scale*k),_.transform(y.scale,0,0,v.scale,0,0),x.save(),this.clipBbox(_,S,k,A,C),_.baseTransform=(0,n.getCurrentTransform)(_.ctx),_.executeOperatorList(t),_.endDrawing(),{canvas:w.canvas,scaleX:y.scale,scaleY:v.scale,offsetX:S,offsetY:k}}getSizeAndScale(e,t,r){e=Math.abs(e)
const i=Math.max(m.MAX_PATTERN_SIZE,t)
let n=Math.ceil(e*r)
return n>=i?n=i:r=n/e,{scale:r,size:n}}clipBbox(e,t,r,i,s){const a=i-t,o=s-r
e.ctx.rect(t,r,a,o),e.current.updateRectMinMax((0,n.getCurrentTransform)(e.ctx),[t,r,i,s]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){const n=e.ctx,s=e.current
switch(t){case p:const e=this.ctx
n.fillStyle=e.fillStyle,n.strokeStyle=e.strokeStyle,s.fillColor=e.fillStyle,s.strokeColor=e.strokeStyle
break
case f:const a=i.Util.makeHexColor(r[0],r[1],r[2])
n.fillStyle=a,n.strokeStyle=a,s.fillColor=a,s.strokeColor=a
break
default:throw new i.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,r,n){let a=r
n!==s.SHADING&&(a=i.Util.transform(a,t.baseTransform),this.matrix&&(a=i.Util.transform(a,this.matrix)))
const o=this.createPatternCanvas(t)
let l=new DOMMatrix(a)
l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY)
const c=e.createPattern(o.canvas,"repeat")
return c.setTransform(l),c}}t.TilingPattern=m},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=n,t.convertToRGBA=function(e){switch(e.kind){case i.ImageKind.GRAYSCALE_1BPP:return n(e)
case i.ImageKind.RGB_24BPP:return function({src:e,srcPos:t=0,dest:r,destPos:n=0,width:s,height:a}){let o=0
const l=e.length>>2,c=new Uint32Array(e.buffer,t,l)
if(i.FeatureTest.isLittleEndian){for(;o<l-2;o+=3,n+=4){const e=c[o],t=c[o+1],i=c[o+2]
r[n]=4278190080|e,r[n+1]=e>>>24|t<<8|4278190080,r[n+2]=t>>>16|i<<16|4278190080,r[n+3]=i>>>8|4278190080}for(let t=4*o,i=e.length;t<i;t+=3)r[n++]=e[t]|e[t+1]<<8|e[t+2]<<16|4278190080}else{for(;o<l-2;o+=3,n+=4){const e=c[o],t=c[o+1],i=c[o+2]
r[n]=255|e,r[n+1]=e<<24|t>>>8|255,r[n+2]=t<<16|i>>>16|255,r[n+3]=i<<8|255}for(let t=4*o,i=e.length;t<i;t+=3)r[n++]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|255}return{srcPos:t,destPos:n}}(e)}return null},t.grayToRGBA=function(e,t){if(i.FeatureTest.isLittleEndian)for(let r=0,i=e.length;r<i;r++)t[r]=65793*e[r]|4278190080
else for(let r=0,i=e.length;r<i;r++)t[r]=16843008*e[r]|255}
var i=r(1)
function n({src:e,srcPos:t=0,dest:r,width:n,height:s,nonBlackColor:a=4294967295,inverseDecode:o=!1}){const l=i.FeatureTest.isLittleEndian?4278190080:255,[c,u]=o?[a,l]:[l,a],d=n>>3,h=7&n,p=e.length
r=new Uint32Array(r.buffer)
let f=0
for(let i=0;i<s;i++){for(const n=t+d;t<n;t++){const i=t<p?e[t]:255
r[f++]=128&i?u:c,r[f++]=64&i?u:c,r[f++]=32&i?u:c,r[f++]=16&i?u:c,r[f++]=8&i?u:c,r[f++]=4&i?u:c,r[f++]=2&i?u:c,r[f++]=1&i?u:c}if(0===h)continue
const i=t<p?e[t++]:255
for(let e=0;e<h;e++)r[f++]=i&1<<7-e?u:c}return{srcPos:t,destPos:f}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0
const r=Object.create(null)
t.GlobalWorkerOptions=r,r.workerPort=null,r.workerSrc=""},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0
var i=r(1)
const n=1,s=2,a=1,o=2,l=3,c=4,u=5,d=6,h=7,p=8
function f(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new i.AbortException(e.message)
case"MissingPDFException":return new i.MissingPDFException(e.message)
case"PasswordException":return new i.PasswordException(e.message,e.code)
case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status)
case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details)
default:return new i.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data
if(t.targetName!==this.sourceName)return
if(t.stream)return void this.#dt(t)
if(t.callback){const e=t.callbackId,r=this.callbackCapabilities[e]
if(!r)throw new Error(`Cannot resolve callback ${e}`)
if(delete this.callbackCapabilities[e],t.callback===n)r.resolve(t.data)
else{if(t.callback!==s)throw new Error("Unexpected callback case")
r.reject(f(t.reason))}return}const i=this.actionHandler[t.action]
if(!i)throw new Error(`Unknown action from worker: ${t.action}`)
if(t.callbackId){const e=this.sourceName,a=t.sourceName
new Promise((function(e){e(i(t.data))})).then((function(i){r.postMessage({sourceName:e,targetName:a,callback:n,callbackId:t.callbackId,data:i})}),(function(i){r.postMessage({sourceName:e,targetName:a,callback:s,callbackId:t.callbackId,reason:f(i)})}))}else t.streamId?this.#ht(t):i(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler
if(r[e])throw new Error(`There is already an actionName called "${e}"`)
r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const n=this.callbackId++,s=new i.PromiseCapability
this.callbackCapabilities[n]=s
try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(a){s.reject(a)}return s.promise}sendWithStream(e,t,r,n){const s=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj
return new ReadableStream({start:r=>{const a=new i.PromiseCapability
return this.streamControllers[s]={controller:r,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:o,targetName:l,action:e,streamId:s,data:t,desiredSize:r.desiredSize},n),a.promise},pull:e=>{const t=new i.PromiseCapability
return this.streamControllers[s].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:d,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,i.assert)(e instanceof Error,"cancel must have a valid reason")
const t=new i.PromiseCapability
return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:a,streamId:s,reason:f(e)}),t.promise}},r)}#ht(e){const t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,a=this,o=this.actionHandler[e.action],d={enqueue(e,a=1,o){if(this.isCancelled)return
const l=this.desiredSize
this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=new i.PromiseCapability,this.ready=this.sinkCapability.promise),s.postMessage({sourceName:r,targetName:n,stream:c,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:u,streamId:t,reason:f(e)}))},sinkCapability:new i.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null}
d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(o(e.data,d))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:p,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:p,streamId:t,reason:f(e)})}))}#dt(e){const t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t]
switch(e.stream){case p:e.success?m.startCall.resolve():m.startCall.reject(f(e.reason))
break
case h:e.success?m.pullCall.resolve():m.pullCall.reject(f(e.reason))
break
case d:if(!g){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,success:!0})
break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull?.())})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,reason:f(e)})}))
break
case c:if((0,i.assert)(m,"enqueue should have stream controller"),m.isClosed)break
m.controller.enqueue(e.chunk)
break
case l:if((0,i.assert)(m,"close should have stream controller"),m.isClosed)break
m.isClosed=!0,m.controller.close(),this.#pt(m,t)
break
case u:(0,i.assert)(m,"error should have stream controller"),m.controller.error(f(e.reason)),this.#pt(m,t)
break
case o:e.success?m.cancelCall.resolve():m.cancelCall.reject(f(e.reason)),this.#pt(m,t)
break
case a:if(!g)break
new Promise((function(t){t(g.onCancel?.(f(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,reason:f(e)})})),g.sinkCapability.reject(f(e.reason)),g.isCancelled=!0,delete this.streamSinks[t]
break
default:throw new Error("Unexpected stream case")}}async#pt(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0
var i=r(1)
t.Metadata=class{#ft
#mt
constructor({parsedData:e,rawData:t}){this.#ft=e,this.#mt=t}getRaw(){return this.#mt}get(e){return this.#ft.get(e)??null}getAll(){return(0,i.objectFromMap)(this.#ft)}has(e){return this.#ft.has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0
var i=r(1),n=r(8)
const s=Symbol("INTERNAL")
class a{#gt=!0
constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#gt}_setVisible(e,t){e!==s&&(0,i.unreachable)("Internal method `_setVisible` called."),this.#gt=t}}t.OptionalContentConfig=class{#bt=null
#yt=new Map
#vt=null
#wt=null
constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#wt=e.order
for(const t of e.groups)this.#yt.set(t.id,new a(t.name,t.intent))
if("OFF"===e.baseState)for(const e of this.#yt.values())e._setVisible(s,!1)
for(const t of e.on)this.#yt.get(t)._setVisible(s,!0)
for(const t of e.off)this.#yt.get(t)._setVisible(s,!1)
this.#vt=this.getHash()}}#xt(e){const t=e.length
if(t<2)return!0
const r=e[0]
for(let n=1;n<t;n++){const t=e[n]
let s
if(Array.isArray(t))s=this.#xt(t)
else{if(!this.#yt.has(t))return(0,i.warn)(`Optional content group not found: ${t}`),!0
s=this.#yt.get(t).visible}switch(r){case"And":if(!s)return!1
break
case"Or":if(s)return!0
break
case"Not":return!s
default:return!0}}return"And"===r}isVisible(e){if(0===this.#yt.size)return!0
if(!e)return(0,i.warn)("Optional content group not defined."),!0
if("OCG"===e.type)return this.#yt.has(e.id)?this.#yt.get(e.id).visible:((0,i.warn)(`Optional content group not found: ${e.id}`),!0)
if("OCMD"===e.type){if(e.expression)return this.#xt(e.expression)
if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!this.#yt.has(t))return(0,i.warn)(`Optional content group not found: ${t}`),!0
if(this.#yt.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!this.#yt.has(t))return(0,i.warn)(`Optional content group not found: ${t}`),!0
if(!this.#yt.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!this.#yt.has(t))return(0,i.warn)(`Optional content group not found: ${t}`),!0
if(!this.#yt.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!this.#yt.has(t))return(0,i.warn)(`Optional content group not found: ${t}`),!0
if(this.#yt.get(t).visible)return!1}return!0}return(0,i.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,i.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){this.#yt.has(e)?(this.#yt.get(e)._setVisible(s,!!t),this.#bt=null):(0,i.warn)(`Optional content group not found: ${e}`)}get hasInitialVisibility(){return null===this.#vt||this.getHash()===this.#vt}getOrder(){return this.#yt.size?this.#wt?this.#wt.slice():[...this.#yt.keys()]:null}getGroups(){return this.#yt.size>0?(0,i.objectFromMap)(this.#yt):null}getGroup(e){return this.#yt.get(e)||null}getHash(){if(null!==this.#bt)return this.#bt
const e=new n.MurmurHash3_64
for(const[t,r]of this.#yt)e.update(`${t}:${r.visible}`)
return this.#bt=e.hexdigest()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0
var i=r(1),n=r(6)
t.PDFDataTransportStream=class{constructor({length:e,initialData:t,progressiveDone:r=!1,contentDispositionFilename:n=null,disableRange:s=!1,disableStream:a=!1},o){if((0,i.assert)(o,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=r,this._contentDispositionFilename=n,t?.length>0){const e=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer
this._queuedChunks.push(e)}this._pdfDataRangeTransport=o,this._isStreamingSupported=!a,this._isRangeSupported=!s,this._contentLength=e,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:e,chunk:t}){const r=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer
if(void 0===e)this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r)
else{const t=this._rangeReaders.some((function(t){return t._begin===e&&(t._enqueue(r),!0)}));(0,i.assert)(t,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){void 0===e.total?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e)
t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.")
const e=this._queuedChunks
return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=new a(this,e,t)
return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e)
for(const t of this._rangeReaders.slice(0))t.cancel(e)
this._pdfDataRangeTransport.abort()}}
class s{constructor(e,t,r=!1,i=null){this._stream=e,this._done=r||!1,this._filename=(0,n.isPdfFile)(i)?i:null,this._queuedChunks=t||[],this._loaded=0
for(const n of this._queuedChunks)this._loaded+=n.byteLength
this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e)
this._loaded+=e.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0}
const e=new i.PromiseCapability
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e
else{this._requests.shift().resolve({value:e,done:!1})
for(const e of this._requests)e.resolve({value:void 0,done:!0})
this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk
return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0}
const e=new i.PromiseCapability
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0
var i=r(1),n=r(20)
function s(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){const t=new Headers
for(const r in e){const i=e[r]
void 0!==i&&t.append(r,i)}return t}function o(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,i.warn)(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=new c(this,e,t)
return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null
const t=e.source
this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new i.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders)
const r=t.url
fetch(r,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,r)
this._reader=e.body.getReader(),this._headersCapability.resolve()
const t=t=>e.headers.get(t),{allowRangeRequests:s,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new i.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise
const{value:e,done:t}=await this._reader.read()
return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:o(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class c{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0
const o=e.source
this._withCredentials=o.withCredentials||!1,this._readCapability=new i.PromiseCapability,this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`)
const l=o.url
fetch(l,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,l)
this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise
const{value:e,done:t}=await this._reader.read()
return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:o(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){if(404===e||0===e&&t.startsWith("file:"))return new i.MissingPDFException('Missing PDF "'+t+'".')
return new i.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition")
if(t){let e=(0,n.getFilenameFromContentDispositionHeader)(t)
if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,s.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:i}){const n={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10)
if(!Number.isInteger(s))return n
if(n.suggestedLength=s,s<=2*r)return n
if(i||!t)return n
if("bytes"!==e("Accept-Ranges"))return n
if("identity"!==(e("Content-Encoding")||"identity"))return n
return n.allowRangeRequests=!0,n},t.validateResponseStatus=function(e){return 200===e||206===e}
var i=r(1),n=r(21),s=r(6)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,r=n("filename\\*","i").exec(e)
if(r){r=r[1]
let e=o(r)
return e=unescape(e),e=l(e),e=c(e),a(e)}if(r=function(e){const t=[]
let r
const i=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig")
for(;null!==(r=i.exec(e));){let[,e,i,n]=r
if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[i,n]}const s=[]
for(let n=0;n<t.length&&n in t;++n){let[e,r]=t[n]
r=o(r),e&&(r=unescape(r),0===n&&(r=l(r))),s.push(r)}return s.join("")}(e),r){return a(c(r))}if(r=n("filename","i").exec(e),r){r=r[1]
let e=o(r)
return e=c(e),a(e)}function n(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function s(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r
try{const n=new TextDecoder(e,{fatal:!0}),s=(0,i.stringToBytes)(r)
r=n.decode(s),t=!1}catch{}}return r}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=s("utf-8",e),t&&(e=s("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"')
for(let e=0;e<t.length;++e){const r=t[e].indexOf('"');-1!==r&&(t[e]=t[e].slice(0,r),t.length=e+1),t[e]=t[e].replaceAll(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'")
if(-1===t)return e
return s(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,i){if("q"===r||"Q"===r)return s(t,i=(i=i.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))
try{i=atob(i)}catch{}return s(t,i)}))}return""}
var i=r(1)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0
var i=r(1),n=r(20)
class s{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){const i={begin:e,end:t}
for(const n in r)i[n]=r[n]
return this.request(i)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,r=this.currXhrId++,i=this.pendingRequests[r]={xhr:t}
t.open("GET",this.url),t.withCredentials=this.withCredentials
for(const n in this.httpHeaders){const e=this.httpHeaders[n]
void 0!==e&&t.setRequestHeader(n,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){const r=this.pendingRequests[e]
r&&r.onProgress?.(t)}onStateChange(e,t){const r=this.pendingRequests[e]
if(!r)return
const n=r.xhr
if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4!==n.readyState)return
if(!(e in this.pendingRequests))return
if(delete this.pendingRequests[e],0===n.status&&this.isHttp)return void r.onError?.(n.status)
const s=n.status||200
if(!(200===s&&206===r.expectedStatus)&&s!==r.expectedStatus)return void r.onError?.(n.status)
const a=function(e){const t=e.response
return"string"!=typeof t?t:(0,i.stringToBytes)(t).buffer}(n)
if(206===s){const e=n.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e)
r.onDone({begin:parseInt(t[1],10),chunk:a})}else a?r.onDone({begin:0,chunk:a}):r.onError?.(n.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr
delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e)
t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new o(this._manager,e,t)
return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class a{constructor(e,t){this._manager=e
const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}
this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=new i.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:i,suggestedLength:s}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
i&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e)if(this._requests.length>0){this._requests.shift().resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk)
if(this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0})
this._requests.length=0}}_onError(e){this._storedError=(0,n.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError)
for(const t of this._requests)t.reject(this._storedError)
this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError
if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0}
const e=new i.PromiseCapability
return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e)
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class o{constructor(e,t,r){this._manager=e
const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}
this._url=e.url,this._requestId=e.requestRange(t,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk
if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t
this._done=!0
for(const r of this._requests)r.resolve({value:void 0,done:!0})
this._requests.length=0,this._close()}_onError(e){this._storedError=(0,n.createResponseStatusError)(e,this._url)
for(const t of this._requests)t.reject(this._storedError)
this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError
if(null!==this._queuedChunk){const e=this._queuedChunk
return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0}
const e=new i.PromiseCapability
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0
var i=r(1),n=r(20)
const s=/^file:\/\/\/[a-zA-Z]:\//
t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=require("url"),r=t.parse(e)
return"file:"===r.protocol||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(r.host||(r.protocol="file:"),r)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=this.isFsUrl?new h(this,e,t):new u(this,e,t)
return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class a{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null
const t=e.source
this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new i.PromiseCapability,this._headersCapability=new i.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0}
if(this._storedError)throw this._storedError
const e=this._readableStream.read()
if(null===e)return this._readCapability=new i.PromiseCapability,this.read()
this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength})
return{value:new Uint8Array(e).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class o{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new i.PromiseCapability
const t=e.source
this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0}
if(this._storedError)throw this._storedError
const e=this._readableStream.read()
if(null===e)return this._readCapability=new i.PromiseCapability,this.read()
this._loaded+=e.length,this.onProgress?.({loaded:this._loaded})
return{value:new Uint8Array(e).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends a{constructor(e){super(e)
const t=t=>{if(404===t.statusCode){const e=new i.MissingPDFException(`Missing PDF "${this._url}".`)
return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t)
const r=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:s,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(r)}
if(this._request=null,"http:"===this._url.protocol){const r=require("http")
this._request=r.request(l(this._url,e.httpHeaders),t)}else{const r=require("https")
this._request=r.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends o{constructor(e,t,r){super(e),this._httpHeaders={}
for(const i in e.httpHeaders){const t=e.httpHeaders[i]
void 0!==t&&(this._httpHeaders[i]=t)}this._httpHeaders.Range=`bytes=${t}-${r-1}`
const n=e=>{if(404!==e.statusCode)this._setReadableStream(e)
else{const e=new i.MissingPDFException(`Missing PDF "${this._url}".`)
this._storedError=e}}
if(this._request=null,"http:"===this._url.protocol){const e=require("http")
this._request=e.request(l(this._url,this._httpHeaders),n)}else{const e=require("https")
this._request=e.request(l(this._url,this._httpHeaders),n)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends a{constructor(e){super(e)
let t=decodeURIComponent(this._url.path)
s.test(this._url.href)&&(t=t.replace(/^\//,""))
const r=require("fs")
r.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new i.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e)
this._contentLength=n.size,this._setReadableStream(r.createReadStream(t)),this._headersCapability.resolve()}))}}class h extends o{constructor(e,t,r){super(e)
let i=decodeURIComponent(this._url.path)
s.test(this._url.href)&&(i=i.replace(/^\//,""))
const n=require("fs")
this._setReadableStream(n.createReadStream(i,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0
var i=r(6),n=r(1)
const s="normal",a="normal",o="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e,t="",r=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!r)return URL.createObjectURL(new Blob([e],{type:t}))
const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
let n=`data:${t};base64,`
for(let s=0,a=e.length;s<a;s+=3){const t=255&e[s],r=255&e[s+1],o=255&e[s+2]
n+=i[t>>2]+i[(3&t)<<4|r>>4]+i[s+1<a?(15&r)<<2|o>>6:64]+i[s+2<a?63&o:64]}return n},d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256)
for(let n=0;n<256;n++){let e=n
for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647
t[n]=e}function r(e,r,i,n){let s=n
const a=r.length
i[s]=a>>24&255,i[s+1]=a>>16&255,i[s+2]=a>>8&255,i[s+3]=255&a,s+=4,i[s]=255&e.charCodeAt(0),i[s+1]=255&e.charCodeAt(1),i[s+2]=255&e.charCodeAt(2),i[s+3]=255&e.charCodeAt(3),s+=4,i.set(r,s),s+=r.length
const o=function(e,r,i){let n=-1
for(let s=r;s<i;s++){const r=255&(n^e[s])
n=n>>>8^t[r]}return~n}(i,n+4,s)
i[s]=o>>24&255,i[s+1]=o>>16&255,i[s+2]=o>>8&255,i[s+3]=255&o}function i(e){let t=e.length
const r=65535,i=Math.ceil(t/r),n=new Uint8Array(2+t+5*i+4)
let s=0
n[s++]=120,n[s++]=156
let a=0
for(;t>r;)n[s++]=0,n[s++]=255,n[s++]=255,n[s++]=0,n[s++]=0,n.set(e.subarray(a,a+r),s),s+=r,a+=r,t-=r
n[s++]=1,n[s++]=255&t,n[s++]=t>>8&255,n[s++]=255&~t,n[s++]=(65535&~t)>>8&255,n.set(e.subarray(a),s),s+=e.length-a
const o=function(e,t,r){let i=1,n=0
for(let s=t;s<r;++s)i=(i+(255&e[s]))%65521,n=(n+i)%65521
return n<<16|i}(e,0,e.length)
return n[s++]=o>>24&255,n[s++]=o>>16&255,n[s++]=o>>8&255,n[s++]=255&o,n}function s(t,s,a,o){const l=t.width,c=t.height
let d,h,p
const f=t.data
switch(s){case n.ImageKind.GRAYSCALE_1BPP:h=0,d=1,p=l+7>>3
break
case n.ImageKind.RGB_24BPP:h=2,d=8,p=3*l
break
case n.ImageKind.RGBA_32BPP:h=6,d=8,p=4*l
break
default:throw new Error("invalid format")}const m=new Uint8Array((1+p)*c)
let g=0,b=0
for(let e=0;e<c;++e)m[g++]=0,m.set(f.subarray(b,b+p),g),b+=p,g+=p
if(s===n.ImageKind.GRAYSCALE_1BPP&&o){g=0
for(let e=0;e<c;e++){g++
for(let e=0;e<p;e++)m[g++]^=255}}const y=new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,d,h,0,0,0]),v=function(e){if(!n.isNodeJS)return i(e)
try{const t=parseInt(process.versions.node)>=8?e:Buffer.from(e),r=require("zlib").deflateSync(t,{level:9})
return r instanceof Uint8Array?r:new Uint8Array(r)}catch(t){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return i(e)}(m),w=e.length+36+y.length+v.length,x=new Uint8Array(w)
let _=0
return x.set(e,_),_+=e.length,r("IHDR",y,x,_),_+=12+y.length,r("IDATA",v,x,_),_+=12+v.length,r("IEND",new Uint8Array(0),x,_),u(x,"image/png",a)}return function(e,t,r){return s(e,void 0===e.kind?n.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}()
class h{constructor(){this.fontSizeScale=1,this.fontWeight=a,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=o,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function p(e){if(Number.isInteger(e))return e.toString()
const t=e.toFixed(10)
let r=t.length-1
if("0"!==t[r])return t
do{r--}while("0"===t[r])
return t.substring(0,"."===t[r]?r:r+1)}function f(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${p(e[0])} ${p(e[3])})`
if(e[0]===e[3]&&e[1]===-e[2]){return`rotate(${p(180*Math.acos(e[0])/Math.PI)})`}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${p(e[4])} ${p(e[5])})`
return`matrix(${p(e[0])} ${p(e[1])} ${p(e[2])} ${p(e[3])} ${p(e[4])} ${p(e[5])})`}let m=0,g=0,b=0
t.SVGGraphics=class{constructor(e,t,r=!1){(0,i.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new i.DOMSVGFactory,this.current=new h,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[]
for(const i in n.OPS)this._operatorIdMapping[n.OPS[i]]=i}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix)
const e=this.current
this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,r=e.argsArray
for(let i=0,s=t.length;i<s;i++)if(t[i]===n.OPS.dependency)for(const e of r[i]){const t=e.startsWith("g_")?this.commonObjs:this.objs,r=new Promise((r=>{t.get(e,r)}))
this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)}transform(e,t,r,i,s,a){const o=[e,t,r,i,s,a]
this.transformMatrix=n.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t
const r=this._initialize(t)
return this.loadDependencies(e).then((()=>(this.transformMatrix=n.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){const t=this._operatorIdMapping,r=e.argsArray,i=e.fnArray,n=[]
for(let s=0,a=i.length;s<a;s++){const e=i[s]
n.push({fnId:e,fn:t[e],args:r[s]})}return function(e){let t=[]
const r=[]
for(const i of e)"save"!==i.fn?"restore"===i.fn?t=r.pop():t.push(i):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t.at(-1).items)
return t}(n)}executeOpTree(e){for(const t of e){const e=t.fn,r=t.fnId,i=t.args
switch(0|r){case n.OPS.beginText:this.beginText()
break
case n.OPS.dependency:break
case n.OPS.setLeading:this.setLeading(i)
break
case n.OPS.setLeadingMoveText:this.setLeadingMoveText(i[0],i[1])
break
case n.OPS.setFont:this.setFont(i)
break
case n.OPS.showText:case n.OPS.showSpacedText:this.showText(i[0])
break
case n.OPS.endText:this.endText()
break
case n.OPS.moveText:this.moveText(i[0],i[1])
break
case n.OPS.setCharSpacing:this.setCharSpacing(i[0])
break
case n.OPS.setWordSpacing:this.setWordSpacing(i[0])
break
case n.OPS.setHScale:this.setHScale(i[0])
break
case n.OPS.setTextMatrix:this.setTextMatrix(i[0],i[1],i[2],i[3],i[4],i[5])
break
case n.OPS.setTextRise:this.setTextRise(i[0])
break
case n.OPS.setTextRenderingMode:this.setTextRenderingMode(i[0])
break
case n.OPS.setLineWidth:this.setLineWidth(i[0])
break
case n.OPS.setLineJoin:this.setLineJoin(i[0])
break
case n.OPS.setLineCap:this.setLineCap(i[0])
break
case n.OPS.setMiterLimit:this.setMiterLimit(i[0])
break
case n.OPS.setFillRGBColor:this.setFillRGBColor(i[0],i[1],i[2])
break
case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(i[0],i[1],i[2])
break
case n.OPS.setStrokeColorN:this.setStrokeColorN(i)
break
case n.OPS.setFillColorN:this.setFillColorN(i)
break
case n.OPS.shadingFill:this.shadingFill(i[0])
break
case n.OPS.setDash:this.setDash(i[0],i[1])
break
case n.OPS.setRenderingIntent:this.setRenderingIntent(i[0])
break
case n.OPS.setFlatness:this.setFlatness(i[0])
break
case n.OPS.setGState:this.setGState(i[0])
break
case n.OPS.fill:this.fill()
break
case n.OPS.eoFill:this.eoFill()
break
case n.OPS.stroke:this.stroke()
break
case n.OPS.fillStroke:this.fillStroke()
break
case n.OPS.eoFillStroke:this.eoFillStroke()
break
case n.OPS.clip:this.clip("nonzero")
break
case n.OPS.eoClip:this.clip("evenodd")
break
case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask()
break
case n.OPS.paintImageXObject:this.paintImageXObject(i[0])
break
case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(i[0])
break
case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(i[0])
break
case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(i[0],i[1])
break
case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd()
break
case n.OPS.closePath:this.closePath()
break
case n.OPS.closeStroke:this.closeStroke()
break
case n.OPS.closeFillStroke:this.closeFillStroke()
break
case n.OPS.closeEOFillStroke:this.closeEOFillStroke()
break
case n.OPS.nextLine:this.nextLine()
break
case n.OPS.transform:this.transform(i[0],i[1],i[2],i[3],i[4],i[5])
break
case n.OPS.constructPath:this.constructPath(i[0],i[1])
break
case n.OPS.endPath:this.endPath()
break
case 92:this.group(t.items)
break
default:(0,n.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,r,i,n,s){const a=this.current
a.textMatrix=a.lineMatrix=[e,t,r,i,n,s],a.textMatrixScale=Math.hypot(e,t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",`${p(a.fontSize)}px`),a.tspan.setAttributeNS(null,"y",p(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.append(a.tspan)}beginText(){const e=this.current
e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=n.IDENTITY_MATRIX,e.lineMatrix=n.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const r=this.current
r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size",`${p(r.fontSize)}px`),r.tspan.setAttributeNS(null,"y",p(-r.y))}showText(e){const t=this.current,r=t.font,i=t.fontSize
if(0===i)return
const l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,m=r.vertical,g=m?1:-1,b=r.defaultVMetrics,y=i*t.fontMatrix[0]
let v=0
for(const n of e){if(null===n){v+=d*u
continue}if("number"==typeof n){v+=g*n*i/1e3
continue}const e=(n.isSpace?u:0)+c,s=n.fontChar
let a,o,h=n.width
if(m){let e
const t=n.vmetric||b
e=n.vmetric?t[1]:.5*h,e=-e*y
const r=t[2]*y
h=t?-t[0]:h,a=e/l,o=(v+r)/l}else a=v/l,o=0;(n.isInFont||r.missingFile)&&(t.xcoords.push(t.x+a),m&&t.ycoords.push(-t.y+o),t.tspan.textContent+=s)
v+=m?h*y-e*d:h*y+e*d}t.tspan.setAttributeNS(null,"x",t.xcoords.map(p).join(" ")),m?t.tspan.setAttributeNS(null,"y",t.ycoords.map(p).join(" ")):t.tspan.setAttributeNS(null,"y",p(-t.y)),m?t.y-=v:t.x+=v*h,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",`${p(t.fontSize)}px`),t.fontStyle!==s&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==a&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight)
const w=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK
if(w===n.TextRenderingMode.FILL||w===n.TextRenderingMode.FILL_STROKE?(t.fillColor!==o&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),w===n.TextRenderingMode.STROKE||w===n.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1)
this._setStrokeAttributes(t.tspan,e)}let x=t.textMatrix
0!==t.textRise&&(x=x.slice(),x[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform",`${f(x)} scale(${p(h)}, -1)`),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.')
this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle))
const t=u(e.data,e.mimetype,this.forceDataSchema)
this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){const t=this.current,r=this.commonObjs.get(e[0])
let i=e[1]
t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix||n.FONT_IDENTITY_MATRIX
let s="normal"
r.black?s="900":r.bold&&(s="bold")
const a=r.italic?"italic":"normal"
i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=r.loadedName,t.fontWeight=s,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",p(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current
e.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=n.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=n.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const{width:t,height:r}=this.viewport,i=n.Util.inverseTransform(this.transformMatrix),[s,a,o,l]=n.Util.getAxialAlignedBoundingBox([0,0,t,r],i),c=this.svgFactory.createElement("svg:rect")
c.setAttributeNS(null,"x",s),c.setAttributeNS(null,"y",a),c.setAttributeNS(null,"width",o-s),c.setAttributeNS(null,"height",l-a),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],r=e[2],i=e[3]||n.IDENTITY_MATRIX,[s,a,o,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading"+b++,[p,f,m,g]=n.Util.normalizeRect([...n.Util.applyTransform([s,a],i),...n.Util.applyTransform([o,l],i)]),[y,v]=n.Util.singularValueDecompose2dScale(i),w=c*y,x=u*v,_=this.svgFactory.createElement("svg:pattern")
_.setAttributeNS(null,"id",h),_.setAttributeNS(null,"patternUnits","userSpaceOnUse"),_.setAttributeNS(null,"width",w),_.setAttributeNS(null,"height",x),_.setAttributeNS(null,"x",`${p}`),_.setAttributeNS(null,"y",`${f}`)
const S=this.svg,k=this.transformMatrix,A=this.current.fillColor,C=this.current.strokeColor,P=this.svgFactory.create(m-p,g-f)
if(this.svg=P,this.transformMatrix=i,2===d){const e=n.Util.makeHexColor(...t)
this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(r)),this.svg=S,this.transformMatrix=k,this.current.fillColor=A,this.current.strokeColor=C,_.append(P.childNodes[0]),this.defs.append(_),`url(#${h})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+b++,r=e[3]
let i
switch(e[1]){case"axial":const r=e[4],n=e[5]
i=this.svgFactory.createElement("svg:linearGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",r[0]),i.setAttributeNS(null,"y1",r[1]),i.setAttributeNS(null,"x2",n[0]),i.setAttributeNS(null,"y2",n[1])
break
case"radial":const s=e[4],a=e[5],o=e[6],l=e[7]
i=this.svgFactory.createElement("svg:radialGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",a[0]),i.setAttributeNS(null,"cy",a[1]),i.setAttributeNS(null,"r",l),i.setAttributeNS(null,"fx",s[0]),i.setAttributeNS(null,"fy",s[1]),i.setAttributeNS(null,"fr",o)
break
default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of r){const t=this.svgFactory.createElement("svg:stop")
t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),i.append(t)}return this.defs.append(i),`url(#${t})`
case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null
case"Dummy":return"hotpink"
default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const r=this.current
let i=r.x,s=r.y,a=[],o=0
for(const l of e)switch(0|l){case n.OPS.rectangle:i=t[o++],s=t[o++]
const e=i+t[o++],r=s+t[o++]
a.push("M",p(i),p(s),"L",p(e),p(s),"L",p(e),p(r),"L",p(i),p(r),"Z")
break
case n.OPS.moveTo:i=t[o++],s=t[o++],a.push("M",p(i),p(s))
break
case n.OPS.lineTo:i=t[o++],s=t[o++],a.push("L",p(i),p(s))
break
case n.OPS.curveTo:i=t[o+4],s=t[o+5],a.push("C",p(t[o]),p(t[o+1]),p(t[o+2]),p(t[o+3]),p(i),p(s)),o+=6
break
case n.OPS.curveTo2:a.push("C",p(i),p(s),p(t[o]),p(t[o+1]),p(t[o+2]),p(t[o+3])),i=t[o+2],s=t[o+3],o+=4
break
case n.OPS.curveTo3:i=t[o+2],s=t[o+3],a.push("C",p(t[o]),p(t[o+1]),p(i),p(s),p(i),p(s)),o+=4
break
case n.OPS.closePath:a.push("Z")}a=a.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(i,s)}endPath(){const e=this.current
if(e.path=null,!this.pendingClip)return
if(!e.element)return void(this.pendingClip=null)
const t="clippath"+m++,r=this.svgFactory.createElement("svg:clipPath")
r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",f(this.transformMatrix))
const i=e.element.cloneNode(!0)
if("evenodd"===this.pendingClip?i.setAttributeNS(null,"clip-rule","evenodd"):i.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.append(i),this.defs.append(r),e.activeClipUrl){e.clipGroup=null
for(const e of this.extraStack)e.clipGroup=null
r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current
if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`
e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r)
break
case"LC":this.setLineCap(r)
break
case"LJ":this.setLineJoin(r)
break
case"ML":this.setMiterLimit(r)
break
case"D":this.setDash(r[0],r[1])
break
case"RI":this.setRenderingIntent(r)
break
case"FL":this.setFlatness(r)
break
case"Font":this.setFont(r)
break
case"CA":this.setStrokeAlpha(r)
break
case"ca":this.setFillAlpha(r)
break
default:(0,n.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current
e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current
e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const r=this.current
let i=r.dashArray
1!==t&&i.length>0&&(i=i.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",p(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",p(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",i.map(p).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",p(t*r.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect")
e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=this.getObject(e)
t?this.paintInlineImageXObject(t):(0,n.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const r=e.width,i=e.height,n=d(e,this.forceDataSchema,!!t),s=this.svgFactory.createElement("svg:rect")
s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",p(r)),s.setAttributeNS(null,"height",p(i)),this.current.element=s,this.clip("nonzero")
const a=this.svgFactory.createElement("svg:image")
a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",p(-i)),a.setAttributeNS(null,"width",p(r)+"px"),a.setAttributeNS(null,"height",p(i)+"px"),a.setAttributeNS(null,"transform",`scale(${p(1/r)} ${p(-1/i)})`),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){const t=this.getObject(e.data,e)
if(t.bitmap)return void(0,n.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.")
const r=this.current,i=t.width,s=t.height,a=r.fillColor
r.maskId="mask"+g++
const o=this.svgFactory.createElement("svg:mask")
o.setAttributeNS(null,"id",r.maskId)
const l=this.svgFactory.createElement("svg:rect")
l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",p(i)),l.setAttributeNS(null,"height",p(s)),l.setAttributeNS(null,"fill",a),l.setAttributeNS(null,"mask",`url(#${r.maskId})`),this.defs.append(o),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,o)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],r=t[3]-t[1],i=this.svgFactory.createElement("svg:rect")
i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",p(e)),i.setAttributeNS(null,"height",p(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs")
t.append(r),this.defs=r
const i=this.svgFactory.createElement("svg:g")
return i.setAttributeNS(null,"transform",f(e.transform)),t.append(i),this.svg=i,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g")
e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",f(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0
class r{static textContent(e){const t=[],i={items:t,styles:Object.create(null)}
return function e(i){if(!i)return
let n=null
const s=i.name
if("#text"===s)n=i.value
else{if(!r.shouldBuildText(s))return
i?.attributes?.textContent?n=i.attributes.textContent:i.value&&(n=i.value)}if(null!==n&&t.push({str:n}),i.children)for(const t of i.children)e(t)}(e),i}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=r},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,n.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream)
const{container:t,viewport:r}=e,i=getComputedStyle(t),s=i.getPropertyValue("visibility"),a=parseFloat(i.getPropertyValue("--scale-factor"))
"visible"===s&&(!a||Math.abs(a-r.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.")
const o=new d(e)
return o._render(),o},t.updateTextLayer=function({container:e,viewport:t,textDivs:r,textDivProperties:i,isOffscreenCanvasSupported:s,mustRotate:a=!0,mustRescale:o=!0}){a&&(0,n.setLayerDimensions)(e,{rotation:t.rotation})
if(o){const e=l(0,s),n={prevFontSize:null,prevFontFamily:null,div:null,scale:t.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e}
for(const t of r)n.properties=i.get(t),n.div=t,u(n)}}
var i=r(1),n=r(6)
const s=30,a=.8,o=new Map
function l(e,t){let r
if(t&&i.FeatureTest.isOffscreenCanvasSupported)r=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1})
else{const t=document.createElement("canvas")
t.width=t.height=e,r=t.getContext("2d",{alpha:!1})}return r}function c(e,t,r){const n=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0}
e._textDivs.push(n)
const u=i.Util.transform(e._transform,t.transform)
let d=Math.atan2(u[1],u[0])
const h=r[t.fontName]
h.vertical&&(d+=Math.PI/2)
const p=Math.hypot(u[2],u[3]),f=p*function(e,t){const r=o.get(e)
if(r)return r
const i=l(s,t)
i.font=`${s}px ${e}`
const n=i.measureText("")
let c=n.fontBoundingBoxAscent,u=Math.abs(n.fontBoundingBoxDescent)
if(c){const t=c/(c+u)
return o.set(e,t),i.canvas.width=i.canvas.height=0,t}i.strokeStyle="red",i.clearRect(0,0,s,s),i.strokeText("g",0,0)
let d=i.getImageData(0,0,s,s).data
u=0
for(let a=d.length-1-3;a>=0;a-=4)if(d[a]>0){u=Math.ceil(a/4/s)
break}i.clearRect(0,0,s,s),i.strokeText("A",0,s),d=i.getImageData(0,0,s,s).data,c=0
for(let a=0,o=d.length;a<o;a+=4)if(d[a]>0){c=s-Math.floor(a/4/s)
break}if(i.canvas.width=i.canvas.height=0,c){const t=c/(c+u)
return o.set(e,t),t}return o.set(e,a),a}(h.fontFamily,e._isOffscreenCanvasSupported)
let m,g
0===d?(m=u[4],g=u[5]-f):(m=u[4]+f*Math.sin(d),g=u[5]-f*Math.cos(d))
const b="calc(var(--scale-factor)*",y=n.style
e._container===e._rootContainer?(y.left=`${(100*m/e._pageWidth).toFixed(2)}%`,y.top=`${(100*g/e._pageHeight).toFixed(2)}%`):(y.left=`${b}${m.toFixed(2)}px)`,y.top=`${b}${g.toFixed(2)}px)`),y.fontSize=`${b}${p.toFixed(2)}px)`,y.fontFamily=h.fontFamily,c.fontSize=p,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,e._fontInspectorEnabled&&(n.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI))
let v=!1
if(t.str.length>1)v=!0
else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),r=Math.abs(t.transform[3])
e!==r&&Math.max(e,r)/Math.min(e,r)>1.5&&(v=!0)}v&&(c.canvasWidth=h.vertical?t.height:t.width),e._textDivProperties.set(n,c),e._isReadableStream&&e._layoutText(n)}function u(e){const{div:t,scale:r,properties:i,ctx:n,prevFontSize:s,prevFontFamily:a}=e,{style:o}=t
let l=""
if(0!==i.canvasWidth&&i.hasText){const{fontFamily:c}=o,{canvasWidth:u,fontSize:d}=i
s===d&&a===c||(n.font=`${d*r}px ${c}`,e.prevFontSize=d,e.prevFontFamily=c)
const{width:h}=n.measureText(t.textContent)
h>0&&(l=`scaleX(${u*r/h})`)}0!==i.angle&&(l=`rotate(${i.angle}deg) ${l}`),l.length>0&&(o.transform=l)}class d{constructor({textContentSource:e,container:t,viewport:r,textDivs:s,textDivProperties:a,textContentItemsStr:o,isOffscreenCanvasSupported:c}){this._textContentSource=e,this._isReadableStream=e instanceof ReadableStream,this._container=this._rootContainer=t,this._textDivs=s||[],this._textContentItemsStr=o||[],this._isOffscreenCanvasSupported=c,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=a||new WeakMap,this._canceled=!1,this._capability=new i.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:r.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,c)}
const{pageWidth:u,pageHeight:d,pageX:h,pageY:p}=r.rawDims
this._transform=[1,0,0,-1,-h,p+d],this._pageWidth=u,this._pageHeight=d,(0,n.setLayerDimensions)(t,r),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new i.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new i.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const r of e)if(void 0!==r.str)this._textContentItemsStr.push(r.str),c(this,r,t)
else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){const e=this._container
this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==r.id&&this._container.setAttribute("id",`${r.id}`),e.append(this._container)}else"endMarkedContent"===r.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e)
if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br")
e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=new i.PromiseCapability
let t=Object.create(null)
if(this._isReadableStream){const r=()=>{this._reader.read().then((({value:i,done:n})=>{n?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),r())}),e.reject)}
this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.')
{const{items:t,styles:r}=this._textContentSource
this._processItems(t,r),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return
const t=e._textDivs,r=e._capability
if(t.length>1e5)r.resolve()
else{if(!e._isReadableStream)for(const r of t)e._layoutText(r)
r.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0
var i=r(1),n=r(4),s=r(28),a=r(33),o=r(6),l=r(34)
class c{#_t
#St=!1
#kt=null
#At=this.pointerup.bind(this)
#Ct=this.pointerdown.bind(this)
#Pt=new Map
#Ot=!1
#Et=!1
#Tt=!1
#Mt
static _initialized=!1
constructor({uiManager:e,pageIndex:t,div:r,accessibilityManager:i,annotationLayer:n,viewport:o,l10n:u}){const d=[s.FreeTextEditor,a.InkEditor,l.StampEditor]
if(!c._initialized){c._initialized=!0
for(const e of d)e.initialize(u)}e.registerEditorTypes(d),this.#Mt=e,this.pageIndex=t,this.div=r,this.#_t=i,this.#kt=n,this.viewport=o,this.#Mt.addLayer(this)}get isEmpty(){return 0===this.#Pt.size}updateToolbar(e){this.#Mt.updateToolbar(e)}updateMode(e=this.#Mt.getMode()){this.#It(),e===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==i.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===i.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===i.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===i.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(!e&&this.#Mt.getMode()!==i.AnnotationEditorType.INK)return
if(!e)for(const t of this.#Pt.values())if(t.isEmpty())return void t.setInBackground()
this.#Ft({offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(e){this.#Mt.setEditingState(e)}addCommands(e){this.#Mt.addCommands(e)}enable(){this.div.style.pointerEvents="auto"
const e=new Set
for(const r of this.#Pt.values())r.enableEditing(),r.annotationElementId&&e.add(r.annotationElementId)
if(!this.#kt)return
const t=this.#kt.getEditableAnnotations()
for(const r of t){if(r.hide(),this.#Mt.isDeletedAnnotationElement(r.data.id))continue
if(e.has(r.data.id))continue
const t=this.deserialize(r)
t&&(this.addOrRebuild(t),t.enableEditing())}}disable(){this.#Tt=!0,this.div.style.pointerEvents="none"
const e=new Set
for(const t of this.#Pt.values())t.disableEditing(),t.annotationElementId&&null===t.serialize()?(this.getEditableAnnotation(t.annotationElementId)?.show(),t.remove()):e.add(t.annotationElementId)
if(this.#kt){const t=this.#kt.getEditableAnnotations()
for(const r of t){const{id:t}=r.data
e.has(t)||this.#Mt.isDeletedAnnotationElement(t)||r.show()}}this.#It(),this.isEmpty&&(this.div.hidden=!0),this.#Tt=!1}getEditableAnnotation(e){return this.#kt?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#Mt.getActive()!==e&&this.#Mt.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#Ct),this.div.addEventListener("pointerup",this.#At)}disableClick(){this.div.removeEventListener("pointerdown",this.#Ct),this.div.removeEventListener("pointerup",this.#At)}attach(e){this.#Pt.set(e.id,e)
const{annotationElementId:t}=e
t&&this.#Mt.isDeletedAnnotationElement(t)&&this.#Mt.removeDeletedAnnotationElement(e)}detach(e){this.#Pt.delete(e.id),this.#_t?.removePointerInTextLayer(e.contentDiv),!this.#Tt&&e.annotationElementId&&this.#Mt.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#Mt.removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{this.#Mt.focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,this.#Et||this.addInkEditorIfNeeded(!1)}changeParent(e){e.parent!==this&&(e.annotationElementId&&(this.#Mt.addDeletedAnnotationElement(e.annotationElementId),n.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),this.#Mt.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render()
this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),this.#Mt.addToAnnotationStorage(e)}moveEditorInDOM(e){if(!e.isAttachedToDOM)return
const{activeElement:t}=document
e.div.contains(t)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus())}),0)),e._structTreeParentId=this.#_t?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#Mt.getId()}#Nt(e){switch(this.#Mt.getMode()){case i.AnnotationEditorType.FREETEXT:return new s.FreeTextEditor(e)
case i.AnnotationEditorType.INK:return new a.InkEditor(e)
case i.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}pasteEditor(e,t){this.#Mt.updateToolbar(e),this.#Mt.updateMode(e)
const{offsetX:r,offsetY:i}=this.#Rt(),n=this.getNextId(),s=this.#Nt({parent:this,id:n,x:r,y:i,uiManager:this.#Mt,isCentered:!0,...t})
s&&this.add(s)}deserialize(e){switch(e.annotationType??e.annotationEditorType){case i.AnnotationEditorType.FREETEXT:return s.FreeTextEditor.deserialize(e,this,this.#Mt)
case i.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this,this.#Mt)
case i.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,this.#Mt)}return null}#Ft(e,t){const r=this.getNextId(),i=this.#Nt({parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:this.#Mt,isCentered:t})
return i&&this.add(i),i}#Rt(){const{x:e,y:t,width:r,height:i}=this.div.getBoundingClientRect(),n=Math.max(0,e),s=Math.max(0,t),a=(n+Math.min(window.innerWidth,e+r))/2-e,o=(s+Math.min(window.innerHeight,t+i))/2-t,[l,c]=this.viewport.rotation%180==0?[a,o]:[o,a]
return{offsetX:l,offsetY:c}}addNewEditor(){this.#Ft(this.#Rt(),!0)}setSelected(e){this.#Mt.setSelected(e)}toggleSelected(e){this.#Mt.toggleSelected(e)}isSelected(e){return this.#Mt.isSelected(e)}unselect(e){this.#Mt.unselect(e)}pointerup(e){const{isMac:t}=i.FeatureTest.platform
0!==e.button||e.ctrlKey&&t||e.target===this.div&&this.#Ot&&(this.#Ot=!1,this.#St?this.#Mt.getMode()!==i.AnnotationEditorType.STAMP?this.#Ft(e,!1):this.#Mt.unselectAll():this.#St=!0)}pointerdown(e){if(this.#Ot)return void(this.#Ot=!1)
const{isMac:t}=i.FeatureTest.platform
if(0!==e.button||e.ctrlKey&&t)return
if(e.target!==this.div)return
this.#Ot=!0
const r=this.#Mt.getActive()
this.#St=!r||r.isEmpty()}findNewParent(e,t,r){const i=this.#Mt.findParent(t,r)
return null!==i&&i!==this&&(i.changeParent(e),!0)}destroy(){this.#Mt.getActive()?.parent===this&&(this.#Mt.commitOrRemove(),this.#Mt.setActiveEditor(null))
for(const e of this.#Pt.values())this.#_t?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove()
this.div=null,this.#Pt.clear(),this.#Mt.removeLayer(this)}#It(){this.#Et=!0
for(const e of this.#Pt.values())e.isEmpty()&&e.remove()
this.#Et=!1}render({viewport:e}){this.viewport=e,(0,o.setLayerDimensions)(this.div,e)
for(const t of this.#Mt.getEditors(this.pageIndex))this.add(t)
this.updateMode()}update({viewport:e}){this.#Mt.commitOrRemove(),this.viewport=e,(0,o.setLayerDimensions)(this.div,{rotation:e.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims
return[e,t]}}t.AnnotationEditorLayer=c},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0
var i=r(1),n=r(5),s=r(4),a=r(29)
class o extends s.AnnotationEditor{#Dt=this.editorDivBlur.bind(this)
#jt=this.editorDivFocus.bind(this)
#Lt=this.editorDivInput.bind(this)
#Bt=this.editorDivKeydown.bind(this)
#$t
#zt=""
#Ut=`${this.id}-editor`
#qt
#Ht=null
static _freeTextDefaultContent=""
static _internalPadding=0
static _defaultColor=null
static _defaultFontSize=10
static get _keyboardManager(){const e=o.prototype,t=e=>e.isEmpty(),r=n.AnnotationEditorUIManager.TRANSLATE_SMALL,s=n.AnnotationEditorUIManager.TRANSLATE_BIG
return(0,i.shadow)(this,"_keyboardManager",new n.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-s,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[s,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-s],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,s],checker:t}]]))}static _type="freetext"
constructor(e){super({...e,name:"freeTextEditor"}),this.#$t=e.color||o._defaultColor||s.AnnotationEditor._defaultLineColor,this.#qt=e.fontSize||o._defaultFontSize}static initialize(e){s.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]})
const t=getComputedStyle(document.documentElement)
this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:o._defaultFontSize=t
break
case i.AnnotationEditorParamsType.FREETEXT_COLOR:o._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Vt(t)
break
case i.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Gt(t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,o._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,o._defaultColor||s.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,this.#qt],[i.AnnotationEditorParamsType.FREETEXT_COLOR,this.#$t]]}#Vt(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#qt)*this.parentScale),this.#qt=e,this.#Wt()},r=this.#qt
this.addCommands({cmd:()=>{t(e)},undo:()=>{t(r)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Gt(e){const t=this.#$t
this.addCommands({cmd:()=>{this.#$t=this.editorDiv.style.color=e},undo:()=>{this.#$t=this.editorDiv.style.color=t},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale
return[-o._internalPadding*e,-(o._internalPadding+this.#qt)*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#Bt),this.editorDiv.addEventListener("focus",this.#jt),this.editorDiv.addEventListener("blur",this.#Dt),this.editorDiv.addEventListener("input",this.#Lt))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#Ut),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#Bt),this.editorDiv.removeEventListener("focus",this.#jt),this.editorDiv.removeEventListener("blur",this.#Dt),this.editorDiv.removeEventListener("input",this.#Lt),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width?this.#Xt():(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}#Kt(){const e=this.editorDiv.getElementsByTagName("div")
if(0===e.length)return this.editorDiv.innerText
const t=[]
for(const r of e)t.push(r.innerText.replace(/\r\n?|\n/,""))
return t.join("\n")}#Wt(){const[e,t]=this.parentDimensions
let r
if(this.isAttachedToDOM)r=this.div.getBoundingClientRect()
else{const{currentLayer:e,div:t}=this,i=t.style.display
t.style.display="hidden",e.div.append(this.div),r=t.getBoundingClientRect(),t.remove(),t.style.display=i}this.rotation%180==this.parentRotation%180?(this.width=r.width/e,this.height=r.height/t):(this.width=r.height/e,this.height=r.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return
super.commit(),this.disableEditMode()
const e=this.#zt,t=this.#zt=this.#Kt().trimEnd()
if(e===t)return
const r=e=>{this.#zt=e,e?(this.#Yt(),this._uiManager.rebuild(this),this.#Wt()):this.remove()}
this.addCommands({cmd:()=>{r(t)},undo:()=>{r(e)},mustExec:!1}),this.#Wt()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){o._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div
let e,t
this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#Ut),this.enableEditing(),s.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>this.editorDiv?.setAttribute("aria-label",e))),s.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0
const{style:r}=this.editorDiv
if(r.fontSize=`calc(${this.#qt}px * var(--scale-factor))`,r.color=this.#$t,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,n.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[r,i]=this.parentDimensions
if(this.annotationElementId){const{position:n}=this.#Ht
let[s,a]=this.getInitialTranslation();[s,a]=this.pageTranslationToScreen(s,a)
const[o,l]=this.pageDimensions,[c,u]=this.pageTranslation
let d,h
switch(this.rotation){case 0:d=e+(n[0]-c)/o,h=t+this.height-(n[1]-u)/l
break
case 90:d=e+(n[0]-c)/o,h=t-(n[1]-u)/l,[s,a]=[a,-s]
break
case 180:d=e-this.width+(n[0]-c)/o,h=t-(n[1]-u)/l,[s,a]=[-s,-a]
break
case 270:d=e+(n[0]-c-this.height*l)/o,h=t+(n[1]-u-this.width*o)/l,[s,a]=[-a,s]}this.setAt(d*r,h*i,s,a)}else this.setAt(e*r,t*i,this.width*r,this.height*i)
this.#Yt(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0
return this.div}#Yt(){if(this.editorDiv.replaceChildren(),this.#zt)for(const e of this.#zt.split("\n")){const t=document.createElement("div")
t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}get contentDiv(){return this.editorDiv}static deserialize(e,t,r){let n=null
if(e instanceof a.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:r},rect:s,rotation:a,id:o},textContent:l,textPosition:c,parent:{page:{pageNumber:u}}}=e
if(!l||0===l.length)return null
n=e={annotationType:i.AnnotationEditorType.FREETEXT,color:Array.from(r),fontSize:t,value:l.join("\n"),position:c,pageIndex:u-1,rect:s,rotation:a,id:o,deleted:!1}}const s=super.deserialize(e,t,r)
return s.#qt=e.fontSize,s.#$t=i.Util.makeHexColor(...e.color),s.#zt=e.value,s.annotationElementId=e.id||null,s.#Ht=n,s}serialize(e=!1){if(this.isEmpty())return null
if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0}
const t=o._internalPadding*this.parentScale,r=this.getRect(t,t),n=s.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#$t),a={annotationType:i.AnnotationEditorType.FREETEXT,color:n,fontSize:this.#qt,value:this.#zt,pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId}
return e?a:this.annotationElementId&&!this.#Jt(a)?null:(a.id=this.annotationElementId,a)}#Jt(e){const{value:t,fontSize:r,color:i,rect:n,pageIndex:s}=this.#Ht
return e.value!==t||e.fontSize!==r||e.rect.some(((e,t)=>Math.abs(e-n[t])>=1))||e.color.some(((e,t)=>e!==i[t]))||e.pageIndex!==s}#Xt(e=!1){if(!this.annotationElementId)return
if(this.#Wt(),!e&&(0===this.width||0===this.height))return void setTimeout((()=>this.#Xt(!0)),0)
const t=o._internalPadding*this.parentScale
this.#Ht.rect=this.getRect(t,t)}}t.FreeTextEditor=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0
var i=r(1),n=r(6),s=r(3),a=r(30),o=r(31),l=r(32)
const c=1e3,u=new WeakSet
function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class h{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new f(e)
case i.AnnotationType.TEXT:return new m(e)
case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new b(e)
case"Btn":return e.data.radioButton?new w(e):e.data.checkBox?new v(e):new x(e)
case"Ch":return new _(e)
case"Sig":return new y(e)}return new g(e)
case i.AnnotationType.POPUP:return new S(e)
case i.AnnotationType.FREETEXT:return new A(e)
case i.AnnotationType.LINE:return new C(e)
case i.AnnotationType.SQUARE:return new P(e)
case i.AnnotationType.CIRCLE:return new O(e)
case i.AnnotationType.POLYLINE:return new E(e)
case i.AnnotationType.CARET:return new M(e)
case i.AnnotationType.INK:return new I(e)
case i.AnnotationType.POLYGON:return new T(e)
case i.AnnotationType.HIGHLIGHT:return new F(e)
case i.AnnotationType.UNDERLINE:return new N(e)
case i.AnnotationType.SQUIGGLY:return new R(e)
case i.AnnotationType.STRIKEOUT:return new D(e)
case i.AnnotationType.STAMP:return new j(e)
case i.AnnotationType.FILEATTACHMENT:return new L(e)
default:return new p(e)}}}class p{#Qt=!1
constructor(e,{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(r)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:t,richText:r}){return!!(e?.str||t?.str||r?.str)}get hasPopupData(){return p._hasPopupData(this.data)}_createContainer(e){const{data:t,parent:{page:r,viewport:n}}=this,s=document.createElement("section")
s.setAttribute("data-annotation-id",t.id),this instanceof g||(s.tabIndex=c),s.style.zIndex=this.parent.zIndex++,this.data.popupRef&&s.setAttribute("aria-haspopup","dialog"),t.noRotate&&s.classList.add("norotate")
const{pageWidth:a,pageHeight:o,pageX:l,pageY:u}=n.rawDims
if(!t.rect||this instanceof S){const{rotation:e}=t
return t.hasOwnCanvas||0===e||this.setRotation(e,s),s}const{width:h,height:p}=d(t.rect),f=i.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]])
if(!e&&t.borderStyle.width>0){s.style.borderWidth=`${t.borderStyle.width}px`
const e=t.borderStyle.horizontalCornerRadius,r=t.borderStyle.verticalCornerRadius
if(e>0||r>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${r}px * var(--scale-factor))`
s.style.borderRadius=t}else if(this instanceof w){const e=`calc(${h}px * var(--scale-factor)) / calc(${p}px * var(--scale-factor))`
s.style.borderRadius=e}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid"
break
case i.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed"
break
case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled")
break
case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset")
break
case i.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}const n=t.borderColor||null
n?(this.#Qt=!0,s.style.borderColor=i.Util.makeHexColor(0|n[0],0|n[1],0|n[2])):s.style.borderWidth=0}s.style.left=100*(f[0]-l)/a+"%",s.style.top=100*(f[1]-u)/o+"%"
const{rotation:m}=t
return t.hasOwnCanvas||0===m?(s.style.width=100*h/a+"%",s.style.height=100*p/o+"%"):this.setRotation(m,s),s}setRotation(e,t=this.container){if(!this.data.rect)return
const{pageWidth:r,pageHeight:i}=this.parent.viewport.rawDims,{width:n,height:s}=d(this.data.rect)
let a,o
e%180==0?(a=100*n/r,o=100*s/i):(a=100*s/r,o=100*n/i),t.style.width=`${a}%`,t.style.height=`${o}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,r)=>{const i=r.detail[e],n=i[0],s=i.slice(1)
r.target.style[t]=a.ColorConverters[`${n}_HTML`](s),this.annotationStorage.setValue(this.data.id,{[t]:a.ColorConverters[`${n}_rgb`](s)})}
return(0,i.shadow)(this,"_commonActions",{display:e=>{const{display:t}=e.detail,r=t%2==1
this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail
this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation
this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const r=this._commonActions
for(const i of Object.keys(t.detail)){const n=e[i]||r[i]
n?.(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return
const t=this.annotationStorage.getRawValue(this.data.id)
if(!t)return
const r=this._commonActions
for(const[i,n]of Object.entries(t)){const s=r[i]
if(s){s({detail:{[i]:n},target:e}),delete t[i]}}}_createQuadrilaterals(){if(!this.container)return
const{quadPoints:e}=this.data
if(!e)return
const[t,r,i,n]=this.data.rect
if(1===e.length){const[,{x:s,y:a},{x:o,y:l}]=e[0]
if(i===s&&n===a&&t===o&&r===l)return}const{style:s}=this.container
let a
if(this.#Qt){const{borderColor:e,borderWidth:t}=s
s.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${e}" stroke-width="${t}">`],this.container.classList.add("hasBorder")}const o=i-t,l=n-r,{svgFactory:c}=this,u=c.createElement("svg")
u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0)
const d=c.createElement("defs")
u.append(d)
const h=c.createElement("clipPath"),p=`clippath_${this.data.id}`
h.setAttribute("id",p),h.setAttribute("clipPathUnits","objectBoundingBox"),d.append(h)
for(const[,{x:f,y:m},{x:g,y:b}]of e){const e=c.createElement("rect"),r=(g-t)/o,i=(n-m)/l,s=(f-g)/o,u=(m-b)/l
e.setAttribute("x",r),e.setAttribute("y",i),e.setAttribute("width",s),e.setAttribute("height",u),h.append(e),a?.push(`<rect vector-effect="non-scaling-stroke" x="${r}" y="${i}" width="${s}" height="${u}"/>`)}this.#Qt&&(a.push("</g></svg>')"),s.backgroundImage=a.join("")),this.container.append(u),this.container.style.clipPath=`url(#${p})`}_createPopup(){const{container:e,data:t}=this
e.setAttribute("aria-haspopup","dialog")
const r=new S({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]})
this.parent.div.append(r.render())}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const r=[]
if(this._fieldObjects){const n=this._fieldObjects[e]
if(n)for(const{page:e,id:s,exportValues:a}of n){if(-1===e)continue
if(s===t)continue
const n="string"==typeof a?a:null,o=document.querySelector(`[data-element-id="${s}"]`)
!o||u.has(o)?r.push({id:s,exportValue:n,domElement:o}):(0,i.warn)(`_getElementsByName - element not allowed: ${s}`)}return r}for(const i of document.getElementsByName(e)){const{exportValue:e}=i,n=i.getAttribute("data-element-id")
n!==t&&(u.has(i)&&r.push({id:n,exportValue:e,domElement:i}))}return r}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup()
if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea")
else e.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:e,data:{id:t}}=this
this.container.addEventListener("dblclick",(()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}class f extends p{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,r=document.createElement("a")
r.setAttribute("data-element-id",e.id)
let i=!1
return e.url?(t.addLinkAttributes(r,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(r,e.action),i=!0):e.attachment?(this._bindAttachment(r,e.attachment),i=!0):e.setOCGState?(this.#Zt(r,e.setOCGState),i=!0):e.dest?(this._bindLink(r,e.dest),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),i=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(r,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(r),this.container}#er(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&this.#er()}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),this.#er()}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,t.content,t.filename),!1),this.#er()}#Zt(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),this.#er()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("")
const r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]])
for(const i of Object.keys(t.actions)){const n=r.get(i)
n&&(e[n]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:i}}),!1))}e.onclick||(e.onclick=()=>!1),this.#er()}_bindResetFormAction(e,t){const r=e.onclick
if(r||(e.href=this.linkService.getAnchorUrl("")),this.#er(),!this._fieldObjects)return(0,i.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(r||(e.onclick=()=>!1))
e.onclick=()=>{r?.()
const{fields:e,refs:n,include:s}=t,a=[]
if(0!==e.length||0!==n.length){const t=new Set(n)
for(const r of e){const e=this._fieldObjects[r]||[]
for(const{id:r}of e)t.add(r)}for(const e of Object.values(this._fieldObjects))for(const r of e)t.has(r.id)===s&&a.push(r)}else for(const t of Object.values(this._fieldObjects))a.push(...t)
const o=this.annotationStorage,l=[]
for(const t of a){const{id:e}=t
switch(l.push(e),t.type){case"text":{const r=t.defaultValue||""
o.setValue(e,{value:r})
break}case"checkbox":case"radiobutton":{const r=t.defaultValue===t.exportValues
o.setValue(e,{value:r})
break}case"combobox":case"listbox":{const r=t.defaultValue||""
o.setValue(e,{value:r})
break}default:continue}const r=document.querySelector(`[data-element-id="${e}"]`)
r&&(u.has(r)?r.dispatchEvent(new Event("resetform")):(0,i.warn)(`_bindResetFormAction - element not allowed: ${e}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}}class m extends p{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation")
const e=document.createElement("img")
return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class g extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&("CANVAS"===e.previousSibling?.nodeName&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){const{isWin:t,isMac:r}=i.FeatureTest.platform
return t&&e.ctrlKey||r&&e.metaKey}_setEventListener(e,t,r,i,n){r.includes("mouse")?e.addEventListener(r,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(r,(e=>{if("blur"===r){if(!t.focused||!e.relatedTarget)return
t.focused=!1}else if("focus"===r){if(t.focused)return
t.focused=!0}n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(e)}})}))}_setEventListeners(e,t,r,i){for(const[n,s]of r)("Action"===s||this.data.actions?.[s])&&("Focus"!==s&&"Blur"!==s||(t||={focused:!1}),this._setEventListener(e,t,n,s,i),"Focus"!==s||this.data.actions?.Blur?"Blur"!==s||this.data.actions?.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null
e.style.backgroundColor=null===t?"transparent":i.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:r}=this.data.defaultAppearanceData,n=this.data.defaultAppearanceData.fontSize||9,s=e.style
let a
const o=e=>Math.round(10*e)/10
if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(i.LINE_FACTOR*n))||1)
a=Math.min(n,o(t/i.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2)
a=Math.min(n,o(e/i.LINE_FACTOR))}s.fontSize=`calc(${a}px * var(--scale-factor))`,s.color=i.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(s.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class b extends g{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,i){const n=this.annotationStorage
for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=r),n.setValue(s.id,{[i]:r})}render(){const e=this.annotationStorage,t=this.data.id
this.container.classList.add("textWidgetAnnotation")
let r=null
if(this.renderForms){const i=e.getValue(t,{value:this.data.fieldValue})
let n=i.value||""
const s=e.getValue(t,{charLimit:this.data.maxLen}).charLimit
s&&n.length>s&&(n=n.slice(0,s))
let a=i.formattedValue||this.data.textContent?.join("\n")||null
a&&this.data.comb&&(a=a.replaceAll(/\s+/g,""))
const o={userValue:n,formattedValue:a,lastCommittedValue:null,commitKey:1,focused:!1}
this.data.multiLine?(r=document.createElement("textarea"),r.textContent=a??n,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type="text",r.setAttribute("value",a??n),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=c,this._setRequired(r,this.data.required),s&&(r.maxLength=s),r.addEventListener("input",(i=>{e.setValue(t,{value:i.target.value}),this.setPropertyOnSiblings(r,"value",i.target.value,"value"),o.formattedValue=null})),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??""
r.value=o.userValue=t,o.formattedValue=null}))
let l=e=>{const{formattedValue:t}=o
null!=t&&(e.target.value=t),e.target.scrollLeft=0}
if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",(e=>{if(o.focused)return
const{target:t}=e
o.userValue&&(t.value=o.userValue),o.lastCommittedValue=t.value,o.commitKey=1,o.focused=!0})),r.addEventListener("updatefromsandbox",(r=>{this.showElementAndHideCanvas(r.target)
const i={value(r){o.userValue=r.detail.value??"",e.setValue(t,{value:o.userValue.toString()}),r.target.value=o.userValue},formattedValue(r){const{formattedValue:i}=r.detail
o.formattedValue=i,null!=i&&r.target!==document.activeElement&&(r.target.value=i),e.setValue(t,{formattedValue:i})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:r=>{const{charLimit:i}=r.detail,{target:n}=r
if(0===i)return void n.removeAttribute("maxLength")
n.setAttribute("maxLength",i)
let s=o.userValue
!s||s.length<=i||(s=s.slice(0,i),n.value=o.userValue=s,e.setValue(t,{value:s}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:n.selectionStart,selEnd:n.selectionEnd}}))}}
this._dispatchEventFromSandbox(i,r)})),r.addEventListener("keydown",(e=>{o.commitKey=1
let r=-1
if("Escape"===e.key?r=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(o.commitKey=3):r=2,-1===r)return
const{value:i}=e.target
o.lastCommittedValue!==i&&(o.lastCommittedValue=i,o.userValue=i,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}))
const i=l
l=null,r.addEventListener("blur",(e=>{if(!o.focused||!e.relatedTarget)return
o.focused=!1
const{value:r}=e.target
o.userValue=r,o.lastCommittedValue!==r&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:o.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),i(e)})),this.data.actions?.Keystroke&&r.addEventListener("beforeinput",(e=>{o.lastCommittedValue=null
const{data:r,target:i}=e,{value:n,selectionStart:s,selectionEnd:a}=i
let l=s,c=a
switch(e.inputType){case"deleteWordBackward":{const e=n.substring(0,s).match(/\w*[^\w]*$/)
e&&(l-=e[0].length)
break}case"deleteWordForward":{const e=n.substring(s).match(/^[^\w]*\w*/)
e&&(c+=e[0].length)
break}case"deleteContentBackward":s===a&&(l-=1)
break
case"deleteContentForward":s===a&&(c+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,change:r||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(r,o,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(l&&r.addEventListener("blur",l),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/s
r.classList.add("comb"),r.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell"
return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class y extends g{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class v extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,r=t.id
let i=e.getValue(r,{value:t.exportValue===t.fieldValue}).value
"string"==typeof i&&(i="Off"!==i,e.setValue(r,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox")
const n=document.createElement("input")
return u.add(n),n.setAttribute("data-element-id",r),n.disabled=t.readOnly,this._setRequired(n,this.data.required),n.type="checkbox",n.name=t.fieldName,i&&n.setAttribute("checked",!0),n.setAttribute("exportValue",t.exportValue),n.tabIndex=c,n.addEventListener("change",(i=>{const{name:n,checked:s}=i.target
for(const a of this._getElementsByName(n,r)){const r=s&&a.exportValue===t.exportValue
a.domElement&&(a.domElement.checked=r),e.setValue(a.id,{value:r})}e.setValue(r,{value:s})})),n.addEventListener("resetform",(e=>{const r=t.defaultFieldValue||"Off"
e.target.checked=r===t.exportValue})),this.enableScripting&&this.hasJSActions&&(n.addEventListener("updatefromsandbox",(t=>{const i={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(r,{value:t.target.checked})}}
this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class w extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton")
const e=this.annotationStorage,t=this.data,r=t.id
let i=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value
"string"==typeof i&&(i=i!==t.buttonValue,e.setValue(r,{value:i}))
const n=document.createElement("input")
if(u.add(n),n.setAttribute("data-element-id",r),n.disabled=t.readOnly,this._setRequired(n,this.data.required),n.type="radio",n.name=t.fieldName,i&&n.setAttribute("checked",!0),n.tabIndex=c,n.addEventListener("change",(t=>{const{name:i,checked:n}=t.target
for(const s of this._getElementsByName(i,r))e.setValue(s.id,{value:!1})
e.setValue(r,{value:n})})),n.addEventListener("resetform",(e=>{const r=t.defaultFieldValue
e.target.checked=null!=r&&r===t.buttonValue})),this.enableScripting&&this.hasJSActions){const i=t.buttonValue
n.addEventListener("updatefromsandbox",(t=>{const n={value:t=>{const n=i===t.detail.value
for(const i of this._getElementsByName(t.target.name)){const t=n&&i.id===r
i.domElement&&(i.domElement.checked=t),e.setValue(i.id,{value:t})}}}
this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class x extends f{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render()
e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText)
const t=e.lastChild
return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class _ extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation")
const e=this.annotationStorage,t=this.data.id,r=e.getValue(t,{value:this.data.fieldValue}),i=document.createElement("select")
u.add(i),i.setAttribute("data-element-id",t),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=c
let n=this.data.combo&&this.data.options.length>0
this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue
for(const r of i.options)r.selected=r.value===t}))
for(const c of this.data.options){const e=document.createElement("option")
e.textContent=c.displayValue,e.value=c.exportValue,r.value.includes(c.exportValue)&&(e.setAttribute("selected",!0),n=!1),i.append(e)}let s=null
if(n){const e=document.createElement("option")
e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),i.prepend(e),s=()=>{e.remove(),i.removeEventListener("input",s),s=null},i.addEventListener("input",s)}const a=e=>{const t=e?"value":"textContent",{options:r,multiple:n}=i
return n?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[t])):-1===r.selectedIndex?null:r[r.selectedIndex][t]}
let o=a(!1)
const l=e=>{const t=e.target.options
return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))}
return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(r=>{const n={value(r){s?.()
const n=r.detail.value,l=new Set(Array.isArray(n)?n:[n])
for(const e of i.options)e.selected=l.has(e.value)
e.setValue(t,{value:a(!0)}),o=a(!1)},multipleSelection(e){i.multiple=!0},remove(r){const n=i.options,s=r.detail.remove
if(n[s].selected=!1,i.remove(s),n.length>0){-1===Array.prototype.findIndex.call(n,(e=>e.selected))&&(n[0].selected=!0)}e.setValue(t,{value:a(!0),items:l(r)}),o=a(!1)},clear(r){for(;0!==i.length;)i.remove(0)
e.setValue(t,{value:null,items:[]}),o=a(!1)},insert(r){const{index:n,displayValue:s,exportValue:c}=r.detail.insert,u=i.children[n],d=document.createElement("option")
d.textContent=s,d.value=c,u?u.before(d):i.append(d),e.setValue(t,{value:a(!0),items:l(r)}),o=a(!1)},items(r){const{items:n}=r.detail
for(;0!==i.length;)i.remove(0)
for(const e of n){const{displayValue:t,exportValue:r}=e,n=document.createElement("option")
n.textContent=t,n.value=r,i.append(n)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(t,{value:a(!0),items:l(r)}),o=a(!1)},indices(r){const i=new Set(r.detail.indices)
for(const e of r.target.options)e.selected=i.has(e.index)
e.setValue(t,{value:a(!0)}),o=a(!1)},editable(e){e.target.disabled=!e.detail.editable}}
this._dispatchEventFromSandbox(n,r)})),i.addEventListener("input",(r=>{const i=a(!0)
e.setValue(t,{value:i}),r.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):i.addEventListener("input",(function(r){e.setValue(t,{value:a(!0)})})),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class S extends p{constructor(e){const{data:t,elements:r}=e
super(e,{isRenderable:p._hasPopupData(t)}),this.elements=r}render(){this.container.classList.add("popupAnnotation")
const e=new k({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[]
for(const r of this.elements)r.popup=e,t.push(r.data.id),r.addHighlightArea()
return this.container.setAttribute("aria-controls",t.map((e=>`${i.AnnotationPrefix}${e}`)).join(",")),this.container}}class k{#tr=null
#rr=this.#ir.bind(this)
#nr=this.#sr.bind(this)
#ar=this.#or.bind(this)
#lr=this.#cr.bind(this)
#$t=null
#Ie=null
#ur=null
#dr=null
#hr=null
#pr=null
#fr=!1
#mr=null
#gr=null
#br=null
#yr=null
#vr=!1
constructor({container:e,color:t,elements:r,titleObj:i,modificationDate:s,contentsObj:a,richText:o,parent:l,rect:c,parentRect:u,open:d}){this.#Ie=e,this.#yr=i,this.#ur=a,this.#br=o,this.#hr=l,this.#$t=t,this.#gr=c,this.#pr=u,this.#dr=r
const h=n.PDFDateString.toDateObject(s)
h&&(this.#tr=l.l10n.get("annotation_date_string",{date:h.toLocaleDateString(),time:h.toLocaleTimeString()})),this.trigger=r.flatMap((e=>e.getElementsToTriggerPopup()))
for(const n of this.trigger)n.addEventListener("click",this.#lr),n.addEventListener("mouseenter",this.#ar),n.addEventListener("mouseleave",this.#nr),n.classList.add("popupTriggerArea")
for(const n of r)n.container?.addEventListener("keydown",this.#rr)
this.#Ie.hidden=!0,d&&this.#cr()}render(){if(this.#mr)return
const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:r,pageX:n,pageY:s}}}=this.#hr,a=this.#mr=document.createElement("div")
if(a.className="popup",this.#$t){const e=a.style.outlineColor=i.Util.makeHexColor(...this.#$t)
if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))a.style.backgroundColor=`color-mix(in srgb, ${e} 30%, white)`
else{const e=.7
a.style.backgroundColor=i.Util.makeHexColor(...this.#$t.map((t=>Math.floor(e*(255-t)+t))))}}const o=document.createElement("span")
o.className="header"
const c=document.createElement("h1")
if(o.append(c),({dir:c.dir,str:c.textContent}=this.#yr),a.append(o),this.#tr){const e=document.createElement("span")
e.classList.add("popupDate"),this.#tr.then((t=>{e.textContent=t})),o.append(e)}const u=this.#ur,d=this.#br
if(!d?.str||u?.str&&u.str!==d.str){const e=this._formatContents(u)
a.append(e)}else l.XfaLayer.render({xfaHtml:d.html,intent:"richText",div:a}),a.lastChild.classList.add("richText","popupContent")
let h=!!this.#pr,p=h?this.#pr:this.#gr
for(const l of this.#dr)if(!p||null!==i.Util.intersect(l.data.rect,p)){p=l.data.rect,h=!0
break}const f=i.Util.normalizeRect([p[0],e[3]-p[1]+e[1],p[2],e[3]-p[3]+e[1]]),m=h?p[2]-p[0]+5:0,g=f[0]+m,b=f[1],{style:y}=this.#Ie
y.left=100*(g-n)/t+"%",y.top=100*(b-s)/r+"%",this.#Ie.append(a)}_formatContents({str:e,dir:t}){const r=document.createElement("p")
r.classList.add("popupContent"),r.dir=t
const i=e.split(/(?:\r\n?|\n)/)
for(let n=0,s=i.length;n<s;++n){const e=i[n]
r.append(document.createTextNode(e)),n<s-1&&r.append(document.createElement("br"))}return r}#ir(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&this.#fr)&&this.#cr()}#cr(){this.#fr=!this.#fr,this.#fr?(this.#or(),this.#Ie.addEventListener("click",this.#lr),this.#Ie.addEventListener("keydown",this.#rr)):(this.#sr(),this.#Ie.removeEventListener("click",this.#lr),this.#Ie.removeEventListener("keydown",this.#rr))}#or(){this.#mr||this.render(),this.isVisible?this.#fr&&this.#Ie.classList.add("focused"):(this.#Ie.hidden=!1,this.#Ie.style.zIndex=parseInt(this.#Ie.style.zIndex)+1e3)}#sr(){this.#Ie.classList.remove("focused"),!this.#fr&&this.isVisible&&(this.#Ie.hidden=!0,this.#Ie.style.zIndex=parseInt(this.#Ie.style.zIndex)-1e3)}forceHide(){this.#vr=this.isVisible,this.#vr&&(this.#Ie.hidden=!0)}maybeShow(){this.#vr&&(this.#vr=!1,this.#Ie.hidden=!1)}get isVisible(){return!1===this.#Ie.hidden}}class A extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=i.AnnotationEditorType.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div")
e.classList.add("annotationTextContent"),e.setAttribute("role","comment")
for(const t of this.textContent){const r=document.createElement("span")
r.textContent=t,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}t.FreeTextAnnotationElement=A
class C extends p{#wr=null
constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation")
const e=this.data,{width:t,height:r}=d(e.rect),i=this.svgFactory.create(t,r,!0),n=this.#wr=this.svgFactory.createElement("svg:line")
return n.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),n.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),n.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),n.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),i.append(n),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#wr}addHighlightArea(){this.container.classList.add("highlightArea")}}class P extends p{#xr=null
constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation")
const e=this.data,{width:t,height:r}=d(e.rect),i=this.svgFactory.create(t,r,!0),n=e.borderStyle.width,s=this.#xr=this.svgFactory.createElement("svg:rect")
return s.setAttribute("x",n/2),s.setAttribute("y",n/2),s.setAttribute("width",t-n),s.setAttribute("height",r-n),s.setAttribute("stroke-width",n||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#xr}addHighlightArea(){this.container.classList.add("highlightArea")}}class O extends p{#_r=null
constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation")
const e=this.data,{width:t,height:r}=d(e.rect),i=this.svgFactory.create(t,r,!0),n=e.borderStyle.width,s=this.#_r=this.svgFactory.createElement("svg:ellipse")
return s.setAttribute("cx",t/2),s.setAttribute("cy",r/2),s.setAttribute("rx",t/2-n/2),s.setAttribute("ry",r/2-n/2),s.setAttribute("stroke-width",n||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#_r}addHighlightArea(){this.container.classList.add("highlightArea")}}class E extends p{#Sr=null
constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName)
const e=this.data,{width:t,height:r}=d(e.rect),i=this.svgFactory.create(t,r,!0)
let n=[]
for(const a of e.vertices){const t=a.x-e.rect[0],r=e.rect[3]-a.y
n.push(t+","+r)}n=n.join(" ")
const s=this.#Sr=this.svgFactory.createElement(this.svgElementName)
return s.setAttribute("points",n),s.setAttribute("stroke-width",e.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#Sr}addHighlightArea(){this.container.classList.add("highlightArea")}}class T extends E{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class M extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class I extends p{#kr=[]
constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=i.AnnotationEditorType.INK}render(){this.container.classList.add(this.containerClassName)
const e=this.data,{width:t,height:r}=d(e.rect),i=this.svgFactory.create(t,r,!0)
for(const n of e.inkLists){let t=[]
for(const i of n){const r=i.x-e.rect[0],n=e.rect[3]-i.y
t.push(`${r},${n}`)}t=t.join(" ")
const r=this.svgFactory.createElement(this.svgElementName)
this.#kr.push(r),r.setAttribute("points",t),r.setAttribute("stroke-width",e.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),!e.popupRef&&this.hasPopupData&&this._createPopup(),i.append(r)}return this.container.append(i),this.container}getElementsToTriggerPopup(){return this.#kr}addHighlightArea(){this.container.classList.add("highlightArea")}}t.InkAnnotationElement=I
class F extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class N extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class R extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class D extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class j extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}t.StampAnnotationElement=j
class L extends p{#Ar=null
constructor(e){super(e,{isRenderable:!0})
const{filename:t,content:r}=this.data.file
this.filename=(0,n.getFilenameFromUrl)(t,!0),this.content=r,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:t,content:r})}render(){this.container.classList.add("fileAttachmentAnnotation")
const{container:e,data:t}=this
let r
t.hasAppearance||0===t.fillAlpha?r=document.createElement("div"):(r=document.createElement("img"),r.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(t.name)?"paperclip":"pushpin"}.svg`,t.fillAlpha&&t.fillAlpha<1&&(r.style=`filter: opacity(${Math.round(100*t.fillAlpha)}%);`)),r.addEventListener("dblclick",this.#Cr.bind(this)),this.#Ar=r
const{isMac:n}=i.FeatureTest.platform
return e.addEventListener("keydown",(e=>{"Enter"===e.key&&(n?e.metaKey:e.ctrlKey)&&this.#Cr()})),!t.popupRef&&this.hasPopupData?this._createPopup():r.classList.add("popupTriggerArea"),e.append(r),e}getElementsToTriggerPopup(){return this.#Ar}addHighlightArea(){this.container.classList.add("highlightArea")}#Cr(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{#_t=null
#Pr=null
#Or=new Map
constructor({div:e,accessibilityManager:t,annotationCanvasMap:r,l10n:i,page:n,viewport:s}){this.div=e,this.#_t=t,this.#Pr=r,this.l10n=i,this.page=n,this.viewport=s,this.zIndex=0,this.l10n||=o.NullL10n}#Er(e,t){const r=e.firstChild||e
r.id=`${i.AnnotationPrefix}${t}`,this.div.append(e),this.#_t?.moveElementInDOM(this.div,e,r,!1)}async render(e){const{annotations:t}=e,r=this.div;(0,n.setLayerDimensions)(r,this.viewport)
const a=new Map,o={data:null,layer:r,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new n.DOMSVGFactory,annotationStorage:e.annotationStorage||new s.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null}
for(const n of t){if(n.noHTML)continue
const e=n.annotationType===i.AnnotationType.POPUP
if(e){const e=a.get(n.id)
if(!e)continue
o.elements=e}else{const{width:e,height:t}=d(n.rect)
if(e<=0||t<=0)continue}o.data=n
const t=h.create(o)
if(!t.isRenderable)continue
if(!e&&n.popupRef){const e=a.get(n.popupRef)
e?e.push(t):a.set(n.popupRef,[t])}t.annotationEditorType>0&&this.#Or.set(t.data.id,t)
const r=t.render()
n.hidden&&(r.style.visibility="hidden"),this.#Er(r,n.id)}this.#Tr(),await this.l10n.translate(r)}update({viewport:e}){const t=this.div
this.viewport=e,(0,n.setLayerDimensions)(t,{rotation:e.rotation}),this.#Tr(),t.hidden=!1}#Tr(){if(!this.#Pr)return
const e=this.div
for(const[t,r]of this.#Pr){const i=e.querySelector(`[data-annotation-id="${t}"]`)
if(!i)continue
const{firstChild:n}=i
n?"CANVAS"===n.nodeName?n.replaceWith(r):n.before(r):i.append(r)}this.#Pr.clear()}getEditableAnnotations(){return Array.from(this.#Or.values())}getEditableAnnotation(e){return this.#Or.get(e)}}},(e,t)=>{function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function i(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0
t.ColorConverters=class{static CMYK_G([e,t,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=i(e),e,e]}static G_HTML([e]){const t=r(e)
return`#${t}${t}${t}`}static RGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}static RGB_rgb(e){return e.map(i)}static RGB_HTML(e){return`#${e.map(r).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,r,n]){return[i(1-Math.min(1,e+n)),i(1-Math.min(1,r+n)),i(1-Math.min(1,t+n))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1)
return this.RGB_HTML(t)}static RGB_CMYK([e,t,r]){const i=1-e,n=1-t,s=1-r
return["CMYK",i,n,s,Math.min(i,n,s)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=i
const r={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"}
function i(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`
break
case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return r[e]||""}r.print_progress_percent="{{progress}}%"
const n={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t=null,r=i(e,t))=>function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(r,t),async translate(e){}}
t.NullL10n=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0
var i=r(25)
t.XfaLayer=class{static setupStorage(e,t,r,i,n){const s=i.getValue(t,{value:null})
switch(r.name){case"textarea":if(null!==s.value&&(e.textContent=s.value),"print"===n)break
e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}))
break
case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(s.value===r.attributes.xfaOn?e.setAttribute("checked",!0):s.value===r.attributes.xfaOff&&e.removeAttribute("checked"),"print"===n)break
e.addEventListener("change",(e=>{i.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==s.value&&e.setAttribute("value",s.value),"print"===n)break
e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}))}break
case"select":if(null!==s.value){e.setAttribute("value",s.value)
for(const e of r.children)e.attributes.value===s.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const r=e.target.options,n=-1===r.selectedIndex?"":r[r.selectedIndex].value
i.setValue(t,{value:n})}))}}static setAttributes({html:e,element:t,storage:r=null,intent:i,linkService:n}){const{attributes:s}=t,a=e instanceof HTMLAnchorElement
"radio"===s.type&&(s.name=`${s.name}-${i}`)
for(const[o,l]of Object.entries(s))if(null!=l)switch(o){case"class":l.length&&e.setAttribute(o,l.join(" "))
break
case"dataId":break
case"id":e.setAttribute("data-element-id",l)
break
case"style":Object.assign(e.style,l)
break
case"textContent":e.textContent=l
break
default:(!a||"href"!==o&&"newWindow"!==o)&&e.setAttribute(o,l)}a&&n.addLinkAttributes(e,s.href,s.newWindow),r&&s.dataId&&this.setupStorage(e,s.dataId,t,r)}static render(e){const t=e.annotationStorage,r=e.linkService,n=e.xfaHtml,s=e.intent||"display",a=document.createElement(n.name)
n.attributes&&this.setAttributes({html:a,element:n,intent:s,linkService:r})
const o=[[n,-1,a]],l=e.div
if(l.append(a),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`
l.style.transform=t}"richText"!==s&&l.setAttribute("class","xfaLayer xfaFont")
const c=[]
for(;o.length>0;){const[e,n,a]=o.at(-1)
if(n+1===e.children.length){o.pop()
continue}const l=e.children[++o.at(-1)[1]]
if(null===l)continue
const{name:u}=l
if("#text"===u){const e=document.createTextNode(l.value)
c.push(e),a.append(e)
continue}const d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u)
if(a.append(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:s,linkService:r}),l.children&&l.children.length>0)o.push([l,-1,d])
else if(l.value){const e=document.createTextNode(l.value)
i.XfaText.shouldBuildText(u)&&c.push(e),d.append(e)}}for(const i of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))i.setAttribute("readOnly",!0)
return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`
e.div.style.transform=t,e.div.hidden=!1}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0
var i=r(1),n=r(4),s=r(29),a=r(6),o=r(5)
class l extends n.AnnotationEditor{#Mr=0
#Ir=0
#Fr=this.canvasPointermove.bind(this)
#Nr=this.canvasPointerleave.bind(this)
#Rr=this.canvasPointerup.bind(this)
#Dr=this.canvasPointerdown.bind(this)
#jr=new Path2D
#Lr=!1
#Br=!1
#$r=!1
#zr=null
#Ur=0
#qr=0
#Hr=null
static _defaultColor=null
static _defaultOpacity=1
static _defaultThickness=1
static _type="ink"
constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){n.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:l._defaultThickness=t
break
case i.AnnotationEditorParamsType.INK_COLOR:l._defaultColor=t
break
case i.AnnotationEditorParamsType.INK_OPACITY:l._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:this.#Vr(t)
break
case i.AnnotationEditorParamsType.INK_COLOR:this.#Gt(t)
break
case i.AnnotationEditorParamsType.INK_OPACITY:this.#Gr(t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,l._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,l._defaultColor||n.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*l._defaultOpacity)]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||l._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||l._defaultColor||n.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??l._defaultOpacity))]]}#Vr(e){const t=this.thickness
this.addCommands({cmd:()=>{this.thickness=e,this.#Wr()},undo:()=>{this.thickness=t,this.#Wr()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Gt(e){const t=this.color
this.addCommands({cmd:()=>{this.color=e,this.#Xr()},undo:()=>{this.color=t,this.#Xr()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#Gr(e){e/=100
const t=this.opacity
this.addCommands({cmd:()=>{this.opacity=e,this.#Xr()},undo:()=>{this.opacity=t,this.#Xr()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(this.#Kr(),this.#Yr()),this.isAttachedToDOM||(this.parent.add(this),this.#Jr()),this.#Wr()))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#zr.disconnect(),this.#zr=null,super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,r=this.width*e,i=this.height*t
this.setDimensions(r,i)}enableEditMode(){this.#Lr||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",this.#Dr))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Dr))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Qr(){const{parentRotation:e,parentDimensions:[t,r]}=this
switch(e){case 90:return[0,r,r,t]
case 180:return[t,r,t,r]
case 270:return[t,0,r,t]
default:return[0,0,t,r]}}#Zr(){const{ctx:e,color:t,opacity:r,thickness:i,parentScale:n,scaleFactor:s}=this
e.lineWidth=i*n/s,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle=`${t}${(0,o.opacityToHex)(r)}`}#ei(e,t){this.canvas.addEventListener("contextmenu",a.noContextMenu),this.canvas.addEventListener("pointerleave",this.#Nr),this.canvas.addEventListener("pointermove",this.#Fr),this.canvas.addEventListener("pointerup",this.#Rr),this.canvas.removeEventListener("pointerdown",this.#Dr),this.isEditing=!0,this.#$r||(this.#$r=!0,this.#Jr(),this.thickness||=l._defaultThickness,this.color||=l._defaultColor||n.AnnotationEditor._defaultLineColor,this.opacity??=l._defaultOpacity),this.currentPath.push([e,t]),this.#Br=!1,this.#Zr(),this.#Hr=()=>{this.#ti(),this.#Hr&&window.requestAnimationFrame(this.#Hr)},window.requestAnimationFrame(this.#Hr)}#ri(e,t){const[r,i]=this.currentPath.at(-1)
if(this.currentPath.length>1&&e===r&&t===i)return
const n=this.currentPath
let s=this.#jr
if(n.push([e,t]),this.#Br=!0,n.length<=2)return s.moveTo(...n[0]),void s.lineTo(e,t)
3===n.length&&(this.#jr=s=new Path2D,s.moveTo(...n[0])),this.#ii(s,...n.at(-3),...n.at(-2),e,t)}#ni(){if(0===this.currentPath.length)return
const e=this.currentPath.at(-1)
this.#jr.lineTo(...e)}#si(e,t){let r
if(this.#Hr=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),this.#ri(e,t),this.#ni(),1!==this.currentPath.length)r=this.#ai()
else{const i=[e,t]
r=[[i,i.slice(),i.slice(),i]]}const i=this.#jr,n=this.currentPath
this.currentPath=[],this.#jr=new Path2D
this.addCommands({cmd:()=>{this.allRawPaths.push(n),this.paths.push(r),this.bezierPath2D.push(i),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Kr(),this.#Yr()),this.#Wr())},mustExec:!0})}#ti(){if(!this.#Br)return
this.#Br=!1
const e=Math.ceil(this.thickness*this.parentScale),t=this.currentPath.slice(-3),r=t.map((e=>e[0])),i=t.map((e=>e[1])),{ctx:n}=(Math.min(...r),Math.max(...r),Math.min(...i),Math.max(...i),this)
n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height)
for(const s of this.bezierPath2D)n.stroke(s)
n.stroke(this.#jr),n.restore()}#ii(e,t,r,i,n,s,a){const o=(t+i)/2,l=(r+n)/2,c=(i+s)/2,u=(n+a)/2
e.bezierCurveTo(o+2*(i-o)/3,l+2*(n-l)/3,c+2*(i-c)/3,u+2*(n-u)/3,c,u)}#ai(){const e=this.currentPath
if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]]
const t=[]
let r,[i,n]=e[0]
for(r=1;r<e.length-2;r++){const[s,a]=e[r],[o,l]=e[r+1],c=(s+o)/2,u=(a+l)/2,d=[i+2*(s-i)/3,n+2*(a-n)/3],h=[c+2*(s-c)/3,u+2*(a-u)/3]
t.push([[i,n],d,h,[c,u]]),[i,n]=[c,u]}const[s,a]=e[r],[o,l]=e[r+1],c=[i+2*(s-i)/3,n+2*(a-n)/3],u=[o+2*(s-o)/3,l+2*(a-l)/3]
return t.push([[i,n],c,u,[o,l]]),t}#Xr(){if(this.isEmpty())return void this.#oi()
this.#Zr()
const{canvas:e,ctx:t}=this
t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),this.#oi()
for(const r of this.bezierPath2D)t.stroke(r)}commit(){this.#Lr||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#Lr=!0,this.div.classList.add("disabled"),this.#Wr(!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!this.#Lr&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),this.#ei(e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),this.#ri(e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),this.#li(e)}canvasPointerleave(e){this.#li(e)}#li(e){this.canvas.removeEventListener("pointerleave",this.#Nr),this.canvas.removeEventListener("pointermove",this.#Fr),this.canvas.removeEventListener("pointerup",this.#Rr),this.canvas.addEventListener("pointerdown",this.#Dr),setTimeout((()=>{this.canvas.removeEventListener("contextmenu",a.noContextMenu)}),10),this.#si(e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}#Kr(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",n.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Yr(){this.#zr=new ResizeObserver((e=>{const t=e[0].contentRect
t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#zr.observe(this.div)}get isResizable(){return!this.isEmpty()&&this.#Lr}render(){if(this.div)return this.div
let e,t
this.width&&(e=this.x,t=this.y),super.render(),n.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>this.div?.setAttribute("aria-label",e)))
const[r,i,s,a]=this.#Qr()
if(this.setAt(r,i,0,0),this.setDims(s,a),this.#Kr(),this.width){const[r,i]=this.parentDimensions
this.setAspectRatio(this.width*r,this.height*i),this.setAt(e*r,t*i,this.width*r,this.height*i),this.#$r=!0,this.#Jr(),this.setDims(this.width*r,this.height*i),this.#Xr(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode()
return this.#Yr(),this.div}#Jr(){if(!this.#$r)return
const[e,t]=this.parentDimensions
this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#oi()}setDimensions(e,t){const r=Math.round(e),i=Math.round(t)
if(this.#Ur===r&&this.#qr===i)return
this.#Ur=r,this.#qr=i,this.canvas.style.visibility="hidden"
const[n,s]=this.parentDimensions
this.width=e/n,this.height=t/s,this.fixAndSetPosition(),this.#Lr&&this.#ci(e,t),this.#Jr(),this.#Xr(),this.canvas.style.visibility="visible",this.fixDims()}#ci(e,t){const r=this.#ui(),i=(e-r)/this.#Ir,n=(t-r)/this.#Mr
this.scaleFactor=Math.min(i,n)}#oi(){const e=this.#ui()/2
this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#di(e){const t=new Path2D
for(let r=0,i=e.length;r<i;r++){const[i,n,s,a]=e[r]
0===r&&t.moveTo(...i),t.bezierCurveTo(n[0],n[1],s[0],s[1],a[0],a[1])}return t}static#hi(e,t,r){const[i,n,s,a]=t
switch(r){case 0:for(let t=0,r=e.length;t<r;t+=2)e[t]+=i,e[t+1]=a-e[t+1]
break
case 90:for(let t=0,r=e.length;t<r;t+=2){const r=e[t]
e[t]=e[t+1]+i,e[t+1]=r+n}break
case 180:for(let t=0,r=e.length;t<r;t+=2)e[t]=s-e[t],e[t+1]+=n
break
case 270:for(let t=0,r=e.length;t<r;t+=2){const r=e[t]
e[t]=s-e[t+1],e[t+1]=a-r}break
default:throw new Error("Invalid rotation")}return e}static#pi(e,t,r){const[i,n,s,a]=t
switch(r){case 0:for(let t=0,r=e.length;t<r;t+=2)e[t]-=i,e[t+1]=a-e[t+1]
break
case 90:for(let t=0,r=e.length;t<r;t+=2){const r=e[t]
e[t]=e[t+1]-n,e[t+1]=r-i}break
case 180:for(let t=0,r=e.length;t<r;t+=2)e[t]=s-e[t],e[t+1]-=n
break
case 270:for(let t=0,r=e.length;t<r;t+=2){const r=e[t]
e[t]=a-e[t+1],e[t+1]=s-r}break
default:throw new Error("Invalid rotation")}return e}#fi(e,t,r,i){const n=[],s=this.thickness/2,a=e*t+s,o=e*r+s
for(const c of this.paths){const t=[],r=[]
for(let i=0,n=c.length;i<n;i++){const[s,l,u,d]=c[i],h=e*s[0]+a,p=e*s[1]+o,f=e*l[0]+a,m=e*l[1]+o,g=e*u[0]+a,b=e*u[1]+o,y=e*d[0]+a,v=e*d[1]+o
0===i&&(t.push(h,p),r.push(h,p)),t.push(f,m,g,b,y,v),r.push(f,m),i===n-1&&r.push(y,v)}n.push({bezier:l.#hi(t,i,this.rotation),points:l.#hi(r,i,this.rotation)})}return n}#mi(){let e=1/0,t=-1/0,r=1/0,n=-1/0
for(const s of this.paths)for(const[a,o,l,c]of s){const s=i.Util.bezierBoundingBox(...a,...o,...l,...c)
e=Math.min(e,s[0]),r=Math.min(r,s[1]),t=Math.max(t,s[2]),n=Math.max(n,s[3])}return[e,r,t,n]}#ui(){return this.#Lr?Math.ceil(this.thickness*this.parentScale):0}#Wr(e=!1){if(this.isEmpty())return
if(!this.#Lr)return void this.#Xr()
const t=this.#mi(),r=this.#ui()
this.#Ir=Math.max(n.AnnotationEditor.MIN_SIZE,t[2]-t[0]),this.#Mr=Math.max(n.AnnotationEditor.MIN_SIZE,t[3]-t[1])
const i=Math.ceil(r+this.#Ir*this.scaleFactor),s=Math.ceil(r+this.#Mr*this.scaleFactor),[a,o]=this.parentDimensions
this.width=i/a,this.height=s/o,this.setAspectRatio(i,s)
const l=this.translationX,c=this.translationY
this.translationX=-t[0],this.translationY=-t[1],this.#Jr(),this.#Xr(),this.#Ur=i,this.#qr=s,this.setDims(i,s)
const u=e?r/this.scaleFactor/2:0
this.translate(l-this.translationX-u,c-this.translationY-u)}static deserialize(e,t,r){if(e instanceof s.InkAnnotationElement)return null
const a=super.deserialize(e,t,r)
a.thickness=e.thickness,a.color=i.Util.makeHexColor(...e.color),a.opacity=e.opacity
const[o,c]=a.pageDimensions,u=a.width*o,d=a.height*c,h=a.parentScale,p=e.thickness/2
a.#Lr=!0,a.#Ur=Math.round(u),a.#qr=Math.round(d)
const{paths:f,rect:m,rotation:g}=e
for(let{bezier:i}of f){i=l.#pi(i,m,g)
const e=[]
a.paths.push(e)
let t=h*(i[0]-p),r=h*(i[1]-p)
for(let s=2,a=i.length;s<a;s+=6){const n=h*(i[s]-p),a=h*(i[s+1]-p),o=h*(i[s+2]-p),l=h*(i[s+3]-p),c=h*(i[s+4]-p),u=h*(i[s+5]-p)
e.push([[t,r],[n,a],[o,l],[c,u]]),t=c,r=u}const n=this.#di(e)
a.bezierPath2D.push(n)}const b=a.#mi()
return a.#Ir=Math.max(n.AnnotationEditor.MIN_SIZE,b[2]-b[0]),a.#Mr=Math.max(n.AnnotationEditor.MIN_SIZE,b[3]-b[1]),a.#ci(u,d),a}serialize(){if(this.isEmpty())return null
const e=this.getRect(0,0),t=n.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle)
return{annotationType:i.AnnotationEditorType.INK,color:t,thickness:this.thickness,opacity:this.opacity,paths:this.#fi(this.scaleFactor/this.parentScale,this.translationX,this.translationY,e),pageIndex:this.pageIndex,rect:e,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}t.InkEditor=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0
var i=r(1),n=r(4),s=r(6),a=r(29)
class o extends n.AnnotationEditor{#gi=null
#bi=null
#yi=null
#vi=null
#wi=null
#xi=null
#zr=null
#_i=null
#Si=!1
#ki=!1
static _type="stamp"
constructor(e){super({...e,name:"stampEditor"}),this.#vi=e.bitmapUrl,this.#wi=e.bitmapFile}static initialize(e){n.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,i.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>`image/${e}`)))}static get supportedTypesStr(){return(0,i.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(i.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}#Ai(e,t=!1){e?(this.#gi=e.bitmap,t||(this.#bi=e.id,this.#Si=e.isSvg),this.#Kr()):this.remove()}#Ci(){this.#yi=null,this._uiManager.enableWaiting(!1),this.#xi&&this.div.focus()}#Pi(){if(this.#bi)return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(this.#bi).then((e=>this.#Ai(e,!0))).finally((()=>this.#Ci()))
if(this.#vi){const e=this.#vi
return this.#vi=null,this._uiManager.enableWaiting(!0),void(this.#yi=this._uiManager.imageManager.getFromUrl(e).then((e=>this.#Ai(e))).finally((()=>this.#Ci())))}if(this.#wi){const e=this.#wi
return this.#wi=null,this._uiManager.enableWaiting(!0),void(this.#yi=this._uiManager.imageManager.getFromFile(e).then((e=>this.#Ai(e))).finally((()=>this.#Ci())))}const e=document.createElement("input")
e.type="file",e.accept=o.supportedTypesStr,this.#yi=new Promise((t=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0)
const t=await this._uiManager.imageManager.getFromFile(e.files[0])
this.#Ai(t)}else this.remove()
t()})),e.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>this.#Ci())),e.click()}remove(){this.#bi&&(this.#gi=null,this._uiManager.imageManager.deleteId(this.#bi),this.#xi?.remove(),this.#xi=null,this.#zr?.disconnect(),this.#zr=null),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#bi&&this.#Pi(),this.isAttachedToDOM||this.parent.add(this))):this.#bi&&this.#Pi()}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#yi||this.#gi||this.#vi||this.#wi)}get isResizable(){return!0}render(){if(this.div)return this.div
let e,t
if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.#gi?this.#Kr():this.#Pi(),this.width){const[r,i]=this.parentDimensions
this.setAt(e*r,t*i,this.width*r,this.height*i)}return this.div}#Kr(){const{div:e}=this
let{width:t,height:r}=this.#gi
const[i,n]=this.pageDimensions,s=.75
if(this.width)t=this.width*i,r=this.height*n
else if(t>s*i||r>s*n){const e=Math.min(s*i/t,s*n/r)
t*=e,r*=e}const[a,o]=this.parentDimensions
this.setDims(t*a/i,r*o/n),this._uiManager.enableWaiting(!1)
const l=this.#xi=document.createElement("canvas")
e.append(l),e.hidden=!1,this.#Oi(t,r),this.#Yr(),this.#ki||(this.parent.addUndoableEditor(this),this.#ki=!0),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}#Ei(e,t){const[r,i]=this.parentDimensions
this.width=e/r,this.height=t/i,this.setDims(e,t),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==this.#_i&&clearTimeout(this.#_i)
this.#_i=setTimeout((()=>{this.#_i=null,this.#Oi(e,t)}),200)}#Ti(e,t){const{width:r,height:i}=this.#gi
let n=r,s=i,a=this.#gi
for(;n>2*e||s>2*t;){const r=n,i=s
n>2*e&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2)),s>2*t&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2))
const o=new OffscreenCanvas(n,s)
o.getContext("2d").drawImage(a,0,0,r,i,0,0,n,s),a=o.transferToImageBitmap()}return a}#Oi(e,t){e=Math.ceil(e),t=Math.ceil(t)
const r=this.#xi
if(!r||r.width===e&&r.height===t)return
r.width=e,r.height=t
const i=this.#Si?this.#gi:this.#Ti(e,t),n=r.getContext("2d")
n.filter=this._uiManager.hcmFilter,n.drawImage(i,0,0,i.width,i.height,0,0,e,t)}#Mi(e){if(e){if(this.#Si){const e=this._uiManager.imageManager.getSvgUrl(this.#bi)
if(e)return e}const e=document.createElement("canvas");({width:e.width,height:e.height}=this.#gi)
return e.getContext("2d").drawImage(this.#gi,0,0),e.toDataURL()}if(this.#Si){const[e,t]=this.pageDimensions,r=Math.round(this.width*e*s.PixelsPerInch.PDF_TO_CSS_UNITS),i=Math.round(this.height*t*s.PixelsPerInch.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(r,i)
return n.getContext("2d").drawImage(this.#gi,0,0,this.#gi.width,this.#gi.height,0,0,r,i),n.transferToImageBitmap()}return structuredClone(this.#gi)}#Yr(){this.#zr=new ResizeObserver((e=>{const t=e[0].contentRect
t.width&&t.height&&this.#Ei(t.width,t.height)})),this.#zr.observe(this.div)}static deserialize(e,t,r){if(e instanceof a.StampAnnotationElement)return null
const i=super.deserialize(e,t,r),{rect:n,bitmapUrl:s,bitmapId:o,isSvg:l,accessibilityData:c}=e
o&&r.imageManager.isValidId(o)?i.#bi=o:i.#vi=s,i.#Si=l
const[u,d]=i.pageDimensions
return i.width=(n[2]-n[0])/u,i.height=(n[3]-n[1])/d,c&&(i.altTextData=c),i}serialize(e=!1,t=null){if(this.isEmpty())return null
const r={annotationType:i.AnnotationEditorType.STAMP,bitmapId:this.#bi,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#Si,structTreeParentId:this._structTreeParentId}
if(e)return r.bitmapUrl=this.#Mi(!0),r.accessibilityData=this.altTextData,r
const{decorative:n,altText:s}=this.altTextData
if(!n&&s&&(r.accessibilityData={type:"Figure",alt:s}),null===t)return r
t.stamps||=new Map
const a=this.#Si?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null
if(t.stamps.has(this.#bi)){if(this.#Si){const e=t.stamps.get(this.#bi)
a>e.area&&(e.area=a,e.serialized.bitmap.close(),e.serialized.bitmap=this.#Mi(!1))}}else t.stamps.set(this.#bi,{area:a,serialized:r}),r.bitmap=this.#Mi(!1)
return r}}t.StampEditor=o}],__webpack_module_cache__={}
function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e]
if(void 0!==t)return t.exports
var r=__webpack_module_cache__[e]={exports:{}}
return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={}
return(()=>{var e=__webpack_exports__
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return s.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return a.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return i.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return r.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}})
Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return i.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return n.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return n.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}})
var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(2),i=__w_pdfjs_require__(6),n=__w_pdfjs_require__(26),s=__w_pdfjs_require__(27),a=__w_pdfjs_require__(5),o=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__webpack_exports__})())),
/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2023 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */
function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=e.pdfjsWorker=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],(()=>e.pdfjsWorker=t())):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(globalThis,(()=>(()=>{"use strict"
var e=[,(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0
var i,n=r(2),s=r(3),a=r(4),o=r(6),l=r(10),c=r(68),u=r(73),d=r(104),h=r(105),p=r(72)
class f{constructor(e){this.name=e,this.terminated=!1,this._capability=new n.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=f
class m{static setup(e,t){let r=!1
e.on("test",(function(t){r||(r=!0,e.send("test",t instanceof Uint8Array))})),e.on("configure",(function(e){(0,n.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return m.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let r,i=!1,m=null
const g=new Set,b=(0,n.getVerbosityLevel)(),{docId:y,apiVersion:v}=e,w="3.11.174"
if(v!==w)throw new Error(`The API version "${v}" does not match the Worker version "${w}".`)
const x=[]
for(const n in[])x.push(n)
if(x.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+x.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.")
const _=y+"_worker"
let S=new d.MessageHandler(_,y,t)
function k(){if(i)throw new Error("Worker was terminated")}function A(e){g.add(e)}function C(e){e.finish(),g.delete(e)}async function P(e){await r.ensureDoc("checkHeader"),await r.ensureDoc("parseStartXRef"),await r.ensureDoc("parse",[e]),await r.ensureDoc("checkFirstPage",[e]),await r.ensureDoc("checkLastPage",[e])
const t=await r.ensureDoc("isPureXfa")
if(t){const e=new f("loadXfaFonts")
A(e),await Promise.all([r.loadXfaFonts(S,e).catch((e=>{})).then((()=>C(e))),r.loadXfaImages()])}const[i,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")])
return{numPages:i,fingerprints:n,htmlForXfa:t?await r.ensureDoc("htmlForXfa"):null}}function O({data:e,password:t,disableAutoFetch:r,rangeChunkSize:i,length:a,docBaseUrl:l,enableXfa:c,evaluatorOptions:u}){const d={source:null,disableAutoFetch:r,docBaseUrl:l,docId:y,enableXfa:c,evaluatorOptions:u,handler:S,length:a,password:t,rangeChunkSize:i},p=new n.PromiseCapability
let f
if(e){try{d.source=e,f=new o.LocalPdfManager(d),p.resolve(f)}catch(x){p.reject(x)}return p.promise}let g,b=[]
try{g=new h.PDFWorkerStream(S)}catch(x){return p.reject(x),p.promise}const v=g.getFullReader()
v.headersReady.then((function(){if(v.isRangeSupported){d.source=g,d.length=v.contentLength,d.disableAutoFetch||=v.isStreamingSupported,f=new o.NetworkPdfManager(d)
for(const e of b)f.sendProgressiveData(e)
b=[],p.resolve(f),m=null}})).catch((function(e){p.reject(e),m=null}))
let w=0
return new Promise((function(e,t){const r=function({value:e,done:i}){try{if(k(),i)return f||function(){const e=(0,s.arrayBuffersToBytes)(b)
a&&e.length!==a&&(0,n.warn)("reported HTTP length is different from actual")
try{d.source=e,f=new o.LocalPdfManager(d),p.resolve(f)}catch(x){p.reject(x)}b=[]}(),void(m=null)
w+=e.byteLength,v.isStreamingSupported||S.send("DocProgress",{loaded:w,total:Math.max(w,v.contentLength||0)}),f?f.sendProgressiveData(e):b.push(e),v.read().then(r,t)}catch(l){t(l)}}
v.read().then(r,t)})).catch((function(e){p.reject(e),m=null})),m=function(e){g.cancelAllRequests(e)},p.promise}return S.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function([e,t,r,i]){return{rotate:e,ref:t,userUnit:r,view:i}}))}))})),S.on("GetPageIndex",(function(e){const t=a.Ref.get(e.num,e.gen)
return r.ensureCatalog("getPageIndex",[t])})),S.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),S.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),S.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),S.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),S.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),S.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),S.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),S.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),S.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")})),S.on("GetPageJSActions",(function({pageIndex:e}){return r.getPage(e).then((function(e){return r.ensure(e,"jsActions")}))})),S.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),S.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")})),S.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),S.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),S.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")})),S.on("GetData",(function(e){return r.requestLoadedStream().then((function(e){return e.bytes}))})),S.on("GetAnnotations",(function({pageIndex:e,intent:t}){return r.getPage(e).then((function(r){const i=new f(`GetAnnotations: page ${e}`)
return A(i),r.getAnnotationsData(S,i,t).then((e=>(C(i),e)),(e=>{throw C(i),e}))}))})),S.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")})),S.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")})),S.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")})),S.on("SaveDocument",(async function({isPureXfa:e,numPages:t,annotationStorage:i,filename:o}){const c=[r.requestLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("startXRef"),r.ensureDoc("xref"),r.ensureDoc("linearization"),r.ensureCatalog("structTreeRoot")],d=[],h=e?null:(0,s.getNewAnnotationsMap)(i),[m,g,b,y,v,w,x]=await Promise.all(c),_=v.trailer.getRaw("Root")||null
let k
if(h){x?await x.canUpdateStructTree({pdfManager:r,newAnnotationsByPage:h})&&(k=x):await p.StructTreeRoot.canCreateStructureTree({catalogRef:_,pdfManager:r,newAnnotationsByPage:h})&&(k=null)
const e=l.AnnotationFactory.generateImages(i.values(),v,r.evaluatorOptions.isOffscreenCanvasSupported),t=void 0===k?d:[]
for(const[i,n]of h)t.push(r.getPage(i).then((t=>{const r=new f(`Save (editor): page ${i}`)
return t.saveNewAnnotations(S,r,n,e).finally((function(){C(r)}))})))
null===k?d.push(Promise.all(t).then((async e=>(await p.StructTreeRoot.createStructureTree({newAnnotationsByPage:h,xref:v,catalogRef:_,pdfManager:r,newRefs:e}),e)))):k&&d.push(Promise.all(t).then((async e=>(await k.updateStructureTree({newAnnotationsByPage:h,pdfManager:r,newRefs:e}),e))))}if(e)d.push(r.serializeXfaData(i))
else for(let n=0;n<t;n++)d.push(r.getPage(n).then((function(e){const t=new f(`Save: page ${n}`)
return e.save(S,t,i).finally((function(){C(t)}))})))
const A=await Promise.all(d)
let P=[],O=null
if(e){if(O=A[0],!O)return m.bytes}else if(P=A.flat(2),0===P.length)return m.bytes
const E=b&&g instanceof a.Dict&&P.some((e=>e.needAppearances)),T=g instanceof a.Dict&&g.get("XFA")||null
let M=null,I=!1
if(Array.isArray(T)){for(let e=0,t=T.length;e<t;e+=2)"datasets"===T[e]&&(M=T[e+1],I=!0)
null===M&&(M=v.getNewTemporaryRef())}else T&&(0,n.warn)("Unsupported XFA type.")
let F=Object.create(null)
if(v.trailer){const e=Object.create(null),t=v.trailer.get("Info")||null
t instanceof a.Dict&&t.forEach(((t,r)=>{"string"==typeof r&&(e[t]=(0,n.stringToPDFString)(r))})),F={rootRef:_,encryptRef:v.trailer.getRaw("Encrypt")||null,newRef:v.getNewTemporaryRef(),infoRef:v.trailer.getRaw("Info")||null,info:e,fileIds:v.trailer.get("ID")||null,startXRef:w?y:v.lastXRefStreamPos??y,filename:o}}return(0,u.incrementalUpdate)({originalData:m.bytes,xrefInfo:F,newRefs:P,xref:v,hasXfa:!!T,xfaDatasetsRef:M,hasXfaDatasetsEntry:I,needAppearances:E,acroFormRef:b,acroForm:g,xfaData:O}).finally((()=>{v.resetNewTemporaryRef()}))})),S.on("GetOperatorList",(function(e,t){const i=e.pageIndex
r.getPage(i).then((function(r){const s=new f(`GetOperatorList: page ${i}`)
A(s)
const a=b>=n.VerbosityLevel.INFOS?Date.now():0
r.getOperatorList({handler:S,sink:t,task:s,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){C(s),a&&(0,n.info)(`page=${i+1} - getOperatorList: time=${Date.now()-a}ms, len=${e.length}`),t.close()}),(function(e){C(s),s.terminated||t.error(e)}))}))})),S.on("GetTextContent",(function(e,t){const{pageIndex:i,includeMarkedContent:s,disableNormalization:a}=e
r.getPage(i).then((function(e){const r=new f("GetTextContent: page "+i)
A(r)
const o=b>=n.VerbosityLevel.INFOS?Date.now():0
e.extractTextContent({handler:S,task:r,sink:t,includeMarkedContent:s,disableNormalization:a}).then((function(){C(r),o&&(0,n.info)(`page=${i+1} - getTextContent: time=`+(Date.now()-o)+"ms"),t.close()}),(function(e){C(r),r.terminated||t.error(e)}))}))})),S.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),S.on("FontFallback",(function(e){return r.fontFallback(e.id,S)})),S.on("Cleanup",(function(e){return r.cleanup(!0)})),S.on("Terminate",(function(e){i=!0
const t=[]
if(r){r.terminate(new n.AbortException("Worker was terminated."))
const e=r.cleanup()
t.push(e),r=null}else(0,c.clearGlobalCaches)()
m&&m(new n.AbortException("Worker was terminated."))
for(const r of g)t.push(r.finished),r.terminate()
return Promise.all(t).then((function(){S.destroy(),S=null}))})),S.on("Ready",(function(t){(function(e){function t(e){k(),S.send("GetDoc",{pdfInfo:e})}function a(e){if(k(),e instanceof n.PasswordException){const t=new f(`PasswordException: response ${e.code}`)
A(t),S.sendWithPromise("PasswordRequest",e).then((function({password:e}){C(t),r.updatePassword(e),o()})).catch((function(){C(t),S.send("DocException",e)}))}else e instanceof n.InvalidPDFException||e instanceof n.MissingPDFException||e instanceof n.UnexpectedResponseException||e instanceof n.UnknownErrorException?S.send("DocException",e):S.send("DocException",new n.UnknownErrorException(e.message,e.toString()))}function o(){k(),P(!1).then(t,(function(e){k(),e instanceof s.XRefParseException?r.requestLoadedStream().then((function(){k(),P(!0).then(t,a)})):a(e)}))}k(),O(e).then((function(e){if(i)throw e.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated")
r=e,r.requestLoadedStream(!0).then((e=>{S.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(o,a)})(e),e=null})),_}static initializeFromPort(e){const t=new d.MessageHandler("worker","main",e)
m.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=m,"undefined"==typeof window&&!n.isNodeJS&&"undefined"!=typeof self&&("function"==typeof(i=self).postMessage&&"onmessage"in i)&&m.initializeFromPort(self)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||o(t)},t.bytesToString=u,t.createValidAbsoluteUrl=function(e,t=null,r=null){if(!e)return null
try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g)
t?.length>=2&&(e=`http://${e}`)}if(r.tryConvertEncoding)try{e=f(e)}catch{}}const i=t?new URL(e,t):new URL(e)
if(function(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0
default:return!1}}(i))return i}catch{}return null},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto?.randomUUID)return crypto.randomUUID()
const e=new Uint8Array(32)
if("undefined"!=typeof crypto&&"function"==typeof crypto?.getRandomValues)crypto.getRandomValues(e)
else for(let t=0;t<32;t++)e[t]=Math.floor(255*Math.random())
return u(e)},t.getVerbosityLevel=function(){return s},t.info=function(e){s>=n.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1
for(let r=0,i=e.length;r<i;r++)if(e[r]!==t[r])return!1
return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){m||(m=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,g=new Map([["ﬅ","ſt"]]))
return e.replaceAll(m,((e,t,r)=>t?t.normalize("NFKC"):g.get(r)))},t.objectFromMap=function(e){const t=Object.create(null)
for(const[r,i]of e)t[r]=i
return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(s=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){if(e[0]>="ï"){let t
if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const r=new TextDecoder(t,{fatal:!0}),i=d(e)
return r.decode(i)}catch(r){a(`stringToPDFString: "${r}".`)}}const t=[]
for(let i=0,n=e.length;i<n;i++){const r=p[e.charCodeAt(i)]
t.push(r?String.fromCharCode(r):e.charAt(i))}return t.join("")},t.stringToUTF8String=f,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a
const r=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type)
t.isNodeJS=r
t.IDENTITY_MATRIX=[1,0,0,1,0,0]
t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0]
t.MAX_IMAGE_SIZE_TO_CACHE=1e7
t.LINE_FACTOR=1.35
t.LINE_DESCENT_FACTOR=.35
const i=.35/1.35
t.BASELINE_FACTOR=i
t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256}
t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3}
t.AnnotationEditorPrefix="pdfjs_internal_editor_"
t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15}
t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23}
t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048}
t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4}
t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3}
t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26}
t.AnnotationReplyType={GROUP:"Group",REPLY:"R"}
t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512}
t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864}
t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5}
t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"}
t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"}
t.PageActionEventType={O:"PageOpen",C:"PageClose"}
const n={ERRORS:0,WARNINGS:1,INFOS:5}
t.VerbosityLevel=n
t.CMapCompressionType={NONE:0,BINARY:1}
t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91}
t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}
let s=n.WARNINGS
function a(e){s>=n.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function l(e,t,r,i=!1){return Object.defineProperty(e,t,{value:r,enumerable:!i,configurable:!0,writable:!1}),r}const c=function(){function e(t,r){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}()
t.BaseException=c
t.PasswordException=class extends c{constructor(e,t){super(e,"PasswordException"),this.code=t}}
t.UnknownErrorException=class extends c{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}
t.InvalidPDFException=class extends c{constructor(e){super(e,"InvalidPDFException")}}
t.MissingPDFException=class extends c{constructor(e){super(e,"MissingPDFException")}}
t.UnexpectedResponseException=class extends c{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}
t.FormatError=class extends c{constructor(e){super(e,"FormatError")}}
function u(e){"object"==typeof e&&void 0!==e?.length||o("Invalid argument for bytesToString")
const t=e.length,r=8192
if(t<r)return String.fromCharCode.apply(null,e)
const i=[]
for(let n=0;n<t;n+=r){const s=Math.min(n+r,t),a=e.subarray(n,s)
i.push(String.fromCharCode.apply(null,a))}return i.join("")}function d(e){"string"!=typeof e&&o("Invalid argument for stringToBytes")
const t=e.length,r=new Uint8Array(t)
for(let i=0;i<t;++i)r[i]=255&e.charCodeAt(i)
return r}t.AbortException=class extends c{constructor(e){super(e,"AbortException")}}
t.FeatureTest=class{static get isLittleEndian(){return l(this,"isLittleEndian",function(){const e=new Uint8Array(4)
return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return l(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return l(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?l(this,"platform",{isWin:!1,isMac:!1}):l(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return l(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}
const h=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")))
t.Util=class{static makeHexColor(e,t,r){return`#${h[e]}${h[t]}${h[r]}`}static scaleMinMax(e,t){let r
e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const r=t[0]*t[3]-t[1]*t[2]
return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),n=this.applyTransform([e[0],e[3]],t),s=this.applyTransform([e[2],e[1]],t)
return[Math.min(r[0],i[0],n[0],s[0]),Math.min(r[1],i[1],n[1],s[1]),Math.max(r[0],i[0],n[0],s[0]),Math.max(r[1],i[1],n[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2]
return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(r+s)/2,o=Math.sqrt((r+s)**2-4*(r*s-n*i))/2,l=a+o||1,c=a-o||1
return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0)
return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]))
if(r>i)return null
const n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]))
return n>s?null:[r,n,i,s]}static bezierBoundingBox(e,t,r,i,n,s,a,o){const l=[],c=[[],[]]
let u,d,h,p,f,m,g,b
for(let x=0;x<2;++x)if(0===x?(d=6*e-12*r+6*n,u=-3*e+9*r-9*n+3*a,h=3*r-3*e):(d=6*t-12*i+6*s,u=-3*t+9*i-9*s+3*o,h=3*i-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue
p=-h/d,0<p&&p<1&&l.push(p)}else g=d*d-4*h*u,b=Math.sqrt(g),g<0||(f=(-d+b)/(2*u),0<f&&f<1&&l.push(f),m=(-d-b)/(2*u),0<m&&m<1&&l.push(m))
let y,v=l.length
const w=v
for(;v--;)p=l[v],y=1-p,c[0][v]=y*y*y*e+3*y*y*p*r+3*y*p*p*n+p*p*p*a,c[1][v]=y*y*y*t+3*y*y*p*i+3*y*p*p*s+p*p*p*o
return c[0][w]=e,c[1][w]=t,c[0][w+1]=a,c[1][w+1]=o,c[0].length=c[1].length=w+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}
const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]
function f(e){return decodeURIComponent(escape(e))}t.PromiseCapability=class{#e=!1
constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>{this.#e=!0,e(t)},this.reject=e=>{this.#e=!0,t(e)}}))}get settled(){return this.#e}}
let m=null,g=null
t.AnnotationPrefix="pdfjs_internal_id_"},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=void 0,t.arrayBuffersToBytes=function(e){const t=e.length
if(0===t)return new Uint8Array(0)
if(1===t)return new Uint8Array(e[0])
let r=0
for(let s=0;s<t;s++)r+=e[s].byteLength
const i=new Uint8Array(r)
let n=0
for(let s=0;s<t;s++){const t=new Uint8Array(e[s])
i.set(t,n),n+=t.byteLength}return i},t.collectActions=function(e,t,r){const s=Object.create(null),a=u({dict:t,key:"AA",stopWhenFound:!1})
if(a)for(let i=a.length-1;i>=0;i--){const t=a[i]
if(t instanceof n.Dict)for(const i of t.getKeys()){const a=r[i]
if(!a)continue
const o=[]
h(t.getRaw(i),e,o,new n.RefSet),o.length>0&&(s[a]=o)}}if(t.has("A")){const r=[]
h(t.get("A"),e,r,new n.RefSet),r.length>0&&(s.Action=r)}return(0,i.objectSize)(s)>0?s:null},t.encodeToXmlString=function(e){const t=[]
let r=0
for(let i=0,n=e.length;i<n;i++){const n=e.codePointAt(i)
if(32<=n&&n<=126){const s=p[n]
s&&(r<i&&t.push(e.substring(r,i)),t.push(s),r=i+1)}else r<i&&t.push(e.substring(r,i)),t.push(`&#x${n.toString(16).toUpperCase()};`),n>55295&&(n<57344||n>65533)&&i++,r=i+1}if(0===t.length)return e
r<e.length&&t.push(e.substring(r,e.length))
return t.join("")},t.escapePDFName=function(e){const t=[]
let r=0
for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);(n<33||n>126||35===n||40===n||41===n||60===n||62===n||91===n||93===n||123===n||125===n||47===n||37===n)&&(r<i&&t.push(e.substring(r,i)),t.push(`#${n.toString(16)}`),r=i+1)}if(0===t.length)return e
r<e.length&&t.push(e.substring(r,e.length))
return t.join("")},t.escapeString=function(e){return e.replaceAll(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getInheritableProperty=u,t.getLookupTableFactory=function(e){let t
return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getNewAnnotationsMap=function(e){if(!e)return null
const t=new Map
for(const[r,n]of e){if(!r.startsWith(i.AnnotationEditorPrefix))continue
let e=t.get(n.pageIndex)
e||(e=[],t.set(n.pageIndex,e)),e.push(n)}return t.size>0?t:null},t.getRotationMatrix=function(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0]
case 180:return[-1,0,0,-1,t,r]
case 270:return[0,-1,1,0,0,r]
default:throw new Error("Invalid rotation")}},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){if(e<=0)return 0
return Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString()
const t=Math.round(100*e)
if(t%100==0)return(t/100).toString()
if(t%10==0)return e.toFixed(1)
return e.toFixed(2)},t.parseXFAPath=function(e){const t=/(.+)\[(\d+)\]$/
return e.split(".").map((e=>{const r=e.match(t)
return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e)
if(t?.[2]){const e=t[2]
let r=!1
return"true"===t[3]&&"app.launchURL"===t[1]&&(r=!0),{url:e,newWindow:r}}return null},t.stringToUTF16HexString=function(e){const t=[]
for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r)
t.push((i>>8&255).toString(16).padStart(2,"0"),(255&i).toString(16).padStart(2,"0"))}return t.join("")},t.stringToUTF16String=function(e,t=!1){const r=[]
t&&r.push("þÿ")
for(let i=0,n=e.length;i<n;i++){const t=e.charCodeAt(i)
r.push(String.fromCharCode(t>>8&255),String.fromCharCode(255&t))}return r.join("")},t.toRomanNumerals=function(e,t=!1){(0,i.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.")
const r=[]
let n
for(;e>=1e3;)e-=1e3,r.push("M")
n=e/100|0,e%=100,r.push(d[n]),n=e/10|0,e%=10,r.push(d[10+n]),r.push(d[20+e])
const s=r.join("")
return t?s.toLowerCase():s},t.validateCSSFont=function(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:r,fontWeight:i,italicAngle:n}=e
if(!f(r,!0))return!1
const s=i?i.toString():""
e.fontWeight=t.has(s)?s:"400"
const a=parseFloat(n)
return e.italicAngle=isNaN(a)||a<-90||a>90?"14":n.toString(),!0},t.validateFontName=f
var i=r(2),n=r(4),s=r(5)
t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/
class a extends i.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=a
class o extends i.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=o
class l extends i.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=l
class c extends i.BaseException{constructor(e){super(e,"XRefParseException")}}function u({dict:e,key:t,getArray:r=!1,stopWhenFound:i=!0}){let s
const a=new n.RefSet
for(;e instanceof n.Dict&&(!e.objId||!a.has(e.objId));){e.objId&&a.put(e.objId)
const n=r?e.getArray(t):e.get(t)
if(void 0!==n){if(i)return n;(s||=[]).push(n)}e=e.get("Parent")}return s}t.XRefParseException=c
const d=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"]
function h(e,t,r,a){if(!e)return
let o=null
if(e instanceof n.Ref){if(a.has(e))return
o=e,a.put(o),e=t.fetch(e)}if(Array.isArray(e))for(const i of e)h(i,t,r,a)
else if(e instanceof n.Dict){if((0,n.isName)(e.get("S"),"JavaScript")){const t=e.get("JS")
let n
t instanceof s.BaseStream?n=t.getString():"string"==typeof t&&(n=t),n&&=(0,i.stringToPDFString)(n).replaceAll("\0",""),n&&r.push(n)}h(e.getRaw("Next"),t,r,a)}o&&a.remove(o)}const p={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}
function f(e,t=!1){const r=/^("|').*("|')$/.exec(e)
if(r&&r[1]===r[2]){if(new RegExp(`[^\\\\]${r[1]}`).test(e.slice(1,-1)))return t&&(0,i.warn)(`FontFamily contains unescaped ${r[1]}: ${e}.`),!1}else for(const n of e.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(n)||!/^[\w-\\]+$/.test(n))return t&&(0,i.warn)(`FontFamily contains invalid <custom-ident>: ${e}.`),!1
return!0}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){a=Object.create(null),o=Object.create(null),l=Object.create(null)},t.isCmd=function(e,t){return e instanceof u&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof h&&(void 0===t||g(e.get("Type"),t))},t.isName=g,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen}
var i=r(2)
const n=Symbol("CIRCULAR_REF")
t.CIRCULAR_REF=n
const s=Symbol("EOF")
t.EOF=s
let a=Object.create(null),o=Object.create(null),l=Object.create(null)
class c{constructor(e){this.name=e}static get(e){return o[e]||=new c(e)}}t.Name=c
class u{constructor(e){this.cmd=e}static get(e){return a[e]||=new u(e)}}t.Cmd=u
const d=function(){return d}
class h{constructor(e=null){this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=d}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,r){let i=this._map[e]
return void 0===i&&void 0!==t&&(i=this._map[t],void 0===i&&void 0!==r&&(i=this._map[r])),i instanceof p&&this.xref?this.xref.fetch(i,this.suppressEncryption):i}async getAsync(e,t,r){let i=this._map[e]
return void 0===i&&void 0!==t&&(i=this._map[t],void 0===i&&void 0!==r&&(i=this._map[r])),i instanceof p&&this.xref?this.xref.fetchAsync(i,this.suppressEncryption):i}getArray(e,t,r){let i=this._map[e]
if(void 0===i&&void 0!==t&&(i=this._map[t],void 0===i&&void 0!==r&&(i=this._map[r])),i instanceof p&&this.xref&&(i=this.xref.fetch(i,this.suppressEncryption)),Array.isArray(i)){i=i.slice()
for(let e=0,t=i.length;e<t;e++)i[e]instanceof p&&this.xref&&(i[e]=this.xref.fetch(i[e],this.suppressEncryption))}return i}getRaw(e){return this._map[e]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(e,t){this._map[e]=t}has(e){return void 0!==this._map[e]}forEach(e){for(const t in this._map)e(t,this.get(t))}static get empty(){const e=new h(null)
return e.set=(e,t)=>{(0,i.unreachable)("Should not call `set` on the empty dictionary.")},(0,i.shadow)(this,"empty",e)}static merge({xref:e,dictArray:t,mergeSubDicts:r=!1}){const i=new h(e),n=new Map
for(const s of t)if(s instanceof h)for(const[e,t]of Object.entries(s._map)){let i=n.get(e)
if(void 0===i)i=[],n.set(e,i)
else if(!(r&&t instanceof h))continue
i.push(t)}for(const[s,a]of n){if(1===a.length||!(a[0]instanceof h)){i._map[s]=a[0]
continue}const t=new h(e)
for(const e of a)for(const[r,i]of Object.entries(e._map))void 0===t._map[r]&&(t._map[r]=i)
t.size>0&&(i._map[s]=t)}return n.clear(),i.size>0?i:h.empty}clone(){const e=new h(this.xref)
for(const t of this.getKeys())e.set(t,this.getRaw(t))
return e}}t.Dict=h
class p{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(e){const t=l[e]
if(t)return t
const r=/^(\d+)R(\d*)$/.exec(e)
return r&&"0"!==r[1]?l[e]=new p(parseInt(r[1]),r[2]?parseInt(r[2]):0):null}static get(e,t){const r=0===t?`${e}R`:`${e}R${t}`
return l[r]||=new p(e,t)}}t.Ref=p
class f{constructor(e=null){this._set=new Set(e?._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=f
class m{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function g(e,t){return e instanceof c&&(void 0===t||e.name===t)}t.RefSetCache=m},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0
var i=r(2)
class n{constructor(){this.constructor===n&&(0,i.unreachable)("Cannot initialize BaseStream.")}get length(){(0,i.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,i.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,i.shadow)(this,"isDataLoaded",!0)}getByte(){(0,i.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,i.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte()
return-1!==e&&this.pos--,e}peekBytes(e){const t=this.getBytes(e)
return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte()
return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,i.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,i.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,i.unreachable)("Abstract method `reset` called")}moveStart(){(0,i.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,r=null){(0,i.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}t.BaseStream=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0
var i=r(2),n=r(7),s=r(3),a=r(9),o=r(8)
class l{constructor(e){this.constructor===l&&(0,i.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=function(e){if(e){const t=(0,i.createValidAbsoluteUrl)(e)
if(t)return t.href;(0,i.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}(e.docBaseUrl),this._docId=e.docId,this._password=e.password,this.enableXfa=e.enableXfa,e.evaluatorOptions.isOffscreenCanvasSupported&&=i.FeatureTest.isOffscreenCanvasSupported,this.evaluatorOptions=e.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,r){(0,i.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,i.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(e=!1){(0,i.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,i.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,i.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends l{constructor(e){super(e)
const t=new o.Stream(e.source)
this.pdfDocument=new a.PDFDocument(this,t),this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,r){const i=e[t]
return"function"==typeof i?i.apply(e,r):i}requestRange(e,t){return Promise.resolve()}requestLoadedStream(e=!1){return this._loadedStreamPromise}terminate(e){}}
t.NetworkPdfManager=class extends l{constructor(e){super(e),this.streamManager=new n.ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),this.pdfDocument=new a.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,r){try{const i=e[t]
return"function"==typeof i?i.apply(e,r):i}catch(i){if(!(i instanceof s.MissingDataException))throw i
return await this.requestRange(i.begin,i.end),this.ensure(e,t,r)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(e=!1){return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0
var i=r(3),n=r(2),s=r(8)
class a extends s.Stream{constructor(e,t,r){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=r,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[]
for(let t=0,r=this.numChunks;t<r;++t)this._loadedChunks.has(t)||e.push(t)
return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const r=this.chunkSize
if(e%r!=0)throw new Error(`Bad begin offset: ${e}`)
const i=e+t.byteLength
if(i%r!=0&&i!==this.bytes.length)throw new Error(`Bad end offset: ${i}`)
this.bytes.set(new Uint8Array(t),e)
const n=Math.floor(e/r),s=Math.floor((i-1)/r)+1
for(let a=n;a<s;++a)this._loadedChunks.add(a)}onReceiveProgressiveData(e){let t=this.progressiveDataLength
const r=Math.floor(t/this.chunkSize)
this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t
const i=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize)
for(let n=r;n<i;++n)this._loadedChunks.add(n)}ensureByte(e){if(e<this.progressiveDataLength)return
const t=Math.floor(e/this.chunkSize)
if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new i.MissingDataException(e,e+1)
this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return
if(t<=this.progressiveDataLength)return
const r=Math.floor(e/this.chunkSize)
if(r>this.numChunks)return
const n=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks)
for(let s=r;s<n;++s)if(!this._loadedChunks.has(s))throw new i.MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks
for(let r=0;r<t;++r){const i=(e+r)%t
if(!this._loadedChunks.has(i))return i}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){const e=this.pos
return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){const t=this.bytes,r=this.pos,i=this.end
if(!e)return i>this.progressiveDataLength&&this.ensureRange(r,i),t.subarray(r,i)
let n=r+e
return n>i&&(n=i),n>this.progressiveDataLength&&this.ensureRange(r,n),this.pos=n,t.subarray(r,n)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t,r=null){function i(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),i.prototype=Object.create(this),i.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,i=[]
for(let n=t;n<r;++n)this._loadedChunks.has(n)||i.push(n)
return i},Object.defineProperty(i.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0})
const n=new i
return n.pos=n.start=e,n.end=e+t||this.end,n.dict=r,n}getBaseStreams(){return[this]}}t.ChunkedStream=a
t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new a(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=new n.PromiseCapability}sendRequest(e,t){const r=this.pdfNetworkStream.getRangeReader(e,t)
r.isStreamingSupported||(r.onProgress=this.onProgress.bind(this))
let n=[],s=0
return new Promise(((e,t)=>{const a=({value:o,done:l})=>{try{if(l){const t=(0,i.arrayBuffersToBytes)(n)
return n=null,void e(t)}s+=o.byteLength,r.isStreamingSupported&&this.onProgress({loaded:s}),n.push(o),r.read().then(a,t)}catch(c){t(c)}}
r.read().then(a,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(e=!1){if(!e){const e=this.stream.getMissingChunks()
this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,r=new Set
this._chunksNeededByRequest.set(t,r)
for(const n of e)this.stream.hasChunk(n)||r.add(n)
if(0===r.size)return Promise.resolve()
const i=new n.PromiseCapability
this._promisesByRequest.set(t,i)
const s=[]
for(const n of r){let e=this._requestsByChunk.get(n)
e||(e=[],this._requestsByChunk.set(n,e),s.push(n)),e.push(t)}if(s.length>0){const e=this.groupChunks(s)
for(const t of e){const e=t.beginChunk*this.chunkSize,r=Math.min(t.endChunk*this.chunkSize,this.length)
this.sendRequest(e,r).catch(i.reject)}}return i.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length)
const r=this.getBeginChunk(e),i=this.getEndChunk(t),n=[]
for(let s=r;s<i;++s)n.push(s)
return this._requestChunks(n)}requestRanges(e=[]){const t=[]
for(const r of e){const e=this.getBeginChunk(r.begin),i=this.getEndChunk(r.end)
for(let r=e;r<i;++r)t.includes(r)||t.push(r)}return t.sort((function(e,t){return e-t})),this._requestChunks(t)}groupChunks(e){const t=[]
let r=-1,i=-1
for(let n=0,s=e.length;n<s;++n){const s=e[n]
r<0&&(r=s),i>=0&&i+1!==s&&(t.push({beginChunk:r,endChunk:i+1}),r=s),n+1===e.length&&t.push({beginChunk:r,endChunk:s+1}),i=s}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,r=void 0===e.begin,i=r?this.progressiveDataLength:e.begin,n=i+t.byteLength,s=Math.floor(i/this.chunkSize),a=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize)
r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=n):this.stream.onReceiveData(i,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream)
const o=[]
for(let l=s;l<a;++l){const e=this._requestsByChunk.get(l)
if(e){this._requestsByChunk.delete(l)
for(const t of e){const e=this._chunksNeededByRequest.get(t)
e.has(l)&&e.delete(l),e.size>0||o.push(t)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e
if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1
this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(a)
Number.isInteger(e)&&this._requestChunks([e])}for(const l of o){const e=this._promisesByRequest.get(l)
this._promisesByRequest.delete(l),e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream?.cancelAllRequests(e)
for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0
var i=r(5),n=r(2)
class s extends i.BaseStream{constructor(e,t,r,i){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=i}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,r=this.pos,i=this.end
if(!e)return t.subarray(r,i)
let n=r+e
return n>i&&(n=i),this.pos=n,t.subarray(r,n)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,r=null){return new s(this.bytes.buffer,e,t,r)}}t.Stream=s
t.StringStream=class extends s{constructor(e){super((0,n.stringToBytes)(e))}}
t.NullStream=class extends s{constructor(){super(new Uint8Array(0))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0
var i=r(2),n=r(10),s=r(3),a=r(4),o=r(51),l=r(5),c=r(74),u=r(66),d=r(68),h=r(102),p=r(16),f=r(8),m=r(76),g=r(64),b=r(13),y=r(18),v=r(72),w=r(73),x=r(77),_=r(103)
const S=[0,0,612,792]
class k{constructor({pdfManager:e,xref:t,pageIndex:r,pageDict:i,ref:n,globalIdFactory:s,fontCache:a,builtInCMapCache:o,standardFontDataCache:l,globalImageCache:c,systemFontCache:u,nonBlendModesSet:d,xfaFactory:h}){this.pdfManager=e,this.pageIndex=r,this.pageDict=i,this.xref=t,this.ref=n,this.fontCache=a,this.builtInCMapCache=o,this.standardFontDataCache=l,this.globalImageCache=c,this.systemFontCache=u,this.nonBlendModesSet=d,this.evaluatorOptions=e.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=h
const p={obj:0}
this._localIdFactory=class extends s{static createObjId(){return`p${r}_${++p.obj}`}static getPageObjId(){return`p${n.toString()}`}}}_getInheritableProperty(e,t=!1){const r=(0,s.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1})
return Array.isArray(r)?1!==r.length&&r[0]instanceof a.Dict?a.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this._getInheritableProperty("Resources")
return(0,i.shadow)(this,"resources",e instanceof a.Dict?e:a.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox
let t=this._getInheritableProperty(e,!0)
if(Array.isArray(t)&&4===t.length){if(t=i.Util.normalizeRect(t),t[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,i.warn)(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return(0,i.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||S)}get cropBox(){return(0,i.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit")
return("number"!=typeof e||e<=0)&&(e=1),(0,i.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this
if(e!==t&&!(0,i.isArrayEqual)(e,t)){const r=i.Util.intersect(e,t)
if(r&&r[2]-r[0]>0&&r[3]-r[1]>0)return(0,i.shadow)(this,"view",r);(0,i.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,i.shadow)(this,"view",t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0
return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,i.shadow)(this,"rotate",e)}_onSubStreamError(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,i.warn)(`getContentStream - ignoring sub-stream (${t}): "${e}".`)}getContentStream(){return this.pdfManager.ensure(this,"content").then((e=>e instanceof l.BaseStream?e:Array.isArray(e)?new y.StreamsSequenceStream(e,this._onSubStreamError.bind(this)):new f.NullStream))}get xfaData(){return(0,i.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}#Ii(e,t,r){for(const n of e)if(n.id){const e=a.Ref.fromString(n.id)
if(!e){(0,i.warn)(`A non-linked annotation cannot be modified: ${n.id}`)
continue}if(n.deleted){t.put(e)
continue}r?.put(e),n.ref=e,delete n.id}}async saveNewAnnotations(e,t,r,i){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.")
const s=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),o=new a.RefSet,l=new a.RefSet
this.#Ii(r,o,l)
const c=this.pageDict,u=this.annotations.filter((e=>!(e instanceof a.Ref&&o.has(e)))),d=await n.AnnotationFactory.saveNewAnnotations(s,t,r,i)
for(const{ref:n}of d.annotations)n instanceof a.Ref&&!l.has(n)&&u.push(n)
const h=c.get("Annots")
c.set("Annots",u)
const p=[]
await(0,w.writeObject)(this.ref,c,p,this.xref),h&&c.set("Annots",h)
const f=d.dependencies
return f.push({ref:this.ref,data:p.join("")},...d.annotations),f}save(e,t,r){const n=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})
return this._parsedAnnotations.then((function(e){const s=[]
for(const a of e)a.mustBePrinted(r)&&s.push(a.save(n,t,r).catch((function(e){return(0,i.warn)(`save - ignoring annotation data during "${t.name}" task: "${e}".`),null})))
return Promise.all(s).then((function(e){return e.filter((e=>!!e))}))}))}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((()=>new m.ObjectLoader(this.resources,e,this.xref).load()))}getOperatorList({handler:e,sink:t,task:r,intent:o,cacheKey:l,annotationStorage:c=null}){const u=this.getContentStream(),d=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),p=this.xfaFactory?null:(0,s.getNewAnnotationsMap)(c)
let f=null,m=Promise.resolve(null)
if(p){const e=p.get(this.pageIndex)
if(e){const t=this.pdfManager.ensureDoc("annotationGlobals")
let s
const o=new Set
for(const{bitmapId:r,bitmap:i}of e)!r||i||o.has(r)||o.add(r)
const{isOffscreenCanvasSupported:l}=this.evaluatorOptions
if(o.size>0){const t=e.slice()
for(const[e,r]of c)e.startsWith(i.AnnotationEditorPrefix)&&r.bitmap&&o.has(r.bitmapId)&&t.push(r)
s=n.AnnotationFactory.generateImages(t,this.xref,l)}else s=n.AnnotationFactory.generateImages(e,this.xref,l)
f=new a.RefSet,this.#Ii(e,f,null),m=t.then((t=>t?n.AnnotationFactory.printNewAnnotations(t,h,r,e,s):null))}}const y=Promise.all([u,d]).then((([i])=>{const n=new g.OperatorList(o,t)
return e.send("StartRenderPage",{transparency:h.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:l}),h.getOperatorList({stream:i,task:r,resources:this.resources,operatorList:n}).then((function(){return n}))}))
return Promise.all([y,this._parsedAnnotations,m]).then((function([e,t,n]){if(n){t=t.filter((e=>!(e.ref&&f.has(e.ref))))
for(let e=0,r=n.length;e<r;e++){const i=n[e]
if(i.refToReplace){const s=t.findIndex((e=>e.ref&&(0,a.isRefsEqual)(e.ref,i.refToReplace)))
s>=0&&(t.splice(s,1,i),n.splice(e--,1),r--)}}t=t.concat(n)}if(0===t.length||o&i.RenderingIntentFlag.ANNOTATIONS_DISABLE)return e.flush(!0),{length:e.totalLength}
const s=!!(o&i.RenderingIntentFlag.ANNOTATIONS_FORMS),l=!!(o&i.RenderingIntentFlag.ANY),u=!!(o&i.RenderingIntentFlag.DISPLAY),d=!!(o&i.RenderingIntentFlag.PRINT),p=[]
for(const a of t)(l||u&&a.mustBeViewed(c,s)||d&&a.mustBePrinted(c))&&p.push(a.getOperatorList(h,r,o,s,c).catch((function(e){return(0,i.warn)(`getOperatorList - ignoring annotation data during "${r.name}" task: "${e}".`),{opList:null,separateForm:!1,separateCanvas:!1}})))
return Promise.all(p).then((function(t){let r=!1,i=!1
for(const{opList:n,separateForm:s,separateCanvas:a}of t)e.addOpList(n),r||=s,i||=a
return e.flush(!0,{form:r,canvas:i}),{length:e.totalLength}}))}))}extractTextContent({handler:e,task:t,includeMarkedContent:r,disableNormalization:i,sink:n}){const s=this.getContentStream(),a=this.loadResources(["ExtGState","Font","Properties","XObject"])
return Promise.all([s,a]).then((([s])=>new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}).getTextContent({stream:s,task:t,resources:this.resources,includeMarkedContent:r,disableNormalization:i,sink:n,viewBox:this.view})))}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot")
if(!e)return null
await this._parsedAnnotations
return(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable}_parseStructTree(e){const t=new v.StructTreePage(e,this.pageDict)
return t.parse(this.ref),t}async getAnnotationsData(e,t,r){const n=await this._parsedAnnotations
if(0===n.length)return n
const s=[],a=[]
let o
const l=!!(r&i.RenderingIntentFlag.ANY),c=!!(r&i.RenderingIntentFlag.DISPLAY),u=!!(r&i.RenderingIntentFlag.PRINT)
for(const d of n){const r=l||c&&d.viewable;(r||u&&d.printable)&&s.push(d.data),d.hasTextContent&&r&&(o||=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),a.push(d.extractTextContent(o,t,[-1/0,-1/0,1/0,1/0]).catch((function(e){(0,i.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)}))))}return await Promise.all(a),s}get annotations(){const e=this._getInheritableProperty("Annots")
return(0,i.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then((async e=>{if(0===e.length)return e
const t=await this.pdfManager.ensureDoc("annotationGlobals")
if(!t)return[]
const r=[]
for(const o of e)r.push(n.AnnotationFactory.create(this.xref,o,t,this._localIdFactory,!1,this.ref).catch((function(e){return(0,i.warn)(`_parsedAnnotations: "${e}".`),null})))
const s=[]
let a
for(const i of await Promise.all(r))i&&(i instanceof n.PopupAnnotation?(a||=[]).push(i):s.push(i))
return a&&s.push(...a),s}))
return(0,i.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,s.collectActions)(this.xref,this.pageDict,i.PageActionEventType)
return(0,i.shadow)(this,"jsActions",e)}}t.Page=k
const A=new Uint8Array([37,80,68,70,45]),C=new Uint8Array([115,116,97,114,116,120,114,101,102]),P=new Uint8Array([101,110,100,111,98,106])
function O(e,t,r=1024,i=!1){const n=t.length,s=e.peekBytes(r),a=s.length-n
if(a<=0)return!1
if(i){const r=n-1
let i=s.length-1
for(;i>=r;){let a=0
for(;a<n&&s[i-a]===t[r-a];)a++
if(a>=n)return e.pos+=i-r,!0
i--}}else{let r=0
for(;r<=a;){let i=0
for(;i<n&&s[r+i]===t[i];)i++
if(i>=n)return e.pos+=r,!0
r++}}return!1}t.PDFDocument=class{constructor(e,t){if(t.length<=0)throw new i.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.")
this.pdfManager=e,this.stream=t,this.xref=new _.XRef(t,e),this._pagePromises=new Map,this._version=null
const r={font:0}
this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return"f"+ ++r.font}static createObjId(){(0,i.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,i.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new u.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null
try{e=p.Linearization.create(this.stream)}catch(t){if(t instanceof s.MissingDataException)throw t;(0,i.info)(t)}return(0,i.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream
let t=0
if(this.linearization)e.reset(),O(e,P)&&(t=e.pos+6-e.start)
else{const r=1024,i=C.length
let n=!1,a=e.end
for(;!n&&a>0;)a-=r-i,a<0&&(a=0),e.pos=a,n=O(e,C,r,!0)
if(n){let r
e.skip(9)
do{r=e.getByte()}while((0,s.isWhiteSpace)(r))
let i=""
for(;r>=32&&r<=57;)i+=String.fromCharCode(r),r=e.getByte()
t=parseInt(i,10),isNaN(t)&&(t=0)}}return(0,i.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream
if(e.reset(),!O(e,A))return
e.moveStart(),e.skip(A.length)
let t,r=""
for(;(t=e.getByte())>32&&r.length<7;)r+=String.fromCharCode(t)
s.PDF_VERSION_REGEXP.test(r)?this._version=r:(0,i.warn)(`Invalid PDF header version: ${r}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0
return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,i.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e,t=0){return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof a.Dict))return!1
if(e.has("Kids"))return++t>10?((0,i.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),t)
const r=(0,a.isName)(e.get("FT"),"Sig"),n=e.get("Rect"),s=Array.isArray(n)&&n.every((e=>0===e))
return r&&s}))}get _xfaStreams(){const e=this.catalog.acroForm
if(!e)return null
const t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""}
if(t instanceof l.BaseStream&&!t.isEmpty)return r["xdp:xdp"]=t,r
if(!Array.isArray(t)||0===t.length)return null
for(let i=0,n=t.length;i<n;i+=2){let e
if(e=0===i?"xdp:xdp":i===n-2?"/xdp:xdp":t[i],!r.hasOwnProperty(e))continue
const s=this.xref.fetchIfRef(t[i+1])
s instanceof l.BaseStream&&!s.isEmpty&&(r[e]=s)}return r}get xfaDatasets(){const e=this._xfaStreams
if(!e)return(0,i.shadow)(this,"xfaDatasets",null)
for(const t of["datasets","xdp:xdp"]){const r=e[t]
if(r)try{const e=(0,i.stringToUTF8String)(r.getString()),n={[t]:e}
return(0,i.shadow)(this,"xfaDatasets",new h.DatasetReader(n))}catch{(0,i.warn)("XFA - Invalid utf-8 string.")
break}}return(0,i.shadow)(this,"xfaDatasets",null)}get xfaData(){const e=this._xfaStreams
if(!e)return null
const t=Object.create(null)
for(const[r,n]of Object.entries(e))if(n)try{t[r]=(0,i.stringToUTF8String)(n.getString())}catch{return(0,i.warn)("XFA - Invalid utf-8 string."),null}return t}get xfaFactory(){let e
return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),(0,i.shadow)(this,"xfaFactory",e?new x.XFAFactory(e):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const e=await this.pdfManager.ensureCatalog("xfaImages")
if(!e)return
const t=e.getKeys(),r=new m.ObjectLoader(e,t,this.xref)
await r.load()
const i=new Map
for(const n of t){const t=e.get(n)
t instanceof l.BaseStream&&i.set(n,t.getBytes())}this.xfaFactory.setImages(i)}async loadXfaFonts(e,t){const r=await this.pdfManager.ensureCatalog("acroForm")
if(!r)return
const n=await r.getAsync("DR")
if(!(n instanceof a.Dict))return
const l=new m.ObjectLoader(n,["Font"],this.xref)
await l.load()
const c=n.get("Font")
if(!(c instanceof a.Dict))return
const u=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)
u.useSystemFonts=!1
const d=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:u}),h=new g.OperatorList,p=[],f={get font(){return p.at(-1)},set font(e){p.push(e)},clone(){return this}},y=new Map
c.forEach(((e,t)=>{y.set(e,t)}))
const v=[]
for(const[o,m]of y){const e=m.get("FontDescriptor")
if(!(e instanceof a.Dict))continue
let r=e.get("FontFamily")
r=r.replaceAll(/[ ]+(\d)/g,"$1")
const l={fontFamily:r,fontWeight:e.get("FontWeight"),italicAngle:-e.get("ItalicAngle")};(0,s.validateCSSFont)(l)&&v.push(d.handleSetFont(n,[a.Name.get(o),1],null,h,t,f,null,l).catch((function(e){return(0,i.warn)(`loadXfaFonts: "${e}".`),null})))}await Promise.all(v)
const w=this.xfaFactory.setFonts(p)
if(!w)return
u.ignoreErrors=!0,v.length=0,p.length=0
const x=new Set
for(const i of w)(0,o.getXfaFontName)(`${i}-Regular`)||x.add(i)
x.size&&w.push("PdfJS-Fallback")
for(const s of w)if(!x.has(s))for(const e of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const r=`${s}-${e.name}`,l=(0,o.getXfaFontDict)(r)
v.push(d.handleSetFont(n,[a.Name.get(r),1],null,h,t,f,l,{fontFamily:s,fontWeight:e.fontWeight,italicAngle:e.italicAngle}).catch((function(e){return(0,i.warn)(`loadXfaFonts: "${e}".`),null})))}await Promise.all(v),this.xfaFactory.appendFonts(p,x)}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm
if(!t)return(0,i.shadow)(this,"formInfo",e)
try{const r=t.get("Fields"),i=Array.isArray(r)&&r.length>0
e.hasFields=i
const n=t.get("XFA")
e.hasXfa=Array.isArray(n)&&n.length>0||n instanceof l.BaseStream&&!n.isEmpty
const s=!!(1&t.get("SigFlags")),a=s&&this._hasOnlyDocumentSignatures(r)
e.hasAcroForm=i&&!a,e.hasSignatures=s}catch(r){if(r instanceof s.MissingDataException)throw r;(0,i.warn)(`Cannot fetch form information: "${r}".`)}return(0,i.shadow)(this,"formInfo",e)}get documentInfo(){const e={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures}
let t
try{t=this.xref.trailer.get("Info")}catch(r){if(r instanceof s.MissingDataException)throw r;(0,i.info)("The document information dictionary is invalid.")}if(!(t instanceof a.Dict))return(0,i.shadow)(this,"documentInfo",e)
for(const n of t.getKeys()){const r=t.get(n)
switch(n){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof r){e[n]=(0,i.stringToPDFString)(r)
continue}break
case"Trapped":if(r instanceof a.Name){e[n]=r
continue}break
default:let t
switch(typeof r){case"string":t=(0,i.stringToPDFString)(r)
break
case"number":case"boolean":t=r
break
default:r instanceof a.Name&&(t=r)}if(void 0===t){(0,i.warn)(`Bad value, for custom key "${n}", in Info: ${r}.`)
continue}e.Custom||(e.Custom=Object.create(null)),e.Custom[n]=t
continue}(0,i.warn)(`Bad value, for key "${n}", in Info: ${r}.`)}return(0,i.shadow)(this,"documentInfo",e)}get fingerprints(){function e(e){return"string"==typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){const t=[]
for(const r of e){const e=r.toString(16)
t.push(e.padStart(2,"0"))}return t.join("")}const r=this.xref.trailer.get("ID")
let n,s
return Array.isArray(r)&&e(r[0])?(n=(0,i.stringToBytes)(r[0]),r[1]!==r[0]&&e(r[1])&&(s=(0,i.stringToBytes)(r[1]))):n=(0,c.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,i.shadow)(this,"fingerprints",[t(n),s?t(s):null])}async _getLinearizationPage(e){const{catalog:t,linearization:r,xref:n}=this,s=a.Ref.get(r.objectNumberFirst,0)
try{const e=await n.fetchAsync(s)
if(e instanceof a.Dict){let r=e.getRaw("Type")
if(r instanceof a.Ref&&(r=await n.fetchAsync(r)),(0,a.isName)(r,"Page")||!e.has("Type")&&!e.has("Kids"))return t.pageKidsCountCache.has(s)||t.pageKidsCountCache.put(s,1),t.pageIndexCache.has(s)||t.pageIndexCache.put(s,0),[e,s]}throw new i.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(o){return(0,i.warn)(`_getLinearizationPage: "${o.message}".`),t.getPageDict(e)}}getPage(e){const t=this._pagePromises.get(e)
if(t)return t
const{catalog:r,linearization:i,xfaFactory:n}=this
let s
return s=n?Promise.resolve([a.Dict.empty,null]):i?.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e),s=s.then((([t,i])=>new k({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:t,ref:i,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:n}))),this._pagePromises.set(e,s),s}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(t){if(t instanceof s.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new s.XRefParseException}}async checkLastPage(e=!1){const{catalog:t,pdfManager:r}=this
let n
t.setActualNumPages()
try{if(await Promise.all([r.ensureDoc("xfaFactory"),r.ensureDoc("linearization"),r.ensureCatalog("numPages")]),this.xfaFactory)return
if(n=this.linearization?this.linearization.numPages:t.numPages,!Number.isInteger(n))throw new i.FormatError("Page count is not an integer.")
if(n<=1)return
await this.getPage(n-1)}catch(a){if(this._pagePromises.delete(n-1),await this.cleanup(),a instanceof s.XRefEntryException&&!e)throw new s.XRefParseException
let l;(0,i.warn)(`checkLastPage - invalid /Pages tree /Count: ${n}.`)
try{l=await t.getAllPageDicts(e)}catch(o){if(o instanceof s.XRefEntryException&&!e)throw new s.XRefParseException
return void t.setActualNumPages(1)}for(const[e,[i,n]]of l){let s
i instanceof Error?(s=Promise.reject(i),s.catch((()=>{}))):s=Promise.resolve(new k({pdfManager:r,xref:this.xref,pageIndex:e,pageDict:i,ref:n,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,systemFontCache:t.systemFontCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(e,s)}t.setActualNumPages(l.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,d.clearGlobalCaches)()}#Fi(e,t,r,s){const a=this.xref.fetchIfRef(t)
if(a.has("T")){const t=(0,i.stringToPDFString)(a.get("T"))
e=""===e?t:`${e}.${t}`}if(r.has(e)||r.set(e,[]),r.get(e).push(n.AnnotationFactory.create(this.xref,t,s,this._localIdFactory,!0,null).then((e=>e?.getFieldObject())).catch((function(e){return(0,i.warn)(`#collectFieldObjects: "${e}".`),null}))),a.has("Kids"))for(const i of a.get("Kids"))this.#Fi(e,i,r,s)}get fieldObjects(){if(!this.formInfo.hasFields)return(0,i.shadow)(this,"fieldObjects",Promise.resolve(null))
const e=this.pdfManager.ensureDoc("annotationGlobals").then((async e=>{if(!e)return null
const t=Object.create(null),r=new Map
for(const n of this.catalog.acroForm.get("Fields"))this.#Fi("",n,r,e)
const i=[]
for(const[n,s]of r)i.push(Promise.all(s).then((e=>{(e=e.filter((e=>!!e))).length>0&&(t[n]=e)})))
return await Promise.all(i),t}))
return(0,i.shadow)(this,"fieldObjects",e)}get hasJSActions(){const e=this.pdfManager.ensureDoc("_parseHasJSActions")
return(0,i.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")])
return!!e||!!t&&Object.values(t).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm
if(!e?.has("CO"))return(0,i.shadow)(this,"calculationOrderIds",null)
const t=e.get("CO")
if(!Array.isArray(t)||0===t.length)return(0,i.shadow)(this,"calculationOrderIds",null)
const r=[]
for(const i of t)i instanceof a.Ref&&r.push(i.toString())
return 0===r.length?(0,i.shadow)(this,"calculationOrderIds",null):(0,i.shadow)(this,"calculationOrderIds",r)}get annotationGlobals(){return(0,i.shadow)(this,"annotationGlobals",n.AnnotationFactory.createGlobals(this.pdfManager))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=w
var i=r(2),n=r(3),s=r(11),a=r(4),o=r(8),l=r(5),c=r(60),u=r(66),d=r(12),h=r(69),p=r(26),f=r(76),m=r(64),g=r(73),b=r(77)
function y(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t
const r=t||new Uint8ClampedArray(3)
switch(e.length){case 0:return null
case 1:return d.ColorSpace.singletons.gray.getRgbItem(e,0,r,0),r
case 3:return d.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0),r
case 4:return d.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0),r
default:return t}}function v(e){return Array.from(e,(e=>e/255))}function w(e,t){const r=e.getArray("QuadPoints")
if(!Array.isArray(r)||0===r.length||r.length%8>0)return null
const i=[]
for(let n=0,s=r.length/8;n<s;n++){let e=1/0,s=-1/0,a=1/0,o=-1/0
for(let t=8*n,i=8*n+8;t<i;t+=2){const i=r[t],n=r[t+1]
e=Math.min(i,e),s=Math.max(i,s),a=Math.min(n,a),o=Math.max(n,o)}if(null!==t&&(e<t[0]||s>t[2]||a<t[1]||o>t[3]))return null
i.push([{x:e,y:o},{x:s,y:o},{x:e,y:a},{x:s,y:a}])}return i}function x(e,t,r){const[n,s,a,o]=i.Util.getAxialAlignedBoundingBox(t,r)
if(n===a||s===o)return[1,0,0,1,e[0],e[1]]
const l=(e[2]-e[0])/(a-n),c=(e[3]-e[1])/(o-s)
return[l,0,0,c,e[0]-n*l,e[1]-s*c]}t.AnnotationFactory=class{static createGlobals(e){return Promise.all([e.ensureCatalog("acroForm"),e.ensureDoc("xfaDatasets"),e.ensureCatalog("structTreeRoot"),e.ensureCatalog("baseUrl"),e.ensureCatalog("attachments")]).then((([t,r,i,n,s])=>({pdfManager:e,acroForm:t instanceof a.Dict?t:a.Dict.empty,xfaDatasets:r,structTreeRoot:i,baseUrl:n,attachments:s})),(e=>((0,i.warn)(`createGlobals: "${e}".`),null)))}static async create(e,t,r,i,n,s){const a=n?await this._getPageIndex(e,t,r.pdfManager):null
return r.pdfManager.ensure(this,"_create",[e,t,r,i,n,a,s])}static _create(e,t,r,s,o=!1,l=null,c=null){const u=e.fetchIfRef(t)
if(!(u instanceof a.Dict))return
const{acroForm:d,pdfManager:h}=r,p=t instanceof a.Ref?t.toString():`annot_${s.createObjId()}`
let f=u.get("Subtype")
f=f instanceof a.Name?f.name:null
const m={xref:e,ref:t,dict:u,subtype:f,id:p,annotationGlobals:r,collectFields:o,needAppearances:!o&&!0===d.get("NeedAppearances"),pageIndex:l,evaluatorOptions:h.evaluatorOptions,pageRef:c}
switch(f){case"Link":return new M(m)
case"Text":return new T(m)
case"Widget":let e=(0,n.getInheritableProperty)({dict:u,key:"FT"})
switch(e=e instanceof a.Name?e.name:null,e){case"Tx":return new C(m)
case"Btn":return new P(m)
case"Ch":return new O(m)
case"Sig":return new E(m)}return(0,i.warn)(`Unimplemented widget field type "${e}", falling back to base field type.`),new A(m)
case"Popup":return new I(m)
case"FreeText":return new F(m)
case"Line":return new N(m)
case"Square":return new R(m)
case"Circle":return new D(m)
case"PolyLine":return new j(m)
case"Polygon":return new L(m)
case"Caret":return new B(m)
case"Ink":return new $(m)
case"Highlight":return new z(m)
case"Underline":return new U(m)
case"Squiggly":return new q(m)
case"StrikeOut":return new H(m)
case"Stamp":return new V(m)
case"FileAttachment":return new G(m)
default:return o||(f?(0,i.warn)(`Unimplemented annotation type "${f}", falling back to base annotation.`):(0,i.warn)("Annotation is missing the required /Subtype.")),new _(m)}}static async _getPageIndex(e,t,r){try{const s=await e.fetchIfRefAsync(t)
if(!(s instanceof a.Dict))return-1
const o=s.getRaw("P")
if(o instanceof a.Ref)try{return await r.ensureCatalog("getPageIndex",[o])}catch(n){(0,i.info)(`_getPageIndex -- not a valid page reference: "${n}".`)}if(s.has("Kids"))return-1
const l=await r.ensureDoc("numPages")
for(let e=0;e<l;e++){const i=await r.getPage(e),n=await r.ensure(i,"annotations")
for(const r of n)if(r instanceof a.Ref&&(0,a.isRefsEqual)(r,t))return e}}catch(n){(0,i.warn)(`_getPageIndex: "${n}".`)}return-1}static generateImages(e,t,r){if(!r)return(0,i.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null
let n
for(const{bitmapId:i,bitmap:s}of e)s&&(n||=new Map,n.set(i,V.createImage(s,t)))
return n}static async saveNewAnnotations(e,t,r,n){const s=e.xref
let o
const l=[],c=[],{isOffscreenCanvasSupported:u}=e.options
for(const d of r)if(!d.deleted)switch(d.annotationType){case i.AnnotationEditorType.FREETEXT:if(!o){const e=new a.Dict(s)
e.set("BaseFont",a.Name.get("Helvetica")),e.set("Type",a.Name.get("Font")),e.set("Subtype",a.Name.get("Type1")),e.set("Encoding",a.Name.get("WinAnsiEncoding"))
const t=[]
o=s.getNewTemporaryRef(),await(0,g.writeObject)(o,e,t,s),l.push({ref:o,data:t.join("")})}c.push(F.createNewAnnotation(s,d,l,{evaluator:e,task:t,baseFontRef:o}))
break
case i.AnnotationEditorType.INK:c.push($.createNewAnnotation(s,d,l))
break
case i.AnnotationEditorType.STAMP:if(!u)break
const r=await n.get(d.bitmapId)
if(r.imageStream){const{imageStream:e,smaskStream:t}=r,i=[]
if(t){const r=s.getNewTemporaryRef()
await(0,g.writeObject)(r,t,i,s),l.push({ref:r,data:i.join("")}),e.dict.set("SMask",r),i.length=0}const n=r.imageRef=s.getNewTemporaryRef()
await(0,g.writeObject)(n,e,i,s),l.push({ref:n,data:i.join("")}),r.imageStream=r.smaskStream=null}c.push(V.createNewAnnotation(s,d,l,{image:r}))}return{annotations:await Promise.all(c),dependencies:l}}static async printNewAnnotations(e,t,r,n,s){if(!n)return null
const{options:a,xref:o}=t,l=[]
for(const c of n)if(!c.deleted)switch(c.annotationType){case i.AnnotationEditorType.FREETEXT:l.push(F.createNewPrintAnnotation(e,o,c,{evaluator:t,task:r,evaluatorOptions:a}))
break
case i.AnnotationEditorType.INK:l.push($.createNewPrintAnnotation(e,o,c,{evaluatorOptions:a}))
break
case i.AnnotationEditorType.STAMP:if(!a.isOffscreenCanvasSupported)break
const n=await s.get(c.bitmapId)
if(n.imageStream){const{imageStream:e,smaskStream:t}=n
t&&e.dict.set("SMask",t),n.imageRef=new p.JpegStream(e,e.length),n.imageStream=n.smaskStream=null}l.push(V.createNewPrintAnnotation(e,o,c,{image:n,evaluatorOptions:a}))}return Promise.all(l)}}
class _{constructor(e){const{dict:t,xref:r,annotationGlobals:s}=e
this.setTitle(t.get("T")),this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.setOptionalContent(t)
const o=t.get("MK")
this.setBorderAndBackgroundColors(o),this.setRotation(o,t),this.ref=e.ref instanceof a.Ref?e.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance)
const l=!!(this.flags&i.AnnotationFlag.LOCKED),c=!!(this.flags&i.AnnotationFlag.LOCKEDCONTENTS)
if(s.structTreeRoot){let r=t.get("StructParent")
r=Number.isInteger(r)&&r>=0?r:-1,s.structTreeRoot.addAnnotationIdToPage(e.pageRef,r)}if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&i.AnnotationFlag.NOROTATE),noHTML:l&&c},e.collectFields){const s=t.get("Kids")
if(Array.isArray(s)){const e=[]
for(const t of s)t instanceof a.Ref&&e.push(t.toString())
0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,n.collectActions)(r,t,i.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,i.AnnotationFlag.PRINT)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){const r=e?.get(this.data.id)?.noView
return void 0!==r?!r:this.viewable&&!this._hasFlag(this.flags,i.AnnotationFlag.HIDDEN)}mustBePrinted(e){const t=e?.get(this.data.id)?.noPrint
return void 0!==t?!t:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}_parseStringHelper(e){const t="string"==typeof e?(0,i.stringToPDFString)(e):""
return{str:t,dir:t&&"rtl"===(0,c.bidi)(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const{dict:t,annotationGlobals:r}=e,i=(0,n.getInheritableProperty)({dict:t,key:"DA"})||r.acroForm.get("DA")
this._defaultAppearance="string"==typeof i?i:"",this.data.defaultAppearanceData=(0,s.parseDefaultAppearance)(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"==typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=Array.isArray(e)&&4===e.length?i.Util.normalizeRect(e):[0,0,0,0]}setColor(e){this.color=y(e)}setLineEndings(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const r=e[t]
if(r instanceof a.Name)switch(r.name){case"None":continue
case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=r.name
continue}(0,i.warn)(`Ignoring invalid lineEnding: ${r}`)}}setRotation(e,t){this.rotation=0
let r=e instanceof a.Dict?e.get("R")||0:t.get("Rotate")||0
Number.isInteger(r)&&0!==r&&(r%=360,r<0&&(r+=360),r%90==0&&(this.rotation=r))}setBorderAndBackgroundColors(e){e instanceof a.Dict?(this.borderColor=y(e.getArray("BC"),null),this.backgroundColor=y(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){if(this.borderStyle=new S,e instanceof a.Dict)if(e.has("BS")){const t=e.get("BS"),r=t.get("Type")
r&&!(0,a.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){const t=e.getArray("Border")
Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null
const t=e.get("AP")
if(!(t instanceof a.Dict))return
const r=t.get("N")
if(r instanceof l.BaseStream)return void(this.appearance=r)
if(!(r instanceof a.Dict))return
const i=e.get("AS")
if(!(i instanceof a.Name&&r.has(i.name)))return
const n=r.get(i.name)
n instanceof l.BaseStream&&(this.appearance=n)}setOptionalContent(e){this.oc=null
const t=e.get("OC")
t instanceof a.Name?(0,i.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof a.Dict&&(this.oc=t)}loadResources(e,t){return t.dict.getAsync("Resources").then((t=>{if(!t)return
return new f.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}async getOperatorList(e,t,r,n,s){const l=this.data
let c=this.appearance
const u=!!(this.data.hasOwnCanvas&&r&i.RenderingIntentFlag.DISPLAY)
if(!c){if(!u)return{opList:new m.OperatorList,separateForm:!1,separateCanvas:!1}
c=new o.StringStream(""),c.dict=new a.Dict}const d=c.dict,h=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c),p=d.getArray("BBox")||[0,0,1,1],f=d.getArray("Matrix")||[1,0,0,1,0,0],g=x(l.rect,p,f),b=new m.OperatorList
let y
return this.oc&&(y=await e.parseMarkedContentProps(this.oc,null)),void 0!==y&&b.addOp(i.OPS.beginMarkedContentProps,["OC",y]),b.addOp(i.OPS.beginAnnotation,[l.id,l.rect,g,f,u]),await e.getOperatorList({stream:c,task:t,resources:h,operatorList:b,fallbackFontDict:this._fallbackFontDict}),b.addOp(i.OPS.endAnnotation,[]),void 0!==y&&b.addOp(i.OPS.endMarkedContent,[]),this.reset(),{opList:b,separateForm:!1,separateCanvas:u}}async save(e,t,r){return null}get hasTextContent(){return!1}async extractTextContent(e,t,r){if(!this.appearance)return
const n=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),s=[],a=[]
let o=null
const l={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const r of e.items)void 0!==r.str&&(o||=r.transform.slice(-2),a.push(r.str),r.hasEOL&&(s.push(a.join("")),a.length=0))}}
if(await e.getTextContent({stream:this.appearance,task:t,resources:n,includeMarkedContent:!0,sink:l,viewBox:r}),this.reset(),a.length&&s.push(a.join("")),s.length>1||s[0]){const e=this.appearance.dict,t=e.getArray("BBox")||[0,0,1,1],r=e.getArray("Matrix")||[1,0,0,1,0,0],n=this.data.rect,a=x(n,t,r)
a[4]-=n[0],a[5]-=n[1],o=i.Util.applyTransform(o,a),o=i.Util.applyTransform(o,r),this.data.textPosition=o,this.data.textContent=s}}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,i.warn)("Unknown field name, falling back to empty field name."),""
if(!e.has("Parent"))return(0,i.stringToPDFString)(e.get("T"))
const t=[]
e.has("T")&&t.unshift((0,i.stringToPDFString)(e.get("T")))
let r=e
const n=new a.RefSet
for(e.objId&&n.put(e.objId);r.has("Parent")&&(r=r.get("Parent"),r instanceof a.Dict&&(!r.objId||!n.has(r.objId)));)r.objId&&n.put(r.objId),r.has("T")&&t.unshift((0,i.stringToPDFString)(r.get("T")))
return t.join(".")}}t.Annotation=_
class S{constructor(){this.width=1,this.style=i.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){if(e instanceof a.Name)this.width=0
else if("number"==typeof e){if(e>0){const r=(t[2]-t[0])/2,n=(t[3]-t[1])/2
r>0&&n>0&&(e>r||e>n)&&((0,i.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`),e=1)}this.width=e}}setStyle(e){if(e instanceof a.Name)switch(e.name){case"S":this.style=i.AnnotationBorderStyleType.SOLID
break
case"D":this.style=i.AnnotationBorderStyleType.DASHED
break
case"B":this.style=i.AnnotationBorderStyleType.BEVELED
break
case"I":this.style=i.AnnotationBorderStyleType.INSET
break
case"U":this.style=i.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e,t=!1){if(Array.isArray(e)&&e.length>0){let r=!0,i=!0
for(const t of e){if(!(+t>=0)){r=!1
break}t>0&&(i=!1)}r&&!i?(this.dashArray=e,t&&this.setStyle(a.Name.get("D"))):this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=S
class k extends _{constructor(e){super(e)
const{dict:t}=e
if(t.has("IRT")){const e=t.getRaw("IRT")
this.data.inReplyTo=e instanceof a.Ref?e.toString():null
const r=t.get("RT")
this.data.replyType=r instanceof a.Name?r.name:i.AnnotationReplyType.REPLY}let r=null
if(this.data.replyType===i.AnnotationReplyType.GROUP){const e=t.get("IRT")
this.setTitle(e.get("T")),this.data.titleObj=this._title,this.setContents(e.get("Contents")),this.data.contentsObj=this._contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,r=e.getRaw("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,r=t.getRaw("Popup"),t.has("C")||(this.data.color=null)
this.data.popupRef=r instanceof a.Ref?r.toString():null,t.has("RC")&&(this.data.richText=b.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:r,fillColor:i,blendMode:n,strokeAlpha:s,fillAlpha:l,pointsCallback:c}){let u=Number.MAX_VALUE,d=Number.MAX_VALUE,h=Number.MIN_VALUE,p=Number.MIN_VALUE
const f=["q"]
t&&f.push(t),r&&f.push(`${r[0]} ${r[1]} ${r[2]} RG`),i&&f.push(`${i[0]} ${i[1]} ${i[2]} rg`)
let m=this.data.quadPoints
m||(m=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]])
for(const a of m){const[e,t,r,i]=c(f,a)
u=Math.min(u,e),h=Math.max(h,t),d=Math.min(d,r),p=Math.max(p,i)}f.push("Q")
const g=new a.Dict(e),b=new a.Dict(e)
b.set("Subtype",a.Name.get("Form"))
const y=new o.StringStream(f.join(" "))
y.dict=b,g.set("Fm0",y)
const v=new a.Dict(e)
n&&v.set("BM",a.Name.get(n)),"number"==typeof s&&v.set("CA",s),"number"==typeof l&&v.set("ca",l)
const w=new a.Dict(e)
w.set("GS0",v)
const x=new a.Dict(e)
x.set("ExtGState",w),x.set("XObject",g)
const _=new a.Dict(e)
_.set("Resources",x)
const S=this.data.rect=[u,d,h,p]
_.set("BBox",S),this.appearance=new o.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=_,this._streams.push(this.appearance,y)}static async createNewAnnotation(e,t,r,i){const n=t.ref||=e.getNewTemporaryRef(),s=await this.createNewAppearanceStream(t,e,i),a=[]
let o
if(s){const i=e.getNewTemporaryRef()
o=this.createNewDict(t,e,{apRef:i}),await(0,g.writeObject)(i,s,a,e),r.push({ref:i,data:a.join("")})}else o=this.createNewDict(t,e,{})
return Number.isInteger(t.parentTreeId)&&o.set("StructParent",t.parentTreeId),a.length=0,await(0,g.writeObject)(n,o,a,e),{ref:n,data:a.join("")}}static async createNewPrintAnnotation(e,t,r,i){const n=await this.createNewAppearanceStream(r,t,i),s=this.createNewDict(r,t,{ap:n}),a=new this.prototype.constructor({dict:s,xref:t,annotationGlobals:e,evaluatorOptions:i.evaluatorOptions})
return r.ref&&(a.ref=a.refToReplace=r.ref),a}}t.MarkupAnnotation=k
class A extends _{constructor(e){super(e)
const{dict:t,xref:r,annotationGlobals:s}=e,o=this.data
this._needAppearances=e.needAppearances,o.annotationType=i.AnnotationType.WIDGET,void 0===o.fieldName&&(o.fieldName=this._constructFieldName(t)),void 0===o.actions&&(o.actions=(0,n.collectActions)(r,t,i.AnnotationActionEventType))
let l=(0,n.getInheritableProperty)({dict:t,key:"V",getArray:!0})
o.fieldValue=this._decodeFormValue(l)
const c=(0,n.getInheritableProperty)({dict:t,key:"DV",getArray:!0})
if(o.defaultFieldValue=this._decodeFormValue(c),void 0===l&&s.xfaDatasets){const e=this._title.str
e&&(this._hasValueFromXFA=!0,o.fieldValue=l=s.xfaDatasets.getValue(e))}void 0===l&&null!==o.defaultFieldValue&&(o.fieldValue=o.defaultFieldValue),o.alternativeText=(0,i.stringToPDFString)(t.get("TU")||""),this.setDefaultAppearance(e),o.hasAppearance||=this._needAppearances&&void 0!==o.fieldValue&&null!==o.fieldValue
const u=(0,n.getInheritableProperty)({dict:t,key:"FT"})
o.fieldType=u instanceof a.Name?u.name:null
const d=(0,n.getInheritableProperty)({dict:t,key:"DR"}),h=s.acroForm.get("DR"),p=this.appearance?.dict.get("Resources")
this._fieldResources={localResources:d,acroFormResources:h,appearanceResources:p,mergedResources:a.Dict.merge({xref:r,dictArray:[d,p,h],mergeSubDicts:!0})},o.fieldFlags=(0,n.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(o.fieldFlags)||o.fieldFlags<0)&&(o.fieldFlags=0),o.readOnly=this.hasFieldFlag(i.AnnotationFieldFlag.READONLY),o.required=this.hasFieldFlag(i.AnnotationFieldFlag.REQUIRED),o.hidden=this._hasFlag(o.annotationFlags,i.AnnotationFlag.HIDDEN)||this._hasFlag(o.annotationFlags,i.AnnotationFlag.NOVIEW)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"==typeof e)).map((e=>(0,i.stringToPDFString)(e))):e instanceof a.Name?(0,i.stringToPDFString)(e.name):"string"==typeof e?(0,i.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){return t?this.viewable:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,i.AnnotationFlag.NOVIEW)}getRotationMatrix(e){let t=e?.get(this.data.id)?.rotation
if(void 0===t&&(t=this.rotation),0===t)return i.IDENTITY_MATRIX
const r=this.data.rect[2]-this.data.rect[0],s=this.data.rect[3]-this.data.rect[1]
return(0,n.getRotationMatrix)(t,r,s)}getBorderAndBackgroundAppearances(e){let t=e?.get(this.data.id)?.rotation
if(void 0===t&&(t=this.rotation),!this.backgroundColor&&!this.borderColor)return""
const r=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],n=0===t||180===t?`0 0 ${r} ${i} re`:`0 0 ${i} ${r} re`
let a=""
if(this.backgroundColor&&(a=`${(0,s.getPdfColor)(this.backgroundColor,!0)} ${n} f `),this.borderColor){a+=`${this.borderStyle.width||1} w ${(0,s.getPdfColor)(this.borderColor,!1)} ${n} S `}return a}async getOperatorList(e,t,r,n,s){if(n&&!(this instanceof E)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new m.OperatorList,separateForm:!0,separateCanvas:!1}
if(!this._hasText)return super.getOperatorList(e,t,r,n,s)
const a=await this._getAppearance(e,t,r,s)
if(this.appearance&&null===a)return super.getOperatorList(e,t,r,n,s)
const l=new m.OperatorList
if(!this._defaultAppearance||null===a)return{opList:l,separateForm:!1,separateCanvas:!1}
const c=!!(this.data.hasOwnCanvas&&r&i.RenderingIntentFlag.DISPLAY),u=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],d=x(this.data.rect,u,[1,0,0,1,0,0])
let h
this.oc&&(h=await e.parseMarkedContentProps(this.oc,null)),void 0!==h&&l.addOp(i.OPS.beginMarkedContentProps,["OC",h]),l.addOp(i.OPS.beginAnnotation,[this.data.id,this.data.rect,d,this.getRotationMatrix(s),c])
const p=new o.StringStream(a)
return await e.getOperatorList({stream:p,task:t,resources:this._fieldResources.mergedResources,operatorList:l}),l.addOp(i.OPS.endAnnotation,[]),void 0!==h&&l.addOp(i.OPS.endMarkedContent,[]),{opList:l,separateForm:!1,separateCanvas:c}}_getMKDict(e){const t=new a.Dict(null)
return e&&t.set("R",e),this.borderColor&&t.set("BC",v(this.borderColor)),this.backgroundColor&&t.set("BG",v(this.backgroundColor)),t.size>0?t:null}amendSavedDict(e,t){}async save(e,t,r){const s=r?.get(this.data.id)
let l=s?.value,c=s?.rotation
if(l===this.data.fieldValue||void 0===l){if(!this._hasValueFromXFA&&void 0===c)return null
l||=this.data.fieldValue}if(void 0===c&&!this._hasValueFromXFA&&Array.isArray(l)&&Array.isArray(this.data.fieldValue)&&l.length===this.data.fieldValue.length&&l.every(((e,t)=>e===this.data.fieldValue[t])))return null
void 0===c&&(c=this.rotation)
let u=null
if(!this._needAppearances&&(u=await this._getAppearance(e,t,i.RenderingIntentFlag.SAVE,r),null===u))return null
let d=!1
u?.needAppearances&&(d=!0,u=null)
const{xref:h}=e,p=h.fetchIfRef(this.ref)
if(!(p instanceof a.Dict))return null
const f=new a.Dict(h)
for(const i of p.getKeys())"AP"!==i&&f.set(i,p.getRaw(i))
const m={path:this.data.fieldName,value:l},b=e=>(0,n.isAscii)(e)?e:(0,n.stringToUTF16String)(e,!0)
f.set("V",Array.isArray(l)?l.map(b):b(l)),this.amendSavedDict(r,f)
const y=this._getMKDict(c)
y&&f.set("MK",y)
const v=[],w=[{ref:this.ref,data:"",xfa:m,needAppearances:d}]
if(null!==u){const e=h.getNewTemporaryRef(),t=new a.Dict(h)
f.set("AP",t),t.set("N",e)
const n=this._getSaveFieldResources(h),s=new o.StringStream(u),l=s.dict=new a.Dict(h)
l.set("Subtype",a.Name.get("Form")),l.set("Resources",n),l.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]])
const c=this.getRotationMatrix(r)
c!==i.IDENTITY_MATRIX&&l.set("Matrix",c),await(0,g.writeObject)(e,s,v,h),w.push({ref:e,data:v.join(""),xfa:null,needAppearances:!1}),v.length=0}return f.set("M",`D:${(0,i.getModificationDate)()}`),await(0,g.writeObject)(this.ref,f,v,h),w[0].data=v.join(""),w}async _getAppearance(e,t,r,a){if(this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD))return null
const o=a?.get(this.data.id)
let l,c
if(o&&(l=o.formattedValue||o.value,c=o.rotation),void 0===c&&void 0===l&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null
const u=this.getBorderAndBackgroundAppearances(a)
if(void 0===l&&(l=this.data.fieldValue,!l))return`/Tx BMC q ${u}Q EMC`
if(Array.isArray(l)&&1===l.length&&(l=l[0]),(0,i.assert)("string"==typeof l,"Expected `value` to be a string."),l=l.trim(),this.data.combo){const e=this.data.options.find((({exportValue:e})=>l===e))
l=e?.displayValue||l}if(""===l)return`/Tx BMC q ${u}Q EMC`
void 0===c&&(c=this.rotation)
let d,h=-1
this.data.multiLine?(d=l.split(/\r\n?|\n/).map((e=>e.normalize("NFC"))),h=d.length):d=[l.replace(/\r\n?|\n/,"").normalize("NFC")]
let p=this.data.rect[3]-this.data.rect[1],f=this.data.rect[2]-this.data.rect[0]
90!==c&&270!==c||([f,p]=[p,f]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,s.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"))
let m,g,b,y=await A._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources)
const v=[]
let w=!1
for(const i of d){const e=y.encodeString(i)
e.length>1&&(w=!0),v.push(e.join(""))}if(w&&r&i.RenderingIntentFlag.SAVE)return{needAppearances:!0}
if(w&&this._isOffscreenCanvasSupported){const r=this.data.comb?"monospace":"sans-serif",i=new s.FakeUnicodeFont(e.xref,r),a=i.createFontResources(d.join("")),o=a.getRaw("Font")
if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font")
for(const t of o.getKeys())e.set(t,o.getRaw(t))}else this._fieldResources.mergedResources.set("Font",o)
const c=i.fontName.name
y=await A._getFontData(e,t,{fontName:c,fontSize:0},a)
for(let e=0,t=v.length;e<t;e++)v[e]=(0,n.stringToUTF16String)(d[e])
const u=Object.assign(Object.create(null),this.data.defaultAppearanceData)
this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=c,[m,g,b]=this._computeFontSize(p-2,f-4,l,y,h),this.data.defaultAppearanceData=u}else this._isOffscreenCanvasSupported||(0,i.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[m,g,b]=this._computeFontSize(p-2,f-4,l,y,h)
let x=y.descent
x=isNaN(x)?i.BASELINE_FACTOR*b:Math.max(i.BASELINE_FACTOR*b,Math.abs(x)*g)
const _=Math.min(Math.floor((p-g)/2),1),S=this.data.textAlignment
if(this.data.multiLine)return this._getMultilineAppearance(m,v,y,g,f,p,S,2,_,x,b,a)
if(this.data.comb)return this._getCombAppearance(m,y,v[0],g,f,p,2,_,x,b,a)
const k=_+x
if(0===S||S>2)return`/Tx BMC q ${u}BT `+m+` 1 0 0 1 ${(0,n.numberToString)(2)} ${(0,n.numberToString)(k)} Tm (${(0,n.escapeString)(v[0])}) Tj ET Q EMC`
return`/Tx BMC q ${u}BT `+m+` 1 0 0 1 0 0 Tm ${this._renderText(v[0],y,g,f,S,{shift:0},2,k)} ET Q EMC`}static async _getFontData(e,t,r,i){const n=new m.OperatorList,s={font:null,clone(){return this}},{fontName:o,fontSize:l}=r
return await e.handleSetFont(i,[o&&a.Name.get(o),l],null,n,t,s,null),s.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce(((e,t)=>e+t.width),0)/1e3}_computeFontSize(e,t,r,n,a){let{fontSize:o}=this.data.defaultAppearanceData,l=(o||12)*i.LINE_FACTOR,c=Math.round(e/l)
if(!o){const u=e=>Math.floor(100*e)/100
if(-1===a){const s=this._getTextWidth(r,n)
o=u(Math.min(e/i.LINE_FACTOR,s>t?t/s:1/0)),c=1}else{const s=r.split(/\r\n?|\n/),d=[]
for(const e of s){const t=n.encodeString(e).join(""),r=n.charsToGlyphs(t),i=n.getCharPositions(t)
d.push({line:t,glyphs:r,positions:i})}const h=r=>{let i=0
for(const s of d){if(i+=this._splitLine(null,n,r,t,s).length*r,i>e)return!0}return!1}
for(c=Math.max(c,a);l=e/c,o=u(l/i.LINE_FACTOR),h(o);)c++}const{fontName:d,fontColor:h}=this.data.defaultAppearanceData
this._defaultAppearance=(0,s.createDefaultAppearance)({fontSize:o,fontName:d,fontColor:h})}return[this._defaultAppearance,o,e/c]}_renderText(e,t,r,i,s,a,o,l){let c
if(1===s){c=(i-this._getTextWidth(e,t)*r)/2}else if(2===s){c=i-this._getTextWidth(e,t)*r-o}else c=o
const u=(0,n.numberToString)(c-a.shift)
return a.shift=c,`${u} ${l=(0,n.numberToString)(l)} Td (${(0,n.escapeString)(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:r,acroFormResources:i}=this._fieldResources,n=this.data.defaultAppearanceData?.fontName
if(!n)return t||a.Dict.empty
for(const s of[t,r])if(s instanceof a.Dict){const e=s.get("Font")
if(e instanceof a.Dict&&e.has(n))return s}if(i instanceof a.Dict){const r=i.get("Font")
if(r instanceof a.Dict&&r.has(n)){const i=new a.Dict(e)
i.set(n,r.getRaw(n))
const s=new a.Dict(e)
return s.set("Font",i),a.Dict.merge({xref:e,dictArray:[s,t],mergeSubDicts:!0})}}return t||a.Dict.empty}getFieldObject(){return null}}class C extends A{constructor(e){super(e),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0
const t=e.dict
"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="")
let r=(0,n.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(r)||r<0||r>2)&&(r=null),this.data.textAlignment=r
let s=(0,n.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(s)||s<0)&&(s=0),this.data.maxLen=s,this.data.multiLine=this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(i.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(i.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(i.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,r,i,s,a,o,l,c,u,d){const h=s/this.data.maxLen,p=this.getBorderAndBackgroundAppearances(d),f=[],m=t.getCharPositions(r)
for(const[b,y]of m)f.push(`(${(0,n.escapeString)(r.substring(b,y))}) Tj`)
const g=f.join(` ${(0,n.numberToString)(h)} 0 Td `)
return`/Tx BMC q ${p}BT `+e+` 1 0 0 1 ${(0,n.numberToString)(o)} ${(0,n.numberToString)(l+c)} Tm ${g} ET Q EMC`}_getMultilineAppearance(e,t,r,i,s,a,o,l,c,u,d,h){const p=[],f=s-2*l,m={shift:0}
for(let n=0,y=t.length;n<y;n++){const e=t[n],a=this._splitLine(e,r,i,f)
for(let t=0,h=a.length;t<h;t++){const e=a[t],h=0===n&&0===t?-c-(d-u):-d
p.push(this._renderText(e,r,i,s,o,m,l,h))}}const g=this.getBorderAndBackgroundAppearances(h),b=p.join("\n")
return`/Tx BMC q ${g}BT `+e+` 1 0 0 1 0 ${(0,n.numberToString)(a)} Tm ${b} ET Q EMC`}_splitLine(e,t,r,i,n={}){e=n.line||e
const s=n.glyphs||t.charsToGlyphs(e)
if(s.length<=1)return[e]
const a=n.positions||t.getCharPositions(e),o=r/1e3,l=[]
let c=-1,u=-1,d=-1,h=0,p=0
for(let f=0,m=s.length;f<m;f++){const[t,r]=a[f],n=s[f],m=n.width*o
" "===n.unicode?p+m>i?(l.push(e.substring(h,t)),h=t,p=m,c=-1,d=-1):(p+=m,c=t,u=r,d=f):p+m>i?-1!==c?(l.push(e.substring(h,u)),h=u,f=d+1,c=-1,p=0):(l.push(e.substring(h,t)),h=t,p=m):p+=m}return h<e.length&&l.push(e.substring(h,e.length)),l}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class P extends A{constructor(e){super(e),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(e)):(0,i.warn)("Invalid field flags for button widget annotation")}async getOperatorList(e,t,r,n,s){if(this.data.pushButton)return super.getOperatorList(e,t,r,!1,s)
let a=null,o=null
if(s){const e=s.get(this.data.id)
a=e?e.value:null,o=e?e.rotation:null}if(null===a&&this.appearance)return super.getOperatorList(e,t,r,n,s)
null==a&&(a=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue)
const l=a?this.checkedAppearance:this.uncheckedAppearance
if(l){const a=this.appearance,c=l.dict.getArray("Matrix")||i.IDENTITY_MATRIX
o&&l.dict.set("Matrix",this.getRotationMatrix(s)),this.appearance=l
const u=super.getOperatorList(e,t,r,n,s)
return this.appearance=a,l.dict.set("Matrix",c),u}return{opList:new m.OperatorList,separateForm:!1,separateCanvas:!1}}async save(e,t,r){return this.data.checkBox?this._saveCheckbox(e,t,r):this.data.radioButton?this._saveRadioButton(e,t,r):null}async _saveCheckbox(e,t,r){if(!r)return null
const n=r.get(this.data.id)
let s=n?.rotation,o=n?.value
if(void 0===s){if(void 0===o)return null
if(this.data.fieldValue===this.data.exportValue===o)return null}const l=e.xref.fetchIfRef(this.ref)
if(!(l instanceof a.Dict))return null
void 0===s&&(s=this.rotation),void 0===o&&(o=this.data.fieldValue===this.data.exportValue)
const c={path:this.data.fieldName,value:o?this.data.exportValue:""},u=a.Name.get(o?this.data.exportValue:"Off")
l.set("V",u),l.set("AS",u),l.set("M",`D:${(0,i.getModificationDate)()}`)
const d=this._getMKDict(s)
d&&l.set("MK",d)
const h=[]
return await(0,g.writeObject)(this.ref,l,h,e.xref),[{ref:this.ref,data:h.join(""),xfa:c}]}async _saveRadioButton(e,t,r){if(!r)return null
const n=r.get(this.data.id)
let s=n?.rotation,o=n?.value
if(void 0===s){if(void 0===o)return null
if(this.data.fieldValue===this.data.buttonValue===o)return null}const l=e.xref.fetchIfRef(this.ref)
if(!(l instanceof a.Dict))return null
void 0===o&&(o=this.data.fieldValue===this.data.buttonValue),void 0===s&&(s=this.rotation)
const c={path:this.data.fieldName,value:o?this.data.buttonValue:""},u=a.Name.get(o?this.data.buttonValue:"Off"),d=[]
let h=null
if(o)if(this.parent instanceof a.Ref){const t=e.xref.fetch(this.parent)
t.set("V",u),await(0,g.writeObject)(this.parent,t,d,e.xref),h=d.join(""),d.length=0}else this.parent instanceof a.Dict&&this.parent.set("V",u)
l.set("AS",u),l.set("M",`D:${(0,i.getModificationDate)()}`)
const p=this._getMKDict(s)
p&&l.set("MK",p),await(0,g.writeObject)(this.ref,l,d,e.xref)
const f=[{ref:this.ref,data:d.join(""),xfa:c}]
return h&&f.push({ref:this.parent,data:h,xfa:null}),f}_getDefaultCheckedAppearance(e,t){const r=this.data.rect[2]-this.data.rect[0],s=this.data.rect[3]-this.data.rect[1],l=[0,0,r,s],c=.8*Math.min(r,s)
let u,d
"check"===t?(u={width:.755*c,height:.705*c},d="3"):"disc"===t?(u={width:.791*c,height:.705*c},d="l"):(0,i.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${t}`)
const h=`q BT /PdfJsZaDb ${c} Tf 0 g ${(0,n.numberToString)((r-u.width)/2)} ${(0,n.numberToString)((s-u.height)/2)} Td (${d}) Tj ET Q`,p=new a.Dict(e.xref)
p.set("FormType",1),p.set("Subtype",a.Name.get("Form")),p.set("Type",a.Name.get("XObject")),p.set("BBox",l),p.set("Matrix",[1,0,0,1,0,0]),p.set("Length",h.length)
const f=new a.Dict(e.xref),m=new a.Dict(e.xref)
m.set("PdfJsZaDb",this.fallbackFontDict),f.set("Font",m),p.set("Resources",f),this.checkedAppearance=new o.StringStream(h),this.checkedAppearance.dict=p,this._streams.push(this.checkedAppearance)}_processCheckBox(e){const t=e.dict.get("AP")
if(!(t instanceof a.Dict))return
const r=t.get("N")
if(!(r instanceof a.Dict))return
const i=this._decodeFormValue(e.dict.get("AS"))
"string"==typeof i&&(this.data.fieldValue=i)
const n=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",s=r.getKeys()
if(0===s.length)s.push("Off",n)
else if(1===s.length)"Off"===s[0]?s.push(n):s.unshift("Off")
else if(s.includes(n))s.length=0,s.push("Off",n)
else{const e=s.find((e=>"Off"!==e))
s.length=0,s.push("Off",e)}s.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=s[1]
const o=r.get(this.data.exportValue)
this.checkedAppearance=o instanceof l.BaseStream?o:null
const c=r.get("Off")
this.uncheckedAppearance=c instanceof l.BaseStream?c:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null
const t=e.dict.get("Parent")
if(t instanceof a.Dict){this.parent=e.dict.getRaw("Parent")
const r=t.get("V")
r instanceof a.Name&&(this.data.fieldValue=this._decodeFormValue(r))}const r=e.dict.get("AP")
if(!(r instanceof a.Dict))return
const i=r.get("N")
if(!(i instanceof a.Dict))return
for(const a of i.getKeys())if("Off"!==a){this.data.buttonValue=this._decodeFormValue(a)
break}const n=i.get(this.data.buttonValue)
this.checkedAppearance=n instanceof l.BaseStream?n:null
const s=i.get("Off")
this.uncheckedAppearance=s instanceof l.BaseStream?s:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(e){const{dict:t,annotationGlobals:r}=e
t.has("A")||t.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!t.has("A")&&!t.has("AA"),u.Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:r.baseUrl,docAttachments:r.attachments})):(0,i.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button"
return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new a.Dict
return e.set("BaseFont",a.Name.get("ZapfDingbats")),e.set("Type",a.Name.get("FallbackType")),e.set("Subtype",a.Name.get("FallbackType")),e.set("Encoding",a.Name.get("ZapfDingbatsEncoding")),(0,i.shadow)(this,"fallbackFontDict",e)}}class O extends A{constructor(e){super(e)
const{dict:t,xref:r}=e
this.indices=t.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[]
const s=(0,n.getInheritableProperty)({dict:t,key:"Opt"})
if(Array.isArray(s))for(let i=0,n=s.length;i<n;i++){const e=r.fetchIfRef(s[i]),t=Array.isArray(e)
this.data.options[i]={exportValue:this._decodeFormValue(t?r.fetchIfRef(e[0]):e),displayValue:this._decodeFormValue(t?r.fetchIfRef(e[1]):e)}}if(this.hasIndices){this.data.fieldValue=[]
const e=this.data.options.length
for(const t of this.indices)Number.isInteger(t)&&t>=0&&t<e&&this.data.fieldValue.push(this.data.options[t].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[])
this.data.combo=this.hasFieldFlag(i.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(i.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null
return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}amendSavedDict(e,t){if(!this.hasIndices)return
let r=e?.get(this.data.id)?.value
Array.isArray(r)||(r=[r])
const i=[],{options:n}=this.data
for(let s=0,a=0,o=n.length;s<o;s++)n[s].exportValue===r[a]&&(i.push(s),a+=1)
t.set("I",i)}async _getAppearance(e,t,r,n){if(this.data.combo)return super._getAppearance(e,t,r,n)
let a,o
const l=n?.get(this.data.id)
if(l&&(o=l.rotation,a=l.value),void 0===o&&void 0===a&&!this._needAppearances)return null
void 0===a?a=this.data.fieldValue:Array.isArray(a)||(a=[a])
let c=this.data.rect[3]-this.data.rect[1],u=this.data.rect[2]-this.data.rect[0]
90!==o&&270!==o||([u,c]=[c,u])
const d=this.data.options.length,h=[]
for(let i=0;i<d;i++){const{exportValue:e}=this.data.options[i]
a.includes(e)&&h.push(i)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,s.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"))
const p=await A._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources)
let f,{fontSize:m}=this.data.defaultAppearanceData
if(m)f=this._defaultAppearance
else{const e=(c-1)/d
let t,r=-1
for(const{displayValue:i}of this.data.options){const e=this._getTextWidth(i,p)
e>r&&(r=e,t=i)}[f,m]=this._computeFontSize(e,u-4,t,p,-1)}const g=m*i.LINE_FACTOR,b=(g-m)/2,y=Math.floor(c/g)
let v=0
if(h.length>0){const e=Math.min(...h),t=Math.max(...h)
v=Math.max(0,t-y+1),v>e&&(v=e)}const w=Math.min(v+y+1,d),x=["/Tx BMC q",`1 1 ${u} ${c} re W n`]
if(h.length){x.push("0.600006 0.756866 0.854904 rg")
for(const e of h)v<=e&&e<w&&x.push(`1 ${c-(e-v+1)*g} ${u} ${g} re f`)}x.push("BT",f,`1 0 0 1 0 ${c} Tm`)
const _={shift:0}
for(let i=v;i<w;i++){const{displayValue:e}=this.data.options[i],t=i===v?b:0
x.push(this._renderText(e,p,m,u,0,_,2,-g+t))}return x.push("ET Q EMC"),x.join("\n")}}class E extends A{constructor(e){super(e),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class T extends k{constructor(e){super(e),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate
const{dict:t}=e
this.data.annotationType=i.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=t.has("Name")?t.get("Name").name:"Note"),t.has("State")?(this.data.state=t.get("State")||null,this.data.stateModel=t.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class M extends _{constructor(e){super(e)
const{dict:t,annotationGlobals:r}=e
this.data.annotationType=i.AnnotationType.LINK
const n=w(t,this.rectangle)
n&&(this.data.quadPoints=n),this.data.borderColor||=this.data.color,u.Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:r.baseUrl,docAttachments:r.attachments})}}class I extends _{constructor(e){super(e)
const{dict:t}=e
this.data.annotationType=i.AnnotationType.POPUP,this.data.rect[0]!==this.data.rect[2]&&this.data.rect[1]!==this.data.rect[3]||(this.data.rect=null)
let r=t.get("Parent")
if(!r)return void(0,i.warn)("Popup annotation has a missing or invalid parent annotation.")
const n=r.getArray("Rect")
this.data.parentRect=Array.isArray(n)&&4===n.length?i.Util.normalizeRect(n):null
const s=r.get("RT")
if((0,a.isName)(s,i.AnnotationReplyType.GROUP)&&(r=r.get("IRT")),r.has("M")?(this.setModificationDate(r.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,r.has("C")?(this.setColor(r.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=r.get("F")
this._isViewable(e)&&this.setFlags(e)}this.setTitle(r.get("T")),this.data.titleObj=this._title,this.setContents(r.get("Contents")),this.data.contentsObj=this._contents,r.has("RC")&&(this.data.richText=b.XFAFactory.getRichTextAsHtml(r.get("RC"))),this.data.open=!!t.get("Open")}}t.PopupAnnotation=I
class F extends k{constructor(e){super(e),this.data.hasOwnCanvas=!0
const{evaluatorOptions:t,xref:r}=e
if(this.data.annotationType=i.AnnotationType.FREETEXT,this.setDefaultAppearance(e),this.appearance){const{fontColor:e,fontSize:i}=(0,s.parseAppearanceStream)(this.appearance,t,r)
this.data.defaultAppearanceData.fontColor=e,this.data.defaultAppearanceData.fontSize=i||10}else if(this._isOffscreenCanvasSupported){const t=e.dict.get("CA"),i=new s.FakeUnicodeFont(r,"sans-serif")
this.data.defaultAppearanceData.fontSize||=10
const{fontColor:n,fontSize:a}=this.data.defaultAppearanceData
this.appearance=i.createAppearance(this._contents.str,this.rectangle,this.rotation,a,n,t),this._streams.push(this.appearance,s.FakeUnicodeFont.toUnicodeStream)}else(0,i.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(e,t,{apRef:r,ap:o}){const{color:l,fontSize:c,rect:u,rotation:d,user:h,value:p}=e,f=new a.Dict(t)
f.set("Type",a.Name.get("Annot")),f.set("Subtype",a.Name.get("FreeText")),f.set("CreationDate",`D:${(0,i.getModificationDate)()}`),f.set("Rect",u)
const m=`/Helv ${c} Tf ${(0,s.getPdfColor)(l,!0)}`
if(f.set("DA",m),f.set("Contents",(0,n.isAscii)(p)?p:(0,n.stringToUTF16String)(p,!0)),f.set("F",4),f.set("Border",[0,0,0]),f.set("Rotate",d),h&&f.set("T",(0,n.isAscii)(h)?h:(0,n.stringToUTF16String)(h,!0)),r||o){const e=new a.Dict(t)
f.set("AP",e),r?e.set("N",r):e.set("N",o)}return f}static async createNewAppearanceStream(e,t,r){const{baseFontRef:l,evaluator:c,task:u}=r,{color:d,fontSize:h,rect:p,rotation:f,value:m}=e,g=new a.Dict(t),b=new a.Dict(t)
if(l)b.set("Helv",l)
else{const e=new a.Dict(t)
e.set("BaseFont",a.Name.get("Helvetica")),e.set("Type",a.Name.get("Font")),e.set("Subtype",a.Name.get("Type1")),e.set("Encoding",a.Name.get("WinAnsiEncoding")),b.set("Helv",e)}g.set("Font",b)
const y=await A._getFontData(c,u,{fontName:"Helv",fontSize:h},g),[v,w,x,_]=p
let S=x-v,k=_-w
f%180!=0&&([S,k]=[k,S])
const C=m.split("\n"),P=h/1e3
let O=-1/0
const E=[]
for(let i of C){const e=y.encodeString(i)
if(e.length>1)return null
i=e.join(""),E.push(i)
let t=0
const r=y.charsToGlyphs(i)
for(const i of r)t+=i.width*P
O=Math.max(O,t)}let T=1
O>S&&(T=S/O)
let M=1
const I=i.LINE_FACTOR*h,F=(i.LINE_FACTOR-i.LINE_DESCENT_FACTOR)*h,N=I*C.length
N>k&&(M=k/N)
const R=h*Math.min(T,M)
let D,j,L
switch(f){case 0:L=[1,0,0,1],j=[p[0],p[1],S,k],D=[p[0],p[3]-F]
break
case 90:L=[0,1,-1,0],j=[p[1],-p[2],S,k],D=[p[1],-p[0]-F]
break
case 180:L=[-1,0,0,-1],j=[-p[2],-p[3],S,k],D=[-p[2],-p[1]-F]
break
case 270:L=[0,-1,1,0],j=[-p[3],p[0],S,k],D=[-p[3],p[2]-F]}const B=["q",`${L.join(" ")} 0 0 cm`,`${j.join(" ")} re W n`,"BT",`${(0,s.getPdfColor)(d,!0)}`,`0 Tc /Helv ${(0,n.numberToString)(R)} Tf`]
B.push(`${D.join(" ")} Td (${(0,n.escapeString)(E[0])}) Tj`)
const $=(0,n.numberToString)(I)
for(let i=1,s=E.length;i<s;i++){const e=E[i]
B.push(`0 -${$} Td (${(0,n.escapeString)(e)}) Tj`)}B.push("ET","Q")
const z=B.join("\n"),U=new a.Dict(t)
U.set("FormType",1),U.set("Subtype",a.Name.get("Form")),U.set("Type",a.Name.get("XObject")),U.set("BBox",p),U.set("Resources",g),U.set("Matrix",[1,0,0,1,-p[0],-p[1]])
const q=new o.StringStream(z)
return q.dict=U,q}}class N extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.LINE,this.data.hasOwnCanvas=this.data.noRotate
const n=t.getArray("L")
if(this.data.lineCoordinates=i.Util.normalizeRect(n),this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const e=this.color?v(this.color):[0,0,0],s=t.get("CA"),a=y(t.getArray("IC"),null),o=a?v(a):null,l=o?s:null,c=this.borderStyle.width||1,u=2*c,d=[this.data.lineCoordinates[0]-u,this.data.lineCoordinates[1]-u,this.data.lineCoordinates[2]+u,this.data.lineCoordinates[3]+u]
i.Util.intersect(this.rectangle,d)||(this.rectangle=d),this._setDefaultAppearance({xref:r,extra:`${c} w`,strokeColor:e,fillColor:o,strokeAlpha:s,fillAlpha:l,pointsCallback:(e,t)=>(e.push(`${n[0]} ${n[1]} m`,`${n[2]} ${n[3]} l`,"S"),[t[0].x-c,t[1].x+c,t[3].y-c,t[1].y+c])})}}}class R extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
if(this.data.annotationType=i.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA"),n=y(t.getArray("IC"),null),s=n?v(n):null,a=s?i:null
if(0===this.borderStyle.width&&!s)return
this._setDefaultAppearance({xref:r,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:s,strokeAlpha:i,fillAlpha:a,pointsCallback:(e,t)=>{const r=t[2].x+this.borderStyle.width/2,i=t[2].y+this.borderStyle.width/2,n=t[3].x-t[2].x-this.borderStyle.width,a=t[1].y-t[3].y-this.borderStyle.width
return e.push(`${r} ${i} ${n} ${a} re`),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class D extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
if(this.data.annotationType=i.AnnotationType.CIRCLE,!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA"),n=y(t.getArray("IC"),null),s=n?v(n):null,a=s?i:null
if(0===this.borderStyle.width&&!s)return
const o=4/3*Math.tan(Math.PI/8)
this._setDefaultAppearance({xref:r,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:s,strokeAlpha:i,fillAlpha:a,pointsCallback:(e,t)=>{const r=t[0].x+this.borderStyle.width/2,i=t[0].y-this.borderStyle.width/2,n=t[3].x-this.borderStyle.width/2,a=t[3].y+this.borderStyle.width/2,l=r+(n-r)/2,c=i+(a-i)/2,u=(n-r)/2*o,d=(a-i)/2*o
return e.push(`${l} ${a} m`,`${l+u} ${a} ${n} ${c+d} ${n} ${c} c`,`${n} ${c-d} ${l+u} ${i} ${l} ${i} c`,`${l-u} ${i} ${r} ${c-d} ${r} ${c} c`,`${r} ${c+d} ${l-u} ${a} ${l} ${a} c`,"h"),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class j extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof L||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings)
const n=t.getArray("Vertices")
if(Array.isArray(n)){for(let e=0,t=n.length;e<t;e+=2)this.data.vertices.push({x:n[e],y:n[e+1]})
if(!this.appearance){const e=this.color?v(this.color):[0,0,0],n=t.get("CA"),s=this.borderStyle.width||1,a=2*s,o=[1/0,1/0,-1/0,-1/0]
for(const t of this.data.vertices)o[0]=Math.min(o[0],t.x-a),o[1]=Math.min(o[1],t.y-a),o[2]=Math.max(o[2],t.x+a),o[3]=Math.max(o[3],t.y+a)
i.Util.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:r,extra:`${s} w`,strokeColor:e,strokeAlpha:n,pointsCallback:(e,t)=>{const r=this.data.vertices
for(let i=0,n=r.length;i<n;i++)e.push(`${r[i].x} ${r[i].y} ${0===i?"m":"l"}`)
return e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}}class L extends j{constructor(e){super(e),this.data.annotationType=i.AnnotationType.POLYGON}}class B extends k{constructor(e){super(e),this.data.annotationType=i.AnnotationType.CARET}}class $ extends k{constructor(e){super(e),this.data.hasOwnCanvas=this.data.noRotate
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.INK,this.data.inkLists=[]
const n=t.getArray("InkList")
if(Array.isArray(n)){for(let e=0,t=n.length;e<t;++e){this.data.inkLists.push([])
for(let t=0,i=n[e].length;t<i;t+=2)this.data.inkLists[e].push({x:r.fetchIfRef(n[e][t]),y:r.fetchIfRef(n[e][t+1])})}if(!this.appearance){const e=this.color?v(this.color):[0,0,0],n=t.get("CA"),s=this.borderStyle.width||1,a=2*s,o=[1/0,1/0,-1/0,-1/0]
for(const t of this.data.inkLists)for(const e of t)o[0]=Math.min(o[0],e.x-a),o[1]=Math.min(o[1],e.y-a),o[2]=Math.max(o[2],e.x+a),o[3]=Math.max(o[3],e.y+a)
i.Util.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:r,extra:`${s} w`,strokeColor:e,strokeAlpha:n,pointsCallback:(e,t)=>{for(const r of this.data.inkLists){for(let t=0,i=r.length;t<i;t++)e.push(`${r[t].x} ${r[t].y} ${0===t?"m":"l"}`)
e.push("S")}return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}static createNewDict(e,t,{apRef:r,ap:n}){const{color:s,opacity:o,paths:l,rect:c,rotation:u,thickness:d}=e,h=new a.Dict(t)
h.set("Type",a.Name.get("Annot")),h.set("Subtype",a.Name.get("Ink")),h.set("CreationDate",`D:${(0,i.getModificationDate)()}`),h.set("Rect",c),h.set("InkList",l.map((e=>e.points))),h.set("F",4),h.set("Rotate",u)
const p=new a.Dict(t)
h.set("BS",p),p.set("W",d),h.set("C",Array.from(s,(e=>e/255))),h.set("CA",o)
const f=new a.Dict(t)
return h.set("AP",f),r?f.set("N",r):f.set("N",n),h}static async createNewAppearanceStream(e,t,r){const{color:i,rect:l,paths:c,thickness:u,opacity:d}=e,h=[`${u} w 1 J 1 j`,`${(0,s.getPdfColor)(i,!1)}`]
1!==d&&h.push("/R0 gs")
const p=[]
for(const{bezier:s}of c){p.length=0,p.push(`${(0,n.numberToString)(s[0])} ${(0,n.numberToString)(s[1])} m`)
for(let e=2,t=s.length;e<t;e+=6){const t=s.slice(e,e+6).map(n.numberToString).join(" ")
p.push(`${t} c`)}p.push("S"),h.push(p.join("\n"))}const f=h.join("\n"),m=new a.Dict(t)
if(m.set("FormType",1),m.set("Subtype",a.Name.get("Form")),m.set("Type",a.Name.get("XObject")),m.set("BBox",l),m.set("Length",f.length),1!==d){const e=new a.Dict(t),r=new a.Dict(t),i=new a.Dict(t)
i.set("CA",d),i.set("Type",a.Name.get("ExtGState")),r.set("R0",i),e.set("ExtGState",r),m.set("Resources",e)}const g=new o.StringStream(f)
return g.dict=m,g}}class z extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.HIGHLIGHT
if(this.data.quadPoints=w(t,null)){const e=this.appearance?.dict.get("Resources")
if(!this.appearance||!e?.has("ExtGState")){this.appearance&&(0,i.warn)("HighlightAnnotation - ignoring built-in appearance stream.")
const e=this.color?v(this.color):[1,1,0],n=t.get("CA")
this._setDefaultAppearance({xref:r,fillColor:e,blendMode:"Multiply",fillAlpha:n,pointsCallback:(e,t)=>(e.push(`${t[0].x} ${t[0].y} m`,`${t[1].x} ${t[1].y} l`,`${t[3].x} ${t[3].y} l`,`${t[2].x} ${t[2].y} l`,"f"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class U extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.UNDERLINE
if(this.data.quadPoints=w(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA")
this._setDefaultAppearance({xref:r,extra:"[] 0 d 0.571 w",strokeColor:e,strokeAlpha:i,pointsCallback:(e,t)=>(e.push(`${t[2].x} ${t[2].y+1.3} m`,`${t[3].x} ${t[3].y+1.3} l`,"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class q extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.SQUIGGLY
if(this.data.quadPoints=w(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA")
this._setDefaultAppearance({xref:r,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:i,pointsCallback:(e,t)=>{const r=(t[0].y-t[2].y)/6
let i=r,n=t[2].x
const s=t[2].y,a=t[3].x
e.push(`${n} ${s+i} m`)
do{n+=2,i=0===i?r:0,e.push(`${n} ${s+i} l`)}while(n<a)
return e.push("S"),[t[2].x,a,s-2*r,s+2*r]}})}}else this.data.popupRef=null}}class H extends k{constructor(e){super(e)
const{dict:t,xref:r}=e
this.data.annotationType=i.AnnotationType.STRIKEOUT
if(this.data.quadPoints=w(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA")
this._setDefaultAppearance({xref:r,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:i,pointsCallback:(e,t)=>(e.push((t[0].x+t[2].x)/2+" "+(t[0].y+t[2].y)/2+" m",(t[1].x+t[3].x)/2+" "+(t[1].y+t[3].y)/2+" l","S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class V extends k{constructor(e){super(e),this.data.annotationType=i.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static async createImage(e,t){const{width:r,height:n}=e,s=new OffscreenCanvas(r,n),l=s.getContext("2d",{alpha:!0})
l.drawImage(e,0,0)
const c=l.getImageData(0,0,r,n).data,u=new Uint32Array(c.buffer),d=u.some(i.FeatureTest.isLittleEndian?e=>e>>>24!=255:e=>!!(255&~e))
d&&(l.fillStyle="white",l.fillRect(0,0,r,n),l.drawImage(e,0,0))
const h=s.convertToBlob({type:"image/jpeg",quality:1}).then((e=>e.arrayBuffer())),p=a.Name.get("XObject"),f=a.Name.get("Image"),m=new a.Dict(t)
m.set("Type",p),m.set("Subtype",f),m.set("BitsPerComponent",8),m.set("ColorSpace",a.Name.get("DeviceRGB")),m.set("Filter",a.Name.get("DCTDecode")),m.set("BBox",[0,0,r,n]),m.set("Width",r),m.set("Height",n)
let g=null
if(d){const e=new Uint8Array(u.length)
if(i.FeatureTest.isLittleEndian)for(let t=0,r=u.length;t<r;t++)e[t]=u[t]>>>24
else for(let t=0,r=u.length;t<r;t++)e[t]=255&u[t]
const s=new a.Dict(t)
s.set("Type",p),s.set("Subtype",f),s.set("BitsPerComponent",8),s.set("ColorSpace",a.Name.get("DeviceGray")),s.set("Width",r),s.set("Height",n),g=new o.Stream(e,0,0,s)}return{imageStream:new o.Stream(await h,0,0,m),smaskStream:g,width:r,height:n}}static createNewDict(e,t,{apRef:r,ap:s}){const{rect:o,rotation:l,user:c}=e,u=new a.Dict(t)
if(u.set("Type",a.Name.get("Annot")),u.set("Subtype",a.Name.get("Stamp")),u.set("CreationDate",`D:${(0,i.getModificationDate)()}`),u.set("Rect",o),u.set("F",4),u.set("Border",[0,0,0]),u.set("Rotate",l),c&&u.set("T",(0,n.isAscii)(c)?c:(0,n.stringToUTF16String)(c,!0)),r||s){const e=new a.Dict(t)
u.set("AP",e),r?e.set("N",r):e.set("N",s)}return u}static async createNewAppearanceStream(e,t,r){const{rotation:i}=e,{imageRef:s,width:l,height:c}=r.image,u=new a.Dict(t),d=new a.Dict(t)
u.set("XObject",d),d.set("Im0",s)
const h=`q ${l} 0 0 ${c} 0 0 cm /Im0 Do Q`,p=new a.Dict(t)
if(p.set("FormType",1),p.set("Subtype",a.Name.get("Form")),p.set("Type",a.Name.get("XObject")),p.set("BBox",[0,0,l,c]),p.set("Resources",u),i){const e=(0,n.getRotationMatrix)(i,l,c)
p.set("Matrix",e)}const f=new o.StringStream(h)
return f.dict=p,f}}class G extends k{constructor(e){super(e)
const{dict:t,xref:r}=e,n=new h.FileSpec(t.get("FS"),r)
this.data.annotationType=i.AnnotationType.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.file=n.serializable
const s=t.get("Name")
this.data.name=s instanceof a.Name?(0,i.stringToPDFString)(s.name):"PushPin"
const o=t.get("ca")
this.data.fillAlpha="number"==typeof o&&o>=0&&o<=1?o:null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FakeUnicodeFont=void 0,t.createDefaultAppearance=function({fontSize:e,fontName:t,fontColor:r}){return`/${(0,n.escapePDFName)(t)} ${e} Tf ${p(r,!0)}`},t.getPdfColor=p,t.parseAppearanceStream=function(e,t,r){return new h(e,t,r).parse()},t.parseDefaultAppearance=function(e){return new d(e).parse()}
var i=r(4),n=r(3),s=r(2),a=r(12),o=r(13),l=r(59),c=r(57),u=r(8)
class d extends o.EvaluatorPreprocessor{constructor(e){super(new u.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)}
try{for(;e.args.length=0,this.read(e);){if(0!==this.savedStatesDepth)continue
const{fn:r,args:n}=e
switch(0|r){case s.OPS.setFont:const[e,r]=n
e instanceof i.Name&&(t.fontName=e.name),"number"==typeof r&&r>0&&(t.fontSize=r)
break
case s.OPS.setFillRGBColor:a.ColorSpace.singletons.rgb.getRgbItem(n,0,t.fontColor,0)
break
case s.OPS.setFillGray:a.ColorSpace.singletons.gray.getRgbItem(n,0,t.fontColor,0)
break
case s.OPS.setFillCMYKColor:a.ColorSpace.singletons.cmyk.getRgbItem(n,0,t.fontColor,0)}}}catch(r){(0,s.warn)(`parseDefaultAppearance - ignoring errors: "${r}".`)}return t}}class h extends o.EvaluatorPreprocessor{constructor(e,t,r){super(e),this.stream=e,this.evaluatorOptions=t,this.xref=r,this.resources=e.dict?.get("Resources")}parse(){const e={fn:0,args:[]}
let t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:a.ColorSpace.singletons.gray},r=!1
const n=[]
try{for(;e.args.length=0,!r&&this.read(e);){const{fn:o,args:l}=e
switch(0|o){case s.OPS.save:n.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace})
break
case s.OPS.restore:t=n.pop()||t
break
case s.OPS.setTextMatrix:t.scaleFactor*=Math.hypot(l[0],l[1])
break
case s.OPS.setFont:const[e,o]=l
e instanceof i.Name&&(t.fontName=e.name),"number"==typeof o&&o>0&&(t.fontSize=o*t.scaleFactor)
break
case s.OPS.setFillColorSpace:t.fillColorSpace=a.ColorSpace.parse({cs:l[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache})
break
case s.OPS.setFillColor:t.fillColorSpace.getRgbItem(l,0,t.fontColor,0)
break
case s.OPS.setFillRGBColor:a.ColorSpace.singletons.rgb.getRgbItem(l,0,t.fontColor,0)
break
case s.OPS.setFillGray:a.ColorSpace.singletons.gray.getRgbItem(l,0,t.fontColor,0)
break
case s.OPS.setFillCMYKColor:a.ColorSpace.singletons.cmyk.getRgbItem(l,0,t.fontColor,0)
break
case s.OPS.showText:case s.OPS.showSpacedText:case s.OPS.nextLineShowText:case s.OPS.nextLineSetSpacingShowText:r=!0}}}catch(o){(0,s.warn)(`parseAppearanceStream - ignoring errors: "${o}".`)}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}get _localColorSpaceCache(){return(0,s.shadow)(this,"_localColorSpaceCache",new l.LocalColorSpaceCache)}get _pdfFunctionFactory(){const e=new c.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported})
return(0,s.shadow)(this,"_pdfFunctionFactory",e)}}function p(e,t){if(e[0]===e[1]&&e[1]===e[2]){const r=e[0]/255
return`${(0,n.numberToString)(r)} ${t?"g":"G"}`}return Array.from(e,(e=>(0,n.numberToString)(e/255))).join(" ")+" "+(t?"rg":"RG")}class f{constructor(e,t){this.xref=e,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=t
const r=new OffscreenCanvas(1,1)
this.ctxMeasure=r.getContext("2d"),f._fontNameId||(f._fontNameId=1),this.fontName=i.Name.get(`InvalidPDFjsFont_${t}_${f._fontNameId++}`)}get toUnicodeRef(){if(!f._toUnicodeRef){const e="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> <FFFF>\nendcodespacerange\n1 beginbfrange\n<0000> <FFFF> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",t=f.toUnicodeStream=new u.StringStream(e),r=new i.Dict(this.xref)
t.dict=r,r.set("Length",e.length),f._toUnicodeRef=this.xref.getNewPersistentRef(t)}return f._toUnicodeRef}get fontDescriptorRef(){if(!f._fontDescriptorRef){const e=new i.Dict(this.xref)
e.set("Type",i.Name.get("FontDescriptor")),e.set("FontName",this.fontName),e.set("FontFamily","MyriadPro Regular"),e.set("FontBBox",[0,0,0,0]),e.set("FontStretch",i.Name.get("Normal")),e.set("FontWeight",400),e.set("ItalicAngle",0),f._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return f._fontDescriptorRef}get descendantFontRef(){const e=new i.Dict(this.xref)
e.set("BaseFont",this.fontName),e.set("Type",i.Name.get("Font")),e.set("Subtype",i.Name.get("CIDFontType0")),e.set("CIDToGIDMap",i.Name.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3)
const t=[],r=[...this.widths.entries()].sort()
let n=null,s=null
for(const[i,o]of r)n?i===n+s.length?s.push(o):(t.push(n,s),n=i,s=[o]):(n=i,s=[o])
n&&t.push(n,s),e.set("W",t)
const a=new i.Dict(this.xref)
return a.set("Ordering","Identity"),a.set("Registry","Adobe"),a.set("Supplement",0),e.set("CIDSystemInfo",a),this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new i.Dict(this.xref)
return e.set("BaseFont",this.fontName),e.set("Type",i.Name.get("Font")),e.set("Subtype",i.Name.get("Type0")),e.set("Encoding",i.Name.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(e)}get resources(){const e=new i.Dict(this.xref),t=new i.Dict(this.xref)
return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(e){const t=this._createContext()
for(const r of e.split(/\r\n?|\n/))for(const e of r.split("")){const r=e.charCodeAt(0)
if(this.widths.has(r))continue
const i=t.measureText(e),n=Math.ceil(i.width)
this.widths.set(r,n),this.firstChar=Math.min(r,this.firstChar),this.lastChar=Math.max(r,this.lastChar)}return this.resources}createAppearance(e,t,r,a,o,l){const c=this._createContext(),d=[]
let h=-1/0
for(const i of e.split(/\r\n?|\n/)){d.push(i)
const e=c.measureText(i).width
h=Math.max(h,e)
for(const t of i.split("")){const e=t.charCodeAt(0)
let r=this.widths.get(e)
if(void 0===r){const i=c.measureText(t)
r=Math.ceil(i.width),this.widths.set(e,r),this.firstChar=Math.min(e,this.firstChar),this.lastChar=Math.max(e,this.lastChar)}}}h*=a/1e3
const[f,m,g,b]=t
let y=g-f,v=b-m
r%180!=0&&([y,v]=[v,y])
let w=1
h>y&&(w=y/h)
let x=1
const _=s.LINE_FACTOR*a,S=s.LINE_DESCENT_FACTOR*a,k=_*d.length
k>v&&(x=v/k)
const A=a*Math.min(w,x),C=["q",`0 0 ${(0,n.numberToString)(y)} ${(0,n.numberToString)(v)} re W n`,"BT",`1 0 0 1 0 ${(0,n.numberToString)(v+S)} Tm 0 Tc ${p(o,!0)}`,`/${this.fontName.name} ${(0,n.numberToString)(A)} Tf`],{resources:P}=this
if(1!==(l="number"==typeof l&&l>=0&&l<=1?l:1)){C.push("/R0 gs")
const e=new i.Dict(this.xref),t=new i.Dict(this.xref)
t.set("ca",l),t.set("CA",l),t.set("Type",i.Name.get("ExtGState")),e.set("R0",t),P.set("ExtGState",e)}const O=(0,n.numberToString)(_)
for(const i of d)C.push(`0 -${O} Td <${(0,n.stringToUTF16HexString)(i)}> Tj`)
C.push("ET","Q")
const E=C.join("\n"),T=new i.Dict(this.xref)
if(T.set("Subtype",i.Name.get("Form")),T.set("Type",i.Name.get("XObject")),T.set("BBox",[0,0,y,v]),T.set("Length",E.length),T.set("Resources",P),r){const e=(0,n.getRotationMatrix)(r,y,v)
T.set("Matrix",e)}const M=new u.StringStream(E)
return M.dict=T,M}}t.FakeUnicodeFont=f},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0
var i=r(2),n=r(4),s=r(5),a=r(3)
class o{constructor(e,t){this.constructor===o&&(0,i.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const r=new Uint8ClampedArray(3)
return this.getRgbItem(e,t,r,0),r}getRgbItem(e,t,r,n){(0,i.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,r,n,s,a,o){(0,i.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,i.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return o.isDefaultDecode(e,this.numComps)}fillRgb(e,t,r,i,n,s,a,o,l){const c=t*r
let u=null
const d=1<<a,h=r!==n||t!==i
if(this.isPassthrough(a))u=o
else if(1===this.numComps&&c>d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=a<=8?new Uint8Array(d):new Uint16Array(d)
for(let e=0;e<d;e++)t[e]=e
const r=new Uint8ClampedArray(3*d)
if(this.getRgbBuffer(t,0,d,r,0,a,0),h){u=new Uint8Array(3*c)
let e=0
for(let t=0;t<c;++t){const i=3*o[t]
u[e++]=r[i],u[e++]=r[i+1],u[e++]=r[i+2]}}else{let t=0
for(let i=0;i<c;++i){const n=3*o[i]
e[t++]=r[n],e[t++]=r[n+1],e[t++]=r[n+2],t+=l}}}else h?(u=new Uint8ClampedArray(3*c),this.getRgbBuffer(o,0,c,u,0,a,0)):this.getRgbBuffer(o,0,i*s,e,0,a,l)
if(u)if(h)(function(e,t,r,i,n,s,a){a=1!==a?0:a
const o=r/n,l=i/s
let c,u=0
const d=new Uint16Array(n),h=3*r
for(let p=0;p<n;p++)d[p]=3*Math.floor(p*o)
for(let p=0;p<s;p++){const r=Math.floor(p*l)*h
for(let i=0;i<n;i++)c=r+d[i],t[u++]=e[c++],t[u++]=e[c++],t[u++]=e[c++],u+=a}})(u,e,t,r,i,n,l)
else{let t=0,r=0
for(let n=0,a=i*s;n<a;n++)e[t++]=u[r++],e[t++]=u[r++],e[t++]=u[r++],t+=l}}get usesZeroToOneRange(){return(0,i.shadow)(this,"usesZeroToOneRange",!0)}static _cache(e,t,r,i){if(!r)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.')
if(!i)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.')
let s,a
e instanceof n.Ref&&(a=e,e=t.fetch(e)),e instanceof n.Name&&(s=e.name),(s||a)&&r.set(s,a,i)}static getCached(e,t,r){if(!r)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.')
if(e instanceof n.Ref){const n=r.getByRef(e)
if(n)return n
try{e=t.fetch(e)}catch(i){if(i instanceof a.MissingDataException)throw i}}if(e instanceof n.Name){const t=r.getByName(e.name)
if(t)return t}return null}static async parseAsync({cs:e,xref:t,resources:r=null,pdfFunctionFactory:i,localColorSpaceCache:n}){const s=this._parse(e,t,r,i)
return this._cache(e,t,n,s),s}static parse({cs:e,xref:t,resources:r=null,pdfFunctionFactory:i,localColorSpaceCache:n}){const s=this.getCached(e,t,n)
if(s)return s
const a=this._parse(e,t,r,i)
return this._cache(e,t,n,a),a}static _parse(e,t,r=null,s){if((e=t.fetchIfRef(e))instanceof n.Name)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray
case"RGB":case"DeviceRGB":return this.singletons.rgb
case"CMYK":case"DeviceCMYK":return this.singletons.cmyk
case"Pattern":return new c(null)
default:if(r instanceof n.Dict){const i=r.get("ColorSpace")
if(i instanceof n.Dict){const a=i.get(e.name)
if(a){if(a instanceof n.Name)return this._parse(a,t,r,s)
e=a
break}}}throw new i.FormatError(`Unrecognized ColorSpace: ${e.name}`)}if(Array.isArray(e)){const n=t.fetchIfRef(e[0]).name
let a,o,d,h,p,b
switch(n){case"G":case"DeviceGray":return this.singletons.gray
case"RGB":case"DeviceRGB":return this.singletons.rgb
case"CMYK":case"DeviceCMYK":return this.singletons.cmyk
case"CalGray":return a=t.fetchIfRef(e[1]),h=a.getArray("WhitePoint"),p=a.getArray("BlackPoint"),b=a.get("Gamma"),new f(h,p,b)
case"CalRGB":a=t.fetchIfRef(e[1]),h=a.getArray("WhitePoint"),p=a.getArray("BlackPoint"),b=a.getArray("Gamma")
const y=a.getArray("Matrix")
return new m(h,p,b,y)
case"ICCBased":const v=t.fetchIfRef(e[1]).dict
o=v.get("N")
const w=v.get("Alternate")
if(w){const e=this._parse(w,t,r,s)
if(e.numComps===o)return e;(0,i.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return this.singletons.gray
if(3===o)return this.singletons.rgb
if(4===o)return this.singletons.cmyk
break
case"Pattern":return d=e[1]||null,d&&(d=this._parse(d,t,r,s)),new c(d)
case"I":case"Indexed":d=this._parse(e[1],t,r,s)
const x=t.fetchIfRef(e[2])+1,_=t.fetchIfRef(e[3])
return new u(d,x,_)
case"Separation":case"DeviceN":const S=t.fetchIfRef(e[1])
o=Array.isArray(S)?S.length:1,d=this._parse(e[2],t,r,s)
const k=s.create(e[3])
return new l(o,d,k)
case"Lab":a=t.fetchIfRef(e[1]),h=a.getArray("WhitePoint"),p=a.getArray("BlackPoint")
const A=a.getArray("Range")
return new g(h,p,A)
default:throw new i.FormatError(`Unimplemented ColorSpace object: ${n}`)}}throw new i.FormatError(`Unrecognized ColorSpace object: ${e}`)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0
if(2*t!==e.length)return(0,i.warn)("The decode map is not the correct length"),!0
for(let r=0,i=e.length;r<i;r+=2)if(0!==e[r]||1!==e[r+1])return!1
return!0}static get singletons(){return(0,i.shadow)(this,"singletons",{get gray(){return(0,i.shadow)(this,"gray",new d)},get rgb(){return(0,i.shadow)(this,"rgb",new h)},get cmyk(){return(0,i.shadow)(this,"cmyk",new p)}})}}t.ColorSpace=o
class l extends o{constructor(e,t,r){super("Alternate",e),this.base=t,this.tintFn=r,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,r,i){const n=this.tmpBuf
this.tintFn(e,t,n,0),this.base.getRgbItem(n,0,r,i)}getRgbBuffer(e,t,r,i,n,s,a){const o=this.tintFn,l=this.base,c=1/((1<<s)-1),u=l.numComps,d=l.usesZeroToOneRange,h=(l.isPassthrough(8)||!d)&&0===a
let p=h?n:0
const f=h?i:new Uint8ClampedArray(u*r),m=this.numComps,g=new Float32Array(m),b=new Float32Array(u)
let y,v
for(y=0;y<r;y++){for(v=0;v<m;v++)g[v]=e[t++]*c
if(o(g,0,b,0),d)for(v=0;v<u;v++)f[p++]=255*b[v]
else l.getRgbItem(b,0,f,p),p+=u}h||l.getRgbBuffer(f,0,r,i,n,8,a)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class c extends o{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,i.unreachable)("Should not call PatternCS.isDefaultDecode")}}class u extends o{constructor(e,t,r){super("Indexed",1),this.base=e,this.highVal=t
const n=e.numComps*t
if(this.lookup=new Uint8Array(n),r instanceof s.BaseStream){const e=r.getBytes(n)
this.lookup.set(e)}else{if("string"!=typeof r)throw new i.FormatError(`IndexedCS - unrecognized lookup table: ${r}`)
for(let e=0;e<n;++e)this.lookup[e]=255&r.charCodeAt(e)}}getRgbItem(e,t,r,i){const n=this.base.numComps,s=e[t]*n
this.base.getRgbBuffer(this.lookup,s,1,r,i,8,0)}getRgbBuffer(e,t,r,i,n,s,a){const o=this.base,l=o.numComps,c=o.getOutputLength(l,a),u=this.lookup
for(let d=0;d<r;++d){const r=e[t++]*l
o.getRgbBuffer(u,r,1,i,n,8,a),n+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,i.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,i.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class d extends o{constructor(){super("DeviceGray",1)}getRgbItem(e,t,r,i){const n=255*e[t]
r[i]=r[i+1]=r[i+2]=n}getRgbBuffer(e,t,r,i,n,s,a){const o=255/((1<<s)-1)
let l=t,c=n
for(let u=0;u<r;++u){const t=o*e[l++]
i[c++]=t,i[c++]=t,i[c++]=t,c+=a}}getOutputLength(e,t){return e*(3+t)}}class h extends o{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,r,i){r[i]=255*e[t],r[i+1]=255*e[t+1],r[i+2]=255*e[t+2]}getRgbBuffer(e,t,r,i,n,s,a){if(8===s&&0===a)return void i.set(e.subarray(t,t+3*r),n)
const o=255/((1<<s)-1)
let l=t,c=n
for(let u=0;u<r;++u)i[c++]=o*e[l++],i[c++]=o*e[l++],i[c++]=o*e[l++],c+=a}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}class p extends o{constructor(){super("DeviceCMYK",4)}#Ni(e,t,r,i,n){const s=e[t]*r,a=e[t+1]*r,o=e[t+2]*r,l=e[t+3]*r
i[n]=255+s*(-4.387332384609988*s+54.48615194189176*a+18.82290502165302*o+212.25662451639585*l-285.2331026137004)+a*(1.7149763477362134*a-5.6096736904047315*o+-17.873870861415444*l-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),i[n+1]=255+s*(8.841041422036149*s+60.118027045597366*a+6.871425592049007*o+31.159100130055922*l-79.2970844816548)+a*(-15.310361306967817*a+17.575251261109482*o+131.35250912493976*l-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),i[n+2]=255+s*(.8842522430003296*s+8.078677503112928*a+30.89978309703729*o-.23883238689178934*l-14.183576799673286)+a*(10.49593273432072*a+63.02378494754052*o+50.606957656360734*l-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}getRgbItem(e,t,r,i){this.#Ni(e,t,1,r,i)}getRgbBuffer(e,t,r,i,n,s,a){const o=1/((1<<s)-1)
for(let l=0;l<r;l++)this.#Ni(e,t,o,i,n),t+=4,n+=3+a}getOutputLength(e,t){return e/4*(3+t)|0}}class f extends o{constructor(e,t,r){if(super("CalGray",1),!e)throw new i.FormatError("WhitePoint missing - required for color space CalGray")
if([this.XW,this.YW,this.ZW]=e,[this.XB,this.YB,this.ZB]=t||[0,0,0],this.G=r||1,this.XW<0||this.ZW<0||1!==this.YW)throw new i.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,i.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,i.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,i.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#Ni(e,t,r,i,n){const s=(e[t]*n)**this.G,a=this.YW*s,o=Math.max(295.8*a**.3333333333333333-40.8,0)
r[i]=o,r[i+1]=o,r[i+2]=o}getRgbItem(e,t,r,i){this.#Ni(e,t,r,i,1)}getRgbBuffer(e,t,r,i,n,s,a){const o=1/((1<<s)-1)
for(let l=0;l<r;++l)this.#Ni(e,t,i,n,o),t+=1,n+=3+a}getOutputLength(e,t){return e*(3+t)}}class m extends o{static#Ri=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])
static#Di=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])
static#ji=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])
static#Li=new Float32Array([1,1,1])
static#Bi=new Float32Array(3)
static#$i=new Float32Array(3)
static#zi=new Float32Array(3)
static#Ui=(24/116)**3/8
constructor(e,t,r,n){if(super("CalRGB",3),!e)throw new i.FormatError("WhitePoint missing - required for color space CalRGB")
const[s,a,o]=this.whitePoint=e,[l,c,u]=this.blackPoint=t||new Float32Array(3)
if([this.GR,this.GG,this.GB]=r||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=n||new Float32Array([1,0,0,0,1,0,0,0,1]),s<0||o<0||1!==a)throw new i.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(l<0||c<0||u<0)&&((0,i.info)(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${u}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,i.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#qi(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#Hi(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}#Vi(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}#Gi(e){return e<=.0031308?this.#Wi(0,1,12.92*e):e>=.99554525?1:this.#Wi(0,1,1.055*e**(1/2.4)-.055)}#Wi(e,t,r){return Math.max(e,Math.min(t,r))}#Xi(e){return e<0?-this.#Xi(-e):e>8?((e+16)/116)**3:e*m.#Ui}#Ki(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2])
const i=this.#Xi(0),n=(1-i)/(1-this.#Xi(e[0])),s=1-n,a=(1-i)/(1-this.#Xi(e[1])),o=1-a,l=(1-i)/(1-this.#Xi(e[2])),c=1-l
r[0]=t[0]*n+s,r[1]=t[1]*a+o,r[2]=t[2]*l+c}#Yi(e,t,r){if(1===e[0]&&1===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2])
const i=r
this.#qi(m.#Ri,t,i)
const n=m.#Bi
this.#Hi(e,i,n),this.#qi(m.#Di,n,r)}#Ji(e,t,r){const i=r
this.#qi(m.#Ri,t,i)
const n=m.#Bi
this.#Vi(e,i,n),this.#qi(m.#Di,n,r)}#Ni(e,t,r,i,n){const s=this.#Wi(0,1,e[t]*n),a=this.#Wi(0,1,e[t+1]*n),o=this.#Wi(0,1,e[t+2]*n),l=1===s?1:s**this.GR,c=1===a?1:a**this.GG,u=1===o?1:o**this.GB,d=this.MXA*l+this.MXB*c+this.MXC*u,h=this.MYA*l+this.MYB*c+this.MYC*u,p=this.MZA*l+this.MZB*c+this.MZC*u,f=m.#$i
f[0]=d,f[1]=h,f[2]=p
const g=m.#zi
this.#Yi(this.whitePoint,f,g)
const b=m.#$i
this.#Ki(this.blackPoint,g,b)
const y=m.#zi
this.#Ji(m.#Li,b,y)
const v=m.#$i
this.#qi(m.#ji,y,v),r[i]=255*this.#Gi(v[0]),r[i+1]=255*this.#Gi(v[1]),r[i+2]=255*this.#Gi(v[2])}getRgbItem(e,t,r,i){this.#Ni(e,t,r,i,1)}getRgbBuffer(e,t,r,i,n,s,a){const o=1/((1<<s)-1)
for(let l=0;l<r;++l)this.#Ni(e,t,i,n,o),t+=3,n+=3+a}getOutputLength(e,t){return e*(3+t)/3|0}}class g extends o{constructor(e,t,r){if(super("Lab",3),!e)throw new i.FormatError("WhitePoint missing - required for color space Lab")
if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=r||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||1!==this.YW)throw new i.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,i.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,i.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#Qi(e){return e>=6/29?e**3:108/841*(e-4/29)}#Zi(e,t,r,i){return r+e*(i-r)/t}#Ni(e,t,r,i,n){let s=e[t],a=e[t+1],o=e[t+2]
!1!==r&&(s=this.#Zi(s,r,0,100),a=this.#Zi(a,r,this.amin,this.amax),o=this.#Zi(o,r,this.bmin,this.bmax)),a>this.amax?a=this.amax:a<this.amin&&(a=this.amin),o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin)
const l=(s+16)/116,c=l+a/500,u=l-o/200,d=this.XW*this.#Qi(c),h=this.YW*this.#Qi(l),p=this.ZW*this.#Qi(u)
let f,m,g
this.ZW<1?(f=3.1339*d+-1.617*h+-.4906*p,m=-.9785*d+1.916*h+.0333*p,g=.072*d+-.229*h+1.4057*p):(f=3.2406*d+-1.5372*h+-.4986*p,m=-.9689*d+1.8758*h+.0415*p,g=.0557*d+-.204*h+1.057*p),i[n]=255*Math.sqrt(f),i[n+1]=255*Math.sqrt(m),i[n+2]=255*Math.sqrt(g)}getRgbItem(e,t,r,i){this.#Ni(e,t,!1,r,i)}getRgbBuffer(e,t,r,i,n,s,a){const o=(1<<s)-1
for(let l=0;l<r;l++)this.#Ni(e,t,o,i,n),t+=3,n+=3+a}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,i.shadow)(this,"usesZeroToOneRange",!1)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0
var i=r(2),n=r(14),s=r(4),a=r(34),o=r(37),l=r(41),c=r(50),u=r(51),d=r(42),h=r(57),p=r(16),f=r(59),m=r(8),g=r(5),b=r(60),y=r(12),v=r(18),w=r(38),x=r(61),_=r(39),S=r(45),k=r(40),A=r(62),C=r(63),P=r(64),O=r(65)
const E=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),T=1,M=2,I=Promise.resolve()
function F(e,t=!1){if(Array.isArray(e)){for(const t of e){const e=F(t,!0)
if(e)return e}return(0,i.warn)(`Unsupported blend mode Array: ${e}`),"source-over"}if(!(e instanceof s.Name))return t?null:"source-over"
switch(e.name){case"Normal":case"Compatible":return"source-over"
case"Multiply":return"multiply"
case"Screen":return"screen"
case"Overlay":return"overlay"
case"Darken":return"darken"
case"Lighten":return"lighten"
case"ColorDodge":return"color-dodge"
case"ColorBurn":return"color-burn"
case"HardLight":return"hard-light"
case"SoftLight":return"soft-light"
case"Difference":return"difference"
case"Exclusion":return"exclusion"
case"Hue":return"hue"
case"Saturation":return"saturation"
case"Color":return"color"
case"Luminosity":return"luminosity"}return t?null:((0,i.warn)(`Unsupported blend mode: ${e.name}`),"source-over")}function N(e){e.fn===i.OPS.paintImageMaskXObject&&e.args[0]?.count>0&&e.args[0].count++}class R{static TIME_SLOT_DURATION_MS=20
static CHECK_TIME_EVERY=100
constructor(){this.reset()}check(){return!(++this.checked<R.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+R.TIME_SLOT_DURATION_MS,this.checked=0}}class D{constructor({xref:e,handler:t,pageIndex:r,idFactory:i,fontCache:n,builtInCMapCache:s,standardFontDataCache:a,globalImageCache:o,systemFontCache:l,options:c=null}){this.xref=e,this.handler=t,this.pageIndex=r,this.idFactory=i,this.fontCache=n,this.builtInCMapCache=s,this.standardFontDataCache=a,this.globalImageCache=o,this.systemFontCache=l,this.options=c||E,this.parsingType3Font=!1,this._regionalImageCache=new f.RegionalImageCache,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this),A.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}get _pdfFunctionFactory(){const e=new h.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported})
return(0,i.shadow)(this,"_pdfFunctionFactory",e)}clone(e=null){const t=Object.create(this)
return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof s.Dict))return!1
if(e.objId&&t.has(e.objId))return!1
const r=new s.RefSet(t)
e.objId&&r.put(e.objId)
const n=[e],a=this.xref
for(;n.length;){const e=n.shift(),t=e.get("ExtGState")
if(t instanceof s.Dict)for(let n of t.getRawValues()){if(n instanceof s.Ref){if(r.has(n))continue
try{n=a.fetch(n)}catch(o){r.put(n),(0,i.info)(`hasBlendModes - ignoring ExtGState: "${o}".`)
continue}}if(!(n instanceof s.Dict))continue
n.objId&&r.put(n.objId)
const e=n.get("BM")
if(e instanceof s.Name){if("Normal"!==e.name)return!0}else if(void 0!==e&&Array.isArray(e))for(const t of e)if(t instanceof s.Name&&"Normal"!==t.name)return!0}const l=e.get("XObject")
if(l instanceof s.Dict)for(let c of l.getRawValues()){if(c instanceof s.Ref){if(r.has(c))continue
try{c=a.fetch(c)}catch(o){r.put(c),(0,i.info)(`hasBlendModes - ignoring XObject: "${o}".`)
continue}}if(!(c instanceof g.BaseStream))continue
c.dict.objId&&r.put(c.dict.objId)
const e=c.dict.get("Resources")
e instanceof s.Dict&&(e.objId&&r.has(e.objId)||(n.push(e),e.objId&&r.put(e.objId)))}}for(const i of r)t.put(i)
return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e)
if(t)return t
let r
if(null!==this.options.cMapUrl){const t=`${this.options.cMapUrl}${e}.bcmap`,n=await fetch(t)
if(!n.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${t}" with "${n.statusText}".`)
r={cMapData:new Uint8Array(await n.arrayBuffer()),compressionType:i.CMapCompressionType.BINARY}}else r=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e})
return r.compressionType!==i.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,r),r}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e)
if(t)return new m.Stream(t)
if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null
const r=(0,l.getFontNameToFileMap)()[e]
let n
if(null!==this.options.standardFontDataUrl){const e=`${this.options.standardFontDataUrl}${r}`,t=await fetch(e)
t.ok?n=await t.arrayBuffer():(0,i.warn)(`fetchStandardFontData: failed to fetch file "${e}" with "${t.statusText}".`)}else try{n=await this.handler.sendWithPromise("FetchStandardFontData",{filename:r})}catch(s){(0,i.warn)(`fetchStandardFontData: failed to fetch file "${r}" with "${s}".`)}return n?(this.standardFontDataCache.set(e,n),new m.Stream(n)):null}async buildFormXObject(e,t,r,n,a,o,l){const c=t.dict,u=c.getArray("Matrix")
let d,h,p=c.getArray("BBox")
p=Array.isArray(p)&&4===p.length?i.Util.normalizeRect(p):null,c.has("OC")&&(d=await this.parseMarkedContentProps(c.get("OC"),e)),void 0!==d&&n.addOp(i.OPS.beginMarkedContentProps,["OC",d])
const f=c.get("Group")
if(f){h={matrix:u,bbox:p,smask:r,isolated:!1,knockout:!1}
const t=f.get("S")
let a=null
if((0,s.isName)(t,"Transparency")&&(h.isolated=f.get("I")||!1,h.knockout=f.get("K")||!1,f.has("CS"))){const t=f.getRaw("CS"),r=y.ColorSpace.getCached(t,this.xref,l)
a=r||await this.parseColorSpace({cs:t,resources:e,localColorSpaceCache:l})}r?.backdrop&&(a||=y.ColorSpace.singletons.rgb,r.backdrop=a.getRgb(r.backdrop,0)),n.addOp(i.OPS.beginGroup,[h])}const m=f?[u,null]:[u,p]
return n.addOp(i.OPS.paintFormXObjectBegin,m),this.getOperatorList({stream:t,task:a,resources:c.get("Resources")||e,operatorList:n,initialState:o}).then((function(){n.addOp(i.OPS.paintFormXObjectEnd,[]),f&&n.addOp(i.OPS.endGroup,[h]),void 0!==d&&n.addOp(i.OPS.endMarkedContent,[])}))}_sendImgData(e,t,r=!1){const i=t?[t.bitmap||t.data.buffer]:null
return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],i):this.handler.send("obj",[e,this.pageIndex,"Image",t],i)}async buildPaintImageXObject({resources:e,image:t,isInline:r=!1,operatorList:n,cacheKey:s,localImageCache:a,localColorSpaceCache:o}){const l=t.dict,c=l.objId,u=l.get("W","Width"),d=l.get("H","Height")
if(!u||"number"!=typeof u||!d||"number"!=typeof d)return void(0,i.warn)("Image dimensions are missing, or not numbers.")
const h=this.options.maxImageSize
if(-1!==h&&u*d>h){const e="Image exceeded maximum allowed size and was removed."
if(this.options.ignoreErrors)return void(0,i.warn)(e)
throw new Error(e)}let p
l.has("OC")&&(p=await this.parseMarkedContentProps(l.get("OC"),e))
let f,m
if(l.get("IM","ImageMask")||!1){const e=l.get("I","Interpolate"),r=u+7>>3,o=t.getBytes(r*d),h=l.getArray("D","Decode")
if(this.parsingType3Font){if(f=O.PDFImage.createRawMask({imgArray:o,width:u,height:d,imageIsFromDecodeStream:t instanceof v.DecodeStream,inverseDecode:h?.[0]>0,interpolate:e}),f.cached=!!s,m=[f],n.addImageOps(i.OPS.paintImageMaskXObject,m,p),s){const e={fn:i.OPS.paintImageMaskXObject,args:m,optionalContent:p}
a.set(s,c,e),c&&this._regionalImageCache.set(null,c,e)}return}if(f=await O.PDFImage.createMask({imgArray:o,width:u,height:d,imageIsFromDecodeStream:t instanceof v.DecodeStream,inverseDecode:h?.[0]>0,interpolate:e,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),f.isSingleOpaquePixel){if(n.addImageOps(i.OPS.paintSolidColorImageMask,[],p),s){const e={fn:i.OPS.paintSolidColorImageMask,args:[],optionalContent:p}
a.set(s,c,e),c&&this._regionalImageCache.set(null,c,e)}return}const g=`mask_${this.idFactory.createObjId()}`
if(n.addDependency(g),this._sendImgData(g,f),m=[{data:g,width:f.width,height:f.height,interpolate:f.interpolate,count:1}],n.addImageOps(i.OPS.paintImageMaskXObject,m,p),s){const e={fn:i.OPS.paintImageMaskXObject,args:m,optionalContent:p}
a.set(s,c,e),c&&this._regionalImageCache.set(null,c,e)}return}if(r&&!l.has("SMask")&&!l.has("Mask")&&u+d<200){const s=new O.PDFImage({xref:this.xref,res:e,image:t,isInline:r,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:o})
return f=await s.createImageData(!0,!1),n.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,void n.addImageOps(i.OPS.paintInlineImageXObject,[f],p)}let g=`img_${this.idFactory.createObjId()}`,b=!1
if(this.parsingType3Font?g=`${this.idFactory.getDocId()}_type3_${g}`:c&&(b=this.globalImageCache.shouldCache(c,this.pageIndex),b&&(g=`${this.idFactory.getDocId()}_${g}`)),n.addDependency(g),m=[g,u,d],O.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:r,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:o}).then((async e=>{if(f=await e.createImageData(!1,this.options.isOffscreenCanvasSupported),s&&c&&b){const e=f.bitmap?f.width*f.height*4:f.data.length
this.globalImageCache.addByteSize(c,e)}return this._sendImgData(g,f,b)})).catch((e=>((0,i.warn)(`Unable to decode image "${g}": "${e}".`),this._sendImgData(g,null,b)))),n.addImageOps(i.OPS.paintImageXObject,m,p),s){const e={fn:i.OPS.paintImageXObject,args:m,optionalContent:p}
a.set(s,c,e),c&&(this._regionalImageCache.set(null,c,e),b&&((0,i.assert)(!r,"Cannot cache an inline image globally."),this.globalImageCache.setData(c,{objId:g,fn:i.OPS.paintImageXObject,args:m,optionalContent:p,byteSize:0})))}}handleSMask(e,t,r,i,n,s){const a=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR")
if((0,h.isPDFFunction)(l)){const e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),r=new Float32Array(1)
for(let i=0;i<256;i++)r[0]=i/255,e(r,0,r,0),t[i]=255*r[0]|0
o.transferMap=t}return this.buildFormXObject(t,a,o,r,i,n.state.clone(),s)}handleTransferFunction(e){let t
if(Array.isArray(e))t=e
else{if(!(0,h.isPDFFunction)(e))return null
t=[e]}const r=[]
let i=0,n=0
for(const a of t){const e=this.xref.fetchIfRef(a)
if(i++,(0,s.isName)(e,"Identity")){r.push(null)
continue}if(!(0,h.isPDFFunction)(e))return null
const t=this._pdfFunctionFactory.create(e),o=new Uint8Array(256),l=new Float32Array(1)
for(let r=0;r<256;r++)l[0]=r/255,t(l,0,l,0),o[r]=255*l[0]|0
r.push(o),n++}return 1!==i&&4!==i||0===n?null:r}handleTilingType(e,t,r,n,a,o,l,u){const d=new P.OperatorList,h=s.Dict.merge({xref:this.xref,dictArray:[a.get("Resources"),r]})
return this.getOperatorList({stream:n,task:l,resources:h,operatorList:d}).then((function(){const r=d.getIR(),i=(0,c.getTilingPatternIR)(r,a,t)
o.addDependencies(d.dependencies),o.addOp(e,i),a.objId&&u.set(null,a.objId,{operatorListIR:r,dict:a})})).catch((e=>{if(!(e instanceof i.AbortException)){if(!this.options.ignoreErrors)throw e;(0,i.warn)(`handleTilingType - ignoring pattern: "${e}".`)}}))}handleSetFont(e,t,r,i,n,o,l=null,c=null){const u=t?.[0]instanceof s.Name?t[0].name:null
return this.loadFont(u,r,e,l,c).then((t=>t.font.isType3Font?t.loadType3Data(this,e,n).then((function(){return i.addDependencies(t.type3Dependencies),t})).catch((e=>new j({loadedName:"g_font_error",font:new a.ErrorFont(`Type3 font load error: ${e}`),dict:t.font,evaluatorOptions:this.options}))):t)).then((e=>(o.font=e.font,e.send(this.handler),e.loadedName)))}handleText(e,t){const r=t.font,n=r.charsToGlyphs(e)
if(r.data){(!!(t.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===t.fillColorSpace.name||r.disableFontFace||this.options.disableFontFace)&&D.buildFontPaths(r,n,this.handler,this.options)}return n}ensureStateFont(e){if(e.font)return
const t=new i.FormatError("Missing setFont (Tf) operator before text rendering operator.")
if(!this.options.ignoreErrors)throw t;(0,i.warn)(`ensureStateFont: "${t}".`)}async setGState({resources:e,gState:t,operatorList:r,cacheKey:n,task:a,stateManager:o,localGStateCache:l,localColorSpaceCache:c}){const u=t.objId
let d=!0
const h=[]
let p=Promise.resolve()
for(const f of t.getKeys()){const n=t.get(f)
switch(f){case"Type":break
case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":h.push([f,n])
break
case"Font":d=!1,p=p.then((()=>this.handleSetFont(e,null,n[0],r,a,o.state).then((function(e){r.addDependency(e),h.push([f,[e,n[1]]])}))))
break
case"BM":h.push([f,F(n)])
break
case"SMask":if((0,s.isName)(n,"None")){h.push([f,!1])
break}n instanceof s.Dict?(d=!1,p=p.then((()=>this.handleSMask(n,e,r,a,o,c))),h.push([f,!0])):(0,i.warn)("Unsupported SMask type")
break
case"TR":const t=this.handleTransferFunction(n)
h.push([f,t])
break
case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,i.info)("graphic state operator "+f)
break
default:(0,i.info)("Unknown graphic state operator "+f)}}return p.then((function(){h.length>0&&r.addOp(i.OPS.setGState,[h]),d&&l.set(n,u,h)}))}loadFont(e,t,r,n=null,o=null){const l=async()=>new j({loadedName:"g_font_error",font:new a.ErrorFont(`Font "${e}" is not available.`),dict:t,evaluatorOptions:this.options})
let c
if(t)t instanceof s.Ref&&(c=t)
else{const t=r.get("Font")
t&&(c=t.getRaw(e))}if(c){if(this.parsingType3Font&&this.type3FontRefs.has(c))return l()
if(this.fontCache.has(c))return this.fontCache.get(c)
t=this.xref.fetchIfRef(c)}if(!(t instanceof s.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,i.warn)(`Font "${e}" is not available.`),l();(0,i.warn)(`Font "${e}" is not available -- attempting to fallback to a default font.`),t=n||D.fallbackFontDict}if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey)
const u=new i.PromiseCapability
let d
try{d=this.preEvaluateFont(t),d.cssFontInfo=o}catch(g){return(0,i.warn)(`loadFont - preEvaluateFont failed: "${g}".`),l()}const{descriptor:h,hash:p}=d,f=c instanceof s.Ref
let m
if(p&&h instanceof s.Dict){const e=h.fontAliases||=Object.create(null)
if(e[p]){const t=e[p].aliasRef
if(f&&t&&this.fontCache.has(t))return this.fontCache.putAlias(c,t),this.fontCache.get(c)}else e[p]={fontID:this.idFactory.createFontId()}
f&&(e[p].aliasRef=c),m=e[p].fontID}else m=this.idFactory.createFontId()
return(0,i.assert)(m?.startsWith("f"),'The "fontID" must be (correctly) defined.'),f?this.fontCache.put(c,u.promise):(t.cacheKey=`cacheKey_${m}`,this.fontCache.put(t.cacheKey,u.promise)),t.loadedName=`${this.idFactory.getDocId()}_${m}`,this.translateFont(d).then((e=>{u.resolve(new j({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))})).catch((e=>{(0,i.warn)(`loadFont - translateFont failed: "${e}".`),u.resolve(new j({loadedName:t.loadedName,font:new a.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))})),u.promise}buildPath(e,t,r,n=!1){const s=e.length-1
if(r||(r=[]),s<0||e.fnArray[s]!==i.OPS.constructPath){let s
switch(n&&((0,i.warn)(`Encountered path operator "${t}" inside of a text object.`),e.addOp(i.OPS.save,null)),t){case i.OPS.rectangle:const e=r[0]+r[2],t=r[1]+r[3]
s=[Math.min(r[0],e),Math.max(r[0],e),Math.min(r[1],t),Math.max(r[1],t)]
break
case i.OPS.moveTo:case i.OPS.lineTo:s=[r[0],r[0],r[1],r[1]]
break
default:s=[1/0,-1/0,1/0,-1/0]}e.addOp(i.OPS.constructPath,[[t],r,s]),n&&e.addOp(i.OPS.restore,null)}else{const n=e.argsArray[s]
n[0].push(t),n[1].push(...r)
const a=n[2]
switch(t){case i.OPS.rectangle:const e=r[0]+r[2],t=r[1]+r[3]
a[0]=Math.min(a[0],r[0],e),a[1]=Math.max(a[1],r[0],e),a[2]=Math.min(a[2],r[1],t),a[3]=Math.max(a[3],r[1],t)
break
case i.OPS.moveTo:case i.OPS.lineTo:a[0]=Math.min(a[0],r[0]),a[1]=Math.max(a[1],r[0]),a[2]=Math.min(a[2],r[1]),a[3]=Math.max(a[3],r[1])}}}parseColorSpace({cs:e,resources:t,localColorSpaceCache:r}){return y.ColorSpace.parseAsync({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:r}).catch((e=>{if(e instanceof i.AbortException)return null
if(this.options.ignoreErrors)return(0,i.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`),null
throw e}))}parseShading({shading:e,resources:t,localColorSpaceCache:r,localShadingPatternCache:i}){let n=i.get(e)
if(!n){const s=c.Pattern.parseShading(e,this.xref,t,this._pdfFunctionFactory,r).getIR()
n=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`),i.set(e,n),this.parsingType3Font?this.handler.send("commonobj",[n,"Pattern",s]):this.handler.send("obj",[n,this.pageIndex,"Pattern",s])}return n}handleColorN(e,t,r,n,a,o,l,u,d,h){const p=r.pop()
if(p instanceof s.Name){const f=a.getRaw(p.name),m=f instanceof s.Ref&&d.getByRef(f)
if(m)try{const i=n.base?n.base.getRgb(r,0):null,s=(0,c.getTilingPatternIR)(m.operatorListIR,m.dict,i)
return void e.addOp(t,s)}catch{}const b=this.xref.fetchIfRef(f)
if(b){const s=b instanceof g.BaseStream?b.dict:b,a=s.get("PatternType")
if(a===T){const i=n.base?n.base.getRgb(r,0):null
return this.handleTilingType(t,i,o,b,s,e,l,d)}if(a===M){const r=s.get("Shading"),i=s.getArray("Matrix"),n=this.parseShading({shading:r,resources:o,localColorSpaceCache:u,localShadingPatternCache:h})
return void e.addOp(t,["Shading",n,i])}throw new i.FormatError(`Unknown PatternType: ${a}`)}}throw new i.FormatError(`Unknown PatternName: ${p}`)}_parseVisibilityExpression(e,t,r){if(++t>10)return void(0,i.warn)("Visibility expression is too deeply nested")
const n=e.length,a=this.xref.fetchIfRef(e[0])
if(!(n<2)&&a instanceof s.Name){switch(a.name){case"And":case"Or":case"Not":r.push(a.name)
break
default:return void(0,i.warn)(`Invalid operator ${a.name} in visibility expression`)}for(let i=1;i<n;i++){const n=e[i],a=this.xref.fetchIfRef(n)
if(Array.isArray(a)){const e=[]
r.push(e),this._parseVisibilityExpression(a,t,e)}else n instanceof s.Ref&&r.push(n.toString())}}else(0,i.warn)("Invalid visibility expression")}async parseMarkedContentProps(e,t){let r
if(e instanceof s.Name){r=t.get("Properties").get(e.name)}else{if(!(e instanceof s.Dict))throw new i.FormatError("Optional content properties malformed.")
r=e}const n=r.get("Type")?.name
if("OCG"===n)return{type:n,id:r.objId}
if("OCMD"===n){const e=r.get("VE")
if(Array.isArray(e)){const t=[]
if(this._parseVisibilityExpression(e,0,t),t.length>0)return{type:"OCMD",expression:t}}const t=r.get("OCGs")
if(Array.isArray(t)||t instanceof s.Dict){const e=[]
if(Array.isArray(t))for(const r of t)e.push(r.toString())
else e.push(t.objId)
return{type:n,ids:e,policy:r.get("P")instanceof s.Name?r.get("P").name:null,expression:null}}if(t instanceof s.Ref)return{type:n,id:t.toString()}}return null}getOperatorList({stream:e,task:t,resources:r,operatorList:n,initialState:a=null,fallbackFontDict:o=null}){if(r||=s.Dict.empty,a||=new $,!n)throw new Error('getOperatorList: missing "operatorList" parameter')
const l=this,c=this.xref
let u=!1
const d=new f.LocalImageCache,h=new f.LocalColorSpaceCache,p=new f.LocalGStateCache,m=new f.LocalTilingPatternCache,b=new Map,v=r.get("XObject")||s.Dict.empty,w=r.get("Pattern")||s.Dict.empty,x=new L(a),_=new z(e,c,x),S=new R
function k(e){for(let t=0,r=_.savedStatesDepth;t<r;t++)n.addOp(i.OPS.restore,[])}return new Promise((function e(a,f){const A=function(t){Promise.all([t,n.ready]).then((function(){try{e(a,f)}catch(t){f(t)}}),f)}
t.ensureNotTerminated(),S.reset()
const C={}
let P,O,E,T,M,F
for(;!(P=S.check())&&(C.args=null,_.read(C));){let e=C.args,a=C.fn
switch(0|a){case i.OPS.paintXObject:if(F=e[0]instanceof s.Name,M=e[0].name,F){const t=d.getByName(M)
if(t){n.addImageOps(t.fn,t.args,t.optionalContent),N(t),e=null
continue}}return void A(new Promise((function(e,a){if(!F)throw new i.FormatError("XObject must be referred to by name.")
let o=v.getRaw(M)
if(o instanceof s.Ref){const t=d.getByRef(o)||l._regionalImageCache.getByRef(o)
if(t)return n.addImageOps(t.fn,t.args,t.optionalContent),N(t),void e()
const r=l.globalImageCache.getData(o,l.pageIndex)
if(r)return n.addDependency(r.objId),n.addImageOps(r.fn,r.args,r.optionalContent),void e()
o=c.fetch(o)}if(!(o instanceof g.BaseStream))throw new i.FormatError("XObject should be a stream")
const u=o.dict.get("Subtype")
if(!(u instanceof s.Name))throw new i.FormatError("XObject should have a Name subtype")
if("Form"===u.name)return x.save(),void l.buildFormXObject(r,o,null,n,t,x.state.clone(),h).then((function(){x.restore(),e()}),a)
if("Image"!==u.name){if("PS"!==u.name)throw new i.FormatError(`Unhandled XObject subtype ${u.name}`);(0,i.info)("Ignored XObject subtype PS"),e()}else l.buildPaintImageXObject({resources:r,image:o,operatorList:n,cacheKey:M,localImageCache:d,localColorSpaceCache:h}).then(e,a)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!l.options.ignoreErrors)throw e;(0,i.warn)(`getOperatorList - ignoring XObject: "${e}".`)}})))
case i.OPS.setFont:var R=e[1]
return void A(l.handleSetFont(r,e,null,n,t,x.state,o).then((function(e){n.addDependency(e),n.addOp(i.OPS.setFont,[e,R])})))
case i.OPS.beginText:u=!0
break
case i.OPS.endText:u=!1
break
case i.OPS.endInlineImage:var D=e[0].cacheKey
if(D){const t=d.getByName(D)
if(t){n.addImageOps(t.fn,t.args,t.optionalContent),N(t),e=null
continue}}return void A(l.buildPaintImageXObject({resources:r,image:e[0],isInline:!0,operatorList:n,cacheKey:D,localImageCache:d,localColorSpaceCache:h}))
case i.OPS.showText:if(!x.state.font){l.ensureStateFont(x.state)
continue}e[0]=l.handleText(e[0],x.state)
break
case i.OPS.showSpacedText:if(!x.state.font){l.ensureStateFont(x.state)
continue}var j=[],L=x.state
for(const t of e[0])"string"==typeof t?j.push(...l.handleText(t,L)):"number"==typeof t&&j.push(t)
e[0]=j,a=i.OPS.showText
break
case i.OPS.nextLineShowText:if(!x.state.font){l.ensureStateFont(x.state)
continue}n.addOp(i.OPS.nextLine),e[0]=l.handleText(e[0],x.state),a=i.OPS.showText
break
case i.OPS.nextLineSetSpacingShowText:if(!x.state.font){l.ensureStateFont(x.state)
continue}n.addOp(i.OPS.nextLine),n.addOp(i.OPS.setWordSpacing,[e.shift()]),n.addOp(i.OPS.setCharSpacing,[e.shift()]),e[0]=l.handleText(e[0],x.state),a=i.OPS.showText
break
case i.OPS.setTextRenderingMode:x.state.textRenderingMode=e[0]
break
case i.OPS.setFillColorSpace:{const t=y.ColorSpace.getCached(e[0],c,h)
if(t){x.state.fillColorSpace=t
continue}return void A(l.parseColorSpace({cs:e[0],resources:r,localColorSpaceCache:h}).then((function(e){e&&(x.state.fillColorSpace=e)})))}case i.OPS.setStrokeColorSpace:{const t=y.ColorSpace.getCached(e[0],c,h)
if(t){x.state.strokeColorSpace=t
continue}return void A(l.parseColorSpace({cs:e[0],resources:r,localColorSpaceCache:h}).then((function(e){e&&(x.state.strokeColorSpace=e)})))}case i.OPS.setFillColor:T=x.state.fillColorSpace,e=T.getRgb(e,0),a=i.OPS.setFillRGBColor
break
case i.OPS.setStrokeColor:T=x.state.strokeColorSpace,e=T.getRgb(e,0),a=i.OPS.setStrokeRGBColor
break
case i.OPS.setFillGray:x.state.fillColorSpace=y.ColorSpace.singletons.gray,e=y.ColorSpace.singletons.gray.getRgb(e,0),a=i.OPS.setFillRGBColor
break
case i.OPS.setStrokeGray:x.state.strokeColorSpace=y.ColorSpace.singletons.gray,e=y.ColorSpace.singletons.gray.getRgb(e,0),a=i.OPS.setStrokeRGBColor
break
case i.OPS.setFillCMYKColor:x.state.fillColorSpace=y.ColorSpace.singletons.cmyk,e=y.ColorSpace.singletons.cmyk.getRgb(e,0),a=i.OPS.setFillRGBColor
break
case i.OPS.setStrokeCMYKColor:x.state.strokeColorSpace=y.ColorSpace.singletons.cmyk,e=y.ColorSpace.singletons.cmyk.getRgb(e,0),a=i.OPS.setStrokeRGBColor
break
case i.OPS.setFillRGBColor:x.state.fillColorSpace=y.ColorSpace.singletons.rgb,e=y.ColorSpace.singletons.rgb.getRgb(e,0)
break
case i.OPS.setStrokeRGBColor:x.state.strokeColorSpace=y.ColorSpace.singletons.rgb,e=y.ColorSpace.singletons.rgb.getRgb(e,0)
break
case i.OPS.setFillColorN:if(T=x.state.fillColorSpace,"Pattern"===T.name)return void A(l.handleColorN(n,i.OPS.setFillColorN,e,T,w,r,t,h,m,b))
e=T.getRgb(e,0),a=i.OPS.setFillRGBColor
break
case i.OPS.setStrokeColorN:if(T=x.state.strokeColorSpace,"Pattern"===T.name)return void A(l.handleColorN(n,i.OPS.setStrokeColorN,e,T,w,r,t,h,m,b))
e=T.getRgb(e,0),a=i.OPS.setStrokeRGBColor
break
case i.OPS.shadingFill:var B=r.get("Shading")
if(!B)throw new i.FormatError("No shading resource found")
var $=B.get(e[0].name)
if(!$)throw new i.FormatError("No shading object found")
e=[l.parseShading({shading:$,resources:r,localColorSpaceCache:h,localShadingPatternCache:b})],a=i.OPS.shadingFill
break
case i.OPS.setGState:if(F=e[0]instanceof s.Name,M=e[0].name,F){const t=p.getByName(M)
if(t){t.length>0&&n.addOp(i.OPS.setGState,[t]),e=null
continue}}return void A(new Promise((function(e,a){if(!F)throw new i.FormatError("GState must be referred to by name.")
const o=r.get("ExtGState")
if(!(o instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.")
const c=o.get(M)
if(!(c instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.")
l.setGState({resources:r,gState:c,operatorList:n,cacheKey:M,task:t,stateManager:x,localGStateCache:p,localColorSpaceCache:h}).then(e,a)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!l.options.ignoreErrors)throw e;(0,i.warn)(`getOperatorList - ignoring ExtGState: "${e}".`)}})))
case i.OPS.moveTo:case i.OPS.lineTo:case i.OPS.curveTo:case i.OPS.curveTo2:case i.OPS.curveTo3:case i.OPS.closePath:case i.OPS.rectangle:l.buildPath(n,a,e,u)
continue
case i.OPS.markPoint:case i.OPS.markPointProps:case i.OPS.beginCompat:case i.OPS.endCompat:continue
case i.OPS.beginMarkedContentProps:if(!(e[0]instanceof s.Name)){(0,i.warn)(`Expected name for beginMarkedContentProps arg0=${e[0]}`)
continue}if("OC"===e[0].name)return void A(l.parseMarkedContentProps(e[1],r).then((e=>{n.addOp(i.OPS.beginMarkedContentProps,["OC",e])})).catch((e=>{if(!(e instanceof i.AbortException)){if(!l.options.ignoreErrors)throw e;(0,i.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`)}})))
e=[e[0].name,e[1]instanceof s.Dict?e[1].get("MCID"):null]
break
case i.OPS.beginMarkedContent:case i.OPS.endMarkedContent:default:if(null!==e){for(O=0,E=e.length;O<E&&!(e[O]instanceof s.Dict);O++);if(O<E){(0,i.warn)("getOperatorList - ignoring operator: "+a)
continue}}}n.addOp(a,e)}P?A(I):(k(),a())})).catch((e=>{if(!(e instanceof i.AbortException)){if(this.options.ignoreErrors)return(0,i.warn)(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`),void k()
throw e}}))}getTextContent({stream:e,task:t,resources:r,stateManager:n=null,includeMarkedContent:a=!1,sink:o,seenStyles:l=new Set,viewBox:c,markedContentData:u=null,disableNormalization:d=!1}){r||=s.Dict.empty,n||=new L(new B),a&&(u||={level:0})
const h={items:[],styles:Object.create(null)},p={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},m=[" "," "]
let y=0
function v(e){const t=(y+1)%2,r=" "!==m[y]&&" "===m[t]
return m[y]=e,y=t,r}function w(){return" "!==m[y]&&" "===m[(y+1)%2]}function x(){m[0]=m[1]=" ",y=0}const _=this,S=this.xref,k=[]
let A=null
const C=new f.LocalImageCache,P=new f.LocalGStateCache,O=new z(e,S,n)
let E
function T({width:e=0,height:t=0,transform:r=p.prevTransform,fontName:i=p.fontName}){h.items.push({str:" ",dir:"ltr",width:e,height:t,transform:r,fontName:i,hasEOL:!1})}function M(){const e=E.font,t=[E.fontSize*E.textHScale,0,0,E.fontSize,0,E.textRise]
if(e.isType3Font&&(E.fontSize<=1||e.isCharBBox)&&!(0,i.isArrayEqual)(E.fontMatrix,i.FONT_IDENTITY_MATRIX)){const r=e.bbox[3]-e.bbox[1]
r>0&&(t[3]*=r*E.fontMatrix[3])}return i.Util.transform(E.ctm,i.Util.transform(E.textMatrix,t))}function F(){if(p.initialized)return p
const{font:e,loadedName:t}=E
l.has(t)||(l.add(t),h.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),p.fontName=t
const r=p.transform=M()
e.vertical?(p.width=p.totalWidth=Math.hypot(r[0],r[1]),p.height=p.totalHeight=0,p.vertical=!0):(p.width=p.totalWidth=0,p.height=p.totalHeight=Math.hypot(r[2],r[3]),p.vertical=!1)
const i=Math.hypot(E.textLineMatrix[0],E.textLineMatrix[1]),n=Math.hypot(E.ctm[0],E.ctm[1])
p.textAdvanceScale=n*i
const{fontSize:s}=E
return p.trackingSpaceMin=.102*s,p.notASpace=.03*s,p.negativeSpaceMax=-.2*s,p.spaceInFlowMin=.102*s,p.spaceInFlowMax=.6*s,p.hasEOL=!1,p.initialized=!0,p}function N(){if(!p.initialized)return
const e=Math.hypot(E.textLineMatrix[0],E.textLineMatrix[1]),t=Math.hypot(E.ctm[0],E.ctm[1])*e
t!==p.textAdvanceScale&&(p.vertical?(p.totalHeight+=p.height*p.textAdvanceScale,p.height=0):(p.totalWidth+=p.width*p.textAdvanceScale,p.width=0),p.textAdvanceScale=t)}function D(e,n){return _.loadFont(e,n,r).then((function(e){return e.font.isType3Font?e.loadType3Data(_,r,t).catch((function(){})).then((function(){return e})):e})).then((function(e){E.loadedName=e.loadedName,E.font=e.font,E.fontMatrix=e.font.fontMatrix||i.FONT_IDENTITY_MATRIX}))}function j(e,t,r){const i=Math.hypot(r[0],r[1])
return[(r[0]*e+r[1]*t)/i,(r[2]*e+r[3]*t)/i]}function $(e){const t=M()
let r=t[4],i=t[5]
if(E.font?.vertical){if(r<c[0]||r>c[2]||i+e<c[1]||i>c[3])return!1}else if(r+e<c[0]||r>c[2]||i<c[1]||i>c[3])return!1
if(!E.font||!p.prevTransform)return!0
let n=p.prevTransform[4],s=p.prevTransform[5]
if(n===r&&s===i)return!0
let a=-1
switch(t[0]&&0===t[1]&&0===t[2]?a=t[0]>0?0:180:t[1]&&0===t[0]&&0===t[3]&&(a=t[1]>0?90:270),a){case 0:break
case 90:[r,i]=[i,r],[n,s]=[s,n]
break
case 180:[r,i,n,s]=[-r,-i,-n,-s]
break
case 270:[r,i]=[-i,-r],[n,s]=[-s,-n]
break
default:[r,i]=j(r,i,t),[n,s]=j(n,s,p.prevTransform)}if(E.font.vertical){const e=(s-i)/p.textAdvanceScale,t=r-n,a=Math.sign(p.height)
return e<a*p.negativeSpaceMax?Math.abs(t)>.5*p.width?(q(),!0):(x(),V(),!0):Math.abs(t)>p.width?(q(),!0):(e<=a*p.notASpace&&x(),e<=a*p.trackingSpaceMin?w()?(x(),V(),T({height:Math.abs(e)})):p.height+=e:H(e,p.prevTransform,a)||(0===p.str.length?(x(),T({height:Math.abs(e)})):p.height+=e),Math.abs(t)>.25*p.width&&V(),!0)}const o=(r-n)/p.textAdvanceScale,l=i-s,u=Math.sign(p.width)
return o<u*p.negativeSpaceMax?Math.abs(l)>.5*p.height?(q(),!0):(x(),V(),!0):Math.abs(l)>p.height?(q(),!0):(o<=u*p.notASpace&&x(),o<=u*p.trackingSpaceMin?w()?(x(),V(),T({width:Math.abs(o)})):p.width+=o:H(o,p.prevTransform,u)||(0===p.str.length?(x(),T({width:Math.abs(o)})):p.width+=o),Math.abs(l)>.25*p.height&&V(),!0)}function U({chars:e,extraSpacing:t}){const r=E.font
if(!e){const e=E.charSpacing+t
return void(e&&(r.vertical?E.translateTextMatrix(0,-e):E.translateTextMatrix(e*E.textHScale,0)))}const i=r.charsToGlyphs(e),n=E.fontMatrix[0]*E.fontSize
for(let s=0,a=i.length;s<a;s++){const e=i[s],{category:o}=e
if(o.isInvisibleFormatMark)continue
let l=E.charSpacing+(s+1===a?t:0),c=e.width
r.vertical&&(c=e.vmetric?e.vmetric[0]:-c)
let u=c*n
if(o.isWhitespace){r.vertical?(l+=-u+E.wordSpacing,E.translateTextMatrix(0,-l)):(l+=u+E.wordSpacing,E.translateTextMatrix(l*E.textHScale,0)),v(" ")
continue}if(!o.isZeroWidthDiacritic&&!$(u)){r.vertical?E.translateTextMatrix(0,u):E.translateTextMatrix(u*E.textHScale,0)
continue}const d=F()
o.isZeroWidthDiacritic&&(u=0),r.vertical?(E.translateTextMatrix(0,u),u=Math.abs(u),d.height+=u):(u*=E.textHScale,E.translateTextMatrix(u,0),d.width+=u),u&&(d.prevTransform=M())
const h=e.unicode
v(h)&&d.str.push(" "),d.str.push(h),l&&(r.vertical?E.translateTextMatrix(0,-l):E.translateTextMatrix(l*E.textHScale,0))}}function q(){x(),p.initialized?(p.hasEOL=!0,V()):h.items.push({str:"",dir:"ltr",width:0,height:0,transform:M(),fontName:E.loadedName,hasEOL:!0})}function H(e,t,r){if(r*p.spaceInFlowMin<=e&&e<=r*p.spaceInFlowMax)return p.initialized&&(x(),p.str.push(" ")),!1
const i=p.fontName
let n=0
return p.vertical&&(n=e,e=0),V(),x(),T({width:Math.abs(e),height:Math.abs(n),transform:t||M(),fontName:i}),!0}function V(){p.initialized&&p.str&&(p.vertical?p.totalHeight+=p.height*p.textAdvanceScale:p.totalWidth+=p.width*p.textAdvanceScale,h.items.push(function(e){let t=e.str.join("")
d||(t=(0,i.normalizeUnicode)(t))
const r=(0,b.bidi)(t,-1,e.vertical)
return{str:r.str,dir:r.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}(p)),p.initialized=!1,p.str.length=0)}function G(e=!1){const t=h.items.length
0!==t&&(e&&t<10||(o.enqueue(h,t),h.items=[],h.styles=Object.create(null)))}const W=new R
return new Promise((function e(p,f){const m=function(t){G(!0),Promise.all([t,o.ready]).then((function(){try{e(p,f)}catch(t){f(t)}}),f)}
t.ensureNotTerminated(),W.reset()
const b={}
let y,v=[]
for(;!(y=W.check())&&(v.length=0,b.args=v,O.read(b));){const e=E
E=n.state
const p=b.fn
switch(v=b.args,0|p){case i.OPS.setFont:var w=v[0].name,x=v[1]
if(E.font&&w===E.fontName&&x===E.fontSize)break
return V(),E.fontName=w,E.fontSize=x,void m(D(w,null))
case i.OPS.setTextRise:E.textRise=v[0]
break
case i.OPS.setHScale:E.textHScale=v[0]/100
break
case i.OPS.setLeading:E.leading=v[0]
break
case i.OPS.moveText:E.translateTextLineMatrix(v[0],v[1]),E.textMatrix=E.textLineMatrix.slice()
break
case i.OPS.setLeadingMoveText:E.leading=-v[1],E.translateTextLineMatrix(v[0],v[1]),E.textMatrix=E.textLineMatrix.slice()
break
case i.OPS.nextLine:E.carriageReturn()
break
case i.OPS.setTextMatrix:E.setTextMatrix(v[0],v[1],v[2],v[3],v[4],v[5]),E.setTextLineMatrix(v[0],v[1],v[2],v[3],v[4],v[5]),N()
break
case i.OPS.setCharSpacing:E.charSpacing=v[0]
break
case i.OPS.setWordSpacing:E.wordSpacing=v[0]
break
case i.OPS.beginText:E.textMatrix=i.IDENTITY_MATRIX.slice(),E.textLineMatrix=i.IDENTITY_MATRIX.slice()
break
case i.OPS.showSpacedText:if(!n.state.font){_.ensureStateFont(n.state)
continue}const p=(E.font.vertical?1:-1)*E.fontSize/1e3,f=v[0]
for(let e=0,t=f.length;e<t;e++){const t=f[e]
if("string"==typeof t)k.push(t)
else if("number"==typeof t&&0!==t){const e=k.join("")
k.length=0,U({chars:e,extraSpacing:t*p})}}if(k.length>0){const e=k.join("")
k.length=0,U({chars:e,extraSpacing:0})}break
case i.OPS.showText:if(!n.state.font){_.ensureStateFont(n.state)
continue}U({chars:v[0],extraSpacing:0})
break
case i.OPS.nextLineShowText:if(!n.state.font){_.ensureStateFont(n.state)
continue}E.carriageReturn(),U({chars:v[0],extraSpacing:0})
break
case i.OPS.nextLineSetSpacingShowText:if(!n.state.font){_.ensureStateFont(n.state)
continue}E.wordSpacing=v[0],E.charSpacing=v[1],E.carriageReturn(),U({chars:v[2],extraSpacing:0})
break
case i.OPS.paintXObject:V(),A||(A=r.get("XObject")||s.Dict.empty)
var T=v[0]instanceof s.Name,M=v[0].name
if(T&&C.getByName(M))break
return void m(new Promise((function(e,h){if(!T)throw new i.FormatError("XObject must be referred to by name.")
let p=A.getRaw(M)
if(p instanceof s.Ref){if(C.getByRef(p))return void e()
if(_.globalImageCache.getData(p,_.pageIndex))return void e()
p=S.fetch(p)}if(!(p instanceof g.BaseStream))throw new i.FormatError("XObject should be a stream")
const f=p.dict.get("Subtype")
if(!(f instanceof s.Name))throw new i.FormatError("XObject should have a Name subtype")
if("Form"!==f.name)return C.set(M,p.dict.objId,!0),void e()
const m=n.state.clone(),b=new L(m),y=p.dict.getArray("Matrix")
Array.isArray(y)&&6===y.length&&b.transform(y),G()
const v={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,o.enqueue(e,t)},get desiredSize(){return o.desiredSize},get ready(){return o.ready}}
_.getTextContent({stream:p,task:t,resources:p.dict.get("Resources")||r,stateManager:b,includeMarkedContent:a,sink:v,seenStyles:l,viewBox:c,markedContentData:u,disableNormalization:d}).then((function(){v.enqueueInvoked||C.set(M,p.dict.objId,!0),e()}),h)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!_.options.ignoreErrors)throw e;(0,i.warn)(`getTextContent - ignoring XObject: "${e}".`)}})))
case i.OPS.setGState:if(T=v[0]instanceof s.Name,M=v[0].name,T&&P.getByName(M))break
return void m(new Promise((function(e,t){if(!T)throw new i.FormatError("GState must be referred to by name.")
const n=r.get("ExtGState")
if(!(n instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.")
const a=n.get(M)
if(!(a instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.")
const o=a.get("Font")
if(!o)return P.set(M,a.objId,!0),void e()
V(),E.fontName=null,E.fontSize=o[1],D(null,o[0]).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!_.options.ignoreErrors)throw e;(0,i.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}})))
case i.OPS.beginMarkedContent:V(),a&&(u.level++,h.items.push({type:"beginMarkedContent",tag:v[0]instanceof s.Name?v[0].name:null}))
break
case i.OPS.beginMarkedContentProps:if(V(),a){u.level++
let e=null
v[1]instanceof s.Dict&&(e=v[1].get("MCID")),h.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?`${_.idFactory.getPageObjId()}_mc${e}`:null,tag:v[0]instanceof s.Name?v[0].name:null})}break
case i.OPS.endMarkedContent:if(V(),a){if(0===u.level)break
u.level--,h.items.push({type:"endMarkedContent"})}break
case i.OPS.restore:!e||e.font===E.font&&e.fontSize===E.fontSize&&e.fontName===E.fontName||V()}if(h.items.length>=o.desiredSize){y=!0
break}}y?m(I):(V(),G(),p())})).catch((e=>{if(!(e instanceof i.AbortException)){if(this.options.ignoreErrors)return(0,i.warn)(`getTextContent - ignoring errors during "${t.name}" task: "${e}".`),V(),void G()
throw e}}))}extractDataStructures(e,t,r){const n=this.xref
let a
const c=this.readToUnicode(r.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"))
if(r.composite){const t=e.get("CIDSystemInfo")
t instanceof s.Dict&&(r.cidSystemInfo={registry:(0,i.stringToPDFString)(t.get("Registry")),ordering:(0,i.stringToPDFString)(t.get("Ordering")),supplement:t.get("Supplement")})
try{const t=e.get("CIDToGIDMap")
t instanceof g.BaseStream&&(a=t.getBytes())}catch(m){if(!this.options.ignoreErrors)throw m;(0,i.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${m}".`)}}const u=[]
let d,h=null
if(e.has("Encoding")){if(d=e.get("Encoding"),d instanceof s.Dict){if(h=d.get("BaseEncoding"),h=h instanceof s.Name?h.name:null,d.has("Differences")){const e=d.get("Differences")
let t=0
for(const r of e){const e=n.fetchIfRef(r)
if("number"==typeof e)t=e
else{if(!(e instanceof s.Name))throw new i.FormatError(`Invalid entry in 'Differences' array: ${e}`)
u[t++]=e.name}}}}else if(d instanceof s.Name)h=d.name
else{const e="Encoding is not a Name nor a Dict"
if(!this.options.ignoreErrors)throw new i.FormatError(e);(0,i.warn)(e)}"MacRomanEncoding"!==h&&"MacExpertEncoding"!==h&&"WinAnsiEncoding"!==h&&(h=null)}const p=!r.file||r.isInternalFont,f=(0,l.getSymbolsFonts)()[r.name]
if(h&&p&&f&&(h=null),h)r.defaultEncoding=(0,o.getEncoding)(h)
else{const e=!!(r.flags&w.FontFlags.Symbolic),t=!!(r.flags&w.FontFlags.Nonsymbolic)
d=o.StandardEncoding,"TrueType"!==r.type||t||(d=o.WinAnsiEncoding),(e||f)&&(d=o.MacRomanEncoding,p&&(/Symbol/i.test(r.name)?d=o.SymbolSetEncoding:/Dingbats/i.test(r.name)?d=o.ZapfDingbatsEncoding:/Wingdings/i.test(r.name)&&(d=o.WinAnsiEncoding))),r.defaultEncoding=d}return r.differences=u,r.baseEncodingName=h,r.hasEncoding=!!h||u.length>0,r.dict=e,c.then((e=>(r.toUnicode=e,this.buildToUnicode(r)))).then((e=>(r.toUnicode=e,a&&(r.cidToGidMap=this.readCidToGidMap(a,e)),r)))}_simpleFontToUnicode(e,t=!1){(0,i.assert)(!e.composite,"Must be a simple font.")
const r=[],n=e.defaultEncoding.slice(),s=e.baseEncodingName,a=e.differences
for(const i in a){const e=a[i]
".notdef"!==e&&(n[i]=e)}const l=(0,_.getGlyphsUnicode)()
for(const i in n){let a=n[i]
if(""===a)continue
let c=l[a]
if(void 0!==c){r[i]=String.fromCharCode(c)
continue}let u=0
switch(a[0]){case"G":3===a.length&&(u=parseInt(a.substring(1),16))
break
case"g":5===a.length&&(u=parseInt(a.substring(1),16))
break
case"C":case"c":if(a.length>=3&&a.length<=4){const r=a.substring(1)
if(t){u=parseInt(r,16)
break}if(u=+r,Number.isNaN(u)&&Number.isInteger(parseInt(r,16)))return this._simpleFontToUnicode(e,!0)}break
case"u":c=(0,k.getUnicodeForGlyph)(a,l),-1!==c&&(u=c)
break
default:switch(a){case"f_h":case"f_t":case"T_h":r[i]=a.replaceAll("_","")
continue}}if(u>0&&u<=1114111&&Number.isInteger(u)){if(s&&u===+i){const e=(0,o.getEncoding)(s)
if(e&&(a=e[i])){r[i]=String.fromCharCode(l[a])
continue}}r[i]=String.fromCodePoint(u)}}return r}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=e.toUnicode?.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode
if(!e.composite)return new d.ToUnicodeMap(this._simpleFontToUnicode(e))
if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof n.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:r}=e.cidSystemInfo,a=s.Name.get(`${t}-${r}-UCS2`),o=await n.CMapFactory.create({encoding:a,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),l=[],c=[]
return e.cMap.forEach((function(e,t){if(t>65535)throw new i.FormatError("Max size of CID is 65,535")
const r=o.lookup(t)
if(r){c.length=0
for(let e=0,t=r.length;e<t;e+=2)c.push((r.charCodeAt(e)<<8)+r.charCodeAt(e+1))
l[e]=String.fromCharCode(...c)}})),new d.ToUnicodeMap(l)}return new d.IdentityToUnicodeMap(e.firstChar,e.lastChar)}readToUnicode(e){return e?e instanceof s.Name?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof n.IdentityCMap?new d.IdentityToUnicodeMap(0,65535):new d.ToUnicodeMap(e.getMap())})):e instanceof g.BaseStream?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof n.IdentityCMap)return new d.IdentityToUnicodeMap(0,65535)
const t=new Array(e.length)
return e.forEach((function(e,r){if("number"==typeof r)return void(t[e]=String.fromCodePoint(r))
const i=[]
for(let t=0;t<r.length;t+=2){const e=r.charCodeAt(t)<<8|r.charCodeAt(t+1)
if(55296!=(63488&e)){i.push(e)
continue}t+=2
const n=r.charCodeAt(t)<<8|r.charCodeAt(t+1)
i.push(((1023&e)<<10)+(1023&n)+65536)}t[e]=String.fromCodePoint(...i)})),new d.ToUnicodeMap(t)}),(e=>{if(e instanceof i.AbortException)return null
if(this.options.ignoreErrors)return(0,i.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`),null
throw e})):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(e,t){const r=[]
for(let i=0,n=e.length;i<n;i++){const n=e[i++]<<8|e[i],s=i>>1;(0!==n||t.has(s))&&(r[s]=n)}return r}extractWidths(e,t,r){const i=this.xref
let n=[],a=0
const o=[]
let l,c,u,d,h,p,f,m
if(r.composite){if(a=e.has("DW")?e.get("DW"):1e3,m=e.get("W"),m)for(c=0,u=m.length;c<u;c++)if(p=i.fetchIfRef(m[c++]),f=i.fetchIfRef(m[c]),Array.isArray(f))for(d=0,h=f.length;d<h;d++)n[p++]=i.fetchIfRef(f[d])
else{const e=i.fetchIfRef(m[++c])
for(d=p;d<=f;d++)n[d]=e}if(r.vertical){let t=e.getArray("DW2")||[880,-1e3]
if(l=[t[1],.5*a,t[0]],t=e.get("W2"),t)for(c=0,u=t.length;c<u;c++)if(p=i.fetchIfRef(t[c++]),f=i.fetchIfRef(t[c]),Array.isArray(f))for(d=0,h=f.length;d<h;d++)o[p++]=[i.fetchIfRef(f[d++]),i.fetchIfRef(f[d++]),i.fetchIfRef(f[d])]
else{const e=[i.fetchIfRef(t[++c]),i.fetchIfRef(t[++c]),i.fetchIfRef(t[++c])]
for(d=p;d<=f;d++)o[d]=e}}}else{const o=r.firstChar
if(m=e.get("Widths"),m){for(d=o,c=0,u=m.length;c<u;c++)n[d++]=i.fetchIfRef(m[c])
a=parseFloat(t.get("MissingWidth"))||0}else{const t=e.get("BaseFont")
if(t instanceof s.Name){const e=this.getBaseFontMetrics(t.name)
n=this.buildCharCodeToWidth(e.widths,r),a=e.defaultWidth}}}let g=!0,b=a
for(const s in n){const e=n[s]
if(e)if(b){if(b!==e){g=!1
break}}else b=e}g?r.flags|=w.FontFlags.FixedPitch:r.flags&=~w.FontFlags.FixedPitch,r.defaultWidth=a,r.widths=n,r.defaultVMetrics=l,r.vmetrics=o}isSerifFont(e){const t=e.split("-")[0]
return t in(0,l.getSerifFonts)()||/serif/gi.test(t)}getBaseFontMetrics(e){let t=0,r=Object.create(null),i=!1
let n=(0,l.getStdFontMap)()[e]||e
const s=(0,S.getMetrics)()
n in s||(n=this.isSerifFont(e)?"Times-Roman":"Helvetica")
const a=s[n]
return"number"==typeof a?(t=a,i=!0):r=a(),{defaultWidth:t,monospace:i,widths:r}}buildCharCodeToWidth(e,t){const r=Object.create(null),i=t.differences,n=t.defaultEncoding
for(let s=0;s<256;s++)s in i&&e[i[s]]?r[s]=e[i[s]]:s in n&&e[n[s]]&&(r[s]=e[n[s]])
return r}preEvaluateFont(e){const t=e
let r=e.get("Subtype")
if(!(r instanceof s.Name))throw new i.FormatError("invalid font Subtype")
let n,a,o=!1
if("Type0"===r.name){const t=e.get("DescendantFonts")
if(!t)throw new i.FormatError("Descendant fonts are not specified")
if(!((e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t)instanceof s.Dict))throw new i.FormatError("Descendant font is not a dictionary.")
if(r=e.get("Subtype"),!(r instanceof s.Name))throw new i.FormatError("invalid font Subtype")
o=!0}const l=e.get("FirstChar")||0,c=e.get("LastChar")||(o?65535:255),u=e.get("FontDescriptor")
if(u){n=new C.MurmurHash3_64
const r=t.getRaw("Encoding")
if(r instanceof s.Name)n.update(r.name)
else if(r instanceof s.Ref)n.update(r.toString())
else if(r instanceof s.Dict)for(const e of r.getRawValues())if(e instanceof s.Name)n.update(e.name)
else if(e instanceof s.Ref)n.update(e.toString())
else if(Array.isArray(e)){const t=e.length,r=new Array(t)
for(let i=0;i<t;i++){const t=e[i]
t instanceof s.Name?r[i]=t.name:("number"==typeof t||t instanceof s.Ref)&&(r[i]=t.toString())}n.update(r.join())}if(n.update(`${l}-${c}`),a=e.get("ToUnicode")||t.get("ToUnicode"),a instanceof g.BaseStream){const e=a.str||a,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start)
n.update(t)}else a instanceof s.Name&&n.update(a.name)
const i=e.get("Widths")||t.get("Widths")
if(Array.isArray(i)){const e=[]
for(const t of i)("number"==typeof t||t instanceof s.Ref)&&e.push(t.toString())
n.update(e.join())}if(o){n.update("compositeFont")
const r=e.get("W")||t.get("W")
if(Array.isArray(r)){const e=[]
for(const t of r)if("number"==typeof t||t instanceof s.Ref)e.push(t.toString())
else if(Array.isArray(t)){const r=[]
for(const e of t)("number"==typeof e||e instanceof s.Ref)&&r.push(e.toString())
e.push(`[${r.join()}]`)}n.update(e.join())}const i=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap")
i instanceof s.Name?n.update(i.name):i instanceof s.Ref?n.update(i.toString()):i instanceof g.BaseStream&&n.update(i.peekBytes())}}return{descriptor:u,dict:e,baseDict:t,composite:o,type:r.name,firstChar:l,lastChar:c,toUnicode:a,hash:n?n.hexdigest():""}}async translateFont({descriptor:e,dict:t,baseDict:r,composite:o,type:c,firstChar:d,lastChar:h,toUnicode:p,cssFontInfo:f}){const g="Type3"===c
let b
if(!e){if(!g){let e=t.get("BaseFont")
if(!(e instanceof s.Name))throw new i.FormatError("Base font is not specified")
e=e.name.replaceAll(/[,_]/g,"-")
const n=this.getBaseFontMetrics(e),o=e.split("-")[0],u=(this.isSerifFont(o)?w.FontFlags.Serif:0)|(n.monospace?w.FontFlags.FixedPitch:0)|((0,l.getSymbolsFonts)()[o]?w.FontFlags.Symbolic:w.FontFlags.Nonsymbolic)
b={type:c,name:e,loadedName:r.loadedName,systemFontInfo:null,widths:n.widths,defaultWidth:n.defaultWidth,isSimulatedFlags:!0,flags:u,firstChar:d,lastChar:h,toUnicode:p,xHeight:0,capHeight:0,italicAngle:0,isType3Font:g}
const f=t.get("Widths"),m=(0,l.getStandardFontName)(e)
let y=null
return m&&(y=await this.fetchStandardFontData(m),b.isInternalFont=!!y),!b.isInternalFont&&this.options.useSystemFonts&&(b.systemFontInfo=(0,x.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,e,m)),this.extractDataStructures(t,t,b).then((t=>{if(f){const e=[]
let r=d
for(const t of f)e[r++]=this.xref.fetchIfRef(t)
t.widths=e}else t.widths=this.buildCharCodeToWidth(n.widths,t)
return new a.Font(e,y,t)}))}(e=new s.Dict(null)).set("FontName",s.Name.get(c)),e.set("FontBBox",t.getArray("FontBBox")||[0,0,0,0])}let y=e.get("FontName"),v=t.get("BaseFont")
"string"==typeof y&&(y=s.Name.get(y)),"string"==typeof v&&(v=s.Name.get(v))
const _=y?.name,S=v?.name
if(g||_===S||((0,i.info)(`The FontDescriptor's FontName is "${_}" but should be the same as the Font's BaseFont "${S}".`),_&&S&&(S.startsWith(_)||!(0,l.isKnownFontName)(_)&&(0,l.isKnownFontName)(S))&&(y=null)),y||=v,!(y instanceof s.Name))throw new i.FormatError("invalid font name")
let k,A,C,P,O
try{k=e.get("FontFile","FontFile2","FontFile3")}catch(I){if(!this.options.ignoreErrors)throw I;(0,i.warn)(`translateFont - fetching "${y.name}" font file: "${I}".`),k=new m.NullStream}let E=!1,T=null,M=null
if(k){if(k.dict){const e=k.dict.get("Subtype")
e instanceof s.Name&&(A=e.name),C=k.dict.get("Length1"),P=k.dict.get("Length2"),O=k.dict.get("Length3")}}else if(f){const e=(0,u.getXfaFontName)(y.name)
e&&(f.fontFamily=`${f.fontFamily}-PdfJS-XFA`,f.metrics=e.metrics||null,T=e.factors||null,k=await this.fetchStandardFontData(e.name),E=!!k,r=t=(0,u.getXfaFontDict)(y.name),o=!0)}else if(!g){const e=(0,l.getStandardFontName)(y.name)
e&&(k=await this.fetchStandardFontData(e),E=!!k),!E&&this.options.useSystemFonts&&(M=(0,x.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,y.name,e))}if(b={type:c,name:y.name,subtype:A,file:k,length1:C,length2:P,length3:O,isInternalFont:E,loadedName:r.loadedName,composite:o,fixedPitch:!1,fontMatrix:t.getArray("FontMatrix")||i.FONT_IDENTITY_MATRIX,firstChar:d,lastChar:h,toUnicode:p,bbox:e.getArray("FontBBox")||t.getArray("FontBBox"),ascent:e.get("Ascent"),descent:e.get("Descent"),xHeight:e.get("XHeight")||0,capHeight:e.get("CapHeight")||0,flags:e.get("Flags"),italicAngle:e.get("ItalicAngle")||0,isType3Font:g,cssFontInfo:f,scaleFactors:T,systemFontInfo:M},o){const e=r.get("Encoding")
e instanceof s.Name&&(b.cidEncoding=e.name)
const t=await n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null})
b.cMap=t,b.vertical=b.cMap.vertical}return this.extractDataStructures(t,r,b).then((r=>(this.extractWidths(t,e,r),new a.Font(y.name,k,r))))}static buildFontPaths(e,t,r,n){function s(t){const s=`${e.loadedName}_path_${t}`
try{if(e.renderer.hasBuiltPath(t))return
r.send("commonobj",[s,"FontPath",e.renderer.getPathJs(t)])}catch(a){if(n.ignoreErrors)return void(0,i.warn)(`buildFontPaths - ignoring ${s} glyph: "${a}".`)
throw a}}for(const i of t){s(i.fontChar)
const e=i.accent
e?.fontChar&&s(e.fontChar)}}static get fallbackFontDict(){const e=new s.Dict
return e.set("BaseFont",s.Name.get("Helvetica")),e.set("Type",s.Name.get("FallbackType")),e.set("Subtype",s.Name.get("FallbackType")),e.set("Encoding",s.Name.get("WinAnsiEncoding")),(0,i.shadow)(this,"fallbackFontDict",e)}}t.PartialEvaluator=D
class j{constructor({loadedName:e,font:t,dict:r,evaluatorOptions:i}){this.loadedName=e,this.font=t,this.dict=r,this._evaluatorOptions=i||E,this.type3Loaded=null,this.type3Dependencies=t.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,D.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(e,t,r){if(this.type3Loaded)return this.type3Loaded
if(!this.font.isType3Font)throw new Error("Must be a Type3 font.")
const n=e.clone({ignoreErrors:!1})
n.parsingType3Font=!0
const a=new s.RefSet(e.type3FontRefs)
this.dict.objId&&!a.has(this.dict.objId)&&a.put(this.dict.objId),n.type3FontRefs=a
const o=this.font,l=this.type3Dependencies
let c=Promise.resolve()
const u=this.dict.get("CharProcs"),d=this.dict.get("Resources")||t,h=Object.create(null),p=i.Util.normalizeRect(o.bbox||[0,0,0,0]),f=p[2]-p[0],m=p[3]-p[1],g=Math.hypot(f,m)
for(const s of u.getKeys())c=c.then((()=>{const e=u.get(s),t=new P.OperatorList
return n.getOperatorList({stream:e,task:r,resources:d,operatorList:t}).then((()=>{t.fnArray[0]===i.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,g),h[s]=t.getIR()
for(const e of t.dependencies)l.add(e)})).catch((function(e){(0,i.warn)(`Type3 font resource "${s}" is not available.`)
const t=new P.OperatorList
h[s]=t.getIR()}))}))
return this.type3Loaded=c.then((()=>{o.charProcOperatorList=h,this._bbox&&(o.isCharBBox=!0,o.bbox=this._bbox)})),this.type3Loaded}_removeType3ColorOperators(e,t=NaN){const r=i.Util.normalizeRect(e.argsArray[0].slice(2)),n=r[2]-r[0],s=r[3]-r[1],a=Math.hypot(n,s)
0===n||0===s?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(a/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]))
let o=0,l=e.length
for(;o<l;){switch(e.fnArray[o]){case i.OPS.setCharWidthAndBounds:break
case i.OPS.setStrokeColorSpace:case i.OPS.setFillColorSpace:case i.OPS.setStrokeColor:case i.OPS.setStrokeColorN:case i.OPS.setFillColor:case i.OPS.setFillColorN:case i.OPS.setStrokeGray:case i.OPS.setFillGray:case i.OPS.setStrokeRGBColor:case i.OPS.setFillRGBColor:case i.OPS.setStrokeCMYKColor:case i.OPS.setFillCMYKColor:case i.OPS.shadingFill:case i.OPS.setRenderingIntent:e.fnArray.splice(o,1),e.argsArray.splice(o,1),l--
continue
case i.OPS.setGState:const[t]=e.argsArray[o]
let r=0,n=t.length
for(;r<n;){const[e]=t[r]
switch(e){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":t.splice(r,1),n--
continue}r++}}o++}}}class L{constructor(e=new $){this.state=e,this.stateStack=[]}save(){const e=this.state
this.stateStack.push(this.state),this.state=e.clone()}restore(){const e=this.stateStack.pop()
e&&(this.state=e)}transform(e){this.state.ctm=i.Util.transform(this.state.ctm,e)}}class B{constructor(){this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.textMatrix=i.IDENTITY_MATRIX.slice(),this.textLineMatrix=i.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,r,i,n,s){const a=this.textMatrix
a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s}setTextLineMatrix(e,t,r,i,n,s){const a=this.textLineMatrix
a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s}translateTextMatrix(e,t){const r=this.textMatrix
r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}translateTextLineMatrix(e,t){const r=this.textLineMatrix
r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const e=Object.create(this)
return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class ${constructor(){this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=i.TextRenderingMode.FILL,this.fillColorSpace=y.ColorSpace.singletons.gray,this.strokeColorSpace=y.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class z{static get opMap(){return(0,i.shadow)(this,"opMap",{w:{id:i.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:i.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:i.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:i.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:i.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:i.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:i.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:i.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:i.OPS.save,numArgs:0,variableArgs:!1},Q:{id:i.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:i.OPS.transform,numArgs:6,variableArgs:!1},m:{id:i.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:i.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:i.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:i.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:i.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:i.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:i.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:i.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:i.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:i.OPS.fill,numArgs:0,variableArgs:!1},F:{id:i.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:i.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:i.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:i.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:i.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:i.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:i.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:i.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:i.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:i.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:i.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:i.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:i.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:i.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:i.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:i.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:i.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:i.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:i.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:i.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:i.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:i.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:i.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:i.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:i.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:i.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:i.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:i.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:i.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:i.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:i.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:i.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:i.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:i.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:i.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:i.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:i.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:i.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:i.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:i.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:i.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:i.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:i.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:i.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:i.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:i.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:i.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:i.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:i.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:i.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:i.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:i.OPS.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null})}static MAX_INVALID_PATH_OPS=10
constructor(e,t,r=new L){this.parser=new p.Parser({lexer:new p.Lexer(e,z.opMap),xref:t}),this.stateManager=r,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args
for(;;){const r=this.parser.getObj()
if(r instanceof s.Cmd){const n=r.cmd,s=z.opMap[n]
if(!s){(0,i.warn)(`Unknown command "${n}".`)
continue}const a=s.id,o=s.numArgs
let l=null!==t?t.length:0
if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=a>=i.OPS.moveTo&&a<=i.OPS.endPath,s.variableArgs)l>o&&(0,i.info)(`Command ${n}: expected [0, ${o}] args, but received ${l} args.`)
else{if(l!==o){const e=this.nonProcessedArgs
for(;l>o;)e.push(t.shift()),l--
for(;l<o&&0!==e.length;)null===t&&(t=[]),t.unshift(e.pop()),l++}if(l<o){const e=`command ${n}: expected ${o} args, but received ${l} args.`
if(this._isPathOp&&++this._numInvalidPathOPS>z.MAX_INVALID_PATH_OPS)throw new i.FormatError(`Invalid ${e}`);(0,i.warn)(`Skipping ${e}`),null!==t&&(t.length=0)
continue}}return this.preprocessCommand(a,t),e.fn=a,e.args=t,!0}if(r===s.EOF)return!1
if(null!==r&&(null===t&&(t=[]),t.push(r),t.length>33))throw new i.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case i.OPS.save:this.stateManager.save()
break
case i.OPS.restore:this.stateManager.restore()
break
case i.OPS.transform:this.stateManager.transform(t)}}}t.EvaluatorPreprocessor=z},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0
var i=r(2),n=r(4),s=r(5),a=r(15),o=r(16),l=r(3),c=r(8)
const u=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],d=2**24-1
class h{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}mapCidRange(e,t,r){if(t-e>d)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.")
for(;e<=t;)this._map[e++]=r++}mapBfRange(e,t,r){if(t-e>d)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.")
const i=r.length-1
for(;e<=t;){this._map[e++]=r
const t=r.charCodeAt(i)+1
t>255?r=r.substring(0,i-1)+String.fromCharCode(r.charCodeAt(i-1)+1)+"\0":r=r.substring(0,i)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,r){if(t-e>d)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.")
const i=r.length
let n=0
for(;e<=t&&n<i;)this._map[e]=r[n++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(e){const t=this._map,r=t.length
if(r<=65536)for(let i=0;i<r;i++)void 0!==t[i]&&e(i,t[i])
else for(const i in t)e(i,t[i])}charCodeOf(e){const t=this._map
if(t.length<=65536)return t.indexOf(e)
for(const r in t)if(t[r]===e)return 0|r
return-1}getMap(){return this._map}readCharCode(e,t,r){let i=0
const n=this.codespaceRanges
for(let s=0,a=n.length;s<a;s++){i=(i<<8|e.charCodeAt(t+s))>>>0
const a=n[s]
for(let e=0,t=a.length;e<t;){const t=a[e++],n=a[e++]
if(i>=t&&i<=n)return r.charcode=i,void(r.length=s+1)}}r.charcode=0,r.length=1}getCharCodeLength(e){const t=this.codespaceRanges
for(let r=0,i=t.length;r<i;r++){const i=t[r]
for(let t=0,n=i.length;t<n;){const n=i[t++],s=i[t++]
if(e>=n&&e<=s)return r+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1
if(65536!==this._map.length)return!1
for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1
return!0}}t.CMap=h
class p extends h{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,r){(0,i.unreachable)("should not call mapCidRange")}mapBfRange(e,t,r){(0,i.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,r){(0,i.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,i.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536)
for(let t=0;t<=65535;t++)e[t]=t
return e}get length(){return 65536}get isIdentityCMap(){(0,i.unreachable)("should not access .isIdentityCMap")}}function f(e){let t=0
for(let r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r)
return t>>>0}function m(e){if("string"!=typeof e)throw new i.FormatError("Malformed CMap: expected string.")}function g(e){if(!Number.isInteger(e))throw new i.FormatError("Malformed CMap: expected int.")}function b(e,t){for(;;){let r=t.getObj()
if(r===n.EOF)break
if((0,n.isCmd)(r,"endbfchar"))return
m(r)
const i=f(r)
r=t.getObj(),m(r)
const s=r
e.mapOne(i,s)}}function y(e,t){for(;;){let r=t.getObj()
if(r===n.EOF)break
if((0,n.isCmd)(r,"endbfrange"))return
m(r)
const i=f(r)
r=t.getObj(),m(r)
const s=f(r)
if(r=t.getObj(),Number.isInteger(r)||"string"==typeof r){const t=Number.isInteger(r)?String.fromCharCode(r):r
e.mapBfRange(i,s,t)}else{if(!(0,n.isCmd)(r,"["))break
{r=t.getObj()
const a=[]
for(;!(0,n.isCmd)(r,"]")&&r!==n.EOF;)a.push(r),r=t.getObj()
e.mapBfRangeToArray(i,s,a)}}}throw new i.FormatError("Invalid bf range.")}function v(e,t){for(;;){let r=t.getObj()
if(r===n.EOF)break
if((0,n.isCmd)(r,"endcidchar"))return
m(r)
const i=f(r)
r=t.getObj(),g(r)
const s=r
e.mapOne(i,s)}}function w(e,t){for(;;){let r=t.getObj()
if(r===n.EOF)break
if((0,n.isCmd)(r,"endcidrange"))return
m(r)
const i=f(r)
r=t.getObj(),m(r)
const s=f(r)
r=t.getObj(),g(r)
const a=r
e.mapCidRange(i,s,a)}}function x(e,t){for(;;){let r=t.getObj()
if(r===n.EOF)break
if((0,n.isCmd)(r,"endcodespacerange"))return
if("string"!=typeof r)break
const i=f(r)
if(r=t.getObj(),"string"!=typeof r)break
const s=f(r)
e.addCodespaceRange(r.length,i,s)}throw new i.FormatError("Invalid codespace range.")}function _(e,t){const r=t.getObj()
Number.isInteger(r)&&(e.vertical=!!r)}function S(e,t){const r=t.getObj()
r instanceof n.Name&&(e.name=r.name)}async function k(e,t,r,s){let a,o
e:for(;;)try{const r=t.getObj()
if(r===n.EOF)break
if(r instanceof n.Name)"WMode"===r.name?_(e,t):"CMapName"===r.name&&S(e,t),a=r
else if(r instanceof n.Cmd)switch(r.cmd){case"endcmap":break e
case"usecmap":a instanceof n.Name&&(o=a.name)
break
case"begincodespacerange":x(e,t)
break
case"beginbfchar":b(e,t)
break
case"begincidchar":v(e,t)
break
case"beginbfrange":y(e,t)
break
case"begincidrange":w(e,t)}}catch(c){if(c instanceof l.MissingDataException)throw c;(0,i.warn)("Invalid cMap data: "+c)
continue}return!s&&o&&(s=o),s?A(e,r,s):e}async function A(e,t,r){if(e.useCMap=await C(r,t),0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges
for(let r=0;r<t.length;r++)e.codespaceRanges[r]=t[r].slice()
e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach((function(t,r){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))})),e}async function C(e,t){if("Identity-H"===e)return new p(!1,2)
if("Identity-V"===e)return new p(!0,2)
if(!u.includes(e))throw new Error("Unknown CMap name: "+e)
if(!t)throw new Error("Built-in CMap parameters are not provided.")
const{cMapData:r,compressionType:n}=await t(e),s=new h(!0)
if(n===i.CMapCompressionType.BINARY)return(new a.BinaryCMapReader).process(r,s,(e=>A(s,t,e)))
if(n===i.CMapCompressionType.NONE){const e=new o.Lexer(new c.Stream(r))
return k(s,e,t,null)}throw new Error(`Invalid CMap "compressionType" value: ${n}`)}t.IdentityCMap=p
t.CMapFactory=class{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:r}){if(e instanceof n.Name)return C(e.name,t)
if(e instanceof s.BaseStream){const i=await k(new h,new o.Lexer(e),t,r)
return i.isIdentityCMap?C(i.name,t):i}throw new Error("Encoding required.")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryCMapReader=void 0
var i=r(2)
function n(e,t){let r=0
for(let i=0;i<=t;i++)r=r<<8|e[i]
return r>>>0}function s(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function a(e,t,r){let i=0
for(let n=r;n>=0;n--)i+=e[n]+t[n],e[n]=255&i,i>>=8}function o(e,t){let r=1
for(let i=t;i>=0&&r>0;i--)r+=e[i],e[i]=255&r,r>>=8}const l=16
class c{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0
do{const r=this.readByte()
if(r<0)throw new i.FormatError("unexpected EOF in bcmap")
e=!(128&r),t=t<<7|127&r}while(!e)
return t}readSigned(){const e=this.readNumber()
return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let r
const n=this.tmpBuf
let s=0
do{const e=this.readByte()
if(e<0)throw new i.FormatError("unexpected EOF in bcmap")
r=!(128&e),n[s++]=127&e}while(!r)
let a=t,o=0,l=0
for(;a>=0;){for(;l<8&&n.length>0;)o|=n[--s]<<l,l+=7
e[a]=255&o,a--,o>>=8,l-=8}}readHexSigned(e,t){this.readHexNumber(e,t)
const r=1&e[t]?255:0
let i=0
for(let n=0;n<=t;n++)i=(1&i)<<8|e[n],e[n]=i>>1^r}readString(){const e=this.readNumber(),t=new Array(e)
for(let r=0;r<e;r++)t[r]=this.readNumber()
return String.fromCharCode(...t)}}t.BinaryCMapReader=class{async process(e,t,r){const i=new c(e),u=i.readByte()
t.vertical=!!(1&u)
let d=null
const h=new Uint8Array(l),p=new Uint8Array(l),f=new Uint8Array(l),m=new Uint8Array(l),g=new Uint8Array(l)
let b,y
for(;(y=i.readByte())>=0;){const e=y>>5
if(7===e){switch(31&y){case 0:i.readString()
break
case 1:d=i.readString()}continue}const r=!!(16&y),c=15&y
if(c+1>l)throw new Error("BinaryCMapReader.process: Invalid dataSize.")
const u=1,v=i.readNumber()
switch(e){case 0:i.readHex(h,c),i.readHexNumber(p,c),a(p,h,c),t.addCodespaceRange(c+1,n(h,c),n(p,c))
for(let e=1;e<v;e++)o(p,c),i.readHexNumber(h,c),a(h,p,c),i.readHexNumber(p,c),a(p,h,c),t.addCodespaceRange(c+1,n(h,c),n(p,c))
break
case 1:i.readHex(h,c),i.readHexNumber(p,c),a(p,h,c),i.readNumber()
for(let e=1;e<v;e++)o(p,c),i.readHexNumber(h,c),a(h,p,c),i.readHexNumber(p,c),a(p,h,c),i.readNumber()
break
case 2:i.readHex(f,c),b=i.readNumber(),t.mapOne(n(f,c),b)
for(let e=1;e<v;e++)o(f,c),r||(i.readHexNumber(g,c),a(f,g,c)),b=i.readSigned()+(b+1),t.mapOne(n(f,c),b)
break
case 3:i.readHex(h,c),i.readHexNumber(p,c),a(p,h,c),b=i.readNumber(),t.mapCidRange(n(h,c),n(p,c),b)
for(let e=1;e<v;e++)o(p,c),r?h.set(p):(i.readHexNumber(h,c),a(h,p,c)),i.readHexNumber(p,c),a(p,h,c),b=i.readNumber(),t.mapCidRange(n(h,c),n(p,c),b)
break
case 4:i.readHex(f,u),i.readHex(m,c),t.mapOne(n(f,u),s(m,c))
for(let e=1;e<v;e++)o(f,u),r||(i.readHexNumber(g,u),a(f,g,u)),o(m,c),i.readHexSigned(g,c),a(m,g,c),t.mapOne(n(f,u),s(m,c))
break
case 5:i.readHex(h,u),i.readHexNumber(p,u),a(p,h,u),i.readHex(m,c),t.mapBfRange(n(h,u),n(p,u),s(m,c))
for(let e=1;e<v;e++)o(p,u),r?h.set(p):(i.readHexNumber(h,u),a(h,p,u)),i.readHexNumber(p,u),a(p,h,u),i.readHex(m,c),t.mapBfRange(n(h,u),n(p,u),s(m,c))
break
default:throw new Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return d?r(d):t}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0
var i=r(2),n=r(4),s=r(3),a=r(8),o=r(17),l=r(19),c=r(20),u=r(22),d=r(23),h=r(26),p=r(29),f=r(31),m=r(32),g=r(33)
class b{constructor({lexer:e,xref:t,allowStreams:r=!1,recoveryMode:i=!1}){this.lexer=e,this.xref=t,this.allowStreams=r,this.recoveryMode=i,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof n.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof s.MissingDataException)throw e
return!1}}getObj(e=null){const t=this.buf1
if(this.shift(),t instanceof n.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e)
case"[":const r=[]
for(;!(0,n.isCmd)(this.buf1,"]")&&this.buf1!==n.EOF;)r.push(this.getObj(e))
if(this.buf1===n.EOF){if(this.recoveryMode)return r
throw new s.ParserEOFException("End of file inside array.")}return this.shift(),r
case"<<":const a=new n.Dict(this.xref)
for(;!(0,n.isCmd)(this.buf1,">>")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name)){(0,i.info)("Malformed dictionary: key must be a name object"),this.shift()
continue}const t=this.buf1.name
if(this.shift(),this.buf1===n.EOF)break
a.set(t,this.getObj(e))}if(this.buf1===n.EOF){if(this.recoveryMode)return a
throw new s.ParserEOFException("End of file inside dictionary.")}return(0,n.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(a,e):a:(this.shift(),a)
default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){const e=n.Ref.get(t,this.buf1)
return this.shift(),this.shift(),e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const{knownCommands:t}=this.lexer,r=e.pos
let o,l,c=0
for(;-1!==(o=e.getByte());)if(0===c)c=69===o?1:0
else if(1===c)c=73===o?2:0
else if(32===o||10===o||13===o){l=e.pos
const r=e.peekBytes(15),s=r.length
if(0===s)break
for(let e=0;e<s;e++)if(o=r[e],(0!==o||0===r[e+1])&&10!==o&&13!==o&&(o<32||o>127)){c=0
break}if(2!==c)continue
if(!t){(0,i.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.")
continue}const u=new w(new a.Stream(r.slice()),t)
u._hexStringWarn=()=>{}
let d=0
for(;;){const e=u.getObj()
if(e===n.EOF){c=0
break}if(e instanceof n.Cmd){const r=t[e.cmd]
if(!r){c=0
break}if(r.variableArgs?d<=r.numArgs:d===r.numArgs)break
d=0}else d++}if(2===c)break}else c=0;-1===o&&((0,i.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),l&&((0,i.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-l))))
let u=4
return e.skip(-u),o=e.peekByte(),e.skip(u),(0,s.isWhiteSpace)(o)||u--,e.pos-u-r}findDCTDecodeInlineStreamEnd(e){const t=e.pos
let r,n,s=!1
for(;-1!==(r=e.getByte());)if(255===r){switch(e.getByte()){case 0:break
case 255:e.skip(-1)
break
case 217:s=!0
break
case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:n=e.getUint16(),n>2?e.skip(n-2):e.skip(-2)}if(s)break}const a=e.pos-t
return-1===r?((0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos
let r
for(;-1!==(r=e.getByte());)if(126===r){const t=e.pos
for(r=e.peekByte();(0,s.isWhiteSpace)(r);)e.skip(),r=e.peekByte()
if(62===r){e.skip()
break}if(e.pos>t){const t=e.peekBytes(2)
if(69===t[0]&&73===t[1])break}}const n=e.pos-t
return-1===r?((0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-n),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),n)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos
let r
for(;-1!==(r=e.getByte())&&62!==r;);const n=e.pos-t
return-1===r?((0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-n),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),n)}inlineStreamSkipEI(e){let t,r=0
for(;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0
else if(1===r)r=73===t?2:0
else if(2===r)break}makeInlineImage(e){const t=this.lexer,r=t.stream,s=Object.create(null)
let a
for(;!(0,n.isCmd)(this.buf1,"ID")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name))throw new i.FormatError("Dictionary key must be a name object")
const t=this.buf1.name
if(this.shift(),this.buf1===n.EOF)break
s[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(a=r.pos-t.beginInlineImagePos)
const o=this.xref.fetchIfRef(s.F||s.Filter)
let l
if(o instanceof n.Name)l=o.name
else if(Array.isArray(o)){const e=this.xref.fetchIfRef(o[0])
e instanceof n.Name&&(l=e.name)}const c=r.pos
let u,d
switch(l){case"DCT":case"DCTDecode":u=this.findDCTDecodeInlineStreamEnd(r)
break
case"A85":case"ASCII85Decode":u=this.findASCII85DecodeInlineStreamEnd(r)
break
case"AHx":case"ASCIIHexDecode":u=this.findASCIIHexDecodeInlineStreamEnd(r)
break
default:u=this.findDefaultInlineStreamEnd(r)}if(u<1e3&&a>0){const e=r.pos
r.pos=t.beginInlineImagePos,d=function(e){const t=[],r=e.length
let i=0
for(;i<r-1;)t.push(e[i++]<<8|e[i++])
return i<r&&t.push(e[i]),r+"_"+String.fromCharCode.apply(null,t)}(r.getBytes(a+u)),r.pos=e
const i=this.imageCache[d]
if(void 0!==i)return this.buf2=n.Cmd.get("EI"),this.shift(),i.reset(),i}const h=new n.Dict(this.xref)
for(const i in s)h.set(i,s[i])
let p=r.makeSubStream(c,u,h)
return e&&(p=e.createStream(p,u)),p=this.filter(p,h,u),p.dict=h,void 0!==d&&(p.cacheKey="inline_img_"+ ++this._imageId,this.imageCache[d]=p),this.buf2=n.Cmd.get("EI"),this.shift(),p}_findStreamLength(e,t){const{stream:r}=this.lexer
r.pos=e
const i=t.length
for(;r.pos<r.end;){const n=r.peekBytes(2048),s=n.length-i
if(s<=0)break
let a=0
for(;a<s;){let s=0
for(;s<i&&n[a+s]===t[s];)s++
if(s>=i)return r.pos+=a,r.pos-e
a++}r.pos+=s}return-1}makeStream(e,t){const r=this.lexer
let a=r.stream
r.skipToNextLine()
const o=a.pos-1
let l=e.get("Length")
if(Number.isInteger(l)||((0,i.info)(`Bad length "${l&&l.toString()}" in stream.`),l=0),a.pos=o+l,r.nextChar(),this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream"))this.shift()
else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109])
let t=this._findStreamLength(o,e)
if(t<0){const r=1
for(let n=1;n<=r;n++){const r=e.length-n,l=e.slice(0,r),c=this._findStreamLength(o,l)
if(c>=0){const e=a.peekBytes(r+1)[r]
if(!(0,s.isWhiteSpace)(e))break;(0,i.info)(`Found "${(0,i.bytesToString)(l)}" when searching for endstream command.`),t=c
break}}if(t<0)throw new i.FormatError("Missing endstream command.")}l=t,r.nextChar(),this.shift(),this.shift()}return this.shift(),a=a.makeSubStream(o,l,e),t&&(a=t.createStream(a,l)),a=this.filter(a,e,l),a.dict=e,a}filter(e,t,r){let s=t.get("F","Filter"),a=t.get("DP","DecodeParms")
if(s instanceof n.Name)return Array.isArray(a)&&(0,i.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,s.name,r,a)
let o=r
if(Array.isArray(s)){const t=s,r=a
for(let l=0,c=t.length;l<c;++l){if(s=this.xref.fetchIfRef(t[l]),!(s instanceof n.Name))throw new i.FormatError(`Bad filter name "${s}"`)
a=null,Array.isArray(r)&&l in r&&(a=this.xref.fetchIfRef(r[l])),e=this.makeFilter(e,s.name,o,a),o=null}}return e}makeFilter(e,t,r,n){if(0===r)return(0,i.warn)(`Empty "${t}" stream.`),new a.NullStream
try{switch(t){case"Fl":case"FlateDecode":return n?new m.PredictorStream(new u.FlateStream(e,r),r,n):new u.FlateStream(e,r)
case"LZW":case"LZWDecode":let t=1
return n?(n.has("EarlyChange")&&(t=n.get("EarlyChange")),new m.PredictorStream(new f.LZWStream(e,r,t),r,n)):new f.LZWStream(e,r,t)
case"DCT":case"DCTDecode":return new h.JpegStream(e,r,n)
case"JPX":case"JPXDecode":return new p.JpxStream(e,r,n)
case"A85":case"ASCII85Decode":return new o.Ascii85Stream(e,r)
case"AHx":case"ASCIIHexDecode":return new l.AsciiHexStream(e,r)
case"CCF":case"CCITTFaxDecode":return new c.CCITTFaxStream(e,r,n)
case"RL":case"RunLengthDecode":return new g.RunLengthStream(e,r)
case"JBIG2Decode":return new d.Jbig2Stream(e,r,n)}return(0,i.warn)(`Filter "${t}" is not supported.`),e}catch(b){if(b instanceof s.MissingDataException)throw b
return(0,i.warn)(`Invalid stream: "${b}"`),new a.NullStream}}}t.Parser=b
const y=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
function v(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class w{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,r=0,n=1
if(45===e?(n=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e)
if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){const t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`
if((0,s.isWhiteSpace)(e)||-1===e)return(0,i.info)(`Lexer.getNumber - "${t}".`),0
throw new i.FormatError(t)}let a=e-48,o=0,l=1
for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const i=e-48
t?o=10*o+i:(0!==r&&(r*=10),a=10*a+i)}else if(46===e){if(0!==r)break
r=1}else if(45===e)(0,i.warn)("Badly formatted number: minus sign in the middle")
else{if(69!==e&&101!==e)break
if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar()
else if(e<48||e>57)break
t=!0}return 0!==r&&(a/=r),t&&(a*=10**(l*o)),n*a}getString(){let e=1,t=!1
const r=this.strBuf
r.length=0
let n=this.nextChar()
for(;;){let s=!1
switch(0|n){case-1:(0,i.warn)("Unterminated string"),t=!0
break
case 40:++e,r.push("(")
break
case 41:0==--e?(this.nextChar(),t=!0):r.push(")")
break
case 92:switch(n=this.nextChar(),n){case-1:(0,i.warn)("Unterminated string"),t=!0
break
case 110:r.push("\n")
break
case 114:r.push("\r")
break
case 116:r.push("\t")
break
case 98:r.push("\b")
break
case 102:r.push("\f")
break
case 92:case 40:case 41:r.push(String.fromCharCode(n))
break
case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&n
n=this.nextChar(),s=!0,n>=48&&n<=55&&(e=(e<<3)+(15&n),n=this.nextChar(),n>=48&&n<=55&&(s=!1,e=(e<<3)+(15&n))),r.push(String.fromCharCode(e))
break
case 13:10===this.peekChar()&&this.nextChar()
break
case 10:break
default:r.push(String.fromCharCode(n))}break
default:r.push(String.fromCharCode(n))}if(t)break
s||(n=this.nextChar())}return r.join("")}getName(){let e,t
const r=this.strBuf
for(r.length=0;(e=this.nextChar())>=0&&!y[e];)if(35===e){if(e=this.nextChar(),y[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#")
break}const n=v(e)
if(-1!==n){t=e,e=this.nextChar()
const s=v(e)
if(-1===s){if((0,i.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`),r.push("#",String.fromCharCode(t)),y[e])break
r.push(String.fromCharCode(e))
continue}r.push(String.fromCharCode(n<<4|s))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e))
return r.length>127&&(0,i.warn)(`Name token is longer than allowed by the spec: ${r.length}`),n.Name.get(r.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,i.warn)(`getHexString - ignoring invalid character: ${e}`):(0,i.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf
e.length=0
let t,r,n=this.currentChar,s=!0
for(this._hexStringNumWarn=0;;){if(n<0){(0,i.warn)("Unterminated hex string")
break}if(62===n){this.nextChar()
break}if(1!==y[n]){if(s){if(t=v(n),-1===t){this._hexStringWarn(n),n=this.nextChar()
continue}}else{if(r=v(n),-1===r){this._hexStringWarn(n),n=this.nextChar()
continue}e.push(String.fromCharCode(t<<4|r))}s=!s,n=this.nextChar()}else n=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar
for(;;){if(t<0)return n.EOF
if(e)10!==t&&13!==t||(e=!1)
else if(37===t)e=!0
else if(1!==y[t])break
t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber()
case 40:return this.getString()
case 47:return this.getName()
case 91:return this.nextChar(),n.Cmd.get("[")
case 93:return this.nextChar(),n.Cmd.get("]")
case 60:return t=this.nextChar(),60===t?(this.nextChar(),n.Cmd.get("<<")):this.getHexString()
case 62:return t=this.nextChar(),62===t?(this.nextChar(),n.Cmd.get(">>")):n.Cmd.get(">")
case 123:return this.nextChar(),n.Cmd.get("{")
case 125:return this.nextChar(),n.Cmd.get("}")
case 41:throw this.nextChar(),new i.FormatError(`Illegal character: ${t}`)}let r=String.fromCharCode(t)
if(t<32||t>127){const e=this.peekChar()
if(e>=32&&e<=127)return this.nextChar(),n.Cmd.get(r)}const s=this.knownCommands
let a=void 0!==s?.[r]
for(;(t=this.nextChar())>=0&&!y[t];){const e=r+String.fromCharCode(t)
if(a&&void 0===s[e])break
if(128===r.length)throw new i.FormatError(`Command token too long: ${r.length}`)
r=e,a=void 0!==s?.[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),n.Cmd.get(r)))}skipToNextLine(){let e=this.currentChar
for(;e>=0;){if(13===e){e=this.nextChar(),10===e&&this.nextChar()
break}if(10===e){this.nextChar()
break}e=this.nextChar()}}}t.Lexer=w
t.Linearization=class{static create(e){function t(e,t,r=!1){const i=e.get(t)
if(Number.isInteger(i)&&(r?i>=0:i>0))return i
throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}const r=new b({lexer:new w(e),xref:null}),i=r.getObj(),s=r.getObj(),a=r.getObj(),o=r.getObj()
let l,c
if(!(Number.isInteger(i)&&Number.isInteger(s)&&(0,n.isCmd)(a,"obj")&&o instanceof n.Dict&&"number"==typeof(l=o.get("Linearized"))&&l>0))return null
if((c=t(o,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')
return{length:c,hints:function(e){const t=e.get("H")
let r
if(Array.isArray(t)&&(2===(r=t.length)||4===r)){for(let e=0;e<r;e++){const r=t[e]
if(!(Number.isInteger(r)&&r>0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(o),objectNumberFirst:t(o,"O"),endFirst:t(o,"E"),numPages:t(o,"N"),mainXRefEntriesOffset:t(o,"T"),pageFirst:o.has("P")?t(o,"P",!0):0}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0
var i=r(18),n=r(3)
class s extends i.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const e=this.str
let t=e.getByte()
for(;(0,n.isWhiteSpace)(t);)t=e.getByte()
if(-1===t||126===t)return void(this.eof=!0)
const r=this.bufferLength
let i,s
if(122===t){for(i=this.ensureBuffer(r+4),s=0;s<4;++s)i[r+s]=0
this.bufferLength+=4}else{const a=this.input
for(a[0]=t,s=1;s<5;++s){for(t=e.getByte();(0,n.isWhiteSpace)(t);)t=e.getByte()
if(a[s]=t,-1===t||126===t)break}if(i=this.ensureBuffer(r+s-1),this.bufferLength+=s-1,s<5){for(;s<5;++s)a[s]=117
this.eof=!0}let o=0
for(s=0;s<5;++s)o=85*o+(a[s]-33)
for(s=3;s>=0;--s)i[r+s]=255&o,o>>=8}}}t.Ascii85Stream=s},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0
var i=r(5),n=r(8)
const s=new Uint8Array(0)
class a extends i.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=s,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock()
return 0===this.bufferLength}ensureBuffer(e){const t=this.buffer
if(e<=t.byteLength)return t
let r=this.minBufferLength
for(;r<e;)r*=2
const i=new Uint8Array(r)
return i.set(t),this.buffer=i}getByte(){const e=this.pos
for(;this.bufferLength<=e;){if(this.eof)return-1
this.readBlock()}return this.buffer[this.pos++]}getBytes(e){const t=this.pos
let r
if(e){for(this.ensureBuffer(t+e),r=t+e;!this.eof&&this.bufferLength<r;)this.readBlock()
const i=this.bufferLength
r>i&&(r=i)}else{for(;!this.eof;)this.readBlock()
r=this.bufferLength}return this.pos=r,this.buffer.subarray(t,r)}reset(){this.pos=0}makeSubStream(e,t,r=null){if(void 0===t)for(;!this.eof;)this.readBlock()
else{const r=e+t
for(;this.bufferLength<=r&&!this.eof;)this.readBlock()}return new n.Stream(this.buffer,e,t,r)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=a
t.StreamsSequenceStream=class extends a{constructor(e,t=null){let r=0
for(const i of e)r+=i instanceof a?i._rawMinBufferLength:i.length
super(r),this.streams=e,this._onError=t}readBlock(){const e=this.streams
if(0===e.length)return void(this.eof=!0)
const t=e.shift()
let r
try{r=t.getBytes()}catch(s){if(this._onError)return void this._onError(s,t.dict?.objId)
throw s}const i=this.bufferLength,n=i+r.length
this.ensureBuffer(n).set(r,i),this.bufferLength=n}getBaseStreams(){const e=[]
for(const t of this.streams){const r=t.getBaseStreams()
r&&e.push(...r)}return e.length>0?e:null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0
var i=r(18)
class n extends i.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3)
if(!e.length)return void(this.eof=!0)
const t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t)
let i=this.bufferLength,n=this.firstDigit
for(const s of e){let e
if(s>=48&&s<=57)e=15&s
else{if(!(s>=65&&s<=70||s>=97&&s<=102)){if(62===s){this.eof=!0
break}continue}e=9+(15&s)}n<0?n=e:(r[i++]=n<<4|e,n=-1)}n>=0&&this.eof&&(r[i++]=n<<4,n=-1),this.firstDigit=n,this.bufferLength=i}}t.AsciiHexStream=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0
var i=r(21),n=r(18),s=r(4)
class a extends n.DecodeStream{constructor(e,t,r){super(t),this.str=e,this.dict=e.dict,r instanceof s.Dict||(r=s.Dict.empty)
const n={next:()=>e.getByte()}
this.ccittFaxDecoder=new i.CCITTFaxDecoder(n,{K:r.get("K"),EndOfLine:r.get("EndOfLine"),EncodedByteAlign:r.get("EncodedByteAlign"),Columns:r.get("Columns"),Rows:r.get("Rows"),EndOfBlock:r.get("EndOfBlock"),BlackIs1:r.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar()
if(-1===e)return void(this.eof=!0)
this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=a},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0
var i=r(2)
const n=-1,s=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],a=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],c=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],u=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]]
t.CCITTFaxDecoder=class{constructor(e,t={}){if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.')
let r
for(this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0,this.eoblock=t.EndOfBlock??!0,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(r=this._lookBits(12));)this._eatBits(1)
1===r&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1
const e=this.refLine,t=this.codingLine,r=this.columns
let s,a,o,l,c
if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1
let o,c,u
if(this.err=!1,this.nextLine2D){for(l=0;t[l]<r;++l)e[l]=t[l]
for(e[l++]=r,e[l]=r,t[0]=0,this.codingPos=0,s=0,a=0;t[this.codingPos]<r;)switch(o=this._getTwoDimCode(),o){case 0:this._addPixels(e[s+1],a),e[s+1]<r&&(s+=2)
break
case 1:if(o=c=0,a){do{o+=u=this._getBlackCode()}while(u>=64)
do{c+=u=this._getWhiteCode()}while(u>=64)}else{do{o+=u=this._getWhiteCode()}while(u>=64)
do{c+=u=this._getBlackCode()}while(u>=64)}for(this._addPixels(t[this.codingPos]+o,a),t[this.codingPos]<r&&this._addPixels(t[this.codingPos]+c,1^a);e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 7:if(this._addPixels(e[s]+3,a),a^=1,t[this.codingPos]<r)for(++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 5:if(this._addPixels(e[s]+2,a),a^=1,t[this.codingPos]<r)for(++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 3:if(this._addPixels(e[s]+1,a),a^=1,t[this.codingPos]<r)for(++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 2:if(this._addPixels(e[s],a),a^=1,t[this.codingPos]<r)for(++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 8:if(this._addPixelsNeg(e[s]-3,a),a^=1,t[this.codingPos]<r)for(s>0?--s:++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 6:if(this._addPixelsNeg(e[s]-2,a),a^=1,t[this.codingPos]<r)for(s>0?--s:++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case 4:if(this._addPixelsNeg(e[s]-1,a),a^=1,t[this.codingPos]<r)for(s>0?--s:++s;e[s]<=t[this.codingPos]&&e[s]<r;)s+=2
break
case n:this._addPixels(r,0),this.eof=!0
break
default:(0,i.info)("bad 2d code"),this._addPixels(r,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,a=0;t[this.codingPos]<r;){if(o=0,a)do{o+=u=this._getBlackCode()}while(u>=64)
else do{o+=u=this._getWhiteCode()}while(u>=64)
this._addPixels(t[this.codingPos]+o,a),a^=1}let d=!1
if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(o=this._lookBits(12),this.eoline)for(;o!==n&&1!==o;)this._eatBits(1),o=this._lookBits(12)
else for(;0===o;)this._eatBits(1),o=this._lookBits(12)
1===o?(this._eatBits(12),d=!0):o===n&&(this.eof=!0)}else this.rowsDone=!0
if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(o=this._lookBits(12),1===o){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(l=0;l<4;++l)o=this._lookBits(12),1!==o&&(0,i.info)("bad rtc code: "+o),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1))
this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(o=this._lookBits(13),o===n)return this.eof=!0,-1
if(o>>1==1)break
this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&o))}this.outputBits=t[0]>0?t[this.codingPos=0]:t[this.codingPos=1],this.row++}if(this.outputBits>=8)c=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]<r&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1])
else{o=8,c=0
do{if("number"!=typeof this.outputBits)throw new i.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.')
this.outputBits>o?(c<<=o,1&this.codingPos||(c|=255>>8-o),this.outputBits-=o,o=0):(c<<=this.outputBits,1&this.codingPos||(c|=255>>8-this.outputBits),o-=this.outputBits,this.outputBits=0,t[this.codingPos]<r?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):o>0&&(c<<=o,o=0))}while(o)}return this.black&&(c^=255),c}_addPixels(e,t){const r=this.codingLine
let n=this.codingPos
e>r[n]&&(e>this.columns&&((0,i.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e),this.codingPos=n}_addPixelsNeg(e,t){const r=this.codingLine
let n=this.codingPos
if(e>r[n])e>this.columns&&((0,i.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e
else if(e<r[n]){for(e<0&&((0,i.info)("invalid code"),this.err=!0,e=0);n>0&&e<r[n-1];)--n
r[n]=e}this.codingPos=n}_findTableCode(e,t,r,i){const s=i||0
for(let a=e;a<=t;++a){let e=this._lookBits(a)
if(e===n)return[!0,1,!1]
if(a<t&&(e<<=t-a),!s||e>=s){const t=r[e-s]
if(t[0]===a)return this._eatBits(a),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0
if(this.eoblock){if(t=this._lookBits(7),e=s[t],e?.[0]>0)return this._eatBits(e[0]),e[1]}else{const e=this._findTableCode(1,7,s)
if(e[0]&&e[2])return e[1]}return(0,i.info)("Bad two dim code"),n}_getWhiteCode(){let e,t=0
if(this.eoblock){if(t=this._lookBits(12),t===n)return 1
if(e=t>>5?o[t>>3]:a[t],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,o)
if(e[0])return e[1]
if(e=this._findTableCode(11,12,a),e[0])return e[1]}return(0,i.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let e,t
if(this.eoblock){if(e=this._lookBits(13),e===n)return 1
if(t=e>>7?!(e>>9)&&e>>7?c[(e>>1)-64]:u[e>>7]:l[e],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,u)
if(e[0])return e[1]
if(e=this._findTableCode(7,12,c,64),e[0])return e[1]
if(e=this._findTableCode(10,13,l),e[0])return e[1]}return(0,i.info)("bad black code"),this._eatBits(1),1}_lookBits(e){let t
for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?n:this.inputBuf<<e-this.inputBits&65535>>16-e
this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0
var i=r(18),n=r(2)
const s=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),l=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],c=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5]
class u extends i.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict
const r=e.getByte(),i=e.getByte()
if(-1===r||-1===i)throw new n.FormatError(`Invalid header in flate stream: ${r}, ${i}`)
if(8!=(15&r))throw new n.FormatError(`Unknown compression method in flate stream: ${r}, ${i}`)
if(((r<<8)+i)%31!=0)throw new n.FormatError(`Bad FCHECK in flate stream: ${r}, ${i}`)
if(32&i)throw new n.FormatError(`FDICT bit set in flate stream: ${r}, ${i}`)
this.codeSize=0,this.codeBuf=0}getBits(e){const t=this.str
let r,i=this.codeSize,s=this.codeBuf
for(;i<e;){if(-1===(r=t.getByte()))throw new n.FormatError("Bad encoding in flate stream")
s|=r<<i,i+=8}return r=s&(1<<e)-1,this.codeBuf=s>>e,this.codeSize=i-=e,r}getCode(e){const t=this.str,r=e[0],i=e[1]
let s,a=this.codeSize,o=this.codeBuf
for(;a<i&&-1!==(s=t.getByte());)o|=s<<a,a+=8
const l=r[o&(1<<i)-1],c=l>>16,u=65535&l
if(c<1||a<c)throw new n.FormatError("Bad encoding in flate stream")
return this.codeBuf=o>>c,this.codeSize=a-c,u}generateHuffmanTable(e){const t=e.length
let r,i=0
for(r=0;r<t;++r)e[r]>i&&(i=e[r])
const n=1<<i,s=new Int32Array(n)
for(let a=1,o=0,l=2;a<=i;++a,o<<=1,l<<=1)for(let i=0;i<t;++i)if(e[i]===a){let e=0,t=o
for(r=0;r<a;++r)e=e<<1|1&t,t>>=1
for(r=e;r<n;r+=l)s[r]=a<<16|i;++o}return[s,i]}readBlock(){let e,t
const r=this.str
let i,u,d=this.getBits(3)
if(1&d&&(this.eof=!0),d>>=1,0===d){let t
if(-1===(t=r.getByte()))throw new n.FormatError("Bad block header in flate stream")
let i=t
if(-1===(t=r.getByte()))throw new n.FormatError("Bad block header in flate stream")
if(i|=t<<8,-1===(t=r.getByte()))throw new n.FormatError("Bad block header in flate stream")
let s=t
if(-1===(t=r.getByte()))throw new n.FormatError("Bad block header in flate stream")
if(s|=t<<8,s!==(65535&~i)&&(0!==i||0!==s))throw new n.FormatError("Bad uncompressed block length in flate stream")
this.codeBuf=0,this.codeSize=0
const a=this.bufferLength,o=a+i
if(e=this.ensureBuffer(o),this.bufferLength=o,0===i)-1===r.peekByte()&&(this.eof=!0)
else{const t=r.getBytes(i)
e.set(t,a),t.length<i&&(this.eof=!0)}return}if(1===d)i=l,u=c
else{if(2!==d)throw new n.FormatError("Unknown block type in flate stream")
{const e=this.getBits(5)+257,r=this.getBits(5)+1,n=this.getBits(4)+4,a=new Uint8Array(s.length)
let o
for(o=0;o<n;++o)a[s[o]]=this.getBits(3)
const l=this.generateHuffmanTable(a)
t=0,o=0
const c=e+r,d=new Uint8Array(c)
let h,p,f
for(;o<c;){const e=this.getCode(l)
if(16===e)h=2,p=3,f=t
else if(17===e)h=3,p=3,f=t=0
else{if(18!==e){d[o++]=t=e
continue}h=7,p=11,f=t=0}let r=this.getBits(h)+p
for(;r-- >0;)d[o++]=f}i=this.generateHuffmanTable(d.subarray(0,e)),u=this.generateHuffmanTable(d.subarray(e,c))}}e=this.buffer
let h=e?e.length:0,p=this.bufferLength
for(;;){let r=this.getCode(i)
if(r<256){p+1>=h&&(e=this.ensureBuffer(p+1),h=e.length),e[p++]=r
continue}if(256===r)return void(this.bufferLength=p)
r-=257,r=a[r]
let n=r>>16
n>0&&(n=this.getBits(n)),t=(65535&r)+n,r=this.getCode(u),r=o[r],n=r>>16,n>0&&(n=this.getBits(n))
const s=(65535&r)+n
p+t>=h&&(e=this.ensureBuffer(p+t),h=e.length)
for(let i=0;i<t;++i,++p)e[p]=e[p-s]}}}t.FlateStream=u},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0
var i=r(5),n=r(18),s=r(4),a=r(24),o=r(2)
class l extends n.DecodeStream{constructor(e,t,r){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=r}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return
const e=new a.Jbig2Image,t=[]
if(this.params instanceof s.Dict){const e=this.params.get("JBIG2Globals")
if(e instanceof i.BaseStream){const r=e.getBytes()
t.push({data:r,start:0,end:r.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length})
const r=e.parseChunks(t),n=r.length
for(let i=0;i<n;i++)r[i]^=255
this.buffer=r,this.bufferLength=n,this.eof=!0}}t.Jbig2Stream=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0
var i=r(2),n=r(3),s=r(25),a=r(21)
class o extends i.BaseException{constructor(e){super(`JBIG2 error: ${e}`,"Jbig2Error")}}class l{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class c{constructor(e,t,r){this.data=e,this.start=t,this.end=r}get decoder(){const e=new s.ArithmeticDecoder(this.data,this.start,this.end)
return(0,i.shadow)(this,"decoder",e)}get contextCache(){const e=new l
return(0,i.shadow)(this,"contextCache",e)}}const u=2**31-1,d=-(2**31)
function h(e,t,r){const i=e.getContexts(t)
let n=1
function s(e){let t=0
for(let s=0;s<e;s++){const e=r.readBit(i,n)
n=n<256?n<<1|e:511&(n<<1|e)|256,t=t<<1|e}return t>>>0}const a=s(1),o=s(1)?s(1)?s(1)?s(1)?s(1)?s(32)+4436:s(12)+340:s(8)+84:s(6)+20:s(4)+4:s(2)
let l
return 0===a?l=o:o>0&&(l=-o),l>=d&&l<=u?l:null}function p(e,t,r){const i=e.getContexts("IAID")
let n=1
for(let s=0;s<r;s++){n=n<<1|t.readBit(i,n)}return r<31?n&(1<<r)-1:2147483647&n}const f=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],m=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],g=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],b=[39717,1941,229,405],y=[32,8]
function v(e,t,r,i,n,s,a,o){if(e){return j(new N(o.data,o.start,o.end),t,r,!1)}if(0===i&&!s&&!n&&4===a.length&&3===a[0].x&&-1===a[0].y&&-3===a[1].x&&-1===a[1].y&&2===a[2].x&&-2===a[2].y&&-2===a[3].x&&-2===a[3].y)return function(e,t,r){const i=r.decoder,n=r.contextCache.getContexts("GB"),s=[]
let a,o,l,c,u,d,h
for(o=0;o<t;o++)for(u=s[o]=new Uint8Array(e),d=o<1?u:s[o-1],h=o<2?u:s[o-2],a=h[0]<<13|h[1]<<12|h[2]<<11|d[0]<<7|d[1]<<6|d[2]<<5|d[3]<<4,l=0;l<e;l++)u[l]=c=i.readBit(n,a),a=(31735&a)<<1|(l+3<e?h[l+3]<<11:0)|(l+4<e?d[l+4]<<4:0)|c
return s}(t,r,o)
const l=!!s,c=m[i].concat(a)
c.sort((function(e,t){return e.y-t.y||e.x-t.x}))
const u=c.length,d=new Int8Array(u),h=new Int8Array(u),p=[]
let f,g,y=0,v=0,w=0,x=0
for(g=0;g<u;g++)d[g]=c[g].x,h[g]=c[g].y,v=Math.min(v,c[g].x),w=Math.max(w,c[g].x),x=Math.min(x,c[g].y),g<u-1&&c[g].y===c[g+1].y&&c[g].x===c[g+1].x-1?y|=1<<u-1-g:p.push(g)
const _=p.length,S=new Int8Array(_),k=new Int8Array(_),A=new Uint16Array(_)
for(f=0;f<_;f++)g=p[f],S[f]=c[g].x,k[f]=c[g].y,A[f]=1<<u-1-g
const C=-v,P=-x,O=t-w,E=b[i]
let T=new Uint8Array(t)
const M=[],I=o.decoder,F=o.contextCache.getContexts("GB")
let R,D,L,B,$,z=0,U=0
for(let m=0;m<r;m++){if(n){if(z^=I.readBit(F,E),z){M.push(T)
continue}}for(T=new Uint8Array(T),M.push(T),R=0;R<t;R++){if(l&&s[m][R]){T[R]=0
continue}if(R>=C&&R<O&&m>=P)for(U=U<<1&y,g=0;g<_;g++)D=m+k[g],L=R+S[g],B=M[D][L],B&&(B=A[g],U|=B)
else for(U=0,$=u-1,g=0;g<u;g++,$--)L=R+d[g],L>=0&&L<t&&(D=m+h[g],D>=0&&(B=M[D][L],B&&(U|=B<<$)))
const e=I.readBit(F,U)
T[R]=e}}return M}function w(e,t,r,i,n,s,a,l,c){let u=g[r].coding
0===r&&(u=u.concat([l[0]]))
const d=u.length,h=new Int32Array(d),p=new Int32Array(d)
let f
for(f=0;f<d;f++)h[f]=u[f].x,p[f]=u[f].y
let m=g[r].reference
0===r&&(m=m.concat([l[1]]))
const b=m.length,v=new Int32Array(b),w=new Int32Array(b)
for(f=0;f<b;f++)v[f]=m[f].x,w[f]=m[f].y
const x=i[0].length,_=i.length,S=y[r],k=[],A=c.decoder,C=c.contextCache.getContexts("GR")
let P=0
for(let g=0;g<t;g++){if(a){if(P^=A.readBit(C,S),P)throw new o("prediction is not supported")}const t=new Uint8Array(e)
k.push(t)
for(let r=0;r<e;r++){let a,o,l=0
for(f=0;f<d;f++)a=g+p[f],o=r+h[f],a<0||o<0||o>=e?l<<=1:l=l<<1|k[a][o]
for(f=0;f<b;f++)a=g+w[f]-s,o=r+v[f]-n,a<0||a>=_||o<0||o>=x?l<<=1:l=l<<1|i[a][o]
const c=A.readBit(C,l)
t[r]=c}}return k}function x(e,t,r,i,n,s,a,l,c,u,d,f,m,g,b,y,v,x,_){if(e&&t)throw new o("refinement with Huffman is not supported")
const S=[]
let k,A
for(k=0;k<i;k++){if(A=new Uint8Array(r),n)for(let e=0;e<r;e++)A[e]=n
S.push(A)}const C=v.decoder,P=v.contextCache
let O=e?-g.tableDeltaT.decode(_):-h(P,"IADT",C),E=0
for(k=0;k<s;){O+=e?g.tableDeltaT.decode(_):h(P,"IADT",C)
E+=e?g.tableFirstS.decode(_):h(P,"IAFS",C)
let i=E
for(;;){let n=0
a>1&&(n=e?_.readBits(x):h(P,"IAIT",C))
const s=a*O+n,E=e?g.symbolIDTable.decode(_):p(P,C,c),T=t&&(e?_.readBit():h(P,"IARI",C))
let M=l[E],I=M[0].length,F=M.length
if(T){const e=h(P,"IARDW",C),t=h(P,"IARDH",C)
I+=e,F+=t,M=w(I,F,b,M,(e>>1)+h(P,"IARDX",C),(t>>1)+h(P,"IARDY",C),!1,y,v)}const N=s-(1&f?0:F-1),R=i-(2&f?I-1:0)
let D,j,L
if(u){for(D=0;D<F;D++){if(A=S[R+D],!A)continue
L=M[D]
const e=Math.min(r-N,I)
switch(m){case 0:for(j=0;j<e;j++)A[N+j]|=L[j]
break
case 2:for(j=0;j<e;j++)A[N+j]^=L[j]
break
default:throw new o(`operator ${m} is not supported`)}}i+=F-1}else{for(j=0;j<F;j++)if(A=S[N+j],A)switch(L=M[j],m){case 0:for(D=0;D<I;D++)A[R+D]|=L[D]
break
case 2:for(D=0;D<I;D++)A[R+D]^=L[D]
break
default:throw new o(`operator ${m} is not supported`)}i+=I-1}k++
const B=e?g.tableDeltaS.decode(_):h(P,"IADS",C)
if(null===B)break
i+=B+d}}return S}function _(e,t){const r={}
r.number=(0,n.readUint32)(e,t)
const i=e[t+4],s=63&i
if(!f[s])throw new o("invalid segment type: "+s)
r.type=s,r.typeName=f[s],r.deferredNonRetain=!!(128&i)
const a=!!(64&i),l=e[t+5]
let c=l>>5&7
const u=[31&l]
let d=t+6
if(7===l){c=536870911&(0,n.readUint32)(e,d-1),d+=3
let t=c+7>>3
for(u[0]=e[d++];--t>0;)u.push(e[d++])}else if(5===l||6===l)throw new o("invalid referred-to flags")
r.retainBits=u
let h=4
r.number<=256?h=1:r.number<=65536&&(h=2)
const p=[]
let m,g
for(m=0;m<c;m++){let t
t=1===h?e[d]:2===h?(0,n.readUint16)(e,d):(0,n.readUint32)(e,d),p.push(t),d+=h}if(r.referredTo=p,a?(r.pageAssociation=(0,n.readUint32)(e,d),d+=4):r.pageAssociation=e[d++],r.length=(0,n.readUint32)(e,d),d+=4,4294967295===r.length){if(38!==s)throw new o("invalid unknown segment length")
{const t=k(e,d),i=!!(1&e[d+A]),n=6,s=new Uint8Array(n)
for(i||(s[0]=255,s[1]=172),s[2]=t.height>>>24&255,s[3]=t.height>>16&255,s[4]=t.height>>8&255,s[5]=255&t.height,m=d,g=e.length;m<g;m++){let t=0
for(;t<n&&s[t]===e[m+t];)t++
if(t===n){r.length=m+n
break}}if(4294967295===r.length)throw new o("segment end was not found")}}return r.headerEnd=d,r}function S(e,t,r,i){const n=[]
let s=r
for(;s<i;){const r=_(t,s)
s=r.headerEnd
const i={header:r,data:t}
if(e.randomAccess||(i.start=s,s+=r.length,i.end=s),n.push(i),51===r.type)break}if(e.randomAccess)for(let a=0,o=n.length;a<o;a++)n[a].start=s,s+=n[a].header.length,n[a].end=s
return n}function k(e,t){return{width:(0,n.readUint32)(e,t),height:(0,n.readUint32)(e,t+4),x:(0,n.readUint32)(e,t+8),y:(0,n.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}const A=17
function C(e,t){const r=e.header,i=e.data,s=e.end
let a,l,c,u,d=e.start
switch(r.type){case 0:const e={},t=(0,n.readUint16)(i,d)
if(e.huffman=!!(1&t),e.refinement=!!(2&t),e.huffmanDHSelector=t>>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,d+=2,!e.huffman){for(u=0===e.template?4:1,l=[],c=0;c<u;c++)l.push({x:(0,n.readInt8)(i,d),y:(0,n.readInt8)(i,d+1)}),d+=2
e.at=l}if(e.refinement&&!e.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,n.readInt8)(i,d),y:(0,n.readInt8)(i,d+1)}),d+=2
e.refinementAt=l}e.numberOfExportedSymbols=(0,n.readUint32)(i,d),d+=4,e.numberOfNewSymbols=(0,n.readUint32)(i,d),d+=4,a=[e,r.number,r.referredTo,i,d,s]
break
case 6:case 7:const h={}
h.info=k(i,d),d+=A
const p=(0,n.readUint16)(i,d)
if(d+=2,h.huffman=!!(1&p),h.refinement=!!(2&p),h.logStripSize=p>>2&3,h.stripSize=1<<h.logStripSize,h.referenceCorner=p>>4&3,h.transposed=!!(64&p),h.combinationOperator=p>>7&3,h.defaultPixelValue=p>>9&1,h.dsOffset=p<<17>>27,h.refinementTemplate=p>>15&1,h.huffman){const e=(0,n.readUint16)(i,d)
d+=2,h.huffmanFS=3&e,h.huffmanDS=e>>2&3,h.huffmanDT=e>>4&3,h.huffmanRefinementDW=e>>6&3,h.huffmanRefinementDH=e>>8&3,h.huffmanRefinementDX=e>>10&3,h.huffmanRefinementDY=e>>12&3,h.huffmanRefinementSizeSelector=!!(16384&e)}if(h.refinement&&!h.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,n.readInt8)(i,d),y:(0,n.readInt8)(i,d+1)}),d+=2
h.refinementAt=l}h.numberOfSymbolInstances=(0,n.readUint32)(i,d),d+=4,a=[h,r.referredTo,i,d,s]
break
case 16:const f={},m=i[d++]
f.mmr=!!(1&m),f.template=m>>1&3,f.patternWidth=i[d++],f.patternHeight=i[d++],f.maxPatternIndex=(0,n.readUint32)(i,d),d+=4,a=[f,r.number,i,d,s]
break
case 22:case 23:const g={}
g.info=k(i,d),d+=A
const b=i[d++]
g.mmr=!!(1&b),g.template=b>>1&3,g.enableSkip=!!(8&b),g.combinationOperator=b>>4&7,g.defaultPixelValue=b>>7&1,g.gridWidth=(0,n.readUint32)(i,d),d+=4,g.gridHeight=(0,n.readUint32)(i,d),d+=4,g.gridOffsetX=4294967295&(0,n.readUint32)(i,d),d+=4,g.gridOffsetY=4294967295&(0,n.readUint32)(i,d),d+=4,g.gridVectorX=(0,n.readUint16)(i,d),d+=2,g.gridVectorY=(0,n.readUint16)(i,d),d+=2,a=[g,r.referredTo,i,d,s]
break
case 38:case 39:const y={}
y.info=k(i,d),d+=A
const v=i[d++]
if(y.mmr=!!(1&v),y.template=v>>1&3,y.prediction=!!(8&v),!y.mmr){for(u=0===y.template?4:1,l=[],c=0;c<u;c++)l.push({x:(0,n.readInt8)(i,d),y:(0,n.readInt8)(i,d+1)}),d+=2
y.at=l}a=[y,i,d,s]
break
case 48:const w={width:(0,n.readUint32)(i,d),height:(0,n.readUint32)(i,d+4),resolutionX:(0,n.readUint32)(i,d+8),resolutionY:(0,n.readUint32)(i,d+12)}
4294967295===w.height&&delete w.height
const x=i[d+16];(0,n.readUint16)(i,d+17),w.lossless=!!(1&x),w.refinement=!!(2&x),w.defaultPixelValue=x>>2&1,w.combinationOperator=x>>3&3,w.requiresBuffer=!!(32&x),w.combinationOperatorOverride=!!(64&x),a=[w]
break
case 49:case 50:case 51:case 62:break
case 53:a=[r.number,i,d,s]
break
default:throw new o(`segment type ${r.typeName}(${r.type}) is not implemented`)}const h="on"+r.typeName
h in t&&t[h].apply(t,a)}function P(e,t){for(let r=0,i=e.length;r<i;r++)C(e[r],t)}class O{onPageInformation(e){this.currentPageInfo=e
const t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height)
e.defaultPixelValue&&r.fill(255),this.buffer=r}drawBitmap(e,t){const r=this.currentPageInfo,i=e.width,n=e.height,s=r.width+7>>3,a=r.combinationOperatorOverride?e.combinationOperator:r.combinationOperator,l=this.buffer,c=128>>(7&e.x)
let u,d,h,p,f=e.y*s+(e.x>>3)
switch(a){case 0:for(u=0;u<n;u++){for(h=c,p=f,d=0;d<i;d++)t[u][d]&&(l[p]|=h),h>>=1,h||(h=128,p++)
f+=s}break
case 2:for(u=0;u<n;u++){for(h=c,p=f,d=0;d<i;d++)t[u][d]&&(l[p]^=h),h>>=1,h||(h=128,p++)
f+=s}break
default:throw new o(`operator ${a} is not supported`)}}onImmediateGenericRegion(e,t,r,i){const n=e.info,s=new c(t,r,i),a=v(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,s)
this.drawBitmap(n,a)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,r,i,s,a){let l,u
e.huffman&&(l=function(e,t,r){let i,n,s,a,l=0
switch(e.huffmanDHSelector){case 0:case 1:i=F(e.huffmanDHSelector+4)
break
case 3:i=R(l,t,r),l++
break
default:throw new o("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=F(e.huffmanDWSelector+2)
break
case 3:n=R(l,t,r),l++
break
default:throw new o("invalid Huffman DW selector")}e.bitmapSizeSelector?(s=R(l,t,r),l++):s=F(1)
a=e.aggregationInstancesSelector?R(l,t,r):F(1)
return{tableDeltaHeight:i,tableDeltaWidth:n,tableBitmapSize:s,tableAggregateInstances:a}}(e,r,this.customTables),u=new N(i,s,a))
let d=this.symbols
d||(this.symbols=d={})
const f=[]
for(const n of r){const e=d[n]
e&&f.push(...e)}const m=new c(i,s,a)
d[t]=function(e,t,r,i,s,a,l,c,u,d,f,m){if(e&&t)throw new o("symbol refinement with Huffman is not supported")
const g=[]
let b=0,y=(0,n.log2)(r.length+i)
const _=f.decoder,S=f.contextCache
let k,A
for(e&&(k=F(1),A=[],y=Math.max(y,1));g.length<i;){b+=e?a.tableDeltaHeight.decode(m):h(S,"IADH",_)
let i=0,n=0
const s=e?A.length:0
for(;;){const s=e?a.tableDeltaWidth.decode(m):h(S,"IADW",_)
if(null===s)break
let o
if(i+=s,n+=i,t){const n=h(S,"IAAI",_)
if(n>1)o=x(e,t,i,b,0,n,1,r.concat(g),y,0,0,1,0,a,u,d,f,0,m)
else{const e=p(S,_,y),t=h(S,"IARDX",_),n=h(S,"IARDY",_)
o=w(i,b,u,e<r.length?r[e]:g[e-r.length],t,n,!1,d,f)}g.push(o)}else e?A.push(i):(o=v(!1,i,b,l,!1,null,c,f),g.push(o))}if(e&&!t){const e=a.tableBitmapSize.decode(m)
let t
if(m.byteAlign(),0===e)t=D(m,n,b)
else{const r=m.end,i=m.position+e
m.end=i,t=j(m,n,b,!1),m.end=r,m.position=i}const r=A.length
if(s===r-1)g.push(t)
else{let e,i,n,a,o,l=0
for(e=s;e<r;e++){for(a=A[e],n=l+a,o=[],i=0;i<b;i++)o.push(t[i].subarray(l,n))
g.push(o),l=n}}}}const C=[],P=[]
let O,E,T=!1
const M=r.length+i
for(;P.length<M;){let t=e?k.decode(m):h(S,"IAEX",_)
for(;t--;)P.push(T)
T=!T}for(O=0,E=r.length;O<E;O++)P[O]&&C.push(r[O])
for(let n=0;n<i;O++,n++)P[O]&&C.push(g[n])
return C}(e.huffman,e.refinement,f,e.numberOfNewSymbols,e.numberOfExportedSymbols,l,e.template,e.at,e.refinementTemplate,e.refinementAt,m,u)}onImmediateTextRegion(e,t,r,i,s){const a=e.info
let l,u
const d=this.symbols,h=[]
for(const n of t){const e=d[n]
e&&h.push(...e)}const p=(0,n.log2)(h.length)
e.huffman&&(u=new N(r,i,s),l=function(e,t,r,i,n){const s=[]
for(let o=0;o<=34;o++){const e=n.readBits(4)
s.push(new E([o,e,0,0]))}const a=new M(s,!1)
s.length=0
for(let p=0;p<i;){const e=a.decode(n)
if(e>=32){let t,r,i
switch(e){case 32:if(0===p)throw new o("no previous value in symbol ID table")
r=n.readBits(2)+3,t=s[p-1].prefixLength
break
case 33:r=n.readBits(3)+3,t=0
break
case 34:r=n.readBits(7)+11,t=0
break
default:throw new o("invalid code length in symbol ID table")}for(i=0;i<r;i++)s.push(new E([p,t,0,0])),p++}else s.push(new E([p,e,0,0])),p++}n.byteAlign()
const l=new M(s,!1)
let c,u,d,h=0
switch(e.huffmanFS){case 0:case 1:c=F(e.huffmanFS+6)
break
case 3:c=R(h,t,r),h++
break
default:throw new o("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:u=F(e.huffmanDS+8)
break
case 3:u=R(h,t,r),h++
break
default:throw new o("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:d=F(e.huffmanDT+11)
break
case 3:d=R(h,t,r),h++
break
default:throw new o("invalid Huffman DT selector")}if(e.refinement)throw new o("refinement with Huffman is not supported")
return{symbolIDTable:l,tableFirstS:c,tableDeltaS:u,tableDeltaT:d}}(e,t,this.customTables,h.length,u))
const f=new c(r,i,s),m=x(e.huffman,e.refinement,a.width,a.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,h,p,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,l,e.refinementTemplate,e.refinementAt,f,e.logStripSize,u)
this.drawBitmap(a,m)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,r,i,n){let s=this.patterns
s||(this.patterns=s={})
const a=new c(r,i,n)
s[t]=function(e,t,r,i,n,s){const a=[]
e||(a.push({x:-t,y:0}),0===n&&a.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}))
const o=v(e,(i+1)*t,r,n,!1,null,a,s),l=[]
for(let c=0;c<=i;c++){const e=[],i=t*c,n=i+t
for(let t=0;t<r;t++)e.push(o[t].subarray(i,n))
l.push(e)}return l}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,a)}onImmediateHalftoneRegion(e,t,r,i,s){const a=this.patterns[t[0]],l=e.info,u=new c(r,i,s),d=function(e,t,r,i,s,a,l,c,u,d,h,p,f,m,g){if(l)throw new o("skip is not supported")
if(0!==c)throw new o(`operator "${c}" is not supported in halftone region`)
const b=[]
let y,w,x
for(y=0;y<s;y++){if(x=new Uint8Array(i),a)for(w=0;w<i;w++)x[w]=a
b.push(x)}const _=t.length,S=t[0],k=S[0].length,A=S.length,C=(0,n.log2)(_),P=[]
e||(P.push({x:r<=1?3:2,y:-1}),0===r&&P.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}))
const O=[]
let E,T,M,I,F,R,D,L,B,$,z
for(e&&(E=new N(g.data,g.start,g.end)),y=C-1;y>=0;y--)T=e?j(E,u,d,!0):v(!1,u,d,r,!1,null,P,g),O[y]=T
for(M=0;M<d;M++)for(I=0;I<u;I++){for(F=0,R=0,w=C-1;w>=0;w--)F^=O[w][M][I],R|=F<<w
if(D=t[R],L=h+M*m+I*f>>8,B=p+M*f-I*m>>8,L>=0&&L+k<=i&&B>=0&&B+A<=s)for(y=0;y<A;y++)for(z=b[B+y],$=D[y],w=0;w<k;w++)z[L+w]|=$[w]
else{let e,t
for(y=0;y<A;y++)if(t=B+y,!(t<0||t>=s))for(z=b[t],$=D[y],w=0;w<k;w++)e=L+w,e>=0&&e<i&&(z[e]|=$[w])}}return b}(e.mmr,a,e.template,l.width,l.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,u)
this.drawBitmap(l,d)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,r,i){let s=this.customTables
s||(this.customTables=s={}),s[e]=function(e,t,r){const i=e[t],s=4294967295&(0,n.readUint32)(e,t+1),a=4294967295&(0,n.readUint32)(e,t+5),o=new N(e,t+9,r),l=1+(i>>1&7),c=1+(i>>4&7),u=[]
let d,h,p=s
do{d=o.readBits(l),h=o.readBits(c),u.push(new E([p,d,h,0])),p+=1<<h}while(p<a)
d=o.readBits(l),u.push(new E([s-1,d,32,0,"lower"])),d=o.readBits(l),u.push(new E([a,d,32,0])),1&i&&(d=o.readBits(l),u.push(new E([d,0])))
return new M(u,!1)}(t,r,i)}}class E{constructor(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}}class T{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(e,t){const r=e.prefixCode>>t&1
if(t<=0)this.children[r]=new T(e)
else{let i=this.children[r]
i||(this.children[r]=i=new T(null)),i.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null
const t=e.readBits(this.rangeLength)
return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()]
if(!t)throw new o("invalid Huffman data")
return t.decodeNode(e)}}class M{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new T(null)
for(let r=0,i=e.length;r<i;r++){const t=e[r]
t.prefixLength>0&&this.rootNode.buildTree(t,t.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length
let r=0
for(let c=0;c<t;c++)r=Math.max(r,e[c].prefixLength)
const i=new Uint32Array(r+1)
for(let c=0;c<t;c++)i[e[c].prefixLength]++
let n,s,a,o=1,l=0
for(i[0]=0;o<=r;){for(l=l+i[o-1]<<1,n=l,s=0;s<t;)a=e[s],a.prefixLength===o&&(a.prefixCode=n,n++),s++
o++}}}const I={}
function F(e){let t,r=I[e]
if(r)return r
switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]]
break
case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]]
break
case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]]
break
case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]]
break
case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]]
break
case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]]
break
case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]]
break
case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]]
break
case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]]
break
case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]]
break
case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]]
break
case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]]
break
case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]]
break
case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]]
break
case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]]
break
default:throw new o(`standard table B.${e} does not exist`)}for(let i=0,n=t.length;i<n;i++)t[i]=new E(t[i])
return r=new M(t,!0),I[e]=r,r}class N{constructor(e,t,r){this.data=e,this.start=t,this.end=r,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new o("end of data while reading bit")
this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1
return this.shift--,e}readBits(e){let t,r=0
for(t=e-1;t>=0;t--)r|=this.readBit()<<t
return r}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function R(e,t,r){let i=0
for(let n=0,s=t.length;n<s;n++){const s=r[t[n]]
if(s){if(e===i)return s
i++}}throw new o("can't find custom Huffman table")}function D(e,t,r){const i=[]
for(let n=0;n<r;n++){const r=new Uint8Array(t)
i.push(r)
for(let i=0;i<t;i++)r[i]=e.readBit()
e.byteAlign()}return i}function j(e,t,r,i){const n={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:i},s=new a.CCITTFaxDecoder(e,n),o=[]
let l,c=!1
for(let a=0;a<r;a++){const e=new Uint8Array(t)
o.push(e)
let r=-1
for(let i=0;i<t;i++)r<0&&(l=s.readNextChar(),-1===l&&(l=0,c=!0),r=7),e[i]=l>>r&1,r--}if(i&&!c){const e=5
for(let t=0;t<e&&-1!==s.readNextChar();t++);}return o}t.Jbig2Image=class{parseChunks(e){return function(e){const t=new O
for(let r=0,i=e.length;r<i;r++){const i=e[r]
P(S({},i.data,i.start,i.end),t)}return t.buffer}(e)}parse(e){throw new Error("Not implemented: Jbig2Image.parse")}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0
const r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}]
t.ArithmeticDecoder=class{constructor(e,t,r){this.data=e,this.bp=t,this.dataEnd=r,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const e=this.data
let t=this.bp
255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let i=e[t]>>1,n=1&e[t]
const s=r[i],a=s.qe
let o,l=this.a-a
if(this.chigh<a)l<a?(l=a,o=n,i=s.nmps):(l=a,o=1^n,1===s.switchFlag&&(n=o),i=s.nlps)
else{if(this.chigh-=a,32768&l)return this.a=l,n
l<a?(o=1^n,1===s.switchFlag&&(n=o),i=s.nlps):(o=n,i=s.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(!(32768&l))
return this.a=l,e[t]=i<<1|n,o}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0
var i=r(18),n=r(4),s=r(27),a=r(2)
class o extends i.DecodeStream{constructor(e,t,r){let i
for(;-1!==(i=e.getByte());)if(255===i){e.skip(-1)
break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=r}get bytes(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return
const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode")
if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){const r=this.dict.get("BPC","BitsPerComponent")||8,i=t.length,n=new Int32Array(i)
let s=!1
const a=(1<<r)-1
for(let e=0;e<i;e+=2)n[e]=256*(t[e+1]-t[e])|0,n[e+1]=t[e]*a|0,256===n[e]&&0===n[e+1]||(s=!0)
s&&(e.decodeTransform=n)}if(this.params instanceof n.Dict){const t=this.params.get("ColorTransform")
Number.isInteger(t)&&(e.colorTransform=t)}const r=new s.JpegImage(e)
r.parse(this.bytes)
const i=r.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0})
this.buffer=i,this.bufferLength=i.length,this.eof=!0}}t.JpegStream=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0
var i=r(2),n=r(28),s=r(3)
class a extends i.BaseException{constructor(e){super(`JPEG error: ${e}`,"JpegError")}}class o extends i.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class l extends i.BaseException{constructor(e){super(e,"EOIMarkerError")}}const c=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),u=4017,d=799,h=3406,p=2276,f=1567,m=3784,g=5793,b=2896
function y(e,t){let r,i,n=0,s=16
for(;s>0&&!e[s-1];)s--
const a=[{children:[],index:0}]
let o,l=a[0]
for(r=0;r<s;r++){for(i=0;i<e[r];i++){for(l=a.pop(),l.children[l.index]=t[n];l.index>0;)l=a.pop()
for(l.index++,a.push(l);a.length<=r;)a.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o
n++}r+1<s&&(a.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o)}return a[0].children}function v(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function w(e,t,r,n,u,d,h,p,f,m=!1){const g=r.mcusPerLine,b=r.progressive,y=t
let w=0,x=0
function _(){if(x>0)return x--,w>>x&1
if(w=e[t++],255===w){const i=e[t++]
if(i){if(220===i&&m){t+=2
const i=(0,s.readUint16)(e,t)
if(t+=2,i>0&&i!==r.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",i)}else if(217===i){if(m){const e=T*(8===r.precision?8:0)
if(e>0&&Math.round(r.scanLines/e)>=5)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new l("Found EOI marker (0xFFD9) while parsing scan data")}throw new a(`unexpected marker ${(w<<8|i).toString(16)}`)}}return x=7,w>>>7}function k(e){let t=e
for(;;){switch(t=t[_()],typeof t){case"number":return t
case"object":continue}throw new a("invalid huffman sequence")}}function A(e){let t=0
for(;e>0;)t=t<<1|_(),e--
return t}function C(e){if(1===e)return 1===_()?1:-1
const t=A(e)
return t>=1<<e-1?t:t+(-1<<e)+1}let P=0
let O,E=0
let T=0
function M(e,t,r,i,n){const s=r%g
T=(r/g|0)*e.v+i
const a=s*e.h+n
t(e,v(e,T,a))}function I(e,t,r){T=r/e.blocksPerLine|0
const i=r%e.blocksPerLine
t(e,v(e,T,i))}const F=n.length
let N,R,D,j,L,B
B=b?0===d?0===p?function(e,t){const r=k(e.huffmanTableDC),i=0===r?0:C(r)<<f
e.blockData[t]=e.pred+=i}:function(e,t){e.blockData[t]|=_()<<f}:0===p?function(e,t){if(P>0)return void P--
let r=d
const i=h
for(;r<=i;){const i=k(e.huffmanTableAC),n=15&i,s=i>>4
if(0===n){if(s<15){P=A(s)+(1<<s)-1
break}r+=16
continue}r+=s
const a=c[r]
e.blockData[t+a]=C(n)*(1<<f),r++}}:function(e,t){let r=d
const i=h
let n,s,o=0
for(;r<=i;){const i=t+c[r],l=e.blockData[i]<0?-1:1
switch(E){case 0:if(s=k(e.huffmanTableAC),n=15&s,o=s>>4,0===n)o<15?(P=A(o)+(1<<o),E=4):(o=16,E=1)
else{if(1!==n)throw new a("invalid ACn encoding")
O=C(n),E=o?2:3}continue
case 1:case 2:e.blockData[i]?e.blockData[i]+=l*(_()<<f):(o--,0===o&&(E=2===E?3:0))
break
case 3:e.blockData[i]?e.blockData[i]+=l*(_()<<f):(e.blockData[i]=O<<f,E=0)
break
case 4:e.blockData[i]&&(e.blockData[i]+=l*(_()<<f))}r++}4===E&&(P--,0===P&&(E=0))}:function(e,t){const r=k(e.huffmanTableDC),i=0===r?0:C(r)
e.blockData[t]=e.pred+=i
let n=1
for(;n<64;){const r=k(e.huffmanTableAC),i=15&r,s=r>>4
if(0===i){if(s<15)break
n+=16
continue}n+=s
const a=c[n]
e.blockData[t+a]=C(i),n++}}
let $,z=0
const U=1===F?n[0].blocksPerLine*n[0].blocksPerColumn:g*r.mcusPerColumn
let q,H
for(;z<=U;){const r=u?Math.min(U-z,u):U
if(r>0){for(R=0;R<F;R++)n[R].pred=0
if(P=0,1===F)for(N=n[0],L=0;L<r;L++)I(N,B,z),z++
else for(L=0;L<r;L++){for(R=0;R<F;R++)for(N=n[R],q=N.h,H=N.v,D=0;D<H;D++)for(j=0;j<q;j++)M(N,B,z,D,j)
z++}}if(x=0,$=S(e,t),!$)break
if($.invalid){const e=r>0?"unexpected":"excessive";(0,i.warn)(`decodeScan - ${e} MCU data, current marker is: ${$.invalid}`),t=$.offset}if(!($.marker>=65488&&$.marker<=65495))break
t+=2}return t-y}function x(e,t,r){const i=e.quantizationTable,n=e.blockData
let s,o,l,c,y,v,w,x,_,S,k,A,C,P,O,E,T
if(!i)throw new a("missing required Quantization Table.")
for(let a=0;a<64;a+=8)if(_=n[t+a],S=n[t+a+1],k=n[t+a+2],A=n[t+a+3],C=n[t+a+4],P=n[t+a+5],O=n[t+a+6],E=n[t+a+7],_*=i[a],S|k|A|C|P|O|E){S*=i[a+1],k*=i[a+2],A*=i[a+3],C*=i[a+4],P*=i[a+5],O*=i[a+6],E*=i[a+7],s=g*_+128>>8,o=g*C+128>>8,l=k,c=O,y=b*(S-E)+128>>8,x=b*(S+E)+128>>8,v=A<<4,w=P<<4,s=s+o+1>>1,o=s-o,T=l*m+c*f+128>>8,l=l*f-c*m+128>>8,c=T,y=y+w+1>>1,w=y-w,x=x+v+1>>1,v=x-v,s=s+c+1>>1,c=s-c,o=o+l+1>>1,l=o-l,T=y*p+x*h+2048>>12,y=y*h-x*p+2048>>12
x=T,T=v*d+w*u+2048>>12,v=v*u-w*d+2048>>12,w=T,r[a]=s+x,r[a+7]=s-x,r[a+1]=o+w,r[a+6]=o-w,r[a+2]=l+v,r[a+5]=l-v,r[a+3]=c+y,r[a+4]=c-y}else T=g*_+512>>10,r[a]=T,r[a+1]=T,r[a+2]=T,r[a+3]=T,r[a+4]=T,r[a+5]=T,r[a+6]=T,r[a+7]=T
for(let a=0;a<8;++a)if(_=r[a],S=r[a+8],k=r[a+16],A=r[a+24],C=r[a+32],P=r[a+40],O=r[a+48],E=r[a+56],S|k|A|C|P|O|E){s=g*_+2048>>12,o=g*C+2048>>12,l=k,c=O,y=b*(S-E)+2048>>12,x=b*(S+E)+2048>>12,v=A,w=P,s=4112+(s+o+1>>1),o=s-o,T=l*m+c*f+2048>>12,l=l*f-c*m+2048>>12,c=T,y=y+w+1>>1,w=y-w,x=x+v+1>>1,v=x-v,s=s+c+1>>1,c=s-c,o=o+l+1>>1,l=o-l,T=y*p+x*h+2048>>12,y=y*h-x*p+2048>>12,x=T,T=v*d+w*u+2048>>12,v=v*u-w*d+2048>>12,w=T,_=s+x,E=s-x,S=o+w
O=o-w,k=l+v,P=l-v,A=c+y,C=c-y,_<16?_=0:_>=4080?_=255:_>>=4,S<16?S=0:S>=4080?S=255:S>>=4,k<16?k=0:k>=4080?k=255:k>>=4,A<16?A=0:A>=4080?A=255:A>>=4,C<16?C=0:C>=4080?C=255:C>>=4,P<16?P=0:P>=4080?P=255:P>>=4,O<16?O=0:O>=4080?O=255:O>>=4,E<16?E=0:E>=4080?E=255:E>>=4,n[t+a]=_,n[t+a+8]=S,n[t+a+16]=k,n[t+a+24]=A,n[t+a+32]=C,n[t+a+40]=P,n[t+a+48]=O,n[t+a+56]=E}else T=g*_+8192>>14,T=T<-2040?0:T>=2024?255:T+2056>>4,n[t+a]=T,n[t+a+8]=T,n[t+a+16]=T,n[t+a+24]=T,n[t+a+32]=T,n[t+a+40]=T,n[t+a+48]=T,n[t+a+56]=T}function _(e,t){const r=t.blocksPerLine,i=t.blocksPerColumn,n=new Int16Array(64)
for(let s=0;s<i;s++)for(let e=0;e<r;e++){x(t,v(t,s,e),n)}return t.blockData}function S(e,t,r=t){const i=e.length-1
let n=r<t?r:t
if(t>=i)return null
const a=(0,s.readUint16)(e,t)
if(a>=65472&&a<=65534)return{invalid:null,marker:a,offset:t}
let o=(0,s.readUint16)(e,n)
for(;!(o>=65472&&o<=65534);){if(++n>=i)return null
o=(0,s.readUint16)(e,n)}return{invalid:a.toString(16),marker:o,offset:n}}t.JpegImage=class{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}parse(e,{dnlScanLines:t=null}={}){function r(){const t=(0,s.readUint16)(e,h)
h+=2
let r=h+t-2
const n=S(e,r,h)
n?.invalid&&((0,i.warn)("readDataBlock - incorrect length, current marker is: "+n.invalid),r=n.offset)
const a=e.subarray(h,r)
return h+=a.length,a}function n(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV)
for(const i of e.components){const n=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),s=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),a=t*i.h,o=64*(r*i.v)*(a+1)
i.blockData=new Int16Array(o),i.blocksPerLine=n,i.blocksPerColumn=s}e.mcusPerLine=t,e.mcusPerColumn=r}let u,d,h=0,p=null,f=null,m=0
const g=[],b=[],v=[]
let x=(0,s.readUint16)(e,h)
if(h+=2,65496!==x)throw new a("SOI not found")
x=(0,s.readUint16)(e,h),h+=2
e:for(;65497!==x;){let _,A,C
switch(x){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const P=r()
65504===x&&74===P[0]&&70===P[1]&&73===P[2]&&70===P[3]&&0===P[4]&&(p={version:{major:P[5],minor:P[6]},densityUnits:P[7],xDensity:P[8]<<8|P[9],yDensity:P[10]<<8|P[11],thumbWidth:P[12],thumbHeight:P[13],thumbData:P.subarray(14,14+3*P[12]*P[13])}),65518===x&&65===P[0]&&100===P[1]&&111===P[2]&&98===P[3]&&101===P[4]&&(f={version:P[5]<<8|P[6],flags0:P[7]<<8|P[8],flags1:P[9]<<8|P[10],transformCode:P[11]})
break
case 65499:const O=(0,s.readUint16)(e,h)
h+=2
const E=O+h-2
let T
for(;h<E;){const t=e[h++],r=new Uint16Array(64)
if(t>>4){if(t>>4!=1)throw new a("DQT - invalid table spec")
for(A=0;A<64;A++)T=c[A],r[T]=(0,s.readUint16)(e,h),h+=2}else for(A=0;A<64;A++)T=c[A],r[T]=e[h++]
g[15&t]=r}break
case 65472:case 65473:case 65474:if(u)throw new a("Only single frame JPEGs supported")
h+=2,u={},u.extended=65473===x,u.progressive=65474===x,u.precision=e[h++]
const M=(0,s.readUint16)(e,h)
h+=2,u.scanLines=t||M,u.samplesPerLine=(0,s.readUint16)(e,h),h+=2,u.components=[],u.componentIds={}
const I=e[h++]
let F=0,N=0
for(_=0;_<I;_++){const t=e[h],r=e[h+1]>>4,i=15&e[h+1]
F<r&&(F=r),N<i&&(N=i)
const n=e[h+2]
C=u.components.push({h:r,v:i,quantizationId:n,quantizationTable:null}),u.componentIds[t]=C-1,h+=3}u.maxH=F,u.maxV=N,n(u)
break
case 65476:const R=(0,s.readUint16)(e,h)
for(h+=2,_=2;_<R;){const t=e[h++],r=new Uint8Array(16)
let i=0
for(A=0;A<16;A++,h++)i+=r[A]=e[h]
const n=new Uint8Array(i)
for(A=0;A<i;A++,h++)n[A]=e[h]
_+=17+i,(t>>4?b:v)[15&t]=y(r,n)}break
case 65501:h+=2,d=(0,s.readUint16)(e,h),h+=2
break
case 65498:const D=1==++m&&!t
h+=2
const j=e[h++],L=[]
for(_=0;_<j;_++){const t=e[h++],r=u.componentIds[t],i=u.components[r]
i.index=t
const n=e[h++]
i.huffmanTableDC=v[n>>4],i.huffmanTableAC=b[15&n],L.push(i)}const B=e[h++],$=e[h++],z=e[h++]
try{const t=w(e,h,u,L,d,B,$,z>>4,15&z,D)
h+=t}catch(k){if(k instanceof o)return(0,i.warn)(`${k.message} -- attempting to re-parse the JPEG image.`),this.parse(e,{dnlScanLines:k.scanLines})
if(k instanceof l){(0,i.warn)(`${k.message} -- ignoring the rest of the image data.`)
break e}throw k}break
case 65500:h+=4
break
case 65535:255!==e[h]&&h--
break
default:const U=S(e,h-2,h-3)
if(U?.invalid){(0,i.warn)("JpegImage.parse - unexpected data, current marker is: "+U.invalid),h=U.offset
break}if(!U||h>=e.length-1){(0,i.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).")
break e}throw new a("JpegImage.parse - unknown marker: "+x.toString(16))}x=(0,s.readUint16)(e,h),h+=2}this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=p,this.adobe=f,this.components=[]
for(const i of u.components){const e=g[i.quantizationId]
e&&(i.quantizationTable=e),this.components.push({index:i.index,output:_(0,i),scaleX:i.h/u.maxH,scaleY:i.v/u.maxV,blocksPerLine:i.blocksPerLine,blocksPerColumn:i.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,r=!1){const i=this.width/e,n=this.height/t
let s,a,o,l,c,u,d,h,p,f,m,g=0
const b=this.components.length,y=e*t*b,v=new Uint8ClampedArray(y),w=new Uint32Array(e),x=4294967288
let _
for(d=0;d<b;d++){if(s=this.components[d],a=s.scaleX*i,o=s.scaleY*n,g=d,m=s.output,l=s.blocksPerLine+1<<3,a!==_){for(c=0;c<e;c++)h=0|c*a,w[c]=(h&x)<<3|7&h
_=a}for(u=0;u<t;u++)for(h=0|u*o,f=l*(h&x)|(7&h)<<3,c=0;c<e;c++)v[g]=m[f+w[c]],g+=b}let S=this._decodeTransform
if(r||4!==b||S||(S=new Int32Array([-256,255,-256,255,-256,255,-256,255])),S)for(d=0;d<y;)for(h=0,p=0;h<b;h++,d++,p+=2)v[d]=(v[d]*S[p]>>8)+S[p+1]
return v}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,r,i
for(let n=0,s=e.length;n<s;n+=3)t=e[n],r=e[n+1],i=e[n+2],e[n]=t-179.456+1.402*i,e[n+1]=t+135.459-.344*r-.714*i,e[n+2]=t-226.816+1.772*r
return e}_convertYccToRgba(e,t){for(let r=0,i=0,n=e.length;r<n;r+=3,i+=4){const n=e[r],s=e[r+1],a=e[r+2]
t[i]=n-179.456+1.402*a,t[i+1]=n+135.459-.344*s-.714*a,t[i+2]=n-226.816+1.772*s,t[i+3]=255}return t}_convertYcckToRgb(e){let t,r,i,n,s=0
for(let a=0,o=e.length;a<o;a+=4)t=e[a],r=e[a+1],i=e[a+2],n=e[a+3],e[s++]=r*(-660635669420364e-19*r+.000437130475926232*i-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+i*(-.000957964378445773*i+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),e[s++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*i+.000659397001245577*t+.000426105652938837*n-.176491792462875)+i*(-.000778269941513683*i+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),e[s++]=r*(-.000570115196973677*r-263409051004589e-19*i+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+i*(-153496057440975e-19*i-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407)
return e.subarray(0,s)}_convertYcckToRgba(e){for(let t=0,r=e.length;t<r;t+=4){const r=e[t],i=e[t+1],n=e[t+2],s=e[t+3]
e[t]=i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*r+.00048449797120281*s-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*r-.00477271405408747*s+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*s+.48357088451265)+s*(-.000336197177618394*s+.484791561490776),e[t+1]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*r+.000426105652938837*s-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*r+.000770482631801132*s-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*s+.25802910206845)+s*(-.000318913117588328*s-.213742400323665),e[t+2]=i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*r-.00288260236853442*s+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*r+.000560833691242812*s-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*s+.116935020465145)+s*(-.000343531996510555*s+.24165260232407),e[t+3]=255}return e}_convertYcckToCmyk(e){let t,r,i
for(let n=0,s=e.length;n<s;n+=4)t=e[n],r=e[n+1],i=e[n+2],e[n]=434.456-t-1.402*i,e[n+1]=119.541-t+.344*r+.714*i,e[n+2]=481.816-t-1.772*r
return e}_convertCmykToRgb(e){let t,r,i,n,s=0
for(let a=0,o=e.length;a<o;a+=4)t=e[a],r=e[a+1],i=e[a+2],n=e[a+3],e[s++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*i+.003264231057537806*n-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*i-.0002748769067499491*n-.02155688794978967)+i*(-3878099212869363e-20*i-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254),e[s++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*i+.0004791864687436512*n-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*i+.0020200308977307156*n-.7488052167015494)+i*(6834815998235662e-20*i+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168),e[s++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*i-36729317476630422e-22*n-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*i+.0007782692450036253*n-.44015232367526463)+i*(5.068882914068769e-7*i+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144)
return e.subarray(0,s)}_convertCmykToRgba(e){for(let t=0,r=e.length;t<r;t+=4){const r=e[t],i=e[t+1],n=e[t+2],s=e[t+3]
e[t]=255+r*(-6747147073602441e-20*r+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*s-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*s-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*s+.0686742238595345)-s*(.0003361971776183937*s+.7430659151342254),e[t+1]=255+r*(.00013596372813588848*r+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*s-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*s-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*s-.09751927774728933)-s*(.0003189131175883281*s+.7364883807733168),e[t+2]=255+r*(13598650411385307e-21*r+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*s-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*s-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*s-.7591454649749609)-s*(.0003435319965105553*s+.7063770186160144),e[t+3]=255}return e}getData({width:e,height:t,forceRGBA:r=!1,forceRGB:i=!1,isSourcePDF:s=!1}){if(this.numComponents>4)throw new a("Unsupported color mode")
const o=this._getLinearizedBlockData(e,t,s)
if(1===this.numComponents&&(r||i)){const e=o.length*(r?4:3),t=new Uint8ClampedArray(e)
let i=0
if(r)(0,n.grayToRGBA)(o,new Uint32Array(t.buffer))
else for(const r of o)t[i++]=r,t[i++]=r,t[i++]=r
return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(r){const e=new Uint8ClampedArray(o.length/3*4)
return this._convertYccToRgba(o,e)}return this._convertYccToRgb(o)}if(4===this.numComponents){if(this._isColorConversionNeeded)return r?this._convertYcckToRgba(o):i?this._convertYcckToRgb(o):this._convertYcckToCmyk(o)
if(r)return this._convertCmykToRgba(o)
if(i)return this._convertCmykToRgb(o)}return o}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=n,t.convertToRGBA=function(e){switch(e.kind){case i.ImageKind.GRAYSCALE_1BPP:return n(e)
case i.ImageKind.RGB_24BPP:return function({src:e,srcPos:t=0,dest:r,destPos:n=0,width:s,height:a}){let o=0
const l=e.length>>2,c=new Uint32Array(e.buffer,t,l)
if(i.FeatureTest.isLittleEndian){for(;o<l-2;o+=3,n+=4){const e=c[o],t=c[o+1],i=c[o+2]
r[n]=4278190080|e,r[n+1]=e>>>24|t<<8|4278190080,r[n+2]=t>>>16|i<<16|4278190080,r[n+3]=i>>>8|4278190080}for(let t=4*o,i=e.length;t<i;t+=3)r[n++]=e[t]|e[t+1]<<8|e[t+2]<<16|4278190080}else{for(;o<l-2;o+=3,n+=4){const e=c[o],t=c[o+1],i=c[o+2]
r[n]=255|e,r[n+1]=e<<24|t>>>8|255,r[n+2]=t<<16|i>>>16|255,r[n+3]=i<<8|255}for(let t=4*o,i=e.length;t<i;t+=3)r[n++]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|255}return{srcPos:t,destPos:n}}(e)}return null},t.grayToRGBA=function(e,t){if(i.FeatureTest.isLittleEndian)for(let r=0,i=e.length;r<i;r++)t[r]=65793*e[r]|4278190080
else for(let r=0,i=e.length;r<i;r++)t[r]=16843008*e[r]|255}
var i=r(2)
function n({src:e,srcPos:t=0,dest:r,width:n,height:s,nonBlackColor:a=4294967295,inverseDecode:o=!1}){const l=i.FeatureTest.isLittleEndian?4278190080:255,[c,u]=o?[a,l]:[l,a],d=n>>3,h=7&n,p=e.length
r=new Uint32Array(r.buffer)
let f=0
for(let i=0;i<s;i++){for(const n=t+d;t<n;t++){const i=t<p?e[t]:255
r[f++]=128&i?u:c,r[f++]=64&i?u:c,r[f++]=32&i?u:c,r[f++]=16&i?u:c,r[f++]=8&i?u:c,r[f++]=4&i?u:c,r[f++]=2&i?u:c,r[f++]=1&i?u:c}if(0===h)continue
const i=t<p?e[t++]:255
for(let e=0;e<h;e++)r[f++]=i&1<<7-e?u:c}return{srcPos:t,destPos:f}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0
var i=r(18),n=r(30),s=r(2)
class a extends i.DecodeStream{constructor(e,t,r){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=r}get bytes(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return
const e=new n.JpxImage
e.parse(this.bytes)
const t=e.width,r=e.height,i=e.componentsCount,s=e.tiles.length
if(1===s)this.buffer=e.tiles[0].items
else{const n=new Uint8ClampedArray(t*r*i)
for(let r=0;r<s;r++){const s=e.tiles[r],a=s.width,o=s.height,l=s.left,c=s.top,u=s.items
let d=0,h=(t*c+l)*i
const p=t*i,f=a*i
for(let e=0;e<o;e++){const e=u.subarray(d,d+f)
n.set(e,h),d+=f,h+=p}}this.buffer=n}this.bufferLength=this.buffer.length,this.eof=!0}}t.JpxStream=a},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0
var i=r(2),n=r(3),s=r(25)
class a extends i.BaseException{constructor(e){super(`JPX error: ${e}`,"JpxError")}}const o={LL:0,LH:1,HL:1,HH:2}
function l(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function c(e,t){const r=e.SIZ,i=[]
let n
const s=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),a=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz)
for(let o=0;o<a;o++)for(let e=0;e<s;e++)n={},n.tx0=Math.max(r.XTOsiz+e*r.XTsiz,r.XOsiz),n.ty0=Math.max(r.YTOsiz+o*r.YTsiz,r.YOsiz),n.tx1=Math.min(r.XTOsiz+(e+1)*r.XTsiz,r.Xsiz),n.ty1=Math.min(r.YTOsiz+(o+1)*r.YTsiz,r.Ysiz),n.width=n.tx1-n.tx0,n.height=n.ty1-n.ty0,n.components=[],i.push(n)
e.tiles=i
for(let o=0,l=r.Csiz;o<l;o++){const e=t[o]
for(let t=0,r=i.length;t<r;t++){const r={}
n=i[t],r.tcx0=Math.ceil(n.tx0/e.XRsiz),r.tcy0=Math.ceil(n.ty0/e.YRsiz),r.tcx1=Math.ceil(n.tx1/e.XRsiz),r.tcy1=Math.ceil(n.ty1/e.YRsiz),r.width=r.tcx1-r.tcx0,r.height=r.tcy1-r.tcy0,n.components[o]=r}}}function u(e,t,r){const i=t.codingStyleParameters,n={}
return i.entropyCoderWithCustomPrecincts?(n.PPx=i.precinctsSizes[r].PPx,n.PPy=i.precinctsSizes[r].PPy):(n.PPx=15,n.PPy=15),n.xcb_=r>0?Math.min(i.xcb,n.PPx-1):Math.min(i.xcb,n.PPx),n.ycb_=r>0?Math.min(i.ycb,n.PPy-1):Math.min(i.ycb,n.PPy),n}function d(e,t,r){const i=1<<r.PPx,n=1<<r.PPy,s=0===t.resLevel,a=1<<r.PPx+(s?0:-1),o=1<<r.PPy+(s?0:-1),l=t.trx1>t.trx0?Math.ceil(t.trx1/i)-Math.floor(t.trx0/i):0,c=t.try1>t.try0?Math.ceil(t.try1/n)-Math.floor(t.try0/n):0,u=l*c
t.precinctParameters={precinctWidth:i,precinctHeight:n,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:a,precinctHeightInSubband:o}}function h(e,t,r){const i=r.xcb_,n=r.ycb_,s=1<<i,a=1<<n,o=t.tbx0>>i,l=t.tby0>>n,c=t.tbx1+s-1>>i,u=t.tby1+a-1>>n,d=t.resolution.precinctParameters,h=[],p=[]
let f,m,g,b
for(m=l;m<u;m++)for(f=o;f<c;f++){g={cbx:f,cby:m,tbx0:s*f,tby0:a*m,tbx1:s*(f+1),tby1:a*(m+1)},g.tbx0_=Math.max(t.tbx0,g.tbx0),g.tby0_=Math.max(t.tby0,g.tby0),g.tbx1_=Math.min(t.tbx1,g.tbx1),g.tby1_=Math.min(t.tby1,g.tby1)
if(b=Math.floor((g.tbx0_-t.tbx0)/d.precinctWidthInSubband)+Math.floor((g.tby0_-t.tby0)/d.precinctHeightInSubband)*d.numprecinctswide,g.precinctNumber=b,g.subbandType=t.type,g.Lblock=3,g.tbx1_<=g.tbx0_||g.tby1_<=g.tby0_)continue
h.push(g)
let e=p[b]
void 0!==e?(f<e.cbxMin?e.cbxMin=f:f>e.cbxMax&&(e.cbxMax=f),m<e.cbyMin?e.cbxMin=m:m>e.cbyMax&&(e.cbyMax=m)):p[b]=e={cbxMin:f,cbyMin:m,cbxMax:f,cbyMax:m},g.precinct=e}t.codeblockParameters={codeblockWidth:i,codeblockHeight:n,numcodeblockwide:c-o+1,numcodeblockhigh:u-l+1},t.codeblocks=h,t.precincts=p}function p(e,t,r){const i=[],n=e.subbands
for(let s=0,a=n.length;s<a;s++){const e=n[s].codeblocks
for(let r=0,n=e.length;r<n;r++){const n=e[r]
n.precinctNumber===t&&i.push(n)}}return{layerNumber:r,codeblocks:i}}function f(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz
let o=0
for(let a=0;a<s;a++)o=Math.max(o,i.components[a].codingStyleParameters.decompositionLevelsCount)
let l=0,c=0,u=0,d=0
this.nextPacket=function(){for(;l<n;l++){for(;c<=o;c++){for(;u<s;u++){const e=i.components[u]
if(c>e.codingStyleParameters.decompositionLevelsCount)continue
const t=e.resolutions[c],r=t.precinctParameters.numprecincts
for(;d<r;){const e=p(t,d,l)
return d++,e}d=0}u=0}c=0}throw new a("Out of packets")}}function m(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz
let o=0
for(let a=0;a<s;a++)o=Math.max(o,i.components[a].codingStyleParameters.decompositionLevelsCount)
let l=0,c=0,u=0,d=0
this.nextPacket=function(){for(;l<=o;l++){for(;c<n;c++){for(;u<s;u++){const e=i.components[u]
if(l>e.codingStyleParameters.decompositionLevelsCount)continue
const t=e.resolutions[l],r=t.precinctParameters.numprecincts
for(;d<r;){const e=p(t,d,c)
return d++,e}d=0}u=0}c=0}throw new a("Out of packets")}}function g(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz
let o,l,c,u,d=0
for(c=0;c<s;c++){const e=i.components[c]
d=Math.max(d,e.codingStyleParameters.decompositionLevelsCount)}const h=new Int32Array(d+1)
for(l=0;l<=d;++l){let e=0
for(c=0;c<s;++c){const t=i.components[c].resolutions
l<t.length&&(e=Math.max(e,t[l].precinctParameters.numprecincts))}h[l]=e}o=0,l=0,c=0,u=0,this.nextPacket=function(){for(;l<=d;l++){for(;u<h[l];u++){for(;c<s;c++){const e=i.components[c]
if(l>e.codingStyleParameters.decompositionLevelsCount)continue
const t=e.resolutions[l],r=t.precinctParameters.numprecincts
if(!(u>=r)){for(;o<n;){const e=p(t,u,o)
return o++,e}o=0}}c=0}u=0}throw new a("Out of packets")}}function b(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz,o=w(i),l=o
let c=0,u=0,d=0,h=0,f=0
this.nextPacket=function(){for(;f<l.maxNumHigh;f++){for(;h<l.maxNumWide;h++){for(;d<s;d++){const e=i.components[d],t=e.codingStyleParameters.decompositionLevelsCount
for(;u<=t;u++){const t=e.resolutions[u],r=o.components[d].resolutions[u],i=v(h,f,r,l,t)
if(null!==i){for(;c<n;){const e=p(t,i,c)
return c++,e}c=0}}u=0}d=0}h=0}throw new a("Out of packets")}}function y(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz,o=w(i)
let l=0,c=0,u=0,d=0,h=0
this.nextPacket=function(){for(;u<s;++u){const e=i.components[u],t=o.components[u],r=e.codingStyleParameters.decompositionLevelsCount
for(;h<t.maxNumHigh;h++){for(;d<t.maxNumWide;d++){for(;c<=r;c++){const r=e.resolutions[c],i=t.resolutions[c],s=v(d,h,i,t,r)
if(null!==s){for(;l<n;){const e=p(r,s,l)
return l++,e}l=0}}c=0}d=0}h=0}throw new a("Out of packets")}}function v(e,t,r,i,n){const s=e*i.minWidth,a=t*i.minHeight
if(s%r.width!=0||a%r.height!=0)return null
const o=a/r.width*n.precinctParameters.numprecinctswide
return s/r.height+o}function w(e){const t=e.components.length
let r=Number.MAX_VALUE,i=Number.MAX_VALUE,n=0,s=0
const a=new Array(t)
for(let o=0;o<t;o++){const t=e.components[o],l=t.codingStyleParameters.decompositionLevelsCount,c=new Array(l+1)
let u=Number.MAX_VALUE,d=Number.MAX_VALUE,h=0,p=0,f=1
for(let e=l;e>=0;--e){const r=t.resolutions[e],i=f*r.precinctParameters.precinctWidth,n=f*r.precinctParameters.precinctHeight
u=Math.min(u,i),d=Math.min(d,n),h=Math.max(h,r.precinctParameters.numprecinctswide),p=Math.max(p,r.precinctParameters.numprecinctshigh),c[e]={width:i,height:n},f<<=1}r=Math.min(r,u),i=Math.min(i,d),n=Math.max(n,h),s=Math.max(s,p),a[o]={resolutions:c,minWidth:u,minHeight:d,maxNumWide:h,maxNumHigh:p}}return{components:a,minWidth:r,minHeight:i,maxNumWide:n,maxNumHigh:s}}function x(e){const t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=t.Csiz
for(let a=0;a<n;a++){const e=i.components[a],t=e.codingStyleParameters.decompositionLevelsCount,r=[],n=[]
for(let i=0;i<=t;i++){const s=u(0,e,i),a={},o=1<<t-i
let l
if(a.trx0=Math.ceil(e.tcx0/o),a.try0=Math.ceil(e.tcy0/o),a.trx1=Math.ceil(e.tcx1/o),a.try1=Math.ceil(e.tcy1/o),a.resLevel=i,d(0,a,s),r.push(a),0===i)l={},l.type="LL",l.tbx0=Math.ceil(e.tcx0/o),l.tby0=Math.ceil(e.tcy0/o),l.tbx1=Math.ceil(e.tcx1/o),l.tby1=Math.ceil(e.tcy1/o),l.resolution=a,h(0,l,s),n.push(l),a.subbands=[l]
else{const r=1<<t-i+1,o=[]
l={},l.type="HL",l.tbx0=Math.ceil(e.tcx0/r-.5),l.tby0=Math.ceil(e.tcy0/r),l.tbx1=Math.ceil(e.tcx1/r-.5),l.tby1=Math.ceil(e.tcy1/r),l.resolution=a,h(0,l,s),n.push(l),o.push(l),l={},l.type="LH",l.tbx0=Math.ceil(e.tcx0/r),l.tby0=Math.ceil(e.tcy0/r-.5),l.tbx1=Math.ceil(e.tcx1/r),l.tby1=Math.ceil(e.tcy1/r-.5),l.resolution=a,h(0,l,s),n.push(l),o.push(l),l={},l.type="HH",l.tbx0=Math.ceil(e.tcx0/r-.5),l.tby0=Math.ceil(e.tcy0/r-.5),l.tbx1=Math.ceil(e.tcx1/r-.5),l.tby1=Math.ceil(e.tcy1/r-.5),l.resolution=a,h(0,l,s),n.push(l),o.push(l)
a.subbands=o}}e.resolutions=r,e.subbands=n}const s=i.codingStyleDefaultParameters.progressionOrder
switch(s){case 0:i.packetsIterator=new f(e)
break
case 1:i.packetsIterator=new m(e)
break
case 2:i.packetsIterator=new g(e)
break
case 3:i.packetsIterator=new b(e)
break
case 4:i.packetsIterator=new y(e)
break
default:throw new a(`Unsupported progression order ${s}`)}}function _(e,t,r,i){let s,o=0,l=0,c=!1
function u(e){for(;l<e;){const e=t[r+o]
o++,c?(s=s<<7|e,l+=7,c=!1):(s=s<<8|e,l+=8),255===e&&(c=!0)}return l-=e,s>>>l&(1<<e)-1}function d(e){return 255===t[r+o-1]&&t[r+o]===e?(h(1),!0):255===t[r+o]&&t[r+o+1]===e&&(h(2),!0)}function h(e){o+=e}function p(){l=0,c&&(o++,c=!1)}function f(){if(0===u(1))return 1
if(0===u(1))return 2
let e=u(2)
return e<3?e+3:(e=u(5),e<31?e+6:(e=u(7),e+37))}const m=e.currentTile.index,g=e.tiles[m],b=e.COD.sopMarkerUsed,y=e.COD.ephMarkerUsed,v=g.packetsIterator
for(;o<i;){p(),b&&d(145)&&h(4)
const e=v.nextPacket()
if(!u(1))continue
const i=e.layerNumber,s=[]
let l
for(let t=0,r=e.codeblocks.length;t<r;t++){l=e.codeblocks[t]
let r=l.precinct
const o=l.cbx-r.cbxMin,c=l.cby-r.cbyMin
let d,h,p=!1,m=!1
if(void 0!==l.included)p=!!u(1)
else{let e
if(r=l.precinct,void 0!==r.inclusionTree)e=r.inclusionTree
else{const t=r.cbxMax-r.cbxMin+1,n=r.cbyMax-r.cbyMin+1
e=new P(t,n,i),h=new C(t,n),r.inclusionTree=e,r.zeroBitPlanesTree=h
for(let e=0;e<i;e++)if(0!==u(1))throw new a("Invalid tag tree")}if(e.reset(o,c,i))for(;;){if(!u(1)){e.incrementValue(i)
break}if(d=!e.nextLevel(),d){l.included=!0,p=m=!0
break}}}if(!p)continue
if(m){for(h=r.zeroBitPlanesTree,h.reset(o,c);;)if(u(1)){if(d=!h.nextLevel(),d)break}else h.incrementValue()
l.zeroBitPlanes=h.value}const g=f()
for(;u(1);)l.Lblock++
const b=(0,n.log2)(g),y=u((g<1<<b?b-1:b)+l.Lblock)
s.push({codeblock:l,codingpasses:g,dataLength:y})}for(p(),y&&d(146);s.length>0;){const e=s.shift()
l=e.codeblock,void 0===l.data&&(l.data=[]),l.data.push({data:t,start:r+o,end:r+o+e.dataLength,codingpasses:e.codingpasses}),o+=e.dataLength}}return o}function S(e,t,r,i,n,a,o,l,c){const u=i.tbx0,d=i.tby0,h=i.tbx1-i.tbx0,p=i.codeblocks,f="H"===i.type.charAt(0)?1:0,m="H"===i.type.charAt(1)?t:0
for(let g=0,b=p.length;g<b;++g){const r=p[g],b=r.tbx1_-r.tbx0_,y=r.tby1_-r.tby0_
if(0===b||0===y)continue
if(void 0===r.data)continue
const v=new O(b,y,r.subbandType,r.zeroBitPlanes,a)
let w=2
const x=r.data
let _,S,k,A=0,C=0
for(_=0,S=x.length;_<S;_++)k=x[_],A+=k.end-k.start,C+=k.codingpasses
const P=new Uint8Array(A)
let E=0
for(_=0,S=x.length;_<S;_++){k=x[_]
const e=k.data.subarray(k.start,k.end)
P.set(e,E),E+=e.length}const T=new s.ArithmeticDecoder(P,0,A)
for(v.setDecoder(T),_=0;_<C;_++){switch(w){case 0:v.runSignificancePropagationPass()
break
case 1:v.runMagnitudeRefinementPass()
break
case 2:v.runCleanupPass(),l&&v.checkSegmentationSymbol()}c&&v.reset(),w=(w+1)%3}let M=r.tbx0_-u+(r.tby0_-d)*h
const I=v.coefficentsSign,F=v.coefficentsMagnitude,N=v.bitsDecoded,R=o?0:.5
let D,j,L
E=0
const B="LL"!==i.type
for(_=0;_<y;_++){const r=2*(M/h|0)*(t-h)+f+m
for(D=0;D<b;D++){if(j=F[E],0!==j){j=(j+R)*n,0!==I[E]&&(j=-j),L=N[E]
e[B?r+(M<<1):M]=o&&L>=a?j:j*(1<<a-L)}M++,E++}M+=h-b}}}function k(e,t,r){const i=t.components[r],n=i.codingStyleParameters,s=i.quantizationParameters,a=n.decompositionLevelsCount,l=s.SPqcds,c=s.scalarExpounded,u=s.guardBits,d=n.segmentationSymbolUsed,h=n.resetContextProbabilities,p=e.components[r].precision,f=n.reversibleTransformation,m=f?new M:new T,g=[]
let b=0
for(let v=0;v<=a;v++){const e=i.resolutions[v],t=e.trx1-e.trx0,r=e.try1-e.try0,n=new Float32Array(t*r)
for(let i=0,s=e.subbands.length;i<s;i++){let r,s
c?(r=l[b].mu,s=l[b].epsilon,b++):(r=l[0].mu,s=l[0].epsilon+(v>0?1-v:0))
const a=e.subbands[i],m=o[a.type]
S(n,t,0,a,f?1:2**(p+m-s)*(1+r/2048),u+s-1,f,d,h)}g.push({width:t,height:r,items:n})}const y=m.calculate(g,i.tcx0,i.tcy0)
return{left:i.tcx0,top:i.tcy0,width:y.width,height:y.height,items:y.items}}function A(e,t){const r=e.SIZ.Csiz,i=e.tiles[t]
for(let n=0;n<r;n++){const t=i.components[n],r=void 0!==e.currentTile.QCC[n]?e.currentTile.QCC[n]:e.currentTile.QCD
t.quantizationParameters=r
const s=void 0!==e.currentTile.COC[n]?e.currentTile.COC[n]:e.currentTile.COD
t.codingStyleParameters=s}i.codingStyleDefaultParameters=e.currentTile.COD}t.JpxImage=class{constructor(){this.failOnCorruptedImage=!1}parse(e){if(65359===(0,n.readUint16)(e,0))return void this.parseCodestream(e,0,e.length)
const t=e.length
let r=0
for(;r<t;){let s=8,o=(0,n.readUint32)(e,r)
const l=(0,n.readUint32)(e,r+4)
if(r+=s,1===o&&(o=4294967296*(0,n.readUint32)(e,r)+(0,n.readUint32)(e,r+4),r+=8,s+=8),0===o&&(o=t-r+s),o<s)throw new a("Invalid box field size")
const c=o-s
let u=!0
switch(l){case 1785737832:u=!1
break
case 1668246642:const t=e[r]
if(1===t){const t=(0,n.readUint32)(e,r+3)
switch(t){case 16:case 17:case 18:break
default:(0,i.warn)("Unknown colorspace "+t)}}else 2===t&&(0,i.info)("ICC profile not supported")
break
case 1785737827:this.parseCodestream(e,r,r+c)
break
case 1783636e3:218793738!==(0,n.readUint32)(e,r)&&(0,i.warn)("Invalid JP2 signature")
break
case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break
default:const s=String.fromCharCode(l>>24&255,l>>16&255,l>>8&255,255&l);(0,i.warn)(`Unsupported header type ${l} (${s}).`)}u&&(r+=c)}}parseImageProperties(e){let t=e.getByte()
for(;t>=0;){const r=t
t=e.getByte()
if(65361===(r<<8|t)){e.skip(4)
const t=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.getInt32()>>>0
e.skip(16)
const s=e.getUint16()
return this.width=t-i,this.height=r-n,this.componentsCount=s,void(this.bitsPerComponent=8)}}throw new a("No size marker found in JPX stream")}parseCodestream(e,t,r){const s={}
let o=!1
try{let a=t
for(;a+1<r;){const t=(0,n.readUint16)(e,a)
a+=2
let r,u,d,h,p,f,m=0
switch(t){case 65359:s.mainHeader=!0
break
case 65497:break
case 65361:m=(0,n.readUint16)(e,a)
const g={}
g.Xsiz=(0,n.readUint32)(e,a+4),g.Ysiz=(0,n.readUint32)(e,a+8),g.XOsiz=(0,n.readUint32)(e,a+12),g.YOsiz=(0,n.readUint32)(e,a+16),g.XTsiz=(0,n.readUint32)(e,a+20),g.YTsiz=(0,n.readUint32)(e,a+24),g.XTOsiz=(0,n.readUint32)(e,a+28),g.YTOsiz=(0,n.readUint32)(e,a+32)
const b=(0,n.readUint16)(e,a+36)
g.Csiz=b
const y=[]
r=a+38
for(let t=0;t<b;t++){const t={precision:1+(127&e[r]),isSigned:!!(128&e[r]),XRsiz:e[r+1],YRsiz:e[r+2]}
r+=3,l(t,g),y.push(t)}s.SIZ=g,s.components=y,c(s,y),s.QCC=[],s.COC=[]
break
case 65372:m=(0,n.readUint16)(e,a)
const v={}
switch(r=a+2,u=e[r++],31&u){case 0:h=8,p=!0
break
case 1:h=16,p=!1
break
case 2:h=16,p=!0
break
default:throw new Error("Invalid SQcd value "+u)}for(v.noQuantization=8===h,v.scalarExpounded=p,v.guardBits=u>>5,d=[];r<m+a;){const t={}
8===h?(t.epsilon=e[r++]>>3,t.mu=0):(t.epsilon=e[r]>>3,t.mu=(7&e[r])<<8|e[r+1],r+=2),d.push(t)}v.SPqcds=d,s.mainHeader?s.QCD=v:(s.currentTile.QCD=v,s.currentTile.QCC=[])
break
case 65373:m=(0,n.readUint16)(e,a)
const w={}
let S
switch(r=a+2,s.SIZ.Csiz<257?S=e[r++]:(S=(0,n.readUint16)(e,r),r+=2),u=e[r++],31&u){case 0:h=8,p=!0
break
case 1:h=16,p=!1
break
case 2:h=16,p=!0
break
default:throw new Error("Invalid SQcd value "+u)}for(w.noQuantization=8===h,w.scalarExpounded=p,w.guardBits=u>>5,d=[];r<m+a;){const t={}
8===h?(t.epsilon=e[r++]>>3,t.mu=0):(t.epsilon=e[r]>>3,t.mu=(7&e[r])<<8|e[r+1],r+=2),d.push(t)}w.SPqcds=d,s.mainHeader?s.QCC[S]=w:s.currentTile.QCC[S]=w
break
case 65362:m=(0,n.readUint16)(e,a)
const k={}
r=a+2
const C=e[r++]
k.entropyCoderWithCustomPrecincts=!!(1&C),k.sopMarkerUsed=!!(2&C),k.ephMarkerUsed=!!(4&C),k.progressionOrder=e[r++],k.layersCount=(0,n.readUint16)(e,r),r+=2,k.multipleComponentTransform=e[r++],k.decompositionLevelsCount=e[r++],k.xcb=2+(15&e[r++]),k.ycb=2+(15&e[r++])
const P=e[r++]
if(k.selectiveArithmeticCodingBypass=!!(1&P),k.resetContextProbabilities=!!(2&P),k.terminationOnEachCodingPass=!!(4&P),k.verticallyStripe=!!(8&P),k.predictableTermination=!!(16&P),k.segmentationSymbolUsed=!!(32&P),k.reversibleTransformation=e[r++],k.entropyCoderWithCustomPrecincts){const t=[]
for(;r<m+a;){const i=e[r++]
t.push({PPx:15&i,PPy:i>>4})}k.precinctsSizes=t}const O=[]
k.selectiveArithmeticCodingBypass&&O.push("selectiveArithmeticCodingBypass"),k.terminationOnEachCodingPass&&O.push("terminationOnEachCodingPass"),k.verticallyStripe&&O.push("verticallyStripe"),k.predictableTermination&&O.push("predictableTermination"),O.length>0&&(o=!0,(0,i.warn)(`JPX: Unsupported COD options (${O.join(", ")}).`)),s.mainHeader?s.COD=k:(s.currentTile.COD=k,s.currentTile.COC=[])
break
case 65424:m=(0,n.readUint16)(e,a),f={},f.index=(0,n.readUint16)(e,a+2),f.length=(0,n.readUint32)(e,a+4),f.dataEnd=f.length+a-2,f.partIndex=e[a+8],f.partsCount=e[a+9],s.mainHeader=!1,0===f.partIndex&&(f.COD=s.COD,f.COC=s.COC.slice(0),f.QCD=s.QCD,f.QCC=s.QCC.slice(0)),s.currentTile=f
break
case 65427:f=s.currentTile,0===f.partIndex&&(A(s,f.index),x(s)),m=f.dataEnd-a,_(s,e,a,m)
break
case 65363:(0,i.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.")
case 65365:case 65367:case 65368:case 65380:m=(0,n.readUint16)(e,a)
break
default:throw new Error("Unknown codestream code: "+t.toString(16))}a+=m}}catch(u){if(o||this.failOnCorruptedImage)throw new a(u.message);(0,i.warn)(`JPX: Trying to recover from: "${u.message}".`)}this.tiles=function(e){const t=e.SIZ,r=e.components,i=t.Csiz,n=[]
for(let s=0,a=e.tiles.length;s<a;s++){const t=e.tiles[s],a=[]
for(let r=0;r<i;r++)a[r]=k(e,t,r)
const o=a[0],l=new Uint8ClampedArray(o.items.length*i),c={left:o.left,top:o.top,width:o.width,height:o.height,items:l}
let u,d,h,p,f,m,g,b=0
if(t.codingStyleDefaultParameters.multipleComponentTransform){const e=4===i,n=a[0].items,s=a[1].items,o=a[2].items,c=e?a[3].items:null
u=r[0].precision-8,d=.5+(128<<u)
const y=t.components[0],v=i-3
if(p=n.length,y.codingStyleParameters.reversibleTransformation)for(h=0;h<p;h++,b+=v){f=n[h]+d,m=s[h],g=o[h]
const e=f-(g+m>>2)
l[b++]=e+g>>u,l[b++]=e>>u,l[b++]=e+m>>u}else for(h=0;h<p;h++,b+=v)f=n[h]+d,m=s[h],g=o[h],l[b++]=f+1.402*g>>u,l[b++]=f-.34413*m-.71414*g>>u,l[b++]=f+1.772*m>>u
if(e)for(h=0,b=3;h<p;h++,b+=4)l[b]=c[h]+d>>u}else for(let e=0;e<i;e++){const t=a[e].items
for(u=r[e].precision-8,d=.5+(128<<u),b=e,h=0,p=t.length;h<p;h++)l[b]=t[h]+d>>u,b+=i}n.push(c)}return n}(s),this.width=s.SIZ.Xsiz-s.SIZ.XOsiz,this.height=s.SIZ.Ysiz-s.SIZ.YOsiz,this.componentsCount=s.SIZ.Csiz}}
class C{constructor(e,t){const r=(0,n.log2)(Math.max(e,t))+1
this.levels=[]
for(let i=0;i<r;i++){const r={width:e,height:t,items:[]}
this.levels.push(r),e=Math.ceil(e/2),t=Math.ceil(t/2)}}reset(e,t){let r,i=0,n=0
for(;i<this.levels.length;){r=this.levels[i]
const s=e+t*r.width
if(void 0!==r.items[s]){n=r.items[s]
break}r.index=s,e>>=1,t>>=1,i++}i--,r=this.levels[i],r.items[r.index]=n,this.currentLevel=i,delete this.value}incrementValue(){const e=this.levels[this.currentLevel]
e.items[e.index]++}nextLevel(){let e=this.currentLevel,t=this.levels[e]
const r=t.items[t.index]
return e--,e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}}class P{constructor(e,t,r){const i=(0,n.log2)(Math.max(e,t))+1
this.levels=[]
for(let n=0;n<i;n++){const i=new Uint8Array(e*t)
for(let e=0,t=i.length;e<t;e++)i[e]=r
const n={width:e,height:t,items:i}
this.levels.push(n),e=Math.ceil(e/2),t=Math.ceil(t/2)}}reset(e,t,r){let i=0
for(;i<this.levels.length;){const n=this.levels[i],s=e+t*n.width
n.index=s
const a=n.items[s]
if(255===a)break
if(a>r)return this.currentLevel=i,this.propagateValues(),!1
e>>=1,t>>=1,i++}return this.currentLevel=i-1,!0}incrementValue(e){const t=this.levels[this.currentLevel]
t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e]
const r=t.items[t.index]
for(;--e>=0;)t=this.levels[e],t.items[t.index]=r}nextLevel(){let e=this.currentLevel,t=this.levels[e]
const r=t.items[t.index]
return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}}class O{static UNIFORM_CONTEXT=17
static RUNLENGTH_CONTEXT=18
static LLAndLHContextsLabel=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8])
static HLContextLabel=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8])
static HHContextLabel=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8])
constructor(e,t,r,i,n){let s
this.width=e,this.height=t,s="HH"===r?O.HHContextLabel:"HL"===r?O.HLContextLabel:O.LLAndLHContextsLabel,this.contextLabelTable=s
const a=e*t
let o
this.neighborsSignificance=new Uint8Array(a),this.coefficentsSign=new Uint8Array(a),o=n>14?new Uint32Array(a):n>6?new Uint16Array(a):new Uint8Array(a),this.coefficentsMagnitude=o,this.processingFlags=new Uint8Array(a)
const l=new Uint8Array(a)
if(0!==i)for(let c=0;c<a;c++)l[c]=i
this.bitsDecoded=l,this.reset()}setDecoder(e){this.decoder=e}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[O.UNIFORM_CONTEXT]=92,this.contexts[O.RUNLENGTH_CONTEXT]=6}setNeighborsSignificance(e,t,r){const i=this.neighborsSignificance,n=this.width,s=this.height,a=t>0,o=t+1<n
let l
e>0&&(l=r-n,a&&(i[l-1]+=16),o&&(i[l+1]+=16),i[l]+=4),e+1<s&&(l=r+n,a&&(i[l-1]+=16),o&&(i[l+1]+=16),i[l]+=4),a&&(i[r-1]+=1),o&&(i[r+1]+=1),i[r]|=128}runSignificancePropagationPass(){const e=this.decoder,t=this.width,r=this.height,i=this.coefficentsMagnitude,n=this.coefficentsSign,s=this.neighborsSignificance,a=this.processingFlags,o=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded
for(let u=0;u<r;u+=4)for(let d=0;d<t;d++){let h=u*t+d
for(let p=0;p<4;p++,h+=t){const t=u+p
if(t>=r)break
if(a[h]&=-2,i[h]||!s[h])continue
const f=l[s[h]]
if(e.readBit(o,f)){const e=this.decodeSignBit(t,d,h)
n[h]=e,i[h]=1,this.setNeighborsSignificance(t,d,h),a[h]|=2}c[h]++,a[h]|=1}}}decodeSignBit(e,t,r){const i=this.width,n=this.height,s=this.coefficentsMagnitude,a=this.coefficentsSign
let o,l,c,u,d,h
u=t>0&&0!==s[r-1],t+1<i&&0!==s[r+1]?(c=a[r+1],u?(l=a[r-1],o=1-c-l):o=1-c-c):u?(l=a[r-1],o=1-l-l):o=0
const p=3*o
return u=e>0&&0!==s[r-i],e+1<n&&0!==s[r+i]?(c=a[r+i],u?(l=a[r-i],o=1-c-l+p):o=1-c-c+p):u?(l=a[r-i],o=1-l-l+p):o=p,o>=0?(d=9+o,h=this.decoder.readBit(this.contexts,d)):(d=9-o,h=1^this.decoder.readBit(this.contexts,d)),h}runMagnitudeRefinementPass(){const e=this.decoder,t=this.width,r=this.height,i=this.coefficentsMagnitude,n=this.neighborsSignificance,s=this.contexts,a=this.bitsDecoded,o=this.processingFlags,l=t*r,c=4*t
for(let u,d=0;d<l;d=u){u=Math.min(l,d+c)
for(let r=0;r<t;r++)for(let l=d+r;l<u;l+=t){if(!i[l]||1&o[l])continue
let t=16
if(2&o[l]){o[l]^=2
t=0===(127&n[l])?15:14}const r=e.readBit(s,t)
i[l]=i[l]<<1|r,a[l]++,o[l]|=1}}}runCleanupPass(){const e=this.decoder,t=this.width,r=this.height,i=this.neighborsSignificance,n=this.coefficentsMagnitude,s=this.coefficentsSign,a=this.contexts,o=this.contextLabelTable,l=this.bitsDecoded,c=this.processingFlags,u=t,d=2*t,h=3*t
let p
for(let f=0;f<r;f=p){p=Math.min(f+4,r)
const m=f*t,g=f+3<r
for(let r=0;r<t;r++){const b=m+r
let y,v=0,w=b,x=f
if(g&&0===c[b]&&0===c[b+u]&&0===c[b+d]&&0===c[b+h]&&0===i[b]&&0===i[b+u]&&0===i[b+d]&&0===i[b+h]){if(!e.readBit(a,O.RUNLENGTH_CONTEXT)){l[b]++,l[b+u]++,l[b+d]++,l[b+h]++
continue}v=e.readBit(a,O.UNIFORM_CONTEXT)<<1|e.readBit(a,O.UNIFORM_CONTEXT),0!==v&&(x=f+v,w+=v*t),y=this.decodeSignBit(x,r,w),s[w]=y,n[w]=1,this.setNeighborsSignificance(x,r,w),c[w]|=2,w=b
for(let e=f;e<=x;e++,w+=t)l[w]++
v++}for(x=f+v;x<p;x++,w+=t){if(n[w]||1&c[w])continue
const t=o[i[w]]
1===e.readBit(a,t)&&(y=this.decodeSignBit(x,r,w),s[w]=y,n[w]=1,this.setNeighborsSignificance(x,r,w),c[w]|=2),l[w]++}}}}checkSegmentationSymbol(){const e=this.decoder,t=this.contexts
if(10!==(e.readBit(t,O.UNIFORM_CONTEXT)<<3|e.readBit(t,O.UNIFORM_CONTEXT)<<2|e.readBit(t,O.UNIFORM_CONTEXT)<<1|e.readBit(t,O.UNIFORM_CONTEXT)))throw new a("Invalid segmentation symbol")}}class E{constructor(){this.constructor===E&&(0,i.unreachable)("Cannot initialize Transform.")}calculate(e,t,r){let i=e[0]
for(let n=1,s=e.length;n<s;n++)i=this.iterate(i,e[n],t,r)
return i}extend(e,t,r){let i=t-1,n=t+1,s=t+r-2,a=t+r
e[i--]=e[n++],e[a++]=e[s--],e[i--]=e[n++],e[a++]=e[s--],e[i--]=e[n++],e[a++]=e[s--],e[i]=e[n],e[a]=e[s]}filter(e,t,r){(0,i.unreachable)("Abstract method `filter` called")}iterate(e,t,r,i){const n=e.width,s=e.height
let a=e.items
const o=t.width,l=t.height,c=t.items
let u,d,h,p,f,m
for(h=0,u=0;u<s;u++)for(p=2*u*o,d=0;d<n;d++,h++,p+=2)c[p]=a[h]
a=e.items=null
const g=new Float32Array(o+8)
if(1===o){if(1&r)for(m=0,h=0;m<l;m++,h+=o)c[h]*=.5}else for(m=0,h=0;m<l;m++,h+=o)g.set(c.subarray(h,h+o),4),this.extend(g,4,o),this.filter(g,4,o),c.set(g.subarray(4,4+o),h)
let b=16
const y=[]
for(u=0;u<b;u++)y.push(new Float32Array(l+8))
let v,w=0
if(e=4+l,1===l){if(1&i)for(f=0;f<o;f++)c[f]*=.5}else for(f=0;f<o;f++){if(0===w){for(b=Math.min(o-f,b),h=f,p=4;p<e;h+=o,p++)for(v=0;v<b;v++)y[v][p]=c[h+v]
w=b}w--
const t=y[w]
if(this.extend(t,4,l),this.filter(t,4,l),0===w)for(h=f-b+1,p=4;p<e;h+=o,p++)for(v=0;v<b;v++)c[h+v]=y[v][p]}return{width:o,height:l,items:c}}}class T extends E{filter(e,t,r){const i=r>>1
let n,s,a,o
const l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,h=1.230174104914001,p=1/h
for(n=(t|=0)-3,s=i+4;s--;n+=2)e[n]*=p
for(n=t-2,a=d*e[n-1],s=i+3;s--&&(o=d*e[n+1],e[n]=h*e[n]-a-o,s--);n+=2)n+=2,a=d*e[n+1],e[n]=h*e[n]-a-o
for(n=t-1,a=u*e[n-1],s=i+2;s--&&(o=u*e[n+1],e[n]-=a+o,s--);n+=2)n+=2,a=u*e[n+1],e[n]-=a+o
for(n=t,a=c*e[n-1],s=i+1;s--&&(o=c*e[n+1],e[n]-=a+o,s--);n+=2)n+=2,a=c*e[n+1],e[n]-=a+o
if(0!==i)for(n=t+1,a=l*e[n-1],s=i;s--&&(o=l*e[n+1],e[n]-=a+o,s--);n+=2)n+=2,a=l*e[n+1],e[n]-=a+o}}class M extends E{filter(e,t,r){const i=r>>1
let n,s
for(n=t|=0,s=i+1;s--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2
for(n=t+1,s=i;s--;n+=2)e[n]+=e[n-1]+e[n+1]>>1}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0
var i=r(18)
class n extends i.DecodeStream{constructor(e,t,r){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0
const i=4096,n={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0}
for(let s=0;s<256;++s)n.dictionaryValues[s]=s,n.dictionaryLengths[s]=1
this.lzwState=n}readBits(e){let t=this.bitsCached,r=this.cachedData
for(;t<e;){const e=this.str.getByte()
if(-1===e)return this.eof=!0,null
r=r<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1}readBlock(){let e,t,r,i=1024
const n=this.lzwState
if(!n)return
const s=n.earlyChange
let a=n.nextCode
const o=n.dictionaryValues,l=n.dictionaryLengths,c=n.dictionaryPrevCodes
let u=n.codeLength,d=n.prevCode
const h=n.currentSequence
let p=n.currentSequenceLength,f=0,m=this.bufferLength,g=this.ensureBuffer(this.bufferLength+i)
for(e=0;e<512;e++){const e=this.readBits(u),n=p>0
if(e<256)h[0]=e,p=1
else{if(!(e>=258)){if(256===e){u=9,a=258,p=0
continue}this.eof=!0,delete this.lzwState
break}if(e<a)for(p=l[e],t=p-1,r=e;t>=0;t--)h[t]=o[r],r=c[r]
else h[p++]=h[0]}if(n&&(c[a]=d,l[a]=l[d]+1,o[a]=h[0],a++,u=a+s&a+s-1?u:0|Math.min(Math.log(a+s)/.6931471805599453+1,12)),d=e,f+=p,i<f){do{i+=512}while(i<f)
g=this.ensureBuffer(this.bufferLength+i)}for(t=0;t<p;t++)g[m++]=h[t]}n.nextCode=a,n.codeLength=u,n.prevCode=d,n.currentSequenceLength=p,this.bufferLength=m}}t.LZWStream=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0
var i=r(18),n=r(4),s=r(2)
class a extends i.DecodeStream{constructor(e,t,r){if(super(t),!(r instanceof n.Dict))return e
const i=this.predictor=r.get("Predictor")||1
if(i<=1)return e
if(2!==i&&(i<10||i>15))throw new s.FormatError(`Unsupported predictor: ${i}`)
this.readBlock=2===i?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict
const a=this.colors=r.get("Colors")||1,o=this.bits=r.get("BPC","BitsPerComponent")||8,l=this.columns=r.get("Columns")||1
return this.pixBytes=a*o+7>>3,this.rowBytes=l*a*o+7>>3,this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),i=this.bits,n=this.colors,s=this.str.getBytes(e)
if(this.eof=!s.length,this.eof)return
let a,o=0,l=0,c=0,u=0,d=t
if(1===i&&1===n)for(a=0;a<e;++a){let e=s[a]^o
e^=e>>1,e^=e>>2,e^=e>>4,o=(1&e)<<7,r[d++]=e}else if(8===i){for(a=0;a<n;++a)r[d++]=s[a]
for(;a<e;++a)r[d]=r[d-n]+s[a],d++}else if(16===i){const t=2*n
for(a=0;a<t;++a)r[d++]=s[a]
for(;a<e;a+=2){const e=((255&s[a])<<8)+(255&s[a+1])+((255&r[d-t])<<8)+(255&r[d-t+1])
r[d++]=e>>8&255,r[d++]=255&e}}else{const e=new Uint8Array(n+1),d=(1<<i)-1
let h=0,p=t
const f=this.columns
for(a=0;a<f;++a)for(let t=0;t<n;++t)c<i&&(o=o<<8|255&s[h++],c+=8),e[t]=e[t]+(o>>c-i)&d,c-=i,l=l<<i|e[t],u+=i,u>=8&&(r[p++]=l>>u-8&255,u-=8)
u>0&&(r[p++]=(l<<8-u)+(o&(1<<8-u)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),i=this.str.getBytes(e)
if(this.eof=!i.length,this.eof)return
const n=this.bufferLength,a=this.ensureBuffer(n+e)
let o=a.subarray(n-e,n)
0===o.length&&(o=new Uint8Array(e))
let l,c,u,d=n
switch(r){case 0:for(l=0;l<e;++l)a[d++]=i[l]
break
case 1:for(l=0;l<t;++l)a[d++]=i[l]
for(;l<e;++l)a[d]=a[d-t]+i[l]&255,d++
break
case 2:for(l=0;l<e;++l)a[d++]=o[l]+i[l]&255
break
case 3:for(l=0;l<t;++l)a[d++]=(o[l]>>1)+i[l]
for(;l<e;++l)a[d]=(o[l]+a[d-t]>>1)+i[l]&255,d++
break
case 4:for(l=0;l<t;++l)c=o[l],u=i[l],a[d++]=c+u
for(;l<e;++l){c=o[l]
const e=o[l-t],r=a[d-t],n=r+c-e
let s=n-r
s<0&&(s=-s)
let h=n-c
h<0&&(h=-h)
let p=n-e
p<0&&(p=-p),u=i[l],a[d++]=s<=h&&s<=p?r+u:h<=p?c+u:e+u}break
default:throw new s.FormatError(`Unsupported predictor: ${r}`)}this.bufferLength+=e}}t.PredictorStream=a},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0
var i=r(18)
class n extends i.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2)
if(!e||e.length<2||128===e[0])return void(this.eof=!0)
let t,r=this.bufferLength,i=e[0]
if(i<128){if(t=this.ensureBuffer(r+i+1),t[r++]=e[1],i>0){const e=this.str.getBytes(i)
t.set(e,r),r+=i}}else{i=257-i
const n=e[1]
t=this.ensureBuffer(r+i+1)
for(let e=0;e<i;e++)t[r++]=n}this.bufferLength=r}}t.RunLengthStream=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0
var i=r(2),n=r(35),s=r(38),a=r(40),o=r(39),l=r(37),c=r(41),u=r(42),d=r(43),h=r(44),p=r(45),f=r(46),m=r(14),g=r(47),b=r(3),y=r(8),v=r(48)
const w=[[57344,63743],[1048576,1114109]],x=1e3,_=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],S=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"]
function k(e){if(!e.fontMatrix)return
if(e.fontMatrix[0]===i.FONT_IDENTITY_MATRIX[0])return
const t=.001/e.fontMatrix[0],r=e.widths
for(const i in r)r[i]*=t
e.defaultWidth*=t}function A(e){if(!e.fallbackToUnicode)return
if(e.toUnicode instanceof u.IdentityToUnicodeMap)return
const t=[]
for(const r in e.fallbackToUnicode)e.toUnicode.has(r)||(t[r]=e.fallbackToUnicode[r])
t.length>0&&e.toUnicode.amend(t)}class C{constructor(e,t,r,i,n,s,a,o,l){this.originalCharCode=e,this.fontChar=t,this.unicode=r,this.accent=i,this.width=n,this.vmetric=s,this.operatorListId=a,this.isSpace=o,this.isInFont=l}get category(){return(0,i.shadow)(this,"category",(0,a.getCharUnicodeCategory)(this.unicode),!0)}}function P(e,t){return(e<<8)+t}function O(e,t,r){e[t+1]=r,e[t]=r>>>8}function E(e,t){const r=(e<<8)+t
return 32768&r?r-65536:r}function T(e){return String.fromCharCode(e>>8&255,255&e)}function M(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function I(e){const t=e.peekBytes(4)
return"ttcf"===(0,i.bytesToString)(t)}function F(e,{type:t,subtype:r,composite:n}){let s,a
return function(e){const t=e.peekBytes(4)
return 65536===(0,b.readUint32)(t,0)||"true"===(0,i.bytesToString)(t)}(e)||I(e)?s=n?"CIDFontType2":"TrueType":!function(e){const t=e.peekBytes(4)
return"OTTO"===(0,i.bytesToString)(t)}(e)?!function(e){const t=e.peekBytes(2)
return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?!function(e){const t=e.peekBytes(4)
return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?((0,i.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),s=t,a=r):n?(s="CIDFontType0",a="CIDFontType0C"):(s="MMType1"===t?"MMType1":"Type1",a="Type1C"):s=n?"CIDFontType0":"MMType1"===t?"MMType1":"Type1":s=n?"CIDFontType2":"OpenType",[s,a]}function N(e,t){for(const r in t)e[+r]=t[r]}function R(e,t,r){const i=[]
let n
for(let s=0,o=e.length;s<o;s++)n=(0,a.getUnicodeForGlyph)(e[s],t),-1!==n&&(i[s]=n)
for(const s in r)n=(0,a.getUnicodeForGlyph)(r[s],t),-1!==n&&(i[+s]=n)
return i}function D(e){return 1===e.platform&&0===e.encoding&&0===e.language}function j(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function L(e,t,r=!1){switch(t.length){case 1:return t.charCodeAt(0)
case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const n=`Unsupported CID string (charCode ${e}): "${t}".`
if(r)throw new i.FormatError(n)
return(0,i.warn)(n),t}function B(e,t,r,n){const s=Object.create(null),a=new Map,o=[],l=new Set
let c=0
let u=w[c][0],d=w[c][1]
for(let p in e){p|=0
let f=e[p]
if(!t(f))continue
if(u>d){if(c++,c>=w.length){(0,i.warn)("Ran out of space in font private use area.")
break}u=w[c][0],d=w[c][1]}const m=u++
0===f&&(f=r)
let g=n.get(p)
"string"==typeof g&&(g=g.codePointAt(0)),!g||(h=g,w[0][0]<=h&&h<=w[0][1]||w[1][0]<=h&&h<=w[1][1])||l.has(f)||(a.set(g,f),l.add(f)),s[m]=f,o[p]=m}var h
return{toFontChar:o,charCodeToGlyphId:s,toUnicodeExtraMap:a,nextAvailableFontCharCode:u}}function $(e,t,r){const n=function(e,t,r){const i=[]
for(const a in e)e[a]>=r||i.push({fontCharCode:0|a,glyphId:e[a]})
if(t)for(const[a,o]of t)o>=r||i.push({fontCharCode:a,glyphId:o})
0===i.length&&i.push({fontCharCode:0,glyphId:0}),i.sort((function(e,t){return e.fontCharCode-t.fontCharCode}))
const n=[],s=i.length
for(let a=0;a<s;){const e=i[a].fontCharCode,t=[i[a].glyphId];++a
let r=e
for(;a<s&&r+1===i[a].fontCharCode&&(t.push(i[a].glyphId),++r,++a,65535!==r););n.push([e,r,t])}return n}(e,t,r),s=n.at(-1)[1]>65535?2:1
let a,o,l,c,u="\0\0"+T(s)+"\0\0"+(0,i.string32)(4+8*s)
for(a=n.length-1;a>=0&&!(n[a][0]<=65535);--a);const d=a+1
n[a][0]<65535&&65535===n[a][1]&&(n[a][1]=65534)
const h=n[a][1]<65535?1:0,p=d+h,f=g.OpenTypeFileBuilder.getSearchParams(p,2)
let m,b,y,v,w="",x="",_="",S="",k="",A=0
for(a=0,o=d;a<o;a++){m=n[a],b=m[0],y=m[1],w+=T(b),x+=T(y),v=m[2]
let e=!0
for(l=1,c=v.length;l<c;++l)if(v[l]!==v[l-1]+1){e=!1
break}if(e){_+=T(v[0]-b&65535),S+=T(0)}else{const e=2*(p-a)+2*A
for(A+=y-b+1,_+=T(0),S+=T(e),l=0,c=v.length;l<c;++l)k+=T(v[l])}}h>0&&(x+="ÿÿ",w+="ÿÿ",_+="\0",S+="\0\0")
const C="\0\0"+T(2*p)+T(f.range)+T(f.entry)+T(f.rangeShift)+x+"\0\0"+w+_+S+k
let P="",O=""
if(s>1){for(u+="\0\0\n"+(0,i.string32)(4+8*s+4+C.length),P="",a=0,o=n.length;a<o;a++){m=n[a],b=m[0],v=m[2]
let e=v[0]
for(l=1,c=v.length;l<c;++l)v[l]!==v[l-1]+1&&(y=m[0]+l-1,P+=(0,i.string32)(b)+(0,i.string32)(y)+(0,i.string32)(e),b=y+1,e=v[l])
P+=(0,i.string32)(b)+(0,i.string32)(m[1])+(0,i.string32)(e)}O="\0\f\0\0"+(0,i.string32)(P.length+16)+"\0\0\0\0"+(0,i.string32)(P.length/12)}return u+"\0"+T(C.length+4)+C+O+P}function z(e,t,r){r||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0}
let n=0,s=0,o=0,l=0,c=null,u=0,d=-1
if(t){for(let e in t)if(e|=0,(c>e||!c)&&(c=e),u<e&&(u=e),d=(0,a.getUnicodeRangeFor)(e,d),d<32)n|=1<<d
else if(d<64)s|=1<<d-32
else if(d<96)o|=1<<d-64
else{if(!(d<123))throw new i.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")
l|=1<<d-96}u>65535&&(u=65535)}else c=0,u=255
const h=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||i.FONT_IDENTITY_MATRIX)[0],f=e.ascentScaled?1:p/x,m=r.ascent||Math.round(f*(e.ascent||h[3]))
let g=r.descent||Math.round(f*(e.descent||h[1]))
g>0&&e.descent>0&&h[1]<0&&(g=-g)
const b=r.yMax||m,y=-r.yMin||-g
return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,i.string32)(n)+(0,i.string32)(s)+(0,i.string32)(o)+(0,i.string32)(l)+"*21*"+T(e.italicAngle?1:0)+T(c||e.firstChar)+T(u||e.lastChar)+T(m)+T(g)+"\0d"+T(b)+T(y)+"\0\0\0\0\0\0\0\0"+T(e.xHeight)+T(e.capHeight)+T(0)+T(c||e.firstChar)+"\0"}function U(e){const t=Math.floor(65536*e.italicAngle)
return"\0\0\0"+(0,i.string32)(t)+"\0\0\0\0"+(0,i.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function q(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function H(e,t){t||(t=[[],[]])
const r=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||q(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],i=[]
let n,s,a,o,l
for(n=0,s=r.length;n<s;n++){l=t[1][n]||r[n]
const e=[]
for(a=0,o=l.length;a<o;a++)e.push(T(l.charCodeAt(a)))
i.push(e.join(""))}const c=[r,i],u=["\0","\0"],d=["\0\0","\0"],h=["\0\0","\t"],p=r.length*u.length
let f="\0\0"+T(p)+T(12*p+6),m=0
for(n=0,s=u.length;n<s;n++){const e=c[n]
for(a=0,o=e.length;a<o;a++){l=e[a]
f+=u[n]+d[n]+h[n]+T(a)+T(l.length)+T(m),m+=l.length}}return f+=r.join("")+i.join(""),f}t.Font=class{constructor(e,t,r){this.name=e,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.missingFile=!1,this.cssFontInfo=r.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null)
let n=!!(r.flags&s.FontFlags.Serif)
if(!n&&!r.isSimulatedFlags){const t=e.replaceAll(/[,_]/g,"-").split("-")[0],r=(0,c.getSerifFonts)()
for(const e of t.split("+"))if(r[e]){n=!0
break}}this.isSerifFont=n,this.isSymbolicFont=!!(r.flags&s.FontFlags.Symbolic),this.isMonospace=!!(r.flags&s.FontFlags.FixedPitch)
let{type:a,subtype:o}=r
this.type=a,this.subtype=o,this.systemFontInfo=r.systemFontInfo
const l=e.match(/^InvalidPDFjsFont_(.*)_\d+$/)
if(this.isInvalidPDFjsFont=!!l,this.isInvalidPDFjsFont?this.fallbackName=l[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.cMap=r.cMap,this.capHeight=r.capHeight/x,this.ascent=r.ascent/x,this.descent=r.descent/x,this.lineHeight=this.ascent-this.descent,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.toFontChar=[],"Type3"===r.type){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||r.defaultEncoding[e]
return}if(this.cidEncoding=r.cidEncoding||"",this.vertical=!!r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!t||t.isEmpty)return t&&(0,i.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont(r)
let u;[a,o]=F(t,r),a===this.type&&o===this.subtype||(0,i.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${a}/${o}.`)
try{switch(a){case"MMType1":(0,i.info)("MMType1 font ("+e+"), falling back to Type1.")
case"Type1":case"CIDFontType0":this.mimetype="font/opentype"
const n="Type1C"===o||"CIDFontType0C"===o?new d.CFFFont(t,r):new v.Type1Font(e,t,r)
k(r),u=this.convert(e,n,r)
break
case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",u=this.checkAndRepair(e,t,r),this.isOpenType&&(k(r),a="OpenType")
break
default:throw new i.FormatError(`Font ${a} is not supported`)}}catch(h){return(0,i.warn)(h),void this.fallbackToSystemFont(r)}A(r),this.data=u,this.type=a,this.subtype=o,this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.seacMap=r.seacMap}get renderer(){const e=h.FontRendererFactory.create(this,s.SEAC_ANALYSIS_ENABLED)
return(0,i.shadow)(this,"renderer",e)}exportData(e=!1){const t=e?[..._,...S]:_,r=Object.create(null)
let i,n
for(i of t)n=this[i],void 0!==n&&(r[i]=n)
return r}fallbackToSystemFont(e){this.missingFile=!0
const{name:t,type:r}=this
let i=(0,s.normalizeFontName)(t)
const n=(0,c.getStdFontMap)(),d=(0,c.getNonStdFontMap)(),h=!!n[i],f=!(!d[i]||!n[d[i]])
i=n[i]||d[i]||i
const m=(0,p.getFontBasicMetrics)()[i]
m&&(isNaN(this.ascent)&&(this.ascent=m.ascent/x),isNaN(this.descent)&&(this.descent=m.descent/x),isNaN(this.capHeight)&&(this.capHeight=m.capHeight/x)),this.bold=/bold/gi.test(i),this.italic=/oblique|italic/gi.test(i),this.black=/Black/g.test(t)
const g=/Narrow/g.test(t)
if(this.remeasure=(!h||g)&&Object.keys(this.widths).length>0,(h||f)&&"CIDFontType2"===r&&this.cidEncoding.startsWith("Identity-")){const r=e.cidToGidMap,i=[]
if(N(i,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(t)?N(i,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&N(i,(0,c.getSupplementalGlyphMapForCalibri)()),r){for(const e in i){const t=i[e]
void 0!==r[t]&&(i[+e]=r[t])}r.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof u.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const n=i[e]
void 0===r[n]&&(i[+e]=t)}))}this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){i[+e]=t})),this.toFontChar=i,this.toUnicode=new u.ToUnicodeMap(i)}else if(/Symbol/i.test(i))this.toFontChar=R(l.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences)
else if(/Dingbats/i.test(i))this.toFontChar=R(l.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences)
else if(h){const e=R(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences)
"CIDFontType2"!==r||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,r){e[+t]=r})),this.toFontChar=e}else{const e=(0,o.getGlyphsUnicode)(),r=[]
this.toUnicode.forEach(((t,i)=>{if(!this.composite){const r=this.differences[t]||this.defaultEncoding[t],n=(0,a.getUnicodeForGlyph)(r,e);-1!==n&&(i=n)}r[+t]=i})),this.composite&&this.toUnicode instanceof u.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&N(r,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=r}A(e),this.loadedName=i.split("-")[0]}checkAndRepair(e,t,r){const a=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "]
function c(e,t){const r=Object.create(null)
r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null
for(let i=0;i<t;i++){const t=h(e)
a.includes(t.tag)&&(0!==t.length&&(r[t.tag]=t))}return r}function h(e){const t=e.getString(4),r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.getInt32()>>>0,s=e.pos
e.pos=e.start||0,e.skip(i)
const a=e.getBytes(n)
return e.pos=s,"head"===t&&(a[8]=a[9]=a[10]=a[11]=0,a[17]|=32),{tag:t,checksum:r,length:n,offset:i,data:a}}function p(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function b(e,t,r,i,n,s){const a={length:0,sizeOfInstructions:0}
if(t<0||t>=e.length||r>e.length||r-t<=12)return a
const o=e.subarray(t,r),l=E(o[2],o[3]),c=E(o[4],o[5]),u=E(o[6],o[7]),d=E(o[8],o[9])
l>u&&(O(o,2,u),O(o,6,l)),c>d&&(O(o,4,d),O(o,8,c))
const h=E(o[0],o[1])
if(h<0)return h<-1||(i.set(o,n),a.length=o.length),a
let p,f=10,m=0
for(p=0;p<h;p++){m=(o[f]<<8|o[f+1])+1,f+=2}const g=f,b=o[f]<<8|o[f+1]
a.sizeOfInstructions=b,f+=2+b
const y=f
let v=0
for(p=0;p<m;p++){const e=o[f++]
192&e&&(o[f-1]=63&e)
let t=2
2&e?t=1:16&e&&(t=0)
let r=2
4&e?r=1:32&e&&(r=0)
const i=t+r
if(v+=i,8&e){const e=o[f++]
0===e&&(o[f-1]^=8),p+=e,v+=e*i}}if(0===v)return a
let w=f+v
return w>o.length?a:!s&&b>0?(i.set(o.subarray(0,g),n),i.set([0,0],n+g),i.set(o.subarray(y,w),n+g+2),w-=b,o.length-w>3&&(w=w+3&-4),a.length=w,a):o.length-w>3?(w=w+3&-4,i.set(o.subarray(0,w),n),a.length=w,a):(i.set(o,n),a.length=o.length,a)}function v(e){const r=(t.start||0)+e.offset
t.pos=r
const i=[[],[]],n=[],s=e.length,a=r+s
if(0!==t.getUint16()||s<6)return[i,n]
const o=t.getUint16(),l=t.getUint16()
let c,u
for(c=0;c<o&&t.pos+12<=a;c++){const e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(D(e)||j(e))&&n.push(e)}for(c=0,u=n.length;c<u;c++){const e=n[c]
if(e.length<=0)continue
const s=r+l+e.offset
if(s+e.length>a)continue
t.pos=s
const o=e.name
if(e.encoding){let r=""
for(let i=0,n=e.length;i<n;i+=2)r+=String.fromCharCode(t.getUint16())
i[1][o]=r}else i[0][o]=t.getString(e.length)}return[i,n]}const w=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2]
function x(e,t){let r,n,s,a,o,l=e.data,c=0,u=0,d=0
const h=[],p=[],f=[]
let m=t.tooComplexToFollowFunctions,g=!1,b=0,y=0
for(let x=l.length;c<x;){const e=l[c++]
if(64===e)if(n=l[c++],g||y)c+=n
else for(r=0;r<n;r++)h.push(l[c++])
else if(65===e)if(n=l[c++],g||y)c+=2*n
else for(r=0;r<n;r++)s=l[c++],h.push(s<<8|l[c++])
else if(176==(248&e))if(n=e-176+1,g||y)c+=n
else for(r=0;r<n;r++)h.push(l[c++])
else if(184==(248&e))if(n=e-184+1,g||y)c+=2*n
else for(r=0;r<n;r++)s=l[c++],h.push(s<<8|l[c++])
else if(43!==e||m)if(44!==e||m){if(45===e)if(g)g=!1,u=c
else{if(o=p.pop(),!o)return(0,i.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1)
a=f.pop(),l=o.data,c=o.i,t.functionsStackDeltas[a]=h.length-o.stackTop}else if(137===e)(g||y)&&((0,i.warn)("TT: nested IDEFs not allowed"),m=!0),g=!0,d=c
else if(88===e)++b
else if(27===e)y=b
else if(89===e)y===b&&(y=0),--b
else if(28===e&&!g&&!y){const e=h.at(-1)
e>0&&(c+=e-1)}}else(g||y)&&((0,i.warn)("TT: nested FDEFs not allowed"),m=!0),g=!0,d=c,a=h.pop(),t.functionsDefined[a]={data:l,i:c}
else if(!g&&!y)if(a=h.at(-1),isNaN(a))(0,i.info)("TT: CALL empty stack (or invalid entry).")
else if(t.functionsUsed[a]=!0,a in t.functionsStackDeltas){const e=h.length+t.functionsStackDeltas[a]
if(e<0)return(0,i.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1)
h.length=e}else if(a in t.functionsDefined&&!f.includes(a)){if(p.push({data:l,i:c,stackTop:h.length-1}),f.push(a),o=t.functionsDefined[a],!o)return(0,i.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1)
l=o.data,c=o.i}if(!g&&!y){let t=0
for(e<=142?t=w[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(n=h.pop(),isNaN(n)||(t=2*-n));t<0&&h.length>0;)h.pop(),t++
for(;t>0;)h.push(NaN),t--}}t.tooComplexToFollowFunctions=m
const v=[l]
c>l.length&&v.push(new Uint8Array(c-l.length)),d>u&&((0,i.warn)("TT: complementing a missing function tail"),v.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){let r,i,n=0
for(r=0,i=t.length;r<i;r++)n+=t[r].length
n=n+3&-4
const s=new Uint8Array(n)
let a=0
for(r=0,i=t.length;r<i;r++)s.set(t[r],a),a+=t[r].length
e.data=s,e.length=n}}(e,v)}let _,S,A,C
if(I(t=new y.Stream(new Uint8Array(t.getBytes())))){const e=function(e,t){const{numFonts:r,offsetTable:n}=function(e){const t=e.getString(4);(0,i.assert)("ttcf"===t,"Must be a TrueType Collection font.")
const r=e.getUint16(),n=e.getUint16(),s=e.getInt32()>>>0,a=[]
for(let i=0;i<s;i++)a.push(e.getInt32()>>>0)
const o={ttcTag:t,majorVersion:r,minorVersion:n,numFonts:s,offsetTable:a}
switch(r){case 1:return o
case 2:return o.dsigTag=e.getInt32()>>>0,o.dsigLength=e.getInt32()>>>0,o.dsigOffset=e.getInt32()>>>0,o}throw new i.FormatError(`Invalid TrueType Collection majorVersion: ${r}.`)}(e),s=t.split("+")
let a
for(let o=0;o<r;o++){e.pos=(e.start||0)+n[o]
const r=p(e),l=c(e,r.numTables)
if(!l.name)throw new i.FormatError('TrueType Collection font must contain a "name" table.')
const[u]=v(l.name)
for(let e=0,i=u.length;e<i;e++)for(let n=0,o=u[e].length;n<o;n++){const i=u[e][n]?.replaceAll(/\s/g,"")
if(i){if(i===t)return{header:r,tables:l}
if(!(s.length<2))for(const e of s)i===e&&(a={name:e,header:r,tables:l})}}}if(a)return(0,i.warn)(`TrueType Collection does not contain "${t}" font, falling back to "${a.name}" font instead.`),{header:a.header,tables:a.tables}
throw new i.FormatError(`TrueType Collection does not contain "${t}" font.`)}(t,this.name)
_=e.header,S=e.tables}else _=p(t),S=c(t,_.numTables)
const T=!S["CFF "]
if(T){if(!S.loca)throw new i.FormatError('Required "loca" table is not found')
S.glyf||((0,i.warn)('Required "glyf" table is not found -- trying to recover.'),S.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const t=r.composite&&(r.cidToGidMap?.length>0||!(r.cMap instanceof m.IdentityCMap))
if("OTTO"===_.version&&!t||!S.head||!S.hhea||!S.maxp||!S.post)return C=new y.Stream(S["CFF "].data),A=new d.CFFFont(C,r),k(r),this.convert(e,A,r)
delete S.glyf,delete S.loca,delete S.fpgm,delete S.prep,delete S["cvt "],this.isOpenType=!0}if(!S.maxp)throw new i.FormatError('Required "maxp" table is not found')
t.pos=(t.start||0)+S.maxp.offset
const M=t.getInt32(),F=t.getUint16()
if(r.scaleFactors?.length===F&&T){const{scaleFactors:e}=r,t=P(S.head.data[50],S.head.data[51]),i=new f.GlyfTable({glyfTable:S.glyf.data,isGlyphLocationsLong:t,locaTable:S.loca.data,numGlyphs:F})
i.scale(e)
const{glyf:n,loca:s,isLocationLong:a}=i.write()
S.glyf.data=n,S.loca.data=s,a!==!!t&&(S.head.data[50]=0,S.head.data[51]=a?1:0)
const o=S.hmtx.data
for(let r=0;r<F;r++){const t=4*r,i=Math.round(e[r]*P(o[t],o[t+1]))
o[t]=i>>8&255,o[t+1]=255&i
O(o,t+2,Math.round(e[r]*E(o[t+2],o[t+3])))}}let N=F+1,R=!0
N>65535&&(R=!1,N=F,(0,i.warn)("Not enough space in glyfs to duplicate first glyph."))
let q=0,V=0
if(M>=65536&&S.maxp.length>=22){t.pos+=8
t.getUint16()>2&&(S.maxp.data[14]=0,S.maxp.data[15]=2),t.pos+=4,q=t.getUint16(),t.pos+=4,V=t.getUint16()}S.maxp.data[4]=N>>8,S.maxp.data[5]=255&N
const G=function(e,t,r,n){const s={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0}
if(e&&x(e,s),t&&x(t,s),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,i.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1)
for(let r=0,n=e.functionsUsed.length;r<n;r++){if(r>t)return(0,i.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1)
if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,i.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(s,n),r&&1&r.length){const e=new Uint8Array(r.length+1)
e.set(r.data),r.data=e}return s.hintsValid}(S.fpgm,S.prep,S["cvt "],q)
if(G||(delete S.fpgm,delete S.prep,delete S["cvt "]),function(e,t,r,n,s,a){if(!t)return void(r&&(r.data=null))
e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2
const o=e.getUint16()
e.pos+=8,e.pos+=2
let l=e.getUint16()
if(0!==o){2&P(n.data[44],n.data[45])||(t.data[22]=0,t.data[23]=0)}l>s&&((0,i.info)(`The numOfMetrics (${l}) should not be greater than the numGlyphs (${s}).`),l=s,t.data[34]=(65280&l)>>8,t.data[35]=255&l)
const c=s-l-(r.length-4*l>>1)
if(c>0){const e=new Uint8Array(r.length+2*c)
e.set(r.data),a&&(e[r.length]=r.data[2],e[r.length+1]=r.data[3]),r.data=e}}(t,S.hhea,S.hmtx,S.head,N,R),!S.head)throw new i.FormatError('Required "head" table is not found');(function(e,t,r){const n=e.data,s=(a=n[0],o=n[1],l=n[2],c=n[3],(a<<24)+(o<<16)+(l<<8)+c)
var a,o,l,c
s>>16!=1&&((0,i.info)("Attempting to fix invalid version in head table: "+s),n[0]=0,n[1]=1,n[2]=0,n[3]=0)
const u=P(n[50],n[51])
if(u<0||u>1){(0,i.info)("Attempting to fix invalid indexToLocFormat in head table: "+u)
const e=t+1
if(r===e<<1)n[50]=0,n[51]=0
else{if(r!==e<<2)throw new i.FormatError("Could not fix indexToLocFormat: "+u)
n[50]=0,n[51]=1}}})(S.head,F,T?S.loca.length:0)
let W=Object.create(null)
if(T){const e=P(S.head.data[50],S.head.data[51]),t=function(e,t,r,i,n,s,a){let o,l,c
i?(o=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(o=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255})
const u=s?r+1:r,d=o*(1+u),h=new Uint8Array(d)
h.set(e.data.subarray(0,d)),e.data=h
const p=t.data,f=p.length,m=new Uint8Array(f)
let g,y
const v=[]
for(g=0,y=0;g<r+1;g++,y+=o){let e=l(h,y)
e>f&&(e=f),v.push({index:g,offset:e,endOffset:0})}for(v.sort(((e,t)=>e.offset-t.offset)),g=0;g<r;g++)v[g].endOffset=v[g+1].offset
for(v.sort(((e,t)=>e.index-t.index)),g=0;g<r;g++){const{offset:e,endOffset:t}=v[g]
if(0!==e||0!==t)break
const r=v[g+1].offset
if(0!==r){v[g].endOffset=r
break}}const w=Object.create(null)
let x=0
for(c(h,0,x),g=0,y=o;g<r;g++,y+=o){const e=b(p,v[g].offset,v[g].endOffset,m,x,n),t=e.length
0===t&&(w[g]=!0),e.sizeOfInstructions>a&&(a=e.sizeOfInstructions),x+=t,c(h,y,x)}if(0===x){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0])
for(g=0,y=o;g<u;g++,y+=o)c(h,y,e.length)
t.data=e}else if(s){const r=l(h,o)
m.length>r+x?t.data=m.subarray(0,r+x):(t.data=new Uint8Array(r+x),t.data.set(m.subarray(0,x))),t.data.set(m.subarray(0,r),x),c(e.data,h.length-o,x+r)}else t.data=m.subarray(0,x)
return{missingGlyphs:w,maxSizeOfInstructions:a}}(S.loca,S.glyf,F,e,G,R,V)
W=t.missingGlyphs,M>=65536&&S.maxp.length>=22&&(S.maxp.data[26]=t.maxSizeOfInstructions>>8,S.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!S.hhea)throw new i.FormatError('Required "hhea" table is not found')
0===S.hhea.data[10]&&0===S.hhea.data[11]&&(S.hhea.data[10]=255,S.hhea.data[11]=255)
const X={unitsPerEm:P(S.head.data[18],S.head.data[19]),yMax:E(S.head.data[42],S.head.data[43]),yMin:E(S.head.data[38],S.head.data[39]),ascent:E(S.hhea.data[4],S.hhea.data[5]),descent:E(S.hhea.data[6],S.hhea.data[7]),lineGap:E(S.hhea.data[8],S.hhea.data[9])}
this.ascent=X.ascent/X.unitsPerEm,this.descent=X.descent/X.unitsPerEm,this.lineGap=X.lineGap/X.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,S.post&&function(e,r,n){const a=(t.start||0)+e.offset
t.pos=a
const o=a+e.length,l=t.getInt32()
let c
t.skip(28)
let u,d=!0
switch(l){case 65536:c=s.MacStandardGlyphOrdering
break
case 131072:const e=t.getUint16()
if(e!==n){d=!1
break}const a=[]
for(u=0;u<e;++u){const e=t.getUint16()
if(e>=32768){d=!1
break}a.push(e)}if(!d)break
const h=[],p=[]
for(;t.pos<o;){const e=t.getByte()
for(p.length=e,u=0;u<e;++u)p[u]=String.fromCharCode(t.getByte())
h.push(p.join(""))}for(c=[],u=0;u<e;++u){const e=a[u]
e<258?c.push(s.MacStandardGlyphOrdering[e]):c.push(h[e-258])}break
case 196608:break
default:(0,i.warn)("Unknown/unsupported post table version "+l),d=!1,r.defaultEncoding&&(c=r.defaultEncoding)}r.glyphNames=c}(S.post,r,F),S.post={tag:"post",data:U(r)}
const K=[]
function Y(e){return!W[e]}if(r.composite){const e=r.cidToGidMap||[],t=0===e.length
r.cMap.forEach((function(r,n){if("string"==typeof n&&(n=L(r,n,!0)),n>65535)throw new i.FormatError("Max size of CID is 65,535")
let s=-1
t?s=n:void 0!==e[n]&&(s=e[n]),s>=0&&s<F&&Y(s)&&(K[r]=s)}))}else{const e=function(e,t,r,n){if(!e)return(0,i.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}
let s,a=(t.start||0)+e.offset
t.pos=a,t.skip(2)
const o=t.getUint16()
let l,c=!1
for(let i=0;i<o;i++){const e=t.getUint16(),s=t.getUint16(),a=t.getInt32()>>>0
let u=!1
if(l?.platformId!==e||l?.encodingId!==s){if(0!==e||0!==s&&1!==s&&3!==s)if(1===e&&0===s)u=!0
else if(3!==e||1!==s||!n&&l){if(r&&3===e&&0===s){u=!0
let r=!0
if(i<o-1){const i=t.peekBytes(2)
P(i[0],i[1])<e&&(r=!1)}r&&(c=!0)}}else u=!0,r||(c=!0)
else u=!0
if(u&&(l={platformId:e,encodingId:s,offset:a}),c)break}}if(l&&(t.pos=a+l.offset),!l||-1===t.peekByte())return(0,i.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}
const u=t.getUint16()
let d=!1
const h=[]
let p,f
if(0===u){for(t.skip(4),p=0;p<256;p++){const e=t.getByte()
e&&h.push({charCode:p,glyphId:e})}d=!0}else if(2===u){t.skip(4)
const e=[]
let r=0
for(let n=0;n<256;n++){const i=t.getUint16()>>3
e.push(i),r=Math.max(i,r)}const i=[]
for(let n=0;n<=r;n++)i.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:E(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()})
for(let n=0;n<256;n++)if(0===e[n])t.pos=i[0].idRangePos+2*n,f=t.getUint16(),h.push({charCode:n,glyphId:f})
else{const r=i[e[n]]
for(p=0;p<r.entryCount;p++){const e=(n<<8)+p+r.firstCode
t.pos=r.idRangePos+2*p,f=t.getUint16(),0!==f&&(f=(f+r.idDelta)%65536),h.push({charCode:e,glyphId:f})}}}else if(4===u){t.skip(4)
const e=t.getUint16()>>1
t.skip(6)
const r=[]
let i
for(i=0;i<e;i++)r.push({end:t.getUint16()})
for(t.skip(2),i=0;i<e;i++)r[i].start=t.getUint16()
for(i=0;i<e;i++)r[i].delta=t.getUint16()
let n,o=0
for(i=0;i<e;i++){s=r[i]
const a=t.getUint16()
a?(n=(a>>1)-(e-i),s.offsetIndex=n,o=Math.max(o,n+s.end-s.start+1)):s.offsetIndex=-1}const l=[]
for(p=0;p<o;p++)l.push(t.getUint16())
for(i=0;i<e;i++){s=r[i],a=s.start
const e=s.end,t=s.delta
for(n=s.offsetIndex,p=a;p<=e;p++)65535!==p&&(f=n<0?p:l[n+p-a],f=f+t&65535,h.push({charCode:p,glyphId:f}))}}else if(6===u){t.skip(4)
const e=t.getUint16(),r=t.getUint16()
for(p=0;p<r;p++){f=t.getUint16()
const r=e+p
h.push({charCode:r,glyphId:f})}}else{if(12!==u)return(0,i.warn)("cmap table has unsupported format: "+u),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}
{t.skip(10)
const e=t.getInt32()>>>0
for(p=0;p<e;p++){const e=t.getInt32()>>>0,r=t.getInt32()>>>0
let i=t.getInt32()>>>0
for(let t=e;t<=r;t++)h.push({charCode:t,glyphId:i++})}}}h.sort((function(e,t){return e.charCode-t.charCode}))
for(let i=1;i<h.length;i++)h[i-1].charCode===h[i].charCode&&(h.splice(i,1),i--)
return{platformId:l.platformId,encodingId:l.encodingId,mappings:h,hasShortCmap:d}}(S.cmap,t,this.isSymbolicFont,r.hasEncoding),n=e.platformId,a=e.encodingId,c=e.mappings
let d=[],h=!1
if(!r.hasEncoding||"MacRomanEncoding"!==r.baseEncodingName&&"WinAnsiEncoding"!==r.baseEncodingName||(d=(0,l.getEncoding)(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===n&&1===a||1===n&&0===a)){const e=(0,o.getGlyphsUnicode)()
for(let t=0;t<256;t++){let i
if(i=void 0!==this.differences[t]?this.differences[t]:d.length&&""!==d[t]?d[t]:l.StandardEncoding[t],!i)continue
const o=(0,s.recoverGlyphName)(i,e)
let h
if(3===n&&1===a?h=e[o]:1===n&&0===a&&(h=l.MacRomanEncoding.indexOf(o)),void 0===h){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof u.IdentityToUnicodeMap)){const e=this.toUnicode.get(t)
e&&(h=e.codePointAt(0))}if(void 0===h)continue}for(const e of c)if(e.charCode===h){K[t]=e.glyphId
break}}}else if(0===n){for(const e of c)K[e.charCode]=e.glyphId
h=!0}else for(const t of c){let e=t.charCode
3===n&&e>=61440&&e<=61695&&(e&=255),K[e]=t.glyphId}if(r.glyphNames&&(d.length||this.differences.length))for(let t=0;t<256;++t){if(!h&&void 0!==K[t])continue
const e=this.differences[t]||d[t]
if(!e)continue
const i=r.glyphNames.indexOf(e)
i>0&&Y(i)&&(K[t]=i)}}0===K.length&&(K[0]=0)
let J=N-1
if(R||(J=0),!r.cssFontInfo){const e=B(K,Y,J,this.toUnicode)
this.toFontChar=e.toFontChar,S.cmap={tag:"cmap",data:$(e.charCodeToGlyphId,e.toUnicodeExtraMap,N)},S["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset
const r=t.getUint16()
t.skip(60)
const i=t.getUint16()
return!(r<4&&768&i)&&(!(t.getUint16()>t.getUint16())&&(t.skip(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0)))}(S["OS/2"],t)||(S["OS/2"]={tag:"OS/2",data:z(r,e.charCodeToGlyphId,X)})}if(!T)try{C=new y.Stream(S["CFF "].data)
A=new n.CFFParser(C,r,s.SEAC_ANALYSIS_ENABLED).parse(),A.duplicateFirstGlyph()
const e=new n.CFFCompiler(A)
S["CFF "].data=e.compile()}catch{(0,i.warn)("Failed to compile font "+r.loadedName)}if(S.name){const[t,i]=v(S.name)
S.name.data=H(e,t),this.psName=t[0][6]||null,r.composite||function(e,t,r){if(e.isInternalFont)return
if(e.hasIncludedToUnicodeMap)return
if(e.hasEncoding)return
if(e.toUnicode instanceof u.IdentityToUnicodeMap)return
if(!t)return
if(0===r.length)return
if(e.defaultEncoding===l.WinAnsiEncoding)return
for(const a of r)if(!j(a))return
const i=l.WinAnsiEncoding,n=[],s=(0,o.getGlyphsUnicode)()
for(const a in i){const e=i[a]
if(""===e)continue
const t=s[e]
void 0!==t&&(n[a]=String.fromCharCode(t))}n.length>0&&e.toUnicode.amend(n)}(r,this.isSymbolicFont,i)}else S.name={tag:"name",data:H(this.name)}
const Q=new g.OpenTypeFileBuilder(_.version)
for(const i in S)Q.addTable(i,S[i].data)
return Q.toArray()}convert(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(e.isInternalFont)return
if(e.hasIncludedToUnicodeMap)return
if(t===e.defaultEncoding)return
if(e.toUnicode instanceof u.IdentityToUnicodeMap)return
const r=[],i=(0,o.getGlyphsUnicode)()
for(const n in t){if(e.hasEncoding&&(e.baseEncodingName||void 0!==e.differences[n]))continue
const s=t[n],o=(0,a.getUnicodeForGlyph)(s,i);-1!==o&&(r[n]=String.fromCharCode(o))}r.length>0&&e.toUnicode.amend(r)}(r,r.builtInEncoding)
let n=1
t instanceof d.CFFFont&&(n=t.numGlyphs-1)
const c=t.getGlyphMapping(r)
let h=null,p=c,f=null
r.cssFontInfo||(h=B(c,t.hasGlyphId.bind(t),n,this.toUnicode),this.toFontChar=h.toFontChar,p=h.charCodeToGlyphId,f=h.toUnicodeExtraMap)
const m=t.numGlyphs
function b(e,t){let r=null
for(const i in e)t===e[i]&&(r||=[]).push(0|i)
return r}function y(e,t){for(const r in e)if(t===e[r])return 0|r
return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}const v=t.seacs
if(h&&s.SEAC_ANALYSIS_ENABLED&&v?.length){const e=r.fontMatrix||i.FONT_IDENTITY_MATRIX,n=t.getCharset(),s=Object.create(null)
for(let t in v){t|=0
const r=v[t],i=l.StandardEncoding[r[2]],a=l.StandardEncoding[r[3]],o=n.indexOf(i),u=n.indexOf(a)
if(o<0||u<0)continue
const d={x:r[0]*e[0]+r[1]*e[2]+e[4],y:r[0]*e[1]+r[1]*e[3]+e[5]},p=b(c,t)
if(p)for(const e of p){const t=h.charCodeToGlyphId,r=y(t,o),i=y(t,u)
s[e]={baseFontCharCode:r,accentFontCharCode:i,accentOffset:d}}}r.seacMap=s}const w=1/(r.fontMatrix||i.FONT_IDENTITY_MATRIX)[0],x=new g.OpenTypeFileBuilder("OTTO")
return x.addTable("CFF ",t.data),x.addTable("OS/2",z(r,p)),x.addTable("cmap",$(p,f,m)),x.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+M(w)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+M(r.descent)+"ÿ"+M(r.ascent)+T(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),x.addTable("hhea","\0\0\0"+M(r.ascent)+M(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+M(r.capHeight)+M(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+T(m)),x.addTable("hmtx",function(){const e=t.charstrings,r=t.cff?t.cff.widths:null
let i="\0\0\0\0"
for(let t=1,n=m;t<n;t++){let n=0
if(e){const r=e[t-1]
n="width"in r?r.width:0}else r&&(n=Math.ceil(r[t]||0))
i+=T(n)+T(0)}return i}()),x.addTable("maxp","\0\0P\0"+T(m)),x.addTable("name",H(e)),x.addTable("post",U(r)),x.toArray()}get spaceWidth(){const e=["space","minus","one","i","I"]
let t
for(const r of e){if(r in this.widths){t=this.widths[r]
break}const e=(0,o.getGlyphsUnicode)()[r]
let i=0
if(this.composite&&this.cMap.contains(e)&&(i=this.cMap.lookup(e),"string"==typeof i&&(i=L(e,i))),!i&&this.toUnicode&&(i=this.toUnicode.charCodeOf(e)),i<=0&&(i=e),t=this.widths[i],t)break}return(0,i.shadow)(this,"spaceWidth",t||this.defaultWidth)}_charToGlyph(e,t=!1){let r,n,s,o=this._glyphCache[e]
if(o?.isSpace===t)return o
let l=e
this.cMap?.contains(e)&&(l=this.cMap.lookup(e),"string"==typeof l&&(l=L(e,l))),n=this.widths[l],"number"!=typeof n&&(n=this.defaultWidth)
const c=this.vmetrics?.[l]
let u=this.toUnicode.get(e)||e
"number"==typeof u&&(u=String.fromCharCode(u))
let d=void 0!==this.toFontChar[e]
if(r=this.toFontChar[e]||e,this.missingFile){const t=this.differences[e]||this.defaultEncoding[e]
".notdef"!==t&&""!==t||"Type1"!==this.type||(r=32),r=(0,a.mapSpecialUnicodeValues)(r)}this.isType3Font&&(s=r)
let h=null
if(this.seacMap?.[e]){d=!0
const t=this.seacMap[e]
r=t.baseFontCharCode,h={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let p=""
return"number"==typeof r&&(r<=1114111?p=String.fromCodePoint(r):(0,i.warn)(`charToGlyph - invalid fontCharCode: ${r}`)),o=new C(e,p,u,h,n,c,s,t,d),this._glyphCache[e]=o}charsToGlyphs(e){let t=this._charsCache[e]
if(t)return t
if(t=[],this.cMap){const r=Object.create(null),i=e.length
let n=0
for(;n<i;){this.cMap.readCharCode(e,n,r)
const{charcode:i,length:s}=r
n+=s
const a=this._charToGlyph(i,1===s&&32===e.charCodeAt(n-1))
t.push(a)}}else for(let r=0,i=e.length;r<i;++r){const i=e.charCodeAt(r),n=this._charToGlyph(i,32===i)
t.push(n)}return this._charsCache[e]=t}getCharPositions(e){const t=[]
if(this.cMap){const r=Object.create(null)
let i=0
for(;i<e.length;){this.cMap.readCharCode(e,i,r)
const n=r.length
t.push([i,i+n]),i+=n}}else for(let r=0,i=e.length;r<i;++r)t.push([r,r+1])
return t}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(e){const t=[],r=[],i=()=>t.length%2==1,n=this.toUnicode instanceof u.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e))
for(let s=0,a=e.length;s<a;s++){const a=e.codePointAt(s)
if(a>55295&&(a<57344||a>65533)&&s++,this.toUnicode){const e=n(a)
if(-1!==e){i()&&(t.push(r.join("")),r.length=0)
for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)r.push(String.fromCharCode(e>>8*t&255))
continue}}i()||(t.push(r.join("")),r.length=0),r.push(String.fromCodePoint(a))}return t.push(r.join("")),t}}
t.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(e=!1){return{error:this.error}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0
var i=r(2),n=r(36),s=r(37)
const a=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"]
t.CFFStandardStrings=a
const o=391,l=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],c=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}]
t.CFFParser=class{constructor(e,t,r){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!r}parse(){const e=this.properties,t=new u
this.cff=t
const r=this.parseHeader(),i=this.parseIndex(r.endPos),n=this.parseIndex(i.endPos),s=this.parseIndex(n.endPos),a=this.parseIndex(s.endPos),o=this.parseDict(n.obj.get(0)),l=this.createDict(g,o,t.strings)
t.header=r.obj,t.names=this.parseNameIndex(i.obj),t.strings=this.parseStringIndex(s.obj),t.topDict=l,t.globalSubrIndex=a.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS")
const c=l.getByName("CharStrings"),d=this.parseIndex(c).obj,h=l.getByName("FontMatrix")
h&&(e.fontMatrix=h)
const p=l.getByName("FontBBox")
let f,m
if(p&&(e.ascent=Math.max(p[3],p[1]),e.descent=Math.min(p[1],p[3]),e.ascentScaled=!0),t.isCIDFont){const e=this.parseIndex(l.getByName("FDArray")).obj
for(let r=0,i=e.count;r<i;++r){const i=e.get(r),n=this.createDict(g,this.parseDict(i),t.strings)
this.parsePrivateDict(n),t.fdArray.push(n)}m=null,f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!0),t.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),d.count)}else f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!1),m=this.parseEncoding(l.getByName("Encoding"),e,t.strings,f.charset)
t.charset=f,t.encoding=m
const b=this.parseCharStrings({charStrings:d,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:a.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:l.privateDict})
return t.charStrings=b.charStrings,t.seacs=b.seacs,t.widths=b.widths,t}parseHeader(){let e=this.bytes
const t=e.length
let r=0
for(;r<t&&1!==e[r];)++r
if(r>=t)throw new i.FormatError("Invalid CFF header")
0!==r&&((0,i.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e)
const n=e[0],s=e[1],a=e[2],o=e[3]
return{obj:new d(n,s,a,o),endPos:a}}parseDict(e){let t=0
function r(){let r=e[t++]
return 30===r?function(){let r=""
const i=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],s=e.length
for(;t<s;){const s=e[t++],a=s>>4,o=15&s
if(a===i)break
if(r+=n[a],o===i)break
r+=n[o]}return parseFloat(r)}():28===r?(r=e[t++],r=(r<<24|e[t++]<<16)>>16,r):29===r?(r=e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r):r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,i.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}let n=[]
const s=[]
t=0
const a=e.length
for(;t<a;){let i=e[t]
i<=21?(12===i&&(i=i<<8|e[++t]),s.push([i,n]),n=[],++t):n.push(r())}return s}parseIndex(e){const t=new p,r=this.bytes,i=r[e++]<<8|r[e++],n=[]
let s,a,o=e
if(0!==i){const t=r[e++],l=e+(i+1)*t-1
for(s=0,a=i+1;s<a;++s){let i=0
for(let n=0;n<t;++n)i<<=8,i+=r[e++]
n.push(l+i)}o=n[i]}for(s=0,a=n.length-1;s<a;++s){const e=n[s],i=n[s+1]
t.add(r.subarray(e,i))}return{obj:t,endPos:o}}parseNameIndex(e){const t=[]
for(let r=0,n=e.count;r<n;++r){const n=e.get(r)
t.push((0,i.bytesToString)(n))}return t}parseStringIndex(e){const t=new h
for(let r=0,n=e.count;r<n;++r){const n=e.get(r)
t.add((0,i.bytesToString)(n))}return t}createDict(e,t,r){const i=new e(r)
for(const[n,s]of t)i.setByKey(n,s)
return i}parseCharString(e,t,r,n){if(!t||e.callDepth>10)return!1
let s=e.stackSize
const a=e.stack
let o=t.length
for(let u=0;u<o;){const d=t[u++]
let h=null
if(12===d){const e=t[u++]
0===e?(t[u-2]=139,t[u-1]=22,s=0):h=c[e]}else if(28===d)a[s]=(t[u]<<24|t[u+1]<<16)>>16,u+=2,s++
else if(14===d){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return e.seac=a.slice(s,s+4),!1
h=l[d]}else if(d>=32&&d<=246)a[s]=d-139,s++
else if(d>=247&&d<=254)a[s]=d<251?(d-247<<8)+t[u]+108:-(d-251<<8)-t[u]-108,u++,s++
else if(255===d)a[s]=(t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3])/65536,u+=4,s++
else if(19===d||20===d){if(e.hints+=s>>1,0===e.hints){t.copyWithin(u-1,u,-1),u-=1,o-=1
continue}u+=e.hints+7>>3,s%=2,h=l[d]}else{if(10===d||29===d){const t=10===d?r:n
if(!t)return h=l[d],(0,i.warn)("Missing subrsIndex for "+h.id),!1
let o=32768
t.count<1240?o=107:t.count<33900&&(o=1131)
const c=a[--s]+o
if(c<0||c>=t.count||isNaN(c))return h=l[d],(0,i.warn)("Out of bounds subrIndex for "+h.id),!1
e.stackSize=s,e.callDepth++
if(!this.parseCharString(e,t.get(c),r,n))return!1
e.callDepth--,s=e.stackSize
continue}if(11===d)return e.stackSize=s,!0
if(0===d&&u===t.length)t[u-1]=14,h=l[14]
else{if(9===d){t.copyWithin(u-1,u,-1),u-=1,o-=1
continue}h=l[d]}}if(h){if(h.stem&&(e.hints+=s>>1,3===d||23===d?e.hasVStems=!0:!e.hasVStems||1!==d&&18!==d||((0,i.warn)("CFF stem hints are in wrong order"),t[u-1]=1===d?3:23)),"min"in h&&!e.undefStack&&s<h.min)return(0,i.warn)("Not enough parameters for "+h.id+"; actual: "+s+", expected: "+h.min),0===s&&(t[u-1]=14,!0)
e.firstStackClearing&&h.stackClearing&&(e.firstStackClearing=!1,s-=h.min,s>=2&&h.stem?s%=2:s>1&&(0,i.warn)("Found too many parameters for stack-clearing command"),s>0&&(e.width=a[s-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(a,s),s+=h.stackDelta):h.stackClearing?s=0:h.resetStack?(s=0,e.undefStack=!1):h.undefStack&&(s=0,e.undefStack=!0,e.firstStackClearing=!1)}}return o<t.length&&t.fill(14,o),e.stackSize=s,!0}parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:r,fdSelect:n,fdArray:s,privateDict:a}){const o=[],l=[],c=e.count
for(let u=0;u<c;u++){const c=e.get(u),d={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1}
let h=!0,p=null,f=a
if(n&&s.length){const e=n.getFDIndex(u);-1===e&&((0,i.warn)("Glyph index is not in fd select."),h=!1),e>=s.length&&((0,i.warn)("Invalid fd index for glyph index."),h=!1),h&&(f=s[e].privateDict,p=f.subrsIndex)}else t&&(p=t)
if(h&&(h=this.parseCharString(d,c,p,r)),null!==d.width){const e=f.getByName("nominalWidthX")
l[u]=e+d.width}else{const e=f.getByName("defaultWidthX")
l[u]=e}null!==d.seac&&(o[u]=d.seac),h||e.set(u,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:l}}emptyPrivateDictionary(e){const t=this.createDict(y,[],e.strings)
e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private"))return void this.emptyPrivateDictionary(e)
const t=e.getByName("Private")
if(!Array.isArray(t)||2!==t.length)return void e.removeByName("Private")
const r=t[0],i=t[1]
if(0===r||i>=this.bytes.length)return void this.emptyPrivateDictionary(e)
const n=i+r,s=this.bytes.subarray(i,n),a=this.parseDict(s),o=this.createDict(y,a,e.strings)
if(e.privateDict=o,0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06),!o.getByName("Subrs"))return
const l=o.getByName("Subrs"),c=i+l
if(0===l||c>=this.bytes.length)return void this.emptyPrivateDictionary(e)
const u=this.parseIndex(c)
o.subrsIndex=u.obj}parseCharsets(e,t,r,s){if(0===e)return new w(!0,v.ISO_ADOBE,n.ISOAdobeCharset)
if(1===e)return new w(!0,v.EXPERT,n.ExpertCharset)
if(2===e)return new w(!0,v.EXPERT_SUBSET,n.ExpertSubsetCharset)
const a=this.bytes,o=e,l=a[e++],c=[s?0:".notdef"]
let u,d,h
switch(t-=1,l){case 0:for(h=0;h<t;h++)u=a[e++]<<8|a[e++],c.push(s?u:r.get(u))
break
case 1:for(;c.length<=t;)for(u=a[e++]<<8|a[e++],d=a[e++],h=0;h<=d;h++)c.push(s?u++:r.get(u++))
break
case 2:for(;c.length<=t;)for(u=a[e++]<<8|a[e++],d=a[e++]<<8|a[e++],h=0;h<=d;h++)c.push(s?u++:r.get(u++))
break
default:throw new i.FormatError("Unknown charset format")}const p=e,f=a.subarray(o,p)
return new w(!1,l,c,f)}parseEncoding(e,t,r,n){const a=Object.create(null),o=this.bytes
let l,c,u,d=!1,h=null
if(0===e||1===e){d=!0,l=e
const t=e?s.ExpertEncoding:s.StandardEncoding
for(c=0,u=n.length;c<u;c++){const e=t.indexOf(n[c]);-1!==e&&(a[e]=c)}}else{const t=e
switch(l=o[e++],127&l){case 0:const t=o[e++]
for(c=1;c<=t;c++)a[o[e++]]=c
break
case 1:const r=o[e++]
let n=1
for(c=0;c<r;c++){const t=o[e++],r=o[e++]
for(let e=t;e<=t+r;e++)a[e]=n++}break
default:throw new i.FormatError(`Unknown encoding format: ${l} in CFF`)}const s=e
128&l&&(o[t]&=127,function(){const t=o[e++]
for(c=0;c<t;c++){const t=o[e++],i=(o[e++]<<8)+(255&o[e++])
a[t]=n.indexOf(r.get(i))}}()),h=o.subarray(t,s)}return l&=127,new x(d,l,a,h)}parseFDSelect(e,t){const r=this.bytes,n=r[e++],s=[]
let a
switch(n){case 0:for(a=0;a<t;++a){const t=r[e++]
s.push(t)}break
case 3:const o=r[e++]<<8|r[e++]
for(a=0;a<o;++a){let t=r[e++]<<8|r[e++]
0===a&&0!==t&&((0,i.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),t=0)
const n=r[e++],o=r[e]<<8|r[e+1]
for(let e=t;e<o;++e)s.push(n)}e+=2
break
default:throw new i.FormatError(`parseFDSelect: Unknown format "${n}".`)}if(s.length!==t)throw new i.FormatError("parseFDSelect: Invalid font data.")
return new _(n,s)}}
class u{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new h,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535)return void(0,i.warn)("Not enough space in charstrings to duplicate first glyph.")
const e=this.charStrings.get(0)
this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){if(e<0||e>=this.charStrings.count)return!1
return this.charStrings.get(e).length>0}}t.CFF=u
class d{constructor(e,t,r,i){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=i}}t.CFFHeader=d
class h{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?a[e]:e-o<=this.strings.length?this.strings[e-o]:a[0]}getSID(e){let t=a.indexOf(e)
return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+o:-1)}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=h
class p{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=p
class f{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1
if(0===t.length)return!0
for(const n of t)if(isNaN(n))return(0,i.warn)(`Invalid CFFDict value: "${t}" for key "${e}".`),!0
const r=this.types[e]
return"num"!==r&&"sid"!==r&&"offset"!==r||(t=t[0]),this.values[e]=t,!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new i.FormatError(`Invalid dictionary name "${e}"`)
this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new i.FormatError(`Invalid dictionary name ${e}"`)
const t=this.nameToKeyMap[e]
return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){const t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]}
for(const r of e){const e=Array.isArray(r[0])?(r[0][0]<<8)+r[0][1]:r[0]
t.keyToNameMap[e]=r[1],t.nameToKeyMap[r[1]]=e,t.types[e]=r[2],t.defaults[e]=r[3],t.opcodes[e]=Array.isArray(r[0])?r[0]:[r[0]],t.order.push(e)}return t}}const m=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]]
class g extends f{static get tables(){return(0,i.shadow)(this,"tables",this.createTables(m))}constructor(e){super(g.tables,e),this.privateDict=null}}t.CFFTopDict=g
const b=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]]
class y extends f{static get tables(){return(0,i.shadow)(this,"tables",this.createTables(b))}constructor(e){super(y.tables,e),this.subrsIndex=null}}t.CFFPrivateDict=y
const v={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2}
class w{constructor(e,t,r,i){this.predefined=e,this.format=t,this.charset=r,this.raw=i}}t.CFFCharset=w
class x{constructor(e,t,r,i){this.predefined=e,this.format=t,this.encoding=r,this.raw=i}}class _{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=_
class S{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new i.FormatError(`Already tracking location of ${e}`)
this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,r){if(!(e in this.offsets))throw new i.FormatError(`Not tracking location of ${e}`)
const n=r.data,s=this.offsets[e]
for(let a=0,o=t.length;a<o;++a){const e=5*a+s,r=e+1,o=e+2,l=e+3,c=e+4
if(29!==n[e]||0!==n[r]||0!==n[o]||0!==n[l]||0!==n[c])throw new i.FormatError("writing to an offset that is not empty")
const u=t[a]
n[e]=29,n[r]=u>>24&255,n[o]=u>>16&255,n[l]=u>>8&255,n[c]=255&u}}}class k{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){try{this.data.push(...e)}catch{this.data=this.data.concat(e)}this.length=this.data.length}},r=this.compileHeader(e.header)
t.add(r)
const n=this.compileNameIndex(e.names)
if(t.add(n),e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix")
e.topDict.removeByName("FontMatrix")
for(const r of e.fdArray){let e=t.slice(0)
r.hasName("FontMatrix")&&(e=i.Util.transform(e,r.getByName("FontMatrix"))),r.setByName("FontMatrix",e)}}const s=e.topDict.getByName("XUID")
s?.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0)
let a=this.compileTopDicts([e.topDict],t.length,e.isCIDFont)
t.add(a.output)
const o=a.trackers[0],l=this.compileStringIndex(e.strings.strings)
t.add(l)
const c=this.compileIndex(e.globalSubrIndex)
if(t.add(c),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)o.setEntryLocation("Encoding",[e.encoding.format],t)
else{const r=this.compileEncoding(e.encoding)
o.setEntryLocation("Encoding",[t.length],t),t.add(r)}const u=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont)
o.setEntryLocation("charset",[t.length],t),t.add(u)
const d=this.compileCharStrings(e.charStrings)
if(o.setEntryLocation("CharStrings",[t.length],t),t.add(d),e.isCIDFont){o.setEntryLocation("FDSelect",[t.length],t)
const r=this.compileFDSelect(e.fdSelect)
t.add(r),a=this.compileTopDicts(e.fdArray,t.length,!0),o.setEntryLocation("FDArray",[t.length],t),t.add(a.output)
const i=a.trackers
this.compilePrivateDicts(e.fdArray,i,t)}return this.compilePrivateDicts([e.topDict],[o],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,i.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString()
const r=k.EncodeFloatRegExp.exec(t)
if(r){const i=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length))
t=(Math.round(e*i)/i).toString()}let i,n,s=""
for(i=0,n=t.length;i<n;++i){const e=t[i]
s+="e"===e?"-"===t[++i]?"c":"b":"."===e?"a":"-"===e?"e":e}s+=1&s.length?"f":"ff"
const a=[30]
for(i=0,n=s.length;i<n;i+=2)a.push(parseInt(s.substring(i,i+2),16))
return a}encodeInteger(e){let t
return t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new p
for(const r of e){const e=Math.min(r.length,127)
let n=new Array(e)
for(let t=0;t<e;t++){let e=r[t];(e<"!"||e>"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_"),n[t]=e}n=n.join(""),""===n&&(n="Bad_Font_Name"),t.add((0,i.stringToBytes)(n))}return this.compileIndex(t)}compileTopDicts(e,t,r){const i=[]
let n=new p
for(const s of e){r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"))
const e=new S,a=this.compileDict(s,e)
i.push(e),n.add(a),e.offset(t)}return n=this.compileIndex(n,i),{trackers:i,output:n}}compilePrivateDicts(e,t,r){for(let n=0,s=e.length;n<s;++n){const s=e[n],a=s.privateDict
if(!a||!s.hasName("Private"))throw new i.FormatError("There must be a private dictionary.")
const o=new S,l=this.compileDict(a,o)
let c=r.length
if(o.offset(c),l.length||(c=0),t[n].setEntryLocation("Private",[l.length,c],r),r.add(l),a.subrsIndex&&a.hasName("Subrs")){const e=this.compileIndex(a.subrsIndex)
o.setEntryLocation("Subrs",[l.length],r),r.add(e)}}}compileDict(e,t){const r=[]
for(const n of e.order){if(!(n in e.values))continue
let s=e.values[n],a=e.types[n]
if(Array.isArray(a)||(a=[a]),Array.isArray(s)||(s=[s]),0!==s.length){for(let o=0,l=a.length;o<l;++o){const l=a[o],c=s[o]
switch(l){case"num":case"sid":r.push(...this.encodeNumber(c))
break
case"offset":const a=e.keyToNameMap[n]
t.isTracking(a)||t.track(a,r.length),r.push(29,0,0,0,0)
break
case"array":case"delta":r.push(...this.encodeNumber(c))
for(let e=1,t=s.length;e<t;++e)r.push(...this.encodeNumber(s[e]))
break
default:throw new i.FormatError(`Unknown data type of ${l}`)}}r.push(...e.opcodes[n])}}return r}compileStringIndex(e){const t=new p
for(const r of e)t.add((0,i.stringToBytes)(r))
return this.compileIndex(t)}compileCharStrings(e){const t=new p
for(let r=0;r<e.count;r++){const i=e.get(r)
0!==i.length?t.add(i):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}compileCharset(e,t,r,n){let s
const a=t-1
if(n)s=new Uint8Array([2,0,0,a>>8&255,255&a])
else{s=new Uint8Array(1+2*a),s[0]=0
let t=0
const n=e.charset.length
let o=!1
for(let a=1;a<s.length;a+=2){let l=0
if(t<n){const n=e.charset[t++]
l=r.getSID(n),-1===l&&(l=0,o||(o=!0,(0,i.warn)(`Couldn't find ${n} in CFF strings`)))}s[a]=l>>8&255,s[a+1]=255&l}}return this.compileTypedArray(s)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format
let r,i
switch(t){case 0:for(r=new Uint8Array(1+e.fdSelect.length),r[0]=t,i=0;i<e.fdSelect.length;i++)r[i+1]=e.fdSelect[i]
break
case 3:const n=0
let s=e.fdSelect[0]
const a=[t,0,0,n>>8&255,255&n,s]
for(i=1;i<e.fdSelect.length;i++){const t=e.fdSelect[i]
t!==s&&(a.push(i>>8&255,255&i,t),s=t)}const o=(a.length-3)/3
a[1]=o>>8&255,a[2]=255&o,a.push(i>>8&255,255&i),r=new Uint8Array(a)}return this.compileTypedArray(r)}compileTypedArray(e){return Array.from(e)}compileIndex(e,t=[]){const r=e.objects,i=r.length
if(0===i)return[0,0]
const n=[i>>8&255,255&i]
let s,a,o=1
for(s=0;s<i;++s)o+=r[s].length
a=o<256?1:o<65536?2:o<16777216?3:4,n.push(a)
let l=1
for(s=0;s<i+1;s++)1===a?n.push(255&l):2===a?n.push(l>>8&255,255&l):3===a?n.push(l>>16&255,l>>8&255,255&l):n.push(l>>>24&255,l>>16&255,l>>8&255,255&l),r[s]&&(l+=r[s].length)
for(s=0;s<i;s++)t[s]&&t[s].offset(n.length),n.push(...r[s])
return n}}t.CFFCompiler=k},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0
t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"]
t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]
t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return a
case"StandardEncoding":return s
case"MacRomanEncoding":return n
case"SymbolSetEncoding":return o
case"ZapfDingbatsEncoding":return l
case"ExpertEncoding":return r
case"MacExpertEncoding":return i
default:return null}}
const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]
t.ExpertEncoding=r
const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"]
t.MacRomanEncoding=n
const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""]
t.StandardEncoding=s
const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"]
t.WinAnsiEncoding=a
const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""]
t.SymbolSetEncoding=o
const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""]
t.ZapfDingbatsEncoding=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.normalizeFontName=function(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")},t.recoverGlyphName=l,t.type1FontGlyphMapping=function(e,t,r){const s=Object.create(null)
let a,c,u
const d=!!(e.flags&o.Symbolic)
if(e.isInternalFont)for(u=t,c=0;c<u.length;c++)a=r.indexOf(u[c]),s[c]=a>=0?a:0
else if(e.baseEncodingName)for(u=(0,i.getEncoding)(e.baseEncodingName),c=0;c<u.length;c++)a=r.indexOf(u[c]),s[c]=a>=0?a:0
else if(d)for(c in t)s[c]=t[c]
else for(u=i.StandardEncoding,c=0;c<u.length;c++)a=r.indexOf(u[c]),s[c]=a>=0?a:0
const h=e.differences
let p
if(h)for(c in h){const e=h[c]
if(a=r.indexOf(e),-1===a){p||(p=(0,n.getGlyphsUnicode)())
const t=l(e,p)
t!==e&&(a=r.indexOf(t))}s[c]=a>=0?a:0}return s}
var i=r(37),n=r(39),s=r(40),a=r(2)
t.SEAC_ANALYSIS_ENABLED=!0
const o={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144}
t.FontFlags=o
function l(e,t){if(void 0!==t[e])return e
const r=(0,s.getUnicodeForGlyph)(e,t)
if(-1!==r)for(const i in t)if(t[i]===r)return i
return(0,a.info)("Unable to recover a standard glyph name for: "+e),e}t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getGlyphsUnicode=t.getDingbatsGlyphsUnicode=void 0
var i=r(3)
const n=(0,i.getLookupTableFactory)((function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478
e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686
e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222
e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272
e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864
e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425
e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286
e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202
e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207
e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140
e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408
e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77
e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342
e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210
e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216
e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356
e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472
e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578
e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986
e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035
e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920
e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419
e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122
e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379
e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259
e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481
e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062
e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077
e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107
e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634
e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589
e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657
e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509
e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472
e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760
e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270
e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686
e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678
e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290
e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732
e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332
e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701
e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339
e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714
e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200
e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616
e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109
e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127
e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301
e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384
e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831
e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007
e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619
e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798
e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234
e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329
e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230
e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941
e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425
e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429
e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503
e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258
e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365
e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289
e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379
e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62
e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188
e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457
e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259
e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830
e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107
e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380
e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288
e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356
e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733
e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367
e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381
e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069
e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190
e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595
e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738
e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556
e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739
e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267
e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629
e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426
e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242
e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512
e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555
e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647
e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460
e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716
e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119
e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889
e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458
e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633
e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511
e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602
e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472
e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334
e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642
e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291
e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232
e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440
e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317
e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758
e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639
e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522
e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784
e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744
e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783
e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379
e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311
e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362
e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010
e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302
e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32
e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677
e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868
e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793
e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361
e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825
e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323
e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430
e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391
e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359
e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072
e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369
e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263
e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361
e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074
e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652
e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809
e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367
e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607
e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165
e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430
e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683
e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380
e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376
e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601
e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969
e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743
e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732
e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}))
t.getGlyphsUnicode=n
const s=(0,i.getLookupTableFactory)((function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013
e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043
e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073
e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105
e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597
e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166
e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0}))
t.getDingbatsGlyphsUnicode=s},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearUnicodeCaches=function(){a.clear()},t.getCharUnicodeCategory=function(e){const t=a.get(e)
if(t)return t
const r=e.match(s),i={isWhitespace:!!r?.[1],isZeroWidthDiacritic:!!r?.[2],isInvisibleFormatMark:!!r?.[3]}
return a.set(e,i),i},t.getUnicodeForGlyph=function(e,t){let r=t[e]
if(void 0!==r)return r
if(!e)return-1
if("u"===e[0]){const t=e.length
let i
if(7===t&&"n"===e[1]&&"i"===e[2])i=e.substring(3)
else{if(!(t>=5&&t<=7))return-1
i=e.substring(1)}if(i===i.toUpperCase()&&(r=parseInt(i,16),r>=0))return r}return-1},t.getUnicodeRangeFor=function(e,t=-1){if(-1!==t){const r=n[t]
for(let i=0,n=r.length;i<n;i+=2)if(e>=r[i]&&e<=r[i+1])return t}for(let r=0,i=n.length;r<i;r++){const t=n[r]
for(let i=0,n=t.length;i<n;i+=2)if(e>=t[i]&&e<=t[i+1])return r}return-1},t.mapSpecialUnicodeValues=function(e){if(e>=65520&&e<=65535)return 0
if(e>=62976&&e<=63743)return i()[e]||e
if(173===e)return 45
return e}
const i=(0,r(3).getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}))
const n=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]]
const s=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),a=new Map},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){const t=(0,n.normalizeFontName)(e)
return s()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0,t.isKnownFontName=function(e){const t=(0,n.normalizeFontName)(e)
return!!(s()[t]||o()[t]||l()[t]||c()[t])}
var i=r(3),n=r(38)
const s=(0,i.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique"
e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic"
e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}))
t.getStdFontMap=s
const a=(0,i.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}))
t.getFontNameToFileMap=a
const o=(0,i.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold"
e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica"}))
t.getNonStdFontMap=o
const l=(0,i.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0
e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0
e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0
e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0
e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}))
t.getSerifFonts=l
const c=(0,i.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0}))
t.getSymbolsFonts=c
const u=(0,i.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60
e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90
e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120
e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243
e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181
e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322
e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964
e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507
e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342
e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861
e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498
e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554
e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611
e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891
e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}))
t.getGlyphMapForStandardFonts=u
const d=(0,i.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}))
t.getSupplementalGlyphMapForArialBlack=d
const h=(0,i.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82
e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103
e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122
e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}))
t.getSupplementalGlyphMapForCalibri=h},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0
var i=r(2)
t.ToUnicodeMap=class{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map
if(t.length<=65536)return t.indexOf(e)
for(const r in t)if(t[r]===e)return 0|r
return-1}amend(e){for(const t in e)this._map[t]=e[t]}}
t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,i.unreachable)("Should not call amend()")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0
var i=r(35),n=r(38),s=r(2)
t.CFFFont=class{constructor(e,t){this.properties=t
const r=new i.CFFParser(e,t,n.SEAC_ANALYSIS_ENABLED)
this.cff=r.parse(),this.cff.duplicateFirstGlyph()
const a=new i.CFFCompiler(this.cff)
this.seacs=this.cff.seacs
try{this.data=a.compile()}catch{(0,s.warn)("Failed to compile font "+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:r,cMap:i}=t,s=e.charset.charset
let a,o
if(t.composite){let t,n
if(r?.length>0){t=Object.create(null)
for(let e=0,i=r.length;e<i;e++){const i=r[e]
void 0!==i&&(t[i]=e)}}if(a=Object.create(null),e.isCIDFont)for(o=0;o<s.length;o++){const e=s[o]
n=i.charCodeOf(e),void 0!==t?.[n]&&(n=t[n]),a[n]=o}else for(o=0;o<e.charStrings.count;o++)n=i.charCodeOf(o),a[n]=o
return a}let l=e.encoding?e.encoding.encoding:null
return t.isInternalFont&&(l=t.defaultEncoding),a=(0,n.type1FontGlyphMapping)(t,l,s),a}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){const{charset:e,encoding:t}=this.cff
if(!e||!t)return
const r=e.charset,i=t.encoding,n=[]
for(const s in i){const e=i[s]
if(e>=0){const t=r[e]
t&&(n[s]=t)}}n.length>0&&(this.properties.builtInEncoding=n)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0
var i=r(2),n=r(35),s=r(39),a=r(37),o=r(8)
function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return e[t]<<8|e[t+1]}function u(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function d(e,t){return e[t]<<24>>24}function h(e,t){return u(e,t)/16384}function p(e){const t=e.length
let r=32768
return t<1240?r=107:t<33900&&(r=1131),r}function f(e,t,r){const n=1===c(e,t+2)?l(e,t+8):l(e,t+16),s=c(e,t+n)
let a,o,u
if(4===s){c(e,t+n+2)
const r=c(e,t+n+6)>>1
for(o=t+n+14,a=[],u=0;u<r;u++,o+=2)a[u]={end:c(e,o)}
for(o+=2,u=0;u<r;u++,o+=2)a[u].start=c(e,o)
for(u=0;u<r;u++,o+=2)a[u].idDelta=c(e,o)
for(u=0;u<r;u++,o+=2){let t=c(e,o)
if(0!==t){a[u].ids=[]
for(let r=0,i=a[u].end-a[u].start+1;r<i;r++)a[u].ids[r]=c(e,o+t),t+=2}}return a}if(12===s){const r=l(e,t+n+12)
for(o=t+n+16,a=[],u=0;u<r;u++)t=l(e,o),a.push({start:t,end:l(e,o+4),idDelta:l(e,o+8)-t}),o+=12
return a}throw new i.FormatError(`unsupported cmap: ${s}`)}function m(e,t,r,i){const s=new n.CFFParser(new o.Stream(e,t,r-t),{},i).parse()
return{glyphs:s.charStrings.objects,subrs:s.topDict.privateDict?.subrsIndex?.objects,gsubrs:s.globalSubrIndex?.objects,isCFFCIDFont:s.isCIDFont,fdSelect:s.fdSelect,fdArray:s.fdArray}}function g(e,t){const r=t.codePointAt(0)
let i=0,n=0,s=e.length-1
for(;n<s;){const t=n+s+1>>1
r<e[t].start?s=t-1:n=t}return e[n].start<=r&&r<=e[n].end&&(i=e[n].idDelta+(e[n].ids?e[n].ids[r-e[n].start]:r)&65535),{charCode:r,glyphId:i}}function b(e,t,r){function i(e,r){t.push({cmd:"moveTo",args:[e,r]})}function n(e,r){t.push({cmd:"lineTo",args:[e,r]})}function s(e,r,i,n){t.push({cmd:"quadraticCurveTo",args:[e,r,i,n]})}let a=0
const o=u(e,a)
let l,p=0,f=0
if(a+=10,o<0)do{l=c(e,a)
const i=c(e,a+2)
let n,s
a+=4,1&l?(2&l?(n=u(e,a),s=u(e,a+2)):(n=c(e,a),s=c(e,a+2)),a+=4):2&l?(n=d(e,a++),s=d(e,a++)):(n=e[a++],s=e[a++]),2&l?(p=n,f=s):(p=0,f=0)
let o=1,m=1,g=0,y=0
8&l?(o=m=h(e,a),a+=2):64&l?(o=h(e,a),m=h(e,a+2),a+=4):128&l&&(o=h(e,a),g=h(e,a+2),y=h(e,a+4),m=h(e,a+6),a+=8)
const v=r.glyphs[i]
v&&(t.push({cmd:"save"},{cmd:"transform",args:[o,g,y,m,p,f]}),b(v,t,r),t.push({cmd:"restore"}))}while(32&l)
else{const t=[]
let r,d
for(r=0;r<o;r++)t.push(c(e,a)),a+=2
a+=2+c(e,a)
const h=t.at(-1)+1,m=[]
for(;m.length<h;){l=e[a++]
let t=1
for(8&l&&(t+=e[a++]);t-- >0;)m.push({flags:l})}for(r=0;r<h;r++){switch(18&m[r].flags){case 0:p+=u(e,a),a+=2
break
case 2:p-=e[a++]
break
case 18:p+=e[a++]}m[r].x=p}for(r=0;r<h;r++){switch(36&m[r].flags){case 0:f+=u(e,a),a+=2
break
case 4:f-=e[a++]
break
case 36:f+=e[a++]}m[r].y=f}let g=0
for(a=0;a<o;a++){const e=t[a],o=m.slice(g,e+1)
if(1&o[0].flags)o.push(o[0])
else if(1&o.at(-1).flags)o.unshift(o.at(-1))
else{const e={flags:1,x:(o[0].x+o.at(-1).x)/2,y:(o[0].y+o.at(-1).y)/2}
o.unshift(e),o.push(e)}for(i(o[0].x,o[0].y),r=1,d=o.length;r<d;r++)1&o[r].flags?n(o[r].x,o[r].y):1&o[r+1].flags?(s(o[r].x,o[r].y,o[r+1].x,o[r+1].y),r++):s(o[r].x,o[r].y,(o[r].x+o[r+1].x)/2,(o[r].y+o[r+1].y)/2)
g=e+1}}}function y(e,t,r,n){function s(e,r){t.push({cmd:"moveTo",args:[e,r]})}function o(e,r){t.push({cmd:"lineTo",args:[e,r]})}function l(e,r,i,n,s,a){t.push({cmd:"bezierCurveTo",args:[e,r,i,n,s,a]})}const c=[]
let u=0,d=0,h=0;(function e(f){let m=0
for(;m<f.length;){let b,v,w,x,_,S,k,A,C,P=!1,O=f[m++]
switch(O){case 1:case 3:case 18:case 23:h+=c.length>>1,P=!0
break
case 4:d+=c.pop(),s(u,d),P=!0
break
case 5:for(;c.length>0;)u+=c.shift(),d+=c.shift(),o(u,d)
break
case 6:for(;c.length>0&&(u+=c.shift(),o(u,d),0!==c.length);)d+=c.shift(),o(u,d)
break
case 7:for(;c.length>0&&(d+=c.shift(),o(u,d),0!==c.length);)u+=c.shift(),o(u,d)
break
case 8:for(;c.length>0;)b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d)
break
case 10:if(A=c.pop(),C=null,r.isCFFCIDFont){const e=r.fdSelect.getFDIndex(n)
if(e>=0&&e<r.fdArray.length){const t=r.fdArray[e]
let i
t.privateDict?.subrsIndex&&(i=t.privateDict.subrsIndex.objects),i&&(A+=p(i),C=i[A])}else(0,i.warn)("Invalid fd index for glyph index.")}else C=r.subrs[A+r.subrsBias]
C&&e(C)
break
case 11:return
case 12:switch(O=f[m++],O){case 34:b=u+c.shift(),v=b+c.shift(),_=d+c.shift(),u=v+c.shift(),l(b,d,v,_,u,_),b=u+c.shift(),v=b+c.shift(),u=v+c.shift(),l(b,_,v,d,u,d)
break
case 35:b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d),b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d),c.pop()
break
case 36:b=u+c.shift(),_=d+c.shift(),v=b+c.shift(),S=_+c.shift(),u=v+c.shift(),l(b,_,v,S,u,S),b=u+c.shift(),v=b+c.shift(),k=S+c.shift(),u=v+c.shift(),l(b,S,v,k,u,d)
break
case 37:const e=u,t=d
b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d),b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v,d=x,Math.abs(u-e)>Math.abs(d-t)?u+=c.shift():d+=c.shift(),l(b,w,v,x,u,d)
break
default:throw new i.FormatError(`unknown operator: 12 ${O}`)}break
case 14:if(c.length>=4){const e=c.pop(),i=c.pop()
d=c.pop(),u=c.pop(),t.push({cmd:"save"},{cmd:"translate",args:[u,d]})
let n=g(r.cmap,String.fromCharCode(r.glyphNameMap[a.StandardEncoding[e]]))
y(r.glyphs[n.glyphId],t,r,n.glyphId),t.push({cmd:"restore"}),n=g(r.cmap,String.fromCharCode(r.glyphNameMap[a.StandardEncoding[i]])),y(r.glyphs[n.glyphId],t,r,n.glyphId)}return
case 19:case 20:h+=c.length>>1,m+=h+7>>3,P=!0
break
case 21:d+=c.pop(),u+=c.pop(),s(u,d),P=!0
break
case 22:u+=c.pop(),s(u,d),P=!0
break
case 24:for(;c.length>2;)b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d)
u+=c.shift(),d+=c.shift(),o(u,d)
break
case 25:for(;c.length>6;)u+=c.shift(),d+=c.shift(),o(u,d)
b=u+c.shift(),w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+c.shift(),l(b,w,v,x,u,d)
break
case 26:for(c.length%2&&(u+=c.shift());c.length>0;)b=u,w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v,d=x+c.shift(),l(b,w,v,x,u,d)
break
case 27:for(c.length%2&&(d+=c.shift());c.length>0;)b=u+c.shift(),w=d,v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x,l(b,w,v,x,u,d)
break
case 28:c.push((f[m]<<24|f[m+1]<<16)>>16),m+=2
break
case 29:A=c.pop()+r.gsubrsBias,C=r.gsubrs[A],C&&e(C)
break
case 30:for(;c.length>0&&(b=u,w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+(1===c.length?c.shift():0),l(b,w,v,x,u,d),0!==c.length);)b=u+c.shift(),w=d,v=b+c.shift(),x=w+c.shift(),d=x+c.shift(),u=v+(1===c.length?c.shift():0),l(b,w,v,x,u,d)
break
case 31:for(;c.length>0&&(b=u+c.shift(),w=d,v=b+c.shift(),x=w+c.shift(),d=x+c.shift(),u=v+(1===c.length?c.shift():0),l(b,w,v,x,u,d),0!==c.length);)b=u,w=d+c.shift(),v=b+c.shift(),x=w+c.shift(),u=v+c.shift(),d=x+(1===c.length?c.shift():0),l(b,w,v,x,u,d)
break
default:if(O<32)throw new i.FormatError(`unknown operator: ${O}`)
O<247?c.push(O-139):O<251?c.push(256*(O-247)+f[m++]+108):O<255?c.push(256*-(O-251)-f[m++]-108):(c.push((f[m]<<24|f[m+1]<<16|f[m+2]<<8|f[m+3])/65536),m+=4)}P&&(c.length=0)}})(e)}const v=[]
class w{constructor(e){this.constructor===w&&(0,i.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:r}=g(this.cmap,e)
let i=this.compiledGlyphs[r]
if(!i)try{i=this.compileGlyph(this.glyphs[r],r),this.compiledGlyphs[r]=i}catch(n){throw this.compiledGlyphs[r]=v,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=r),n}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=r),i}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return v
let r=this.fontMatrix
if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t)
if(e>=0&&e<this.fdArray.length){r=this.fdArray[e].getByName("FontMatrix")||i.FONT_IDENTITY_MATRIX}else(0,i.warn)("Invalid fd index for glyph index.")}const n=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}]
return this.compileGlyphImpl(e,n,t),n.push({cmd:"restore"}),n}compileGlyphImpl(){(0,i.unreachable)("Children classes should implement this.")}hasBuiltPath(e){const{charCode:t,glyphId:r}=g(this.cmap,e)
return void 0!==this.compiledGlyphs[r]&&void 0!==this.compiledCharCodeToGlyphId[t]}}class x extends w{constructor(e,t,r){super(r||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){b(e,t,this)}}class _ extends w{constructor(e,t,r,i){super(r||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=i||(0,s.getGlyphsUnicode)(),this.gsubrsBias=p(this.gsubrs),this.subrsBias=p(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,r){y(e,t,this,r)}}t.FontRendererFactory=class{static create(e,t){const r=new Uint8Array(e.data)
let n,s,a,o,u,d
const h=c(r,4)
for(let p=0,g=12;p<h;p++,g+=16){const e=(0,i.bytesToString)(r.subarray(g,g+4)),h=l(r,g+8),p=l(r,g+12)
switch(e){case"cmap":n=f(r,h)
break
case"glyf":s=r.subarray(h,h+p)
break
case"loca":a=r.subarray(h,h+p)
break
case"head":d=c(r,h+18),u=c(r,h+50)
break
case"CFF ":o=m(r,h,h+p,t)}}if(s){const t=d?[1/d,0,0,1/d,0,0]:e.fontMatrix
return new x(function(e,t,r){let i,n
r?(i=4,n=l):(i=2,n=(e,t)=>2*c(e,t))
const s=[]
let a=n(t,0)
for(let o=i;o<t.length;o+=i){const r=n(t,o)
s.push(e.subarray(a,r)),a=r}return s}(s,a,u),n,t)}return new _(o,n,e.fontMatrix,e.glyphNameMap)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0
var i=r(3)
const n=(0,i.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,i.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584
e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278
e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500
e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278
e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722
e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667
e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834
e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500
e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,i.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584
e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333
e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556
e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278
e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722
e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722
e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834
e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556
e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,i.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584
e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333
e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556
e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278
e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722
e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722
e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834
e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556
e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,i.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584
e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278
e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500
e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278
e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722
e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667
e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834
e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500
e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,i.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549
e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333
e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686
e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549
e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549
e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686
e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,i.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564
e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333
e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500
e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333
e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667
e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722
e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750
e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500
e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,i.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570
e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333
e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500
e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389
e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722
e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722
e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750
e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556
e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,i.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570
e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333
e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444
e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500
e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389
e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667
e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444
e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667
e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750
e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500
e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,i.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675
e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389
e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444
e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500
e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333
e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667
e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444
e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611
e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750
e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444
e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,i.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494
e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707
e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277
e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626
e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788
e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463
e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}))
t.getMetrics=n
const s=(0,i.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}))
t.getFontBasicMetrics=s},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0
t.GlyfTable=class{constructor({glyfTable:e,isGlyphLocationsLong:t,locaTable:i,numGlyphs:n}){this.glyphs=[]
const s=new DataView(i.buffer,i.byteOffset,i.byteLength),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=t?4:2
let l=t?s.getUint32(0):2*s.getUint16(0),c=0
for(let u=0;u<n;u++){c+=o
const e=t?s.getUint32(c):2*s.getUint16(c)
if(e===l){this.glyphs.push(new r({}))
continue}const i=r.parse(l,a)
this.glyphs.push(i),l=e}}getSize(){return this.glyphs.reduce(((e,t)=>e+(t.getSize()+3&-4)),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),r=e>131070,i=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*i))
r?n.setUint32(0,0):n.setUint16(0,0)
let s=0,a=0
for(const o of this.glyphs)s+=o.write(s,t),s=s+3&-4,a+=i,r?n.setUint32(a,s):n.setUint16(a,s>>1)
return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,r=this.glyphs.length;t<r;t++)this.glyphs[t].scale(e[t])}}
class r{constructor({header:e=null,simple:t=null,composites:r=null}){this.header=e,this.simple=t,this.composites=r}static parse(e,t){const[n,o]=i.parse(e,t)
if(e+=n,o.numberOfContours<0){const i=[]
for(;;){const[r,n]=a.parse(e,t)
if(e+=r,i.push(n),!(32&n.flags))break}return new r({header:o,composites:i})}const l=s.parse(e,t,o.numberOfContours)
return new r({header:o,simple:l})}getSize(){if(!this.header)return 0
const e=this.simple?this.simple.getSize():this.composites.reduce(((e,t)=>e+t.getSize()),0)
return this.header.getSize()+e}write(e,t){if(!this.header)return 0
const r=e
if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t)
else for(const i of this.composites)e+=i.write(e,t)
return e-r}scale(e){if(!this.header)return
const t=(this.header.xMin+this.header.xMax)/2
if(this.header.scale(t,e),this.simple)this.simple.scale(t,e)
else for(const r of this.composites)r.scale(t,e)}}class i{constructor({numberOfContours:e,xMin:t,yMin:r,xMax:i,yMax:n}){this.numberOfContours=e,this.xMin=t,this.yMin=r,this.xMax=i,this.yMax=n}static parse(e,t){return[10,new i({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class n{constructor({flags:e,xCoordinates:t,yCoordinates:r}){this.xCoordinates=t,this.yCoordinates=r,this.flags=e}}class s{constructor({contours:e,instructions:t}){this.contours=e,this.instructions=t}static parse(e,t,r){const i=[]
for(let n=0;n<r;n++){const r=t.getUint16(e)
e+=2,i.push(r)}const a=i[r-1]+1,o=t.getUint16(e)
e+=2
const l=new Uint8Array(t).slice(e,e+o)
e+=o
const c=[]
for(let n=0;n<a;e++,n++){let r=t.getUint8(e)
if(c.push(r),8&r){const i=t.getUint8(++e)
r^=8
for(let e=0;e<i;e++)c.push(r)
n+=i}}const u=[]
let d=[],h=[],p=[]
const f=[]
let m=0,g=0
for(let n=0;n<a;n++){const r=c[n]
if(2&r){const i=t.getUint8(e++)
g+=16&r?i:-i,d.push(g)}else 16&r||(g+=t.getInt16(e),e+=2),d.push(g)
i[m]===n&&(m++,u.push(d),d=[])}g=0,m=0
for(let s=0;s<a;s++){const r=c[s]
if(4&r){const i=t.getUint8(e++)
g+=32&r?i:-i,h.push(g)}else 32&r||(g+=t.getInt16(e),e+=2),h.push(g)
p.push(1&r|64&r),i[m]===s&&(d=u[m],m++,f.push(new n({flags:p,xCoordinates:d,yCoordinates:h})),h=[],p=[])}return new s({contours:f,instructions:l})}getSize(){let e=2*this.contours.length+2+this.instructions.length,t=0,r=0
for(const i of this.contours){e+=i.flags.length
for(let n=0,s=i.xCoordinates.length;n<s;n++){const s=i.xCoordinates[n],a=i.yCoordinates[n]
let o=Math.abs(s-t)
o>255?e+=2:o>0&&(e+=1),t=s,o=Math.abs(a-r),o>255?e+=2:o>0&&(e+=1),r=a}}return e}write(e,t){const r=e,i=[],n=[],s=[]
let a=0,o=0
for(const l of this.contours){for(let e=0,t=l.xCoordinates.length;e<t;e++){let t=l.flags[e]
const r=l.xCoordinates[e]
let c=r-a
if(0===c)t|=16,i.push(0)
else{const e=Math.abs(c)
e<=255?(t|=c>=0?18:2,i.push(e)):i.push(c)}a=r
const u=l.yCoordinates[e]
if(c=u-o,0===c)t|=32,n.push(0)
else{const e=Math.abs(c)
e<=255?(t|=c>=0?36:4,n.push(e)):n.push(c)}o=u,s.push(t)}t.setUint16(e,i.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)
for(const l of s)t.setUint8(e++,l)
for(let l=0,c=i.length;l<c;l++){const r=i[l],n=s[l]
2&n?t.setUint8(e++,r):16&n||(t.setInt16(e,r),e+=2)}for(let l=0,c=n.length;l<c;l++){const r=n[l],i=s[l]
4&i?t.setUint8(e++,r):32&i||(t.setInt16(e,r),e+=2)}return e-r}scale(e,t){for(const r of this.contours)if(0!==r.xCoordinates.length)for(let i=0,n=r.xCoordinates.length;i<n;i++)r.xCoordinates[i]=Math.round(e+(r.xCoordinates[i]-e)*t)}}class a{constructor({flags:e,glyphIndex:t,argument1:r,argument2:i,transf:n,instructions:s}){this.flags=e,this.glyphIndex=t,this.argument1=r,this.argument2=i,this.transf=n,this.instructions=s}static parse(e,t){const r=e,i=[]
let n=t.getUint16(e)
const s=t.getUint16(e+2)
let o,l
e+=4,1&n?(2&n?(o=t.getInt16(e),l=t.getInt16(e+2)):(o=t.getUint16(e),l=t.getUint16(e+2)),e+=4,n^=1):(2&n?(o=t.getInt8(e),l=t.getInt8(e+1)):(o=t.getUint8(e),l=t.getUint8(e+1)),e+=2),8&n?(i.push(t.getUint16(e)),e+=2):64&n?(i.push(t.getUint16(e),t.getUint16(e+2)),e+=4):128&n&&(i.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6)),e+=8)
let c=null
if(256&n){const r=t.getUint16(e)
e+=2,c=new Uint8Array(t).slice(e,e+r),e+=r}return[e-r,new a({flags:n,glyphIndex:s,argument1:o,argument2:l,transf:i,instructions:c})]}getSize(){let e=4+2*this.transf.length
return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,t){const r=e
return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}scale(e,t){}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0
var i=r(3),n=r(2)
function s(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function a(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function o(e,t,r){if(r instanceof Uint8Array)e.set(r,t)
else if("string"==typeof r)for(let i=0,n=r.length;i<n;i++)e[t++]=255&r.charCodeAt(i)
else for(const i of r)e[t++]=255&i}class l{constructor(e){this.sfnt=e,this.tables=Object.create(null)}static getSearchParams(e,t){let r=1,i=0
for(;(r^e)>r;)r<<=1,i++
const n=r*t
return{range:n,entry:i,rangeShift:t*e-n}}toArray(){let e=this.sfnt
const t=this.tables,r=Object.keys(t)
r.sort()
const c=r.length
let u,d,h,p,f,m=12+16*c
const g=[m]
for(u=0;u<c;u++){p=t[r[u]]
m+=(p.length+3&-4)>>>0,g.push(m)}const b=new Uint8Array(m)
for(u=0;u<c;u++)p=t[r[u]],o(b,g[u],p)
"true"===e&&(e=(0,n.string32)(65536)),b[0]=255&e.charCodeAt(0),b[1]=255&e.charCodeAt(1),b[2]=255&e.charCodeAt(2),b[3]=255&e.charCodeAt(3),s(b,4,c)
const y=l.getSearchParams(c,16)
for(s(b,6,y.range),s(b,8,y.entry),s(b,10,y.rangeShift),m=12,u=0;u<c;u++){f=r[u],b[m]=255&f.charCodeAt(0),b[m+1]=255&f.charCodeAt(1),b[m+2]=255&f.charCodeAt(2),b[m+3]=255&f.charCodeAt(3)
let e=0
for(d=g[u],h=g[u+1];d<h;d+=4){e=e+(0,i.readUint32)(b,d)>>>0}a(b,m+4,e),a(b,m+8,g[u]),a(b,m+12,t[f].length),m+=16}return b}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists")
this.tables[e]=t}}t.OpenTypeFileBuilder=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0
var i=r(35),n=r(2),s=r(38),a=r(3),o=r(8),l=r(49)
function c(e,t,r){const i=e.length,n=t.length,s=i-n
let o=r,l=!1
for(;o<s;){let r=0
for(;r<n&&e[o+r]===t[r];)r++
if(r>=n){for(o+=r;o<i&&(0,a.isWhiteSpace)(e[o]);)o++
l=!0
break}o++}return{found:l,length:o}}t.Type1Font=class{constructor(e,t,r){let i=r.length1,a=r.length2,u=t.peekBytes(6)
const d=128===u[0]&&1===u[1]
d&&(t.skip(6),i=u[5]<<24|u[4]<<16|u[3]<<8|u[2])
const h=function(e,t){const r=[101,101,120,101,99],i=e.pos
let s,a,l,u
try{s=e.getBytes(t),a=s.length}catch{}if(a===t&&(l=c(s,r,t-2*r.length),l.found&&l.length===t))return{stream:new o.Stream(s),length:t}
for((0,n.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=i;l=c(e.peekBytes(2048),r,0),0!==l.length;)if(e.pos+=l.length,l.found){u=e.pos-i
break}return e.pos=i,u?{stream:new o.Stream(e.getBytes(u)),length:u}:((0,n.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new o.Stream(e.getBytes(t)),length:t})}(t,i)
new l.Type1Parser(h.stream,!1,s.SEAC_ANALYSIS_ENABLED).extractFontHeader(r),d&&(u=t.getBytes(6),a=u[5]<<24|u[4]<<16|u[3]<<8|u[2])
const p=function(e){const t=e.getBytes()
if(0===t.length)throw new n.FormatError("getEexecBlock - no font program found.")
return{stream:new o.Stream(t),length:t.length}}(t),f=new l.Type1Parser(p.stream,!0,s.SEAC_ANALYSIS_ENABLED).extractFontProgram(r)
for(const n in f.properties)r[n]=f.properties[n]
const m=f.charstrings,g=this.getType2Charstrings(m),b=this.getType2Subrs(f.subrs)
this.charstrings=m,this.data=this.wrap(e,g,this.charstrings,b,r),this.seacs=this.getSeacs(f.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const e=[".notdef"]
for(const{glyphName:t}of this.charstrings)e.push(t)
return e}getGlyphMapping(e){const t=this.charstrings
if(e.composite){const r=Object.create(null)
for(let i=0,n=t.length;i<n;i++){r[e.cMap.charCodeOf(i)]=i+1}return r}const r=[".notdef"]
let i,n
for(n=0;n<t.length;n++)r.push(t[n].glyphName)
const a=e.builtInEncoding
if(a){i=Object.create(null)
for(const e in a)n=r.indexOf(a[e]),n>=0&&(i[e]=n)}return(0,s.type1FontGlyphMapping)(e,i,r)}hasGlyphId(e){if(e<0||e>=this.numGlyphs)return!1
if(0===e)return!0
return this.charstrings[e-1].charstring.length>0}getSeacs(e){const t=[]
for(let r=0,i=e.length;r<i;r++){const i=e[r]
i.seac&&(t[r+1]=i.seac)}return t}getType2Charstrings(e){const t=[]
for(const r of e)t.push(r.charstring)
return t}getType2Subrs(e){let t=0
const r=e.length
t=r<1133?107:r<33769?1131:32768
const i=[]
let n
for(n=0;n<t;n++)i.push([11])
for(n=0;n<r;n++)i.push(e[n])
return i}wrap(e,t,r,n,s){const a=new i.CFF
a.header=new i.CFFHeader(1,0,4,4),a.names=[e]
const o=new i.CFFTopDict
o.setByName("version",391),o.setByName("Notice",392),o.setByName("FullName",393),o.setByName("FamilyName",394),o.setByName("Weight",395),o.setByName("Encoding",null),o.setByName("FontMatrix",s.fontMatrix),o.setByName("FontBBox",s.bbox),o.setByName("charset",null),o.setByName("CharStrings",null),o.setByName("Private",null),a.topDict=o
const l=new i.CFFStrings
l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),a.strings=l,a.globalSubrIndex=new i.CFFIndex
const c=t.length,u=[".notdef"]
let d,h
for(d=0;d<c;d++){const e=r[d].glyphName;-1===i.CFFStandardStrings.indexOf(e)&&l.add(e),u.push(e)}a.charset=new i.CFFCharset(!1,0,u)
const p=new i.CFFIndex
for(p.add([139,14]),d=0;d<c;d++)p.add(t[d])
a.charStrings=p
const f=new i.CFFPrivateDict
f.setByName("Subrs",null)
const m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"]
for(d=0,h=m.length;d<h;d++){const e=m[d]
if(!(e in s.privateData))continue
const t=s.privateData[e]
if(Array.isArray(t))for(let r=t.length-1;r>0;r--)t[r]-=t[r-1]
f.setByName(e,t)}a.topDict.privateDict=f
const g=new i.CFFIndex
for(d=0,h=n.length;d<h;d++)g.add(n[d])
f.subrsIndex=g
return new i.CFFCompiler(a).compile()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0
var i=r(37),n=r(3),s=r(8),a=r(2)
const o=[4],l=[5],c=[6],u=[7],d=[8],h=[12,35],p=[14],f=[21],m=[22],g=[30],b=[31]
class y{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(e,t,r){const i=e.length
let n,s,y,v=!1
for(let w=0;w<i;w++){let i=e[w]
if(i<32){switch(12===i&&(i=(i<<8)+e[++w]),i){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[]
break
case 4:if(this.flexing){if(this.stack.length<1){v=!0
break}const e=this.stack.pop()
this.stack.push(0,e)
break}v=this.executeCommand(1,o)
break
case 5:v=this.executeCommand(2,l)
break
case 6:v=this.executeCommand(1,c)
break
case 7:v=this.executeCommand(1,u)
break
case 8:v=this.executeCommand(6,d)
break
case 10:if(this.stack.length<1){v=!0
break}if(y=this.stack.pop(),!t[y]){v=!0
break}v=this.convert(t[y],t,r)
break
case 11:return v
case 13:if(this.stack.length<2){v=!0
break}n=this.stack.pop(),s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s),v=this.executeCommand(2,m)
break
case 14:this.output.push(p[0])
break
case 21:if(this.flexing)break
v=this.executeCommand(2,f)
break
case 22:if(this.flexing){this.stack.push(0)
break}v=this.executeCommand(1,m)
break
case 30:v=this.executeCommand(4,g)
break
case 31:v=this.executeCommand(4,b)
break
case 3078:if(r){const e=this.stack.at(-5)
this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-e,v=this.executeCommand(0,p)}else v=this.executeCommand(4,p)
break
case 3079:if(this.stack.length<4){v=!0
break}this.stack.pop(),n=this.stack.pop()
const e=this.stack.pop()
s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s,e),v=this.executeCommand(3,f)
break
case 3084:if(this.stack.length<2){v=!0
break}const w=this.stack.pop(),x=this.stack.pop()
this.stack.push(x/w)
break
case 3088:if(this.stack.length<2){v=!0
break}y=this.stack.pop()
const _=this.stack.pop()
if(0===y&&3===_){const e=this.stack.splice(-17,17)
this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]),v=this.executeCommand(13,h,!0),this.flexing=!1,this.stack.push(e[15],e[16])}else 1===y&&0===_&&(this.flexing=!0)
break
case 3089:break
default:(0,a.warn)('Unknown type 1 charstring command of "'+i+'"')}if(v)break}else i<=246?i-=139:i=i<=250?256*(i-247)+e[++w]+108:i<=254?-256*(i-251)-e[++w]-108:(255&e[++w])<<24|(255&e[++w])<<16|(255&e[++w])<<8|255&e[++w],this.stack.push(i)}return v}executeCommand(e,t,r){const i=this.stack.length
if(e>i)return!0
const n=i-e
for(let s=n;s<i;s++){let e=this.stack[s]
Number.isInteger(e)?this.output.push(28,e>>8&255,255&e):(e=65536*e|0,this.output.push(255,e>>24&255,e>>16&255,e>>8&255,255&e))}return this.output.push(...t),r?this.stack.splice(n,e):this.stack.length=0,!1}}function v(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function w(e,t,r){if(r>=e.length)return new Uint8Array(0)
let i,n,s=0|t
for(i=0;i<r;i++)s=52845*(e[i]+s)+22719&65535
const a=e.length-r,o=new Uint8Array(a)
for(i=r,n=0;n<a;i++,n++){const t=e[i]
o[n]=t^s>>8,s=52845*(t+s)+22719&65535}return o}function x(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,r){if(t){const t=e.getBytes(),r=!((v(t[0])||(0,n.isWhiteSpace)(t[0]))&&v(t[1])&&v(t[2])&&v(t[3])&&v(t[4])&&v(t[5])&&v(t[6])&&v(t[7]))
e=new s.Stream(r?w(t,55665,4):function(e,t,r){let i=0|t
const n=e.length,s=new Uint8Array(n>>>1)
let a,o
for(a=0,o=0;a<n;a++){const t=e[a]
if(!v(t))continue
let r
for(a++;a<n&&!v(r=e[a]);)a++
if(a<n){const e=parseInt(String.fromCharCode(t,r),16)
s[o++]=e^i>>8,i=52845*(e+i)+22719&65535}}return s.slice(r,o)}(t,55665,4))}this.seacAnalysisEnabled=!!r,this.stream=e,this.nextChar()}readNumberArray(){this.getToken()
const e=[]
for(;;){const t=this.getToken()
if(null===t||"]"===t||"}"===t)break
e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken()
return parseFloat(e||0)}readInt(){const e=this.getToken()
return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar
for(;;){if(-1===t)return null
if(e)10!==t&&13!==t||(e=!1)
else if(37===t)e=!0
else if(!(0,n.isWhiteSpace)(t))break
t=this.nextChar()}if(x(t))return this.nextChar(),String.fromCharCode(t)
let r=""
do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,n.isWhiteSpace)(t)&&!x(t))
return r}readCharStrings(e,t){return-1===t?e:w(e,4330,t)}extractFontProgram(e){const t=this.stream,r=[],i=[],n=Object.create(null)
n.lenIV=4
const s={subrs:[],charstrings:[],properties:{privateData:n}}
let a,o,l,c
for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken(),a){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();a=this.getToken(),null!==a&&"end"!==a;){if("/"!==a)continue
const e=this.getToken()
o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=s.properties.privateData.lenIV
const r=this.readCharStrings(l,c)
this.nextChar(),a=this.getToken(),"noaccess"===a?this.getToken():"/"===a&&this.prevChar(),i.push({glyph:e,encoded:r})}break
case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt()
o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=s.properties.privateData.lenIV
const i=this.readCharStrings(l,c)
this.nextChar(),a=this.getToken(),"noaccess"===a&&this.getToken(),r[e]=i}break
case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray()
e.length>0&&e.length,0
break
case"StemSnapH":case"StemSnapV":s.properties.privateData[a]=this.readNumberArray()
break
case"StdHW":case"StdVW":s.properties.privateData[a]=this.readNumberArray()[0]
break
case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":s.properties.privateData[a]=this.readNumber()
break
case"ExpansionFactor":s.properties.privateData[a]=this.readNumber()||.06
break
case"ForceBold":s.properties.privateData[a]=this.readBoolean()}for(const{encoded:u,glyph:d}of i){const t=new y,i=t.convert(u,r,this.seacAnalysisEnabled)
let n=t.output
i&&(n=[14])
const a={glyphName:d,charstring:n,width:t.width,lsb:t.lsb,seac:t.seac}
if(".notdef"===d?s.charstrings.unshift(a):s.charstrings.push(a),e.builtInEncoding){const r=e.builtInEncoding.indexOf(d)
r>-1&&void 0===e.widths[r]&&r>=e.firstChar&&r<=e.lastChar&&(e.widths[r]=t.width)}}return s}extractFontHeader(e){let t
for(;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":const r=this.readNumberArray()
e.fontMatrix=r
break
case"Encoding":const n=this.getToken()
let s
if(/^\d+$/.test(n)){s=[]
const e=0|parseInt(n,10)
this.getToken()
for(let r=0;r<e;r++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(t=this.getToken(),null===t)return
if("def"===t)break
const e=this.readInt()
this.getToken()
const r=this.getToken()
s[e]=r,this.getToken()}}else s=(0,i.getEncoding)(n)
e.builtInEncoding=s
break
case"FontBBox":const a=this.readNumberArray()
e.ascent=Math.max(a[3],a[1]),e.descent=Math.min(a[1],a[3]),e.ascentScaled=!0}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.clearPatternCaches=function(){g=Object.create(null)},t.getTilingPatternIR=function(e,t,r){const n=t.getArray("Matrix"),s=i.Util.normalizeRect(t.getArray("BBox")),a=t.get("XStep"),o=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType")
if(s[2]-s[0]==0||s[3]-s[1]==0)throw new i.FormatError(`Invalid getTilingPatternIR /BBox array: [${s}].`)
return["TilingPattern",r,e,n,s,a,o,l,c]}
var i=r(2),n=r(5),s=r(12),a=r(3)
const o=2,l=3,c=4,u=5,d=6,h=7
t.Pattern=class{constructor(){(0,i.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,r,s,p){const m=e instanceof n.BaseStream?e.dict:e,g=m.get("ShadingType")
try{switch(g){case o:case l:return new f(m,t,r,s,p)
case c:case u:case d:case h:return new y(e,t,r,s,p)
default:throw new i.FormatError("Unsupported ShadingType: "+g)}}catch(b){if(b instanceof a.MissingDataException)throw b
return(0,i.warn)(b),new v}}}
class p{static SMALL_NUMBER=1e-6
constructor(){this.constructor===p&&(0,i.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,i.unreachable)("Abstract method `getIR` called.")}}class f extends p{constructor(e,t,r,n,a){super(),this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType")
const o=s.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:r,pdfFunctionFactory:n,localColorSpaceCache:a}),c=e.getArray("BBox")
this.bbox=Array.isArray(c)&&4===c.length?i.Util.normalizeRect(c):null
let u=0,d=1
if(e.has("Domain")){const t=e.getArray("Domain")
u=t[0],d=t[1]}let h=!1,f=!1
if(e.has("Extend")){const t=e.getArray("Extend")
h=t[0],f=t[1]}if(!(this.shadingType!==l||h&&f)){const[e,t,r,n,s,a]=this.coordsArr,o=Math.hypot(e-n,t-s)
r<=a+o&&a<=r+o&&(0,i.warn)("Unsupported radial gradient.")}this.extendStart=h,this.extendEnd=f
const m=e.getRaw("Function"),g=n.createFromArray(m),b=(d-u)/840,y=this.colorStops=[]
if(u>=d||b<=0)return void(0,i.info)("Bad shading domain.")
const v=new Float32Array(o.numComps),w=new Float32Array(1)
let x,_=0
w[0]=u,g(w,0,v,0)
let S=o.getRgb(v,0)
const k=i.Util.makeHexColor(S[0],S[1],S[2])
y.push([0,k])
let A=1
w[0]=u+b,g(w,0,v,0)
let C=o.getRgb(v,0),P=C[0]-S[0]+1,O=C[1]-S[1]+1,E=C[2]-S[2]+1,T=C[0]-S[0]-1,M=C[1]-S[1]-1,I=C[2]-S[2]-1
for(let s=2;s<840;s++){w[0]=u+s*b,g(w,0,v,0),x=o.getRgb(v,0)
const e=s-_
P=Math.min(P,(x[0]-S[0]+1)/e),O=Math.min(O,(x[1]-S[1]+1)/e),E=Math.min(E,(x[2]-S[2]+1)/e),T=Math.max(T,(x[0]-S[0]-1)/e),M=Math.max(M,(x[1]-S[1]-1)/e),I=Math.max(I,(x[2]-S[2]-1)/e)
if(!(T<=P&&M<=O&&I<=E)){const e=i.Util.makeHexColor(C[0],C[1],C[2])
y.push([A/840,e]),P=x[0]-C[0]+1,O=x[1]-C[1]+1,E=x[2]-C[2]+1,T=x[0]-C[0]-1,M=x[1]-C[1]-1,I=x[2]-C[2]-1,_=A,S=C}A=s,C=x}const F=i.Util.makeHexColor(C[0],C[1],C[2])
y.push([1,F])
let N="transparent"
e.has("Background")&&(x=o.getRgb(e.get("Background"),0),N=i.Util.makeHexColor(x[0],x[1],x[2])),h||(y.unshift([0,N]),y[1][0]+=p.SMALL_NUMBER),f||(y.at(-1)[0]-=p.SMALL_NUMBER,y.push([1,N])),this.colorStops=y}getIR(){const e=this.coordsArr,t=this.shadingType
let r,n,s,a,c
return t===o?(n=[e[0],e[1]],s=[e[2],e[3]],a=null,c=null,r="axial"):t===l?(n=[e[0],e[1]],s=[e[3],e[4]],a=e[2],c=e[5],r="radial"):(0,i.unreachable)(`getPattern type unknown: ${t}`),["RadialAxial",r,this.bbox,this.colorStops,n,s,a,c]}}class m{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0
const r=t.numComps
this.tmpCompsBuf=new Float32Array(r)
const i=t.colorSpace.numComps
this.tmpCsCompsBuf=t.colorFn?new Float32Array(i):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end
if(this.bufferLength>0)return!0
const e=this.stream.getByte()
return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let t=this.buffer,r=this.bufferLength
if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0
t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte()
const e=this.stream.getByte()
return this.buffer=e&(1<<r)-1,(t<<8-r|(255&e)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte()
for(;r<e;)t=t<<8|this.stream.getByte(),r+=8
return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),i=this.context.decode,n=e<32?1/((1<<e)-1):2.3283064365386963e-10
return[t*n*(i[1]-i[0])+i[0],r*n*(i[3]-i[2])+i[2]]}readComponents(){const e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,i=this.context.decode,n=this.tmpCompsBuf
for(let a=0,o=4;a<e;a++,o+=2){const e=this.readBits(t)
n[a]=e*r*(i[o+1]-i[o])+i[o]}const s=this.tmpCsCompsBuf
return this.context.colorFn&&this.context.colorFn(n,0,s,0),this.context.colorSpace.getRgb(s,0)}}let g=Object.create(null)
function b(e){return g[e]||=function(e){const t=[]
for(let r=0;r<=e;r++){const i=r/e,n=1-i
t.push(new Float32Array([n**3,3*i*n**2,3*i**2*n,i**3]))}return t}(e)}class y extends p{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3
static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20
static TRIANGLE_DENSITY=20
constructor(e,t,r,a,o){if(super(),!(e instanceof n.BaseStream))throw new i.FormatError("Mesh data is not a stream")
const l=e.dict
this.shadingType=l.get("ShadingType")
const p=l.getArray("BBox")
this.bbox=Array.isArray(p)&&4===p.length?i.Util.normalizeRect(p):null
const f=s.ColorSpace.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:t,resources:r,pdfFunctionFactory:a,localColorSpaceCache:o})
this.background=l.has("Background")?f.getRgb(l.get("Background"),0):null
const g=l.getRaw("Function"),b=g?a.createFromArray(g):null
this.coords=[],this.colors=[],this.figures=[]
const y={bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:b,colorSpace:f,numComps:b?1:f.numComps},v=new m(e,y)
let w=!1
switch(this.shadingType){case c:this._decodeType4Shading(v)
break
case u:const e=0|l.get("VerticesPerRow")
if(e<2)throw new i.FormatError("Invalid VerticesPerRow")
this._decodeType5Shading(v,e)
break
case d:this._decodeType6Shading(v),w=!0
break
case h:this._decodeType7Shading(v),w=!0
break
default:(0,i.unreachable)("Unsupported mesh type.")}if(w){this._updateBounds()
for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){const t=this.coords,r=this.colors,n=[],s=[]
let a=0
for(;e.hasData;){const o=e.readFlag(),l=e.readCoordinate(),c=e.readComponents()
if(0===a){if(!(0<=o&&o<=2))throw new i.FormatError("Unknown type4 flag")
switch(o){case 0:a=3
break
case 1:s.push(s.at(-2),s.at(-1)),a=1
break
case 2:s.push(s.at(-3),s.at(-1)),a=1}n.push(o)}s.push(t.length),t.push(l),r.push(c),a--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(s),colors:new Int32Array(s)})}_decodeType5Shading(e,t){const r=this.coords,i=this.colors,n=[]
for(;e.hasData;){const t=e.readCoordinate(),s=e.readComponents()
n.push(r.length),r.push(t),i.push(s)}this.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:t})}_decodeType6Shading(e){const t=this.coords,r=this.colors,n=new Int32Array(16),s=new Int32Array(4)
for(;e.hasData;){const a=e.readFlag()
if(!(0<=a&&a<=3))throw new i.FormatError("Unknown type6 flag")
const o=t.length
for(let r=0,i=0!==a?8:12;r<i;r++)t.push(e.readCoordinate())
const l=r.length
for(let t=0,i=0!==a?2:4;t<i;t++)r.push(e.readComponents())
let c,u,d,h
switch(a){case 0:n[12]=o+3,n[13]=o+4,n[14]=o+5,n[15]=o+6,n[8]=o+2,n[11]=o+7,n[4]=o+1,n[7]=o+8,n[0]=o,n[1]=o+11,n[2]=o+10,n[3]=o+9,s[2]=l+1,s[3]=l+2,s[0]=l,s[1]=l+3
break
case 1:c=n[12],u=n[13],d=n[14],h=n[15],n[12]=h,n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=d,n[11]=o+3,n[4]=u,n[7]=o+4,n[0]=c,n[1]=o+7,n[2]=o+6,n[3]=o+5,c=s[2],u=s[3],s[2]=u,s[3]=l,s[0]=c,s[1]=l+1
break
case 2:c=n[15],u=n[11],n[12]=n[3],n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=n[7],n[11]=o+3,n[4]=u,n[7]=o+4,n[0]=c,n[1]=o+7,n[2]=o+6,n[3]=o+5,c=s[3],s[2]=s[1],s[3]=l,s[0]=c,s[1]=l+1
break
case 3:n[12]=n[0],n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=n[1],n[11]=o+3,n[4]=n[2],n[7]=o+4,n[0]=n[3],n[1]=o+7,n[2]=o+6,n[3]=o+5,s[2]=s[0],s[3]=l,s[0]=s[1],s[1]=l+1}n[5]=t.length,t.push([(-4*t[n[0]][0]-t[n[15]][0]+6*(t[n[4]][0]+t[n[1]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[13]][0]+t[n[7]][0]))/9,(-4*t[n[0]][1]-t[n[15]][1]+6*(t[n[4]][1]+t[n[1]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[13]][1]+t[n[7]][1]))/9]),n[6]=t.length,t.push([(-4*t[n[3]][0]-t[n[12]][0]+6*(t[n[2]][0]+t[n[7]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[4]][0]+t[n[14]][0]))/9,(-4*t[n[3]][1]-t[n[12]][1]+6*(t[n[2]][1]+t[n[7]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[4]][1]+t[n[14]][1]))/9]),n[9]=t.length,t.push([(-4*t[n[12]][0]-t[n[3]][0]+6*(t[n[8]][0]+t[n[13]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[11]][0]+t[n[1]][0]))/9,(-4*t[n[12]][1]-t[n[3]][1]+6*(t[n[8]][1]+t[n[13]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[11]][1]+t[n[1]][1]))/9]),n[10]=t.length,t.push([(-4*t[n[15]][0]-t[n[0]][0]+6*(t[n[11]][0]+t[n[14]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[2]][0]+t[n[8]][0]))/9,(-4*t[n[15]][1]-t[n[0]][1]+6*(t[n[11]][1]+t[n[14]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[2]][1]+t[n[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(s)})}}_decodeType7Shading(e){const t=this.coords,r=this.colors,n=new Int32Array(16),s=new Int32Array(4)
for(;e.hasData;){const a=e.readFlag()
if(!(0<=a&&a<=3))throw new i.FormatError("Unknown type7 flag")
const o=t.length
for(let r=0,i=0!==a?12:16;r<i;r++)t.push(e.readCoordinate())
const l=r.length
for(let t=0,i=0!==a?2:4;t<i;t++)r.push(e.readComponents())
let c,u,d,h
switch(a){case 0:n[12]=o+3,n[13]=o+4,n[14]=o+5,n[15]=o+6,n[8]=o+2,n[9]=o+13,n[10]=o+14,n[11]=o+7,n[4]=o+1,n[5]=o+12,n[6]=o+15,n[7]=o+8,n[0]=o,n[1]=o+11,n[2]=o+10,n[3]=o+9,s[2]=l+1,s[3]=l+2,s[0]=l,s[1]=l+3
break
case 1:c=n[12],u=n[13],d=n[14],h=n[15],n[12]=h,n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=d,n[9]=o+9,n[10]=o+10,n[11]=o+3,n[4]=u,n[5]=o+8,n[6]=o+11,n[7]=o+4,n[0]=c,n[1]=o+7,n[2]=o+6,n[3]=o+5,c=s[2],u=s[3],s[2]=u,s[3]=l,s[0]=c,s[1]=l+1
break
case 2:c=n[15],u=n[11],n[12]=n[3],n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=n[7],n[9]=o+9,n[10]=o+10,n[11]=o+3,n[4]=u,n[5]=o+8,n[6]=o+11,n[7]=o+4,n[0]=c,n[1]=o+7,n[2]=o+6,n[3]=o+5,c=s[3],s[2]=s[1],s[3]=l,s[0]=c,s[1]=l+1
break
case 3:n[12]=n[0],n[13]=o+0,n[14]=o+1,n[15]=o+2,n[8]=n[1],n[9]=o+9,n[10]=o+10,n[11]=o+3,n[4]=n[2],n[5]=o+8,n[6]=o+11,n[7]=o+4,n[0]=n[3],n[1]=o+7,n[2]=o+6,n[3]=o+5,s[2]=s[0],s[3]=l,s[0]=s[1],s[1]=l+1}this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(s)})}}_buildFigureFromPatch(e){const t=this.figures[e];(0,i.assert)("patch"===t.type,"Unexpected patch mesh figure")
const r=this.coords,n=this.colors,s=t.coords,a=t.colors,o=Math.min(r[s[0]][0],r[s[3]][0],r[s[12]][0],r[s[15]][0]),l=Math.min(r[s[0]][1],r[s[3]][1],r[s[12]][1],r[s[15]][1]),c=Math.max(r[s[0]][0],r[s[3]][0],r[s[12]][0],r[s[15]][0]),u=Math.max(r[s[0]][1],r[s[3]][1],r[s[12]][1],r[s[15]][1])
let d=Math.ceil((c-o)*y.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]))
d=Math.max(y.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(y.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d))
let h=Math.ceil((u-l)*y.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]))
h=Math.max(y.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(y.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h))
const p=d+1,f=new Int32Array((h+1)*p),m=new Int32Array((h+1)*p)
let g=0
const v=new Uint8Array(3),w=new Uint8Array(3),x=n[a[0]],_=n[a[1]],S=n[a[2]],k=n[a[3]],A=b(h),C=b(d)
for(let i=0;i<=h;i++){v[0]=(x[0]*(h-i)+S[0]*i)/h|0,v[1]=(x[1]*(h-i)+S[1]*i)/h|0,v[2]=(x[2]*(h-i)+S[2]*i)/h|0,w[0]=(_[0]*(h-i)+k[0]*i)/h|0,w[1]=(_[1]*(h-i)+k[1]*i)/h|0,w[2]=(_[2]*(h-i)+k[2]*i)/h|0
for(let e=0;e<=d;e++,g++){if(!(0!==i&&i!==h||0!==e&&e!==d))continue
let t=0,a=0,o=0
for(let n=0;n<=3;n++)for(let l=0;l<=3;l++,o++){const c=A[i][n]*C[e][l]
t+=r[s[o]][0]*c,a+=r[s[o]][1]*c}f[g]=r.length,r.push([t,a]),m[g]=n.length
const l=new Uint8Array(3)
l[0]=(v[0]*(d-e)+w[0]*e)/d|0,l[1]=(v[1]*(d-e)+w[1]*e)/d|0,l[2]=(v[2]*(d-e)+w[2]*e)/d|0,n.push(l)}}f[0]=s[0],m[0]=a[0],f[d]=s[3],m[d]=a[1],f[p*h]=s[12],m[p*h]=a[2],f[p*h+d]=s[15],m[p*h+d]=a[3],this.figures[e]={type:"lattice",coords:f,colors:m,verticesPerRow:p}}_updateBounds(){let e=this.coords[0][0],t=this.coords[0][1],r=e,i=t
for(let n=1,s=this.coords.length;n<s;n++){const s=this.coords[n][0],a=this.coords[n][1]
e=e>s?s:e,t=t>a?a:t,r=r<s?s:r,i=i<a?a:i}this.bounds=[e,t,r,i]}_packData(){let e,t,r,i
const n=this.coords,s=new Float32Array(2*n.length)
for(e=0,r=0,t=n.length;e<t;e++){const t=n[e]
s[r++]=t[0],s[r++]=t[1]}this.coords=s
const a=this.colors,o=new Uint8Array(3*a.length)
for(e=0,r=0,t=a.length;e<t;e++){const t=a[e]
o[r++]=t[0],o[r++]=t[1],o[r++]=t[2]}this.colors=o
const l=this.figures
for(e=0,t=l.length;e<t;e++){const t=l[e],n=t.coords,s=t.colors
for(r=0,i=n.length;r<i;r++)n[r]*=2,s[r]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class v extends p{getIR(){return["Dummy"]}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){const t=function(e){const t=h(e)
if(!t)return null
const{baseWidths:r,baseMapping:i,factors:n}=t,s=n?r.map(((e,t)=>e*n[t])):r
let a,o=-2
const l=[]
for(const[c,u]of i.map(((e,t)=>[e,t])).sort((([e],[t])=>e-t)))-1!==c&&(c===o+1?(a.push(s[u]),o+=1):(o=c,a=[s[u]],l.push(c,a)))
return l}(e),r=new n.Dict(null)
r.set("BaseFont",n.Name.get(e)),r.set("Type",n.Name.get("Font")),r.set("Subtype",n.Name.get("CIDFontType2")),r.set("Encoding",n.Name.get("Identity-H")),r.set("CIDToGIDMap",n.Name.get("Identity")),r.set("W",t),r.set("FirstChar",t[0]),r.set("LastChar",t.at(-2)+t.at(-1).length-1)
const i=new n.Dict(null)
r.set("FontDescriptor",i)
const s=new n.Dict(null)
return s.set("Ordering","Identity"),s.set("Registry","Adobe"),s.set("Supplement",0),r.set("CIDSystemInfo",s),r},t.getXfaFontName=h
var i=r(52),n=r(4),s=r(53),a=r(54),o=r(55),l=r(56),c=r(3),u=r(38)
const d=(0,c.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:o.MyriadProRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o.MyriadProBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:o.MyriadProItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.MyriadProBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:i.CalibriRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:i.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:i.CalibriBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:i.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:i.CalibriItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:i.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.CalibriBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:i.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:s.HelveticaRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:s.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:s.HelveticaBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:s.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:s.HelveticaItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:s.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:s.HelveticaBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:s.HelveticaBoldItalicMetrics}}))
function h(e){const t=(0,u.normalizeFontName)(e)
return d()[t]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0
t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207}
t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207}
t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207}
t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1]
t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0
t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1]
t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2}
t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1]
t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2}
t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1]
t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2}
t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0
t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333]
t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333]
t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285]
t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285]
t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0
t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2}
t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2}
t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2}
t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0
t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0}
t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0}
t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0}
t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1]
t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t
if(e instanceof i.Dict)t=e
else{if(!(e instanceof a.BaseStream))return!1
t=e.dict}return t.has("FunctionType")}
var i=r(4),n=r(2),s=r(58),a=r(5),o=r(59)
function l(e){if(!Array.isArray(e))return null
const t=e.length
for(let r=0;r<t;r++)if("number"!=typeof e[r]){const r=new Array(t)
for(let i=0;i<t;i++)r[i]=+e[i]
return r}return e}t.PDFFunctionFactory=class{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e,this.isEvalSupported=!1!==t}create(e){const t=this.getCached(e)
if(t)return t
const r=c.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof i.Ref?this.xref.fetch(e):e})
return this._cache(e,r),r}createFromArray(e){const t=this.getCached(e)
if(t)return t
const r=c.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof i.Ref?this.xref.fetch(e):e})
return this._cache(e,r),r}getCached(e){let t
if(e instanceof i.Ref?t=e:e instanceof i.Dict?t=e.objId:e instanceof a.BaseStream&&(t=e.dict?.objId),t){const e=this._localFunctionCache.getByRef(t)
if(e)return e}return null}_cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.')
let r
e instanceof i.Ref?r=e:e instanceof i.Dict?r=e.objId:e instanceof a.BaseStream&&(r=e.dict?.objId),r&&this._localFunctionCache.set(null,r,t)}get _localFunctionCache(){return(0,n.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}}
class c{static getSampleArray(e,t,r,i){let n,s,a=1
for(n=0,s=e.length;n<s;n++)a*=e[n]
a*=t
const o=new Array(a)
let l=0,c=0
const u=1/(2**r-1),d=i.getBytes((a*r+7)/8)
let h=0
for(n=0;n<a;n++){for(;l<r;)c<<=8,c|=d[h++],l+=8
l-=r,o[n]=(c>>l)*u,c&=(1<<l)-1}return o}static parse({xref:e,isEvalSupported:t,fn:r}){const i=r.dict||r
switch(i.get("FunctionType")){case 0:return this.constructSampled({xref:e,isEvalSupported:t,fn:r,dict:i})
case 1:break
case 2:return this.constructInterpolated({xref:e,isEvalSupported:t,dict:i})
case 3:return this.constructStiched({xref:e,isEvalSupported:t,dict:i})
case 4:return this.constructPostScript({xref:e,isEvalSupported:t,fn:r,dict:i})}throw new n.FormatError("Unknown type of function")}static parseArray({xref:e,isEvalSupported:t,fnObj:r}){if(!Array.isArray(r))return this.parse({xref:e,isEvalSupported:t,fn:r})
const i=[]
for(const n of r)i.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(n)}))
return function(e,t,r,n){for(let s=0,a=i.length;s<a;s++)i[s](e,t,r,n+s)}}static constructSampled({xref:e,isEvalSupported:t,fn:r,dict:i}){function s(e){const t=e.length,r=[]
let i=0
for(let n=0;n<t;n+=2)r[i++]=[e[n],e[n+1]]
return r}function a(e,t,r,i,n){return i+(n-i)/(r-t)*(e-t)}let o=l(i.getArray("Domain")),c=l(i.getArray("Range"))
if(!o||!c)throw new n.FormatError("No domain or range")
const u=o.length/2,d=c.length/2
o=s(o),c=s(c)
const h=l(i.getArray("Size")),p=i.get("BitsPerSample"),f=i.get("Order")||1
1!==f&&(0,n.info)("No support for cubic spline interpolation: "+f)
let m=l(i.getArray("Encode"))
if(m)m=s(m)
else{m=[]
for(let e=0;e<u;++e)m.push([0,h[e]-1])}let g=l(i.getArray("Decode"))
g=g?s(g):c
const b=this.getSampleArray(h,d,p,r)
return function(e,t,r,i){const n=1<<u,s=new Float64Array(n),l=new Uint32Array(n)
let p,f
for(f=0;f<n;f++)s[f]=1
let y=d,v=1
for(p=0;p<u;++p){const r=o[p][0],i=o[p][1]
let c=a(Math.min(Math.max(e[t+p],r),i),r,i,m[p][0],m[p][1])
const u=h[p]
c=Math.min(Math.max(c,0),u-1)
const d=c<u-1?Math.floor(c):c-1,g=d+1-c,b=c-d,w=d*y,x=w+y
for(f=0;f<n;f++)f&v?(s[f]*=b,l[f]+=x):(s[f]*=g,l[f]+=w)
y*=u,v<<=1}for(f=0;f<d;++f){let e=0
for(p=0;p<n;p++)e+=b[l[p]+f]*s[p]
e=a(e,0,1,g[f][0],g[f][1]),r[i+f]=Math.min(Math.max(e,c[f][0]),c[f][1])}}}static constructInterpolated({xref:e,isEvalSupported:t,dict:r}){const i=l(r.getArray("C0"))||[0],n=l(r.getArray("C1"))||[1],s=r.get("N"),a=[]
for(let l=0,c=i.length;l<c;++l)a.push(n[l]-i[l])
const o=a.length
return function(e,t,r,n){const l=1===s?e[t]:e[t]**s
for(let s=0;s<o;++s)r[n+s]=i[s]+l*a[s]}}static constructStiched({xref:e,isEvalSupported:t,dict:r}){const i=l(r.getArray("Domain"))
if(!i)throw new n.FormatError("No domain")
if(1!==i.length/2)throw new n.FormatError("Bad domain for stiched function")
const s=[]
for(const n of r.get("Functions"))s.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(n)}))
const a=l(r.getArray("Bounds")),o=l(r.getArray("Encode")),c=new Float32Array(1)
return function(e,t,r,n){const l=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[t],i[0],i[1]),u=a.length
let d
for(d=0;d<u&&!(l<a[d]);++d);let h=i[0]
d>0&&(h=a[d-1])
let p=i[1]
d<a.length&&(p=a[d])
const f=o[2*d],m=o[2*d+1]
c[0]=h===p?f:f+(l-h)*(m-f)/(p-h),s[d](c,0,r,n)}}static constructPostScript({xref:e,isEvalSupported:t,fn:r,dict:i}){const a=l(i.getArray("Domain")),o=l(i.getArray("Range"))
if(!a)throw new n.FormatError("No domain.")
if(!o)throw new n.FormatError("No range.")
const c=new s.PostScriptLexer(r),u=new s.PostScriptParser(c).parse()
if(t&&n.FeatureTest.isEvalSupported){const e=(new k).compile(u,a,o)
if(e)return new Function("src","srcOffset","dest","destOffset",e)}(0,n.info)("Unable to compile PS function")
const h=o.length>>1,p=a.length>>1,f=new d(u),m=Object.create(null)
let g=8192
const b=new Float32Array(p)
return function(e,t,r,i){let n,s,a=""
const l=b
for(n=0;n<p;n++)s=e[t+n],l[n]=s,a+=s+"_"
const c=m[a]
if(void 0!==c)return void r.set(c,i)
const u=new Float32Array(h),d=f.execute(l),y=d.length-h
for(n=0;n<h;n++){s=d[y+n]
let e=o[2*n]
s<e?s=e:(e=o[2*n+1],s>e&&(s=e)),u[n]=s}g>0&&(g--,m[a]=u),r.set(u,i)}}}class u{static MAX_STACK_SIZE=100
constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.")
this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.")
return this.stack.pop()}copy(e){if(this.stack.length+e>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.")
const t=this.stack
for(let r=t.length-e,i=e-1;i>=0;i--,r++)t.push(t[r])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const r=this.stack,i=r.length-e,n=r.length-1,s=i+(t-Math.floor(t/e)*e)
for(let a=i,o=n;a<o;a++,o--){const e=r[a]
r[a]=r[o],r[o]=e}for(let a=i,o=s-1;a<o;a++,o--){const e=r[a]
r[a]=r[o],r[o]=e}for(let a=s,o=n;a<o;a++,o--){const e=r[a]
r[a]=r[o],r[o]=e}}}class d{constructor(e){this.operators=e}execute(e){const t=new u(e)
let r=0
const i=this.operators,s=i.length
let a,o,l
for(;r<s;)if(a=i[r++],"number"!=typeof a)switch(a){case"jz":l=t.pop(),o=t.pop(),o||(r=l)
break
case"j":o=t.pop(),r=o
break
case"abs":o=t.pop(),t.push(Math.abs(o))
break
case"add":l=t.pop(),o=t.pop(),t.push(o+l)
break
case"and":l=t.pop(),o=t.pop(),"boolean"==typeof o&&"boolean"==typeof l?t.push(o&&l):t.push(o&l)
break
case"atan":l=t.pop(),o=t.pop(),o=Math.atan2(o,l)/Math.PI*180,o<0&&(o+=360),t.push(o)
break
case"bitshift":l=t.pop(),o=t.pop(),o>0?t.push(o<<l):t.push(o>>l)
break
case"ceiling":o=t.pop(),t.push(Math.ceil(o))
break
case"copy":o=t.pop(),t.copy(o)
break
case"cos":o=t.pop(),t.push(Math.cos(o%360/180*Math.PI))
break
case"cvi":o=0|t.pop(),t.push(o)
break
case"cvr":break
case"div":l=t.pop(),o=t.pop(),t.push(o/l)
break
case"dup":t.copy(1)
break
case"eq":l=t.pop(),o=t.pop(),t.push(o===l)
break
case"exch":t.roll(2,1)
break
case"exp":l=t.pop(),o=t.pop(),t.push(o**l)
break
case"false":t.push(!1)
break
case"floor":o=t.pop(),t.push(Math.floor(o))
break
case"ge":l=t.pop(),o=t.pop(),t.push(o>=l)
break
case"gt":l=t.pop(),o=t.pop(),t.push(o>l)
break
case"idiv":l=t.pop(),o=t.pop(),t.push(o/l|0)
break
case"index":o=t.pop(),t.index(o)
break
case"le":l=t.pop(),o=t.pop(),t.push(o<=l)
break
case"ln":o=t.pop(),t.push(Math.log(o))
break
case"log":o=t.pop(),t.push(Math.log10(o))
break
case"lt":l=t.pop(),o=t.pop(),t.push(o<l)
break
case"mod":l=t.pop(),o=t.pop(),t.push(o%l)
break
case"mul":l=t.pop(),o=t.pop(),t.push(o*l)
break
case"ne":l=t.pop(),o=t.pop(),t.push(o!==l)
break
case"neg":o=t.pop(),t.push(-o)
break
case"not":o=t.pop(),"boolean"==typeof o?t.push(!o):t.push(~o)
break
case"or":l=t.pop(),o=t.pop(),"boolean"==typeof o&&"boolean"==typeof l?t.push(o||l):t.push(o|l)
break
case"pop":t.pop()
break
case"roll":l=t.pop(),o=t.pop(),t.roll(o,l)
break
case"round":o=t.pop(),t.push(Math.round(o))
break
case"sin":o=t.pop(),t.push(Math.sin(o%360/180*Math.PI))
break
case"sqrt":o=t.pop(),t.push(Math.sqrt(o))
break
case"sub":l=t.pop(),o=t.pop(),t.push(o-l)
break
case"true":t.push(!0)
break
case"truncate":o=t.pop(),o=o<0?Math.ceil(o):Math.floor(o),t.push(o)
break
case"xor":l=t.pop(),o=t.pop(),"boolean"==typeof o&&"boolean"==typeof l?t.push(o!==l):t.push(o^l)
break
default:throw new n.FormatError(`Unknown operator ${a}`)}else t.push(a)
return t.stack}}t.PostScriptEvaluator=d
class h{constructor(e){this.type=e}visit(e){(0,n.unreachable)("abstract method")}}class p extends h{constructor(e,t,r){super("args"),this.index=e,this.min=t,this.max=r}visit(e){e.visitArgument(this)}}class f extends h{constructor(e){super("literal"),this.number=e,this.min=e,this.max=e}visit(e){e.visitLiteral(this)}}class m extends h{constructor(e,t,r,i,n){super("binary"),this.op=e,this.arg1=t,this.arg2=r,this.min=i,this.max=n}visit(e){e.visitBinaryOperation(this)}}class g extends h{constructor(e,t){super("max"),this.arg=e,this.min=e.min,this.max=t}visit(e){e.visitMin(this)}}class b extends h{constructor(e,t,r){super("var"),this.index=e,this.min=t,this.max=r}visit(e){e.visitVariable(this)}}class y extends h{constructor(e,t){super("definition"),this.variable=e,this.arg=t}visit(e){e.visitVariableDefinition(this)}}class v{constructor(){this.parts=[]}visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}visitVariable(e){this.parts.push("v",e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}toString(){return this.parts.join("")}}function w(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new f(e.number+t.number):new m("+",e,t,e.min+t.min,e.max+t.max)}function x(e,t){if("literal"===t.type){if(0===t.number)return new f(0)
if(1===t.number)return e
if("literal"===e.type)return new f(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new f(0)
if(1===e.number)return t}const r=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),i=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max)
return new m("*",e,t,r,i)}function _(e,t){if("literal"===t.type){if(0===t.number)return e
if("literal"===e.type)return new f(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new m("-",e,t,e.min-t.max,e.max-t.min)}function S(e,t){return e.min>=t?new f(t):e.max<=t?e:new g(e,t)}class k{compile(e,t,r){const i=[],n=[],s=t.length>>1,a=r.length>>1
let o,l,c,u,d,h,m,g,k=0
for(let f=0;f<s;f++)i.push(new p(f,t[2*f],t[2*f+1]))
for(let p=0,v=e.length;p<v;p++)if(g=e[p],"number"!=typeof g)switch(g){case"add":if(i.length<2)return null
u=i.pop(),c=i.pop(),i.push(w(c,u))
break
case"cvr":if(i.length<1)return null
break
case"mul":if(i.length<2)return null
u=i.pop(),c=i.pop(),i.push(x(c,u))
break
case"sub":if(i.length<2)return null
u=i.pop(),c=i.pop(),i.push(_(c,u))
break
case"exch":if(i.length<2)return null
d=i.pop(),h=i.pop(),i.push(d,h)
break
case"pop":if(i.length<1)return null
i.pop()
break
case"index":if(i.length<1)return null
if(c=i.pop(),"literal"!==c.type)return null
if(o=c.number,o<0||!Number.isInteger(o)||i.length<o)return null
if(d=i[i.length-o-1],"literal"===d.type||"var"===d.type){i.push(d)
break}m=new b(k++,d.min,d.max),i[i.length-o-1]=m,i.push(m),n.push(new y(m,d))
break
case"dup":if(i.length<1)return null
if("number"==typeof e[p+1]&&"gt"===e[p+2]&&e[p+3]===p+7&&"jz"===e[p+4]&&"pop"===e[p+5]&&e[p+6]===e[p+1]){c=i.pop(),i.push(S(c,e[p+1])),p+=6
break}if(d=i.at(-1),"literal"===d.type||"var"===d.type){i.push(d)
break}m=new b(k++,d.min,d.max),i[i.length-1]=m,i.push(m),n.push(new y(m,d))
break
case"roll":if(i.length<2)return null
if(u=i.pop(),c=i.pop(),"literal"!==u.type||"literal"!==c.type)return null
if(l=u.number,o=c.number,o<=0||!Number.isInteger(o)||!Number.isInteger(l)||i.length<o)return null
if(l=(l%o+o)%o,0===l)break
i.push(...i.splice(i.length-o,o-l))
break
default:return null}else i.push(new f(g))
if(i.length!==a)return null
const A=[]
for(const p of n){const e=new v
p.visit(e),A.push(e.toString())}for(let p=0,f=i.length;p<f;p++){const e=i[p],t=new v
e.visit(t)
const n=r[2*p],s=r[2*p+1],a=[t.toString()]
n>e.min&&(a.unshift("Math.max(",n,", "),a.push(")")),s<e.max&&(a.unshift("Math.min(",s,", "),a.push(")")),a.unshift("dest[destOffset + ",p,"] = "),a.push(";"),A.push(a.join(""))}return A.join("\n")}}t.PostScriptCompiler=k},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0
var i=r(2),n=r(4),s=r(3)
t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0
throw new i.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(a.LBRACE),this.parseBlock(),this.expect(a.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(a.NUMBER))this.operators.push(this.prev.value)
else if(this.accept(a.OPERATOR))this.operators.push(this.prev.value)
else{if(!this.accept(a.LBRACE))return
this.parseCondition()}}parseCondition(){const e=this.operators.length
if(this.operators.push(null,null),this.parseBlock(),this.expect(a.RBRACE),this.accept(a.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz"
else{if(!this.accept(a.LBRACE))throw new i.FormatError("PS Function: error parsing conditional.")
{const t=this.operators.length
this.operators.push(null,null)
const r=this.operators.length
this.parseBlock(),this.expect(a.RBRACE),this.expect(a.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}}
const a={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5}
class o{static get opCache(){return(0,i.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){return o.opCache[e]||=new o(a.OPERATOR,e)}static get LBRACE(){return(0,i.shadow)(this,"LBRACE",new o(a.LBRACE,"{"))}static get RBRACE(){return(0,i.shadow)(this,"RBRACE",new o(a.RBRACE,"}"))}static get IF(){return(0,i.shadow)(this,"IF",new o(a.IF,"IF"))}static get IFELSE(){return(0,i.shadow)(this,"IFELSE",new o(a.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar
for(;;){if(t<0)return n.EOF
if(e)10!==t&&13!==t||(e=!1)
else if(37===t)e=!0
else if(!(0,s.isWhiteSpace)(t))break
t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new o(a.NUMBER,this.getNumber())
case 123:return this.nextChar(),o.LBRACE
case 125:return this.nextChar(),o.RBRACE}const r=this.strBuf
for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t))
const i=r.join("")
switch(i.toLowerCase()){case"if":return o.IF
case"ifelse":return o.IFELSE
default:return o.getOperator(i)}}getNumber(){let e=this.currentChar
const t=this.strBuf
for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e))
const r=parseFloat(t.join(""))
if(isNaN(r))throw new i.FormatError(`Invalid floating point number: ${r}`)
return r}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RegionalImageCache=t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0
var i=r(2),n=r(4)
class s{constructor(e){this.constructor===s&&(0,i.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===e?.onlyRefs,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new n.RefSetCache}getByName(e){this._onlyRefs&&(0,i.unreachable)("Should not call `getByName` method.")
const t=this._nameRefMap.get(e)
return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,r){(0,i.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class extends s{set(e,t=null,r){if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.')
if(t){if(this._imageCache.has(t))return
return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}
t.LocalColorSpaceCache=class extends s{set(e=null,t=null,r){if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.')
if(t){if(this._imageCache.has(t))return
return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}
t.LocalFunctionCache=class extends s{constructor(e){super({onlyRefs:!0})}set(e=null,t,r){if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.')
this._imageCache.has(t)||this._imageCache.put(t,r)}}
t.LocalGStateCache=class extends s{set(e,t=null,r){if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.')
if(t){if(this._imageCache.has(t))return
return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}
t.LocalTilingPatternCache=class extends s{constructor(e){super({onlyRefs:!0})}set(e=null,t,r){if(!t)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.')
this._imageCache.has(t)||this._imageCache.put(t,r)}}
t.RegionalImageCache=class extends s{constructor(e){super({onlyRefs:!0})}set(e=null,t,r){if(!t)throw new Error('RegionalImageCache.set - expected "ref" argument.')
this._imageCache.has(t)||this._imageCache.put(t,r)}}
class a{static NUM_PAGES_THRESHOLD=2
static MIN_IMAGES_TO_CACHE=10
static MAX_BYTE_SIZE=5*i.MAX_IMAGE_SIZE_TO_CACHE
constructor(){this._refCache=new n.RefSetCache,this._imageCache=new n.RefSetCache}get _byteSize(){let e=0
for(const t of this._imageCache)e+=t.byteSize
return e}get _cacheLimitReached(){return!(this._imageCache.size<a.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<a.MAX_BYTE_SIZE)}shouldCache(e,t){let r=this._refCache.get(e)
return r||(r=new Set,this._refCache.put(e,r)),r.add(t),!(r.size<a.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this._cacheLimitReached)}addByteSize(e,t){const r=this._imageCache.get(e)
r&&(r.byteSize||(r.byteSize=t))}getData(e,t){const r=this._refCache.get(e)
if(!r)return null
if(r.size<a.NUM_PAGES_THRESHOLD)return null
const i=this._imageCache.get(e)
return i?(r.add(t),i):null}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.')
this._imageCache.has(e)||(this._cacheLimitReached?(0,i.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(e=!1){e||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=a},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e,t=-1,r=!1){let f=!0
const m=e.length
if(0===m||r)return d(e,f,r)
h.length=m,p.length=m
let g,b,y=0
for(g=0;g<m;++g){h[g]=e.charAt(g)
const t=e.charCodeAt(g)
let r="L"
t<=255?r=n[t]:1424<=t&&t<=1524?r="R":1536<=t&&t<=1791?(r=s[255&t],r||(0,i.warn)("Bidi: invalid Unicode character "+t.toString(16))):(1792<=t&&t<=2220||64336<=t&&t<=65023||65136<=t&&t<=65279)&&(r="AL"),"R"!==r&&"AL"!==r&&"AN"!==r||y++,p[g]=r}if(0===y)return f=!0,d(e,f);-1===t&&(y/m<.3&&m>4?(f=!0,t=0):(f=!1,t=1))
const v=[]
for(g=0;g<m;++g)v[g]=t
const w=a(t)?"R":"L",x=w,_=x
let S,k=x
for(g=0;g<m;++g)"NSM"===p[g]?p[g]=k:k=p[g]
for(k=x,g=0;g<m;++g)S=p[g],"EN"===S?p[g]="AL"===k?"AN":"EN":"R"!==S&&"L"!==S&&"AL"!==S||(k=S)
for(g=0;g<m;++g)S=p[g],"AL"===S&&(p[g]="R")
for(g=1;g<m-1;++g)"ES"===p[g]&&"EN"===p[g-1]&&"EN"===p[g+1]&&(p[g]="EN"),"CS"!==p[g]||"EN"!==p[g-1]&&"AN"!==p[g-1]||p[g+1]!==p[g-1]||(p[g]=p[g-1])
for(g=0;g<m;++g)if("EN"===p[g]){for(let e=g-1;e>=0&&"ET"===p[e];--e)p[e]="EN"
for(let e=g+1;e<m&&"ET"===p[e];++e)p[e]="EN"}for(g=0;g<m;++g)S=p[g],"WS"!==S&&"ES"!==S&&"ET"!==S&&"CS"!==S||(p[g]="ON")
for(k=x,g=0;g<m;++g)S=p[g],"EN"===S?p[g]="L"===k?"L":"EN":"R"!==S&&"L"!==S||(k=S)
for(g=0;g<m;++g)if("ON"===p[g]){const e=l(p,g+1,"ON")
let t=x
g>0&&(t=p[g-1])
let r=_
e+1<m&&(r=p[e+1]),"L"!==t&&(t="R"),"L"!==r&&(r="R"),t===r&&c(p,g,e,t),g=e-1}for(g=0;g<m;++g)"ON"===p[g]&&(p[g]=w)
for(g=0;g<m;++g)S=p[g],o(v[g])?"R"===S?v[g]+=1:"AN"!==S&&"EN"!==S||(v[g]+=2):"L"!==S&&"AN"!==S&&"EN"!==S||(v[g]+=1)
let A,C=-1,P=99
for(g=0,b=v.length;g<b;++g)A=v[g],C<A&&(C=A),P>A&&a(A)&&(P=A)
for(A=C;A>=P;--A){let e=-1
for(g=0,b=v.length;g<b;++g)v[g]<A?e>=0&&(u(h,e,g),e=-1):e<0&&(e=g)
e>=0&&u(h,e,v.length)}for(g=0,b=h.length;g<b;++g){const e=h[g]
"<"!==e&&">"!==e||(h[g]="")}return d(h.join(""),f)}
var i=r(2)
const n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],s=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"]
function a(e){return!!(1&e)}function o(e){return!(1&e)}function l(e,t,r){let i,n
for(i=t,n=e.length;i<n;++i)if(e[i]!==r)return i
return i}function c(e,t,r,i){for(let n=t;n<r;++n)e[n]=i}function u(e,t,r){for(let i=t,n=r-1;i<n;++i,--n){const t=e[i]
e[i]=e[n],e[n]=t}}function d(e,t,r=!1){let i="ltr"
return r?i="ttb":t||(i="rtl"),{str:e,dir:i}}const h=[],p=[]},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFontSubstitution=function(e,t,r,h,p){const f=h=(0,i.normalizeFontName)(h)
let m=e.get(f)
if(m)return m
let g=c.get(h)
if(!g)for(const[i,n]of u)if(h.startsWith(i)){h=`${n}${h.substring(i.length)}`,g=c.get(h)
break}let b=!1
g||(g=c.get(p),b=!0)
const y=`${t.getDocId()}_s${t.createFontId()}`
if(!g){if(!(0,n.validateFontName)(h))return e.set(f,null),null
const t=/bold/gi.test(h),r=/oblique|italic/gi.test(h)
return m={css:y,guessFallback:!0,loadedName:y,baseFontName:h,src:`local(${h})`,style:t&&r&&l||t&&a||r&&o||s},e.set(f,m),m}const v=[]
b&&(0,n.validateFontName)(h)&&v.push(`local(${h})`)
const{style:w,ultimate:x}=d(g,v,r),_=null===x
return m={css:`${y}${_?"":`,${x}`}`,guessFallback:_,loadedName:y,baseFontName:h,src:v.join(","),style:w},e.set(f,m),m}
var i=r(38),n=r(3)
const s={style:"normal",weight:"normal"},a={style:"normal",weight:"bold"},o={style:"italic",weight:"normal"},l={style:"italic",weight:"bold"},c=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:s,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:a,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:o,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:l,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:s,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:a,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:o,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:l,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:s,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:a,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:o,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:l,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:s,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:a,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:o,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:l,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:s,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:a,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:o,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:l,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:s}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),u=new Map([["Arial-Black","ArialBlack"]])
function d({alias:e,local:t,path:r,fallback:i,style:n,ultimate:s},u,h,p=!0,f=!0,m=""){const g={style:null,ultimate:null}
if(t){const e=m?` ${m}`:""
for(const r of t)u.push(`local(${r}${e})`)}if(e){const t=c.get(e),s=m||function(e){switch(e){case a:return"Bold"
case o:return"Italic"
case l:return"Bold Italic"
default:if("bold"===e?.weight)return"Bold"
if("italic"===e?.style)return"Italic"}return""}(n)
Object.assign(g,d(t,u,h,p&&!i,f&&!r,s))}if(n&&(g.style=n),s&&(g.ultimate=s),p&&i){const e=c.get(i),{ultimate:t}=d(e,u,h,p,f&&!r,m)
g.ultimate||=t}return f&&r&&h&&u.push(`url(${h}${r})`),g}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResizer=void 0
var i=r(2)
class n{constructor(e,t){this._imgData=e,this._isMask=t}static needsToBeResized(e,t){if(e<=this._goodSquareLength&&t<=this._goodSquareLength)return!1
const{MAX_DIM:r}=this
if(e>r||t>r)return!0
const i=e*t
if(this._hasMaxArea)return i>this.MAX_AREA
if(i<this._goodSquareLength**2)return!1
if(this._areGoodDims(e,t))return this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(e*t))),!1
this._goodSquareLength=this._guessMax(this._goodSquareLength,r,128,0)
return i>(this.MAX_AREA=this._goodSquareLength**2)}static get MAX_DIM(){return(0,i.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,i.shadow)(this,"MAX_AREA",this._guessMax(n._goodSquareLength,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,(0,i.shadow)(this,"MAX_AREA",e))}static setMaxArea(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}static _areGoodDims(e,t){try{const r=new OffscreenCanvas(e,t),i=r.getContext("2d")
i.fillRect(0,0,1,1)
const n=i.getImageData(0,0,1,1).data[3]
return r.width=r.height=1,0!==n}catch{return!1}}static _guessMax(e,t,r,i){for(;e+r+1<t;){const r=Math.floor((e+t)/2),n=i||r
this._areGoodDims(r,n)?e=r:t=r}return e}static async createImage(e,t=!1){return new n(e,t)._createImage()}async _createImage(){const e=this._encodeBMP(),t=new Blob([e.buffer],{type:"image/bmp"}),r=createImageBitmap(t),{MAX_AREA:i,MAX_DIM:s}=n,{_imgData:a}=this,{width:o,height:l}=a,c=Math.max(o/s,l/s,Math.sqrt(o*l/i)),u=Math.max(c,2),d=Math.round(10*(c+1.25))/10/u,h=Math.floor(Math.log2(d)),p=new Array(h+2).fill(2)
p[0]=u,p.splice(-1,1,d/(1<<h))
let f=o,m=l,g=await r
for(const n of p){const e=f,t=m
f=Math.floor(f/n)-1,m=Math.floor(m/n)-1
const r=new OffscreenCanvas(f,m)
r.getContext("2d").drawImage(g,0,0,e,t,0,0,f,m),g=r.transferToImageBitmap()}return a.data=null,a.bitmap=g,a.width=f,a.height=m,a}_encodeBMP(){const{width:e,height:t,kind:r}=this._imgData
let n,s=this._imgData.data,a=new Uint8Array(0),o=a,l=0
switch(r){case i.ImageKind.GRAYSCALE_1BPP:{n=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255])
const r=e+7>>3,i=r+3&-4
if(r!==i){const e=new Uint8Array(i*t)
let n=0
for(let a=0,o=t*r;a<o;a+=r,n+=i)e.set(s.subarray(a,a+r),n)
s=e}break}case i.ImageKind.RGB_24BPP:if(n=24,3&e){const r=3*e,i=r+3&-4,n=i-r,a=new Uint8Array(i*t)
let o=0
for(let e=0,l=t*r;e<l;e+=r){const t=s.subarray(e,e+r)
for(let e=0;e<r;e+=3)a[o++]=t[e+2],a[o++]=t[e+1],a[o++]=t[e]
o+=n}s=a}else for(let e=0,t=s.length;e<t;e+=3){const t=s[e]
s[e]=s[e+2],s[e+2]=t}break
case i.ImageKind.RGBA_32BPP:n=32,l=3,o=new Uint8Array(68)
const r=new DataView(o.buffer)
i.FeatureTest.isLittleEndian?(r.setUint32(0,255,!0),r.setUint32(4,65280,!0),r.setUint32(8,16711680,!0),r.setUint32(12,4278190080,!0)):(r.setUint32(0,4278190080,!0),r.setUint32(4,16711680,!0),r.setUint32(8,65280,!0),r.setUint32(12,255,!0))
break
default:throw new Error("invalid format")}let c=0
const u=40+o.length,d=14+u+a.length+s.length,h=new Uint8Array(d),p=new DataView(h.buffer)
return p.setUint16(c,19778,!0),c+=2,p.setUint32(c,d,!0),c+=4,p.setUint32(c,0,!0),c+=4,p.setUint32(c,14+u+a.length,!0),c+=4,p.setUint32(c,u,!0),c+=4,p.setInt32(c,e,!0),c+=4,p.setInt32(c,-t,!0),c+=4,p.setUint16(c,1,!0),c+=2,p.setUint16(c,n,!0),c+=2,p.setUint32(c,l,!0),c+=4,p.setUint32(c,0,!0),c+=4,p.setInt32(c,0,!0),c+=4,p.setInt32(c,0,!0),c+=4,p.setUint32(c,a.length/4,!0),c+=4,p.setUint32(c,0,!0),c+=4,h.set(o,c),c+=o.length,h.set(a,c),c+=a.length,h.set(s,c),h}}t.ImageResizer=n,n._goodSquareLength=2048},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0
var i=r(2)
const n=3285377520,s=4294901760,a=65535
t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:n,this.h2=e?4294967295&e:n}update(e){let t,r
if("string"==typeof e){t=new Uint8Array(2*e.length),r=0
for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i)
n<=255?t[r++]=n:(t[r++]=n>>>8,t[r++]=255&n)}}else{if(!(0,i.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.")
t=e.slice(),r=t.byteLength}const n=r>>2,o=r-4*n,l=new Uint32Array(t.buffer,0,n)
let c=0,u=0,d=this.h1,h=this.h2
const p=3432918353,f=461845907,m=11601,g=13715
for(let i=0;i<n;i++)1&i?(c=l[i],c=c*p&s|c*m&a,c=c<<15|c>>>17,c=c*f&s|c*g&a,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[i],u=u*p&s|u*m&a,u=u<<15|u>>>17,u=u*f&s|u*g&a,h^=u,h=h<<13|h>>>19,h=5*h+3864292196)
switch(c=0,o){case 3:c^=t[4*n+2]<<16
case 2:c^=t[4*n+1]<<8
case 1:c^=t[4*n],c=c*p&s|c*m&a,c=c<<15|c>>>17,c=c*f&s|c*g&a,1&n?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2
return e^=t>>>1,e=3981806797*e&s|36045*e&a,t=4283543511*t&s|(2950163797*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,e=444984403*e&s|60499*e&a,t=3301882366*t&s|(3120437893*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0
var i=r(2)
function n(e,t,r,i,n){let s=e
for(let a=0,o=t.length-1;a<o;a++){const e=t[a]
s=s[e]||=[]}s[t.at(-1)]={checkFn:r,iterateFn:i,processFn:n}}const s=[]
n(s,[i.OPS.save,i.OPS.transform,i.OPS.paintInlineImageXObject,i.OPS.restore],null,(function(e,t){const r=e.fnArray,n=(t-(e.iCurr-3))%4
switch(n){case 0:return r[t]===i.OPS.save
case 1:return r[t]===i.OPS.transform
case 2:return r[t]===i.OPS.paintInlineImageXObject
case 3:return r[t]===i.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${n}`)}),(function(e,t){const r=e.fnArray,n=e.argsArray,s=e.iCurr,a=s-3,o=s-2,l=s-1,c=Math.min(Math.floor((t-a)/4),200)
if(c<10)return t-(t-a)%4
let u=0
const d=[]
let h=0,p=1,f=1
for(let i=0;i<c;i++){const e=n[o+(i<<2)],t=n[l+(i<<2)][0]
p+t.width>1e3&&(u=Math.max(u,p),f+=h+2,p=0,h=0),d.push({transform:e,x:p,y:f,w:t.width,h:t.height}),p+=t.width+2,h=Math.max(h,t.height)}const m=Math.max(u,p)+1,g=f+h+1,b=new Uint8Array(m*g*4),y=m<<2
for(let i=0;i<c;i++){const e=n[l+(i<<2)][0].data,t=d[i].w<<2
let r=0,s=d[i].x+d[i].y*m<<2
b.set(e.subarray(0,t),s-y)
for(let n=0,a=d[i].h;n<a;n++)b.set(e.subarray(r,r+t),s),r+=t,s+=y
for(b.set(e.subarray(r-t,r),s);s>=0;)e[s-4]=e[s],e[s-3]=e[s+1],e[s-2]=e[s+2],e[s-1]=e[s+3],e[s+t]=e[s+t-4],e[s+t+1]=e[s+t-3],e[s+t+2]=e[s+t-2],e[s+t+3]=e[s+t-1],s-=y}const v={width:m,height:g}
if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(m,g)
e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(b.buffer),m,g),0,0),v.bitmap=e.transferToImageBitmap(),v.data=null}else v.kind=i.ImageKind.RGBA_32BPP,v.data=b
return r.splice(a,4*c,i.OPS.paintInlineImageXObjectGroup),n.splice(a,4*c,[v,d]),a+1})),n(s,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],null,(function(e,t){const r=e.fnArray,n=(t-(e.iCurr-3))%4
switch(n){case 0:return r[t]===i.OPS.save
case 1:return r[t]===i.OPS.transform
case 2:return r[t]===i.OPS.paintImageMaskXObject
case 3:return r[t]===i.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${n}`)}),(function(e,t){const r=e.fnArray,n=e.argsArray,s=e.iCurr,a=s-3,o=s-2,l=s-1
let c=Math.floor((t-a)/4)
if(c<10)return t-(t-a)%4
let u,d,h=!1
const p=n[l][0],f=n[o][0],m=n[o][1],g=n[o][2],b=n[o][3]
if(m===g){h=!0,u=o+4
let e=l+4
for(let t=1;t<c;t++,u+=4,e+=4)if(d=n[u],n[e][0]!==p||d[0]!==f||d[1]!==m||d[2]!==g||d[3]!==b){t<10?h=!1:c=t
break}}if(h){c=Math.min(c,1e3)
const e=new Float32Array(2*c)
u=o
for(let t=0;t<c;t++,u+=4)d=n[u],e[t<<1]=d[4],e[1+(t<<1)]=d[5]
r.splice(a,4*c,i.OPS.paintImageMaskXObjectRepeat),n.splice(a,4*c,[p,f,m,g,b,e])}else{c=Math.min(c,100)
const e=[]
for(let t=0;t<c;t++){d=n[o+(t<<2)]
const r=n[l+(t<<2)][0]
e.push({data:r.data,width:r.width,height:r.height,interpolate:r.interpolate,count:r.count,transform:d})}r.splice(a,4*c,i.OPS.paintImageMaskXObjectGroup),n.splice(a,4*c,[e])}return a+1})),n(s,[i.OPS.save,i.OPS.transform,i.OPS.paintImageXObject,i.OPS.restore],(function(e){const t=e.argsArray,r=e.iCurr-2
return 0===t[r][1]&&0===t[r][2]}),(function(e,t){const r=e.fnArray,n=e.argsArray,s=(t-(e.iCurr-3))%4
switch(s){case 0:return r[t]===i.OPS.save
case 1:if(r[t]!==i.OPS.transform)return!1
const s=e.iCurr-2,a=n[s][0],o=n[s][3]
return n[t][0]===a&&0===n[t][1]&&0===n[t][2]&&n[t][3]===o
case 2:if(r[t]!==i.OPS.paintImageXObject)return!1
const l=n[e.iCurr-1][0]
return n[t][0]===l
case 3:return r[t]===i.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${s}`)}),(function(e,t){const r=e.fnArray,n=e.argsArray,s=e.iCurr,a=s-3,o=s-2,l=n[s-1][0],c=n[o][0],u=n[o][3],d=Math.min(Math.floor((t-a)/4),1e3)
if(d<3)return t-(t-a)%4
const h=new Float32Array(2*d)
let p=o
for(let i=0;i<d;i++,p+=4){const e=n[p]
h[i<<1]=e[4],h[1+(i<<1)]=e[5]}const f=[l,c,u,h]
return r.splice(a,4*d,i.OPS.paintImageXObjectRepeat),n.splice(a,4*d,f),a+1})),n(s,[i.OPS.beginText,i.OPS.setFont,i.OPS.setTextMatrix,i.OPS.showText,i.OPS.endText],null,(function(e,t){const r=e.fnArray,n=e.argsArray,s=(t-(e.iCurr-4))%5
switch(s){case 0:return r[t]===i.OPS.beginText
case 1:return r[t]===i.OPS.setFont
case 2:return r[t]===i.OPS.setTextMatrix
case 3:if(r[t]!==i.OPS.showText)return!1
const s=e.iCurr-3,a=n[s][0],o=n[s][1]
return n[t][0]===a&&n[t][1]===o
case 4:return r[t]===i.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${s}`)}),(function(e,t){const r=e.fnArray,i=e.argsArray,n=e.iCurr,s=n-4,a=n-3,o=n-2,l=n-1,c=n,u=i[a][0],d=i[a][1]
let h=Math.min(Math.floor((t-s)/5),1e3)
if(h<3)return t-(t-s)%5
let p=s
s>=4&&r[s-4]===r[a]&&r[s-3]===r[o]&&r[s-2]===r[l]&&r[s-1]===r[c]&&i[s-4][0]===u&&i[s-4][1]===d&&(h++,p-=5)
let f=p+4
for(let m=1;m<h;m++)r.splice(f,3),i.splice(f,3),f+=2
return f+1}))
class a{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}}class o extends a{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:!1},this.match=null,this.lastProcessed=0}set isOffscreenCanvasSupported(e){this.context.isOffscreenCanvasSupported=e}_optimize(){const e=this.queue.fnArray
let t=this.lastProcessed,r=e.length,i=this.state,n=this.match
if(!i&&!n&&t+1===r&&!s[e[t]])return void(this.lastProcessed=r)
const a=this.context
for(;t<r;){if(n){if((0,n.iterateFn)(a,t)){t++
continue}if(t=(0,n.processFn)(a,t+1),r=e.length,n=null,i=null,t>=r)break}i=(i||s)[e[t]],i&&!Array.isArray(i)?(a.iCurr=t,t++,!i.checkFn||(0,i.checkFn)(a)?(n=i,i=null):i=null):t++}this.state=i,this.match=n,this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length
this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class l{static CHUNK_SIZE=1e3
static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5
constructor(e=0,t){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=!t||e&i.RenderingIntentFlag.OPLIST?new a(this):new o(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}set isOffscreenCanvasSupported(e){this.optimizer.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=l.CHUNK_SIZE||this.weight>=l.CHUNK_SIZE_ABOUT&&(e===i.OPS.restore||e===i.OPS.endText))&&this.flush()}addImageOps(e,t,r){void 0!==r&&this.addOp(i.OPS.beginMarkedContentProps,["OC",r]),this.addOp(e,t),void 0!==r&&this.addOp(i.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(i.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof l){for(const t of e.dependencies)this.dependencies.add(t)
for(let t=0,r=e.length;t<r;t++)this.addOp(e.fnArray[t],e.argsArray[t])}else(0,i.warn)('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const e=[],{fnArray:t,argsArray:r,length:n}=this
for(let s=0;s<n;s++)switch(t[s]){case i.OPS.paintInlineImageXObject:case i.OPS.paintInlineImageXObjectGroup:case i.OPS.paintImageMaskXObject:const t=r[s][0]
!t.cached&&t.data?.buffer instanceof ArrayBuffer&&e.push(t.data.buffer)}return e}flush(e=!1,t=null){this.optimizer.flush()
const r=this.length
this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}t.OperatorList=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0
var i=r(2),n=r(28),s=r(5),a=r(12),o=r(18),l=r(62),c=r(26),u=r(30),d=r(4)
function h(e,t,r,i){return(e=t+e*r)<0?e=0:e>i&&(e=i),e}function p(e,t,r,i,n,s){const a=n*s
let o
o=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a)
const l=r/n,c=i/s
let u,d,h,p,f=0
const m=new Uint16Array(n),g=r
for(u=0;u<n;u++)m[u]=Math.floor(u*l)
for(u=0;u<s;u++)for(h=Math.floor(u*c)*g,d=0;d<n;d++)p=h+m[d],o[f++]=e[p]
return o}class f{constructor({xref:e,res:t,image:r,isInline:n=!1,smask:o=null,mask:l=null,isMask:c=!1,pdfFunctionFactory:h,localColorSpaceCache:p}){this.image=r
const m=r.dict,g=m.get("F","Filter")
let b
if(g instanceof d.Name)b=g.name
else if(Array.isArray(g)){const t=e.fetchIfRef(g[0])
t instanceof d.Name&&(b=t.name)}switch(b){case"JPXDecode":const e=new u.JpxImage
e.parseImageProperties(r.stream),r.stream.reset(),r.width=e.width,r.height=e.height,r.bitsPerComponent=e.bitsPerComponent,r.numComps=e.componentsCount
break
case"JBIG2Decode":r.bitsPerComponent=1,r.numComps=1}let y=m.get("W","Width"),v=m.get("H","Height")
if(Number.isInteger(r.width)&&r.width>0&&Number.isInteger(r.height)&&r.height>0&&(r.width!==y||r.height!==v)&&((0,i.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),y=r.width,v=r.height),y<1||v<1)throw new i.FormatError(`Invalid image width: ${y} or height: ${v}`)
this.width=y,this.height=v,this.interpolate=m.get("I","Interpolate"),this.imageMask=m.get("IM","ImageMask")||!1,this.matte=m.get("Matte")||!1
let w=r.bitsPerComponent
if(!w&&(w=m.get("BPC","BitsPerComponent"),!w)){if(!this.imageMask)throw new i.FormatError(`Bits per component missing in image: ${this.imageMask}`)
w=1}if(this.bpc=w,!this.imageMask){let s=m.getRaw("CS")||m.getRaw("ColorSpace")
if(!s)switch((0,i.info)("JPX images (which do not require color spaces)"),r.numComps){case 1:s=d.Name.get("DeviceGray")
break
case 3:s=d.Name.get("DeviceRGB")
break
case 4:s=d.Name.get("DeviceCMYK")
break
default:throw new Error(`JPX images with ${r.numComps} color components not supported.`)}this.colorSpace=a.ColorSpace.parse({cs:s,xref:e,resources:n?t:null,pdfFunctionFactory:h,localColorSpaceCache:p}),this.numComps=this.colorSpace.numComps}if(this.decode=m.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,w)||c&&!a.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0
const e=(1<<w)-1
this.decodeCoefficients=[],this.decodeAddends=[]
const t="Indexed"===this.colorSpace?.name
for(let r=0,i=0;r<this.decode.length;r+=2,++i){const n=this.decode[r],s=this.decode[r+1]
this.decodeCoefficients[i]=t?(s-n)/e:s-n,this.decodeAddends[i]=t?n:e*n}}if(o)this.smask=new f({xref:e,res:t,image:o,isInline:n,pdfFunctionFactory:h,localColorSpaceCache:p})
else if(l)if(l instanceof s.BaseStream){l.dict.get("IM","ImageMask")?this.mask=new f({xref:e,res:t,image:l,isInline:n,isMask:!0,pdfFunctionFactory:h,localColorSpaceCache:p}):(0,i.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=l}static async buildImage({xref:e,res:t,image:r,isInline:n=!1,pdfFunctionFactory:a,localColorSpaceCache:o}){const l=r
let c=null,u=null
const d=r.dict.get("SMask"),h=r.dict.get("Mask")
return d?d instanceof s.BaseStream?c=d:(0,i.warn)("Unsupported /SMask format."):h&&(h instanceof s.BaseStream||Array.isArray(h)?u=h:(0,i.warn)("Unsupported /Mask format.")),new f({xref:e,res:t,image:l,isInline:n,smask:c,mask:u,pdfFunctionFactory:a,localColorSpaceCache:o})}static createRawMask({imgArray:e,width:t,height:r,imageIsFromDecodeStream:i,inverseDecode:n,interpolate:s}){const a=(t+7>>3)*r,o=e.byteLength
let l,c
if(!i||n&&!(a===o)?n?(l=new Uint8Array(a),l.set(e),l.fill(255,o)):l=new Uint8Array(e):l=e,n)for(c=0;c<o;c++)l[c]^=255
return{data:l,width:t,height:r,interpolate:s}}static async createMask({imgArray:e,width:t,height:r,imageIsFromDecodeStream:s,inverseDecode:a,interpolate:o,isOffscreenCanvasSupported:c=!1}){const u=1===t&&1===r&&a===(0===e.length||!!(128&e[0]))
if(u)return{isSingleOpaquePixel:u}
if(c){if(l.ImageResizer.needsToBeResized(t,r)){const s=new Uint8ClampedArray(t*r*4)
return(0,n.convertBlackAndWhiteToRGBA)({src:e,dest:s,width:t,height:r,nonBlackColor:0,inverseDecode:a}),l.ImageResizer.createImage({kind:i.ImageKind.RGBA_32BPP,data:s,width:t,height:r,interpolate:o})}const s=new OffscreenCanvas(t,r),c=s.getContext("2d"),u=c.createImageData(t,r);(0,n.convertBlackAndWhiteToRGBA)({src:e,dest:u.data,width:t,height:r,nonBlackColor:0,inverseDecode:a}),c.putImageData(u,0,0)
return{data:null,width:t,height:r,interpolate:o,bitmap:s.transferToImageBitmap()}}return this.createRawMask({imgArray:e,width:t,height:r,inverseDecode:a,imageIsFromDecodeStream:s,interpolate:o})}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(e){const t=this.bpc,r=this.numComps,i=this.decodeAddends,n=this.decodeCoefficients,s=(1<<t)-1
let a,o
if(1===t){for(a=0,o=e.length;a<o;a++)e[a]=+!e[a]
return}let l=0
for(a=0,o=this.width*this.height;a<o;a++)for(let t=0;t<r;t++)e[l]=h(e[l],i[t],n[t],s),l++}getComponents(e){const t=this.bpc
if(8===t)return e
const r=this.width,i=this.height,n=this.numComps,s=r*i*n
let a,o=0
a=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s)
const l=r*n,c=(1<<t)-1
let u,d,h=0
if(1===t){let t,r,n
for(let s=0;s<i;s++){for(r=h+(-8&l),n=h+l;h<r;)d=e[o++],a[h]=d>>7&1,a[h+1]=d>>6&1,a[h+2]=d>>5&1,a[h+3]=d>>4&1,a[h+4]=d>>3&1,a[h+5]=d>>2&1,a[h+6]=d>>1&1,a[h+7]=1&d,h+=8
if(h<n)for(d=e[o++],t=128;h<n;)a[h++]=+!!(d&t),t>>=1}}else{let r=0
for(d=0,h=0,u=s;h<u;++h){for(h%l==0&&(d=0,r=0);r<t;)d=d<<8|e[o++],r+=8
const i=r-t
let n=d>>i
n<0?n=0:n>c&&(n=c),a[h]=n,d&=(1<<i)-1,r=i}}return a}fillOpacity(e,t,r,n,s){const a=this.smask,o=this.mask
let l,c,u,d,h,m
if(a)c=a.width,u=a.height,l=new Uint8ClampedArray(c*u),a.fillGrayBuffer(l),c===t&&u===r||(l=p(l,a.bpc,c,u,t,r))
else if(o)if(o instanceof f){for(c=o.width,u=o.height,l=new Uint8ClampedArray(c*u),o.numComps=1,o.fillGrayBuffer(l),d=0,h=c*u;d<h;++d)l[d]=255-l[d]
c===t&&u===r||(l=p(l,o.bpc,c,u,t,r))}else{if(!Array.isArray(o))throw new i.FormatError("Unknown mask format.")
{l=new Uint8ClampedArray(t*r)
const e=this.numComps
for(d=0,h=t*r;d<h;++d){let t=0
const r=d*e
for(m=0;m<e;++m){const e=s[r+m],i=2*m
if(e<o[i]||e>o[i+1]){t=255
break}}l[d]=t}}}if(l)for(d=0,m=3,h=t*n;d<h;++d,m+=4)e[m]=l[d]
else for(d=0,m=3,h=t*n;d<h;++d,m+=4)e[m]=255}undoPreblend(e,t,r){const i=this.smask?.matte
if(!i)return
const n=this.colorSpace.getRgb(i,0),s=n[0],a=n[1],o=n[2],l=t*r*4
for(let c=0;c<l;c+=4){const t=e[c+3]
if(0===t){e[c]=255,e[c+1]=255,e[c+2]=255
continue}const r=255/t
e[c]=(e[c]-s)*r+s,e[c+1]=(e[c+1]-a)*r+a,e[c+2]=(e[c+2]-o)*r+o}}async createImageData(e=!1,t=!1){const r=this.drawWidth,n=this.drawHeight,s={width:r,height:n,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,o=this.width,u=this.height,d=this.bpc,h=o*a*d+7>>3,p=t&&l.ImageResizer.needsToBeResized(r,n)
if(!e){let e
if("DeviceGray"===this.colorSpace.name&&1===d?e=i.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==d||this.needsDecode||(e=i.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&r===o&&n===u){const a=this.getImageBytes(u*h,{})
if(t)return p?l.ImageResizer.createImage({data:a,kind:e,width:r,height:n,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,o,u,a)
if(s.kind=e,s.data=a,this.needsDecode){(0,i.assert)(e===i.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.")
const t=s.data
for(let e=0,r=t.length;e<r;e++)t[e]^=255}return s}if(this.image instanceof c.JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let e=u*h
if(t&&!p){let t=!1
switch(this.colorSpace.name){case"DeviceGray":e*=4,t=!0
break
case"DeviceRGB":e=e/3*4,t=!0
break
case"DeviceCMYK":t=!0}if(t){const t=this.getImageBytes(e,{drawWidth:r,drawHeight:n,forceRGBA:!0})
return this.createBitmap(i.ImageKind.RGBA_32BPP,r,n,t)}}else switch(this.colorSpace.name){case"DeviceGray":e*=3
case"DeviceRGB":case"DeviceCMYK":return s.kind=i.ImageKind.RGB_24BPP,s.data=this.getImageBytes(e,{drawWidth:r,drawHeight:n,forceRGB:!0}),p?l.ImageResizer.createImage(s):s}}}const f=this.getImageBytes(u*h,{internal:!0}),m=0|f.length/h*n/u,g=this.getComponents(f)
let b,y,v,w,x,_
if(t&&!p&&(v=new OffscreenCanvas(r,n),w=v.getContext("2d"),x=w.createImageData(r,n),_=x.data),s.kind=i.ImageKind.RGBA_32BPP,e||this.smask||this.mask)t&&!p||(_=new Uint8ClampedArray(r*n*4)),b=1,y=!0,this.fillOpacity(_,r,n,m,g)
else{if(!t||p)s.kind=i.ImageKind.RGB_24BPP,_=new Uint8ClampedArray(r*n*3),b=0
else{new Uint32Array(_.buffer).fill(i.FeatureTest.isLittleEndian?4278190080:255),b=1}y=!1}if(this.needsDecode&&this.decodeBuffer(g),this.colorSpace.fillRgb(_,o,u,r,n,m,d,g,b),y&&this.undoPreblend(_,r,m),t&&!p){w.putImageData(x,0,0)
return{data:null,width:r,height:n,bitmap:v.transferToImageBitmap(),interpolate:this.interpolate}}return s.data=_,p?l.ImageResizer.createImage(s):s}fillGrayBuffer(e){const t=this.numComps
if(1!==t)throw new i.FormatError(`Reading gray scale from a color image: ${t}`)
const r=this.width,n=this.height,s=this.bpc,a=r*t*s+7>>3,o=this.getImageBytes(n*a,{internal:!0}),l=this.getComponents(o)
let c,u
if(1===s){if(u=r*n,this.needsDecode)for(c=0;c<u;++c)e[c]=l[c]-1&255
else for(c=0;c<u;++c)e[c]=255&-l[c]
return}this.needsDecode&&this.decodeBuffer(l),u=r*n
const d=255/((1<<s)-1)
for(c=0;c<u;++c)e[c]=d*l[c]}createBitmap(e,t,r,s){const a=new OffscreenCanvas(t,r),o=a.getContext("2d")
let l
e===i.ImageKind.RGBA_32BPP?l=new ImageData(s,t,r):(l=o.createImageData(t,r),(0,n.convertToRGBA)({kind:e,src:s,dest:new Uint32Array(l.data.buffer),width:t,height:r,inverseDecode:this.needsDecode})),o.putImageData(l,0,0)
return{data:null,width:t,height:r,bitmap:a.transferToImageBitmap(),interpolate:this.interpolate}}getImageBytes(e,{drawWidth:t,drawHeight:r,forceRGBA:n=!1,forceRGB:s=!1,internal:a=!1}){this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGBA=!!n,this.image.forceRGB=!!s
const l=this.image.getBytes(e)
return a||this.image instanceof o.DecodeStream?l:((0,i.assert)(l instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(l))}}t.PDFImage=f},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0
var i=r(3),n=r(2),s=r(4),a=r(67),o=r(5),l=r(68),c=r(12),u=r(69),d=r(59),h=r(70),p=r(72)
function f(e){return e instanceof s.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class m{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof s.Dict))throw new n.FormatError("Catalog object is not a dictionary.")
this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new s.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new d.GlobalImageCache,this.pageKidsCountCache=new s.RefSetCache,this.pageIndexCache=new s.RefSetCache,this.nonBlendModesSet=new s.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const e=this._catDict.get("Version")
if(e instanceof s.Name){if(i.PDF_VERSION_REGEXP.test(e.name))return(0,n.shadow)(this,"version",e.name);(0,n.warn)(`Invalid PDF catalog version: ${e.name}`)}return(0,n.shadow)(this,"version",null)}get lang(){const e=this._catDict.get("Lang")
return(0,n.shadow)(this,"lang","string"==typeof e?(0,n.stringToPDFString)(e):null)}get needsRendering(){const e=this._catDict.get("NeedsRendering")
return(0,n.shadow)(this,"needsRendering","boolean"==typeof e&&e)}get collection(){let e=null
try{const t=this._catDict.get("Collection")
t instanceof s.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,n.shadow)(this,"collection",e)}get acroForm(){let e=null
try{const t=this._catDict.get("AcroForm")
t instanceof s.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,n.shadow)(this,"acroForm",e)}get acroFormRef(){const e=this._catDict.getRaw("AcroForm")
return(0,n.shadow)(this,"acroFormRef",e instanceof s.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata")
if(!(e instanceof s.Ref))return(0,n.shadow)(this,"metadata",null)
let t=null
try{const r=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata)
if(r instanceof o.BaseStream&&r.dict instanceof s.Dict){const e=r.dict.get("Type"),i=r.dict.get("Subtype")
if((0,s.isName)(e,"Metadata")&&(0,s.isName)(i,"XML")){const e=(0,n.stringToUTF8String)(r.getString())
e&&(t=new h.MetadataParser(e).serializable)}}}catch(r){if(r instanceof i.MissingDataException)throw r;(0,n.info)(`Skipping invalid Metadata: "${r}".`)}return(0,n.shadow)(this,"metadata",t)}get markInfo(){let e=null
try{e=this._readMarkInfo()}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)("Unable to read mark info.")}return(0,n.shadow)(this,"markInfo",e)}_readMarkInfo(){const e=this._catDict.get("MarkInfo")
if(!(e instanceof s.Dict))return null
const t={Marked:!1,UserProperties:!1,Suspects:!1}
for(const r in t){const i=e.get(r)
"boolean"==typeof i&&(t[r]=i)}return t}get structTreeRoot(){let e=null
try{e=this._readStructTreeRoot()}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)("Unable read to structTreeRoot info.")}return(0,n.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){const e=this._catDict.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e)
if(!(t instanceof s.Dict))return null
const r=new p.StructTreeRoot(t,e)
return r.init(),r}get toplevelPagesDict(){const e=this._catDict.get("Pages")
if(!(e instanceof s.Dict))throw new n.FormatError("Invalid top-level pages dictionary.")
return(0,n.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null
try{e=this._readDocumentOutline()}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this._catDict.get("Outlines")
if(!(e instanceof s.Dict))return null
if(e=e.getRaw("First"),!(e instanceof s.Ref))return null
const t={items:[]},r=[{obj:e,parent:t}],i=new s.RefSet
i.put(e)
const a=this.xref,o=new Uint8ClampedArray(3)
for(;r.length>0;){const t=r.shift(),l=a.fetchIfRef(t.obj)
if(null===l)continue
if(!l.has("Title"))throw new n.FormatError("Invalid outline item encountered.")
const u={url:null,dest:null,action:null}
m.parseDestDictionary({destDict:l,resultObj:u,docBaseUrl:this.baseUrl,docAttachments:this.attachments})
const d=l.get("Title"),h=l.get("F")||0,p=l.getArray("C"),f=l.get("Count")
let g=o
!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(g=c.ColorSpace.singletons.rgb.getRgb(p,0))
const b={action:u.action,attachment:u.attachment,dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,setOCGState:u.setOCGState,title:(0,n.stringToPDFString)(d),color:g,count:Number.isInteger(f)?f:void 0,bold:!!(2&h),italic:!!(1&h),items:[]}
t.parent.items.push(b),e=l.getRaw("First"),e instanceof s.Ref&&!i.has(e)&&(r.push({obj:e,parent:b}),i.put(e)),e=l.getRaw("Next"),e instanceof s.Ref&&!i.has(e)&&(r.push({obj:e,parent:t.parent}),i.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null
try{e=this._readPermissions()}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt")
if(!(e instanceof s.Dict))return null
let t=e.get("P")
if("number"!=typeof t)return null
t+=2**32
const r=[]
for(const i in n.PermissionFlag){const e=n.PermissionFlag[i]
t&e&&r.push(e)}return r}get optionalContentConfig(){let e=null
try{const t=this._catDict.get("OCProperties")
if(!t)return(0,n.shadow)(this,"optionalContentConfig",null)
const r=t.get("D")
if(!r)return(0,n.shadow)(this,"optionalContentConfig",null)
const i=t.get("OCGs")
if(!Array.isArray(i))return(0,n.shadow)(this,"optionalContentConfig",null)
const a=[],o=[]
for(const e of i){if(!(e instanceof s.Ref))continue
o.push(e)
const t=this.xref.fetchIfRef(e)
a.push({id:e.toString(),name:"string"==typeof t.get("Name")?(0,n.stringToPDFString)(t.get("Name")):null,intent:"string"==typeof t.get("Intent")?(0,n.stringToPDFString)(t.get("Intent")):null})}e=this._readOptionalContentConfig(r,o),e.groups=a}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)(`Unable to read optional content config: ${t}`)}return(0,n.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,t){function r(e){const r=[]
if(Array.isArray(e))for(const i of e)i instanceof s.Ref&&t.includes(i)&&r.push(i.toString())
return r}function i(e,r=0){if(!Array.isArray(e))return null
const i=[]
for(const o of e){if(o instanceof s.Ref&&t.includes(o)){l.put(o),i.push(o.toString())
continue}const e=a(o,r)
e&&i.push(e)}if(r>0)return i
const n=[]
for(const s of t)l.has(s)||n.push(s.toString())
return n.length&&i.push({name:null,order:n}),i}function a(e,t){if(++t>c)return(0,n.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null
const r=o.fetchIfRef(e)
if(!Array.isArray(r))return null
const s=o.fetchIfRef(r[0])
if("string"!=typeof s)return null
const a=i(r.slice(1),t)
return a&&a.length?{name:(0,n.stringToPDFString)(s),order:a}:null}const o=this.xref,l=new s.RefSet,c=10
return{name:"string"==typeof e.get("Name")?(0,n.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,n.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof s.Name?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:i(e.get("Order")),groups:null}}setActualNumPages(e=null){this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){const e=this.toplevelPagesDict.get("Count")
if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.")
return(0,n.shadow)(this,"_pagesCount",e)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),t=Object.create(null)
if(e instanceof a.NameTree)for(const[r,i]of e.getAll()){const e=f(i)
e&&(t[(0,n.stringToPDFString)(r)]=e)}else e instanceof s.Dict&&e.forEach((function(e,r){const i=f(r)
i&&(t[e]=i)}))
return(0,n.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests()
if(t instanceof a.NameTree){const r=f(t.get(e))
if(r)return r
const i=this.destinations[e]
if(i)return(0,n.warn)(`Found "${e}" at an incorrect position in the NameTree.`),i}else if(t instanceof s.Dict){const r=f(t.get(e))
if(r)return r}return null}_readDests(){const e=this._catDict.get("Names")
return e?.has("Dests")?new a.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null
try{e=this._readPageLabels()}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this._catDict.getRaw("PageLabels")
if(!e)return null
const t=new Array(this.numPages)
let r=null,o=""
const l=new a.NumberTree(e,this.xref).getAll()
let c="",u=1
for(let a=0,d=this.numPages;a<d;a++){const e=l.get(a)
if(void 0!==e){if(!(e instanceof s.Dict))throw new n.FormatError("PageLabel is not a dictionary.")
if(e.has("Type")&&!(0,s.isName)(e.get("Type"),"PageLabel"))throw new n.FormatError("Invalid type in PageLabel dictionary.")
if(e.has("S")){const t=e.get("S")
if(!(t instanceof s.Name))throw new n.FormatError("Invalid style in PageLabel dictionary.")
r=t.name}else r=null
if(e.has("P")){const t=e.get("P")
if("string"!=typeof t)throw new n.FormatError("Invalid prefix in PageLabel dictionary.")
o=(0,n.stringToPDFString)(t)}else o=""
if(e.has("St")){const t=e.get("St")
if(!(Number.isInteger(t)&&t>=1))throw new n.FormatError("Invalid start in PageLabel dictionary.")
u=t}else u=1}switch(r){case"D":c=u
break
case"R":case"r":c=(0,i.toRomanNumerals)(u,"r"===r)
break
case"A":case"a":const e=26,t="a"===r?97:65,s=u-1
c=String.fromCharCode(t+s%e).repeat(Math.floor(s/e)+1)
break
default:if(r)throw new n.FormatError(`Invalid style "${r}" in PageLabel dictionary.`)
c=""}t[a]=o+c,u++}return t}get pageLayout(){const e=this._catDict.get("PageLayout")
let t=""
if(e instanceof s.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}get pageMode(){const e=this._catDict.get("PageMode")
let t="UseNone"
if(e instanceof s.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=this._catDict.get("ViewerPreferences")
if(!(e instanceof s.Dict))return(0,n.shadow)(this,"viewerPreferences",null)
let t=null
for(const r of e.getKeys()){const i=e.get(r)
let a
switch(r){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof i&&(a=i)
break
case"NonFullScreenPageMode":if(i instanceof s.Name)switch(i.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":a=i.name
break
default:a="UseNone"}break
case"Direction":if(i instanceof s.Name)switch(i.name){case"L2R":case"R2L":a=i.name
break
default:a="L2R"}break
case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(i instanceof s.Name)switch(i.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":a=i.name
break
default:a="CropBox"}break
case"PrintScaling":if(i instanceof s.Name)switch(i.name){case"None":case"AppDefault":a=i.name
break
default:a="AppDefault"}break
case"Duplex":if(i instanceof s.Name)switch(i.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":a=i.name
break
default:a="None"}break
case"PrintPageRange":if(Array.isArray(i)&&i.length%2==0){i.every(((e,t,r)=>Number.isInteger(e)&&e>0&&(0===t||e>=r[t-1])&&e<=this.numPages))&&(a=i)}break
case"NumCopies":Number.isInteger(i)&&i>0&&(a=i)
break
default:(0,n.warn)(`Ignoring non-standard key in ViewerPreferences: ${r}.`)
continue}void 0!==a?(t||(t=Object.create(null)),t[r]=a):(0,n.warn)(`Bad value, for key "${r}", in ViewerPreferences: ${i}.`)}return(0,n.shadow)(this,"viewerPreferences",t)}get openAction(){const e=this._catDict.get("OpenAction"),t=Object.create(null)
if(e instanceof s.Dict){const r=new s.Dict(this.xref)
r.set("A",e)
const i={url:null,dest:null,action:null}
m.parseDestDictionary({destDict:r,resultObj:i}),Array.isArray(i.dest)?t.dest=i.dest:i.action&&(t.action=i.action)}else Array.isArray(e)&&(t.dest=e)
return(0,n.shadow)(this,"openAction",(0,n.objectSize)(t)>0?t:null)}get attachments(){const e=this._catDict.get("Names")
let t=null
if(e instanceof s.Dict&&e.has("EmbeddedFiles")){const r=new a.NameTree(e.getRaw("EmbeddedFiles"),this.xref)
for(const[e,i]of r.getAll()){const r=new u.FileSpec(i,this.xref)
t||(t=Object.create(null)),t[(0,n.stringToPDFString)(e)]=r.serializable}}return(0,n.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names")
let t=null
if(e instanceof s.Dict&&e.has("XFAImages")){const r=new a.NameTree(e.getRaw("XFAImages"),this.xref)
for(const[e,i]of r.getAll())t||(t=new s.Dict(this.xref)),t.set((0,n.stringToPDFString)(e),i)}return(0,n.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names")
let t=null
function r(e,r){if(!(r instanceof s.Dict))return
if(!(0,s.isName)(r.get("S"),"JavaScript"))return
let i=r.get("JS")
if(i instanceof o.BaseStream)i=i.getString()
else if("string"!=typeof i)return
i=(0,n.stringToPDFString)(i).replaceAll("\0",""),i&&(t||=new Map).set(e,i)}if(e instanceof s.Dict&&e.has("JavaScript")){const t=new a.NameTree(e.getRaw("JavaScript"),this.xref)
for(const[e,i]of t.getAll())r((0,n.stringToPDFString)(e),i)}const i=this._catDict.get("OpenAction")
return i&&r("OpenAction",i),t}get jsActions(){const e=this._collectJavaScript()
let t=(0,i.collectActions)(this.xref,this._catDict,n.DocumentActionEventType)
if(e){t||=Object.create(null)
for(const[r,i]of e)r in t?t[r].push(i):t[r]=[i]}return(0,n.shadow)(this,"jsActions",t)}async fontFallback(e,t){const r=await Promise.all(this.fontCache)
for(const i of r)if(i.loadedName===e)return void i.fallback(t)}async cleanup(e=!1){(0,l.clearGlobalCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear()
const t=await Promise.all(this.fontCache)
for(const{dict:r}of t)delete r.cacheKey
this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],r=new s.RefSet,i=this._catDict.getRaw("Pages")
i instanceof s.Ref&&r.put(i)
const a=this.xref,o=this.pageKidsCountCache,l=this.pageIndexCache
let c=0
for(;t.length;){const i=t.pop()
if(i instanceof s.Ref){const u=o.get(i)
if(u>=0&&c+u<=e){c+=u
continue}if(r.has(i))throw new n.FormatError("Pages tree contains circular reference.")
r.put(i)
const d=await a.fetchAsync(i)
if(d instanceof s.Dict){let t=d.getRaw("Type")
if(t instanceof s.Ref&&(t=await a.fetchAsync(t)),(0,s.isName)(t,"Page")||!d.has("Kids")){if(o.has(i)||o.put(i,1),l.has(i)||l.put(i,c),c===e)return[d,i]
c++
continue}}t.push(d)
continue}if(!(i instanceof s.Dict))throw new n.FormatError("Page dictionary kid reference points to wrong type of object.")
const{objId:u}=i
let d=i.getRaw("Count")
if(d instanceof s.Ref&&(d=await a.fetchAsync(d)),Number.isInteger(d)&&d>=0&&(u&&!o.has(u)&&o.put(u,d),c+d<=e)){c+=d
continue}let h=i.getRaw("Kids")
if(h instanceof s.Ref&&(h=await a.fetchAsync(h)),!Array.isArray(h)){let t=i.getRaw("Type")
if(t instanceof s.Ref&&(t=await a.fetchAsync(t)),(0,s.isName)(t,"Page")||!i.has("Kids")){if(c===e)return[i,null]
c++
continue}throw new n.FormatError("Page dictionary kids object is not an array.")}for(let e=h.length-1;e>=0;e--)t.push(h[e])}throw new Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,r=[{currentNode:this.toplevelPagesDict,posInKids:0}],a=new s.RefSet,o=this._catDict.getRaw("Pages")
o instanceof s.Ref&&a.put(o)
const l=new Map,c=this.xref,u=this.pageIndexCache
let d=0
function h(r){if(r instanceof i.XRefEntryException&&!e)throw r
e&&t&&0===d&&((0,n.warn)(`getAllPageDicts - Skipping invalid first page: "${r}".`),r=s.Dict.empty),l.set(d++,[r,null])}for(;r.length>0;){const e=r.at(-1),{currentNode:t,posInKids:i}=e
let o=t.getRaw("Kids")
if(o instanceof s.Ref)try{o=await c.fetchAsync(o)}catch(m){h(m)
break}if(!Array.isArray(o)){h(new n.FormatError("Page dictionary kids object is not an array."))
break}if(i>=o.length){r.pop()
continue}const g=o[i]
let b
if(g instanceof s.Ref){if(a.has(g)){h(new n.FormatError("Pages tree contains circular reference."))
break}a.put(g)
try{b=await c.fetchAsync(g)}catch(m){h(m)
break}}else b=g
if(!(b instanceof s.Dict)){h(new n.FormatError("Page dictionary kid reference points to wrong type of object."))
break}let y=b.getRaw("Type")
if(y instanceof s.Ref)try{y=await c.fetchAsync(y)}catch(m){h(m)
break}(0,s.isName)(y,"Page")||!b.has("Kids")?(p=b,(f=g instanceof s.Ref?g:null)&&!u.has(f)&&u.put(f,d),l.set(d++,[p,f])):r.push({currentNode:b,posInKids:0}),e.posInKids++}var p,f
return l}getPageIndex(e){const t=this.pageIndexCache.get(e)
if(void 0!==t)return Promise.resolve(t)
const r=this.xref
let i=0
const a=t=>function(t){let i,a=0
return r.fetchAsync(t).then((function(r){if((0,s.isRefsEqual)(t,e)&&!(0,s.isDict)(r,"Page")&&!(r instanceof s.Dict&&!r.has("Type")&&r.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.")
if(!r)return null
if(!(r instanceof s.Dict))throw new n.FormatError("Node must be a dictionary.")
return i=r.getRaw("Parent"),r.getAsync("Parent")})).then((function(e){if(!e)return null
if(!(e instanceof s.Dict))throw new n.FormatError("Parent must be a dictionary.")
return e.getAsync("Kids")})).then((function(e){if(!e)return null
const o=[]
let l=!1
for(const i of e){if(!(i instanceof s.Ref))throw new n.FormatError("Kid must be a reference.")
if((0,s.isRefsEqual)(i,t)){l=!0
break}o.push(r.fetchAsync(i).then((function(e){if(!(e instanceof s.Dict))throw new n.FormatError("Kid node must be a dictionary.")
e.has("Count")?a+=e.get("Count"):a++})))}if(!l)throw new n.FormatError("Kid reference not found in parent's kids.")
return Promise.all(o).then((function(){return[a,i]}))}))}(t).then((t=>{if(!t)return this.pageIndexCache.put(e,i),i
const[r,n]=t
return i+=r,a(n)}))
return a(e)}get baseUrl(){const e=this._catDict.get("URI")
if(e instanceof s.Dict){const t=e.get("Base")
if("string"==typeof t){const e=(0,n.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0})
if(e)return(0,n.shadow)(this,"baseUrl",e.href)}}return(0,n.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:e,resultObj:t,docBaseUrl:r=null,docAttachments:a=null}){if(!(e instanceof s.Dict))return void(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.")
let l,c,u=e.get("A")
if(u instanceof s.Dict||(e.has("Dest")?u=e.get("Dest"):(u=e.get("AA"),u instanceof s.Dict&&(u.has("D")?u=u.get("D"):u.has("U")&&(u=u.get("U"))))),u instanceof s.Dict){const e=u.get("S")
if(!(e instanceof s.Name))return void(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.")
const r=e.name
switch(r){case"ResetForm":const e=u.get("Flags"),d=!(1&("number"==typeof e?e:0)),h=[],p=[]
for(const t of u.get("Fields")||[])t instanceof s.Ref?p.push(t.toString()):"string"==typeof t&&h.push((0,n.stringToPDFString)(t))
t.resetForm={fields:h,refs:p,include:d}
break
case"URI":l=u.get("URI"),l instanceof s.Name&&(l="/"+l.name)
break
case"GoTo":c=u.get("D")
break
case"Launch":case"GoToR":const f=u.get("F")
f instanceof s.Dict?l=f.get("F")||null:"string"==typeof f&&(l=f)
let m=u.get("D")
if(m&&(m instanceof s.Name&&(m=m.name),"string"==typeof l)){const e=l.split("#")[0]
"string"==typeof m?l=e+"#"+m:Array.isArray(m)&&(l=e+"#"+JSON.stringify(m))}const g=u.get("NewWindow")
"boolean"==typeof g&&(t.newWindow=g)
break
case"GoToE":const b=u.get("T")
let y
if(a&&b instanceof s.Dict){const e=b.get("R"),t=b.get("N");(0,s.isName)(e,"C")&&"string"==typeof t&&(y=a[(0,n.stringToPDFString)(t)])}y?t.attachment=y:(0,n.warn)('parseDestDictionary - unimplemented "GoToE" action.')
break
case"Named":const v=u.get("N")
v instanceof s.Name&&(t.action=v.name)
break
case"SetOCGState":const w=u.get("State"),x=u.get("PreserveRB")
if(!Array.isArray(w)||0===w.length)break
const _=[]
for(const t of w)if(t instanceof s.Name)switch(t.name){case"ON":case"OFF":case"Toggle":_.push(t.name)}else t instanceof s.Ref&&_.push(t.toString())
if(_.length!==w.length)break
t.setOCGState={state:_,preserveRB:"boolean"!=typeof x||x}
break
case"JavaScript":const S=u.get("JS")
let k
S instanceof o.BaseStream?k=S.getString():"string"==typeof S&&(k=S)
const A=k&&(0,i.recoverJsURL)((0,n.stringToPDFString)(k))
if(A){l=A.url,t.newWindow=A.newWindow
break}default:if("JavaScript"===r||"SubmitForm"===r)break;(0,n.warn)(`parseDestDictionary - unsupported action: "${r}".`)}}else e.has("Dest")&&(c=e.get("Dest"))
if("string"==typeof l){const e=(0,n.createValidAbsoluteUrl)(l,r,{addDefaultProtocol:!0,tryConvertEncoding:!0})
e&&(t.url=e.href),t.unsafeUrl=l}c&&(c instanceof s.Name&&(c=c.name),"string"==typeof c?t.dest=(0,n.stringToPDFString)(c):Array.isArray(c)&&(t.dest=c))}}t.Catalog=m},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0
var i=r(4),n=r(2)
class s{constructor(e,t,r){this.constructor===s&&(0,n.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=r}getAll(){const e=new Map
if(!this.root)return e
const t=this.xref,r=new i.RefSet
r.put(this.root)
const s=[this.root]
for(;s.length>0;){const a=t.fetchIfRef(s.shift())
if(!(a instanceof i.Dict))continue
if(a.has("Kids")){const e=a.get("Kids")
if(!Array.isArray(e))continue
for(const t of e){if(r.has(t))throw new n.FormatError(`Duplicate entry in "${this._type}" tree.`)
s.push(t),r.put(t)}continue}const o=a.get(this._type)
if(Array.isArray(o))for(let r=0,i=o.length;r<i;r+=2)e.set(t.fetchIfRef(o[r]),t.fetchIfRef(o[r+1]))}return e}get(e){if(!this.root)return null
const t=this.xref
let r=t.fetchIfRef(this.root),i=0
for(;r.has("Kids");){if(++i>10)return(0,n.warn)(`Search depth limit reached for "${this._type}" tree.`),null
const s=r.get("Kids")
if(!Array.isArray(s))return null
let a=0,o=s.length-1
for(;a<=o;){const i=a+o>>1,n=t.fetchIfRef(s[i]),l=n.get("Limits")
if(e<t.fetchIfRef(l[0]))o=i-1
else{if(!(e>t.fetchIfRef(l[1]))){r=n
break}a=i+1}}if(a>o)return null}const s=r.get(this._type)
if(Array.isArray(s)){let r=0,i=s.length-2
for(;r<=i;){const n=r+i>>1,a=n+(1&n),o=t.fetchIfRef(s[a])
if(e<o)i=a-2
else{if(!(e>o))return t.fetchIfRef(s[a+1])
r=a+2}}}return null}}t.NameTree=class extends s{constructor(e,t){super(e,t,"Names")}}
t.NumberTree=class extends s{constructor(e,t){super(e,t,"Nums")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,i.clearPatternCaches)(),(0,n.clearPrimitiveCaches)(),(0,s.clearUnicodeCaches)()}
var i=r(50),n=r(4),s=r(40)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0
var i=r(2),n=r(5),s=r(4)
function a(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof s.Dict&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,i.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,i.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,i.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const e=a(this.root)||"unnamed"
this._filename=(0,i.stringToPDFString)(e).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null
!this.contentRef&&this.root&&(this.contentRef=a(this.root.get("EF")))
let e=null
if(this.contentRef){const t=this.xref.fetchIfRef(this.contentRef)
t instanceof n.BaseStream?e=t.getBytes():(0,i.warn)("Embedded file specification points to non-existing/invalid content")}else(0,i.warn)("Embedded file specification does not have a content")
return e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0
var i=r(71)
t.MetadataParser=class{constructor(e){e=this._repair(e)
const t=new i.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e)
this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(e,t){const r=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,i){return String.fromCharCode(64*t+8*r+1*i)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&"
case"apos":return"'"
case"gt":return">"
case"lt":return"<"
case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)})),i=[">"]
for(let n=0,s=r.length;n<s;n+=2){const e=256*r.charCodeAt(n)+r.charCodeAt(n+1)
e>=32&&e<127&&60!==e&&62!==e&&38!==e?i.push(String.fromCharCode(e)):i.push("&#x"+(65536+e).toString(16).substring(1)+";")}return i.join("")}))}_getSequence(e){const t=e.nodeName
return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return
const[t]=e.childNodes,r=this._getSequence(t)||[]
this._metadataMap.set(e.nodeName,r.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement
if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling
if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const r of t.childNodes)if("rdf:description"===r.nodeName)for(const e of r.childNodes){const t=e.nodeName
switch(t){case"#text":continue
case"dc:creator":case"dc:subject":this._parseArray(e)
continue}this._metadataMap.set(t,e.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0
var i=r(3)
const n={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10}
function s(e,t){const r=e[t]
return" "===r||"\n"===r||"\r"===r||"\t"===r}t.XMLParserErrorCode=n
class a{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16))
if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10))
switch(t){case"lt":return"<"
case"gt":return">"
case"amp":return"&"
case"quot":return'"'
case"apos":return"'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const r=[]
let i=t
function n(){for(;i<e.length&&s(e,i);)++i}for(;i<e.length&&!s(e,i)&&">"!==e[i]&&"/"!==e[i];)++i
const a=e.substring(t,i)
for(n();i<e.length&&">"!==e[i]&&"/"!==e[i]&&"?"!==e[i];){n()
let t="",a=""
for(;i<e.length&&!s(e,i)&&"="!==e[i];)t+=e[i],++i
if(n(),"="!==e[i])return null;++i,n()
const o=e[i]
if('"'!==o&&"'"!==o)return null
const l=e.indexOf(o,++i)
if(l<0)return null
a=e.substring(i,l),r.push({name:t,value:this._resolveEntities(a)}),i=l+1,n()}return{name:a,attributes:r,parsed:i-t}}_parseProcessingInstruction(e,t){let r=t
for(;r<e.length&&!s(e,r)&&">"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r
const i=e.substring(t,r);(function(){for(;r<e.length&&s(e,r);)++r})()
const n=r
for(;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r
return{name:i,value:e.substring(n,r),parsed:r-t}}parseXml(e){let t=0
for(;t<e.length;){let r=t
if("<"===e[t]){++r
let t
switch(e[r]){case"/":if(++r,t=e.indexOf(">",r),t<0)return void this.onError(n.UnterminatedElement)
this.onEndElement(e.substring(r,t)),r=t+1
break
case"?":++r
const i=this._parseProcessingInstruction(e,r)
if("?>"!==e.substring(r+i.parsed,r+i.parsed+2))return void this.onError(n.UnterminatedXmlDeclaration)
this.onPi(i.name,i.value),r+=i.parsed+2
break
case"!":if("--"===e.substring(r+1,r+3)){if(t=e.indexOf("--\x3e",r+3),t<0)return void this.onError(n.UnterminatedComment)
this.onComment(e.substring(r+3,t)),r=t+3}else if("[CDATA["===e.substring(r+1,r+8)){if(t=e.indexOf("]]>",r+8),t<0)return void this.onError(n.UnterminatedCdat)
this.onCdata(e.substring(r+8,t)),r=t+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(n.MalformedElement)
{const i=e.indexOf("[",r+8)
let s=!1
if(t=e.indexOf(">",r+8),t<0)return void this.onError(n.UnterminatedDoctypeDeclaration)
if(i>0&&t>i){if(t=e.indexOf("]>",r+8),t<0)return void this.onError(n.UnterminatedDoctypeDeclaration)
s=!0}const a=e.substring(r+8,t+(s?1:0))
this.onDoctype(a),r=t+(s?2:1)}}break
default:const s=this._parseContent(e,r)
if(null===s)return void this.onError(n.MalformedElement)
let a=!1
if("/>"===e.substring(r+s.parsed,r+s.parsed+2))a=!0
else if(">"!==e.substring(r+s.parsed,r+s.parsed+1))return void this.onError(n.UnterminatedElement)
this.onBeginElement(s.name,s.attributes,a),r+=s.parsed+(a?2:1)}}else{for(;r<e.length&&"<"!==e[r];)r++
const i=e.substring(t,r)
this.onText(this._resolveEntities(i))}t=r}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,r){}onEndElement(e){}onError(e){}}t.XMLParserBase=a
class o{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){const e=this.parentNode.childNodes
if(!e)return
const t=e.indexOf(this)
return-1!==t?e[t+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this
const r=e[t]
if(r.name.startsWith("#")&&t<e.length-1)return this.searchNode(e,t+1)
const i=[]
let n=this
for(;;){if(r.name===n.nodeName){if(0!==r.pos){if(0===i.length)return null
{const[s]=i.pop()
let a=0
for(const i of s.childNodes)if(r.name===i.nodeName){if(a===r.pos)return i.searchNode(e,t+1)
a++}return n.searchNode(e,t+1)}}{const r=n.searchNode(e,t+1)
if(null!==r)return r}}if(n.childNodes?.length>0)i.push([n,0]),n=n.childNodes[0]
else{if(0===i.length)return null
for(;0!==i.length;){const[e,t]=i.pop(),r=t+1
if(r<e.childNodes.length){i.push([e,r]),n=e.childNodes[r]
break}}if(0===i.length)return null}}}dump(e){if("#text"!==this.nodeName){if(e.push(`<${this.nodeName}`),this.attributes)for(const t of this.attributes)e.push(` ${t.name}="${(0,i.encodeToXmlString)(t.value)}"`)
if(this.hasChildNodes()){e.push(">")
for(const t of this.childNodes)t.dump(e)
e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${(0,i.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):e.push("/>")}else e.push((0,i.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=o
t.SimpleXMLParser=class extends a{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=n.NoError,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=n.NoError,this.parseXml(e),this._errorCode!==n.NoError)return
const[t]=this._currentFragment
return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,r=e.length;t<r;t++)if(!s(e,t))return!1
return!0}(e))return
const t=new o("#text",e)
this._currentFragment.push(t)}onCdata(e){const t=new o("#text",e)
this._currentFragment.push(t)}onBeginElement(e,t,r){this._lowerCaseName&&(e=e.toLowerCase())
const i=new o(e)
i.childNodes=[],this._hasAttributes&&(i.attributes=t),this._currentFragment.push(i),r||(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[]
const t=this._currentFragment.at(-1)
if(!t)return null
for(const r of t.childNodes)r.parentNode=t
return t}onError(e){this._errorCode=e}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0
var i=r(2),n=r(4),s=r(67),a=r(73)
const o=1,l=2,c=3,u=4,d=5
class h{constructor(e,t){this.dict=e,this.ref=t instanceof n.Ref?t:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}#en(e,t,r){if(!(e instanceof n.Ref)||t<0)return
this.structParentIds||=new n.RefSetCache
let i=this.structParentIds.get(e)
i||(i=[],this.structParentIds.put(e,i)),i.push([t,r])}addAnnotationIdToPage(e,t){this.#en(e,t,u)}readRoleMap(){const e=this.dict.get("RoleMap")
e instanceof n.Dict&&e.forEach(((e,t)=>{t instanceof n.Name&&this.roleMap.set(e,t.name)}))}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:r}){if(!(e instanceof n.Ref))return(0,i.warn)("Cannot save the struct tree: no catalog reference."),!1
let s=0,a=!0
for(const[o,l]of r){const{ref:e}=await t.getPage(o)
if(!(e instanceof n.Ref)){(0,i.warn)(`Cannot save the struct tree: page ${o} has no ref.`),a=!0
break}for(const t of l)t.accessibilityData?.type&&(t.parentTreeId=s++,a=!1)}if(a){for(const e of r.values())for(const t of e)delete t.parentTreeId
return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:r,pdfManager:i,newRefs:s}){const o=i.catalog.cloneDict(),l=t.getNewTemporaryRef()
o.set("StructTreeRoot",l)
const c=[]
await(0,a.writeObject)(r,o,c,t),s.push({ref:r,data:c.join("")})
const u=new n.Dict(t)
u.set("Type",n.Name.get("StructTreeRoot"))
const d=t.getNewTemporaryRef()
u.set("ParentTree",d)
const h=[]
u.set("K",h)
const p=new n.Dict(t),f=[]
p.set("Nums",f)
const m=await this.#tn({newAnnotationsByPage:e,structTreeRootRef:l,kids:h,nums:f,xref:t,pdfManager:i,newRefs:s,buffer:c})
u.set("ParentTreeNextKey",m),c.length=0,await(0,a.writeObject)(d,p,c,t),s.push({ref:d,data:c.join("")}),c.length=0,await(0,a.writeObject)(l,u,c,t),s.push({ref:l,data:c.join("")})}async canUpdateStructTree({pdfManager:e,newAnnotationsByPage:t}){if(!this.ref)return(0,i.warn)("Cannot update the struct tree: no root reference."),!1
let r=this.dict.get("ParentTreeNextKey")
if(!Number.isInteger(r)||r<0)return(0,i.warn)("Cannot update the struct tree: invalid next key."),!1
const s=this.dict.get("ParentTree")
if(!(s instanceof n.Dict))return(0,i.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1
const a=s.get("Nums")
if(!Array.isArray(a))return(0,i.warn)("Cannot update the struct tree: nums isn't an array."),!1
const{numPages:o}=e.catalog
for(const c of t.keys()){const{pageDict:t,ref:r}=await e.getPage(c)
if(!(r instanceof n.Ref))return(0,i.warn)(`Cannot save the struct tree: page ${c} has no ref.`),!1
const s=t.get("StructParents")
if(!Number.isInteger(s)||s<0||s>=o)return(0,i.warn)(`Cannot save the struct tree: page ${c} has no id.`),!1}let l=!0
for(const[i,n]of t){const{pageDict:t}=await e.getPage(i)
h.#rn({elements:n,xref:this.dict.xref,pageDict:t,parentTree:s})
for(const e of n)e.accessibilityData?.type&&(e.parentTreeId=r++,l=!1)}if(l){for(const e of t.values())for(const t of e)delete t.parentTreeId,delete t.structTreeParent
return!1}return!0}async updateStructureTree({newAnnotationsByPage:e,pdfManager:t,newRefs:r}){const i=this.dict.xref,s=this.dict.clone(),o=this.ref
let l,c=s.getRaw("ParentTree")
c instanceof n.Ref?l=i.fetch(c):(l=c,c=i.getNewTemporaryRef(),s.set("ParentTree",c)),l=l.clone()
let u=l.getRaw("Nums"),d=null
u instanceof n.Ref&&(d=u,u=i.fetch(d)),u=u.slice(),d||l.set("Nums",u)
let p=s.getRaw("K"),f=null
p instanceof n.Ref?(f=p,p=i.fetch(f)):(f=i.getNewTemporaryRef(),s.set("K",f)),p=Array.isArray(p)?p.slice():[p]
const m=[],g=await h.#tn({newAnnotationsByPage:e,structTreeRootRef:o,kids:p,nums:u,xref:i,pdfManager:t,newRefs:r,buffer:m})
s.set("ParentTreeNextKey",g),m.length=0,await(0,a.writeObject)(f,p,m,i),r.push({ref:f,data:m.join("")}),d&&(m.length=0,await(0,a.writeObject)(d,u,m,i),r.push({ref:d,data:m.join("")})),m.length=0,await(0,a.writeObject)(c,l,m,i),r.push({ref:c,data:m.join("")}),m.length=0,await(0,a.writeObject)(o,s,m,i),r.push({ref:o,data:m.join("")})}static async#tn({newAnnotationsByPage:e,structTreeRootRef:t,kids:r,nums:i,xref:s,pdfManager:o,newRefs:l,buffer:c}){const u=n.Name.get("OBJR")
let d=-1/0
for(const[h,p]of e){const{ref:e}=await o.getPage(h)
for(const{accessibilityData:{type:o,title:h,lang:f,alt:m,expanded:g,actualText:b},ref:y,parentTreeId:v,structTreeParent:w}of p){d=Math.max(d,v)
const p=s.getNewTemporaryRef(),x=new n.Dict(s)
x.set("S",n.Name.get(o)),h&&x.set("T",h),f&&x.set("Lang",f),m&&x.set("Alt",m),g&&x.set("E",g),b&&x.set("ActualText",b),w?await this.#in({structTreeParent:w,tagDict:x,newTagRef:p,fallbackRef:t,xref:s,newRefs:l,buffer:c}):x.set("P",t)
const _=new n.Dict(s)
x.set("K",_),_.set("Type",u),_.set("Pg",e),_.set("Obj",y),c.length=0,await(0,a.writeObject)(p,x,c,s),l.push({ref:p,data:c.join("")}),i.push(v,p),r.push(p)}}return d+1}static#rn({elements:e,xref:t,pageDict:r,parentTree:i}){const a=new Map
for(const n of e)if(n.structTreeParentId){const e=parseInt(n.structTreeParentId.split("_mc")[1],10)
a.set(e,n)}const o=r.get("StructParents"),l=new s.NumberTree(i,t).get(o)
if(!Array.isArray(l))return
const c=(e,r,i)=>{const s=a.get(e)
if(s){const e=r.getRaw("P"),a=t.fetchIfRef(e)
return e instanceof n.Ref&&a instanceof n.Dict&&(s.structTreeParent={ref:i,dict:r}),!0}return!1}
for(const s of l){if(!(s instanceof n.Ref))continue
const e=t.fetch(s),r=e.get("K")
if(Number.isInteger(r))c(r,e,s)
else if(Array.isArray(r))for(let i of r)if(i=t.fetchIfRef(i),Number.isInteger(i)&&c(i,e,s))break}}static async#in({structTreeParent:{ref:e,dict:t},tagDict:r,newTagRef:s,fallbackRef:o,xref:l,newRefs:c,buffer:u}){const d=t.getRaw("P")
let h=l.fetchIfRef(d)
r.set("P",d)
let p,f=!1,m=h.getRaw("K")
if(m instanceof n.Ref?p=l.fetch(m):(p=m,m=l.getNewTemporaryRef(),h=h.clone(),h.set("K",m),f=!0),Array.isArray(p)){const t=p.indexOf(e)
if(!(t>=0))return(0,i.warn)("Cannot update the struct tree: parent kid not found."),void r.set("P",o)
p=p.slice(),p.splice(t+1,0,s)}else p instanceof n.Dict&&(p=[m,s],m=l.getNewTemporaryRef(),h.set("K",m),f=!0)
u.length=0,await(0,a.writeObject)(m,p,u,l),c.push({ref:m,data:u.join("")}),f&&(u.length=0,await(0,a.writeObject)(d,h,u,l),c.push({ref:d,data:u.join("")}))}}t.StructTreeRoot=h
class p{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof n.Name?e.name:"",{root:r}=this.tree
return r.roleMap.has(t)?r.roleMap.get(t):t}parseKids(){let e=null
const t=this.dict.getRaw("Pg")
t instanceof n.Ref&&(e=t.toString())
const r=this.dict.get("K")
if(Array.isArray(r))for(const i of r){const t=this.parseKid(e,i)
t&&this.kids.push(t)}else{const t=this.parseKid(e,r)
t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new f({type:o,mcid:t,pageObjId:e})
let r=null
if(t instanceof n.Ref?r=this.dict.xref.fetch(t):t instanceof n.Dict&&(r=t),!r)return null
const i=r.getRaw("Pg")
i instanceof n.Ref&&(e=i.toString())
const s=r.get("Type")instanceof n.Name?r.get("Type").name:null
if("MCR"===s){if(this.tree.pageDict.objId!==e)return null
const t=r.getRaw("Stm")
return new f({type:l,refObjId:t instanceof n.Ref?t.toString():null,pageObjId:e,mcid:r.get("MCID")})}if("OBJR"===s){if(this.tree.pageDict.objId!==e)return null
const t=r.getRaw("Obj")
return new f({type:c,refObjId:t instanceof n.Ref?t.toString():null,pageObjId:e})}return new f({type:d,dict:r})}}class f{constructor({type:e,dict:t=null,mcid:r=null,pageObjId:i=null,refObjId:n=null}){this.type=e,this.dict=t,this.mcid=r,this.pageObjId=i,this.refObjId=n,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(e){if(!this.root||!this.rootDict)return
const t=this.rootDict.get("ParentTree")
if(!t)return
const r=this.pageDict.get("StructParents"),i=e instanceof n.Ref&&this.root.structParentIds?.get(e)
if(!Number.isInteger(r)&&!i)return
const a=new Map,o=new s.NumberTree(t,this.rootDict.xref)
if(Number.isInteger(r)){const e=o.get(r)
if(Array.isArray(e))for(const t of e)t instanceof n.Ref&&this.addNode(this.rootDict.xref.fetch(t),a)}if(i)for(const[n,s]of i){const e=o.get(n)
if(e){const t=this.addNode(this.rootDict.xref.fetchIfRef(e),a)
1===t?.kids?.length&&t.kids[0].type===c&&(t.kids[0].type=s)}}}addNode(e,t,r=0){if(r>40)return(0,i.warn)("StructTree MAX_DEPTH reached."),null
if(t.has(e))return t.get(e)
const s=new p(this,e)
t.set(e,s)
const a=e.get("P")
if(!a||(0,n.isName)(a.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,s)||t.delete(e),s
const o=this.addNode(a,t,r+1)
if(!o)return s
let l=!1
for(const i of o.kids)i.type===d&&i.dict===e&&(i.parentNode=s,l=!0)
return l||t.delete(e),s}addTopLevelNode(e,t){const r=this.rootDict.get("K")
if(!r)return!1
if(r instanceof n.Dict)return r.objId===e.objId&&(this.nodes[0]=t,!0)
if(!Array.isArray(r))return!0
let i=!1
for(let n=0;n<r.length;n++){const s=r[n]
s?.toString()===e.objId&&(this.nodes[n]=t,i=!0)}return i}get serializable(){function e(t,r,n=0){if(n>40)return void(0,i.warn)("StructTree too deep to be fully serialized.")
const s=Object.create(null)
s.role=t.role,s.children=[],r.children.push(s)
const a=t.dict.get("Alt")
"string"==typeof a&&(s.alt=(0,i.stringToPDFString)(a))
const h=t.dict.get("Lang")
"string"==typeof h&&(s.lang=(0,i.stringToPDFString)(h))
for(const p of t.kids){const t=p.type===d?p.parentNode:null
t?e(t,s,n+1):p.type===o||p.type===l?s.children.push({type:"content",id:`p${p.pageObjId}_mc${p.mcid}`}):p.type===c?s.children.push({type:"object",id:p.refObjId}):p.type===u&&s.children.push({type:"annotation",id:`${i.AnnotationPrefix}${p.refObjId}`})}}const t=Object.create(null)
t.children=[],t.role="Root"
for(const r of this.nodes)r&&e(r,t)
return t}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=async function({originalData:e,xrefInfo:t,newRefs:r,xref:o=null,hasXfa:d=!1,xfaDatasetsRef:h=null,hasXfaDatasetsEntry:p=!1,needAppearances:g,acroFormRef:b=null,acroForm:y=null,xfaData:v=null}){await async function({xref:e,acroForm:t,acroFormRef:r,hasXfa:n,hasXfaDatasetsEntry:s,xfaDatasetsRef:a,needAppearances:o,newRefs:l}){!n||s||a||(0,i.warn)("XFA - Cannot save it")
if(!o&&(!n||!a||s))return
const u=t.clone()
if(n&&!s){const e=t.get("XFA").slice()
e.splice(2,0,"datasets"),e.splice(3,0,a),u.set("XFA",e)}o&&u.set("NeedAppearances",!0)
const d=[]
await c(r,u,d,e),l.push({ref:r,data:d.join("")})}({xref:o,acroForm:y,acroFormRef:b,hasXfa:d,hasXfaDatasetsEntry:p,xfaDatasetsRef:h,needAppearances:g,newRefs:r}),d&&function({xfaData:e,xfaDatasetsRef:t,newRefs:r,xref:n}){if(null===e){e=function(e,t){const r=new a.SimpleXMLParser({hasAttributes:!0}).parseFromString(e)
for(const{xfa:o}of t){if(!o)continue
const{path:e,value:t}=o
if(!e)continue
const n=(0,s.parseXFAPath)(e)
let l=r.documentElement.searchNode(n,0)
!l&&n.length>1&&(l=r.documentElement.searchNode([n.at(-1)],0)),l?l.childNodes=Array.isArray(t)?t.map((e=>new a.SimpleDOMNode("value",e))):[new a.SimpleDOMNode("#text",t)]:(0,i.warn)(`Node not found for path: ${e}`)}const n=[]
return r.documentElement.dump(n),n.join("")}(n.fetchIfRef(t).getString(),r)}const o=n.encrypt
if(o){e=o.createCipherTransform(t.num,t.gen).encryptString(e)}const l=`${t.num} ${t.gen} obj\n<< /Type /EmbeddedFile /Length ${e.length}>>\nstream\n`+e+"\nendstream\nendobj\n"
r.push({ref:t,data:l})}({xfaData:v,xfaDatasetsRef:h,newRefs:r,xref:o})
const w=new n.Dict(null),x=t.newRef
let _,S
const k=e.at(-1)
10===k||13===k?(_=[],S=e.length):(_=["\n"],S=e.length+1)
w.set("Size",x.num+1),w.set("Prev",t.startXRef),w.set("Type",n.Name.get("XRef")),null!==t.rootRef&&w.set("Root",t.rootRef)
null!==t.infoRef&&w.set("Info",t.infoRef)
null!==t.encryptRef&&w.set("Encrypt",t.encryptRef)
r.push({ref:x,data:""}),r=r.sort(((e,t)=>e.ref.num-t.ref.num))
const A=[[0,1,65535]],C=[0,1]
let P=0
for(const{ref:i,data:n}of r)P=Math.max(P,S),A.push([1,S,Math.min(i.gen,65535)]),S+=n.length,C.push(i.num,1),_.push(n)
if(w.set("Index",C),Array.isArray(t.fileIds)&&t.fileIds.length>0){const e=function(e,t){const r=Math.floor(Date.now()/1e3),n=t.filename||"",s=[r.toString(),n,e.toString()]
let a=s.reduce(((e,t)=>e+t.length),0)
for(const i of Object.values(t.info))s.push(i),a+=i.length
const o=new Uint8Array(a)
let c=0
for(const i of s)m(i,c,o),c+=i.length
return(0,i.bytesToString)((0,l.calculateMD5)(o))}(S,t)
w.set("ID",[t.fileIds[0],e])}const O=[1,Math.ceil(Math.log2(P)/8),2],E=(O[0]+O[1]+O[2])*A.length
w.set("W",O),w.set("Length",E),_.push(`${x.num} ${x.gen} obj\n`),await u(w,_,null),_.push(" stream\n")
const T=_.reduce(((e,t)=>e+t.length),0),M=`\nendstream\nendobj\nstartxref\n${S}\n%%EOF\n`,I=new Uint8Array(e.length+T+E+M.length)
I.set(e)
let F=e.length
for(const i of _)m(i,F,I),F+=i.length
for(const[i,n,s]of A)F=f(i,O[0],F,I),F=f(n,O[1],F,I),F=f(s,O[2],F,I)
return m(M,F,I),I},t.writeDict=u,t.writeObject=c
var i=r(2),n=r(4),s=r(3),a=r(71),o=r(5),l=r(74)
async function c(e,t,r,{encrypt:i=null}){const s=i?.createCipherTransform(e.num,e.gen)
r.push(`${e.num} ${e.gen} obj\n`),t instanceof n.Dict?await u(t,r,s):t instanceof o.BaseStream?await d(t,r,s):Array.isArray(t)&&await h(t,r,s),r.push("\nendobj\n")}async function u(e,t,r){t.push("<<")
for(const i of e.getKeys())t.push(` /${(0,s.escapePDFName)(i)} `),await p(e.getRaw(i),t,r)
t.push(">>")}async function d(e,t,r){let s=e.getString()
const{dict:a}=e,[o,l]=await Promise.all([a.getAsync("Filter"),a.getAsync("DecodeParms")]),c=Array.isArray(o)?await a.xref.fetchIfRefAsync(o[0]):o,d=(0,n.isName)(c,"FlateDecode")
if("undefined"!=typeof CompressionStream&&(s.length>=256||d))try{const e=(0,i.stringToBytes)(s),t=new CompressionStream("deflate"),r=t.writable.getWriter()
r.write(e),r.close()
const c=await new Response(t.readable).arrayBuffer()
let u,h
s=(0,i.bytesToString)(new Uint8Array(c)),o?d||(u=Array.isArray(o)?[n.Name.get("FlateDecode"),...o]:[n.Name.get("FlateDecode"),o],l&&(h=Array.isArray(l)?[null,...l]:[null,l])):u=n.Name.get("FlateDecode"),u&&a.set("Filter",u),h&&a.set("DecodeParms",h)}catch(h){(0,i.info)(`writeStream - cannot compress data: "${h}".`)}r&&(s=r.encryptString(s)),a.set("Length",s.length),await u(a,t,r),t.push(" stream\n",s,"\nendstream")}async function h(e,t,r){t.push("[")
let i=!0
for(const n of e)i?i=!1:t.push(" "),await p(n,t,r)
t.push("]")}async function p(e,t,r){e instanceof n.Name?t.push(`/${(0,s.escapePDFName)(e.name)}`):e instanceof n.Ref?t.push(`${e.num} ${e.gen} R`):Array.isArray(e)?await h(e,t,r):"string"==typeof e?(r&&(e=r.encryptString(e)),t.push(`(${(0,s.escapeString)(e)})`)):"number"==typeof e?t.push((0,s.numberToString)(e)):"boolean"==typeof e?t.push(e.toString()):e instanceof n.Dict?await u(e,t,r):e instanceof o.BaseStream?await d(e,t,r):null===e?t.push("null"):(0,i.warn)(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function f(e,t,r,i){for(let n=t+r-1;n>r-1;n--)i[n]=255&e,e>>=8
return r+t}function m(e,t,r){for(let i=0,n=e.length;i<n;i++)r[t+i]=255&e.charCodeAt(i)}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=d,t.calculateSHA512=void 0
var i=r(2),n=r(4),s=r(75)
class a{constructor(e){this.a=0,this.b=0
const t=new Uint8Array(256),r=e.length
for(let i=0;i<256;++i)t[i]=i
for(let i=0,n=0;i<256;++i){const s=t[i]
n=n+s+e[i%r]&255,t[i]=t[n],t[n]=s}this.s=t}encryptBlock(e){let t=this.a,r=this.b
const i=this.s,n=e.length,s=new Uint8Array(n)
for(let a=0;a<n;++a){t=t+1&255
const n=i[t]
r=r+n&255
const o=i[r]
i[t]=o,i[r]=n,s[a]=e[a]^i[n+o&255]}return this.a=t,this.b=r,s}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}t.ARCFourCipher=a
const o=function(){const e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551])
return function(r,i,n){let s=1732584193,a=-271733879,o=-1732584194,l=271733878
const c=n+72&-64,u=new Uint8Array(c)
let d,h
for(d=0;d<n;++d)u[d]=r[i++]
u[d++]=128
const p=c-8
for(;d<p;)u[d++]=0
u[d++]=n<<3&255,u[d++]=n>>5&255,u[d++]=n>>13&255,u[d++]=n>>21&255,u[d++]=n>>>29&255,u[d++]=0,u[d++]=0,u[d++]=0
const f=new Int32Array(16)
for(d=0;d<c;){for(h=0;h<16;++h,d+=4)f[h]=u[d]|u[d+1]<<8|u[d+2]<<16|u[d+3]<<24
let r,i,n=s,c=a,p=o,m=l
for(h=0;h<64;++h){h<16?(r=c&p|~c&m,i=h):h<32?(r=m&c|~m&p,i=5*h+1&15):h<48?(r=c^p^m,i=3*h+5&15):(r=p^(c|~m),i=7*h&15)
const s=m,a=n+r+t[h]+f[i]|0,o=e[h]
m=p,p=c,c=c+(a<<o|a>>>32-o)|0,n=s}s=s+n|0,a=a+c|0,o=o+p|0,l=l+m|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&a,a>>8&255,a>>16&255,a>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255])}}()
t.calculateMD5=o
class l{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,r
32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0)
let r=(this.high>>>0)+(e.high>>>0)
t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function i(t){return e(t,2)^e(t,13)^e(t,22)}function n(t){return e(t,6)^e(t,11)^e(t,25)}function s(t){return e(t,7)^e(t,18)^t>>>3}const a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]
return function(o,l,c){let u=1779033703,d=3144134277,h=1013904242,p=2773480762,f=1359893119,m=2600822924,g=528734635,b=1541459225
const y=64*Math.ceil((c+9)/64),v=new Uint8Array(y)
let w,x
for(w=0;w<c;++w)v[w]=o[l++]
v[w++]=128
const _=y-8
for(;w<_;)v[w++]=0
v[w++]=0,v[w++]=0,v[w++]=0,v[w++]=c>>>29&255,v[w++]=c>>21&255,v[w++]=c>>13&255,v[w++]=c>>5&255,v[w++]=c<<3&255
const S=new Uint32Array(64)
for(w=0;w<y;){for(x=0;x<16;++x)S[x]=v[w]<<24|v[w+1]<<16|v[w+2]<<8|v[w+3],w+=4
for(x=16;x<64;++x)S[x]=0|(e(k=S[x-2],17)^e(k,19)^k>>>10)+S[x-7]+s(S[x-15])+S[x-16]
let o,l,c=u,y=d,_=h,A=p,C=f,P=m,O=g,E=b
for(x=0;x<64;++x)o=E+n(C)+t(C,P,O)+a[x]+S[x],l=i(c)+r(c,y,_),E=O,O=P,P=C,C=A+o|0,A=_,_=y,y=c,c=o+l|0
u=u+c|0,d=d+y|0,h=h+_|0,p=p+A|0,f=f+C|0,m=m+P|0,g=g+O|0,b=b+E|0}var k
return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,m>>24&255,m>>16&255,m>>8&255,255&m,g>>24&255,g>>16&255,g>>8&255,255&g,b>>24&255,b>>16&255,b>>8&255,255&b])}}()
t.calculateSHA256=c
const u=function(){function e(e,t,r,i,n){e.assign(t),e.and(r),n.assign(t),n.not(),n.and(i),e.xor(n)}function t(e,t,r,i,n){e.assign(t),e.and(r),n.assign(t),n.and(i),e.xor(n),n.assign(r),n.and(i),e.xor(n)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function s(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}const a=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)]
return function(o,c,u,d=!1){let h,p,f,m,g,b,y,v
d?(h=new l(3418070365,3238371032),p=new l(1654270250,914150663),f=new l(2438529370,812702999),m=new l(355462360,4144912697),g=new l(1731405415,4290775857),b=new l(2394180231,1750603025),y=new l(3675008525,1694076839),v=new l(1203062813,3204075428)):(h=new l(1779033703,4089235720),p=new l(3144134277,2227873595),f=new l(1013904242,4271175723),m=new l(2773480762,1595750129),g=new l(1359893119,2917565137),b=new l(2600822924,725511199),y=new l(528734635,4215389547),v=new l(1541459225,327033209))
const w=128*Math.ceil((u+17)/128),x=new Uint8Array(w)
let _,S
for(_=0;_<u;++_)x[_]=o[c++]
x[_++]=128
const k=w-16
for(;_<k;)x[_++]=0
x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=0,x[_++]=u>>>29&255,x[_++]=u>>21&255,x[_++]=u>>13&255,x[_++]=u>>5&255,x[_++]=u<<3&255
const A=new Array(80)
for(_=0;_<80;_++)A[_]=new l(0,0)
let C=new l(0,0),P=new l(0,0),O=new l(0,0),E=new l(0,0),T=new l(0,0),M=new l(0,0),I=new l(0,0),F=new l(0,0)
const N=new l(0,0),R=new l(0,0),D=new l(0,0),j=new l(0,0)
let L,B
for(_=0;_<w;){for(S=0;S<16;++S)A[S].high=x[_]<<24|x[_+1]<<16|x[_+2]<<8|x[_+3],A[S].low=x[_+4]<<24|x[_+5]<<16|x[_+6]<<8|x[_+7],_+=8
for(S=16;S<80;++S)L=A[S],s(L,A[S-2],j),L.add(A[S-7]),n(D,A[S-15],j),L.add(D),L.add(A[S-16])
for(C.assign(h),P.assign(p),O.assign(f),E.assign(m),T.assign(g),M.assign(b),I.assign(y),F.assign(v),S=0;S<80;++S)N.assign(F),i(D,T,j),N.add(D),e(D,T,M,I,j),N.add(D),N.add(a[S]),N.add(A[S]),r(R,C,j),t(D,C,P,O,j),R.add(D),L=F,F=I,I=M,M=T,E.add(N),T=E,E=O,O=P,P=C,L.assign(N),L.add(R),C=L
h.add(C),p.add(P),f.add(O),m.add(E),g.add(T),b.add(M),y.add(I),v.add(F)}return d?(B=new Uint8Array(48),h.copyTo(B,0),p.copyTo(B,8),f.copyTo(B,16),m.copyTo(B,24),g.copyTo(B,32),b.copyTo(B,40)):(B=new Uint8Array(64),h.copyTo(B,0),p.copyTo(B,8),f.copyTo(B,16),m.copyTo(B,24),g.copyTo(B,32),b.copyTo(B,40),y.copyTo(B,48),v.copyTo(B,56)),B}}()
function d(e,t,r){return u(e,t,r,!0)}t.calculateSHA512=u
class h{decryptBlock(e){return e}encrypt(e){return e}}class p{constructor(){this.constructor===p&&(0,i.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256)
for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27
this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,i.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let r,i,n
const s=new Uint8Array(16)
s.set(e)
for(let a=0,o=this._keySize;a<16;++a,++o)s[a]^=t[o]
for(let a=this._cyclesOfRepetition-1;a>=1;--a){r=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=r,r=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=r,s[2]=i,r=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=r,s[7]=i,s[3]=n
for(let e=0;e<16;++e)s[e]=this._inv_s[s[e]]
for(let e=0,r=16*a;e<16;++e,++r)s[e]^=t[r]
for(let e=0;e<16;e+=4){const t=this._mix[s[e]],i=this._mix[s[e+1]],n=this._mix[s[e+2]],a=this._mix[s[e+3]]
r=t^i>>>8^i<<24^n>>>16^n<<16^a>>>24^a<<8,s[e]=r>>>24&255,s[e+1]=r>>16&255,s[e+2]=r>>8&255,s[e+3]=255&r}}r=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=r,r=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=r,s[2]=i,r=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=r,s[7]=i,s[3]=n
for(let a=0;a<16;++a)s[a]=this._inv_s[s[a]],s[a]^=t[a]
return s}_encrypt(e,t){const r=this._s
let i,n,s
const a=new Uint8Array(16)
a.set(e)
for(let o=0;o<16;++o)a[o]^=t[o]
for(let o=1;o<this._cyclesOfRepetition;o++){for(let e=0;e<16;++e)a[e]=r[a[e]]
s=a[1],a[1]=a[5],a[5]=a[9],a[9]=a[13],a[13]=s,s=a[2],n=a[6],a[2]=a[10],a[6]=a[14],a[10]=s,a[14]=n,s=a[3],n=a[7],i=a[11],a[3]=a[15],a[7]=s,a[11]=n,a[15]=i
for(let e=0;e<16;e+=4){const t=a[e+0],r=a[e+1],n=a[e+2],s=a[e+3]
i=t^r^n^s,a[e+0]^=i^this._mixCol[t^r],a[e+1]^=i^this._mixCol[r^n],a[e+2]^=i^this._mixCol[n^s],a[e+3]^=i^this._mixCol[s^t]}for(let e=0,r=16*o;e<16;++e,++r)a[e]^=t[r]}for(let o=0;o<16;++o)a[o]=r[a[o]]
s=a[1],a[1]=a[5],a[5]=a[9],a[9]=a[13],a[13]=s,s=a[2],n=a[6],a[2]=a[10],a[6]=a[14],a[10]=s,a[14]=n,s=a[3],n=a[7],i=a[11],a[3]=a[15],a[7]=s,a[11]=n,a[15]=i
for(let o=0,l=this._keySize;o<16;++o,++l)a[o]^=t[l]
return a}_decryptBlock2(e,t){const r=e.length
let i=this.buffer,n=this.bufferPosition
const s=[]
let a=this.iv
for(let c=0;c<r;++c){if(i[n]=e[c],++n,n<16)continue
const t=this._decrypt(i,this._key)
for(let e=0;e<16;++e)t[e]^=a[e]
a=i,s.push(t),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=a,0===s.length)return new Uint8Array(0)
let o=16*s.length
if(t){const e=s.at(-1)
let t=e[15]
if(t<=16){for(let r=15,i=16-t;r>=i;--r)if(e[r]!==t){t=0
break}o-=t,s[s.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(o)
for(let c=0,u=0,d=s.length;c<d;++c,u+=16)l.set(s[c],u)
return l}decryptBlock(e,t,r=null){const i=e.length,n=this.buffer
let s=this.bufferPosition
if(r)this.iv=r
else{for(let t=0;s<16&&t<i;++t,++s)n[s]=e[t]
if(s<16)return this.bufferLength=s,new Uint8Array(0)
this.iv=n,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const r=e.length
let i=this.buffer,n=this.bufferPosition
const s=[]
t||(t=new Uint8Array(16))
for(let l=0;l<r;++l){if(i[n]=e[l],++n,n<16)continue
for(let e=0;e<16;++e)i[e]^=t[e]
const r=this._encrypt(i,this._key)
t=r,s.push(r),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=t,0===s.length)return new Uint8Array(0)
const a=16*s.length,o=new Uint8Array(a)
for(let l=0,c=0,u=s.length;l<u;++l,c+=16)o.set(s[l],c)
return o}}class f extends p{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=this._rcon,i=new Uint8Array(176)
i.set(e)
for(let n=16,s=1;n<176;++s){let e=i[n-3],a=i[n-2],o=i[n-1],l=i[n-4]
e=t[e],a=t[a],o=t[o],l=t[l],e^=r[s]
for(let t=0;t<4;++t)i[n]=e^=i[n-16],n++,i[n]=a^=i[n-16],n++,i[n]=o^=i[n-16],n++,i[n]=l^=i[n-16],n++}return i}}t.AES128Cipher=f
class m extends p{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=new Uint8Array(240)
r.set(e)
let i,n,s,a,o=1
for(let l=32,c=1;l<240;++c){l%32==16?(i=t[i],n=t[n],s=t[s],a=t[a]):l%32==0&&(i=r[l-3],n=r[l-2],s=r[l-1],a=r[l-4],i=t[i],n=t[n],s=t[s],a=t[a],i^=o,(o<<=1)>=256&&(o=255&(27^o)))
for(let e=0;e<4;++e)r[l]=i^=r[l-32],l++,r[l]=n^=r[l-32],l++,r[l]=s^=r[l-32],l++,r[l]=a^=r[l-32],l++}return r}}t.AES256Cipher=m
class g{checkOwnerPassword(e,t,r,n){const s=new Uint8Array(e.length+56)
s.set(e,0),s.set(t,e.length),s.set(r,e.length+t.length)
const a=c(s,0,s.length)
return(0,i.isArrayEqual)(a,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8)
n.set(e,0),n.set(t,e.length)
const s=c(n,0,n.length)
return(0,i.isArrayEqual)(s,r)}getOwnerKey(e,t,r,i){const n=new Uint8Array(e.length+56)
n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length)
const s=c(n,0,n.length)
return new m(s).decryptBlock(i,!1,new Uint8Array(16))}getUserKey(e,t,r){const i=new Uint8Array(e.length+8)
i.set(e,0),i.set(t,e.length)
const n=c(i,0,i.length)
return new m(n).decryptBlock(r,!1,new Uint8Array(16))}}t.PDF17=g
class b{_hash(e,t,r){let i=c(t,0,t.length).subarray(0,32),n=[0],s=0
for(;s<64||n.at(-1)>s-32;){const t=e.length+i.length+r.length,a=new Uint8Array(t)
let o=0
a.set(e,o),o+=e.length,a.set(i,o),o+=i.length,a.set(r,o)
const l=new Uint8Array(64*t)
for(let e=0,r=0;e<64;e++,r+=t)l.set(a,r)
n=new f(i.subarray(0,16)).encrypt(l,i.subarray(16,32))
const h=n.slice(0,16).reduce(((e,t)=>e+t),0)%3
0===h?i=c(n,0,n.length):1===h?i=d(n,0,n.length):2===h&&(i=u(n,0,n.length)),s++}return i.subarray(0,32)}checkOwnerPassword(e,t,r,n){const s=new Uint8Array(e.length+56)
s.set(e,0),s.set(t,e.length),s.set(r,e.length+t.length)
const a=this._hash(e,s,r)
return(0,i.isArrayEqual)(a,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8)
n.set(e,0),n.set(t,e.length)
const s=this._hash(e,n,[])
return(0,i.isArrayEqual)(s,r)}getOwnerKey(e,t,r,i){const n=new Uint8Array(e.length+56)
n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length)
const s=this._hash(e,n,r)
return new m(s).decryptBlock(i,!1,new Uint8Array(16))}getUserKey(e,t,r){const i=new Uint8Array(e.length+8)
i.set(e,0),i.set(t,e.length)
const n=this._hash(e,i,[])
return new m(n).decryptBlock(r,!1,new Uint8Array(16))}}t.PDF20=b
class y{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const r=new this.StreamCipherConstructor
return new s.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor
let r=(0,i.stringToBytes)(e)
return r=t.decryptBlock(r,!0),(0,i.bytesToString)(r)}encryptString(e){const t=new this.StringCipherConstructor
if(t instanceof p){const r=16-e.length%16
e+=String.fromCharCode(r).repeat(r)
const n=new Uint8Array(16)
if("undefined"!=typeof crypto)crypto.getRandomValues(n)
else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random())
let s=(0,i.stringToBytes)(e)
s=t.encrypt(s,n)
const a=new Uint8Array(16+s.length)
return a.set(n),a.set(s,16),(0,i.bytesToString)(a)}let r=(0,i.stringToBytes)(e)
return r=t.encrypt(r),(0,i.bytesToString)(r)}}class v{static#nn=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122])
#sn(e,t,r,i,n,s,a,o,l,c,u,d){if(t){const e=Math.min(127,t.length)
t=t.subarray(0,e)}else t=[]
const h=6===e?new b:new g
return h.checkUserPassword(t,o,a)?h.getUserKey(t,l,u):t.length&&h.checkOwnerPassword(t,i,s,r)?h.getOwnerKey(t,n,s,c):null}#an(e,t,r,i,n,s,l,c){const u=40+r.length+e.length,d=new Uint8Array(u)
let h,p,f=0
if(t)for(p=Math.min(32,t.length);f<p;++f)d[f]=t[f]
for(h=0;f<32;)d[f++]=v.#nn[h++]
for(h=0,p=r.length;h<p;++h)d[f++]=r[h]
for(d[f++]=255&n,d[f++]=n>>8&255,d[f++]=n>>16&255,d[f++]=n>>>24&255,h=0,p=e.length;h<p;++h)d[f++]=e[h]
s>=4&&!c&&(d[f++]=255,d[f++]=255,d[f++]=255,d[f++]=255)
let m=o(d,0,f)
const g=l>>3
if(s>=3)for(h=0;h<50;++h)m=o(m,0,g)
const b=m.subarray(0,g)
let y,w
if(s>=3){for(f=0;f<32;++f)d[f]=v.#nn[f]
for(h=0,p=e.length;h<p;++h)d[f++]=e[h]
y=new a(b),w=y.encryptBlock(o(d,0,f)),p=b.length
const t=new Uint8Array(p)
for(h=1;h<=19;++h){for(let e=0;e<p;++e)t[e]=b[e]^h
y=new a(t),w=y.encryptBlock(w)}for(h=0,p=w.length;h<p;++h)if(i[h]!==w[h])return null}else for(y=new a(b),w=y.encryptBlock(v.#nn),h=0,p=w.length;h<p;++h)if(i[h]!==w[h])return null
return b}#on(e,t,r,i){const n=new Uint8Array(32)
let s=0
const l=Math.min(32,e.length)
for(;s<l;++s)n[s]=e[s]
let c=0
for(;s<32;)n[s++]=v.#nn[c++]
let u=o(n,0,s)
const d=i>>3
if(r>=3)for(c=0;c<50;++c)u=o(u,0,u.length)
let h,p
if(r>=3){p=t
const e=new Uint8Array(d)
for(c=19;c>=0;c--){for(let t=0;t<d;++t)e[t]=u[t]^c
h=new a(e),p=h.encryptBlock(p)}}else h=new a(u.subarray(0,d)),p=h.encryptBlock(t)
return p}#ln(e,t,r,i=!1){const n=new Uint8Array(r.length+9),s=r.length
let a
for(a=0;a<s;++a)n[a]=r[a]
n[a++]=255&e,n[a++]=e>>8&255,n[a++]=e>>16&255,n[a++]=255&t,n[a++]=t>>8&255,i&&(n[a++]=115,n[a++]=65,n[a++]=108,n[a++]=84)
return o(n,0,a).subarray(0,Math.min(r.length+5,16))}#cn(e,t,r,s,o){if(!(t instanceof n.Name))throw new i.FormatError("Invalid crypt filter name.")
const l=this,c=e.get(t.name),u=c?.get("CFM")
if(!u||"None"===u.name)return function(){return new h}
if("V2"===u.name)return function(){return new a(l.#ln(r,s,o,!1))}
if("AESV2"===u.name)return function(){return new f(l.#ln(r,s,o,!0))}
if("AESV3"===u.name)return function(){return new m(o)}
throw new i.FormatError("Unknown crypto method")}constructor(e,t,r){const s=e.get("Filter")
if(!(0,n.isName)(s,"Standard"))throw new i.FormatError("unknown encryption method")
this.filterName=s.name,this.dict=e
const a=e.get("V")
if(!Number.isInteger(a)||1!==a&&2!==a&&4!==a&&5!==a)throw new i.FormatError("unsupported encryption algorithm")
this.algorithm=a
let o=e.get("Length")
if(!o)if(a<=3)o=40
else{const t=e.get("CF"),r=e.get("StmF")
if(t instanceof n.Dict&&r instanceof n.Name){t.suppressEncryption=!0
const e=t.get(r.name)
o=e?.get("Length")||128,o<40&&(o<<=3)}}if(!Number.isInteger(o)||o<40||o%8!=0)throw new i.FormatError("invalid key length")
const l=(0,i.stringToBytes)(e.get("O")),c=(0,i.stringToBytes)(e.get("U")),u=l.subarray(0,32),d=c.subarray(0,32),h=e.get("P"),p=e.get("R"),f=(4===a||5===a)&&!1!==e.get("EncryptMetadata")
this.encryptMetadata=f
const m=(0,i.stringToBytes)(t)
let g,b
if(r){if(6===p)try{r=(0,i.utf8StringToString)(r)}catch{(0,i.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}g=(0,i.stringToBytes)(r)}if(5!==a)b=this.#an(m,g,u,d,h,p,o,f)
else{const t=l.subarray(32,40),r=l.subarray(40,48),n=c.subarray(0,48),s=c.subarray(32,40),a=c.subarray(40,48),o=(0,i.stringToBytes)(e.get("OE")),h=(0,i.stringToBytes)(e.get("UE")),f=(0,i.stringToBytes)(e.get("Perms"))
b=this.#sn(p,g,u,t,r,n,d,s,a,o,h,f)}if(!b&&!r)throw new i.PasswordException("No password given",i.PasswordResponses.NEED_PASSWORD)
if(!b&&r){const e=this.#on(g,u,p,o)
b=this.#an(m,e,u,d,h,p,o,f)}if(!b)throw new i.PasswordException("Incorrect Password",i.PasswordResponses.INCORRECT_PASSWORD)
if(this.encryptionKey=b,a>=4){const t=e.get("CF")
t instanceof n.Dict&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get("StmF")||n.Name.get("Identity"),this.strf=e.get("StrF")||n.Name.get("Identity"),this.eff=e.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new y(this.#cn(this.cf,this.strf,e,t,this.encryptionKey),this.#cn(this.cf,this.stmf,e,t,this.encryptionKey))
const r=this.#ln(e,t,this.encryptionKey,!1),i=function(){return new a(r)}
return new y(i,i)}}t.CipherTransformFactory=v},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0
var i=r(18)
class n extends i.DecodeStream{constructor(e,t,r){super(t),this.str=e,this.dict=e.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1}readBlock(){let e
if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),!e||0===e.length)return void(this.eof=!0)
this.nextChunk=this.str.getBytes(512)
const t=this.nextChunk?.length>0
e=(0,this.decrypt)(e,!t)
const r=this.bufferLength,i=r+e.length
this.ensureBuffer(i).set(e,r),this.bufferLength=i}}t.DecryptStream=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0
var i=r(4),n=r(5),s=r(3),a=r(2)
function o(e,t){if(e instanceof i.Dict)e=e.getRawValues()
else if(e instanceof n.BaseStream)e=e.dict.getRawValues()
else if(!Array.isArray(e))return
for(const s of e)((r=s)instanceof i.Ref||r instanceof i.Dict||r instanceof n.BaseStream||Array.isArray(r))&&t.push(s)
var r}t.ObjectLoader=class{constructor(e,t,r){this.dict=e,this.keys=t,this.xref=r,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return
const{keys:e,dict:t}=this
this.refSet=new i.RefSet
const r=[]
for(const i of e){const e=t.getRaw(i)
void 0!==e&&r.push(e)}return this._walk(r)}async _walk(e){const t=[],r=[]
for(;e.length;){let c=e.pop()
if(c instanceof i.Ref){if(this.refSet.has(c))continue
try{this.refSet.put(c),c=this.xref.fetch(c)}catch(l){if(!(l instanceof s.MissingDataException)){(0,a.warn)(`ObjectLoader._walk - requesting all data: "${l}".`),this.refSet=null
const{manager:e}=this.xref.stream
return e.requestAllChunks()}t.push(c),r.push({begin:l.begin,end:l.end})}}if(c instanceof n.BaseStream){const e=c.getBaseStreams()
if(e){let i=!1
for(const t of e)t.isDataLoaded||(i=!0,r.push({begin:t.start,end:t.end}))
i&&t.push(c)}}o(c,e)}if(r.length){await this.xref.stream.manager.requestRanges(r)
for(const e of t)e instanceof i.Ref&&this.refSet.remove(e)
return this._walk(t)}this.refSet=null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0
var i=r(78),n=r(79),s=r(89),a=r(85),o=r(84),l=r(2),c=r(90),u=r(100)
class d{constructor(e){try{this.root=(new c.XFAParser).parse(d._createDocument(e))
const t=new n.Binder(this.root)
this.form=t.bind(),this.dataHandler=new s.DataHandler(this.root,t.getData()),this.form[i.$globalData].template=this.form}catch(t){(0,l.warn)(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const e=this.form[i.$toPages]()
return new Promise(((t,r)=>{const i=()=>{try{const r=e.next()
r.done?t(r.value):setTimeout(i,0)}catch(n){r(n)}}
setTimeout(i,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map((e=>{const{width:t,height:r}=e.attributes.style
return[0,0,parseInt(t),parseInt(r)]}))}catch(e){(0,l.warn)(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[i.$globalData].images=e}setFonts(e){this.form[i.$globalData].fontFinder=new a.FontFinder(e)
const t=[]
for(let r of this.form[i.$globalData].usedTypefaces){r=(0,o.stripQuotes)(r)
this.form[i.$globalData].fontFinder.find(r)||t.push(r)}return t.length>0?t:null}appendFonts(e,t){this.form[i.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages()
const e=this.pages
return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!=typeof e)return null
try{let t=new c.XFAParser(u.XhtmlNamespace,!0).parse(e)
if(!["body","xhtml"].includes(t[i.$nodeName])){const e=u.XhtmlNamespace.body({})
e[i.$appendChild](t),t=e}const r=t[i.$toHTML]()
if(!r.success)return null
const{html:n}=r,{attributes:s}=n
return s&&(s.class&&(s.class=s.class.filter((e=>!e.startsWith("xfa")))),s.dir="auto"),{html:n,str:t[i.$text]()}}catch(t){(0,l.warn)(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}t.XFAFactory=d},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$lastAttribute=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0
const r=Symbol()
t.$acceptWhitespace=r
const i=Symbol()
t.$addHTML=i
const n=Symbol()
t.$appendChild=n
const s=Symbol()
t.$childrenToHTML=s
const a=Symbol()
t.$clean=a
const o=Symbol()
t.$cleanPage=o
const l=Symbol()
t.$cleanup=l
const c=Symbol()
t.$clone=c
const u=Symbol()
t.$consumed=u
const d=Symbol("content")
t.$content=d
const h=Symbol("data")
t.$data=h
const p=Symbol()
t.$dump=p
const f=Symbol("extra")
t.$extra=f
const m=Symbol()
t.$finalize=m
const g=Symbol()
t.$flushHTML=g
const b=Symbol()
t.$getAttributeIt=b
const y=Symbol()
t.$getAttributes=y
const v=Symbol()
t.$getAvailableSpace=v
const w=Symbol()
t.$getChildrenByClass=w
const x=Symbol()
t.$getChildrenByName=x
const _=Symbol()
t.$getChildrenByNameIt=_
const S=Symbol()
t.$getDataValue=S
const k=Symbol()
t.$getExtra=k
const A=Symbol()
t.$getRealChildrenByNameIt=A
const C=Symbol()
t.$getChildren=C
const P=Symbol()
t.$getContainedChildren=P
const O=Symbol()
t.$getNextPage=O
const E=Symbol()
t.$getSubformParent=E
const T=Symbol()
t.$getParent=T
const M=Symbol()
t.$getTemplateRoot=M
const I=Symbol()
t.$globalData=I
const F=Symbol()
t.$hasSettableValue=F
const N=Symbol()
t.$ids=N
const R=Symbol()
t.$indexOf=R
const D=Symbol()
t.$insertAt=D
const j=Symbol()
t.$isCDATAXml=j
const L=Symbol()
t.$isBindable=L
const B=Symbol()
t.$isDataValue=B
const $=Symbol()
t.$isDescendent=$
const z=Symbol()
t.$isNsAgnostic=z
const U=Symbol()
t.$isSplittable=U
const q=Symbol()
t.$isThereMoreWidth=q
const H=Symbol()
t.$isTransparent=H
const V=Symbol()
t.$isUsable=V
const G=Symbol()
t.$lastAttribute=G
const W=Symbol("namespaceId")
t.$namespaceId=W
const X=Symbol("nodeName")
t.$nodeName=X
const K=Symbol()
t.$nsAttributes=K
const Y=Symbol()
t.$onChild=Y
const J=Symbol()
t.$onChildCheck=J
const Q=Symbol()
t.$onText=Q
const Z=Symbol()
t.$pushGlyphs=Z
const ee=Symbol()
t.$popPara=ee
const te=Symbol()
t.$pushPara=te
const re=Symbol()
t.$removeChild=re
const ie=Symbol("root")
t.$root=ie
const ne=Symbol()
t.$resolvePrototypes=ne
const se=Symbol()
t.$searchNode=se
const ae=Symbol()
t.$setId=ae
const oe=Symbol()
t.$setSetAttributes=oe
const le=Symbol()
t.$setValue=le
const ce=Symbol()
t.$tabIndex=ce
const ue=Symbol()
t.$text=ue
const de=Symbol()
t.$toPages=de
const he=Symbol()
t.$toHTML=he
const pe=Symbol()
t.$toString=pe
const fe=Symbol()
t.$toStyle=fe
const me=Symbol("uid")
t.$uid=me},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0
var i=r(78),n=r(80),s=r(88),a=r(87),o=r(81),l=r(2)
const c=o.NamespaceIds.datasets.id
function u(e){const t=new n.Text({})
return t[i.$content]=e,t}t.Binder=class{constructor(e){this.root=e,this.datasets=e.datasets,this.data=e.datasets?.data||new a.XmlObject(o.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[i.$getChildren]().length,this.root.form=this.form=e.template[i.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(e,t,r){if(e[i.$data]=t,e[i.$hasSettableValue]())if(t[i.$isDataValue]()){const r=t[i.$getDataValue]()
e[i.$setValue](u(r))}else if(e instanceof n.Field&&"multiSelect"===e.ui?.choiceList?.open){const r=t[i.$getChildren]().map((e=>e[i.$content].trim())).join("\n")
e[i.$setValue](u(r))}else this._isConsumeData()&&(0,l.warn)("XFA - Nodes haven't the same type.")
else!t[i.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,l.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,r,n){if(!e)return null
let s,a
for(let l=0;l<3;l++){for(s=r[i.$getRealChildrenByNameIt](e,!1,!0);a=s.next().value,a;)if(t===a[i.$isDataValue]())return a
if(r[i.$namespaceId]===o.NamespaceIds.datasets.id&&"data"===r[i.$nodeName])break
r=r[i.$getParent]()}return n?(s=this.data[i.$getRealChildrenByNameIt](e,!0,!1),a=s.next().value,a||(s=this.data[i.$getAttributeIt](e,!0),a=s.next().value,a?.[i.$isDataValue]()?a:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:r,target:o,connection:c}of e.setProperty.children){if(c)continue
if(!r)continue
const u=(0,s.searchNode)(this.root,t,r,!1,!1)
if(!u){(0,l.warn)(`XFA - Invalid reference: ${r}.`)
continue}const[d]=u
if(!d[i.$isDescendent](this.data)){(0,l.warn)("XFA - Invalid node: must be a data node.")
continue}const h=(0,s.searchNode)(this.root,e,o,!1,!1)
if(!h){(0,l.warn)(`XFA - Invalid target: ${o}.`)
continue}const[p]=h
if(!p[i.$isDescendent](e)){(0,l.warn)("XFA - Invalid target: must be a property or subproperty.")
continue}const f=p[i.$getParent]()
if(p instanceof n.SetProperty||f instanceof n.SetProperty){(0,l.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.")
continue}if(p instanceof n.BindItems||f instanceof n.BindItems){(0,l.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.")
continue}const m=d[i.$text](),g=p[i.$nodeName]
if(p instanceof a.XFAAttribute){const e=Object.create(null)
e[g]=m
const t=Reflect.construct(Object.getPrototypeOf(f).constructor,[e])
f[g]=t[g]}else p.hasOwnProperty(i.$content)?(p[i.$data]=d,p[i.$content]=m,p[i.$finalize]()):(0,l.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return
for(const n of e.items.children)e[i.$removeChild](n)
e.items.clear()
const r=new n.Items({}),a=new n.Items({})
e[i.$appendChild](r),e.items.push(r),e[i.$appendChild](a),e.items.push(a)
for(const{ref:n,labelRef:o,valueRef:c,connection:d}of e.bindItems.children){if(d)continue
if(!n)continue
const e=(0,s.searchNode)(this.root,t,n,!1,!1)
if(e)for(const t of e){if(!t[i.$isDescendent](this.datasets)){(0,l.warn)(`XFA - Invalid ref (${n}): must be a datasets child.`)
continue}const e=(0,s.searchNode)(this.root,t,o,!0,!1)
if(!e){(0,l.warn)(`XFA - Invalid label: ${o}.`)
continue}const[d]=e
if(!d[i.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid label: must be a datasets child.")
continue}const h=(0,s.searchNode)(this.root,t,c,!0,!1)
if(!h){(0,l.warn)(`XFA - Invalid value: ${c}.`)
continue}const[p]=h
if(!p[i.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid value: must be a datasets child.")
continue}const f=u(d[i.$text]()),m=u(p[i.$text]())
r[i.$appendChild](f),r.text.push(f),a[i.$appendChild](m),a.text.push(m)}else(0,l.warn)(`XFA - Invalid reference: ${n}.`)}}_bindOccurrences(e,t,r){let n
if(t.length>1&&(n=e[i.$clone](),n[i.$removeChild](n.occur),n.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1===t.length)return
const s=e[i.$getParent](),a=e[i.$nodeName],o=s[i.$indexOf](e)
for(let l=1,c=t.length;l<c;l++){const e=t[l],c=n[i.$clone]()
s[a].push(c),s[i.$insertAt](o+l,c),this._bindValue(c,e,r),this._setProperties(c,e),this._bindItems(c,e)}}_createOccurrences(e){if(!this.emptyMerge)return
const{occur:t}=e
if(!t||t.initial<=1)return
const r=e[i.$getParent](),n=e[i.$nodeName]
if(!(r[n]instanceof a.XFAObjectArray))return
let s
s=e.name?r[n].children.filter((t=>t.name===e.name)).length:r[n].children.length
const o=r[i.$indexOf](e)+1,l=t.initial-s
if(l){const t=e[i.$clone]()
t[i.$removeChild](t.occur),t.occur=null,r[n].push(t),r[i.$insertAt](o,t)
for(let e=1;e<l;e++){const s=t[i.$clone]()
r[n].push(s),r[i.$insertAt](o+e,s)}}}_getOccurInfo(e){const{name:t,occur:r}=e
if(!r||!t)return[1,1]
const i=-1===r.max?1/0:r.max
return[r.min,i]}_setAndBind(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}_bindElement(e,t){const r=[]
this._createOccurrences(e)
for(const n of e[i.$getChildren]()){if(n[i.$data])continue
if(void 0===this._mergeMode&&"subform"===n[i.$nodeName]){this._mergeMode="consumeData"===n.mergeMode
const e=t[i.$getChildren]()
if(e.length>0)this._bindOccurrences(n,[e[0]],null)
else if(this.emptyMerge){const e=t[i.$namespaceId]===c?-1:t[i.$namespaceId],r=n[i.$data]=new a.XmlObject(e,n.name||"root")
t[i.$appendChild](r),this._bindElement(n,r)}continue}if(!n[i.$isBindable]())continue
let e=!1,o=null,u=null,d=null
if(n.bind){switch(n.bind.match){case"none":this._setAndBind(n,t)
continue
case"global":e=!0
break
case"dataRef":if(!n.bind.ref){(0,l.warn)(`XFA - ref is empty in node ${n[i.$nodeName]}.`),this._setAndBind(n,t)
continue}u=n.bind.ref}n.bind.picture&&(o=n.bind.picture[i.$content])}const[h,p]=this._getOccurInfo(n)
if(u){if(d=(0,s.searchNode)(this.root,t,u,!0,!1),null===d){if(d=(0,s.createDataNode)(this.data,t,u),!d)continue
this._isConsumeData()&&(d[i.$consumed]=!0),this._setAndBind(n,d)
continue}this._isConsumeData()&&(d=d.filter((e=>!e[i.$consumed]))),d.length>p?d=d.slice(0,p):0===d.length&&(d=null),d&&this._isConsumeData()&&d.forEach((e=>{e[i.$consumed]=!0}))}else{if(!n.name){this._setAndBind(n,t)
continue}if(this._isConsumeData()){const r=[]
for(;r.length<p;){const s=this._findDataByNameToConsume(n.name,n[i.$hasSettableValue](),t,e)
if(!s)break
s[i.$consumed]=!0,r.push(s)}d=r.length>0?r:null}else{if(d=t[i.$getRealChildrenByNameIt](n.name,!1,this.emptyMerge).next().value,!d){if(0===h){r.push(n)
continue}const e=t[i.$namespaceId]===c?-1:t[i.$namespaceId]
d=n[i.$data]=new a.XmlObject(e,n.name),this.emptyMerge&&(d[i.$consumed]=!0),t[i.$appendChild](d),this._setAndBind(n,d)
continue}this.emptyMerge&&(d[i.$consumed]=!0),d=[d]}}d?this._bindOccurrences(n,d,o):h>0?this._setAndBind(n,t):r.push(n)}r.forEach((e=>e[i.$getParent]()[i.$removeChild](e)))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0
var i=r(78),n=r(81),s=r(82),a=r(83),o=r(87),l=r(84),c=r(2),u=r(85),d=r(3),h=r(88)
const p=n.NamespaceIds.template.id,f="http://www.w3.org/2000/svg",m=/^H(\d+)$/,g=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),b=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]]
function y(e){if(!e||!e.border)return{w:0,h:0}
const t=e.border[i.$getExtra]()
return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function v(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function w(e,t){if(!e.value){const t=new Nt({})
e[i.$appendChild](t),e.value=t}e.value[i.$setValue](t)}function*x(e){for(const t of e[i.$getChildren]())t instanceof wt?yield*t[i.$getContainedChildren]():yield t}function _(e){return"error"===e.validate?.nullTest}function S(e){for(;e;){if(!e.traversal)return void(e[i.$tabIndex]=e[i.$getParent]()[i.$tabIndex])
if(e[i.$tabIndex])return
let t=null
for(const s of e.traversal[i.$getChildren]())if("next"===s.operation){t=s
break}if(!t||!t.ref)return void(e[i.$tabIndex]=e[i.$getParent]()[i.$tabIndex])
const r=e[i.$getTemplateRoot]()
e[i.$tabIndex]=++r[i.$tabIndex]
const n=r[i.$searchNode](t.ref,e)
if(!n)return
e=n[0]}}function k(e,t){const r=e.assist
if(r){const e=r[i.$toHTML]()
e&&(t.title=e)
const n=r.role.match(m)
if(n){const e="heading",r=n[1]
t.role=e,t["aria-level"]=r}}if("table"===e.layout)t.role="table"
else if("row"===e.layout)t.role="row"
else{const r=e[i.$getParent]()
"row"===r.layout&&(t.role="TH"===r.assist?.role?"columnheader":"cell")}}function A(e){if(!e.assist)return null
const t=e.assist
return t.speak&&""!==t.speak[i.$content]?t.speak[i.$content]:t.toolTip?t.toolTip[i.$content]:null}function C(e){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function P(e){const t=e[i.$getTemplateRoot]()
null===t[i.$extra].firstUnsplittable&&(t[i.$extra].firstUnsplittable=e,t[i.$extra].noLayoutFailure=!0)}function O(e){const t=e[i.$getTemplateRoot]()
t[i.$extra].firstUnsplittable===e&&(t[i.$extra].noLayoutFailure=!1)}function E(e){if(e[i.$extra])return!1
if(e[i.$extra]=Object.create(null),"auto"===e.targetType)return!1
const t=e[i.$getTemplateRoot]()
let r=null
if(e.target){if(r=t[i.$searchNode](e.target,e[i.$getParent]()),!r)return!1
r=r[0]}const{currentPageArea:n,currentContentArea:s}=t[i.$extra]
if("pageArea"===e.targetType)return r instanceof Ze||(r=null),e.startNew?(e[i.$extra].target=r||n,!0):!(!r||r===n)&&(e[i.$extra].target=r,!0)
r instanceof ee||(r=null)
const a=r&&r[i.$getParent]()
let o,l=a
if(e.startNew)if(r){const e=a.contentArea.children,t=e.indexOf(s),i=e.indexOf(r);-1!==t&&t<i&&(l=null),o=i-1}else o=n.contentArea.children.indexOf(s)
else{if(!r||r===s)return!1
o=a.contentArea.children.indexOf(r)-1,l=a===n?null:a}return e[i.$extra].target=l,e[i.$extra].index=o,!0}function T(e,t,r){const n=e[i.$getTemplateRoot](),s=n[i.$extra].noLayoutFailure,a=t[i.$getSubformParent]
t[i.$getSubformParent]=()=>e,n[i.$extra].noLayoutFailure=!0
const o=t[i.$toHTML](r)
e[i.$addHTML](o.html,o.bbox),n[i.$extra].noLayoutFailure=s,t[i.$getSubformParent]=a}class M extends o.StringObject{constructor(e){super(p,"appearanceFilter"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class I extends o.XFAObject{constructor(e){super(p,"arc",!0),this.circular=(0,l.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,l.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,l.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[i.$toHTML](){const e=this.edge||new de({}),t=e[i.$toStyle](),r=Object.create(null)
let n
"visible"===this.fill?.presence?Object.assign(r,this.fill[i.$toStyle]()):r.fill="transparent",r.strokeWidth=(0,a.measureToString)("visible"===e.presence?e.thickness:0),r.stroke=t.color
const s={xmlns:f,style:{width:"100%",height:"100%",overflow:"visible"}}
if(360===this.sweepAngle)n={name:"ellipse",attributes:{xmlns:f,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:r}}
else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,i=this.sweepAngle>180?1:0,[a,o,l,c]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))]
n={name:"path",attributes:{xmlns:f,d:`M ${a} ${o} A 50 50 0 ${i} 0 ${l} ${c}`,vectorEffect:"non-scaling-stroke",style:r}},Object.assign(s,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const o={name:"svg",children:[n],attributes:s}
return v(this[i.$getParent]()[i.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[o]}):(o.attributes.style.position="absolute",l.HTMLResult.success(o))}}class F extends o.XFAObject{constructor(e){super(p,"area",!0),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null,this.area=new o.XFAObjectArray,this.draw=new o.XFAObjectArray,this.exObject=new o.XFAObjectArray,this.exclGroup=new o.XFAObjectArray,this.field=new o.XFAObjectArray,this.subform=new o.XFAObjectArray,this.subformSet=new o.XFAObjectArray}*[i.$getContainedChildren](){yield*x(this)}[i.$isTransparent](){return!0}[i.$isBindable](){return!0}[i.$addHTML](e,t){const[r,n,s,a]=t
this[i.$extra].width=Math.max(this[i.$extra].width,r+s),this[i.$extra].height=Math.max(this[i.$extra].height,n+a),this[i.$extra].children.push(e)}[i.$getAvailableSpace](){return this[i.$extra].availableSpace}[i.$toHTML](e){const t=(0,a.toStyle)(this,"position"),r={style:t,id:this[i.$uid],class:["xfaArea"]};(0,a.isPrintOnly)(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name)
const n=[]
this[i.$extra]={children:n,width:0,height:0,availableSpace:e}
const s=this[i.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0})
if(!s.success)return s.isBreak()?s:(delete this[i.$extra],l.HTMLResult.FAILURE)
t.width=(0,a.measureToString)(this[i.$extra].width),t.height=(0,a.measureToString)(this[i.$extra].height)
const o={name:"div",attributes:r,children:n},c=[this.x,this.y,this[i.$extra].width,this[i.$extra].height]
return delete this[i.$extra],l.HTMLResult.success(o,c)}}class N extends o.XFAObject{constructor(e){super(p,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[i.$toHTML](){return this.toolTip?.[i.$content]||null}}class R extends o.XFAObject{constructor(e){super(p,"barcode",!0),this.charEncoding=(0,l.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,l.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,l.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=(0,l.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=(0,l.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,l.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,l.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,l.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,l.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,l.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,l.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,l.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,l.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,l.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,l.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,l.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class D extends o.XFAObject{constructor(e){super(p,"bind",!0),this.match=(0,l.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class j extends o.XFAObject{constructor(e){super(p,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}t.BindItems=j
class L extends o.XFAObject{constructor(e){super(p,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class B extends o.Option01{constructor(e){super(p,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$toHTML](e){return C(1===this[i.$content]?"1":"0")}}class $ extends o.XFAObject{constructor(e){super(p,"border",!0),this.break=(0,l.getStringOption)(e.break,["close","open"]),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new o.XFAObjectArray(4),this.edge=new o.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[i.$getExtra](){if(!this[i.$extra]){const e=this.edge.children.slice()
if(e.length<4){const t=e.at(-1)||new de({})
for(let r=e.length;r<4;r++)e.push(t)}const t=e.map((e=>e.thickness)),r=[0,0,0,0]
this.margin&&(r[0]=this.margin.topInset,r[1]=this.margin.rightInset,r[2]=this.margin.bottomInset,r[3]=this.margin.leftInset),this[i.$extra]={widths:t,insets:r,edges:e}}return this[i.$extra]}[i.$toStyle](){const{edges:e}=this[i.$getExtra](),t=e.map((e=>{const t=e[i.$toStyle]()
return t.color||="#000000",t})),r=Object.create(null)
if(this.margin&&Object.assign(r,this.margin[i.$toStyle]()),"visible"===this.fill?.presence&&Object.assign(r,this.fill[i.$toStyle]()),this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[i.$toStyle]()))
if(2===e.length||3===e.length){const t=e.at(-1)
for(let r=e.length;r<4;r++)e.push(t)}r.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle=""
break
case"inactive":r.borderStyle="none"
break
default:r.borderStyle=t.map((e=>e.style)).join(" ")}return r.borderWidth=t.map((e=>e.width)).join(" "),r.borderColor=t.map((e=>e.color)).join(" "),r}}class z extends o.XFAObject{constructor(e){super(p,"break",!0),this.after=(0,l.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,l.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class U extends o.XFAObject{constructor(e){super(p,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class q extends o.XFAObject{constructor(e){super(p,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[i.$toHTML](e){return this[i.$extra]={},l.HTMLResult.FAILURE}}class H extends o.XFAObject{constructor(e){super(p,"button",!0),this.highlight=(0,l.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[i.$toHTML](e){const t=this[i.$getParent]()[i.$getParent](),r={name:"button",attributes:{id:this[i.$uid],class:["xfaButton"],style:{}},children:[]}
for(const n of t.event.children){if("click"!==n.activity||!n.script)continue
const e=(0,d.recoverJsURL)(n.script[i.$content])
if(!e)continue
const t=(0,a.fixURL)(e.url)
t&&r.children.push({name:"a",attributes:{id:"link"+this[i.$uid],href:t,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return l.HTMLResult.success(r)}}class V extends o.XFAObject{constructor(e){super(p,"calculate",!0),this.id=e.id||"",this.override=(0,l.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class G extends o.XFAObject{constructor(e){super(p,"caption",!0),this.id=e.id||"",this.placement=(0,l.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,l.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[i.$setValue](e){w(this,e)}[i.$getExtra](e){if(!this[i.$extra]){let{width:t,height:r}=e
switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve
break
case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[i.$extra]=(0,a.layoutNode)(this,{width:t,height:r})}return this[i.$extra]}[i.$toHTML](e){if(!this.value)return l.HTMLResult.EMPTY
this[i.$pushPara]()
const t=this.value[i.$toHTML](e).html
if(!t)return this[i.$popPara](),l.HTMLResult.EMPTY
const r=this.reserve
if(this.reserve<=0){const{w:t,h:r}=this[i.$getExtra](e)
switch(this.placement){case"left":case"right":case"inline":this.reserve=t
break
case"top":case"bottom":this.reserve=r}}const n=[]
"string"==typeof t?n.push({name:"#text",value:t}):n.push(t)
const s=(0,a.toStyle)(this,"font","margin","visibility")
switch(this.placement){case"left":case"right":this.reserve>0&&(s.width=(0,a.measureToString)(this.reserve))
break
case"top":case"bottom":this.reserve>0&&(s.height=(0,a.measureToString)(this.reserve))}return(0,a.setPara)(this,null,t),this[i.$popPara](),this.reserve=r,l.HTMLResult.success({name:"div",attributes:{style:s,class:["xfaCaption"]},children:n})}}class W extends o.StringObject{constructor(e){super(p,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class X extends o.XFAObject{constructor(e){super(p,"certificates",!0),this.credentialServerPolicy=(0,l.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class K extends o.XFAObject{constructor(e){super(p,"checkButton",!0),this.id=e.id||"",this.mark=(0,l.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,l.getStringOption)(e.shape,["square","round"]),this.size=(0,l.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[i.$toHTML](e){const t=(0,a.toStyle)("margin"),r=(0,a.measureToString)(this.size)
let n,s,o
t.width=t.height=r
const c=this[i.$getParent]()[i.$getParent](),u=c.items.children.length&&c.items.children[0][i.$toHTML]().html||[],d={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},h=(c.value?.[i.$text]()||"off")===d.on||void 0,p=c[i.$getSubformParent](),f=c[i.$uid]
let m
p instanceof _e?(o=p[i.$uid],n="radio",s="xfaRadio",m=p[i.$data]?.[i.$uid]||p[i.$uid]):(n="checkbox",s="xfaCheckbox",m=c[i.$data]?.[i.$uid]||c[i.$uid])
const g={name:"input",attributes:{class:[s],style:t,fieldId:f,dataId:m,type:n,checked:h,xfaOn:d.on,xfaOff:d.off,"aria-label":A(c),"aria-required":!1}}
return o&&(g.attributes.name=o),_(c)&&(g.attributes["aria-required"]=!0,g.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[g]})}}class Y extends o.XFAObject{constructor(e){super(p,"choiceList",!0),this.commitOn=(0,l.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,l.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,l.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[i.$toHTML](e){const t=(0,a.toStyle)(this,"border","margin"),r=this[i.$getParent]()[i.$getParent](),n={fontSize:`calc(${r.font?.size||10}px * var(--scale-factor))`},s=[]
if(r.items.children.length>0){const e=r.items
let t=0,a=0
2===e.children.length&&(t=e.children[0].save,a=1-t)
const o=e.children[t][i.$toHTML]().html,l=e.children[a][i.$toHTML]().html
let c=!1
const u=r.value?.[i.$text]()||""
for(let r=0,i=o.length;r<i;r++){const e={name:"option",attributes:{value:l[r]||o[r],style:n},value:o[r]}
l[r]===u&&(e.attributes.selected=c=!0),s.push(e)}c||s.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const o={class:["xfaSelect"],fieldId:r[i.$uid],dataId:r[i.$data]?.[i.$uid]||r[i.$uid],style:t,"aria-label":A(r),"aria-required":!1}
return _(r)&&(o["aria-required"]=!0,o.required=!0),"multiSelect"===this.open&&(o.multiple=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:s,attributes:o}]})}}class J extends o.XFAObject{constructor(e){super(p,"color",!0),this.cSpace=(0,l.getStringOption)(e.cSpace,["SRGB"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.value=e.value?(0,l.getColor)(e.value):"",this.extras=null}[i.$hasSettableValue](){return!1}[i.$toStyle](){return this.value?c.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class Q extends o.XFAObject{constructor(e){super(p,"comb"),this.id=e.id||"",this.numberOfCells=(0,l.getInteger)({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||""}}class Z extends o.XFAObject{constructor(e){super(p,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,l.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class ee extends o.XFAObject{constructor(e){super(p,"contentArea",!0),this.h=(0,l.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,l.getMeasurement)(e.w),this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[i.$toHTML](e){const t={left:(0,a.measureToString)(this.x),top:(0,a.measureToString)(this.y),width:(0,a.measureToString)(this.w),height:(0,a.measureToString)(this.h)},r=["xfaContentarea"]
return(0,a.isPrintOnly)(this)&&r.push("xfaPrintOnly"),l.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:r,id:this[i.$uid]}})}}class te extends o.XFAObject{constructor(e){super(p,"corner",!0),this.id=e.id||"",this.inverted=(0,l.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,l.getStringOption)(e.join,["square","round"]),this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,l.getMeasurement)(e.radius),this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](){const e=(0,a.toStyle)(this,"visibility")
return e.radius=(0,a.measureToString)("square"===this.join?0:this.radius),e}}class re extends o.ContentObject{constructor(e){super(p,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=this[i.$content].trim()
this[i.$content]=e?new Date(e):null}[i.$toHTML](e){return C(this[i.$content]?this[i.$content].toString():"")}}class ie extends o.ContentObject{constructor(e){super(p,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=this[i.$content].trim()
this[i.$content]=e?new Date(e):null}[i.$toHTML](e){return C(this[i.$content]?this[i.$content].toString():"")}}class ne extends o.XFAObject{constructor(e){super(p,"dateTimeEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,l.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[i.$toHTML](e){const t=(0,a.toStyle)(this,"border","font","margin"),r=this[i.$getParent]()[i.$getParent](),n={name:"input",attributes:{type:"text",fieldId:r[i.$uid],dataId:r[i.$data]?.[i.$uid]||r[i.$uid],class:["xfaTextfield"],style:t,"aria-label":A(r),"aria-required":!1}}
return _(r)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class se extends o.ContentObject{constructor(e){super(p,"decimal"),this.fracDigits=(0,l.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,l.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=parseFloat(this[i.$content].trim())
this[i.$content]=isNaN(e)?null:e}[i.$toHTML](e){return C(null!==this[i.$content]?this[i.$content].toString():"")}}class ae extends o.XFAObject{constructor(e){super(p,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class oe extends o.XFAObject{constructor(e){super(p,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.time=new o.XFAObjectArray}}class le extends o.OptionObject{constructor(e){super(p,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ce extends o.XFAObject{constructor(e){super(p,"digestMethods",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new o.XFAObjectArray}}class ue extends o.XFAObject{constructor(e){super(p,"draw",!0),this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null
this.ui=null,this.value=null,this.setProperty=new o.XFAObjectArray}[i.$setValue](e){w(this,e)}[i.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(0,a.fixDimensions)(this),this[i.$pushPara]()
const t=this.w,r=this.h,{w:n,h:o,isBroken:c}=(0,a.layoutNode)(this,e)
if(n&&""===this.w){if(c&&this[i.$getSubformParent]()[i.$isThereMoreWidth]())return this[i.$popPara](),l.HTMLResult.FAILURE
this.w=n}if(o&&""===this.h&&(this.h=o),P(this),!(0,s.checkDimensions)(this,e))return this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.FAILURE
O(this)
const u=(0,a.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,a.setMinMaxDimensions)(this,u),u.margin&&(u.padding=u.margin,delete u.margin)
const d=["xfaDraw"]
this.font&&d.push("xfaFont"),(0,a.isPrintOnly)(this)&&d.push("xfaPrintOnly")
const h={style:u,id:this[i.$uid],class:d}
this.name&&(h.xfaName=this.name)
const p={name:"div",attributes:h,children:[]}
k(this,h)
const f=(0,a.computeBbox)(this,p,e),m=this.value?this.value[i.$toHTML](e).html:null
return null===m?(this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.success((0,a.createWrapper)(this,p),f)):(p.children.push(m),(0,a.setPara)(this,u,m),this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.success((0,a.createWrapper)(this,p),f))}}class de extends o.XFAObject{constructor(e){super(p,"edge",!0),this.cap=(0,l.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](){const e=(0,a.toStyle)(this,"visibility")
if(Object.assign(e,{linecap:this.cap,width:(0,a.measureToString)(this.thickness),color:this.color?this.color[i.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none"
else switch(this.stroke){case"solid":e.style="solid"
break
case"dashDot":case"dashDotDot":case"dashed":e.style="dashed"
break
case"dotted":e.style="dotted"
break
case"embossed":e.style="ridge"
break
case"etched":e.style="groove"
break
case"lowered":e.style="inset"
break
case"raised":e.style="outset"}return e}}class he extends o.OptionObject{constructor(e){super(p,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class pe extends o.XFAObject{constructor(e){super(p,"encodings",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new o.XFAObjectArray}}class fe extends o.XFAObject{constructor(e){super(p,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class me extends o.XFAObject{constructor(e){super(p,"encryptData",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ge extends o.XFAObject{constructor(e){super(p,"encryption",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new o.XFAObjectArray}}class be extends o.OptionObject{constructor(e){super(p,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ye extends o.XFAObject{constructor(e){super(p,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new o.XFAObjectArray}}class ve extends o.XFAObject{constructor(e){super(p,"event",!0),this.activity=(0,l.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=e.id||"",this.listen=(0,l.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class we extends o.ContentObject{constructor(e){super(p,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,l.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[i.$isCDATAXml](){return"text/html"===this.contentType}[i.$onChild](e){return("text/html"===this.contentType&&e[i.$namespaceId]===n.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[i.$content]=e,!0)}[i.$toHTML](e){return"text/html"===this.contentType&&this[i.$content]?this[i.$content][i.$toHTML](e):l.HTMLResult.EMPTY}}class xe extends o.XFAObject{constructor(e){super(p,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.boolean=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.exObject=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.time=new o.XFAObjectArray}}class _e extends o.XFAObject{constructor(e){super(p,"exclGroup",!0),this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null
this.traversal=null,this.validate=null,this.connect=new o.XFAObjectArray,this.event=new o.XFAObjectArray,this.field=new o.XFAObjectArray,this.setProperty=new o.XFAObjectArray}[i.$isBindable](){return!0}[i.$hasSettableValue](){return!0}[i.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new Nt({})
t[i.$appendChild](e),t.value=e}t.value[i.$setValue](e)}}[i.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[i.$extra].attempt&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}[i.$isSplittable](){const e=this[i.$getSubformParent]()
return!!e[i.$isSplittable]()&&(void 0!==this[i.$extra]._isSplittable?this[i.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[i.$extra]._isSplittable=!1,!1):(!e.layout?.endsWith("-tb")||0===e[i.$extra].numberInLine)&&(this[i.$extra]._isSplittable=!0,!0))}[i.$flushHTML](){return(0,s.flushHTML)(this)}[i.$addHTML](e,t){(0,s.addHTML)(this,e,t)}[i.$getAvailableSpace](){return(0,s.getAvailableSpace)(this)}[i.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;(0,a.fixDimensions)(this)
const t=[],r={id:this[i.$uid],class:[]};(0,a.setAccess)(this,r.class),this[i.$extra]||(this[i.$extra]=Object.create(null)),Object.assign(this[i.$extra],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0})
const n=this[i.$isSplittable]()
if(n||P(this),!(0,s.checkDimensions)(this,e))return l.HTMLResult.FAILURE
const o=new Set(["field"])
if(this.layout.includes("row")){const e=this[i.$getSubformParent]().columnWidths
Array.isArray(e)&&e.length>0&&(this[i.$extra].columnWidths=e,this[i.$extra].currentColumn=0)}const c=(0,a.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),u=["xfaExclgroup"],d=(0,a.layoutClass)(this)
d&&u.push(d),(0,a.isPrintOnly)(this)&&u.push("xfaPrintOnly"),r.style=c,r.class=u,this.name&&(r.xfaName=this.name),this[i.$pushPara]()
const h="lr-tb"===this.layout||"rl-tb"===this.layout,p=h?2:1
for(;this[i.$extra].attempt<p;this[i.$extra].attempt++){h&&1===this[i.$extra].attempt&&(this[i.$extra].numberInLine=0)
const e=this[i.$childrenToHTML]({filter:o,include:!0})
if(e.success)break
if(e.isBreak())return this[i.$popPara](),e
if(h&&0===this[i.$extra].attempt&&0===this[i.$extra].numberInLine&&!this[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){this[i.$extra].attempt=p
break}}if(this[i.$popPara](),n||O(this),this[i.$extra].attempt===p)return n||delete this[i.$extra],l.HTMLResult.FAILURE
let f=0,m=0
this.margin&&(f=this.margin.leftInset+this.margin.rightInset,m=this.margin.topInset+this.margin.bottomInset)
const g=Math.max(this[i.$extra].width+f,this.w||0),b=Math.max(this[i.$extra].height+m,this.h||0),y=[this.x,this.y,g,b]
""===this.w&&(c.width=(0,a.measureToString)(g)),""===this.h&&(c.height=(0,a.measureToString)(b))
const v={name:"div",attributes:r,children:t}
return k(this,r),delete this[i.$extra],l.HTMLResult.success((0,a.createWrapper)(this,v),y)}}class Se extends o.XFAObject{constructor(e){super(p,"execute"),this.connection=e.connection||"",this.executeType=(0,l.getStringOption)(e.executeType,["import","remerge"]),this.id=e.id||"",this.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class ke extends o.XFAObject{constructor(e){super(p,"extras",!0),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.extras=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.time=new o.XFAObjectArray}}class Ae extends o.XFAObject{constructor(e){super(p,"field",!0),this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null
this.format=null,this.items=new o.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new o.XFAObjectArray,this.connect=new o.XFAObjectArray,this.event=new o.XFAObjectArray,this.setProperty=new o.XFAObjectArray}[i.$isBindable](){return!0}[i.$setValue](e){w(this,e)}[i.$toHTML](e){if(S(this),!this.ui){let e
switch(this.ui=new It({}),this.ui[i.$globalData]=this[i.$globalData],this[i.$appendChild](this.ui),this.items.children.length){case 0:e=new Ct({}),this.ui.textEdit=e
break
case 1:e=new K({}),this.ui.checkButton=e
break
case 2:e=new Y({}),this.ui.choiceList=e}this.ui[i.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY
this.caption&&delete this.caption[i.$extra],this[i.$pushPara]()
const t=this.caption?this.caption[i.$toHTML](e).html:null,r=this.w,n=this.h
let o=0,c=0
this.margin&&(o=this.margin.leftInset+this.margin.rightInset,c=this.margin.topInset+this.margin.bottomInset)
let d=null
if(""===this.w||""===this.h){let t=null,r=null,n=0,s=0
if(this.ui.checkButton)n=s=this.ui.checkButton.size
else{const{w:t,h:r}=(0,a.layoutNode)(this,e)
null!==t?(n=t,s=r):s=(0,u.getMetrics)(this.font,!0).lineNoGap}if(d=y(this.ui[i.$getExtra]()),n+=d.w,s+=d.h,this.caption){const{w:a,h:o,isBroken:c}=this.caption[i.$getExtra](e)
if(c&&this[i.$getSubformParent]()[i.$isThereMoreWidth]())return this[i.$popPara](),l.HTMLResult.FAILURE
switch(t=a,r=o,this.caption.placement){case"left":case"right":case"inline":t+=n
break
case"top":case"bottom":r+=s}}else t=n,r=s
t&&""===this.w&&(t+=o,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)),r&&""===this.h&&(r+=c,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<r?r:this.minH))}if(this[i.$popPara](),(0,a.fixDimensions)(this),P(this),!(0,s.checkDimensions)(this,e))return this.w=r,this.h=n,this[i.$popPara](),l.HTMLResult.FAILURE
O(this)
const h=(0,a.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,a.setMinMaxDimensions)(this,h)
const p=["xfaField"]
this.font&&p.push("xfaFont"),(0,a.isPrintOnly)(this)&&p.push("xfaPrintOnly")
const f={style:h,id:this[i.$uid],class:p}
h.margin&&(h.padding=h.margin,delete h.margin),(0,a.setAccess)(this,p),this.name&&(f.xfaName=this.name)
const m=[],g={name:"div",attributes:f,children:m}
k(this,f)
const b=this.border?this.border[i.$toStyle]():null,v=(0,a.computeBbox)(this,g,e),w=this.ui[i.$toHTML]().html
if(!w)return Object.assign(h,b),l.HTMLResult.success((0,a.createWrapper)(this,g),v)
this[i.$tabIndex]&&(w.children?.[0]?w.children[0].attributes.tabindex=this[i.$tabIndex]:w.attributes.tabindex=this[i.$tabIndex]),w.attributes.style||(w.attributes.style=Object.create(null))
let x=null
if(this.ui.button?(1===w.children.length&&([x]=w.children.splice(0,1)),Object.assign(w.attributes.style,b)):Object.assign(h,b),m.push(w),this.value)if(this.ui.imageEdit)w.children.push(this.value[i.$toHTML]().html)
else if(!this.ui.button){let e=""
if(this.value.exData)e=this.value.exData[i.$text]()
else if(this.value.text)e=this.value.text[i.$getExtra]()
else{const t=this.value[i.$toHTML]().html
null!==t&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(w.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?"":e.toString()),"textarea"===w.children[0].name?w.children[0].attributes.textContent=e:w.children[0].attributes.value=e)}if(!this.ui.imageEdit&&w.children?.[0]&&this.h){d=d||y(this.ui[i.$getExtra]())
let t=0
if(this.caption&&["top","bottom"].includes(this.caption.placement)){t=this.caption.reserve,t<=0&&(t=this.caption[i.$getExtra](e).h)
const r=this.h-t-c-d.h
w.children[0].attributes.style.height=(0,a.measureToString)(r)}else w.children[0].attributes.style.height="100%"}if(x&&w.children.push(x),!t)return w.attributes.class&&w.attributes.class.push("xfaLeft"),this.w=r,this.h=n,l.HTMLResult.success((0,a.createWrapper)(this,g),v)
if(this.ui.button)return h.padding&&delete h.padding,"div"===t.name&&(t.name="span"),w.children.push(t),l.HTMLResult.success(g,v)
switch(this.ui.checkButton&&(t.attributes.class[0]="xfaCaptionForCheckButton"),w.attributes.class||(w.attributes.class=[]),w.children.splice(0,0,t),this.caption.placement){case"left":case"inline":w.attributes.class.push("xfaLeft")
break
case"right":w.attributes.class.push("xfaRight")
break
case"top":w.attributes.class.push("xfaTop")
break
case"bottom":w.attributes.class.push("xfaBottom")}return this.w=r,this.h=n,l.HTMLResult.success((0,a.createWrapper)(this,g),v)}}t.Field=Ae
class Ce extends o.XFAObject{constructor(e){super(p,"fill",!0),this.id=e.id||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[i.$toStyle](){const e=this[i.$getParent](),t=e[i.$getParent]()[i.$getParent](),r=Object.create(null)
let n="color",s=n
e instanceof $&&(n="background-color",s="background",t instanceof It&&(r.backgroundColor="white")),(e instanceof ct||e instanceof I)&&(n=s="fill",r.fill="white")
for(const a of Object.getOwnPropertyNames(this)){if("extras"===a||"color"===a)continue
const e=this[a]
if(!(e instanceof o.XFAObject))continue
const t=e[i.$toStyle](this.color)
return t&&(r[t.startsWith("#")?n:s]=t),r}if(this.color?.value){const e=this.color[i.$toStyle]()
r[e.startsWith("#")?n:s]=e}return r}}class Pe extends o.XFAObject{constructor(e){super(p,"filter",!0),this.addRevocationInfo=(0,l.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.version=(0,l.getInteger)({data:this.version,defaultValue:5,validate:e=>e>=1&&e<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class Oe extends o.ContentObject{constructor(e){super(p,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=parseFloat(this[i.$content].trim())
this[i.$content]=isNaN(e)?null:e}[i.$toHTML](e){return C(null!==this[i.$content]?this[i.$content].toString():"")}}class Ee extends o.XFAObject{constructor(e){super(p,"font",!0),this.baselineShift=(0,l.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,l.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=(0,l.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||"",this.kerningMode=(0,l.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,l.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,l.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,l.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,l.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,l.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,l.getStringOption)(e.posture,["normal","italic"]),this.size=(0,l.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,l.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,l.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,l.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[i.$clean](e){super[i.$clean](e),this[i.$globalData].usedTypefaces.add(this.typeface)}[i.$toStyle](){const e=(0,a.toStyle)(this,"fill"),t=e.color
return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,a.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,a.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,a.measureToString)(.99*this.size),(0,a.setFontFamily)(this,this,this[i.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}class Te extends o.XFAObject{constructor(e){super(p,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class Me extends o.StringObject{constructor(e){super(p,"handler"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ie extends o.XFAObject{constructor(e){super(p,"hyphenation"),this.excludeAllCaps=(0,l.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,l.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,l.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,l.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=(0,l.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,l.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Fe extends o.StringObject{constructor(e){super(p,"image"),this.aspect=(0,l.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[i.$toHTML](){if(this.contentType&&!g.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY
let e=this[i.$globalData].images&&this[i.$globalData].images.get(this.href)
if(!e&&(this.href||!this[i.$content]))return l.HTMLResult.EMPTY
if(e||"base64"!==this.transferEncoding||(e=(0,c.stringToBytes)(atob(this[i.$content]))),!e)return l.HTMLResult.EMPTY
if(!this.contentType){for(const[t,r]of b)if(e.length>t.length&&t.every(((t,r)=>t===e[r]))){this.contentType=r
break}if(!this.contentType)return l.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType})
let r
switch(this.aspect){case"fit":case"actual":break
case"height":r={height:"100%",objectFit:"fill"}
break
case"none":r={width:"100%",height:"100%",objectFit:"fill"}
break
case"width":r={width:"100%",objectFit:"fill"}}const n=this[i.$getParent]()
return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:r,src:URL.createObjectURL(t),alt:n?A(n[i.$getParent]()):null}})}}class Ne extends o.XFAObject{constructor(e){super(p,"imageEdit",!0),this.data=(0,l.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[i.$toHTML](e){return"embed"===this.data?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}class Re extends o.ContentObject{constructor(e){super(p,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=parseInt(this[i.$content].trim(),10)
this[i.$content]=isNaN(e)?null:e}[i.$toHTML](e){return C(null!==this[i.$content]?this[i.$content].toString():"")}}class De extends o.XFAObject{constructor(e){super(p,"issuers",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new o.XFAObjectArray}}class je extends o.XFAObject{constructor(e){super(p,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,l.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.time=new o.XFAObjectArray}[i.$toHTML](){const e=[]
for(const t of this[i.$getChildren]())e.push(t[i.$text]())
return l.HTMLResult.success(e)}}t.Items=je
class Le extends o.XFAObject{constructor(e){super(p,"keep",!0),this.id=e.id||""
const t=["none","contentArea","pageArea"]
this.intact=(0,l.getStringOption)(e.intact,t),this.next=(0,l.getStringOption)(e.next,t),this.previous=(0,l.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class Be extends o.XFAObject{constructor(e){super(p,"keyUsage")
const t=["","yes","no"]
this.crlSign=(0,l.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,l.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,l.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,l.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,l.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,l.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,l.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,l.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,l.getStringOption)(e.nonRepudiation,t),this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class $e extends o.XFAObject{constructor(e){super(p,"line",!0),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,l.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[i.$toHTML](){const e=this[i.$getParent]()[i.$getParent](),t=this.edge||new de({}),r=t[i.$toStyle](),n=Object.create(null),s="visible"===t.presence?t.thickness:0
let o,c,u,d
n.strokeWidth=(0,a.measureToString)(s),n.stroke=r.color
let h="100%",p="100%"
e.w<=s?([o,c,u,d]=["50%",0,"50%","100%"],h=n.strokeWidth):e.h<=s?([o,c,u,d]=[0,"50%","100%","50%"],p=n.strokeWidth):"\\"===this.slope?[o,c,u,d]=[0,0,"100%","100%"]:[o,c,u,d]=[0,"100%","100%",0]
const m={name:"svg",children:[{name:"line",attributes:{xmlns:f,x1:o,y1:c,x2:u,y2:d,style:n}}],attributes:{xmlns:f,width:h,height:p,style:{overflow:"visible"}}}
return v(e)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[m]}):(m.attributes.style.position="absolute",l.HTMLResult.success(m))}}class ze extends o.XFAObject{constructor(e){super(p,"linear",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](e){e=e?e[i.$toStyle]():"#FFFFFF"
return`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[i.$toStyle]():"#000000"})`}}class Ue extends o.ContentObject{constructor(e){super(p,"lockDocument"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){this[i.$content]=(0,l.getStringOption)(this[i.$content],["auto","0","1"])}}class qe extends o.XFAObject{constructor(e){super(p,"manifest",!0),this.action=(0,l.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new o.XFAObjectArray}}class He extends o.XFAObject{constructor(e){super(p,"margin",!0),this.bottomInset=(0,l.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,l.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,l.getMeasurement)(e.rightInset,"0"),this.topInset=(0,l.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[i.$toStyle](){return{margin:(0,a.measureToString)(this.topInset)+" "+(0,a.measureToString)(this.rightInset)+" "+(0,a.measureToString)(this.bottomInset)+" "+(0,a.measureToString)(this.leftInset)}}}class Ve extends o.XFAObject{constructor(e){super(p,"mdp"),this.id=e.id||"",this.permissions=(0,l.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,l.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ge extends o.XFAObject{constructor(e){super(p,"medium"),this.id=e.id||"",this.imagingBBox=(0,l.getBBox)(e.imagingBBox),this.long=(0,l.getMeasurement)(e.long),this.orientation=(0,l.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,l.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,l.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,l.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class We extends o.XFAObject{constructor(e){super(p,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new o.XFAObjectArray}}class Xe extends o.XFAObject{constructor(e){super(p,"numericEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[i.$toHTML](e){const t=(0,a.toStyle)(this,"border","font","margin"),r=this[i.$getParent]()[i.$getParent](),n={name:"input",attributes:{type:"text",fieldId:r[i.$uid],dataId:r[i.$data]?.[i.$uid]||r[i.$uid],class:["xfaTextfield"],style:t,"aria-label":A(r),"aria-required":!1}}
return _(r)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Ke extends o.XFAObject{constructor(e){super(p,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,l.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,l.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,l.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[i.$clean](){const e=this[i.$getParent](),t=this.min
""===this.min&&(this.min=e instanceof Ze||e instanceof et?0:1),""===this.max&&(this.max=""===t?e instanceof Ze||e instanceof et?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof kt?1:this.min)}}class Ye extends o.StringObject{constructor(e){super(p,"oid"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Je extends o.XFAObject{constructor(e){super(p,"oids",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.oid=new o.XFAObjectArray}}class Qe extends o.XFAObject{constructor(e){super(p,"overflow"),this.id=e.id||"",this.leader=e.leader||"",this.target=e.target||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$getExtra](){if(!this[i.$extra]){const e=this[i.$getParent](),t=this[i.$getTemplateRoot](),r=t[i.$searchNode](this.target,e),n=t[i.$searchNode](this.leader,e),s=t[i.$searchNode](this.trailer,e)
this[i.$extra]={target:r?.[0]||null,leader:n?.[0]||null,trailer:s?.[0]||null,addLeader:!1,addTrailer:!1}}return this[i.$extra]}}class Ze extends o.XFAObject{constructor(e){super(p,"pageArea",!0),this.blankOrNotBlank=(0,l.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),this.id=e.id||"",this.initialNumber=(0,l.getInteger)({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||"",this.numbered=(0,l.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,l.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,l.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new o.XFAObjectArray,this.contentArea=new o.XFAObjectArray,this.draw=new o.XFAObjectArray,this.exclGroup=new o.XFAObjectArray,this.field=new o.XFAObjectArray,this.subform=new o.XFAObjectArray}[i.$isUsable](){return this[i.$extra]?!this.occur||-1===this.occur.max||this[i.$extra].numberOfUse<this.occur.max:(this[i.$extra]={numberOfUse:0},!0)}[i.$cleanPage](){delete this[i.$extra]}[i.$getNextPage](){this[i.$extra]||(this[i.$extra]={numberOfUse:0})
const e=this[i.$getParent]()
return"orderedOccurrence"===e.relation&&this[i.$isUsable]()?(this[i.$extra].numberOfUse+=1,this):e[i.$getNextPage]()}[i.$getAvailableSpace](){return this[i.$extra].space||{width:0,height:0}}[i.$toHTML](){this[i.$extra]||(this[i.$extra]={numberOfUse:1})
const e=[]
this[i.$extra].children=e
const t=Object.create(null)
if(this.medium&&this.medium.short&&this.medium.long){if(t.width=(0,a.measureToString)(this.medium.short),t.height=(0,a.measureToString)(this.medium.long),this[i.$extra].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){const e=t.width
t.width=t.height,t.height=e,this[i.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,c.warn)("XFA - No medium specified in pageArea: please file a bug.")
return this[i.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[i.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),l.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[i.$uid],style:t,xfaName:this.name}})}}class et extends o.XFAObject{constructor(e){super(p,"pageSet",!0),this.duplexImposition=(0,l.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),this.id=e.id||"",this.name=e.name||"",this.relation=(0,l.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.occur=null,this.pageArea=new o.XFAObjectArray,this.pageSet=new o.XFAObjectArray}[i.$cleanPage](){for(const e of this.pageArea.children)e[i.$cleanPage]()
for(const e of this.pageSet.children)e[i.$cleanPage]()}[i.$isUsable](){return!this.occur||-1===this.occur.max||this[i.$extra].numberOfUse<this.occur.max}[i.$getNextPage](){if(this[i.$extra]||(this[i.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[i.$extra].pageIndex+1<this.pageArea.children.length){this[i.$extra].pageIndex+=1
return this.pageArea.children[this[i.$extra].pageIndex][i.$getNextPage]()}if(this[i.$extra].pageSetIndex+1<this.pageSet.children.length)return this[i.$extra].pageSetIndex+=1,this.pageSet.children[this[i.$extra].pageSetIndex][i.$getNextPage]()
if(this[i.$isUsable]())return this[i.$extra].numberOfUse+=1,this[i.$extra].pageIndex=-1,this[i.$extra].pageSetIndex=-1,this[i.$getNextPage]()
const e=this[i.$getParent]()
return e instanceof et?e[i.$getNextPage]():(this[i.$cleanPage](),this[i.$getNextPage]())}const e=this[i.$getTemplateRoot]()[i.$extra].pageNumber,t=e%2==0?"even":"odd",r=0===e?"first":"rest"
let n=this.pageArea.children.find((e=>e.oddOrEven===t&&e.pagePosition===r))
return n||(n=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===r)),n||(n=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition)),n||this.pageArea.children[0]))}}class tt extends o.XFAObject{constructor(e){super(p,"para",!0),this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,l.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,l.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,l.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,l.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,l.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,l.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,l.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,l.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map(((e,t)=>t%2==1?(0,l.getMeasurement)(e):e)),this.textIndent=e.textIndent?(0,l.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,l.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,l.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[i.$toStyle](){const e=(0,a.toStyle)(this,"hAlign")
return""!==this.marginLeft&&(e.paddingLeft=(0,a.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,a.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,a.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,a.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,a.measureToString)(this.textIndent),(0,a.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,a.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,a.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[i.$toStyle]()),e}}class rt extends o.XFAObject{constructor(e){super(p,"passwordEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class it extends o.XFAObject{constructor(e){super(p,"pattern",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](e){e=e?e[i.$toStyle]():"#FFFFFF"
const t=this.color?this.color[i.$toStyle]():"#000000",r="repeating-linear-gradient",n=`${e},${e} 5px,${t} 5px,${t} 10px`
switch(this.type){case"crossHatch":return`${r}(to top,${n}) ${r}(to right,${n})`
case"crossDiagonal":return`${r}(45deg,${n}) ${r}(-45deg,${n})`
case"diagonalLeft":return`${r}(45deg,${n})`
case"diagonalRight":return`${r}(-45deg,${n})`
case"horizontal":return`${r}(to top,${n})`
case"vertical":return`${r}(to right,${n})`}return""}}class nt extends o.StringObject{constructor(e){super(p,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class st extends o.XFAObject{constructor(e){super(p,"proto",!0),this.appearanceFilter=new o.XFAObjectArray,this.arc=new o.XFAObjectArray,this.area=new o.XFAObjectArray,this.assist=new o.XFAObjectArray,this.barcode=new o.XFAObjectArray,this.bindItems=new o.XFAObjectArray,this.bookend=new o.XFAObjectArray,this.boolean=new o.XFAObjectArray,this.border=new o.XFAObjectArray,this.break=new o.XFAObjectArray,this.breakAfter=new o.XFAObjectArray,this.breakBefore=new o.XFAObjectArray,this.button=new o.XFAObjectArray,this.calculate=new o.XFAObjectArray,this.caption=new o.XFAObjectArray,this.certificate=new o.XFAObjectArray,this.certificates=new o.XFAObjectArray,this.checkButton=new o.XFAObjectArray,this.choiceList=new o.XFAObjectArray,this.color=new o.XFAObjectArray,this.comb=new o.XFAObjectArray,this.connect=new o.XFAObjectArray,this.contentArea=new o.XFAObjectArray,this.corner=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.dateTimeEdit=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.defaultUi=new o.XFAObjectArray
this.desc=new o.XFAObjectArray,this.digestMethod=new o.XFAObjectArray,this.digestMethods=new o.XFAObjectArray,this.draw=new o.XFAObjectArray,this.edge=new o.XFAObjectArray,this.encoding=new o.XFAObjectArray,this.encodings=new o.XFAObjectArray,this.encrypt=new o.XFAObjectArray,this.encryptData=new o.XFAObjectArray,this.encryption=new o.XFAObjectArray,this.encryptionMethod=new o.XFAObjectArray,this.encryptionMethods=new o.XFAObjectArray,this.event=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.exObject=new o.XFAObjectArray,this.exclGroup=new o.XFAObjectArray,this.execute=new o.XFAObjectArray,this.extras=new o.XFAObjectArray,this.field=new o.XFAObjectArray,this.fill=new o.XFAObjectArray,this.filter=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.font=new o.XFAObjectArray,this.format=new o.XFAObjectArray,this.handler=new o.XFAObjectArray,this.hyphenation=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.imageEdit=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.issuers=new o.XFAObjectArray
this.items=new o.XFAObjectArray,this.keep=new o.XFAObjectArray,this.keyUsage=new o.XFAObjectArray,this.line=new o.XFAObjectArray,this.linear=new o.XFAObjectArray,this.lockDocument=new o.XFAObjectArray,this.manifest=new o.XFAObjectArray,this.margin=new o.XFAObjectArray,this.mdp=new o.XFAObjectArray,this.medium=new o.XFAObjectArray,this.message=new o.XFAObjectArray,this.numericEdit=new o.XFAObjectArray,this.occur=new o.XFAObjectArray,this.oid=new o.XFAObjectArray,this.oids=new o.XFAObjectArray,this.overflow=new o.XFAObjectArray,this.pageArea=new o.XFAObjectArray,this.pageSet=new o.XFAObjectArray,this.para=new o.XFAObjectArray,this.passwordEdit=new o.XFAObjectArray,this.pattern=new o.XFAObjectArray,this.picture=new o.XFAObjectArray,this.radial=new o.XFAObjectArray,this.reason=new o.XFAObjectArray,this.reasons=new o.XFAObjectArray,this.rectangle=new o.XFAObjectArray,this.ref=new o.XFAObjectArray,this.script=new o.XFAObjectArray,this.setProperty=new o.XFAObjectArray,this.signData=new o.XFAObjectArray
this.signature=new o.XFAObjectArray,this.signing=new o.XFAObjectArray,this.solid=new o.XFAObjectArray,this.speak=new o.XFAObjectArray,this.stipple=new o.XFAObjectArray,this.subform=new o.XFAObjectArray,this.subformSet=new o.XFAObjectArray,this.subjectDN=new o.XFAObjectArray,this.subjectDNs=new o.XFAObjectArray,this.submit=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.textEdit=new o.XFAObjectArray,this.time=new o.XFAObjectArray,this.timeStamp=new o.XFAObjectArray,this.toolTip=new o.XFAObjectArray,this.traversal=new o.XFAObjectArray,this.traverse=new o.XFAObjectArray,this.ui=new o.XFAObjectArray,this.validate=new o.XFAObjectArray,this.value=new o.XFAObjectArray,this.variables=new o.XFAObjectArray}}class at extends o.XFAObject{constructor(e){super(p,"radial",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](e){e=e?e[i.$toStyle]():"#FFFFFF"
const t=this.color?this.color[i.$toStyle]():"#000000"
return`radial-gradient(circle at center, ${"toEdge"===this.type?`${e},${t}`:`${t},${e}`})`}}class ot extends o.StringObject{constructor(e){super(p,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class lt extends o.XFAObject{constructor(e){super(p,"reasons",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new o.XFAObjectArray}}class ct extends o.XFAObject{constructor(e){super(p,"rectangle",!0),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new o.XFAObjectArray(4),this.edge=new o.XFAObjectArray(4),this.fill=null}[i.$toHTML](){const e=this.edge.children.length?this.edge.children[0]:new de({}),t=e[i.$toStyle](),r=Object.create(null)
"visible"===this.fill?.presence?Object.assign(r,this.fill[i.$toStyle]()):r.fill="transparent",r.strokeWidth=(0,a.measureToString)("visible"===e.presence?e.thickness:0),r.stroke=t.color
const n=(this.corner.children.length?this.corner.children[0]:new te({}))[i.$toStyle](),s={name:"svg",children:[{name:"rect",attributes:{xmlns:f,width:"100%",height:"100%",x:0,y:0,rx:n.radius,ry:n.radius,style:r}}],attributes:{xmlns:f,style:{overflow:"visible"},width:"100%",height:"100%"}}
return v(this[i.$getParent]()[i.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[s]}):(s.attributes.style.position="absolute",l.HTMLResult.success(s))}}class ut extends o.StringObject{constructor(e){super(p,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class dt extends o.StringObject{constructor(e){super(p,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class ht extends o.XFAObject{constructor(e){super(p,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}t.SetProperty=ht
class pt extends o.XFAObject{constructor(e){super(p,"signData",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ft extends o.XFAObject{constructor(e){super(p,"signature",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class mt extends o.XFAObject{constructor(e){super(p,"signing",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new o.XFAObjectArray}}class gt extends o.XFAObject{constructor(e){super(p,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[i.$toStyle](e){return e?e[i.$toStyle]():"#FFFFFF"}}class bt extends o.StringObject{constructor(e){super(p,"speak"),this.disable=(0,l.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,l.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class yt extends o.XFAObject{constructor(e){super(p,"stipple",!0),this.id=e.id||"",this.rate=(0,l.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[i.$toStyle](e){const t=this.rate/100
return c.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class vt extends o.XFAObject{constructor(e){super(p,"subform",!0),this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,l.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((e=>"-1"===e?-1:(0,l.getMeasurement)(e))),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,l.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.restoreState=(0,l.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,l.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null
this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new o.XFAObjectArray,this.breakAfter=new o.XFAObjectArray,this.breakBefore=new o.XFAObjectArray,this.connect=new o.XFAObjectArray,this.draw=new o.XFAObjectArray,this.event=new o.XFAObjectArray,this.exObject=new o.XFAObjectArray,this.exclGroup=new o.XFAObjectArray,this.field=new o.XFAObjectArray,this.proto=new o.XFAObjectArray,this.setProperty=new o.XFAObjectArray,this.subform=new o.XFAObjectArray,this.subformSet=new o.XFAObjectArray}[i.$getSubformParent](){const e=this[i.$getParent]()
return e instanceof wt?e[i.$getSubformParent]():e}[i.$isBindable](){return!0}[i.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[i.$extra].attempt&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}*[i.$getContainedChildren](){yield*x(this)}[i.$flushHTML](){return(0,s.flushHTML)(this)}[i.$addHTML](e,t){(0,s.addHTML)(this,e,t)}[i.$getAvailableSpace](){return(0,s.getAvailableSpace)(this)}[i.$isSplittable](){const e=this[i.$getSubformParent]()
return!!e[i.$isSplittable]()&&(void 0!==this[i.$extra]._isSplittable?this[i.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[i.$extra]._isSplittable=!1,!1):(!e.layout?.endsWith("-tb")||0===e[i.$extra].numberInLine)&&(this[i.$extra]._isSplittable=!0,!0))}[i.$toHTML](e){if(S(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new U({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()})
e[i.$globalData]=this[i.$globalData],this[i.$appendChild](e),this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new q({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()})
e[i.$globalData]=this[i.$globalData],this[i.$appendChild](e),this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Qe({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer})
e[i.$globalData]=this[i.$globalData],this[i.$appendChild](e),this.overflow.push(e)}this[i.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY
if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,c.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const e=this.breakBefore.children[0]
if(E(e))return l.HTMLResult.breakNode(e)}if(this[i.$extra]?.afterBreakAfter)return l.HTMLResult.EMPTY;(0,a.fixDimensions)(this)
const t=[],r={id:this[i.$uid],class:[]};(0,a.setAccess)(this,r.class),this[i.$extra]||(this[i.$extra]=Object.create(null)),Object.assign(this[i.$extra],{children:t,line:null,attributes:r,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0})
const n=this[i.$getTemplateRoot](),o=n[i.$extra].noLayoutFailure,u=this[i.$isSplittable]()
if(u||P(this),!(0,s.checkDimensions)(this,e))return l.HTMLResult.FAILURE
const d=new Set(["area","draw","exclGroup","field","subform","subformSet"])
if(this.layout.includes("row")){const e=this[i.$getSubformParent]().columnWidths
Array.isArray(e)&&e.length>0&&(this[i.$extra].columnWidths=e,this[i.$extra].currentColumn=0)}const h=(0,a.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),p=["xfaSubform"],f=(0,a.layoutClass)(this)
if(f&&p.push(f),r.style=h,r.class=p,this.name&&(r.xfaName=this.name),this.overflow){const t=this.overflow[i.$getExtra]()
t.addLeader&&(t.addLeader=!1,T(this,t.leader,e))}this[i.$pushPara]()
const m="lr-tb"===this.layout||"rl-tb"===this.layout,g=m?2:1
for(;this[i.$extra].attempt<g;this[i.$extra].attempt++){m&&1===this[i.$extra].attempt&&(this[i.$extra].numberInLine=0)
const e=this[i.$childrenToHTML]({filter:d,include:!0})
if(e.success)break
if(e.isBreak())return this[i.$popPara](),e
if(m&&0===this[i.$extra].attempt&&0===this[i.$extra].numberInLine&&!n[i.$extra].noLayoutFailure){this[i.$extra].attempt=g
break}}if(this[i.$popPara](),u||O(this),n[i.$extra].noLayoutFailure=o,this[i.$extra].attempt===g)return this.overflow&&(this[i.$getTemplateRoot]()[i.$extra].overflowNode=this.overflow),u||delete this[i.$extra],l.HTMLResult.FAILURE
if(this.overflow){const t=this.overflow[i.$getExtra]()
t.addTrailer&&(t.addTrailer=!1,T(this,t.trailer,e))}let b=0,y=0
this.margin&&(b=this.margin.leftInset+this.margin.rightInset,y=this.margin.topInset+this.margin.bottomInset)
const v=Math.max(this[i.$extra].width+b,this.w||0),w=Math.max(this[i.$extra].height+y,this.h||0),x=[this.x,this.y,v,w]
if(""===this.w&&(h.width=(0,a.measureToString)(v)),""===this.h&&(h.height=(0,a.measureToString)(w)),("0px"===h.width||"0px"===h.height)&&0===t.length)return l.HTMLResult.EMPTY
const _={name:"div",attributes:r,children:t}
k(this,r)
const A=l.HTMLResult.success((0,a.createWrapper)(this,_),x)
if(this.breakAfter.children.length>=1){const e=this.breakAfter.children[0]
if(E(e))return this[i.$extra].afterBreakAfter=A,l.HTMLResult.breakNode(e)}return delete this[i.$extra],A}}class wt extends o.XFAObject{constructor(e){super(p,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,l.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new o.XFAObjectArray,this.breakBefore=new o.XFAObjectArray,this.subform=new o.XFAObjectArray,this.subformSet=new o.XFAObjectArray}*[i.$getContainedChildren](){yield*x(this)}[i.$getSubformParent](){let e=this[i.$getParent]()
for(;!(e instanceof vt);)e=e[i.$getParent]()
return e}[i.$isBindable](){return!0}}class xt extends o.ContentObject{constructor(e){super(p,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){this[i.$content]=new Map(this[i.$content].split(this.delimiter).map((e=>((e=e.split("=",2))[0]=e[0].trim(),e))))}}class _t extends o.XFAObject{constructor(e){super(p,"subjectDNs",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new o.XFAObjectArray}}class St extends o.XFAObject{constructor(e){super(p,"submit",!0),this.embedPDF=(0,l.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,l.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,l.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new o.XFAObjectArray,this.signData=new o.XFAObjectArray}}class kt extends o.XFAObject{constructor(e){super(p,"template",!0),this.baseProfile=(0,l.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new o.XFAObjectArray}[i.$finalize](){0===this.subform.children.length&&(0,c.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,c.warn)("XFA - Several subforms in template node: please file a bug."),this[i.$tabIndex]=5e3}[i.$isSplittable](){return!0}[i.$searchNode](e,t){return e.startsWith("#")?[this[i.$ids].get(e.slice(1))]:(0,h.searchNode)(this,t,e,!0,!0)}*[i.$toPages](){if(!this.subform.children.length)return l.HTMLResult.success({name:"div",children:[]})
this[i.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]}
const e=this.subform.children[0]
e.pageSet[i.$cleanPage]()
const t=e.pageSet.pageArea.children,r={name:"div",children:[]}
let n=null,s=null,a=null
if(e.breakBefore.children.length>=1?(s=e.breakBefore.children[0],a=s.target):e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?(s=e.subform.children[0].breakBefore.children[0],a=s.target):e.break?.beforeTarget?(s=e.break,a=s.beforeTarget):e.subform.children.length>=1&&e.subform.children[0].break?.beforeTarget&&(s=e.subform.children[0].break,a=s.beforeTarget),s){const e=this[i.$searchNode](a,s[i.$getParent]())
e instanceof Ze&&(n=e,s[i.$extra]={})}n||(n=t[0]),n[i.$extra]={numberOfUse:1}
const o=n[i.$getParent]()
let u
o[i.$extra]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(n),pageSetIndex:0}
let d=null,h=null,p=!0,f=0,m=0
for(;;){if(p)f=0
else if(r.children.pop(),3==++f)return(0,c.warn)("XFA - Something goes wrong: please file a bug."),r
u=null,this[i.$extra].currentPageArea=n
const t=n[i.$toHTML]().html
r.children.push(t),d&&(this[i.$extra].noLayoutFailure=!0,t.children.push(d[i.$toHTML](n[i.$extra].space).html),d=null),h&&(this[i.$extra].noLayoutFailure=!0,t.children.push(h[i.$toHTML](n[i.$extra].space).html),h=null)
const s=n.contentArea.children,a=t.children.filter((e=>e.attributes.class.includes("xfaContentarea")))
p=!1,this[i.$extra].firstUnsplittable=null,this[i.$extra].noLayoutFailure=!1
const o=t=>{const r=e[i.$flushHTML]()
r&&(p||=r.children?.length>0,a[t].children.push(r))}
for(let n=m,l=s.length;n<l;n++){const t=this[i.$extra].currentContentArea=s[n],l={width:t.w,height:t.h}
m=0,d&&(a[n].children.push(d[i.$toHTML](l).html),d=null),h&&(a[n].children.push(h[i.$toHTML](l).html),h=null)
const c=e[i.$toHTML](l)
if(c.success)return c.html?(p||=c.html.children?.length>0,a[n].children.push(c.html)):!p&&r.children.length>1&&r.children.pop(),r
if(c.isBreak()){const e=c.breakNode
if(o(n),"auto"===e.targetType)continue
e.leader&&(d=this[i.$searchNode](e.leader,e[i.$getParent]()),d=d?d[0]:null),e.trailer&&(h=this[i.$searchNode](e.trailer,e[i.$getParent]()),h=h?h[0]:null),"pageArea"===e.targetType?(u=e[i.$extra].target,n=1/0):e[i.$extra].target?(u=e[i.$extra].target,m=e[i.$extra].index+1,n=1/0):n=e[i.$extra].index}else if(this[i.$extra].overflowNode){const e=this[i.$extra].overflowNode
this[i.$extra].overflowNode=null
const t=e[i.$getExtra](),r=t.target
t.addLeader=null!==t.leader,t.addTrailer=null!==t.trailer,o(n)
const a=n
if(n=1/0,r instanceof Ze)u=r
else if(r instanceof ee){const e=s.indexOf(r);-1!==e?e>a?n=e-1:m=e:(u=r[i.$getParent](),m=u.contentArea.children.indexOf(r))}}else o(n)}this[i.$extra].pageNumber+=1,u&&(u[i.$isUsable]()?u[i.$extra].numberOfUse+=1:u=null),n=u||n[i.$getNextPage](),yield null}}}t.Template=kt
class At extends o.ContentObject{constructor(e){super(p,"text"),this.id=e.id||"",this.maxChars=(0,l.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$acceptWhitespace](){return!0}[i.$onChild](e){return e[i.$namespaceId]===n.NamespaceIds.xhtml.id?(this[i.$content]=e,!0):((0,c.warn)(`XFA - Invalid content in Text: ${e[i.$nodeName]}.`),!1)}[i.$onText](e){this[i.$content]instanceof o.XFAObject||super[i.$onText](e)}[i.$finalize](){"string"==typeof this[i.$content]&&(this[i.$content]=this[i.$content].replaceAll("\r\n","\n"))}[i.$getExtra](){return"string"==typeof this[i.$content]?this[i.$content].split(/[\u2029\u2028\n]/).reduce(((e,t)=>(t&&e.push(t),e)),[]).join("\n"):this[i.$content][i.$text]()}[i.$toHTML](e){if("string"==typeof this[i.$content]){const e=C(this[i.$content]).html
return this[i.$content].includes("\u2029")?(e.name="div",e.children=[],this[i.$content].split("\u2029").map((e=>e.split(/[\u2028\n]/).reduce(((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e)),[]))).forEach((t=>{e.children.push({name:"p",children:t})}))):/[\u2028\n]/.test(this[i.$content])&&(e.name="div",e.children=[],this[i.$content].split(/[\u2028\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))),l.HTMLResult.success(e)}return this[i.$content][i.$toHTML](e)}}t.Text=At
class Ct extends o.XFAObject{constructor(e){super(p,"textEdit",!0),this.allowRichText=(0,l.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,l.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,l.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[i.$toHTML](e){const t=(0,a.toStyle)(this,"border","font","margin")
let r
const n=this[i.$getParent]()[i.$getParent]()
return""===this.multiLine&&(this.multiLine=n instanceof ue?1:0),r=1===this.multiLine?{name:"textarea",attributes:{dataId:n[i.$data]?.[i.$uid]||n[i.$uid],fieldId:n[i.$uid],class:["xfaTextfield"],style:t,"aria-label":A(n),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:n[i.$data]?.[i.$uid]||n[i.$uid],fieldId:n[i.$uid],class:["xfaTextfield"],style:t,"aria-label":A(n),"aria-required":!1}},_(n)&&(r.attributes["aria-required"]=!0,r.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class Pt extends o.StringObject{constructor(e){super(p,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[i.$finalize](){const e=this[i.$content].trim()
this[i.$content]=e?new Date(e):null}[i.$toHTML](e){return C(this[i.$content]?this[i.$content].toString():"")}}class Ot extends o.XFAObject{constructor(e){super(p,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Et extends o.StringObject{constructor(e){super(p,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Tt extends o.XFAObject{constructor(e){super(p,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new o.XFAObjectArray}}class Mt extends o.XFAObject{constructor(e){super(p,"traverse",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[i.$isTransparent](){return!1}}class It extends o.XFAObject{constructor(e){super(p,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[i.$getExtra](){if(void 0===this[i.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue
const t=this[e]
if(t instanceof o.XFAObject)return this[i.$extra]=t,t}this[i.$extra]=null}return this[i.$extra]}[i.$toHTML](e){const t=this[i.$getExtra]()
return t?t[i.$toHTML](e):l.HTMLResult.EMPTY}}class Ft extends o.XFAObject{constructor(e){super(p,"validate",!0),this.formatTest=(0,l.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,l.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,l.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Nt extends o.XFAObject{constructor(e){super(p,"value",!0),this.id=e.id||"",this.override=(0,l.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[i.$setValue](e){const t=this[i.$getParent]()
if(t instanceof Ae&&t.ui?.imageEdit)return this.image||(this.image=new Fe({}),this[i.$appendChild](this.image)),void(this.image[i.$content]=e[i.$content])
const r=e[i.$nodeName]
if(null===this[r]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e]
t instanceof o.XFAObject&&(this[e]=null,this[i.$removeChild](t))}this[e[i.$nodeName]]=e,this[i.$appendChild](e)}else this[r][i.$content]=e[i.$content]}[i.$text](){if(this.exData)return"string"==typeof this.exData[i.$content]?this.exData[i.$content].trim():this.exData[i.$content][i.$text]().trim()
for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue
const t=this[e]
if(t instanceof o.XFAObject)return(t[i.$content]||"").toString().trim()}return null}[i.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const r=this[t]
if(r instanceof o.XFAObject)return r[i.$toHTML](e)}return l.HTMLResult.EMPTY}}t.Value=Nt
class Rt extends o.XFAObject{constructor(e){super(p,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new o.XFAObjectArray,this.date=new o.XFAObjectArray,this.dateTime=new o.XFAObjectArray,this.decimal=new o.XFAObjectArray,this.exData=new o.XFAObjectArray,this.float=new o.XFAObjectArray,this.image=new o.XFAObjectArray,this.integer=new o.XFAObjectArray,this.manifest=new o.XFAObjectArray,this.script=new o.XFAObjectArray,this.text=new o.XFAObjectArray,this.time=new o.XFAObjectArray}[i.$isTransparent](){return!0}}class Dt{static[n.$buildXFAObject](e,t){if(Dt.hasOwnProperty(e)){const r=Dt[e](t)
return r[i.$setSetAttributes](t),r}}static appearanceFilter(e){return new M(e)}static arc(e){return new I(e)}static area(e){return new F(e)}static assist(e){return new N(e)}static barcode(e){return new R(e)}static bind(e){return new D(e)}static bindItems(e){return new j(e)}static bookend(e){return new L(e)}static boolean(e){return new B(e)}static border(e){return new $(e)}static break(e){return new z(e)}static breakAfter(e){return new U(e)}static breakBefore(e){return new q(e)}static button(e){return new H(e)}static calculate(e){return new V(e)}static caption(e){return new G(e)}static certificate(e){return new W(e)}static certificates(e){return new X(e)}static checkButton(e){return new K(e)}static choiceList(e){return new Y(e)}static color(e){return new J(e)}static comb(e){return new Q(e)}static connect(e){return new Z(e)}static contentArea(e){return new ee(e)}static corner(e){return new te(e)}static date(e){return new re(e)}static dateTime(e){return new ie(e)}static dateTimeEdit(e){return new ne(e)}static decimal(e){return new se(e)}static defaultUi(e){return new ae(e)}static desc(e){return new oe(e)}static digestMethod(e){return new le(e)}static digestMethods(e){return new ce(e)}static draw(e){return new ue(e)}static edge(e){return new de(e)}static encoding(e){return new he(e)}static encodings(e){return new pe(e)}static encrypt(e){return new fe(e)}static encryptData(e){return new me(e)}static encryption(e){return new ge(e)}static encryptionMethod(e){return new be(e)}static encryptionMethods(e){return new ye(e)}static event(e){return new ve(e)}static exData(e){return new we(e)}static exObject(e){return new xe(e)}static exclGroup(e){return new _e(e)}static execute(e){return new Se(e)}static extras(e){return new ke(e)}static field(e){return new Ae(e)}static fill(e){return new Ce(e)}static filter(e){return new Pe(e)}static float(e){return new Oe(e)}static font(e){return new Ee(e)}static format(e){return new Te(e)}static handler(e){return new Me(e)}static hyphenation(e){return new Ie(e)}static image(e){return new Fe(e)}static imageEdit(e){return new Ne(e)}static integer(e){return new Re(e)}static issuers(e){return new De(e)}static items(e){return new je(e)}static keep(e){return new Le(e)}static keyUsage(e){return new Be(e)}static line(e){return new $e(e)}static linear(e){return new ze(e)}static lockDocument(e){return new Ue(e)}static manifest(e){return new qe(e)}static margin(e){return new He(e)}static mdp(e){return new Ve(e)}static medium(e){return new Ge(e)}static message(e){return new We(e)}static numericEdit(e){return new Xe(e)}static occur(e){return new Ke(e)}static oid(e){return new Ye(e)}static oids(e){return new Je(e)}static overflow(e){return new Qe(e)}static pageArea(e){return new Ze(e)}static pageSet(e){return new et(e)}static para(e){return new tt(e)}static passwordEdit(e){return new rt(e)}static pattern(e){return new it(e)}static picture(e){return new nt(e)}static proto(e){return new st(e)}static radial(e){return new at(e)}static reason(e){return new ot(e)}static reasons(e){return new lt(e)}static rectangle(e){return new ct(e)}static ref(e){return new ut(e)}static script(e){return new dt(e)}static setProperty(e){return new ht(e)}static signData(e){return new pt(e)}static signature(e){return new ft(e)}static signing(e){return new mt(e)}static solid(e){return new gt(e)}static speak(e){return new bt(e)}static stipple(e){return new yt(e)}static subform(e){return new vt(e)}static subformSet(e){return new wt(e)}static subjectDN(e){return new xt(e)}static subjectDNs(e){return new _t(e)}static submit(e){return new St(e)}static template(e){return new kt(e)}static text(e){return new At(e)}static textEdit(e){return new Ct(e)}static time(e){return new Pt(e)}static timeStamp(e){return new Ot(e)}static toolTip(e){return new Et(e)}static traversal(e){return new Tt(e)}static traverse(e){return new Mt(e)}static ui(e){return new It(e)}static validate(e){return new Ft(e)}static value(e){return new Nt(e)}static variables(e){return new Rt(e)}}t.TemplateNamespace=Dt},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0
const r=Symbol()
t.$buildXFAObject=r
t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,r){const a=e[i.$extra],o=a.availableSpace,[l,c,u,d]=r
switch(e.layout){case"position":a.width=Math.max(a.width,l+u),a.height=Math.max(a.height,c+d),a.children.push(t)
break
case"lr-tb":case"rl-tb":a.line&&1!==a.attempt||(a.line=s(e,[]),a.children.push(a.line),a.numberInLine=0),a.numberInLine+=1,a.line.children.push(t),0===a.attempt?(a.currentWidth+=u,a.height=Math.max(a.height,a.prevHeight+d)):(a.currentWidth=u,a.prevHeight=a.height,a.height+=d,a.attempt=0),a.width=Math.max(a.width,a.currentWidth)
break
case"rl-row":case"row":{a.children.push(t),a.width+=u,a.height=Math.max(a.height,d)
const e=(0,n.measureToString)(a.height)
for(const t of a.children)t.attributes.style.height=e
break}case"table":case"tb":a.width=Math.min(o.width,Math.max(a.width,u)),a.height+=d,a.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[i.$getTemplateRoot]()[i.$extra].firstUnsplittable)return!0
if(0===e.w||0===e.h)return!0
const r=e[i.$getSubformParent](),n=r[i.$extra]?.attempt||0,[,s,a,o]=function(e){let t,r,i=""===e.w?NaN:e.w,n=""===e.h?NaN:e.h,[s,a]=[0,0]
switch(e.anchorType||""){case"bottomCenter":[s,a]=[i/2,n]
break
case"bottomLeft":[s,a]=[0,n]
break
case"bottomRight":[s,a]=[i,n]
break
case"middleCenter":[s,a]=[i/2,n/2]
break
case"middleLeft":[s,a]=[0,n/2]
break
case"middleRight":[s,a]=[i,n/2]
break
case"topCenter":[s,a]=[i/2,0]
break
case"topRight":[s,a]=[i,0]}switch(e.rotate||0){case 0:[t,r]=[-s,-a]
break
case 90:[t,r]=[-a,s],[i,n]=[n,-i]
break
case 180:[t,r]=[s,a],[i,n]=[-i,-n]
break
case 270:[t,r]=[a,-s],[i,n]=[-n,i]}return[e.x+t+Math.min(0,i),e.y+r+Math.min(0,n),Math.abs(i),Math.abs(n)]}(e)
switch(r.layout){case"lr-tb":case"rl-tb":return 0===n?e[i.$getTemplateRoot]()[i.$extra].noLayoutFailure?""!==e.w?Math.round(a-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(o-t.height)>2)&&(""!==e.w?Math.round(a-t.width)<=2||0===r[i.$extra].numberInLine&&t.height>2:t.width>2):!!e[i.$getTemplateRoot]()[i.$extra].noLayoutFailure||!(""!==e.h&&Math.round(o-t.height)>2)&&((""===e.w||Math.round(a-t.width)<=2||!r[i.$isThereMoreWidth]())&&t.height>2)
case"table":case"tb":return!!e[i.$getTemplateRoot]()[i.$extra].noLayoutFailure||(""===e.h||e[i.$isSplittable]()?(""===e.w||Math.round(a-t.width)<=2||!r[i.$isThereMoreWidth]())&&t.height>2:Math.round(o-t.height)<=2)
case"position":if(e[i.$getTemplateRoot]()[i.$extra].noLayoutFailure)return!0
if(""===e.h||Math.round(o+s-t.height)<=2)return!0
return o+s>e[i.$getTemplateRoot]()[i.$extra].currentContentArea.h
case"rl-row":case"row":return!!e[i.$getTemplateRoot]()[i.$extra].noLayoutFailure||(""===e.h||Math.round(o-t.height)<=2)
default:return!0}},t.flushHTML=function(e){if(!e[i.$extra])return null
const t={name:"div",attributes:e[i.$extra].attributes,children:e[i.$extra].children}
if(e[i.$extra].failingNode){const r=e[i.$extra].failingNode[i.$flushHTML]()
r&&(e.layout.endsWith("-tb")?t.children.push(s(e,[r])):t.children.push(r))}if(0===t.children.length)return null
return t},t.getAvailableSpace=function(e){const t=e[i.$extra].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,n=e.margin?e.margin.leftInset+e.margin.rightInset:0
switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[i.$extra].attempt?{width:t.width-n-e[i.$extra].currentWidth,height:t.height-r-e[i.$extra].prevHeight}:{width:t.width-n,height:t.height-r-e[i.$extra].height}
case"rl-row":case"row":return{width:e[i.$extra].columnWidths.slice(e[i.$extra].currentColumn).reduce(((e,t)=>e+t)),height:t.height-n}
case"table":case"tb":return{width:t.width-n,height:t.height-r-e[i.$extra].height}
default:return t}}
var i=r(78),n=r(83)
function s(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,r){let n
if(""!==e.w&&""!==e.h)n=[e.x,e.y,e.w,e.h]
else{if(!r)return null
let s=e.w
if(""===s){if(0===e.maxW){const t=e[i.$getSubformParent]()
s="position"===t.layout&&""!==t.w?0:e.minW}else s=Math.min(e.maxW,r.width)
t.attributes.style.width=c(s)}let a=e.h
if(""===a){if(0===e.maxH){const t=e[i.$getSubformParent]()
a="position"===t.layout&&""!==t.h?0:e.minH}else a=Math.min(e.maxH,r.height)
t.attributes.style.height=c(a)}n=[e.x,e.y,s,a]}return n},t.createWrapper=function(e,t){const{attributes:r}=t,{style:n}=r,s={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]}
if(r.class.push("xfaWrapped"),e.border){const{widths:r,insets:a}=e.border[i.$extra]
let o,l,c=a[0],u=a[3]
const d=a[0]+a[2],p=a[1]+a[3]
switch(e.border.hand){case"even":c-=r[0]/2,u-=r[3]/2,o=`calc(100% + ${(r[1]+r[3])/2-p}px)`,l=`calc(100% + ${(r[0]+r[2])/2-d}px)`
break
case"left":c-=r[0],u-=r[3],o=`calc(100% + ${r[1]+r[3]-p}px)`,l=`calc(100% + ${r[0]+r[2]-d}px)`
break
case"right":o=p?`calc(100% - ${p}px)`:"100%",l=d?`calc(100% - ${d}px)`:"100%"}const f=["xfaBorder"]
h(e.border)&&f.push("xfaPrintOnly")
const m={name:"div",attributes:{class:f,style:{top:`${c}px`,left:`${u}px`,width:o,height:l}},children:[]}
for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==n[e]&&(m.attributes.style[e]=n[e],delete n[e])
s.children.push(m,t)}else s.children.push(t)
for(const i of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==n[i]&&(s.attributes.style[i]=n[i],delete n[i])
s.attributes.style.position="absolute"===n.position?"absolute":"relative",delete n.position,n.alignSelf&&(s.attributes.style.alignSelf=n.alignSelf,delete n.alignSelf)
return s},t.fixDimensions=function(e){const t=e[i.$getSubformParent]()
if(t.layout?.includes("row")){const r=t[i.$extra],n=e.colSpan
let s
s=-1===n?r.columnWidths.slice(r.currentColumn).reduce(((e,t)=>e+t),0):r.columnWidths.slice(r.currentColumn,r.currentColumn+n).reduce(((e,t)=>e+t),0),isNaN(s)||(e.w=s)}t.layout&&"position"!==t.layout&&(e.x=e.y=0)
"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce(((e,t)=>e+t),0))},t.fixTextIndent=function(e){const t=(0,s.getMeasurement)(e.textIndent,"0px")
if(t>=0)return
const r="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),i=(0,s.getMeasurement)(e[r],"0px")
e[r]=i-t+"px"},t.fixURL=function(e){const t=(0,n.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0})
return t?t.href:null},t.isPrintOnly=h,t.layoutClass=function(e){switch(e.layout){case"position":default:return"xfaPosition"
case"lr-tb":return"xfaLrTb"
case"rl-row":return"xfaRlRow"
case"rl-tb":return"xfaRlTb"
case"row":return"xfaRow"
case"table":return"xfaTable"
case"tb":return"xfaTb"}},t.layoutNode=function(e,t){let r=null,n=null,s=!1
if((!e.w||!e.h)&&e.value){let a=0,o=0
e.margin&&(a=e.margin.leftInset+e.margin.rightInset,o=e.margin.topInset+e.margin.bottomInset)
let l=null,c=null
e.para&&(c=Object.create(null),l=""===e.para.lineHeight?null:e.para.lineHeight,c.top=""===e.para.spaceAbove?0:e.para.spaceAbove,c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,c.left=""===e.para.marginLeft?0:e.para.marginLeft,c.right=""===e.para.marginRight?0:e.para.marginRight)
let u=e.font
if(!u){const t=e[i.$getTemplateRoot]()
let r=e[i.$getParent]()
for(;r&&r!==t;){if(r.font){u=r.font
break}r=r[i.$getParent]()}}const h=(e.w||t.width)-a,p=e[i.$globalData].fontFinder
if(e.value.exData&&e.value.exData[i.$content]&&"text/html"===e.value.exData.contentType){const t=d(e.value.exData[i.$content],u,c,l,p,h)
n=t.width,r=t.height,s=t.isBroken}else{const t=e.value[i.$text]()
if(t){const e=d(t,u,c,l,p,h)
n=e.width,r=e.height,s=e.isBroken}}null===n||e.w||(n+=a),null===r||e.h||(r+=o)}return{w:n,h:r,isBroken:s}},t.measureToString=c,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive")
break
case"readOnly":t.push("xfaReadOnly")
break
case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,r,i){if(!r)return void delete i.fontFamily
const n=(0,s.stripQuotes)(e.typeface)
i.fontFamily=`"${n}"`
const o=r.find(n)
if(o){const{fontFamily:r}=o.regular.cssFontInfo
r!==n&&(i.fontFamily=`"${r}"`)
const s=p(t)
if(s&&""!==s.lineHeight)return
if(i.lineHeight)return
const l=(0,a.selectFont)(e,o)
l&&(i.lineHeight=Math.max(1.2,l.lineHeight))}},t.setMinMaxDimensions=function(e,t){"position"===e[i.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=c(e.minW)),e.maxW>0&&(t.maxWidth=c(e.maxW)),e.minH>0&&(t.minHeight=c(e.minH)),e.maxH>0&&(t.maxHeight=c(e.maxH)))},t.setPara=function(e,t,r){if(r.attributes.class?.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"))
const n=p(e)
if(n){const e=r.attributes.style
switch(e.display="flex",e.flexDirection="column",n.vAlign){case"top":e.justifyContent="start"
break
case"bottom":e.justifyContent="end"
break
case"middle":e.justifyContent="center"}const t=n[i.$toStyle]()
for(const[r,i]of Object.entries(t))r in e||(e[r]=i)}}},t.toStyle=function(e,...t){const r=Object.create(null)
for(const s of t){const t=e[s]
if(null!==t)if(u.hasOwnProperty(s))u[s](e,r)
else if(t instanceof l.XFAObject){const e=t[i.$toStyle]()
e?Object.assign(r,e):(0,n.warn)(`(DEBUG) - XFA - style for ${s} not implemented yet`)}}return r}
var i=r(78),n=r(2),s=r(84),a=r(85),o=r(86),l=r(87)
function c(e){return"string"==typeof e?"0px":Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}const u={anchorType(e,t){const r=e[i.$getSubformParent]()
if(r&&(!r.layout||"position"===r.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)"
break
case"bottomLeft":t.transform+="translate(0,-100%)"
break
case"bottomRight":t.transform+="translate(-100%,-100%)"
break
case"middleCenter":t.transform+="translate(-50%,-50%)"
break
case"middleLeft":t.transform+="translate(0,-50%)"
break
case"middleRight":t.transform+="translate(-100%,-50%)"
break
case"topCenter":t.transform+="translate(-50%,0)"
break
case"topRight":t.transform+="translate(-100%,0)"}},dimensions(e,t){const r=e[i.$getSubformParent]()
let n=e.w
const s=e.h
if(r.layout?.includes("row")){const t=r[i.$extra],s=e.colSpan
let a;-1===s?(a=t.columnWidths.slice(t.currentColumn).reduce(((e,t)=>e+t),0),t.currentColumn=0):(a=t.columnWidths.slice(t.currentColumn,t.currentColumn+s).reduce(((e,t)=>e+t),0),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(a)||(n=e.w=a)}t.width=""!==n?c(n):"auto",t.height=""!==s?c(s):"auto"},position(e,t){const r=e[i.$getSubformParent]()
r?.layout&&"position"!==r.layout||(t.position="absolute",t.left=c(e.x),t.top=c(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden"
break
case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[i.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all"
break
case"radix":t.textAlign="left"
break
default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start"
break
case"center":t.alignSelf="center"
break
case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[i.$toStyle]().margin)}}
function d(e,t,r,n,s,a){const l=new o.TextMeasure(t,r,n,s)
return"string"==typeof e?l.addString(e):e[i.$pushGlyphs](l),l.compute(a)}function h(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function p(e){const t=e[i.$getTemplateRoot]()[i.$extra].paraStack
return t.length?t.at(-1):null}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){const t=-1
if(!e)return{x:t,y:t,width:t,height:t}
const r=e.trim().split(/\s*,\s*/).map((e=>o(e,"-1")))
if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t}
const[i,n,s,a]=r
return{x:i,y:n,width:s,height:a}},t.getColor=function(e,t=[0,0,0]){let[r,i,n]=t
if(!e)return{r:r,g:i,b:n}
const s=e.trim().split(/\s*,\s*/).map((e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255))).map((e=>isNaN(e)?0:e))
if(s.length<3)return{r:r,g:i,b:n}
return[r,i,n]=s,{r:r,g:i,b:n}},t.getFloat=function({data:e,defaultValue:t,validate:r}){if(!e)return t
e=e.trim()
const i=parseFloat(e)
if(!isNaN(i)&&r(i))return i
return t},t.getInteger=function({data:e,defaultValue:t,validate:r}){if(!e)return t
e=e.trim()
const i=parseInt(e,10)
if(!isNaN(i)&&r(i))return i
return t},t.getKeyword=a,t.getMeasurement=o,t.getRatio=function(e){if(!e)return{num:1,den:1}
const t=e.trim().split(/\s*:\s*/).map((e=>parseFloat(e))).filter((e=>!isNaN(e)))
1===t.length&&t.push(1)
if(0===t.length)return{num:1,den:1}
const[r,i]=t
return{num:r,den:i}},t.getRelevant=function(e){if(!e)return[]
return e.trim().split(/\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)})))},t.getStringOption=function(e,t){return a({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){if(e.startsWith("'")||e.startsWith('"'))return e.slice(1,-1)
return e}
var i=r(2)
const n={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},s=/([+-]?\d+\.?\d*)(.*)/
function a({data:e,defaultValue:t,validate:r}){return e&&r(e=e.trim())?e:t}function o(e,t="0"){if(t||="0",!e)return o(t)
const r=e.trim().match(s)
if(!r)return o(t)
const[,i,a]=r,l=parseFloat(i)
if(isNaN(l))return o(t)
if(0===l)return 0
const c=n[a]
return c?c(l):l}class l{static get FAILURE(){return(0,i.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,i.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,r,i){this.success=e,this.html=t,this.bbox=r,this.breakNode=i}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e,t=null){return new l(!0,e,t,null)}}t.HTMLResult=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e,t=!1){let r=null
if(e){const t=(0,n.stripQuotes)(e.typeface),s=e[i.$globalData].fontFinder.find(t)
r=a(e,s)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10}
const s=e.size||10,o=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,l=void 0===r.lineGap?.2:r.lineGap
return{lineHeight:o*s,lineGap:l*s,lineNoGap:Math.max(1,o-l)*s}},t.selectFont=a
var i=r(78),n=r(84),s=r(2)
function a(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e,t=null){for(const i of e)this.addPdfFont(i)
for(const i of this.fonts.values())i.regular||(i.regular=i.italic||i.bold||i.bolditalic)
if(!t||0===t.size)return
const r=this.fonts.get("PdfJS-Fallback-PdfJS-XFA")
for(const i of t)this.fonts.set(i,r)}addPdfFont(e){const t=e.cssFontInfo,r=t.fontFamily
let i=this.fonts.get(r)
i||(i=Object.create(null),this.fonts.set(r,i),this.defaultFont||(this.defaultFont=i))
let n=""
const s=parseFloat(t.fontWeight)
0!==parseFloat(t.italicAngle)?n=s>=700?"bolditalic":"italic":s>=700&&(n="bold"),n||((e.name.includes("Bold")||e.psName?.includes("Bold"))&&(n="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||e.psName?.includes("Italic")||e.psName?.endsWith("It"))&&(n+="italic")),n||(n="regular"),i[n]=e}getDefault(){return this.defaultFont}find(e,t=!0){let r=this.fonts.get(e)||this.cache.get(e)
if(r)return r
const i=/,|-|_| |bolditalic|bold|italic|regular|it/gi
let n=e.replaceAll(i,"")
if(r=this.fonts.get(n),r)return this.cache.set(e,r),r
n=n.toLowerCase()
const a=[]
for(const[s,o]of this.fonts.entries())s.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(o)
if(0===a.length)for(const[,s]of this.fonts.entries())s.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(s)
if(0===a.length){n=n.replaceAll(/psmt|mt/gi,"")
for(const[e,t]of this.fonts.entries())e.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(t)}if(0===a.length)for(const s of this.fonts.values())s.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(s)
return a.length>=1?(1!==a.length&&t&&(0,s.warn)(`XFA - Too many choices to guess the correct font: ${e}`),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,s.warn)(`XFA - Cannot find the font: ${e}`)),null)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0
var i=r(85)
class n{constructor(e,t,r,n){if(this.lineHeight=r,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(n))
this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing}
const s=n.find(e.typeface)
s?(this.pdfFont=(0,i.selectFont)(e,s),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(n))):[this.pdfFont,this.xfaFont]=this.defaultFont(n)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault()
if(t?.regular){const e=t.regular
return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class s{constructor(e,t,r,i){this.fontFinder=i,this.stack=[new n(e,t,r,i)]}pushData(e,t,r){const i=this.stack.at(-1)
for(const n of["typeface","posture","weight","size","letterSpacing"])e[n]||(e[n]=i.xfaFont[n])
for(const n of["top","bottom","left","right"])isNaN(t[n])&&(t[n]=i.paraMargin[n])
const s=new n(e,t,r||i.lineHeight,this.fontFinder)
s.pdfFont||(s.pdfFont=i.pdfFont),this.stack.push(s)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,r,i){this.glyphs=[],this.fontSelector=new s(e,t,r,i),this.extraHeight=0}pushData(e,t,r){this.fontSelector.pushData(e,t,r)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont()
this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return
const t=this.fontSelector.topFont(),r=t.xfaFont.size
if(t.pdfFont){const i=t.xfaFont.letterSpacing,n=t.pdfFont,s=n.lineHeight||1.2,a=t.lineHeight||Math.max(1.2,s)*r,o=s-(void 0===n.lineGap?.2:n.lineGap),l=Math.max(1,o)*r,c=r/1e3,u=n.defaultWidth||n.charsToGlyphs(" ")[0].width
for(const t of e.split(/[\u2029\n]/)){const e=n.encodeString(t).join(""),r=n.charsToGlyphs(e)
for(const t of r){const e=t.width||u
this.glyphs.push([e*c+i,a,l,t.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([r,1.2*r,r,e,!1])
this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,r=0,i=0,n=0,s=0,a=0,o=!1,l=!0
for(let c=0,u=this.glyphs.length;c<u;c++){const[u,d,h,p,f]=this.glyphs[c],m=" "===p,g=l?h:d
f?(i=Math.max(i,s),s=0,n+=a,a=g,t=-1,r=0,l=!1):m?s+u>e?(i=Math.max(i,s),s=0,n+=a,a=g,t=-1,r=0,o=!0,l=!1):(a=Math.max(g,a),r=s,s+=u,t=c):s+u>e?(n+=a,a=g,-1!==t?(c=t,i=Math.max(i,r),s=0,t=-1,r=0):(i=Math.max(i,s),s=u),o=!0,l=!1):(s+=u,a=Math.max(g,a))}return i=Math.max(i,s),n+=a+this.extraHeight,{width:1.02*i,height:n,isBroken:o}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=void 0
var i=r(78),n=r(84),s=r(2),a=r(3),o=r(81),l=r(88)
const c=Symbol(),u=Symbol(),d=Symbol(),h=Symbol("_children"),p=Symbol(),f=Symbol(),m=Symbol(),g=Symbol(),b=Symbol(),y=Symbol(),v=Symbol(),w=Symbol(),x=Symbol(),_=Symbol("parent"),S=Symbol(),k=Symbol(),A=Symbol()
let C=0
const P=o.NamespaceIds.datasets.id
class O{constructor(e,t,r=!1){this[i.$namespaceId]=e,this[i.$nodeName]=t,this[v]=r,this[_]=null,this[h]=[],this[i.$uid]=`${t}${C++}`,this[i.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,r=null
for(const{name:n,index:s}of e){for(let e=0,a=isFinite(s)?s:0;e<=a;e++){const e=t[i.$namespaceId]===P?-1:t[i.$namespaceId]
r=new M(e,n),t[i.$appendChild](r)}t=r}return r}[i.$onChild](e){if(!this[v]||!this[i.$onChildCheck](e))return!1
const t=e[i.$nodeName],r=this[t]
if(!(r instanceof E))return null!==r&&this[i.$removeChild](r),this[t]=e,this[i.$appendChild](e),!0
if(r.push(e))return this[i.$appendChild](e),!0
let n=""
return this.id?n=` (id: ${this.id})`:this.name&&(n=` (name: ${this.name} ${this.h.value})`),(0,s.warn)(`XFA - node "${this[i.$nodeName]}"${n} has already enough "${t}"!`),!1}[i.$onChildCheck](e){return this.hasOwnProperty(e[i.$nodeName])&&e[i.$namespaceId]===this[i.$namespaceId]}[i.$isNsAgnostic](){return!1}[i.$acceptWhitespace](){return!1}[i.$isCDATAXml](){return!1}[i.$isBindable](){return!1}[i.$popPara](){this.para&&this[i.$getTemplateRoot]()[i.$extra].paraStack.pop()}[i.$pushPara](){this[i.$getTemplateRoot]()[i.$extra].paraStack.push(this.para)}[i.$setId](e){this.id&&this[i.$namespaceId]===o.NamespaceIds.template.id&&e.set(this.id,this)}[i.$getTemplateRoot](){return this[i.$globalData].template}[i.$isSplittable](){return!1}[i.$isThereMoreWidth](){return!1}[i.$appendChild](e){e[_]=this,this[h].push(e),!e[i.$globalData]&&this[i.$globalData]&&(e[i.$globalData]=this[i.$globalData])}[i.$removeChild](e){const t=this[h].indexOf(e)
this[h].splice(t,1)}[i.$hasSettableValue](){return this.hasOwnProperty("value")}[i.$setValue](e){}[i.$onText](e){}[i.$finalize](){}[i.$clean](e){delete this[v],this[i.$cleanup]&&(e.clean(this[i.$cleanup]),delete this[i.$cleanup])}[i.$indexOf](e){return this[h].indexOf(e)}[i.$insertAt](e,t){t[_]=this,this[h].splice(e,0,t),!t[i.$globalData]&&this[i.$globalData]&&(t[i.$globalData]=this[i.$globalData])}[i.$isTransparent](){return!this.name}[i.$lastAttribute](){return""}[i.$text](){return 0===this[h].length?this[i.$content]:this[h].map((e=>e[i.$text]())).join("")}get[d](){const e=Object.getPrototypeOf(this)
if(!e._attributes){const t=e._attributes=new Set
for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof O||this[e]instanceof E)break
t.add(e)}}return(0,s.shadow)(this,d,e._attributes)}[i.$isDescendent](e){let t=this
for(;t;){if(t===e)return!0
t=t[i.$getParent]()}return!1}[i.$getParent](){return this[_]}[i.$getSubformParent](){return this[i.$getParent]()}[i.$getChildren](e=null){return e?this[e]:this[h]}[i.$dump](){const e=Object.create(null)
this[i.$content]&&(e.$content=this[i.$content])
for(const t of Object.getOwnPropertyNames(this)){const r=this[t]
null!==r&&(r instanceof O?e[t]=r[i.$dump]():r instanceof E?r.isEmpty()||(e[t]=r.dump()):e[t]=r)}return e}[i.$toStyle](){return null}[i.$toHTML](){return n.HTMLResult.EMPTY}*[i.$getContainedChildren](){for(const e of this[i.$getChildren]())yield e}*[g](e,t){for(const r of this[i.$getContainedChildren]())if(!e||t===e.has(r[i.$nodeName])){const e=this[i.$getAvailableSpace](),t=r[i.$toHTML](e)
t.success||(this[i.$extra].failingNode=r),yield t}}[i.$flushHTML](){return null}[i.$addHTML](e,t){this[i.$extra].children.push(e)}[i.$getAvailableSpace](){}[i.$childrenToHTML]({filter:e=null,include:t=!0}){if(this[i.$extra].generator){const e=this[i.$getAvailableSpace](),t=this[i.$extra].failingNode[i.$toHTML](e)
if(!t.success)return t
t.html&&this[i.$addHTML](t.html,t.bbox),delete this[i.$extra].failingNode}else this[i.$extra].generator=this[g](e,t)
for(;;){const e=this[i.$extra].generator.next()
if(e.done)break
const t=e.value
if(!t.success)return t
t.html&&this[i.$addHTML](t.html,t.bbox)}return this[i.$extra].generator=null,n.HTMLResult.EMPTY}[i.$setSetAttributes](e){this[k]=new Set(Object.keys(e))}[y](e){const t=this[d],r=this[k]
return[...e].filter((e=>t.has(e)&&!r.has(e)))}[i.$resolvePrototypes](e,t=new Set){for(const r of this[h])r[S](e,t)}[S](e,t){const r=this[b](e,t)
r?this[c](r,e,t):this[i.$resolvePrototypes](e,t)}[b](e,t){const{use:r,usehref:n}=this
if(!r&&!n)return null
let a=null,o=null,u=null,d=r
if(n?(d=n,n.startsWith("#som(")&&n.endsWith(")")?o=n.slice(5,-1):n.startsWith(".#som(")&&n.endsWith(")")?o=n.slice(6,-1):n.startsWith("#")?u=n.slice(1):n.startsWith(".#")&&(u=n.slice(2))):r.startsWith("#")?u=r.slice(1):o=r,this.use=this.usehref="",u?a=e.get(u):(a=(0,l.searchNode)(e.get(i.$root),this,o,!0,!1),a&&(a=a[0])),!a)return(0,s.warn)(`XFA - Invalid prototype reference: ${d}.`),null
if(a[i.$nodeName]!==this[i.$nodeName])return(0,s.warn)(`XFA - Incompatible prototype: ${a[i.$nodeName]} !== ${this[i.$nodeName]}.`),null
if(t.has(a))return(0,s.warn)("XFA - Cycle detected in prototypes use."),null
t.add(a)
const h=a[b](e,t)
return h&&a[c](h,e,t),a[i.$resolvePrototypes](e,t),t.delete(a),a}[c](e,t,r){if(r.has(e))return void(0,s.warn)("XFA - Cycle detected in prototypes use.")
!this[i.$content]&&e[i.$content]&&(this[i.$content]=e[i.$content])
new Set(r).add(e)
for(const i of this[y](e[k]))this[i]=e[i],this[k]&&this[k].add(i)
for(const n of Object.getOwnPropertyNames(this)){if(this[d].has(n))continue
const s=this[n],a=e[n]
if(s instanceof E){for(const e of s[h])e[S](t,r)
for(let n=s[h].length,o=a[h].length;n<o;n++){const a=e[h][n][i.$clone]()
if(!s.push(a))break
a[_]=this,this[h].push(a),a[S](t,r)}}else if(null===s){if(null!==a){const e=a[i.$clone]()
e[_]=this,this[n]=e,this[h].push(e),e[S](t,r)}}else s[i.$resolvePrototypes](t,r),a&&s[c](a,t,r)}}static[p](e){return Array.isArray(e)?e.map((e=>O[p](e))):"object"==typeof e&&null!==e?Object.assign({},e):e}[i.$clone](){const e=Object.create(Object.getPrototypeOf(this))
for(const t of Object.getOwnPropertySymbols(this))try{e[t]=this[t]}catch{(0,s.shadow)(e,t,this[t])}e[i.$uid]=`${e[i.$nodeName]}${C++}`,e[h]=[]
for(const t of Object.getOwnPropertyNames(this)){if(this[d].has(t)){e[t]=O[p](this[t])
continue}const r=this[t]
e[t]=r instanceof E?new E(r[w]):null}for(const t of this[h]){const r=t[i.$nodeName],n=t[i.$clone]()
e[h].push(n),n[_]=e,null===e[r]?e[r]=n:e[r][h].push(n)}return e}[i.$getChildren](e=null){return e?this[h].filter((t=>t[i.$nodeName]===e)):this[h]}[i.$getChildrenByClass](e){return this[e]}[i.$getChildrenByName](e,t,r=!0){return Array.from(this[i.$getChildrenByNameIt](e,t,r))}*[i.$getChildrenByNameIt](e,t,r=!0){if("parent"!==e){for(const r of this[h])r[i.$nodeName]===e&&(yield r),r.name===e&&(yield r),(t||r[i.$isTransparent]())&&(yield*r[i.$getChildrenByNameIt](e,t,!1))
r&&this[d].has(e)&&(yield new T(this,e,this[e]))}else yield this[_]}}t.XFAObject=O
class E{constructor(e=1/0){this[w]=e,this[h]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[h].length<=this[w]?(this[h].push(e),!0):((0,s.warn)(`XFA - node "${e[i.$nodeName]}" accepts no more than ${this[w]} children`),!1)}isEmpty(){return 0===this[h].length}dump(){return 1===this[h].length?this[h][0][i.$dump]():this[h].map((e=>e[i.$dump]()))}[i.$clone](){const e=new E(this[w])
return e[h]=this[h].map((e=>e[i.$clone]())),e}get children(){return this[h]}clear(){this[h].length=0}}t.XFAObjectArray=E
class T{constructor(e,t,r){this[_]=e,this[i.$nodeName]=t,this[i.$content]=r,this[i.$consumed]=!1,this[i.$uid]="attribute"+C++}[i.$getParent](){return this[_]}[i.$isDataValue](){return!0}[i.$getDataValue](){return this[i.$content].trim()}[i.$setValue](e){e=e.value||"",this[i.$content]=e.toString()}[i.$text](){return this[i.$content]}[i.$isDescendent](e){return this[_]===e||this[_][i.$isDescendent](e)}}t.XFAAttribute=T
class M extends O{constructor(e,t,r={}){if(super(e,t),this[i.$content]="",this[f]=null,"#text"!==t){const e=new Map
this[u]=e
for(const[t,i]of Object.entries(r))e.set(t,new T(this,t,i))
if(r.hasOwnProperty(i.$nsAttributes)){const e=r[i.$nsAttributes].xfa.dataNode
void 0!==e&&("dataGroup"===e?this[f]=!1:"dataValue"===e&&(this[f]=!0))}}this[i.$consumed]=!1}[i.$toString](e){const t=this[i.$nodeName]
if("#text"===t)return void e.push((0,a.encodeToXmlString)(this[i.$content]))
const r=(0,s.utf8StringToString)(t),n=this[i.$namespaceId]===P?"xfa:":""
e.push(`<${n}${r}`)
for(const[o,l]of this[u].entries()){const t=(0,s.utf8StringToString)(o)
e.push(` ${t}="${(0,a.encodeToXmlString)(l[i.$content])}"`)}if(null!==this[f]&&(this[f]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[i.$content]||0!==this[h].length){if(e.push(">"),this[i.$content])"string"==typeof this[i.$content]?e.push((0,a.encodeToXmlString)(this[i.$content])):this[i.$content][i.$toString](e)
else for(const t of this[h])t[i.$toString](e)
e.push(`</${n}${r}>`)}else e.push("/>")}[i.$onChild](e){if(this[i.$content]){const e=new M(this[i.$namespaceId],"#text")
this[i.$appendChild](e),e[i.$content]=this[i.$content],this[i.$content]=""}return this[i.$appendChild](e),!0}[i.$onText](e){this[i.$content]+=e}[i.$finalize](){if(this[i.$content]&&this[h].length>0){const e=new M(this[i.$namespaceId],"#text")
this[i.$appendChild](e),e[i.$content]=this[i.$content],delete this[i.$content]}}[i.$toHTML](){return"#text"===this[i.$nodeName]?n.HTMLResult.success({name:"#text",value:this[i.$content]}):n.HTMLResult.EMPTY}[i.$getChildren](e=null){return e?this[h].filter((t=>t[i.$nodeName]===e)):this[h]}[i.$getAttributes](){return this[u]}[i.$getChildrenByClass](e){const t=this[u].get(e)
return void 0!==t?t:this[i.$getChildren](e)}*[i.$getChildrenByNameIt](e,t){const r=this[u].get(e)
r&&(yield r)
for(const n of this[h])n[i.$nodeName]===e&&(yield n),t&&(yield*n[i.$getChildrenByNameIt](e,t))}*[i.$getAttributeIt](e,t){const r=this[u].get(e)
!r||t&&r[i.$consumed]||(yield r)
for(const n of this[h])yield*n[i.$getAttributeIt](e,t)}*[i.$getRealChildrenByNameIt](e,t,r){for(const n of this[h])n[i.$nodeName]!==e||r&&n[i.$consumed]||(yield n),t&&(yield*n[i.$getRealChildrenByNameIt](e,t,r))}[i.$isDataValue](){return null===this[f]?0===this[h].length||this[h][0][i.$namespaceId]===o.NamespaceIds.xhtml.id:this[f]}[i.$getDataValue](){return null===this[f]?0===this[h].length?this[i.$content].trim():this[h][0][i.$namespaceId]===o.NamespaceIds.xhtml.id?this[h][0][i.$text]().trim():null:this[i.$content].trim()}[i.$setValue](e){e=e.value||"",this[i.$content]=e.toString()}[i.$dump](e=!1){const t=Object.create(null)
e&&(t.$ns=this[i.$namespaceId]),this[i.$content]&&(t.$content=this[i.$content]),t.$name=this[i.$nodeName],t.children=[]
for(const r of this[h])t.children.push(r[i.$dump](e))
t.attributes=Object.create(null)
for(const[r,n]of this[u])t.attributes[r]=n[i.$content]
return t}}t.XmlObject=M
class I extends O{constructor(e,t){super(e,t),this[i.$content]=""}[i.$onText](e){this[i.$content]+=e}[i.$finalize](){}}t.ContentObject=I
class F extends I{constructor(e,t,r){super(e,t),this[x]=r}[i.$finalize](){this[i.$content]=(0,n.getKeyword)({data:this[i.$content],defaultValue:this[x][0],validate:e=>this[x].includes(e)})}[i.$clean](e){super[i.$clean](e),delete this[x]}}t.OptionObject=F
class N extends I{[i.$finalize](){this[i.$content]=this[i.$content].trim()}}t.StringObject=N
class R extends I{constructor(e,t,r,i){super(e,t),this[m]=r,this[A]=i}[i.$finalize](){this[i.$content]=(0,n.getInteger)({data:this[i.$content],defaultValue:this[m],validate:this[A]})}[i.$clean](e){super[i.$clean](e),delete this[m],delete this[A]}}t.IntegerObject=R
t.Option01=class extends R{constructor(e,t){super(e,t,0,(e=>1===e))}}
t.Option10=class extends R{constructor(e,t){super(e,t,1,(e=>0===e))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,r){const s=u(r)
if(!s)return null
if(s.some((e=>e.operator===o.dotDot)))return null
const a=l.get(s[0].name)
let c=0
a?(e=a(e,t),c=1):e=t||e
for(let l=s.length;c<l;c++){const{name:t,operator:r,index:a}=s[c]
if(!isFinite(a))return s[c].index=0,e.createNodes(s.slice(c))
let l
switch(r){case o.dot:l=e[i.$getChildrenByName](t,!1)
break
case o.dotDot:l=e[i.$getChildrenByName](t,!0)
break
case o.dotHash:l=e[i.$getChildrenByClass](t),l=l.isXFAObjectArray?l.children:[l]}if(0===l.length)return e.createNodes(s.slice(c))
if(!(a<l.length))return s[c].index=a-l.length,e.createNodes(s.slice(c))
{const t=l[a]
if(!t.isXFAObject)return(0,n.warn)("XFA - Cannot create a node."),null
e=t}}return null},t.searchNode=function(e,t,r,n=!0,s=!0){const a=u(r,n)
if(!a)return null
const d=l.get(a[0].name)
let h,p=0
d?(h=!0,e=[d(e,t)],p=1):(h=null===t,e=[t||e])
for(let l=a.length;p<l;p++){const{name:r,cacheName:n,operator:l,index:u}=a[p],d=[]
for(const t of e){if(!t.isXFAObject)continue
let e,a
if(s&&(a=c.get(t),a||(a=new Map,c.set(t,a)),e=a.get(n)),!e){switch(l){case o.dot:e=t[i.$getChildrenByName](r,!1)
break
case o.dotDot:e=t[i.$getChildrenByName](r,!0)
break
case o.dotHash:e=t[i.$getChildrenByClass](r),e=e.isXFAObjectArray?e.children:[e]}s&&a.set(n,e)}e.length>0&&d.push(e)}if(0!==d.length||h||0!==p)e=isFinite(u)?d.filter((e=>u<e.length)).map((e=>e[u])):d.flat()
else{const r=t[i.$getParent]()
if(!(t=r))return null
p=-1,e=[t]}}if(0===e.length)return null
return e}
var i=r(78),n=r(2)
const s=/^[^.[]+/,a=/^[^\]]+/,o={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},l=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[i.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),c=new WeakMap
function u(e,t,r=!0){let i=e.match(s)
if(!i)return null
let[l]=i
const c=[{name:l,cacheName:"."+l,index:0,js:null,formCalc:null,operator:o.dot}]
let u=l.length
for(;u<e.length;){const h=u
if("["===e.charAt(u++)){if(i=e.slice(u).match(a),!i)return(0,n.warn)("XFA - Invalid index in SOM expression"),null
c.at(-1).index="*"===(d=(d=i[0]).trim())?1/0:parseInt(d,10)||0,u+=i[0].length+1
continue}let p
switch(e.charAt(u)){case".":if(!t)return null
u++,p=o.dotDot
break
case"#":u++,p=o.dotHash
break
case"[":if(r)return(0,n.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null
p=o.dotBracket
break
case"(":if(r)return(0,n.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null
p=o.dotParen
break
default:p=o.dot}if(i=e.slice(u).match(s),!i)break;[l]=i,u+=l.length,c.push({name:l,cacheName:e.slice(h,u),operator:p,index:0,js:null,formCalc:null})}var d
return c}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0
var i=r(78)
t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[i.$getChildren]()]]
for(;t.length>0;){const r=t.at(-1),[n,s]=r
if(n+1===s.length){t.pop()
continue}const a=s[++r[0]],o=e.get(a[i.$uid])
if(o)a[i.$setValue](o)
else{const t=a[i.$getAttributes]()
for(const r of t.values()){const t=e.get(r[i.$uid])
if(t){r[i.$setValue](t)
break}}}const l=a[i.$getChildren]()
l.length>0&&t.push([-1,l])}const r=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">']
if(this.dataset)for(const n of this.dataset[i.$getChildren]())"data"!==n[i.$nodeName]&&n[i.$toString](r)
return this.data[i.$toString](r),r.push("</xfa:datasets>"),r.join("")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0
var i=r(78),n=r(71),s=r(91),a=r(2)
class o extends n.XMLParserBase{constructor(e=null,t=!1){super(),this._builder=new s.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=n.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===n.XMLParserErrorCode.NoError)return this._current[i.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" ")),this._richText||this._current[i.$acceptWhitespace]()?this._current[i.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[i.$onText](e.trim())}onCdata(e){this._current[i.$onText](e)}_mkAttributes(e,t){let r=null,n=null
const s=Object.create({})
for(const{name:o,value:l}of e)if("xmlns"===o)r?(0,a.warn)(`XFA - multiple namespace definition in <${t}>`):r=l
else if(o.startsWith("xmlns:")){const e=o.substring(6)
n||(n=[]),n.push({prefix:e,value:l})}else{const e=o.indexOf(":")
if(-1===e)s[o]=l
else{let t=s[i.$nsAttributes]
t||(t=s[i.$nsAttributes]=Object.create(null))
const[r,n]=[o.slice(0,e),o.slice(e+1)];(t[r]||=Object.create(null))[n]=l}}return[r,n,s]}_getNameAndPrefix(e,t){const r=e.indexOf(":")
return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}onBeginElement(e,t,r){const[n,s,a]=this._mkAttributes(t,e),[o,l]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:l,name:o,attributes:a,namespace:n,prefixes:s})
if(c[i.$globalData]=this._globalData,r)return c[i.$finalize](),this._current[i.$onChild](c)&&c[i.$setId](this._ids),void c[i.$clean](this._builder)
this._stack.push(this._current),this._current=c}onEndElement(e){const t=this._current
if(t[i.$isCDATAXml]()&&"string"==typeof t[i.$content]){const e=new o
e._globalData=this._globalData
const r=e.parse(t[i.$content])
t[i.$content]=null,t[i.$onChild](r)}t[i.$finalize](),this._current=this._stack.pop(),this._current[i.$onChild](t)&&t[i.$setId](this._ids),t[i.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0
var i=r(81),n=r(78),s=r(92),a=r(80),o=r(101),l=r(2),c=r(87)
class u extends c.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[n.$ids]=e}[n.$onChild](e){return this.element=e,!0}[n.$finalize](){super[n.$finalize](),this.element.template instanceof a.Template&&(this[n.$ids].set(n.$root,this.element),this.element.template[n.$resolvePrototypes](this[n.$ids]),this.element.template[n.$ids]=this[n.$ids])}}class d extends c.XFAObject{constructor(){super(-1,"",Object.create(null))}[n.$onChild](e){return!1}}t.Builder=class{constructor(e=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(i.NamespaceIds).map((({id:e})=>e))),this._currentNamespace=e||new o.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new u(e)}build({nsPrefix:e,name:t,attributes:r,namespace:a,prefixes:o}){const l=null!==a
if(l&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(a)),o&&this._addNamespacePrefix(o),r.hasOwnProperty(n.$nsAttributes)){const e=s.NamespaceSetUp.datasets,t=r[n.$nsAttributes]
let i=null
for(const[r,n]of Object.entries(t)){if(this._getNamespaceToUse(r)===e){i={xfa:n}
break}}i?r[n.$nsAttributes]=i:delete r[n.$nsAttributes]}const c=this._getNamespaceToUse(e),u=c?.[i.$buildXFAObject](t,r)||new d
return u[n.$isNsAgnostic]()&&this._nsAgnosticLevel++,(l||o||u[n.$isNsAgnostic]())&&(u[n.$cleanup]={hasNamespace:l,prefixes:o,nsAgnostic:u[n.$isNsAgnostic]()}),u}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e)
if(t)return t
for(const[r,{check:n}]of Object.entries(i.NamespaceIds))if(n(e)){if(t=s.NamespaceSetUp[r],t)return this._namespaces.set(e,t),t
break}return t=new o.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}_addNamespacePrefix(e){for(const{prefix:t,value:r}of e){const e=this._searchNamespace(r)
let i=this._namespacePrefixes.get(t)
i||(i=[],this._namespacePrefixes.set(t,i)),i.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace
const t=this._namespacePrefixes.get(e)
return t?.length>0?t.at(-1):((0,l.warn)(`Unknown namespace prefix: ${e}.`),null)}clean(e){const{hasNamespace:t,prefixes:r,nsAgnostic:i}=e
t&&(this._currentNamespace=this._namespaceStack.pop()),r&&r.forEach((({prefix:e})=>{this._namespacePrefixes.get(e).pop()})),i&&this._nsAgnosticLevel--}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0
var i=r(93),n=r(94),s=r(95),a=r(96),o=r(97),l=r(98),c=r(80),u=r(99),d=r(100)
const h={config:i.ConfigNamespace,connection:n.ConnectionSetNamespace,datasets:s.DatasetsNamespace,localeSet:a.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:u.XdpNamespace,xhtml:d.XhtmlNamespace}
t.NamespaceSetUp=h},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0
var i=r(81),n=r(78),s=r(87),a=r(84),o=r(2)
const l=i.NamespaceIds.config.id
class c extends s.XFAObject{constructor(e){super(l,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new s.XFAObjectArray}}class u extends s.XFAObject{constructor(e){super(l,"acrobat7",!0),this.dynamicRender=null}}class d extends s.OptionObject{constructor(e){super(l,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class h extends s.OptionObject{constructor(e){super(l,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class p extends s.Option01{constructor(e){super(l,"addSilentPrint")}}class f extends s.Option01{constructor(e){super(l,"addViewerPreferences")}}class m extends s.Option10{constructor(e){super(l,"adjustData")}}class g extends s.IntegerObject{constructor(e){super(l,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class b extends s.XFAObject{constructor(e){super(l,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new s.XFAObjectArray}}class y extends s.ContentObject{constructor(e){super(l,"alwaysEmbed")}}class v extends s.StringObject{constructor(e){super(l,"amd")}}class w extends s.XFAObject{constructor(e){super(l,"area"),this.level=(0,a.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3}),this.name=(0,a.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class x extends s.OptionObject{constructor(e){super(l,"attributes",["preserve","delegate","ignore"])}}class _ extends s.OptionObject{constructor(e){super(l,"autoSave",["disabled","enabled"])}}class S extends s.StringObject{constructor(e){super(l,"base")}}class k extends s.XFAObject{constructor(e){super(l,"batchOutput"),this.format=(0,a.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class A extends s.ContentObject{constructor(e){super(l,"behaviorOverride")}[n.$finalize](){this[n.$content]=new Map(this[n.$content].trim().split(/\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class C extends s.XFAObject{constructor(e){super(l,"cache",!0),this.templateCache=null}}class P extends s.Option01{constructor(e){super(l,"change")}}class O extends s.XFAObject{constructor(e){super(l,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new s.XFAObjectArray}}class E extends s.XFAObject{constructor(e){super(l,"compress"),this.scope=(0,a.getStringOption)(e.scope,["imageOnly","document"])}}class T extends s.Option01{constructor(e){super(l,"compressLogicalStructure")}}class M extends s.Option10{constructor(e){super(l,"compressObjectStream")}}class I extends s.XFAObject{constructor(e){super(l,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class F extends s.XFAObject{constructor(e){super(l,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new s.XFAObjectArray}}class N extends s.OptionObject{constructor(e){super(l,"conformance",["A","B"])}}class R extends s.Option01{constructor(e){super(l,"contentCopy")}}class D extends s.IntegerObject{constructor(e){super(l,"copies",1,(e=>e>=1))}}class j extends s.StringObject{constructor(e){super(l,"creator")}}class L extends s.IntegerObject{constructor(e){super(l,"currentPage",0,(e=>e>=0))}}class B extends s.XFAObject{constructor(e){super(l,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new s.XFAObjectArray,this.transform=new s.XFAObjectArray}}class $ extends s.XFAObject{constructor(e){super(l,"debug",!0),this.uri=null}}class z extends s.ContentObject{constructor(e){super(l,"defaultTypeface"),this.writingScript=(0,a.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class U extends s.OptionObject{constructor(e){super(l,"destination",["pdf","pcl","ps","webClient","zpl"])}}class q extends s.Option01{constructor(e){super(l,"documentAssembly")}}class H extends s.XFAObject{constructor(e){super(l,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class V extends s.OptionObject{constructor(e){super(l,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class G extends s.OptionObject{constructor(e){super(l,"dynamicRender",["forbidden","required"])}}class W extends s.Option01{constructor(e){super(l,"embed")}}class X extends s.Option01{constructor(e){super(l,"encrypt")}}class K extends s.XFAObject{constructor(e){super(l,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class Y extends s.OptionObject{constructor(e){super(l,"encryptionLevel",["40bit","128bit"])}}class J extends s.StringObject{constructor(e){super(l,"enforce")}}class Q extends s.XFAObject{constructor(e){super(l,"equate"),this.force=(0,a.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class Z extends s.XFAObject{constructor(e){super(l,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,r=this._unicodeRange
for(let i of r.split(",").map((e=>e.trim())).filter((e=>!!e)))i=i.split("-",2).map((e=>{const r=e.match(t)
return r?parseInt(r[1],16):0})),1===i.length&&i.push(i[0]),e.push(i)
return(0,o.shadow)(this,"unicodeRange",e)}}class ee extends s.ContentObject{constructor(e){super(l,"exclude")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class te extends s.StringObject{constructor(e){super(l,"excludeNS")}}class re extends s.OptionObject{constructor(e){super(l,"flipLabel",["usePrinterSetting","on","off"])}}class ie extends s.XFAObject{constructor(e){super(l,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new s.XFAObjectArray,this.defaultTypeface=new s.XFAObjectArray,this.neverEmbed=new s.XFAObjectArray}}class ne extends s.Option01{constructor(e){super(l,"formFieldFilling")}}class se extends s.StringObject{constructor(e){super(l,"groupParent")}}class ae extends s.OptionObject{constructor(e){super(l,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class oe extends s.StringObject{constructor(e){super(l,"includeXDPContent")}}class le extends s.OptionObject{constructor(e){super(l,"incrementalLoad",["none","forwardOnly"])}}class ce extends s.Option01{constructor(e){super(l,"incrementalMerge")}}class ue extends s.Option01{constructor(e){super(l,"interactive")}}class de extends s.OptionObject{constructor(e){super(l,"jog",["usePrinterSetting","none","pageSet"])}}class he extends s.XFAObject{constructor(e){super(l,"labelPrinter",!0),this.name=(0,a.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class pe extends s.OptionObject{constructor(e){super(l,"layout",["paginate","panel"])}}class fe extends s.IntegerObject{constructor(e){super(l,"level",0,(e=>e>0))}}class me extends s.Option01{constructor(e){super(l,"linearized")}}class ge extends s.StringObject{constructor(e){super(l,"locale")}}class be extends s.StringObject{constructor(e){super(l,"localeSet")}}class ye extends s.XFAObject{constructor(e){super(l,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class ve extends s.XFAObject{constructor(e){super(l,"map",!0),this.equate=new s.XFAObjectArray,this.equateRange=new s.XFAObjectArray}}class we extends s.XFAObject{constructor(e){super(l,"mediumInfo",!0),this.map=null}}class xe extends s.XFAObject{constructor(e){super(l,"message",!0),this.msgId=null,this.severity=null}}class _e extends s.XFAObject{constructor(e){super(l,"messaging",!0),this.message=new s.XFAObjectArray}}class Se extends s.OptionObject{constructor(e){super(l,"mode",["append","overwrite"])}}class ke extends s.Option01{constructor(e){super(l,"modifyAnnots")}}class Ae extends s.IntegerObject{constructor(e){super(l,"msgId",1,(e=>e>=1))}}class Ce extends s.StringObject{constructor(e){super(l,"nameAttr")}}class Pe extends s.ContentObject{constructor(e){super(l,"neverEmbed")}}class Oe extends s.IntegerObject{constructor(e){super(l,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class Ee extends s.XFAObject{constructor(e){super(l,"openAction",!0),this.destination=null}}class Te extends s.XFAObject{constructor(e){super(l,"output",!0),this.to=null,this.type=null,this.uri=null}}class Me extends s.StringObject{constructor(e){super(l,"outputBin")}}class Ie extends s.XFAObject{constructor(e){super(l,"outputXSL",!0),this.uri=null}}class Fe extends s.OptionObject{constructor(e){super(l,"overprint",["none","both","draw","field"])}}class Ne extends s.StringObject{constructor(e){super(l,"packets")}[n.$finalize](){"*"!==this[n.$content]&&(this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class Re extends s.XFAObject{constructor(e){super(l,"pageOffset"),this.x=(0,a.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,a.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class De extends s.StringObject{constructor(e){super(l,"pageRange")}[n.$finalize](){const e=this[n.$content].trim().split(/\s+/).map((e=>parseInt(e,10))),t=[]
for(let r=0,i=e.length;r<i;r+=2)t.push(e.slice(r,r+2))
this[n.$content]=t}}class je extends s.OptionObject{constructor(e){super(l,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class Le extends s.OptionObject{constructor(e){super(l,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Be extends s.IntegerObject{constructor(e){super(l,"part",1,(e=>!1))}}class $e extends s.XFAObject{constructor(e){super(l,"pcl",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class ze extends s.XFAObject{constructor(e){super(l,"pdf",!0),this.name=e.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class Ue extends s.XFAObject{constructor(e){super(l,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class qe extends s.XFAObject{constructor(e){super(l,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class He extends s.Option01{constructor(e){super(l,"pickTrayByPDFSize")}}class Ve extends s.StringObject{constructor(e){super(l,"picture")}}class Ge extends s.Option01{constructor(e){super(l,"plaintextMetadata")}}class We extends s.OptionObject{constructor(e){super(l,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Xe extends s.XFAObject{constructor(e){super(l,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new s.XFAObjectArray,this.labelPrinter=new s.XFAObjectArray,this.pcl=new s.XFAObjectArray,this.pdf=new s.XFAObjectArray,this.ps=new s.XFAObjectArray,this.submitUrl=new s.XFAObjectArray,this.webClient=new s.XFAObjectArray,this.zpl=new s.XFAObjectArray}}class Ke extends s.Option01{constructor(e){super(l,"print")}}class Ye extends s.Option01{constructor(e){super(l,"printHighQuality")}}class Je extends s.OptionObject{constructor(e){super(l,"printScaling",["appdefault","noScaling"])}}class Qe extends s.StringObject{constructor(e){super(l,"printerName")}}class Ze extends s.StringObject{constructor(e){super(l,"producer")}}class et extends s.XFAObject{constructor(e){super(l,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class tt extends s.ContentObject{constructor(e){super(l,"range")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s*,\s*/,2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>(1===e.length&&e.push(e[0]),e)))}}class rt extends s.ContentObject{constructor(e){super(l,"record")}[n.$finalize](){this[n.$content]=this[n.$content].trim()
const e=parseInt(this[n.$content],10)
!isNaN(e)&&e>=0&&(this[n.$content]=e)}}class it extends s.ContentObject{constructor(e){super(l,"relevant")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/)}}class nt extends s.ContentObject{constructor(e){super(l,"rename")}[n.$finalize](){this[n.$content]=this[n.$content].trim(),(this[n.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[n.$content]))&&(0,o.warn)("XFA - Rename: invalid XFA name")}}class st extends s.OptionObject{constructor(e){super(l,"renderPolicy",["server","client"])}}class at extends s.OptionObject{constructor(e){super(l,"runScripts",["both","client","none","server"])}}class ot extends s.XFAObject{constructor(e){super(l,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class lt extends s.OptionObject{constructor(e){super(l,"scriptModel",["XFA","none"])}}class ct extends s.OptionObject{constructor(e){super(l,"severity",["ignore","error","information","trace","warning"])}}class ut extends s.XFAObject{constructor(e){super(l,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class dt extends s.XFAObject{constructor(e){super(l,"staple"),this.mode=(0,a.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class ht extends s.StringObject{constructor(e){super(l,"startNode")}}class pt extends s.IntegerObject{constructor(e){super(l,"startPage",0,(e=>!0))}}class ft extends s.OptionObject{constructor(e){super(l,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class mt extends s.StringObject{constructor(e){super(l,"submitUrl")}}class gt extends s.IntegerObject{constructor(e){super(l,"subsetBelow",100,(e=>e>=0&&e<=100))}}class bt extends s.Option01{constructor(e){super(l,"suppressBanner")}}class yt extends s.Option01{constructor(e){super(l,"tagged")}}class vt extends s.XFAObject{constructor(e){super(l,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class wt extends s.OptionObject{constructor(e){super(l,"threshold",["trace","error","information","warning"])}}class xt extends s.OptionObject{constructor(e){super(l,"to",["null","memory","stderr","stdout","system","uri"])}}class _t extends s.XFAObject{constructor(e){super(l,"templateCache"),this.maxEntries=(0,a.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class St extends s.XFAObject{constructor(e){super(l,"trace",!0),this.area=new s.XFAObjectArray}}class kt extends s.XFAObject{constructor(e){super(l,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class At extends s.OptionObject{constructor(e){super(l,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ct extends s.StringObject{constructor(e){super(l,"uri")}}class Pt extends s.OptionObject{constructor(e){super(l,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Ot extends s.ContentObject{constructor(e){super(l,"validateApprovalSignatures")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class Et extends s.OptionObject{constructor(e){super(l,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Tt extends s.OptionObject{constructor(e){super(l,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Mt extends s.XFAObject{constructor(e){super(l,"VersionControl"),this.outputBelow=(0,a.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,a.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,a.getStringOption)(e.sourceBelow,["update","maintain"])}}class It extends s.XFAObject{constructor(e){super(l,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class Ft extends s.XFAObject{constructor(e){super(l,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Nt extends s.OptionObject{constructor(e){super(l,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Rt extends s.ContentObject{constructor(e){super(l,"window")}[n.$finalize](){const e=this[n.$content].trim().split(/\s*,\s*/,2).map((e=>parseInt(e,10)))
e.some((e=>isNaN(e)))?this[n.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[n.$content]=e)}}class Dt extends s.XFAObject{constructor(e){super(l,"xdc",!0),this.uri=new s.XFAObjectArray,this.xsl=new s.XFAObjectArray}}class jt extends s.XFAObject{constructor(e){super(l,"xdp",!0),this.packets=null}}class Lt extends s.XFAObject{constructor(e){super(l,"xsl",!0),this.debug=null,this.uri=null}}class Bt extends s.XFAObject{constructor(e){super(l,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class $t{static[i.$buildXFAObject](e,t){if($t.hasOwnProperty(e))return $t[e](t)}static acrobat(e){return new c(e)}static acrobat7(e){return new u(e)}static ADBE_JSConsole(e){return new d(e)}static ADBE_JSDebugger(e){return new h(e)}static addSilentPrint(e){return new p(e)}static addViewerPreferences(e){return new f(e)}static adjustData(e){return new m(e)}static adobeExtensionLevel(e){return new g(e)}static agent(e){return new b(e)}static alwaysEmbed(e){return new y(e)}static amd(e){return new v(e)}static area(e){return new w(e)}static attributes(e){return new x(e)}static autoSave(e){return new _(e)}static base(e){return new S(e)}static batchOutput(e){return new k(e)}static behaviorOverride(e){return new A(e)}static cache(e){return new C(e)}static change(e){return new P(e)}static common(e){return new O(e)}static compress(e){return new E(e)}static compressLogicalStructure(e){return new T(e)}static compressObjectStream(e){return new M(e)}static compression(e){return new I(e)}static config(e){return new F(e)}static conformance(e){return new N(e)}static contentCopy(e){return new R(e)}static copies(e){return new D(e)}static creator(e){return new j(e)}static currentPage(e){return new L(e)}static data(e){return new B(e)}static debug(e){return new $(e)}static defaultTypeface(e){return new z(e)}static destination(e){return new U(e)}static documentAssembly(e){return new q(e)}static driver(e){return new H(e)}static duplexOption(e){return new V(e)}static dynamicRender(e){return new G(e)}static embed(e){return new W(e)}static encrypt(e){return new X(e)}static encryption(e){return new K(e)}static encryptionLevel(e){return new Y(e)}static enforce(e){return new J(e)}static equate(e){return new Q(e)}static equateRange(e){return new Z(e)}static exclude(e){return new ee(e)}static excludeNS(e){return new te(e)}static flipLabel(e){return new re(e)}static fontInfo(e){return new ie(e)}static formFieldFilling(e){return new ne(e)}static groupParent(e){return new se(e)}static ifEmpty(e){return new ae(e)}static includeXDPContent(e){return new oe(e)}static incrementalLoad(e){return new le(e)}static incrementalMerge(e){return new ce(e)}static interactive(e){return new ue(e)}static jog(e){return new de(e)}static labelPrinter(e){return new he(e)}static layout(e){return new pe(e)}static level(e){return new fe(e)}static linearized(e){return new me(e)}static locale(e){return new ge(e)}static localeSet(e){return new be(e)}static log(e){return new ye(e)}static map(e){return new ve(e)}static mediumInfo(e){return new we(e)}static message(e){return new xe(e)}static messaging(e){return new _e(e)}static mode(e){return new Se(e)}static modifyAnnots(e){return new ke(e)}static msgId(e){return new Ae(e)}static nameAttr(e){return new Ce(e)}static neverEmbed(e){return new Pe(e)}static numberOfCopies(e){return new Oe(e)}static openAction(e){return new Ee(e)}static output(e){return new Te(e)}static outputBin(e){return new Me(e)}static outputXSL(e){return new Ie(e)}static overprint(e){return new Fe(e)}static packets(e){return new Ne(e)}static pageOffset(e){return new Re(e)}static pageRange(e){return new De(e)}static pagination(e){return new je(e)}static paginationOverride(e){return new Le(e)}static part(e){return new Be(e)}static pcl(e){return new $e(e)}static pdf(e){return new ze(e)}static pdfa(e){return new Ue(e)}static permissions(e){return new qe(e)}static pickTrayByPDFSize(e){return new He(e)}static picture(e){return new Ve(e)}static plaintextMetadata(e){return new Ge(e)}static presence(e){return new We(e)}static present(e){return new Xe(e)}static print(e){return new Ke(e)}static printHighQuality(e){return new Ye(e)}static printScaling(e){return new Je(e)}static printerName(e){return new Qe(e)}static producer(e){return new Ze(e)}static ps(e){return new et(e)}static range(e){return new tt(e)}static record(e){return new rt(e)}static relevant(e){return new it(e)}static rename(e){return new nt(e)}static renderPolicy(e){return new st(e)}static runScripts(e){return new at(e)}static script(e){return new ot(e)}static scriptModel(e){return new lt(e)}static severity(e){return new ct(e)}static silentPrint(e){return new ut(e)}static staple(e){return new dt(e)}static startNode(e){return new ht(e)}static startPage(e){return new pt(e)}static submitFormat(e){return new ft(e)}static submitUrl(e){return new mt(e)}static subsetBelow(e){return new gt(e)}static suppressBanner(e){return new bt(e)}static tagged(e){return new yt(e)}static template(e){return new vt(e)}static templateCache(e){return new _t(e)}static threshold(e){return new wt(e)}static to(e){return new xt(e)}static trace(e){return new St(e)}static transform(e){return new kt(e)}static type(e){return new At(e)}static uri(e){return new Ct(e)}static validate(e){return new Pt(e)}static validateApprovalSignatures(e){return new Ot(e)}static validationMessaging(e){return new Et(e)}static version(e){return new Tt(e)}static versionControl(e){return new Mt(e)}static viewerPreferences(e){return new It(e)}static webClient(e){return new Ft(e)}static whitespace(e){return new Nt(e)}static window(e){return new Rt(e)}static xdc(e){return new Dt(e)}static xdp(e){return new jt(e)}static xsl(e){return new Lt(e)}static zpl(e){return new Bt(e)}}t.ConfigNamespace=$t},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0
var i=r(81),n=r(87)
const s=i.NamespaceIds.connectionSet.id
class a extends n.XFAObject{constructor(e){super(s,"connectionSet",!0),this.wsdlConnection=new n.XFAObjectArray,this.xmlConnection=new n.XFAObjectArray,this.xsdConnection=new n.XFAObjectArray}}class o extends n.XFAObject{constructor(e){super(s,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends n.XFAObject{constructor(e){super(s,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends n.StringObject{constructor(e){super(s,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends n.StringObject{constructor(e){super(s,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends n.StringObject{constructor(e){super(s,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends n.StringObject{constructor(e){super(s,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends n.StringObject{constructor(e){super(s,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends n.StringObject{constructor(e){super(s,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class m extends n.XFAObject{constructor(e){super(s,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class g extends n.XFAObject{constructor(e){super(s,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class b extends n.XFAObject{constructor(e){super(s,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class y{static[i.$buildXFAObject](e,t){if(y.hasOwnProperty(e))return y[e](t)}static connectionSet(e){return new a(e)}static effectiveInputPolicy(e){return new o(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new u(e)}static soapAction(e){return new d(e)}static soapAddress(e){return new h(e)}static uri(e){return new p(e)}static wsdlAddress(e){return new f(e)}static wsdlConnection(e){return new m(e)}static xmlConnection(e){return new g(e)}static xsdConnection(e){return new b(e)}}t.ConnectionSetNamespace=y},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0
var i=r(78),n=r(81),s=r(87)
const a=n.NamespaceIds.datasets.id
class o extends s.XmlObject{constructor(e){super(a,"data",e)}[i.$isNsAgnostic](){return!0}}class l extends s.XFAObject{constructor(e){super(a,"datasets",!0),this.data=null,this.Signature=null}[i.$onChild](e){const t=e[i.$nodeName];("data"===t&&e[i.$namespaceId]===a||"Signature"===t&&e[i.$namespaceId]===n.NamespaceIds.signature.id)&&(this[t]=e),this[i.$appendChild](e)}}class c{static[n.$buildXFAObject](e,t){if(c.hasOwnProperty(e))return c[e](t)}static datasets(e){return new l(e)}static data(e){return new o(e)}}t.DatasetsNamespace=c},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0
var i=r(81),n=r(87),s=r(84)
const a=i.NamespaceIds.localeSet.id
class o extends n.XFAObject{constructor(e){super(a,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new n.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new n.XFAObjectArray(2)}}class l extends n.StringObject{constructor(e){super(a,"currencySymbol"),this.name=(0,s.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends n.XFAObject{constructor(e){super(a,"currencySymbols",!0),this.currencySymbol=new n.XFAObjectArray(3)}}class u extends n.StringObject{constructor(e){super(a,"datePattern"),this.name=(0,s.getStringOption)(e.name,["full","long","med","short"])}}class d extends n.XFAObject{constructor(e){super(a,"datePatterns",!0),this.datePattern=new n.XFAObjectArray(4)}}class h extends n.ContentObject{constructor(e){super(a,"dateTimeSymbols")}}class p extends n.StringObject{constructor(e){super(a,"day")}}class f extends n.XFAObject{constructor(e){super(a,"dayNames",!0),this.abbr=(0,s.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new n.XFAObjectArray(7)}}class m extends n.StringObject{constructor(e){super(a,"era")}}class g extends n.XFAObject{constructor(e){super(a,"eraNames",!0),this.era=new n.XFAObjectArray(2)}}class b extends n.XFAObject{constructor(e){super(a,"locale",!0),this.desc=e.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class y extends n.XFAObject{constructor(e){super(a,"localeSet",!0),this.locale=new n.XFAObjectArray}}class v extends n.StringObject{constructor(e){super(a,"meridiem")}}class w extends n.XFAObject{constructor(e){super(a,"meridiemNames",!0),this.meridiem=new n.XFAObjectArray(2)}}class x extends n.StringObject{constructor(e){super(a,"month")}}class _ extends n.XFAObject{constructor(e){super(a,"monthNames",!0),this.abbr=(0,s.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new n.XFAObjectArray(12)}}class S extends n.StringObject{constructor(e){super(a,"numberPattern"),this.name=(0,s.getStringOption)(e.name,["full","long","med","short"])}}class k extends n.XFAObject{constructor(e){super(a,"numberPatterns",!0),this.numberPattern=new n.XFAObjectArray(4)}}class A extends n.StringObject{constructor(e){super(a,"numberSymbol"),this.name=(0,s.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class C extends n.XFAObject{constructor(e){super(a,"numberSymbols",!0),this.numberSymbol=new n.XFAObjectArray(5)}}class P extends n.StringObject{constructor(e){super(a,"timePattern"),this.name=(0,s.getStringOption)(e.name,["full","long","med","short"])}}class O extends n.XFAObject{constructor(e){super(a,"timePatterns",!0),this.timePattern=new n.XFAObjectArray(4)}}class E extends n.XFAObject{constructor(e){super(a,"typeFace",!0),this.name=""|e.name}}class T extends n.XFAObject{constructor(e){super(a,"typeFaces",!0),this.typeFace=new n.XFAObjectArray}}class M{static[i.$buildXFAObject](e,t){if(M.hasOwnProperty(e))return M[e](t)}static calendarSymbols(e){return new o(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new u(e)}static datePatterns(e){return new d(e)}static dateTimeSymbols(e){return new h(e)}static day(e){return new p(e)}static dayNames(e){return new f(e)}static era(e){return new m(e)}static eraNames(e){return new g(e)}static locale(e){return new b(e)}static localeSet(e){return new y(e)}static meridiem(e){return new v(e)}static meridiemNames(e){return new w(e)}static month(e){return new x(e)}static monthNames(e){return new _(e)}static numberPattern(e){return new S(e)}static numberPatterns(e){return new k(e)}static numberSymbol(e){return new A(e)}static numberSymbols(e){return new C(e)}static timePattern(e){return new P(e)}static timePatterns(e){return new O(e)}static typeFace(e){return new E(e)}static typeFaces(e){return new T(e)}}t.LocaleSetNamespace=M},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0
var i=r(81),n=r(87)
const s=i.NamespaceIds.signature.id
class a extends n.XFAObject{constructor(e){super(s,"signature",!0)}}class o{static[i.$buildXFAObject](e,t){if(o.hasOwnProperty(e))return o[e](t)}static signature(e){return new a(e)}}t.SignatureNamespace=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0
var i=r(81),n=r(87)
const s=i.NamespaceIds.stylesheet.id
class a extends n.XFAObject{constructor(e){super(s,"stylesheet",!0)}}class o{static[i.$buildXFAObject](e,t){if(o.hasOwnProperty(e))return o[e](t)}static stylesheet(e){return new a(e)}}t.StylesheetNamespace=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0
var i=r(81),n=r(78),s=r(87)
const a=i.NamespaceIds.xdp.id
class o extends s.XFAObject{constructor(e){super(a,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new s.XFAObjectArray,this.template=null}[n.$onChildCheck](e){const t=i.NamespaceIds[e[n.$nodeName]]
return t&&e[n.$namespaceId]===t.id}}class l{static[i.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static xdp(e){return new o(e)}}t.XdpNamespace=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0
var i=r(78),n=r(81),s=r(83),a=r(84),o=r(87)
const l=n.NamespaceIds.xhtml.id,c=Symbol(),u=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),d=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,a.getMeasurement)(e),(0,s.measureToString)(.99*e))],["letter-spacing",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["line-height",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["margin",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["margin-bottom",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["margin-left",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["margin-right",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["margin-top",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["text-indent",e=>(0,s.measureToString)((0,a.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,s.measureToString)((0,a.getMeasurement)(e))]]),h=/\s+/g,p=/[\r\n]+/g,f=/\r\n?/g
function m(e,t,r){const n=Object.create(null)
if(!e)return n
const o=Object.create(null)
for(const[i,s]of e.split(";").map((e=>e.split(":",2)))){const e=d.get(i)
if(""===e)continue
let t=s
e&&(t="string"==typeof e?e:e(s,o)),i.endsWith("scale")?n.transform=n.transform?`${n[i]} ${t}`:t:n[i.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=t}if(n.fontFamily&&(0,s.setFontFamily)({typeface:n.fontFamily,weight:n.fontWeight||"normal",posture:n.fontStyle||"normal",size:o.fontSize||0},t,t[i.$globalData].fontFinder,n),r&&n.verticalAlign&&"0px"!==n.verticalAlign&&n.fontSize){const e=.583,t=.333,r=(0,a.getMeasurement)(n.fontSize)
n.fontSize=(0,s.measureToString)(r*e),n.verticalAlign=(0,s.measureToString)(Math.sign((0,a.getMeasurement)(n.verticalAlign))*r*t)}return r&&n.fontSize&&(n.fontSize=`calc(${n.fontSize} * var(--scale-factor))`),(0,s.fixTextIndent)(n),n}const g=new Set(["body","html"])
class b extends o.XmlObject{constructor(e,t){super(l,t),this[c]=!1,this.style=e.style||""}[i.$clean](e){var t
super[i.$clean](e),this.style=(t=this).style?t.style.trim().split(/\s*;\s*/).filter((e=>!!e)).map((e=>e.split(/\s*:\s*/,2))).filter((([e,r])=>("font-family"===e&&t[i.$globalData].usedTypefaces.add(r),u.has(e)))).map((e=>e.join(":"))).join(";"):""}[i.$acceptWhitespace](){return!g.has(this[i.$nodeName])}[i.$onText](e,t=!1){t?this[c]=!0:(e=e.replaceAll(p,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(h," "))),e&&(this[i.$content]+=e)}[i.$pushGlyphs](e,t=!0){const r=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN}
let s=null
for(const[i,o]of this.style.split(";").map((e=>e.split(":",2))))switch(i){case"font-family":r.typeface=(0,a.stripQuotes)(o)
break
case"font-size":r.size=(0,a.getMeasurement)(o)
break
case"font-weight":r.weight=o
break
case"font-style":r.posture=o
break
case"letter-spacing":r.letterSpacing=(0,a.getMeasurement)(o)
break
case"margin":const e=o.split(/ \t/).map((e=>(0,a.getMeasurement)(e)))
switch(e.length){case 1:n.top=n.bottom=n.left=n.right=e[0]
break
case 2:n.top=n.bottom=e[0],n.left=n.right=e[1]
break
case 3:n.top=e[0],n.bottom=e[2],n.left=n.right=e[1]
break
case 4:n.top=e[0],n.left=e[1],n.bottom=e[2],n.right=e[3]}break
case"margin-top":n.top=(0,a.getMeasurement)(o)
break
case"margin-bottom":n.bottom=(0,a.getMeasurement)(o)
break
case"margin-left":n.left=(0,a.getMeasurement)(o)
break
case"margin-right":n.right=(0,a.getMeasurement)(o)
break
case"line-height":s=(0,a.getMeasurement)(o)}if(e.pushData(r,n,s),this[i.$content])e.addString(this[i.$content])
else for(const a of this[i.$getChildren]())"#text"!==a[i.$nodeName]?a[i.$pushGlyphs](e):e.addString(a[i.$content])
t&&e.popFont()}[i.$toHTML](e){const t=[]
if(this[i.$extra]={children:t},this[i.$childrenToHTML]({}),0===t.length&&!this[i.$content])return a.HTMLResult.EMPTY
let r
return r=this[c]?this[i.$content]?this[i.$content].replaceAll(f,"\n"):void 0:this[i.$content]||void 0,a.HTMLResult.success({name:this[i.$nodeName],attributes:{href:this.href,style:m(this.style,this,this[c])},children:t,value:r})}}class y extends b{constructor(e){super(e,"a"),this.href=(0,s.fixURL)(e.href)||""}}class v extends b{constructor(e){super(e,"b")}[i.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[i.$pushGlyphs](e),e.popFont()}}class w extends b{constructor(e){super(e,"body")}[i.$toHTML](e){const t=super[i.$toHTML](e),{html:r}=t
return r?(r.name="div",r.attributes.class=["xfaRich"],t):a.HTMLResult.EMPTY}}class x extends b{constructor(e){super(e,"br")}[i.$text](){return"\n"}[i.$pushGlyphs](e){e.addString("\n")}[i.$toHTML](e){return a.HTMLResult.success({name:"br"})}}class _ extends b{constructor(e){super(e,"html")}[i.$toHTML](e){const t=[]
if(this[i.$extra]={children:t},this[i.$childrenToHTML]({}),0===t.length)return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[i.$content]||""})
if(1===t.length){const e=t[0]
if(e.attributes?.class.includes("xfaRich"))return a.HTMLResult.success(e)}return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class S extends b{constructor(e){super(e,"i")}[i.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[i.$pushGlyphs](e),e.popFont()}}class k extends b{constructor(e){super(e,"li")}}class A extends b{constructor(e){super(e,"ol")}}class C extends b{constructor(e){super(e,"p")}[i.$pushGlyphs](e){super[i.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[i.$text](){return this[i.$getParent]()[i.$getChildren]().at(-1)===this?super[i.$text]():super[i.$text]()+"\n"}}class P extends b{constructor(e){super(e,"span")}}class O extends b{constructor(e){super(e,"sub")}}class E extends b{constructor(e){super(e,"sup")}}class T extends b{constructor(e){super(e,"ul")}}class M{static[n.$buildXFAObject](e,t){if(M.hasOwnProperty(e))return M[e](t)}static a(e){return new y(e)}static b(e){return new v(e)}static body(e){return new w(e)}static br(e){return new x(e)}static html(e){return new _(e)}static i(e){return new S(e)}static li(e){return new k(e)}static ol(e){return new A(e)}static p(e){return new C(e)}static span(e){return new P(e)}static sub(e){return new O(e)}static sup(e){return new E(e)}static ul(e){return new T(e)}}t.XhtmlNamespace=M},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0
var i=r(81),n=r(87)
class s{constructor(e){this.namespaceId=e}[i.$buildXFAObject](e,t){return new n.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=s},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0
var i=r(2),n=r(3),s=r(71)
function a(e){try{return(0,i.stringToUTF8String)(e)}catch(t){return(0,i.warn)(`UTF-8 decoding failed: "${t}".`),e}}class o extends s.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){const t=super.onEndElement(e)
if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new s.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement
else{const t=new o({hasAttributes:!0})
try{t.parseFromString(e["xdp:xdp"])}catch{}this.node=t.node}}getValue(e){if(!this.node||!e)return""
const t=this.node.searchNode((0,n.parseXFAPath)(e),0)
if(!t)return""
const r=t.firstChild
return"value"===r?.nodeName?t.children.map((e=>a(e.textContent))):a(t.textContent)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0
var i=r(2),n=r(4),s=r(16),a=r(3),o=r(5),l=r(74)
t.XRef=class{#un=null
constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new n.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1)
const t=this._newPersistentRefNum++
return this._cacheMap.set(t,e),n.Ref.get(t,0)}getNewTemporaryRef(){return null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1),n.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(e=!1){let t,r,s
e?((0,i.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t
try{r=t.get("Encrypt")}catch(o){if(o instanceof a.MissingDataException)throw o;(0,i.warn)(`XRef.parse - Invalid "Encrypt" reference: "${o}".`)}if(r instanceof n.Dict){const e=t.get("ID"),i=e?.length?e[0]:""
r.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(r,i,this.pdfManager.password)}try{s=t.get("Root")}catch(o){if(o instanceof a.MissingDataException)throw o;(0,i.warn)(`XRef.parse - Invalid "Root" reference: "${o}".`)}if(s instanceof n.Dict)try{if(s.get("Pages")instanceof n.Dict)return void(this.root=s)}catch(o){if(o instanceof a.MissingDataException)throw o;(0,i.warn)(`XRef.parse - Invalid "Pages" reference: "${o}".`)}if(!e)throw new a.XRefParseException
throw new i.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2})
const t=this.readXRefTable(e)
if(!(0,n.isCmd)(t,"trailer"))throw new i.FormatError("Invalid XRef table: could not find trailer dictionary")
let r=e.getObj()
if(r instanceof n.Dict||!r.dict||(r=r.dict),!(r instanceof n.Dict))throw new i.FormatError("Invalid XRef table: could not parse trailer dictionary")
return delete this.tableState,r}readXRefTable(e){const t=e.lexer.stream,r=this.tableState
let s
for(t.pos=r.streamPos,e.buf1=r.parserBuf1,e.buf2=r.parserBuf2;;){if(!("firstEntryNum"in r)||!("entryCount"in r)){if((0,n.isCmd)(s=e.getObj(),"trailer"))break
r.firstEntryNum=s,r.entryCount=e.getObj()}let a=r.firstEntryNum
const o=r.entryCount
if(!Number.isInteger(a)||!Number.isInteger(o))throw new i.FormatError("Invalid XRef table: wrong types in subsection header")
for(let s=r.entryNum;s<o;s++){r.streamPos=t.pos,r.entryNum=s,r.parserBuf1=e.buf1,r.parserBuf2=e.buf2
const l={}
l.offset=e.getObj(),l.gen=e.getObj()
const c=e.getObj()
if(c instanceof n.Cmd)switch(c.cmd){case"f":l.free=!0
break
case"n":l.uncompressed=!0}if(!Number.isInteger(l.offset)||!Number.isInteger(l.gen)||!l.free&&!l.uncompressed)throw new i.FormatError(`Invalid entry in XRef subsection: ${a}, ${o}`)
0===s&&l.free&&1===a&&(a=0),this.entries[s+a]||(this.entries[s+a]=l)}r.entryNum=0,r.streamPos=t.pos,r.parserBuf1=e.buf1,r.parserBuf2=e.buf2,delete r.firstEntryNum,delete r.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new i.FormatError("Invalid XRef table: unexpected first object")
return s}processXRefStream(e){if(!("streamState"in this)){const t=e.dict,r=t.get("W")
let i=t.get("Index")
i||(i=[0,t.get("Size")]),this.streamState={entryRanges:i,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}readXRefStream(e){const t=this.streamState
e.pos=t.streamPos
const[r,n,s]=t.byteWidths,a=t.entryRanges
for(;a.length>0;){const[o,l]=a
if(!Number.isInteger(o)||!Number.isInteger(l))throw new i.FormatError(`Invalid XRef range fields: ${o}, ${l}`)
if(!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(s))throw new i.FormatError(`Invalid XRef entry fields length: ${o}, ${l}`)
for(let a=t.entryNum;a<l;++a){t.entryNum=a,t.streamPos=e.pos
let l=0,c=0,u=0
for(let t=0;t<r;++t){const t=e.getByte()
if(-1===t)throw new i.FormatError("Invalid XRef byteWidths 'type'.")
l=l<<8|t}0===r&&(l=1)
for(let t=0;t<n;++t){const t=e.getByte()
if(-1===t)throw new i.FormatError("Invalid XRef byteWidths 'offset'.")
c=c<<8|t}for(let t=0;t<s;++t){const t=e.getByte()
if(-1===t)throw new i.FormatError("Invalid XRef byteWidths 'generation'.")
u=u<<8|t}const d={}
switch(d.offset=c,d.gen=u,l){case 0:d.free=!0
break
case 1:d.uncompressed=!0
break
case 2:break
default:throw new i.FormatError(`Invalid XRef entry type: ${l}`)}this.entries[o+a]||(this.entries[o+a]=d)}t.entryNum=0,t.streamPos=e.pos,a.splice(0,2)}}indexObjects(){function e(e,t){let r="",i=e[t]
for(;10!==i&&13!==i&&60!==i&&!(++t>=e.length);)r+=String.fromCharCode(i),i=e[t]
return r}function t(e,t,r){const i=r.length,n=e.length
let s=0
for(;t<n;){let n=0
for(;n<i&&e[t+n]===r[n];)++n
if(n>=i)break
t++,s++}return s}const r=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,o=/\b(startxref|\d+\s+\d+\s+obj)\b/g,l=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),d=new Uint8Array([47,88,82,101,102])
this.entries.length=0,this._cacheMap.clear()
const h=this.stream
h.pos=0
const p=h.getBytes(),f=(0,i.bytesToString)(p),m=p.length
let g=h.start
const b=[],y=[]
for(;g<m;){let n=p[g]
if(9===n||10===n||13===n||32===n){++g
continue}if(37===n){do{if(++g,g>=m)break
n=p[g]}while(10!==n&&13!==n)
continue}const v=e(p,g)
let w
if(v.startsWith("xref")&&(4===v.length||/\s/.test(v[4])))g+=t(p,g,c),b.push(g),g+=t(p,g,u)
else if(w=l.exec(v)){const e=0|w[1],n=0|w[2],o=g+v.length
let l,c=!1
if(this.entries[e]){if(this.entries[e].gen===n)try{new s.Parser({lexer:new s.Lexer(h.makeSubStream(o))}).getObj(),c=!0}catch(S){S instanceof a.ParserEOFException?(0,i.warn)(`indexObjects -- checking object (${v}): "${S}".`):c=!0}}else c=!0
c&&(this.entries[e]={offset:g-h.start,gen:n,uncompressed:!0}),r.lastIndex=o
const u=r.exec(f)
if(u){l=r.lastIndex+1-g,"endobj"!==u[1]&&((0,i.warn)(`indexObjects: Found "${u[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),l-=u[1].length+1)}else l=m-g
const b=p.subarray(g,g+l),x=t(b,0,d)
x<l&&b[x+5]<64&&(y.push(g-h.start),this._xrefStms.add(g-h.start)),g+=l}else if(v.startsWith("trailer")&&(7===v.length||/\s/.test(v[7]))){b.push(g)
const e=g+v.length
let t
o.lastIndex=e
const r=o.exec(f)
if(r){t=o.lastIndex+1-g,"startxref"!==r[1]&&((0,i.warn)(`indexObjects: Found "${r[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),t-=r[1].length+1)}else t=m-g
g+=t}else g+=v.length+1}for(const i of y)this.startXRefQueue.push(i),this.readXRef(!0)
const v=[]
let w,x,_=!1
for(const i of b){h.pos=i
const e=new s.Parser({lexer:new s.Lexer(h),xref:this,allowStreams:!0,recoveryMode:!0}),t=e.getObj()
if(!(0,n.isCmd)(t,"trailer"))continue
const r=e.getObj()
r instanceof n.Dict&&(v.push(r),r.has("Encrypt")&&(_=!0))}for(const i of[...v,"genFallback",...v]){if("genFallback"===i){if(!x)break
this._generationFallback=!0
continue}let e=!1
try{const t=i.get("Root")
if(!(t instanceof n.Dict))continue
const r=t.get("Pages")
if(!(r instanceof n.Dict))continue
const s=r.get("Count")
Number.isInteger(s)&&(e=!0)}catch(S){x=S
continue}if(e&&(!_||i.has("Encrypt"))&&i.has("ID"))return i
w=i}if(w)return w
if(this.topDict)return this.topDict
throw new i.InvalidPDFException("Invalid PDF structure.")}readXRef(e=!1){const t=this.stream,r=new Set
for(;this.startXRefQueue.length;){try{const e=this.startXRefQueue[0]
if(r.has(e)){(0,i.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift()
continue}r.add(e),t.pos=e+t.start
const a=new s.Parser({lexer:new s.Lexer(t),xref:this,allowStreams:!0})
let l,c=a.getObj()
if((0,n.isCmd)(c,"xref"))l=this.processXRefTable(a),this.topDict||(this.topDict=l),c=l.get("XRefStm"),Number.isInteger(c)&&!this._xrefStms.has(c)&&(this._xrefStms.add(c),this.startXRefQueue.push(c),this.#un??=c)
else{if(!Number.isInteger(c))throw new i.FormatError("Invalid XRef stream header")
if(!(Number.isInteger(a.getObj())&&(0,n.isCmd)(a.getObj(),"obj")&&(c=a.getObj())instanceof o.BaseStream))throw new i.FormatError("Invalid XRef stream")
if(l=this.processXRefStream(c),this.topDict||(this.topDict=l),!l)throw new i.FormatError("Failed to read XRef stream")}c=l.get("Prev"),Number.isInteger(c)?this.startXRefQueue.push(c):c instanceof n.Ref&&this.startXRefQueue.push(c.num)}catch(l){if(l instanceof a.MissingDataException)throw l;(0,i.info)("(while reading XRef): "+l)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict
if(!e)throw new a.XRefParseException}get lastXRefStreamPos(){return this.#un??(this._xrefStms.size>0?Math.max(...this._xrefStms):null)}getEntry(e){const t=this.entries[e]
return t&&!t.free&&t.offset?t:null}fetchIfRef(e,t=!1){return e instanceof n.Ref?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof n.Ref))throw new Error("ref object is not a reference")
const r=e.num,s=this._cacheMap.get(r)
if(void 0!==s)return s instanceof n.Dict&&!s.objId&&(s.objId=e.toString()),s
let a=this.getEntry(r)
if(null===a)return this._cacheMap.set(r,a),a
if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,i.warn)(`Ignoring circular reference: ${e}.`),n.CIRCULAR_REF
this._pendingRefs.put(e)
try{a=a.uncompressed?this.fetchUncompressed(e,a,t):this.fetchCompressed(e,a,t),this._pendingRefs.remove(e)}catch(l){throw this._pendingRefs.remove(e),l}return a instanceof n.Dict?a.objId=e.toString():a instanceof o.BaseStream&&(a.dict.objId=e.toString()),a}fetchUncompressed(e,t,r=!1){const l=e.gen
let c=e.num
if(t.gen!==l){const s=`Inconsistent generation in XRef: ${e}`
if(this._generationFallback&&t.gen<l)return(0,i.warn)(s),this.fetchUncompressed(n.Ref.get(c,t.gen),t,r)
throw new a.XRefEntryException(s)}const u=this.stream.makeSubStream(t.offset+this.stream.start),d=new s.Parser({lexer:new s.Lexer(u),xref:this,allowStreams:!0}),h=d.getObj(),p=d.getObj(),f=d.getObj()
if(h!==c||p!==l||!(f instanceof n.Cmd))throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)
if("obj"!==f.cmd){if(f.cmd.startsWith("obj")&&(c=parseInt(f.cmd.substring(3),10),!Number.isNaN(c)))return c
throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}return(t=this.encrypt&&!r?d.getObj(this.encrypt.createCipherTransform(c,l)):d.getObj())instanceof o.BaseStream||this._cacheMap.set(c,t),t}fetchCompressed(e,t,r=!1){const l=t.offset,c=this.fetch(n.Ref.get(l,0))
if(!(c instanceof o.BaseStream))throw new i.FormatError("bad ObjStm stream")
const u=c.dict.get("First"),d=c.dict.get("N")
if(!Number.isInteger(u)||!Number.isInteger(d))throw new i.FormatError("invalid first and n parameters for ObjStm stream")
let h=new s.Parser({lexer:new s.Lexer(c),xref:this,allowStreams:!0})
const p=new Array(d),f=new Array(d)
for(let n=0;n<d;++n){const e=h.getObj()
if(!Number.isInteger(e))throw new i.FormatError(`invalid object number in the ObjStm stream: ${e}`)
const t=h.getObj()
if(!Number.isInteger(t))throw new i.FormatError(`invalid object offset in the ObjStm stream: ${t}`)
p[n]=e,f[n]=t}const m=(c.start||0)+u,g=new Array(d)
for(let n=0;n<d;++n){const e=n<d-1?f[n+1]-f[n]:void 0
if(e<0)throw new i.FormatError("Invalid offset in the ObjStm stream.")
h=new s.Parser({lexer:new s.Lexer(c.makeSubStream(m+f[n],e,c.dict)),xref:this,allowStreams:!0})
const t=h.getObj()
if(g[n]=t,t instanceof o.BaseStream)continue
const r=p[n],a=this.entries[r]
a&&a.offset===l&&a.gen===n&&this._cacheMap.set(r,t)}if(void 0===(t=g[t.gen]))throw new a.XRefEntryException(`Bad (compressed) XRef entry: ${e}`)
return t}async fetchIfRefAsync(e,t){return e instanceof n.Ref?this.fetchAsync(e,t):e}async fetchAsync(e,t){try{return this.fetch(e,t)}catch(r){if(!(r instanceof a.MissingDataException))throw r
return await this.pdfManager.requestRange(r.begin,r.end),this.fetchAsync(e,t)}}getCatalogObj(){return this.root}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0
var i=r(2)
const n=1,s=2,a=1,o=2,l=3,c=4,u=5,d=6,h=7,p=8
function f(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new i.AbortException(e.message)
case"MissingPDFException":return new i.MissingPDFException(e.message)
case"PasswordException":return new i.PasswordException(e.message,e.code)
case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status)
case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details)
default:return new i.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data
if(t.targetName!==this.sourceName)return
if(t.stream)return void this.#dt(t)
if(t.callback){const e=t.callbackId,r=this.callbackCapabilities[e]
if(!r)throw new Error(`Cannot resolve callback ${e}`)
if(delete this.callbackCapabilities[e],t.callback===n)r.resolve(t.data)
else{if(t.callback!==s)throw new Error("Unexpected callback case")
r.reject(f(t.reason))}return}const i=this.actionHandler[t.action]
if(!i)throw new Error(`Unknown action from worker: ${t.action}`)
if(t.callbackId){const e=this.sourceName,a=t.sourceName
new Promise((function(e){e(i(t.data))})).then((function(i){r.postMessage({sourceName:e,targetName:a,callback:n,callbackId:t.callbackId,data:i})}),(function(i){r.postMessage({sourceName:e,targetName:a,callback:s,callbackId:t.callbackId,reason:f(i)})}))}else t.streamId?this.#ht(t):i(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler
if(r[e])throw new Error(`There is already an actionName called "${e}"`)
r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const n=this.callbackId++,s=new i.PromiseCapability
this.callbackCapabilities[n]=s
try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(a){s.reject(a)}return s.promise}sendWithStream(e,t,r,n){const s=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj
return new ReadableStream({start:r=>{const a=new i.PromiseCapability
return this.streamControllers[s]={controller:r,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:o,targetName:l,action:e,streamId:s,data:t,desiredSize:r.desiredSize},n),a.promise},pull:e=>{const t=new i.PromiseCapability
return this.streamControllers[s].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:d,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,i.assert)(e instanceof Error,"cancel must have a valid reason")
const t=new i.PromiseCapability
return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:a,streamId:s,reason:f(e)}),t.promise}},r)}#ht(e){const t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,a=this,o=this.actionHandler[e.action],d={enqueue(e,a=1,o){if(this.isCancelled)return
const l=this.desiredSize
this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=new i.PromiseCapability,this.ready=this.sinkCapability.promise),s.postMessage({sourceName:r,targetName:n,stream:c,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:u,streamId:t,reason:f(e)}))},sinkCapability:new i.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null}
d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(o(e.data,d))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:p,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:p,streamId:t,reason:f(e)})}))}#dt(e){const t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t]
switch(e.stream){case p:e.success?m.startCall.resolve():m.startCall.reject(f(e.reason))
break
case h:e.success?m.pullCall.resolve():m.pullCall.reject(f(e.reason))
break
case d:if(!g){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,success:!0})
break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull?.())})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,reason:f(e)})}))
break
case c:if((0,i.assert)(m,"enqueue should have stream controller"),m.isClosed)break
m.controller.enqueue(e.chunk)
break
case l:if((0,i.assert)(m,"close should have stream controller"),m.isClosed)break
m.isClosed=!0,m.controller.close(),this.#pt(m,t)
break
case u:(0,i.assert)(m,"error should have stream controller"),m.controller.error(f(e.reason)),this.#pt(m,t)
break
case o:e.success?m.cancelCall.resolve():m.cancelCall.reject(f(e.reason)),this.#pt(m,t)
break
case a:if(!g)break
new Promise((function(t){t(g.onCancel?.(f(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,reason:f(e)})})),g.sinkCapability.reject(f(e.reason)),g.isCancelled=!0,delete this.streamSinks[t]
break
default:throw new Error("Unexpected stream case")}}async#pt(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0
var i=r(2)
t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new n(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const r=new s(e,t,this._msgHandler)
return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class n{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1
const t=this._msgHandler.sendWithStream("GetReader")
this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read()
return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class s{constructor(e,t,r){this._msgHandler=r,this.onProgress=null
const i=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t})
this._reader=i.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read()
return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],t={}
function r(i){var n=t[i]
if(void 0!==n)return n.exports
var s=t[i]={exports:{}}
return e[i](s,s.exports,r),s.exports}var i={}
return(()=>{var e=i
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}})
var t=r(1)})(),i})())),
/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2023 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */
function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=e.pdfjsViewer=t():"function"==typeof define&&define.amd?define("pdfjs-dist/web/pdf_viewer",[],(()=>e.pdfjsViewer=t())):"object"==typeof exports?exports["pdfjs-dist/web/pdf_viewer"]=e.pdfjsViewer=t():e["pdfjs-dist/web/pdf_viewer"]=e.pdfjsViewer=t()}(globalThis,(()=>(()=>{"use strict"
var e=[,(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0
var i=r(2),n=r(3),s=r(4)
const a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3}
t.FindState=a
const o={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},l=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956])
let c
const u=/\p{M}+/gu,d=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,h=/([^\p{M}])\p{M}*$/u,p=/^\p{M}*([^\p{M}])/u,f=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,m=new Map,g=new Map
let b=null,y=null
function v(e){const t=[]
let r,i
for(;null!==(r=f.exec(e));){let{index:e}=r
for(const i of r[0]){let r=m.get(i)
r||(r=i.normalize("NFD").length,m.set(i,r)),t.push([r,e++])}}if(0===t.length&&b)i=b
else if(t.length>0&&y)i=y
else{const e=`([${Object.keys(o).join("")}])|([${(0,n.getNormalizeWithNFKC)()}])|(${"(?:゙|゚)"}\\n)|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(${"(?:\\p{Ideographic}|[぀-ヿ])"}\\n)|(\\n)`
i=0===t.length?b=new RegExp(e+"|(\\u0000)","gum"):y=new RegExp(e+"|([\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f])","gum")}const s=[]
for(;null!==(r=u.exec(e));)s.push([r[0].length,r.index])
let a=e.normalize("NFD")
const l=[[0,0]]
let c=0,d=0,h=0,p=0,v=0,w=!1
return a=a.replace(i,((e,r,i,n,a,u,f,m,b,y)=>{if(y-=p,r){const e=o[r],t=e.length
for(let r=1;r<t;r++)l.push([y-h+r,h-r])
return h-=t-1,e}if(i){let e=g.get(i)
e||(e=i.normalize("NFKC"),g.set(i,e))
const t=e.length
for(let r=1;r<t;r++)l.push([y-h+r,h-r])
return h-=t-1,e}if(n)return w=!0,y+v===s[c]?.[1]?++c:(l.push([y-1-h+1,h-1]),h-=1,p+=1),l.push([y-h+1,h]),p+=1,v+=1,n.charAt(0)
if(a){const e=a.endsWith("\n"),t=e?a.length-2:a.length
w=!0
let r=t
y+v===s[c]?.[1]&&(r-=s[c][0],++c)
for(let i=1;i<=r;i++)l.push([y-1-h+i,h-i])
return h-=r,p+=r,e?(y+=t-1,l.push([y-h+1,1+h]),h+=1,p+=1,v+=1,a.slice(0,t)):a}if(u){const e=u.length-2
return l.push([y-h+e,1+h]),h+=1,p+=1,v+=1,u.slice(0,-2)}if(f){const e=f.length-1
return l.push([y-h+e,h]),p+=1,v+=1,f.slice(0,-1)}if(m)return l.push([y-h+1,h-1]),h-=1,p+=1,v+=1," "
if(y+v===t[d]?.[1]){const e=t[d][0]-1;++d
for(let t=1;t<=e;t++)l.push([y-(h-t),h-t])
h-=e,p+=e}return b})),l.push([a.length,h]),[a,l,w]}function w(e,t,r){if(!e)return[t,r]
const n=t,s=t+r-1
let a=(0,i.binarySearchFirstItem)(e,(e=>e[0]>=n))
e[a][0]>n&&--a
let o=(0,i.binarySearchFirstItem)(e,(e=>e[0]>=s),a)
e[o][0]>s&&--o
const l=n+e[a][1]
return[l,s+e[o][1]+1-l]}t.PDFFindController=class{#dn=null
#hn=!0
#pn=0
constructor({linkService:e,eventBus:t,updateMatchesCountOnProgress:r=!0}){this._linkService=e,this._eventBus=t,this.#hn=r,this.onIsPageVisible=null,this.#fn(),t._on("find",this.#mn.bind(this)),t._on("findbarclose",this.#gn.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#dn}setDocument(e){this._pdfDocument&&this.#fn(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#mn(e){if(!e)return
!1===e.phraseSearch&&(console.error("The `phraseSearch`-parameter was removed, please provide an Array of strings in the `query`-parameter instead."),"string"==typeof e.query&&(e.query=e.query.match(/\S+/g)))
const t=this._pdfDocument,{type:r}=e;(null===this.#dn||this.#bn(e))&&(this._dirtyMatch=!0),this.#dn=e,"highlightallchange"!==r&&this.#yn(a.PENDING),this._firstPageCapability.promise.then((()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return
this.#Kt()
const e=!this._highlightMatches,i=!!this._findTimeout
this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),r?this._dirtyMatch?this.#vn():"again"===r?(this.#vn(),e&&this.#dn.highlightAll&&this.#wn()):"highlightallchange"===r?(i?this.#vn():this._highlightMatches=!0,this.#wn()):this.#vn():this._findTimeout=setTimeout((()=>{this.#vn(),this._findTimeout=null}),250)}))}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:r=-1,matchIndex:n=-1}){if(!this._scrollMatches||!e)return
if(-1===n||n!==this._selected.matchIdx)return
if(-1===r||r!==this._selected.pageIdx)return
this._scrollMatches=!1
const s={top:-50,left:t+-400};(0,i.scrollIntoView)(e,s,!0)}#fn(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#pn=0,this.#dn=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=new s.PromiseCapability}get#xn(){const{query:e}=this.#dn
return"string"==typeof e?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=v(e)),this._normalizedQuery):(e||[]).filter((e=>!!e)).map((e=>v(e)[0]))}#bn(e){const t=e.query,r=this.#dn.query,i=typeof t
if(i!==typeof r)return!0
if("string"===i){if(t!==r)return!0}else if(JSON.stringify(t)!==JSON.stringify(r))return!0
switch(e.type){case"again":const e=this._selected.pageIdx+1,t=this._linkService
return e>=1&&e<=t.pagesCount&&e!==t.page&&!(this.onIsPageVisible?.(e)??1)
case"highlightallchange":return!1}return!0}#_n(e,t,r){let i=e.slice(0,t).match(h)
if(i){const r=e.charCodeAt(t),s=i[1].charCodeAt(0)
if((0,n.getCharacterType)(r)===(0,n.getCharacterType)(s))return!1}if(i=e.slice(t+r).match(p),i){const s=e.charCodeAt(t+r-1),a=i[1].charCodeAt(0)
if((0,n.getCharacterType)(s)===(0,n.getCharacterType)(a))return!1}return!0}#Sn(e,t,r,i){const n=this._pageMatches[r]=[],s=this._pageMatchesLength[r]=[]
if(!e)return
const a=this._pageDiffs[r]
let o
for(;null!==(o=e.exec(i));){if(t&&!this.#_n(i,o.index,o[0].length))continue
const[e,r]=w(a,o.index,o[0].length)
r&&(n.push(e),s.push(r))}}#kn(e,t){const{matchDiacritics:r}=this.#dn
let i=!1
const n="[ ]*"
return(e=e.replaceAll(d,((e,n,s,a,o,c)=>n?`[ ]*\\${n}[ ]*`:s?`[ ]*${s}[ ]*`:a?"[ ]+":r?o||c:o?l.has(o.charCodeAt(0))?o:"":t?(i=!0,`${c}\\p{M}*`):c))).endsWith(n)&&(e=e.slice(0,e.length-4)),r&&t&&(c||=String.fromCharCode(...l),i=!0,e=`${e}(?=[${c}]|[^\\p{M}]|$)`),[i,e]}#An(e){let t=this.#xn
if(0===t.length)return
const{caseSensitive:r,entireWord:i}=this.#dn,n=this._pageContents[e],s=this._hasDiacritics[e]
let a=!1
"string"==typeof t?[a,t]=this.#kn(t,s):t=t.sort().reverse().map((e=>{const[t,r]=this.#kn(e,s)
return a||=t,`(${r})`})).join("|")
t=t?new RegExp(t,`g${a?"u":""}${r?"":"i"}`):null,this.#Sn(t,i,e,n),this.#dn.highlightAll&&this.#Cn(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#Pn())
const o=this._pageMatches[e].length
this._matchesCountTotal+=o,this.#hn?o>0&&this.#On():++this.#pn===this._linkService.pagesCount&&this.#On()}#Kt(){if(this._extractTextPromises.length>0)return
let e=Promise.resolve()
const t={disableNormalization:!0}
for(let r=0,i=this._linkService.pagesCount;r<i;r++){const i=new s.PromiseCapability
this._extractTextPromises[r]=i.promise,e=e.then((()=>this._pdfDocument.getPage(r+1).then((e=>e.getTextContent(t))).then((e=>{const t=[]
for(const r of e.items)t.push(r.str),r.hasEOL&&t.push("\n");[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=v(t.join("")),i.resolve()}),(e=>{console.error(`Unable to get text content for page ${r+1}`,e),this._pageContents[r]="",this._pageDiffs[r]=null,this._hasDiacritics[r]=!1,i.resolve()}))))}}#Cn(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#wn(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#vn(){const e=this.#dn.findPrevious,t=this._linkService.page-1,r=this._linkService.pagesCount
if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#pn=0,this._matchesCountTotal=0,this.#wn()
for(let e=0;e<r;e++)this._pendingFindMatches.has(e)||(this._pendingFindMatches.add(e),this._extractTextPromises[e].then((()=>{this._pendingFindMatches.delete(e),this.#An(e)})))}if(0===this.#xn.length)return void this.#yn(a.FOUND)
if(this._resumePageIdx)return
const i=this._offset
if(this._pagesToSearch=r,null!==i.matchIdx){const t=this._pageMatches[i.pageIdx].length
if(!e&&i.matchIdx+1<t||e&&i.matchIdx>0)return i.matchIdx=e?i.matchIdx-1:i.matchIdx+1,void this.#En(!0)
this.#Tn(e)}this.#Pn()}#Mn(e){const t=this._offset,r=e.length,i=this.#dn.findPrevious
return r?(t.matchIdx=i?r-1:0,this.#En(!0),!0):(this.#Tn(i),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this.#En(!1),!0))}#Pn(){null!==this._resumePageIdx&&console.error("There can only be one pending page.")
let e=null
do{const t=this._offset.pageIdx
if(e=this._pageMatches[t],!e){this._resumePageIdx=t
break}}while(!this.#Mn(e))}#Tn(e){const t=this._offset,r=this._linkService.pagesCount
t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=r||t.pageIdx<0)&&(t.pageIdx=e?r-1:0,t.wrapped=!0)}#En(e=!1){let t=a.NOT_FOUND
const r=this._offset.wrapped
if(this._offset.wrapped=!1,e){const e=this._selected.pageIdx
this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=r?a.WRAPPED:a.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#Cn(e)}this.#yn(t,this.#dn.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#Cn(this._selected.pageIdx))}#gn(e){const t=this._pdfDocument
this._firstPageCapability.promise.then((()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#yn(a.FOUND),this._highlightMatches=!1,this.#wn())}))}#In(){const{pageIdx:e,matchIdx:t}=this._selected
let r=0,i=this._matchesCountTotal
if(-1!==t){for(let t=0;t<e;t++)r+=this._pageMatches[t]?.length||0
r+=t+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}#On(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#In()})}#yn(e,t=!1){(this.#hn||this.#pn===this._linkService.pagesCount&&e!==a.PENDING)&&this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#In(),rawQuery:this.#dn?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.CursorTool=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=i.VERTICAL,r=n.NONE
switch(e){case"SinglePage":t=i.PAGE
break
case"OneColumn":break
case"TwoPageLeft":t=i.PAGE
case"TwoColumnLeft":r=n.ODD
break
case"TwoPageRight":t=i.PAGE
case"TwoColumnRight":r=n.EVEN}return{scrollMode:t,spreadMode:r}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return r.NONE
case"UseThumbs":return r.THUMBS
case"UseOutlines":return r.OUTLINE
case"UseAttachments":return r.ATTACHMENTS
case"UseOC":return r.LAYERS}return r.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1]
const t=1/e
if(t>8)return[1,8]
if(Math.floor(t)===t)return[1,t]
const r=e>1?t:e
let i,n=0,s=1,a=1,o=1
for(;;){const e=n+a,t=s+o
if(t>8)break
r<=e/t?(a=e,o=t):(n=e,s=t)}i=r-n/s<a/o-r?r===e?[n,s]:[s,n]:r===e?[a,o]:[o,a]
return i},t.backtrackBeforeAllVisibleElements=o,t.binarySearchFirstItem=a,t.docStyle=void 0,t.getActiveOrFocusedElement=function(){let e=document,t=e.activeElement||e.querySelector(":focus")
for(;t?.shadowRoot;)e=t.shadowRoot,t=e.activeElement||e.querySelector(":focus")
return t},t.getPageSizeInches=function({view:e,userUnit:t,rotate:r}){const[i,n,s,a]=e,o=r%180!=0,l=(s-i)/72*t,c=(a-n)/72*t
return{width:o?c:l,height:o?l:c}},t.getVisibleElements=function({scrollEl:e,views:t,sortByVisibility:r=!1,horizontal:i=!1,rtl:n=!1}){const s=e.scrollTop,l=s+e.clientHeight,c=e.scrollLeft,u=c+e.clientWidth
const d=[],h=new Set,p=t.length
let f=a(t,i?function(e){const t=e.div,r=t.offsetLeft+t.clientLeft,i=r+t.clientWidth
return n?r<u:i>c}:function(e){const t=e.div
return t.offsetTop+t.clientTop+t.clientHeight>s})
f>0&&f<p&&!i&&(f=o(f,t,s))
let m=i?u:-1
for(let a=f;a<p;a++){const e=t[a],r=e.div,n=r.offsetLeft+r.clientLeft,o=r.offsetTop+r.clientTop,p=r.clientWidth,f=r.clientHeight,g=n+p,b=o+f
if(-1===m)b>=l&&(m=b)
else if((i?n:o)>m)break
if(b<=s||o>=l||g<=c||n>=u)continue
const y=Math.max(0,s-o)+Math.max(0,b-l),v=(p-(Math.max(0,c-n)+Math.max(0,g-u)))/p,w=(f-y)/f*v*100|0
d.push({id:e.id,x:n,y:o,view:e,percent:w,widthPercent:100*v|0}),h.add(e.id)}const g=d[0],b=d.at(-1)
r&&d.sort((function(e,t){const r=e.percent-t.percent
return Math.abs(r)>.001?-r:e.id-t.id}))
return{first:g,last:b,views:d,ids:h}},t.isPortraitOrientation=function(e){return e.width<=e.height},t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(i).includes(e)&&e!==i.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(n).includes(e)&&e!==n.UNKNOWN},t.normalizeWheelEventDelta=function(e){const t=e.deltaMode
let r=l(e)
t===WheelEvent.DOM_DELTA_PIXEL?r/=900:t===WheelEvent.DOM_DELTA_LINE&&(r/=30)
return r},t.normalizeWheelEventDirection=l,t.parseQueryString=function(e){const t=new Map
for(const[r,i]of new URLSearchParams(e))t.set(r.toLowerCase(),i)
return t},t.removeNullCharacters=function(e,t=!1){if("string"!=typeof e)return console.error("The argument must be a string."),e
t&&(e=e.replaceAll(s," "))
return e.replaceAll("\0","")},t.roundToDivide=function(e,t){const r=e%t
return 0===r?e:Math.round(e-r+t)},t.scrollIntoView=function(e,t,r=!1){let i=e.offsetParent
if(!i)return void console.error("offsetParent is not set -- cannot scroll")
let n=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft
for(;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||r&&(i.classList.contains("markedContent")||"hidden"===getComputedStyle(i).overflow);)if(n+=i.offsetTop,s+=i.offsetLeft,i=i.offsetParent,!i)return
t&&(void 0!==t.top&&(n+=t.top),void 0!==t.left&&(s+=t.left,i.scrollLeft=s))
i.scrollTop=n},t.toggleCheckedBtn=function(e,t,r=null){e.classList.toggle("toggled",t),e.setAttribute("aria-checked",t),r?.classList.toggle("hidden",!t)},t.toggleExpandedBtn=function(e,t,r=null){e.classList.toggle("toggled",t),e.setAttribute("aria-expanded",t),r?.classList.toggle("hidden",!t)},t.watchScroll=function(e,t){const r=function(r){n||(n=window.requestAnimationFrame((function(){n=null
const r=e.scrollLeft,s=i.lastX
r!==s&&(i.right=r>s),i.lastX=r
const a=e.scrollTop,o=i.lastY
a!==o&&(i.down=a>o),i.lastY=a,t(i)})))},i={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r}
let n=null
return e.addEventListener("scroll",r,!0),i}
t.DEFAULT_SCALE_VALUE="auto"
t.DEFAULT_SCALE=1
t.DEFAULT_SCALE_DELTA=1.1
t.MIN_SCALE=.1
t.MAX_SCALE=10
t.UNKNOWN_SCALE=0
t.MAX_AUTO_SCALE=1.25
t.SCROLLBAR_PADDING=40
t.VERTICAL_PADDING=5
t.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3}
t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3}
const r={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4}
t.SidebarView=r
t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2}
const i={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3}
t.ScrollMode=i
const n={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2}
t.SpreadMode=n
t.CursorTool={SELECT:0,HAND:1,ZOOM:2}
t.AutoPrintRegExp=/\bprint\s*\(/
t.OutputScale=class{constructor(){const e=window.devicePixelRatio||1
this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}}
const s=/[\x01-\x1F]/g
function a(e,t,r=0){let i=r,n=e.length-1
if(n<0||!t(e[n]))return e.length
if(t(e[i]))return i
for(;i<n;){const r=i+n>>1
t(e[r])?n=r:i=r+1}return i}function o(e,t,r){if(e<2)return e
let i=t[e].div,n=i.offsetTop+i.clientTop
n>=r&&(i=t[e-1].div,n=i.offsetTop+i.clientTop)
for(let s=e-2;s>=0&&(i=t[s].div,!(i.offsetTop+i.clientTop+i.clientHeight<=n));--s)e=s
return e}function l(e){let t=Math.hypot(e.deltaX,e.deltaY)
const r=Math.atan2(e.deltaY,e.deltaX)
return-.25*Math.PI<r&&r<.75*Math.PI&&(t=-t),t}const c=new Promise((function(e){window.requestAnimationFrame(e)}))
t.animationStarted=c
const u=document.documentElement.style
t.docStyle=u
t.ProgressBar=class{#Fn=null
#Nn=null
#Rn=0
#Dn=null
#gt=!0
constructor(e){this.#Fn=e.classList,this.#Dn=e.style}get percent(){return this.#Rn}set percent(e){var t,r,i
this.#Rn=(t=e,r=0,i=100,Math.min(Math.max(t,r),i)),isNaN(e)?this.#Fn.add("indeterminate"):(this.#Fn.remove("indeterminate"),this.#Dn.setProperty("--progressBar-percent",`${this.#Rn}%`))}setWidth(e){if(!e)return
const t=e.parentNode.offsetWidth-e.offsetWidth
t>0&&this.#Dn.setProperty("--progressBar-end-offset",`${t}px`)}setDisableAutoFetch(e=5e3){isNaN(this.#Rn)||(this.#Nn&&clearTimeout(this.#Nn),this.show(),this.#Nn=setTimeout((()=>{this.#Nn=null,this.hide()}),e))}hide(){this.#gt&&(this.#gt=!1,this.#Fn.add("hidden"))}show(){this.#gt||(this.#gt=!0,this.#Fn.remove("hidden"))}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){if(function(e){return e<11904}(e))return function(e){return!(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?r.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?r.ALPHA_LETTER:r.PUNCT:function(e){return 3584==(65408&e)}(e)?r.THAI_LETTER:160===e?r.SPACE:r.ALPHA_LETTER
if(function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e))return r.HAN_LETTER
if(function(e){return e>=12448&&e<=12543}(e))return r.KATAKANA_LETTER
if(function(e){return e>=12352&&e<=12447}(e))return r.HIRAGANA_LETTER
if(function(e){return e>=65376&&e<=65439}(e))return r.HALFWIDTH_KATAKANA_LETTER
return r.ALPHA_LETTER},t.getNormalizeWithNFKC=function(){return i||=" ¨ª¯²-µ¸-º¼-¾Ĳ-ĳĿ-ŀŉſǄ-ǌǱ-ǳʰ-ʸ˘-˝ˠ-ˤʹͺ;΄-΅·ϐ-ϖϰ-ϲϴ-ϵϹևٵ-ٸक़-य़ড়-ঢ়য়ਲ਼ਸ਼ਖ਼-ਜ਼ਫ਼ଡ଼-ଢ଼ำຳໜ-ໝ༌གྷཌྷདྷབྷཛྷཀྵჼᴬ-ᴮᴰ-ᴺᴼ-ᵍᵏ-ᵪᵸᶛ-ᶿẚ-ẛάέήίόύώΆ᾽-῁ΈΉ῍-῏ΐΊ῝-῟ΰΎ῭-`ΌΏ´-῾ - ‑‗․-… ″-‴‶-‷‼‾⁇-⁉⁗ ⁰-ⁱ⁴-₎ₐ-ₜ₨℀-℃℅-ℇ℉-ℓℕ-№ℙ-ℝ℠-™ℤΩℨK-ℭℯ-ℱℳ-ℹ℻-⅀ⅅ-ⅉ⅐-ⅿ↉∬-∭∯-∰〈-〉①-⓪⨌⩴-⩶⫝̸ⱼ-ⱽⵯ⺟⻳⼀-⿕　〶〸-〺゛-゜ゟヿㄱ-ㆎ㆒-㆟㈀-㈞㈠-㉇㉐-㉾㊀-㏿ꚜ-ꚝꝰꟲ-ꟴꟸ-ꟹꭜ-ꭟꭩ豈-嗀塚晴凞-羽蘒諸逸-都飯-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷼︐-︙︰-﹄﹇-﹒﹔-﹦﹨-﹫ﹰ-ﹲﹴﹶ-ﻼ！-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ￠-￦",i}
const r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7}
let i
t.CharacterType=r},e=>{e.exports=globalThis.pdfjsLib},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0
var i=r(2)
const n={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4}
function s(e,{url:t,target:r,rel:i,enabled:s=!0}={}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.')
s?e.href=e.title=t:(e.href="",e.title=`Disabled: ${t}`,e.onclick=()=>!1)
let a=""
switch(r){case n.NONE:break
case n.SELF:a="_self"
break
case n.BLANK:a="_blank"
break
case n.PARENT:a="_parent"
break
case n.TOP:a="_top"}e.target=a,e.rel="string"==typeof i?i:"noopener noreferrer nofollow"}t.LinkTarget=n
class a{#jn=new Map
constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:r=null,ignoreDestinationZoom:i=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=r,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=i,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#jn.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}get isInPresentationMode(){return this.pdfViewer.isInPresentationMode}#Ln(e,t=null,r){const i=r[0]
let n
if("object"==typeof i&&null!==i){if(n=this._cachedPageNumber(i),!n)return void this.pdfDocument.getPageIndex(i).then((n=>{this.cachePageRef(n+1,i),this.#Ln(e,t,r)})).catch((()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${i}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(i))return void console.error(`PDFLinkService.#goToDestinationHelper: "${i}" is not a valid destination reference, for dest="${e}".`)
n=i+1}!n||n<1||n>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${n}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:r,pageNumber:n})),this.pdfViewer.scrollPageIntoView({pageNumber:n,destArray:r,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(e){if(!this.pdfDocument)return
let t,r
"string"==typeof e?(t=e,r=await this.pdfDocument.getDestination(e)):(t=null,r=await e),Array.isArray(r)?this.#Ln(e,t,r):console.error(`PDFLinkService.goToDestination: "${r}" is not a valid destination array, for dest="${e}".`)}goToPage(e){if(!this.pdfDocument)return
const t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e
Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`)}addLinkAttributes(e,t,r=!1){s(e,{url:t,target:r?n.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){const t=JSON.stringify(e)
if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return this.baseUrl?this.baseUrl+e:e}setHash(e){if(!this.pdfDocument)return
let t,r
if(e.includes("=")){const n=(0,i.parseQueryString)(e)
if(n.has("search")){const e=n.get("search").replaceAll('"',""),t="true"===n.get("phrase")
this.eventBus.dispatch("findfromurlhash",{source:this,query:t?e:e.match(/\S+/g)})}if(n.has("page")&&(t=0|n.get("page")||1),n.has("zoom")){const e=n.get("zoom").split(","),t=e[0],i=parseFloat(t)
t.includes("Fit")?"Fit"===t||"FitB"===t?r=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?r=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):r=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,i?i/100:t]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),n.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:n.get("pagemode")}),n.has("nameddest")&&this.goToDestination(n.get("nameddest"))}else{r=unescape(e)
try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch{}if("string"==typeof r||a.#Bn(r))return void this.goToDestination(r)
console.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}}executeNamedAction(e){switch(e){case"GoBack":this.pdfHistory?.back()
break
case"GoForward":this.pdfHistory?.forward()
break
case"NextPage":this.pdfViewer.nextPage()
break
case"PrevPage":this.pdfViewer.previousPage()
break
case"LastPage":this.page=this.pagesCount
break
case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}async executeSetOCGState(e){const t=this.pdfDocument,r=await this.pdfViewer.optionalContentConfigPromise
if(t!==this.pdfDocument)return
let i
for(const n of e.state){switch(n){case"ON":case"OFF":case"Toggle":i=n
continue}switch(i){case"ON":r.setVisibility(n,!0)
break
case"OFF":r.setVisibility(n,!1)
break
case"Toggle":const e=r.getGroup(n)
e&&r.setVisibility(n,!e.visible)}}this.pdfViewer.optionalContentConfigPromise=Promise.resolve(r)}cachePageRef(e,t){if(!t)return
const r=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`
this.#jn.set(r,e)}_cachedPageNumber(e){if(!e)return null
const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`
return this.#jn.get(t)||null}static#Bn(e){if(!Array.isArray(e))return!1
const t=e.length
if(t<2)return!1
const r=e[0]
if(!("object"==typeof r&&Number.isInteger(r.num)&&Number.isInteger(r.gen)||Number.isInteger(r)&&r>=0))return!1
const i=e[1]
if("object"!=typeof i||"string"!=typeof i.name)return!1
let n=!0
switch(i.name){case"XYZ":if(5!==t)return!1
break
case"Fit":case"FitB":return 2===t
case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1
break
case"FitR":if(6!==t)return!1
n=!1
break
default:return!1}for(let s=2;s<t;s++){const t=e[s]
if(!("number"==typeof t||n&&null===t))return!1}return!0}}t.PDFLinkService=a
t.SimpleLinkService=class{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}get isInPresentationMode(){return!1}async goToDestination(e){}goToPage(e){}addLinkAttributes(e,t,r=!1){s(e,{url:t,enabled:this.externalLinkEnabled})}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}executeSetOCGState(e){}cachePageRef(e,t){}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0
var i=r(4),n=r(7),s=r(2)
t.AnnotationLayerBuilder=class{#$n=null
constructor({pageDiv:e,pdfPage:t,linkService:r,downloadManager:i,annotationStorage:s=null,imageResourcesPath:a="",renderForms:o=!0,l10n:l=n.NullL10n,enableScripting:c=!1,hasJSActionsPromise:u=null,fieldObjectsPromise:d=null,annotationCanvasMap:h=null,accessibilityManager:p=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=r,this.downloadManager=i,this.imageResourcesPath=a,this.renderForms=o,this.l10n=l,this.annotationStorage=s,this.enableScripting=c,this._hasJSActionsPromise=u||Promise.resolve(!1),this._fieldObjectsPromise=d||Promise.resolve(null),this._annotationCanvasMap=h,this._accessibilityManager=p,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=r.eventBus}async render(e,t="display"){if(this.div){if(this._cancelled||!this.annotationLayer)return
return void this.annotationLayer.update({viewport:e.clone({dontFlip:!0})})}const[r,n,a]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise])
if(this._cancelled)return
const o=this.div=document.createElement("div")
o.className="annotationLayer",this.pageDiv.append(o),0!==r.length?(this.annotationLayer=new i.AnnotationLayer({div:o,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,l10n:this.l10n,page:this.pdfPage,viewport:e.clone({dontFlip:!0})}),await this.annotationLayer.render({annotations:r,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:n,fieldObjects:a}),this.linkService.isInPresentationMode&&this.#zn(s.PresentationModeState.FULLSCREEN),this.#$n||(this.#$n=e=>{this.#zn(e.state)},this._eventBus?._on("presentationmodechanged",this.#$n))):this.hide()}cancel(){this._cancelled=!0,this.#$n&&(this._eventBus?._off("presentationmodechanged",this.#$n),this.#$n=null)}hide(){this.div&&(this.div.hidden=!0)}#zn(e){if(!this.div)return
let t=!1
switch(e){case s.PresentationModeState.FULLSCREEN:t=!0
break
case s.PresentationModeState.NORMAL:break
default:return}for(const r of this.div.childNodes)r.hasAttribute("data-internal-link")||(r.inert=t)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=i
const r={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"}
function i(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`
break
case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return r[e]||""}r.print_progress_percent="{{progress}}%"
const n={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t=null,r=i(e,t))=>function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(r,t),async translate(e){}}
t.NullL10n=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0
var i=r(4)
function n(e,t){const r=document.createElement("a")
if(!r.click)throw new Error('DownloadManager: "a.click()" is not supported.')
r.href=e,r.target="_parent","download"in r&&(r.download=t),(document.body||document.documentElement).append(r),r.click(),r.remove()}t.DownloadManager=class{#Un=new WeakMap
downloadUrl(e,t,r){(0,i.createValidAbsoluteUrl)(e,"http://example.com")?n(e+"#pdfjs.action=download",t):console.error(`downloadUrl - not a valid URL: ${e}`)}downloadData(e,t,r){n(URL.createObjectURL(new Blob([e],{type:r})),t)}openOrDownloadData(e,t,r){const n=(0,i.isPdfFile)(r)?"application/pdf":""
return this.downloadData(t,r,n),!1}download(e,t,r,i){n(URL.createObjectURL(e),r)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:e,name:t,delay:n=0}){return new Promise((function(s,a){if("object"!=typeof e||!t||"string"!=typeof t||!(Number.isInteger(n)&&n>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.")
function o(r){e instanceof i?e._off(t,l):e.removeEventListener(t,l),u&&clearTimeout(u),s(r)}const l=o.bind(null,r.EVENT)
e instanceof i?e._on(t,l):e.addEventListener(t,l)
const c=o.bind(null,r.TIMEOUT),u=setTimeout(c,n)}))}
const r={EVENT:"event",TIMEOUT:"timeout"}
t.WaitOnType=r
class i{#a=Object.create(null)
on(e,t,r=null){this._on(e,t,{external:!0,once:r?.once})}off(e,t,r=null){this._off(e,t,{external:!0,once:r?.once})}dispatch(e,t){const r=this.#a[e]
if(!r||0===r.length)return
let i
for(const{listener:n,external:s,once:a}of r.slice(0))a&&this._off(e,n),s?(i||=[]).push(n):n(t)
if(i){for(const e of i)e(t)
i=null}}_on(e,t,r=null){(this.#a[e]||=[]).push({listener:t,external:!0===r?.external,once:!0===r?.once})}_off(e,t,r=null){const i=this.#a[e]
if(i)for(let n=0,s=i.length;n<s;n++)if(i[n].listener===t)return void i.splice(n,1)}}t.EventBus=i
t.AutomationEventBus=class extends i{dispatch(e,t){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,r(11)
var i=r(7)
const n={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"}
t.GenericL10n=class{constructor(e){const{webL10n:t}=document
this._lang=e,this._ready=new Promise(((r,i)=>{var s
t.setLanguage((s=e,n[s?.toLowerCase()]||s),(()=>{r(t)}))}))}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e,t=null,r=(0,i.getL10nFallback)(e,t)){return(await this._ready).get(e,t,r)}async translate(e){return(await this._ready).translate(e)}}},()=>{document.webL10n=function(e,t){var r={},i="",n="textContent",s="",a={},o="loading",l=!0
function c(e,t,r){t=t||function(e){},r=r||function(){}
var i=new XMLHttpRequest
i.open("GET",e,l),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=utf-8"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||0===i.status?t(i.responseText):r())},i.onerror=r,i.ontimeout=r
try{i.send(null)}catch(n){r()}}function u(e,t,s,a){var o=e.replace(/[^\/]*$/,"")||"./"
function l(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}c(e,(function(e){i+=e,function(e,r){var i={},n=/^\s*|\s*$/,s=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,u=/^\s*@import\s+url\((.*)\)\s*$/i,d=/^([^=\s]*)\s*=\s*(.+)$/
function h(e,r,c){var h=e.replace(n,"").split(/[\r\n]+/),f="*",m=t.split("-",1)[0],g=!1,b="";(function e(){for(;;){if(!h.length)return void c()
var n=h.shift()
if(!s.test(n)){if(r){if(b=a.exec(n)){f=b[1].toLowerCase(),g="*"!==f&&f!==t&&f!==m
continue}if(g)continue
if(b=u.exec(n))return void p(o+b[1],e)}var y=n.match(d)
y&&3==y.length&&(i[y[1]]=l(y[2]))}}})()}function p(e,t){c(e,(function(e){h(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}h(e,!0,(function(){r(i)}))}(e,(function(e){for(var t in e){var i,a,o=t.lastIndexOf(".")
o>0?(i=t.substring(0,o),a=t.substring(o+1)):(i=t,a=n),r[i]||(r[i]={}),r[i][a]=e[t]}s&&s()}))}),a)}function d(e,n){e&&(e=e.toLowerCase()),n=n||function(){},r={},i="",s="",s=e
var a=t.querySelectorAll('link[type="application/l10n"]'),l=a.length
if(0!==l){var c,d,h=0
d=function(){++h>=l&&(n(),o="complete")}
for(var p=0;p<l;p++){new b(a[p]).load(e,d)}}else{var f=(c=t.querySelector('script[type="application/l10n"]'))?JSON.parse(c.innerHTML):null
if(f&&f.locales&&f.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=f.locales[e])){var m=f.default_locale.toLowerCase()
for(var g in f.locales){if((g=g.toLowerCase())===e){r=f.locales[e]
break}g===m&&(r=f.locales[m])}}n()}else console.log("no resource to load, early way out")
o="complete"}function b(e){var t=e.href
this.load=function(e,r){u(t,e,r,(function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),s="",r()}))}}}function h(e,t,i){var n=r[e]
if(!n){if(console.warn("#"+e+" is undefined."),!i)return null
n=i}var s={}
for(var a in n){var o=n[a]
o=f(o=p(o,t,e,a),t,e),s[a]=o}return s}function p(e,t,i,n){var s=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e)
if(!s||!s.length)return e
var o,l=s[1],c=s[2];(t&&c in t?o=t[c]:c in r&&(o=r[c]),l in a)&&(e=(0,a[l])(e,o,i,n))
return e}function f(e,t,i){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(e,n){return t&&n in t?t[n]:n in r?r[n]:(console.log("argument {{"+n+"}} for #"+i+" is undefined."),e)}))}function m(e){var r=function(e){if(!e)return{}
var t=e.getAttribute("data-l10n-id"),r=e.getAttribute("data-l10n-args"),i={}
if(r)try{i=JSON.parse(r)}catch(n){console.warn("could not parse arguments for #"+t)}return{id:t,args:i}}(e)
if(r.id){var i=h(r.id,r.args)
if(i){if(i[n]){if(0===function(e){if(e.children)return e.children.length
if(void 0!==e.childElementCount)return e.childElementCount
for(var t=0,r=0;r<e.childNodes.length;r++)t+=1===e.nodeType?1:0
return t}(e))e[n]=i[n]
else{for(var s=e.childNodes,a=!1,o=0,l=s.length;o<l;o++)3===s[o].nodeType&&/\S/.test(s[o].nodeValue)&&(a?s[o].nodeValue="":(s[o].nodeValue=i[n],a=!0))
if(!a){var c=t.createTextNode(i[n])
e.prepend(c)}}delete i[n]}for(var u in i)e[u]=i[u]}else console.warn("#"+r.id+" is undefined.")}}return a.plural=function(e,t,i,o){var l=parseFloat(t)
if(isNaN(l))return e
if(o!=n)return e
a._pluralRules||(a._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function r(e,t,r){return t<=e&&e<=r}var i={0:function(e){return"other"},1:function(e){return r(e%100,3,10)?"few":0===e?"zero":r(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return r(e,0,1)?"one":"other"},5:function(e){return r(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return r(e,3,6)?"few":r(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&r(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return r(e%10,2,9)&&!r(e%100,11,19)?"few":e%10!=1||r(e%100,11,19)?"other":"one"},11:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":e%10==0||r(e%10,5,9)||r(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return r(e,2,4)?"few":1==e?"one":"other"},13:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":1!=e&&r(e%10,0,1)||r(e%10,5,9)||r(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return r(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||r(e%100,2,10)?"few":r(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":r(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return r(e,2,10)?"few":r(e,0,1)?"one":"other"},20:function(e){return!r(e%10,3,4)&&e%10!=9||r(e%100,10,19)||r(e%100,70,79)||r(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return r(e,0,1)||r(e,11,99)?"one":"other"},23:function(e){return r(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return r(e,3,10)||r(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},n={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")]
return n in i?i[n]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(s))
var c="["+a._pluralRules(l)+"]"
return 0===l&&i+"[zero]"in r?e=r[i+"[zero]"][o]:1==l&&i+"[one]"in r?e=r[i+"[one]"][o]:2==l&&i+"[two]"in r?e=r[i+"[two]"][o]:i+c in r?e=r[i+c][o]:i+"[other]"in r&&(e=r[i+"[other]"][o]),e},{get:function(e,t,r){var i,s=e.lastIndexOf("."),a=n
s>0&&(a=e.substring(s+1),e=e.substring(0,s)),r&&((i={})[a]=r)
var o=h(e,t,i)
return o&&a in o?o[a]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return s},setLanguage:function(e,t){d(e,(function(){t&&t()}))},getDirection:function(){var e=s.split("-",1)[0]
return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var r=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),i=r.length,n=0;n<i;n++)m(r[n])
m(e)},getReadyState:function(){return o},ready:function(r){r&&("complete"==o||"interactive"==o?e.setTimeout((function(){r()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),r()})))}}}(window,document)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=o,t.isDestHashesEqual=a
var i=r(2),n=r(9)
function s(){return document.location.hash}function a(e,t){if("string"!=typeof e||"string"!=typeof t)return!1
if(e===t)return!0
return(0,i.parseQueryString)(e).get("nameddest")===t}function o(e,t){function r(e,t){if(typeof e!=typeof t)return!1
if(Array.isArray(e)||Array.isArray(t))return!1
if(null!==e&&"object"==typeof e&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1
for(const i in e)if(!r(e[i],t[i]))return!1
return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1
if(e.length!==t.length)return!1
for(let i=0,n=e.length;i<n;i++)if(!r(e[i],t[i]))return!1
return!0}t.PDFHistory=class{constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",(()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",(e=>{this._isPagesLoaded=!!e.pagesCount}),{once:!0})}))}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:r=!1}){if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')
this._initialized&&this.reset()
const i=""!==this._fingerprint&&this._fingerprint!==e
this._fingerprint=e,this._updateUrl=!0===r,this._initialized=!0,this._bindEvents()
const n=window.history.state
if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=s(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(n,!0)||t){const{hash:e,page:r,rotation:n}=this._parseCurrentHash(!0)
return!e||i||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:r,rotation:n},!0)}const a=n.destination
this._updateInternalState(a,n.uid,!0),void 0!==a.rotation&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:r}){if(!this._initialized)return
if(e&&"string"!=typeof e)return void console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`)
if(!Array.isArray(t))return void console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`)
if(!this._isValidPage(r)&&(null!==r||this._destination))return void console.error(`PDFHistory.push: "${r}" is not a valid pageNumber parameter.`)
const i=e||JSON.stringify(t)
if(!i)return
let n=!1
if(this._destination&&(a(this._destination.hash,i)||o(this._destination.dest,t))){if(this._destination.page)return
n=!0}this._popStateInProgress&&!n||(this._pushOrReplaceState({dest:t,hash:i,page:r,rotation:this.linkService.rotation},n),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page!==e&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))):console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return
const e=window.history.state
this._isValidState(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return
const e=window.history.state
this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(e,t=!1){const r=t||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:e}
let n
if(this._updateInternalState(e,i.uid),this._updateUrl&&e?.hash){const t=document.location.href.split("#")[0]
t.startsWith("file://")||(n=`${t}#${e.hash}`)}r?window.history.replaceState(i,"",n):window.history.pushState(i,"",n)}_tryPushCurrentPosition(e=!1){if(!this._position)return
let t=this._position
if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination)return void this._pushOrReplaceState(t)
if(this._destination.temporary)return void this._pushOrReplaceState(t,!0)
if(this._destination.hash===t.hash)return
if(!this._destination.page&&this._numPositionUpdates<=50)return
let r=!1
if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return
r=!0}this._pushOrReplaceState(t,r)}_isValidPage(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}_isValidState(e,t=!1){if(!e)return!1
if(e.fingerprint!==this._fingerprint){if(!t)return!1
{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1
const[t]=performance.getEntriesByType("navigation")
if("reload"!==t?.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"==typeof e.destination)}_updateInternalState(e,t,r=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),r&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}_parseCurrentHash(e=!1){const t=unescape(s()).substring(1),r=(0,i.parseQueryString)(t),n=r.get("nameddest")||""
let a=0|r.get("page")
return(!this._isValidPage(a)||e&&n.length>0)&&(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}_updateViewarea({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null}),1e3))}_popState({state:e}){const t=s(),r=this._currentHash!==t
if(this._currentHash=t,!e){this._uid++
const{hash:e,page:t,rotation:r}=this._parseCurrentHash()
return void this._pushOrReplaceState({hash:e,page:t,rotation:r},!0)}if(!this._isValidState(e))return
this._popStateInProgress=!0,r&&(this._blockHashChange++,(0,n.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((()=>{this._blockHashChange--})))
const a=e.destination
this._updateInternalState(a,e.uid,!0),(0,i.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.goToDestination(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then((()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0
var i=r(4),n=r(2),s=r(14),a=r(6),o=r(15),l=r(7),c=r(5),u=r(16),d=r(17),h=r(18),p=r(19),f=r(20)
const m=o.compatibilityParams.maxCanvasPixels||16777216,g=()=>({annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new c.SimpleLinkService}})
t.PDFPageView=class{#qn=i.AnnotationMode.ENABLE_FORMS
#Hn=!1
#Vn=null
#Gn=null
#Wn=null
#Xn=null
#Kn=n.RenderingStates.INITIAL
#Yn=n.TextLayerMode.ENABLE
#Jn={directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0}
#Qn=new WeakMap
constructor(e){const t=e.container,r=e.defaultViewport
this.id=e.id,this.renderingId="page"+this.id,this.#Vn=e.layerProperties||g,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||n.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.#Yn=e.textLayerMode??n.TextLayerMode.ENABLE,this.#qn=e.annotationMode??i.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.isOffscreenCanvasSupported=e.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=e.maxCanvasPixels??m,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.l10n=e.l10n||l.NullL10n,this.renderTask=null,this.resume=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._container=t,e.useOnlyCssZoom&&(console.error("useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead."),this.maxCanvasPixels=0),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null
this.structTreeLayer=null
const s=document.createElement("div")
if(s.className="page",s.setAttribute("data-page-number",this.id),s.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then((e=>{s.setAttribute("aria-label",e)})),this.div=s,this.#Ei(),t?.append(s),this._isStandalone){t?.style.setProperty("--scale-factor",this.scale*i.PixelsPerInch.PDF_TO_CSS_UNITS)
const{optionalContentConfigPromise:r}=e
r&&r.then((e=>{r===this._optionalContentConfigPromise&&(this.#Jn.initialOptionalContent=e.hasInitialVisibility)}))}}get renderingState(){return this.#Kn}set renderingState(e){if(e!==this.#Kn)switch(this.#Kn=e,this.#Gn&&(clearTimeout(this.#Gn),this.#Gn=null),e){case n.RenderingStates.PAUSED:this.div.classList.remove("loading")
break
case n.RenderingStates.RUNNING:this.div.classList.add("loadingIcon"),this.#Gn=setTimeout((()=>{this.div.classList.add("loading"),this.#Gn=null}),0)
break
case n.RenderingStates.INITIAL:case n.RenderingStates.FINISHED:this.div.classList.remove("loadingIcon","loading")}}#Ei(){const{viewport:e}=this
if(this.pdfPage){if(this.#Wn===e.rotation)return
this.#Wn=e.rotation}(0,i.setLayerDimensions)(this.div,e,!0,!1)}setPdfPage(e){!this._isStandalone||"CanvasText"!==this.pageColors?.foreground&&"Canvas"!==this.pageColors?.background||this._container?.style.setProperty("--hcm-highligh-filter",e.filterFactory.addHighlightHCMFilter("CanvasText","Canvas","HighlightText","Highlight")),this.pdfPage=e,this.pdfPageRotate=e.rotate
const t=(this.rotation+this.pdfPageRotate)%360
this.viewport=e.getViewport({scale:this.scale*i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.#Ei(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}get _textHighlighter(){return(0,i.shadow)(this,"_textHighlighter",new h.TextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#Vn().findController}))}async#Zn(){let e=null
try{await this.annotationLayer.render(this.viewport,"display")}catch(t){console.error(`#renderAnnotationLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:e})}}async#es(){let e=null
try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(t){console.error(`#renderAnnotationEditorLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:e})}}async#ts(){let e=null
try{const e=await this.xfaLayer.render(this.viewport,"display")
e?.textDivs&&this._textHighlighter&&this.#rs(e.textDivs)}catch(t){console.error(`#renderXfaLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:e})}}async#is(){const{pdfPage:e,textLayer:t,viewport:r}=this
if(!t)return
let n=null
try{if(!t.renderingDone){const r=e.streamTextContent({includeMarkedContent:!0,disableNormalization:!0})
t.setTextContentSource(r)}await t.render(r)}catch(s){if(s instanceof i.AbortException)return
console.error(`#renderTextLayer: "${s}".`),n=s}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.id,numTextDivs:t.numTextDivs,error:n}),this.#ns()}async#ns(){if(!this.textLayer)return
this.structTreeLayer||=new u.StructTreeLayerBuilder
const e=await(this.structTreeLayer.renderingDone?null:this.pdfPage.getStructTree()),t=this.structTreeLayer?.render(e)
t&&this.canvas?.append(t),this.structTreeLayer?.show()}async#rs(e){const t=await this.pdfPage.getTextContent(),r=[]
for(const i of t.items)r.push(i.str)
this._textHighlighter.setTextMapping(e,r),this._textHighlighter.enable()}_resetZoomLayer(e=!1){if(!this.zoomLayer)return
const t=this.zoomLayer.firstChild
this.#Qn.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:r=!1,keepXfaLayer:i=!1,keepTextLayer:s=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:r,keepXfaLayer:i,keepTextLayer:s}),this.renderingState=n.RenderingStates.INITIAL
const a=this.div,o=a.childNodes,l=e&&this.zoomLayer||null,c=t&&this.annotationLayer?.div||null,u=r&&this.annotationEditorLayer?.div||null,d=i&&this.xfaLayer?.div||null,h=s&&this.textLayer?.div||null
for(let n=o.length-1;n>=0;n--){const e=o[n]
switch(e){case l:case c:case u:case d:case h:continue}e.remove()}a.removeAttribute("data-loaded"),c&&this.annotationLayer.hide(),u&&this.annotationEditorLayer.hide(),d&&this.xfaLayer.hide(),h&&this.textLayer.hide(),this.structTreeLayer?.hide(),l||(this.canvas&&(this.#Qn.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer())}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:r=null,drawingDelay:s=-1}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),r instanceof Promise&&(this._optionalContentConfigPromise=r,r.then((e=>{r===this._optionalContentConfigPromise&&(this.#Jn.initialOptionalContent=e.hasInitialVisibility)}))),this.#Jn.directDrawing=!0
const a=(this.rotation+this.pdfPageRotate)%360
if(this.viewport=this.viewport.clone({scale:this.scale*i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:a}),this.#Ei(),this._isStandalone&&this._container?.style.setProperty("--scale-factor",this.viewport.scale),this.canvas){let e=!1
if(this.#Hn)if(0===this.maxCanvasPixels)e=!0
else if(this.maxCanvasPixels>0){const{width:t,height:r}=this.viewport,{sx:i,sy:n}=this.outputScale
e=(Math.floor(t)*i|0)*(Math.floor(r)*n|0)>this.maxCanvasPixels}const t=!e&&s>=0&&s<1e3
if(t||e){if(t&&this.renderingState!==n.RenderingStates.FINISHED&&(this.cancelRendering({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:s}),this.renderingState=n.RenderingStates.FINISHED,this.#Jn.directDrawing=!1),this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!t,hideTextLayer:t}),t)return
return void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this.#Xn})}this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:r=!1,keepTextLayer:i=!1,cancelExtraDelay:n=0}={}){this.renderTask&&(this.renderTask.cancel(n),this.renderTask=null),this.resume=null,!this.textLayer||i&&this.textLayer.div||(this.textLayer.cancel(),this.textLayer=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||r&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({target:e,redrawAnnotationLayer:t=!1,redrawAnnotationEditorLayer:r=!1,redrawXfaLayer:i=!1,redrawTextLayer:n=!1,hideTextLayer:s=!1}){if(!e.hasAttribute("zooming")){e.setAttribute("zooming",!0)
const{style:t}=e
t.width=t.height=""}const a=this.#Qn.get(e)
if(this.viewport!==a){const t=this.viewport.rotation-a.rotation,r=Math.abs(t)
let i=1,n=1
if(90===r||270===r){const{width:e,height:t}=this.viewport
i=t/e,n=e/t}e.style.transform=`rotate(${t}deg) scale(${i}, ${n})`}t&&this.annotationLayer&&this.#Zn(),r&&this.annotationEditorLayer&&this.#es(),i&&this.xfaLayer&&this.#ts(),this.textLayer&&(s?(this.textLayer.hide(),this.structTreeLayer?.hide()):n&&this.#is())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}async#ss(e,t=null){if(e===this.renderTask&&(this.renderTask=null),t instanceof i.RenderingCancelledException)this.#Xn=null
else if(this.#Xn=t,this.renderingState=n.RenderingStates.FINISHED,this._resetZoomLayer(!0),this.#Jn.regularAnnotations=!e.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this.#Xn}),t)throw t}async draw(){this.renderingState!==n.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset())
const{div:e,l10n:t,pageColors:r,pdfPage:o,viewport:l}=this
if(!o)throw this.renderingState=n.RenderingStates.FINISHED,new Error("pdfPage is not loaded")
this.renderingState=n.RenderingStates.RUNNING
const c=document.createElement("div")
if(c.classList.add("canvasWrapper"),e.append(c),this.textLayer||this.#Yn===n.TextLayerMode.DISABLE||o.isPureXfa||(this._accessibilityManager||=new d.TextAccessibilityManager,this.textLayer=new p.TextLayerBuilder({highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,enablePermissions:this.#Yn===n.TextLayerMode.ENABLE_PERMISSIONS}),e.append(this.textLayer.div)),!this.annotationLayer&&this.#qn!==i.AnnotationMode.DISABLE){const{annotationStorage:r,downloadManager:n,enableScripting:s,fieldObjectsPromise:l,hasJSActionsPromise:c,linkService:u}=this.#Vn()
this._annotationCanvasMap||=new Map,this.annotationLayer=new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:o,annotationStorage:r,imageResourcesPath:this.imageResourcesPath,renderForms:this.#qn===i.AnnotationMode.ENABLE_FORMS,linkService:u,downloadManager:n,l10n:t,enableScripting:s,hasJSActionsPromise:c,fieldObjectsPromise:l,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})}const{width:u,height:h}=l,m=document.createElement("canvas")
m.setAttribute("role","presentation"),m.hidden=!0
const g=!(!r?.background||!r?.foreground)
let b=e=>{g&&!e||(m.hidden=!1,b=null)}
c.append(m),this.canvas=m
const y=m.getContext("2d",{alpha:!1}),v=this.outputScale=new n.OutputScale
if(0===this.maxCanvasPixels){const e=1/this.scale
v.sx*=e,v.sy*=e,this.#Hn=!0}else if(this.maxCanvasPixels>0){const e=u*h,t=Math.sqrt(this.maxCanvasPixels/e)
v.sx>t||v.sy>t?(v.sx=t,v.sy=t,this.#Hn=!0):this.#Hn=!1}const w=(0,n.approximateFraction)(v.sx),x=(0,n.approximateFraction)(v.sy)
m.width=(0,n.roundToDivide)(u*v.sx,w[0]),m.height=(0,n.roundToDivide)(h*v.sy,x[0])
const{style:_}=m
_.width=(0,n.roundToDivide)(u,w[1])+"px",_.height=(0,n.roundToDivide)(h,x[1])+"px",this.#Qn.set(m,l)
const S={canvasContext:y,transform:v.scaled?[v.sx,0,0,v.sy,0,0]:null,viewport:l,annotationMode:this.#qn,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:r},k=this.renderTask=this.pdfPage.render(S)
k.onContinue=e=>{if(b?.(!1),this.renderingQueue&&!this.renderingQueue.isHighestPriority(this))return this.renderingState=n.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=n.RenderingStates.RUNNING,e()})
e()}
const A=k.promise.then((async()=>{if(b?.(!0),await this.#ss(k),this.#is(),this.annotationLayer&&await this.#Zn(),!this.annotationEditorLayer){const{annotationEditorUIManager:r}=this.#Vn()
if(!r)return
this.annotationEditorLayer=new s.AnnotationEditorLayerBuilder({uiManager:r,pageDiv:e,pdfPage:o,l10n:t,accessibilityManager:this._accessibilityManager,annotationLayer:this.annotationLayer?.annotationLayer})}this.#es()}),(e=>(e instanceof i.RenderingCancelledException||b?.(!0),this.#ss(k,e))))
if(o.isPureXfa){if(this.xfaLayer)this.xfaLayer.div&&e.append(this.xfaLayer.div)
else{const{annotationStorage:t,linkService:r}=this.#Vn()
this.xfaLayer=new f.XfaLayerBuilder({pageDiv:e,pdfPage:o,annotationStorage:t,linkService:r})}this.#ts()}return e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),A}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{directDrawing:e,initialOptionalContent:t,regularAnnotations:r}=this.#Jn
return e&&t&&r?this.canvas:null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0
var i=r(4),n=r(7)
t.AnnotationEditorLayerBuilder=class{#kt=null
#Mt
constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n||n.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#Mt=e.uiManager,this.#kt=e.annotationLayer||null}async render(e,t="display"){if("display"!==t)return
if(this._cancelled)return
const r=e.clone({dontFlip:!0})
if(this.div)return this.annotationEditorLayer.update({viewport:r}),void this.show()
const n=this.div=document.createElement("div")
n.className="annotationEditorLayer",n.tabIndex=0,n.hidden=!0,n.dir=this.#Mt.direction,this.pageDiv.append(n),this.annotationEditorLayer=new i.AnnotationEditorLayer({uiManager:this.#Mt,div:n,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:r,annotationLayer:this.#kt})
const s={viewport:r,div:n,annotations:null,intent:t}
this.annotationEditorLayer.render(s),this.show()}cancel(){this._cancelled=!0,this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&!this.annotationEditorLayer.isEmpty&&(this.div.hidden=!1)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0
const r=Object.create(null)
t.compatibilityParams=r
{const e=navigator.userAgent||"",t=navigator.platform||"",i=navigator.maxTouchPoints||1,n=/Android/.test(e);(/\b(iPad|iPhone|iPod)(?=;)/.test(e)||"MacIntel"===t&&i>1||n)&&(r.maxCanvasPixels=5242880)}const i={VIEWER:2,API:4,WORKER:8,PREFERENCE:128}
t.OptionKind=i
const n={annotationEditorMode:{value:0,kind:i.VIEWER+i.PREFERENCE},annotationMode:{value:2,kind:i.VIEWER+i.PREFERENCE},cursorToolOnLoad:{value:0,kind:i.VIEWER+i.PREFERENCE},defaultZoomDelay:{value:400,kind:i.VIEWER+i.PREFERENCE},defaultZoomValue:{value:"",kind:i.VIEWER+i.PREFERENCE},disableHistory:{value:!1,kind:i.VIEWER},disablePageLabels:{value:!1,kind:i.VIEWER+i.PREFERENCE},enablePermissions:{value:!1,kind:i.VIEWER+i.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:i.VIEWER+i.PREFERENCE},enableScripting:{value:!0,kind:i.VIEWER+i.PREFERENCE},enableStampEditor:{value:!0,kind:i.VIEWER+i.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:i.VIEWER},externalLinkTarget:{value:0,kind:i.VIEWER+i.PREFERENCE},historyUpdateUrl:{value:!1,kind:i.VIEWER+i.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:i.VIEWER+i.PREFERENCE},imageResourcesPath:{value:"./images/",kind:i.VIEWER},maxCanvasPixels:{value:16777216,kind:i.VIEWER},forcePageColors:{value:!1,kind:i.VIEWER+i.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:i.VIEWER+i.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:i.VIEWER+i.PREFERENCE},pdfBugEnabled:{value:!1,kind:i.VIEWER+i.PREFERENCE},printResolution:{value:150,kind:i.VIEWER},sidebarViewOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},scrollModeOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},spreadModeOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},textLayerMode:{value:1,kind:i.VIEWER+i.PREFERENCE},viewerCssTheme:{value:0,kind:i.VIEWER+i.PREFERENCE},viewOnLoad:{value:0,kind:i.VIEWER+i.PREFERENCE},cMapPacked:{value:!0,kind:i.API},cMapUrl:{value:"../web/cmaps/",kind:i.API},disableAutoFetch:{value:!1,kind:i.API+i.PREFERENCE},disableFontFace:{value:!1,kind:i.API+i.PREFERENCE},disableRange:{value:!1,kind:i.API+i.PREFERENCE},disableStream:{value:!1,kind:i.API+i.PREFERENCE},docBaseUrl:{value:"",kind:i.API},enableXfa:{value:!0,kind:i.API+i.PREFERENCE},fontExtraProperties:{value:!1,kind:i.API},isEvalSupported:{value:!0,kind:i.API},isOffscreenCanvasSupported:{value:!0,kind:i.API},maxImageSize:{value:-1,kind:i.API},pdfBug:{value:!1,kind:i.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:i.API},verbosity:{value:1,kind:i.API},workerPort:{value:null,kind:i.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:i.WORKER}}
n.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:i.VIEWER},n.disablePreferences={value:!1,kind:i.VIEWER},n.locale={value:navigator.language||"en-US",kind:i.VIEWER},n.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:i.VIEWER}
const s=Object.create(null)
class a{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(e){const t=s[e]
if(void 0!==t)return t
const i=n[e]
return void 0!==i?r[e]??i.value:void 0}static getAll(e=null){const t=Object.create(null)
for(const a in n){const o=n[a]
if(e){if(!(e&o.kind))continue
if(e===i.PREFERENCE){const e=o.value,r=typeof e
if("boolean"===r||"string"===r||"number"===r&&Number.isInteger(e)){t[a]=e
continue}throw new Error(`Invalid type for preference: ${a}`)}}const l=s[a]
t[a]=void 0!==l?l:r[a]??o.value}return t}static set(e,t){s[e]=t}static setAll(e){for(const t in e)s[t]=e[t]}static remove(e){delete s[e]}}t.AppOptions=a,a._hasUserOptions=function(){return Object.keys(s).length>0}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0
var i=r(2)
const n={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},s=/^H(\d+)$/
t.StructTreeLayerBuilder=class{#as=void 0
get renderingDone(){return void 0!==this.#as}render(e){if(void 0!==this.#as)return this.#as
const t=this.#os(e)
return t?.classList.add("structTree"),this.#as=t}hide(){this.#as&&!this.#as.hidden&&(this.#as.hidden=!0)}show(){this.#as?.hidden&&(this.#as.hidden=!1)}#ls(e,t){const{alt:r,id:n,lang:s}=e
void 0!==r&&t.setAttribute("aria-label",(0,i.removeNullCharacters)(r)),void 0!==n&&t.setAttribute("aria-owns",n),void 0!==s&&t.setAttribute("lang",(0,i.removeNullCharacters)(s,!0))}#os(e){if(!e)return null
const t=document.createElement("span")
if("role"in e){const{role:r}=e,i=r.match(s)
i?(t.setAttribute("role","heading"),t.setAttribute("aria-level",i[1])):n[r]&&t.setAttribute("role",n[r])}if(this.#ls(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this.#ls(e.children[0],t)
else for(const r of e.children)t.append(this.#os(r))
return t}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextAccessibilityManager=void 0
var i=r(2)
class n{#cs=!1
#us=null
#ds=new Map
#hs=new Map
setTextMapping(e){this.#us=e}static#ps(e,t){const r=e.getBoundingClientRect(),i=t.getBoundingClientRect()
if(0===r.width&&0===r.height)return 1
if(0===i.width&&0===i.height)return-1
const n=r.y,s=r.y+r.height,a=r.y+r.height/2,o=i.y,l=i.y+i.height,c=i.y+i.height/2
if(a<=o&&c>=s)return-1
if(c<=n&&a>=l)return 1
return r.x+r.width/2-(i.x+i.width/2)}enable(){if(this.#cs)throw new Error("TextAccessibilityManager is already enabled.")
if(!this.#us)throw new Error("Text divs and strings have not been set.")
if(this.#cs=!0,this.#us=this.#us.slice(),this.#us.sort(n.#ps),this.#ds.size>0){const e=this.#us
for(const[t,r]of this.#ds){document.getElementById(t)?this.#fs(t,e[r]):this.#ds.delete(t)}}for(const[e,t]of this.#hs)this.addPointerInTextLayer(e,t)
this.#hs.clear()}disable(){this.#cs&&(this.#hs.clear(),this.#us=null,this.#cs=!1)}removePointerInTextLayer(e){if(!this.#cs)return void this.#hs.delete(e)
const t=this.#us
if(!t||0===t.length)return
const{id:r}=e,i=this.#ds.get(r)
if(void 0===i)return
const n=t[i]
this.#ds.delete(r)
let s=n.getAttribute("aria-owns")
s?.includes(r)&&(s=s.split(" ").filter((e=>e!==r)).join(" "),s?n.setAttribute("aria-owns",s):(n.removeAttribute("aria-owns"),n.setAttribute("role","presentation")))}#fs(e,t){const r=t.getAttribute("aria-owns")
r?.includes(e)||t.setAttribute("aria-owns",r?`${r} ${e}`:e),t.removeAttribute("role")}addPointerInTextLayer(e,t){const{id:r}=e
if(!r)return null
if(!this.#cs)return this.#hs.set(e,t),null
t&&this.removePointerInTextLayer(e)
const s=this.#us
if(!s||0===s.length)return null
const a=(0,i.binarySearchFirstItem)(s,(t=>n.#ps(e,t)<0)),o=Math.max(0,a-1),l=s[o]
this.#fs(r,l),this.#ds.set(r,o)
const c=l.parentNode
return c?.classList.contains("markedContent")?c.id:null}moveElementInDOM(e,t,r,s){const a=this.addPointerInTextLayer(r,s)
if(!e.hasChildNodes())return e.append(t),a
const o=Array.from(e.childNodes).filter((e=>e!==t))
if(0===o.length)return a
const l=r||t,c=(0,i.binarySearchFirstItem)(o,(e=>n.#ps(l,e)<0))
return 0===c?o[0].before(t):o[c-1].after(t),a}}t.TextAccessibilityManager=n},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0
t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:r}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=r,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.")
if(this.enabled)throw new Error("TextHighlighter is already enabled.")
this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null),this._updateMatches(!0))}_convertMatches(e,t){if(!e)return[]
const{textContentItemsStr:r}=this
let i=0,n=0
const s=r.length-1,a=[]
for(let o=0,l=e.length;o<l;o++){let l=e[o]
for(;i!==s&&l>=n+r[i].length;)n+=r[i].length,i++
i===r.length&&console.error("Could not find a matching mapping")
const c={begin:{divIdx:i,offset:l-n}}
for(l+=t[o];i!==s&&l>n+r[i].length;)n+=r[i].length,i++
c.end={divIdx:i,offset:l-n},a.push(c)}return a}_renderMatches(e){if(0===e.length)return
const{findController:t,pageIdx:r}=this,{textContentItemsStr:i,textDivs:n}=this,s=r===t.selected.pageIdx,a=t.selected.matchIdx
let o=null
const l={divIdx:-1,offset:void 0}
function c(e,t){const r=e.divIdx
return n[r].textContent="",u(r,0,e.offset,t)}function u(e,t,r,s){let a=n[e]
if(a.nodeType===Node.TEXT_NODE){const t=document.createElement("span")
a.before(t),t.append(a),n[e]=t,a=t}const o=i[e].substring(t,r),l=document.createTextNode(o)
if(s){const e=document.createElement("span")
return e.className=`${s} appended`,e.append(l),a.append(e),s.includes("selected")?e.offsetLeft:0}return a.append(l),0}let d=a,h=d+1
if(t.state.highlightAll)d=0,h=e.length
else if(!s)return
let p=-1,f=-1
for(let m=d;m<h;m++){const i=e[m],d=i.begin
if(d.divIdx===p&&d.offset===f)continue
p=d.divIdx,f=d.offset
const h=i.end,g=s&&m===a,b=g?" selected":""
let y=0
if(o&&d.divIdx===o.divIdx?u(o.divIdx,o.offset,d.offset):(null!==o&&u(o.divIdx,o.offset,l.offset),c(d)),d.divIdx===h.divIdx)y=u(d.divIdx,d.offset,h.offset,"highlight"+b)
else{y=u(d.divIdx,d.offset,l.offset,"highlight begin"+b)
for(let e=d.divIdx+1,t=h.divIdx;e<t;e++)n[e].className="highlight middle"+b
c(h,"highlight end"+b)}o=h,g&&t.scrollMatchIntoView({element:n[d.divIdx],selectedLeft:y,pageIndex:r,matchIndex:a})}o&&u(o.divIdx,o.offset,l.offset)}_updateMatches(e=!1){if(!this.enabled&&!e)return
const{findController:t,matches:r,pageIdx:i}=this,{textContentItemsStr:n,textDivs:s}=this
let a=-1
for(const c of r){for(let e=Math.max(a,c.begin.divIdx),t=c.end.divIdx;e<=t;e++){const t=s[e]
t.textContent=n[e],t.className=""}a=c.end.divIdx+1}if(!t?.highlightMatches||e)return
const o=t.pageMatches[i]||null,l=t.pageMatchesLength[i]||null
this.matches=this._convertMatches(o,l),this._renderMatches(this.matches)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0
var i=r(4),n=r(2)
t.TextLayerBuilder=class{#ms=!1
#gs=0
#bs=0
#ys=null
constructor({highlighter:e=null,accessibilityManager:t=null,isOffscreenCanvasSupported:r=!0,enablePermissions:i=!1}){this.textContentItemsStr=[],this.renderingDone=!1,this.textDivs=[],this.textDivProperties=new WeakMap,this.textLayerRenderTask=null,this.highlighter=e,this.accessibilityManager=t,this.isOffscreenCanvasSupported=r,this.#ms=!0===i,this.div=document.createElement("div"),this.div.className="textLayer",this.hide()}#vs(){this.renderingDone=!0
const e=document.createElement("div")
e.className="endOfContent",this.div.append(e),this.#ws()}get numTextDivs(){return this.textDivs.length}async render(e){if(!this.#ys)throw new Error('No "textContentSource" parameter specified.')
const t=e.scale*(globalThis.devicePixelRatio||1),{rotation:r}=e
if(this.renderingDone){const n=r!==this.#gs,s=t!==this.#bs
return(n||s)&&(this.hide(),(0,i.updateTextLayer)({container:this.div,viewport:e,textDivs:this.textDivs,textDivProperties:this.textDivProperties,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,mustRescale:s,mustRotate:n}),this.#bs=t,this.#gs=r),void this.show()}this.cancel(),this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr),this.accessibilityManager?.setTextMapping(this.textDivs),this.textLayerRenderTask=(0,i.renderTextLayer)({textContentSource:this.#ys,container:this.div,viewport:e,textDivs:this.textDivs,textDivProperties:this.textDivProperties,textContentItemsStr:this.textContentItemsStr,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),await this.textLayerRenderTask.promise,this.#vs(),this.#bs=t,this.#gs=r,this.show(),this.accessibilityManager?.enable()}hide(){this.div.hidden||(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.renderingDone&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable(),this.accessibilityManager?.disable(),this.textContentItemsStr.length=0,this.textDivs.length=0,this.textDivProperties=new WeakMap}setTextContentSource(e){this.cancel(),this.#ys=e}#ws(){const{div:e}=this
e.addEventListener("mousedown",(t=>{const r=e.querySelector(".endOfContent")
if(!r)return
let i=t.target!==e
if(i&&="none"!==getComputedStyle(r).getPropertyValue("-moz-user-select"),i){const i=e.getBoundingClientRect(),n=Math.max(0,(t.pageY-i.top)/i.height)
r.style.top=(100*n).toFixed(2)+"%"}r.classList.add("active")})),e.addEventListener("mouseup",(()=>{const t=e.querySelector(".endOfContent")
t&&(t.style.top="",t.classList.remove("active"))})),e.addEventListener("copy",(e=>{if(!this.#ms){const t=document.getSelection()
e.clipboardData.setData("text/plain",(0,n.removeNullCharacters)((0,i.normalizeUnicode)(t.toString())))}e.preventDefault(),e.stopPropagation()}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0
var i=r(4)
t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:r=null,linkService:i,xfaHtml:n=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=r,this.linkService=i,this.xfaHtml=n,this.div=null,this._cancelled=!1}async render(e,t="display"){if("print"===t){const r={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t},n=document.createElement("div")
return this.pageDiv.append(n),r.div=n,i.XfaLayer.render(r)}const r=await this.pdfPage.getXfa()
if(this._cancelled||!r)return{textDivs:[]}
const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:r,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t}
return this.div?i.XfaLayer.update(n):(this.div=document.createElement("div"),this.pageDiv.append(this.div),n.div=this.div,i.XfaLayer.render(n))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0
var i=r(22),n=r(23)
class s extends n.PDFScriptingManager{constructor(e){e.externalServices||window.addEventListener("updatefromsandbox",(t=>{e.eventBus.dispatch("updatefromsandbox",{source:window,detail:t.detail})})),e.externalServices||={createScripting:({sandboxBundleSrc:e})=>new i.GenericScripting(e)},e.docProperties||=e=>(0,i.docProperties)(e),super(e)}}t.PDFScriptingManager=s},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docProperties=async function(e){const t="".split("#")[0]
let{info:r,metadata:n,contentDispositionFilename:s,contentLength:a}=await e.getMetadata()
if(!a){const{length:t}=await e.getDownloadInfo()
a=t}return{...r,baseURL:t,filesize:a,filename:s||(0,i.getPdfFilenameFromUrl)(""),metadata:n?.getRaw(),authors:n?.get("dc:creator"),numPages:e.numPages,URL:""}}
var i=r(4)
t.GenericScripting=class{constructor(e){this._ready=(0,i.loadScript)(e,!0).then((()=>window.pdfjsSandbox.QuickJSSandbox()))}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const t=await this._ready
setTimeout((()=>t.dispatchEvent(e)),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0
var i=r(2),n=r(4)
t.PDFScriptingManager=class{#xs=null
#_s=null
#Ss=null
#ks=null
#As=null
#Cs=null
#Ps=null
#Os=!1
#Es=null
#Ts=null
#Ms=null
constructor({eventBus:e,sandboxBundleSrc:t=null,externalServices:r=null,docProperties:i=null}){this.#ks=e,this.#Es=t,this.#As=r,this.#Ss=i}setViewer(e){this.#Ps=e}async setDocument(e){if(this.#Cs&&await this.#Is(),this.#Cs=e,!e)return
const[t,r,i]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()])
if(t||i){if(e===this.#Cs){try{this.#Ts=this.#Fs()}catch(n){return console.error(`setDocument: "${n.message}".`),void await this.#Is()}this._internalEvents.set("updatefromsandbox",(e=>{e?.source===window&&this.#Ns(e.detail)})),this._internalEvents.set("dispatcheventinsandbox",(e=>{this.#Ts?.dispatchEventInSandbox(e.detail)})),this._internalEvents.set("pagechanging",(({pageNumber:e,previous:t})=>{e!==t&&(this.#Rs(t),this.#Ds(e))})),this._internalEvents.set("pagerendered",(({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this.#Ps.currentPageNumber&&this.#Ds(e)})),this._internalEvents.set("pagesdestroy",(async()=>{await this.#Rs(this.#Ps.currentPageNumber),await(this.#Ts?.dispatchEventInSandbox({id:"doc",name:"WillClose"})),this.#xs?.resolve()}))
for(const[e,t]of this._internalEvents)this.#ks._on(e,t)
try{const n=await this.#Ss(e)
if(e!==this.#Cs)return
await this.#Ts.createSandbox({objects:t,calculationOrder:r,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...n,actions:i}}),this.#ks.dispatch("sandboxcreated",{source:this})}catch(n){return console.error(`setDocument: "${n.message}".`),void await this.#Is()}await(this.#Ts?.dispatchEventInSandbox({id:"doc",name:"Open"})),await this.#Ds(this.#Ps.currentPageNumber,!0),Promise.resolve().then((()=>{e===this.#Cs&&(this.#Os=!0)}))}}else await this.#Is()}async dispatchWillSave(){return this.#Ts?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(){return this.#Ts?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(){if(this.#Ts){await(this.#Ms?.promise),this.#Ms=new n.PromiseCapability
try{await this.#Ts.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}catch(e){throw this.#Ms.resolve(),this.#Ms=null,e}await this.#Ms.promise}}async dispatchDidPrint(){return this.#Ts?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get destroyPromise(){return this.#_s?.promise||null}get ready(){return this.#Os}get _internalEvents(){return(0,n.shadow)(this,"_internalEvents",new Map)}get _pageOpenPending(){return(0,n.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,n.shadow)(this,"_visitedPages",new Map)}async#Ns(e){const t=this.#Ps,r=t.isInPresentationMode||t.isChangingPresentationMode,{id:n,siblings:s,command:a,value:o}=e
if(!n){switch(a){case"clear":console.clear()
break
case"error":console.error(o)
break
case"layout":if(!r){const e=(0,i.apiPageLayoutToViewerModes)(o)
t.spreadMode=e.spreadMode}break
case"page-num":t.currentPageNumber=o+1
break
case"print":await t.pagesPromise,this.#ks.dispatch("print",{source:this})
break
case"println":console.log(o)
break
case"zoom":r||(t.currentScaleValue=o)
break
case"SaveAs":this.#ks.dispatch("download",{source:this})
break
case"FirstPage":t.currentPageNumber=1
break
case"LastPage":t.currentPageNumber=t.pagesCount
break
case"NextPage":t.nextPage()
break
case"PrevPage":t.previousPage()
break
case"ZoomViewIn":r||t.increaseScale()
break
case"ZoomViewOut":r||t.decreaseScale()
break
case"WillPrintFinished":this.#Ms?.resolve(),this.#Ms=null}return}if(r&&e.focus)return
delete e.id,delete e.siblings
const l=s?[n,...s]:[n]
for(const i of l){const t=document.querySelector(`[data-element-id="${i}"]`)
t?t.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this.#Cs?.annotationStorage.setValue(i,e)}}async#Ds(e,t=!1){const r=this.#Cs,s=this._visitedPages
if(t&&(this.#xs=new n.PromiseCapability),!this.#xs)return
const a=this.#Ps.getPageView(e-1)
if(a?.renderingState!==i.RenderingStates.FINISHED)return void this._pageOpenPending.add(e)
this._pageOpenPending.delete(e)
const o=(async()=>{const t=await(s.has(e)?null:a.pdfPage?.getJSActions())
r===this.#Cs&&await(this.#Ts?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:t}))})()
s.set(e,o)}async#Rs(e){const t=this.#Cs,r=this._visitedPages
if(!this.#xs)return
if(this._pageOpenPending.has(e))return
const i=r.get(e)
i&&(r.set(e,null),await i,t===this.#Cs&&await(this.#Ts?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}#Fs(){if(this.#_s=new n.PromiseCapability,this.#Ts)throw new Error("#initScripting: Scripting already exists.")
return this.#As.createScripting({sandboxBundleSrc:this.#Es})}async#Is(){if(!this.#Ts)return this.#Cs=null,void this.#_s?.resolve()
this.#xs&&(await Promise.race([this.#xs.promise,new Promise((e=>{setTimeout(e,1e3)}))]).catch((()=>{})),this.#xs=null),this.#Cs=null
try{await this.#Ts.destroySandbox()}catch{}this.#Ms?.reject(new Error("Scripting destroyed.")),this.#Ms=null
for(const[e,t]of this._internalEvents)this.#ks._off(e,t)
this._internalEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this.#Ts=null,this.#Os=!1,this.#_s?.resolve()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0
var i=r(2),n=r(25)
class s extends n.PDFViewer{_resetView(){super._resetView(),this._scrollMode=i.ScrollMode.PAGE,this._spreadMode=i.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=s},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFViewer=t.PDFPageViewBuffer=void 0
var i=r(4),n=r(2),s=r(7),a=r(13),o=r(26),l=r(5)
const c={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250}
function u(e){return Object.values(i.AnnotationEditorType).includes(e)&&e!==i.AnnotationEditorType.DISABLE}t.PagesCountLimit=c
class d{#js=new Set
#Ls=0
constructor(e){this.#Ls=e}push(e){const t=this.#js
t.has(e)&&t.delete(e),t.add(e),t.size>this.#Ls&&this.#Bs()}resize(e,t=null){this.#Ls=e
const r=this.#js
if(t){const e=r.size
let i=1
for(const n of r)if(t.has(n.id)&&(r.delete(n),r.add(n)),++i>e)break}for(;r.size>this.#Ls;)this.#Bs()}has(e){return this.#js.has(e)}[Symbol.iterator](){return this.#js.keys()}#Bs(){const e=this.#js.keys().next().value
e?.destroy(),this.#js.delete(e)}}t.PDFPageViewBuffer=d
t.PDFViewer=class{#$s=null
#ie=null
#zs=i.AnnotationEditorType.NONE
#Us=null
#qn=i.AnnotationMode.ENABLE_FORMS
#qs=null
#Hs=null
#ms=!1
#Vs=!1
#Gs=null
#Ws=!1
#Xs=0
#Ks=new ResizeObserver(this.#Ys.bind(this))
#Js=null
#Qs=null
#Zs=null
#Yn=n.TextLayerMode.ENABLE
constructor(e){const t="3.11.174"
if(i.version!==t)throw new Error(`The API version "${i.version}" does not match the Viewer version "${t}".`)
if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName||"DIV"!==this.viewer?.tagName)throw new Error("Invalid `container` and/or `viewer` option.")
if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.")
this.#Ks.observe(this.container),this.eventBus=e.eventBus,this.linkService=e.linkService||new l.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.#ie=e.altTextManager||null,this.findController&&(this.findController.onIsPageVisible=e=>this._getVisiblePages().ids.has(e)),this._scriptingManager=e.scriptingManager||null,this.#Yn=e.textLayerMode??n.TextLayerMode.ENABLE,this.#qn=e.annotationMode??i.AnnotationMode.ENABLE_FORMS,this.#zs=e.annotationEditorMode??i.AnnotationEditorType.NONE,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.removePageBorders=e.removePageBorders||!1,e.useOnlyCssZoom&&(console.error("useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead."),e.maxCanvasPixels=0),this.isOffscreenCanvasSupported=e.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||s.NullL10n,this.#ms=e.enablePermissions||!1,this.pageColors=e.pageColors||null,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new o.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,n.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=n.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#ea(),this.eventBus._on("thumbnailrendered",(({pageNumber:e,pdfPage:t})=>{const r=this._pages[e-1]
this.#$s.has(r)||t?.cleanup()}))}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}getCachedPageViews(){return new Set(this.#$s)}get pageViewsReady(){return this._pagesCapability.settled&&this._pages.every((e=>e?.pdfPage))}get renderForms(){return this.#qn===i.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.")
this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#ta(),!0
if(!(0<e&&e<=this.pagesCount))return!1
const r=this._currentPageNumber
return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:r}),t&&this.#ta(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return
let t=0|e
if(this._pageLabels){const r=this._pageLabels.indexOf(e)
r>=0&&(t=r+1)}this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==n.UNKNOWN_SCALE?this._currentScale:n.DEFAULT_SCALE}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.")
this.pdfDocument&&this.#ra(e,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this.#ra(e,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!(0,n.isValidRotation)(e))throw new Error("Invalid pages rotation angle.")
if(!this.pdfDocument)return
if((e%=360)<0&&(e+=360),this._pagesRotation===e)return
this._pagesRotation=e
const t=this._currentPageNumber
this.refresh(!0,{rotation:e}),this._currentScaleValue&&this.#ra(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}#Vn(){const e=this
return{get annotationEditorUIManager(){return e.#Us},get annotationStorage(){return e.pdfDocument?.annotationStorage},get downloadManager(){return e.downloadManager},get enableScripting(){return!!e._scriptingManager},get fieldObjectsPromise(){return e.pdfDocument?.getFieldObjects()},get findController(){return e.findController},get hasJSActionsPromise(){return e.pdfDocument?.hasJSActions()},get linkService(){return e.linkService}}}#ia(e){const t={annotationEditorMode:this.#zs,annotationMode:this.#qn,textLayerMode:this.#Yn}
return e?(e.includes(i.PermissionFlag.COPY)||this.#Yn!==n.TextLayerMode.ENABLE||(t.textLayerMode=n.TextLayerMode.ENABLE_PERMISSIONS),e.includes(i.PermissionFlag.MODIFY_CONTENTS)||(t.annotationEditorMode=i.AnnotationEditorType.DISABLE),e.includes(i.PermissionFlag.MODIFY_ANNOTATIONS)||e.includes(i.PermissionFlag.FILL_INTERACTIVE_FORMS)||this.#qn!==i.AnnotationMode.ENABLE_FORMS||(t.annotationMode=i.AnnotationMode.ENABLE),t):t}#na(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve()
const e=new Promise((e=>{this.#Qs=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#Qs),this.#Qs=null)},document.addEventListener("visibilitychange",this.#Qs)}))
return Promise.race([this._onePageRenderedCapability.promise,e])}async getAllText(){const e=[],t=[]
for(let r=1,i=this.pdfDocument.numPages;r<=i;++r){if(this.#Ws)return null
t.length=0
const i=await this.pdfDocument.getPage(r),{items:s}=await i.getTextContent()
for(const e of s)e.str&&t.push(e.str),e.hasEOL&&t.push("\n")
e.push((0,n.removeNullCharacters)(t.join("")))}return e.join("\n")}#sa(e,t){const r=document.getSelection(),{focusNode:i,anchorNode:s}=r
if(s&&i&&r.containsNode(this.#Gs)){if(this.#Vs||e===n.TextLayerMode.ENABLE_PERMISSIONS)return t.preventDefault(),void t.stopPropagation()
this.#Vs=!0
const r=this.container.style.cursor
this.container.style.cursor="wait"
const i=e=>this.#Ws="Escape"===e.key
window.addEventListener("keydown",i),this.getAllText().then((async e=>{null!==e&&await navigator.clipboard.writeText(e)})).catch((e=>{console.warn(`Something goes wrong when extracting the text: ${e.message}`)})).finally((()=>{this.#Vs=!1,this.#Ws=!1,window.removeEventListener("keydown",i),this.container.style.cursor=r})),t.preventDefault(),t.stopPropagation()}}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#Us&&(this.#Us.destroy(),this.#Us=null)),this.pdfDocument=e,!e)return
const t=e.numPages,r=e.getPage(1),s=e.getOptionalContentConfig(),o=this.#ms?e.getPermissions():Promise.resolve()
if(t>c.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.")
const e=this._scrollMode=n.ScrollMode.PAGE
this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e})}this._pagesCapability.promise.then((()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:t})}),(()=>{})),this._onBeforeDraw=e=>{const t=this._pages[e.pageNumber-1]
t&&this.#$s.push(t)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#Qs&&(document.removeEventListener("visibilitychange",this.#Qs),this.#Qs=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([r,o]).then((([r,o])=>{if(e!==this.pdfDocument)return
this._firstPageCapability.resolve(r),this._optionalContentConfigPromise=s
const{annotationEditorMode:l,annotationMode:d,textLayerMode:h}=this.#ia(o)
if(h!==n.TextLayerMode.DISABLE){const e=this.#Gs=document.createElement("div")
e.id="hiddenCopyElement",this.viewer.before(e)}if(l!==i.AnnotationEditorType.DISABLE){const t=l
e.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):u(t)?(this.#Us=new i.AnnotationEditorUIManager(this.container,this.viewer,this.#ie,this.eventBus,e,this.pageColors),t!==i.AnnotationEditorType.NONE&&this.#Us.updateMode(t)):console.error(`Invalid AnnotationEditor mode: ${t}`)}const p=this.#Vn.bind(this),f=this._scrollMode===n.ScrollMode.PAGE?null:this.viewer,m=this.currentScale,g=r.getViewport({scale:m*i.PixelsPerInch.PDF_TO_CSS_UNITS})
this.viewer.style.setProperty("--scale-factor",g.scale),"CanvasText"!==this.pageColors?.foreground&&"Canvas"!==this.pageColors?.background||this.viewer.style.setProperty("--hcm-highligh-filter",e.filterFactory.addHighlightHCMFilter("CanvasText","Canvas","HighlightText","Highlight"))
for(let e=1;e<=t;++e){const t=new a.PDFPageView({container:f,eventBus:this.eventBus,id:e,scale:m,defaultViewport:g.clone(),optionalContentConfigPromise:s,renderingQueue:this.renderingQueue,textLayerMode:h,annotationMode:d,imageResourcesPath:this.imageResourcesPath,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n,layerProperties:p})
this._pages.push(t)}const b=this._pages[0]
b&&(b.setPdfPage(r),this.linkService.cachePageRef(1,r.ref)),this._scrollMode===n.ScrollMode.PAGE?this.#aa():this._spreadMode!==n.SpreadMode.NONE&&this._updateSpreadMode(),this.#na().then((async()=>{if(this.findController?.setDocument(e),this._scriptingManager?.setDocument(e),this.#Gs&&(this.#Hs=this.#sa.bind(this,h),document.addEventListener("copy",this.#Hs)),this.#Us&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:this.#zs}),e.loadingParams.disableAutoFetch||t>c.FORCE_LAZY_PAGE_INIT)return void this._pagesCapability.resolve()
let r=t-1
if(r<=0)this._pagesCapability.resolve()
else for(let i=2;i<=t;++i){const t=e.getPage(i).then((e=>{const t=this._pages[i-1]
t.pdfPage||t.setPdfPage(e),this.linkService.cachePageRef(i,e.ref),0==--r&&this._pagesCapability.resolve()}),(e=>{console.error(`Unable to get page ${i} to initialize viewer`,e),0==--r&&this._pagesCapability.resolve()}))
i%c.PAUSE_EAGER_PAGE_INIT==0&&await t}})),this.eventBus.dispatch("pagesinit",{source:this}),e.getMetadata().then((({info:t})=>{e===this.pdfDocument&&t.Language&&(this.viewer.lang=t.Language)})),this.defaultRenderingQueue&&this.update()})).catch((e=>{console.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)}))}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null
for(let e=0,t=this._pages.length;e<t;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=n.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this.#$s=new d(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=new i.PromiseCapability,this._onePageRenderedCapability=new i.PromiseCapability,this._pagesCapability=new i.PromiseCapability,this._scrollMode=n.ScrollMode.VERTICAL,this._previousScrollMode=n.ScrollMode.UNKNOWN,this._spreadMode=n.SpreadMode.NONE,this.#Js={previousPageNumber:1,scrollDown:!0,pages:[]},this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.#Qs&&(document.removeEventListener("visibilitychange",this.#Qs),this.#Qs=null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.#Gs&&(document.removeEventListener("copy",this.#Hs),this.#Hs=null,this.#Gs.remove(),this.#Gs=null)}#aa(){if(this._scrollMode!==n.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.")
const e=this._currentPageNumber,t=this.#Js,r=this.viewer
if(r.textContent="",t.pages.length=0,this._spreadMode!==n.SpreadMode.NONE||this.isInPresentationMode){const i=new Set,n=this._spreadMode-1;-1===n?i.add(e-1):e%2!==n?(i.add(e-1),i.add(e)):(i.add(e-2),i.add(e-1))
const s=document.createElement("div")
if(s.className="spread",this.isInPresentationMode){const e=document.createElement("div")
e.className="dummyPage",s.append(e)}for(const e of i){const r=this._pages[e]
r&&(s.append(r.div),t.pages.push(r))}r.append(s)}else{const i=this._pages[e-1]
r.append(i.div),t.pages.push(i)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#oa(e,t=null){const{div:r,id:i}=e
if(this._currentPageNumber!==i&&this._setCurrentPageNumber(i),this._scrollMode===n.ScrollMode.PAGE&&(this.#aa(),this.update()),!t&&!this.isInPresentationMode){const e=r.offsetLeft+r.clientLeft,i=e+r.clientWidth,{scrollLeft:s,clientWidth:a}=this.container;(this._scrollMode===n.ScrollMode.HORIZONTAL||e<s||i>s+a)&&(t={left:0,top:0})}(0,n.scrollIntoView)(r,t),!this._currentScaleValue&&this._location&&(this._location=null)}#la(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}#ca(e,t,{noScroll:r=!1,preset:n=!1,drawingDelay:s=-1}){if(this._currentScaleValue=t.toString(),this.#la(e))return void(n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t}))
this.viewer.style.setProperty("--scale-factor",e*i.PixelsPerInch.PDF_TO_CSS_UNITS)
const a=s>=0&&s<1e3
if(this.refresh(!0,{scale:e,drawingDelay:a?s:-1}),a&&(this.#Zs=setTimeout((()=>{this.#Zs=null,this.refresh()}),s)),this._currentScale=e,!r){let e,t=this._currentPageNumber
!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(t=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}get#ua(){return this._spreadMode!==n.SpreadMode.NONE&&this._scrollMode!==n.ScrollMode.HORIZONTAL?2:1}#ra(e,t){let r=parseFloat(e)
if(r>0)t.preset=!1,this.#ca(r,e,t)
else{const i=this._pages[this._currentPageNumber-1]
if(!i)return
let s=n.SCROLLBAR_PADDING,a=n.VERTICAL_PADDING
this.isInPresentationMode?(s=a=4,this._spreadMode!==n.SpreadMode.NONE&&(s*=2)):this.removePageBorders?s=a=0:this._scrollMode===n.ScrollMode.HORIZONTAL&&([s,a]=[a,s])
const o=(this.container.clientWidth-s)/i.width*i.scale/this.#ua,l=(this.container.clientHeight-a)/i.height*i.scale
switch(e){case"page-actual":r=1
break
case"page-width":r=o
break
case"page-height":r=l
break
case"page-fit":r=Math.min(o,l)
break
case"auto":const t=(0,n.isPortraitOrientation)(i)?o:Math.min(l,o)
r=Math.min(n.MAX_AUTO_SCALE,t)
break
default:return void console.error(`#setScale: "${e}" is an unknown zoom value.`)}t.preset=!0,this.#ca(r,e,t)}}#ta(){const e=this._pages[this._currentPageNumber-1]
this.isInPresentationMode&&this.#ra(this._currentScaleValue,{noScroll:!0}),this.#oa(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null
const t=this._pageLabels.indexOf(e)
return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:r=!1,ignoreDestinationZoom:s=!1}){if(!this.pdfDocument)return
const a=Number.isInteger(e)&&this._pages[e-1]
if(!a)return void console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`)
if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0)
let o,l,c=0,u=0,d=0,h=0
const p=a.rotation%180!=0,f=(p?a.height:a.width)/a.scale/i.PixelsPerInch.PDF_TO_CSS_UNITS,m=(p?a.width:a.height)/a.scale/i.PixelsPerInch.PDF_TO_CSS_UNITS
let g=0
switch(t[1].name){case"XYZ":c=t[2],u=t[3],g=t[4],c=null!==c?c:0,u=null!==u?u:m
break
case"Fit":case"FitB":g="page-fit"
break
case"FitH":case"FitBH":u=t[2],g="page-width",null===u&&this._location?(c=this._location.left,u=this._location.top):("number"!=typeof u||u<0)&&(u=m)
break
case"FitV":case"FitBV":c=t[2],d=f,h=m,g="page-height"
break
case"FitR":c=t[2],u=t[3],d=t[4]-c,h=t[5]-u
let e=n.SCROLLBAR_PADDING,r=n.VERTICAL_PADDING
this.removePageBorders&&(e=r=0),o=(this.container.clientWidth-e)/d/i.PixelsPerInch.PDF_TO_CSS_UNITS,l=(this.container.clientHeight-r)/h/i.PixelsPerInch.PDF_TO_CSS_UNITS,g=Math.min(Math.abs(o),Math.abs(l))
break
default:return void console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`)}if(s||(g&&g!==this._currentScale?this.currentScaleValue=g:this._currentScale===n.UNKNOWN_SCALE&&(this.currentScaleValue=n.DEFAULT_SCALE_VALUE)),"page-fit"===g&&!t[4])return void this.#oa(a)
const b=[a.viewport.convertToViewportPoint(c,u),a.viewport.convertToViewportPoint(c+d,u+h)]
let y=Math.min(b[0][0],b[1][0]),v=Math.min(b[0][1],b[1][1])
r||(y=Math.max(y,0),v=Math.max(v,0)),this.#oa(a,{left:y,top:v})}_updateLocation(e){const t=this._currentScale,r=this._currentScaleValue,i=parseFloat(r)===t?Math.round(1e4*t)/100:r,n=e.id,s=this._pages[n-1],a=this.container,o=s.getPagePoint(a.scrollLeft-e.x,a.scrollTop-e.y),l=Math.round(o[0]),c=Math.round(o[1])
let u=`#page=${n}`
this.isInPresentationMode||(u+=`&zoom=${i},${l},${c}`),this._location={pageNumber:n,scale:i,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:u}}update(){const e=this._getVisiblePages(),t=e.views,r=t.length
if(0===r)return
const i=Math.max(10,2*r+1)
this.#$s.resize(i,e.ids),this.renderingQueue.renderHighestPriority(e)
const s=this._spreadMode===n.SpreadMode.NONE&&(this._scrollMode===n.ScrollMode.PAGE||this._scrollMode===n.ScrollMode.VERTICAL),a=this._currentPageNumber
let o=!1
for(const n of t){if(n.percent<100)break
if(n.id===a&&s){o=!0
break}}this._setCurrentPageNumber(o?a:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===n.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===n.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===n.ScrollMode.PAGE?this.#Js.pages:this._pages,t=this._scrollMode===n.ScrollMode.HORIZONTAL,r=t&&this._isContainerRtl
return(0,n.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:r})}cleanup(){for(const e of this._pages)e.renderingState!==n.RenderingStates.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}async#da(e){if(e.pdfPage)return e.pdfPage
try{const t=await this.pdfDocument.getPage(e.id)
return e.pdfPage||e.setPdfPage(t),this.linkService._cachedPageNumber?.(t.ref)||this.linkService.cachePageRef(e.id,t.ref),t}catch(t){return console.error("Unable to get page for page view",t),null}}#ha(e){if(1===e.first?.id)return!0
if(e.last?.id===this.pagesCount)return!1
switch(this._scrollMode){case n.ScrollMode.PAGE:return this.#Js.scrollDown
case n.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(e){const t=e||this._getVisiblePages(),r=this.#ha(t),i=this._spreadMode!==n.SpreadMode.NONE&&this._scrollMode!==n.ScrollMode.HORIZONTAL,s=this.renderingQueue.getHighestPriority(t,this._pages,r,i)
return!!s&&(this.#da(s).then((()=>{this.renderingQueue.renderView(s)})),!0)}get hasEqualPageSizes(){const e=this._pages[0]
for(let t=1,r=this._pages.length;t<r;++t){const r=this._pages[t]
if(r.width!==e.width||r.height!==e.height)return!1}return!0}getPagesOverview(){let e
return this._pages.map((t=>{const r=t.pdfPage.getViewport({scale:1}),i=(0,n.isPortraitOrientation)(r)
if(void 0===e)e=i
else if(this.enablePrintAutoRotate&&i!==e)return{width:r.height,height:r.width,rotation:(r.rotation-90)%360}
return{width:r.width,height:r.height,rotation:r.rotation}}))}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${e}`)
this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=e,this.refresh(!1,{optionalContentConfigPromise:e}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e}))}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,n.isValidScrollMode)(e))throw new Error(`Invalid scroll mode: ${e}`)
this.pagesCount>c.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,r=this.viewer
r.classList.toggle("scrollHorizontal",t===n.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",t===n.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===n.ScrollMode.PAGE?this.#aa():this._previousScrollMode===n.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#ra(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,n.isValidSpreadMode)(e))throw new Error(`Invalid spread mode: ${e}`)
this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return
const t=this.viewer,r=this._pages
if(this._scrollMode===n.ScrollMode.PAGE)this.#aa()
else if(t.textContent="",this._spreadMode===n.SpreadMode.NONE)for(const i of this._pages)t.append(i.div)
else{const e=this._spreadMode-1
let i=null
for(let n=0,s=r.length;n<s;++n)null===i?(i=document.createElement("div"),i.className="spread",t.append(i)):n%2===e&&(i=i.cloneNode(!1),t.append(i)),i.append(r[n].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#ra(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}_getPageAdvance(e,t=!1){switch(this._scrollMode){case n.ScrollMode.WRAPPED:{const{views:r}=this._getVisiblePages(),i=new Map
for(const{id:e,y:t,percent:n,widthPercent:s}of r){if(0===n||s<100)continue
let r=i.get(t)
r||i.set(t,r||=[]),r.push(e)}for(const n of i.values()){const r=n.indexOf(e)
if(-1===r)continue
const i=n.length
if(1===i)break
if(t)for(let t=r-1,s=0;t>=s;t--){const r=n[t],i=n[t+1]-1
if(r<i)return e-i}else for(let t=r+1,s=i;t<s;t++){const r=n[t],i=n[t-1]+1
if(r>i)return i-e}if(t){const t=n[0]
if(t<e)return e-t+1}else{const t=n[i-1]
if(t>e)return t-e+1}break}break}case n.ScrollMode.HORIZONTAL:break
case n.ScrollMode.PAGE:case n.ScrollMode.VERTICAL:{if(this._spreadMode===n.SpreadMode.NONE)break
const r=this._spreadMode-1
if(t&&e%2!==r)break
if(!t&&e%2===r)break
const{views:i}=this._getVisiblePages(),s=t?e-1:e+1
for(const{id:e,percent:t,widthPercent:n}of i)if(e===s){if(t>0&&100===n)return 2
break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount
if(e>=t)return!1
const r=this._getPageAdvance(e,!1)||1
return this.currentPageNumber=Math.min(e+r,t),!0}previousPage(){const e=this._currentPageNumber
if(e<=1)return!1
const t=this._getPageAdvance(e,!0)||1
return this.currentPageNumber=Math.max(e-t,1),!0}increaseScale({drawingDelay:e,scaleFactor:t,steps:r}={}){if(!this.pdfDocument)return
let i=this._currentScale
if(t>1)i=Math.round(i*t*100)/100
else{r??=1
do{i=Math.ceil(10*(i*n.DEFAULT_SCALE_DELTA).toFixed(2))/10}while(--r>0&&i<n.MAX_SCALE)}this.#ra(Math.min(n.MAX_SCALE,i),{noScroll:!1,drawingDelay:e})}decreaseScale({drawingDelay:e,scaleFactor:t,steps:r}={}){if(!this.pdfDocument)return
let i=this._currentScale
if(t>0&&t<1)i=Math.round(i*t*100)/100
else{r??=1
do{i=Math.floor(10*(i/n.DEFAULT_SCALE_DELTA).toFixed(2))/10}while(--r>0&&i>n.MIN_SCALE)}this.#ra(Math.max(n.MIN_SCALE,i),{noScroll:!1,drawingDelay:e})}#ea(e=this.container.clientHeight){e!==this.#Xs&&(this.#Xs=e,n.docStyle.setProperty("--viewer-container-height",`${e}px`))}#Ys(e){for(const t of e)if(t.target===this.container){this.#ea(Math.floor(t.borderBoxSize[0].blockSize)),this.#qs=null
break}}get containerTopLeft(){return this.#qs||=[this.container.offsetTop,this.container.offsetLeft]}get annotationEditorMode(){return this.#Us?this.#zs:i.AnnotationEditorType.DISABLE}set annotationEditorMode({mode:e,editId:t=null}){if(!this.#Us)throw new Error("The AnnotationEditor is not enabled.")
if(this.#zs!==e){if(!u(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`)
this.pdfDocument&&(this.#zs=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#Us.updateMode(e,t))}}set annotationEditorParams({type:e,value:t}){if(!this.#Us)throw new Error("The AnnotationEditor is not enabled.")
this.#Us.updateParams(e,t)}refresh(e=!1,t=Object.create(null)){if(this.pdfDocument){for(const e of this._pages)e.update(t)
null!==this.#Zs&&(clearTimeout(this.#Zs),this.#Zs=null),e||this.update()}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0
var i=r(4),n=r(2)
t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1,Object.defineProperty(this,"hasViewer",{value:()=>!!this.pdfViewer})}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,t,r,i=!1){const n=e.views,s=n.length
if(0===s)return null
for(let u=0;u<s;u++){const e=n[u].view
if(!this.isViewFinished(e))return e}const a=e.first.id,o=e.last.id
if(o-a+1>s){const i=e.ids
for(let e=1,n=o-a;e<n;e++){const n=r?a+e:o-e
if(i.has(n))continue
const s=t[n-1]
if(!this.isViewFinished(s))return s}}let l=r?o:a-2,c=t[l]
return c&&!this.isViewFinished(c)||i&&(l+=r?1:-1,c=t[l],c&&!this.isViewFinished(c))?c:null}isViewFinished(e){return e.renderingState===n.RenderingStates.FINISHED}renderView(e){switch(e.renderingState){case n.RenderingStates.FINISHED:return!1
case n.RenderingStates.PAUSED:this.highestPriorityPage=e.renderingId,e.resume()
break
case n.RenderingStates.RUNNING:this.highestPriorityPage=e.renderingId
break
case n.RenderingStates.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally((()=>{this.renderHighestPriority()})).catch((e=>{e instanceof i.RenderingCancelledException||console.error(`renderView: "${e}"`)}))}return!0}}}],t={}
function r(i){var n=t[i]
if(void 0!==n)return n.exports
var s=t[i]={exports:{}}
return e[i](s,s.exports,r),s.exports}var i={}
return(()=>{var e=i
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return a.AnnotationLayerBuilder}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return o.DownloadManager}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return l.EventBus}}),Object.defineProperty(e,"FindState",{enumerable:!0,get:function(){return t.FindState}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return c.GenericL10n}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return u.NullL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return t.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return d.PDFHistory}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return n.PDFLinkService}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(e,"PDFScriptingManager",{enumerable:!0,get:function(){return p.PDFScriptingManager}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return f.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return m.PDFViewer}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return s.ProgressBar}}),Object.defineProperty(e,"RenderingStates",{enumerable:!0,get:function(){return s.RenderingStates}}),Object.defineProperty(e,"ScrollMode",{enumerable:!0,get:function(){return s.ScrollMode}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return n.SimpleLinkService}}),Object.defineProperty(e,"SpreadMode",{enumerable:!0,get:function(){return s.SpreadMode}}),Object.defineProperty(e,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return g.StructTreeLayerBuilder}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return b.TextLayerBuilder}}),Object.defineProperty(e,"XfaLayerBuilder",{enumerable:!0,get:function(){return y.XfaLayerBuilder}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return s.parseQueryString}})
var t=r(1),n=r(5),s=r(2),a=r(6),o=r(8),l=r(9),c=r(10),u=r(7),d=r(12),h=r(13),p=r(21),f=r(24),m=r(25),g=r(16),b=r(19),y=r(20)})(),i})())),"undefined"==typeof FastBoot&&function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.io=t():e.io=t()}(this,(function(){return function(e){function t(i){if(r[i])return r[i].exports
var n=r[i]={exports:{},id:i,loaded:!1}
return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={}
return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict"
function i(e,t){"object"===(void 0===e?"undefined":n(e))&&(t=e,e=void 0),t=t||{}
var r,i=s(e),a=i.source,c=i.id,u=i.path,d=l[c]&&u in l[c].nsps
return t.forceNew||t["force new connection"]||!1===t.multiplex||d?r=o(a,t):(l[c]||(l[c]=o(a,t)),r=l[c]),i.query&&!t.query&&(t.query=i.query),r.socket(i.path,t)}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(1),a=r(4),o=r(9)
r(3)("socket.io-client"),e.exports=t=i
var l=t.managers={}
t.protocol=a.protocol,t.connect=i,t.Manager=r(9),t.Socket=r(34)},function(e,t,r){"use strict"
var i=r(2)
r(3)("socket.io-client:url"),e.exports=function(e,t){var r=e
t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==t?t.protocol+"//"+e:"https://"+e),r=i(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/"
var n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host
return r.id=r.protocol+"://"+n+":"+r.port,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}},function(e,t){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]
e.exports=function(e){var t=e,n=e.indexOf("["),s=e.indexOf("]");-1!=n&&-1!=s&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length))
for(var a=r.exec(e||""),o={},l=14;l--;)o[i[l]]=a[l]||""
return-1!=n&&-1!=s&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){var r=t.replace(/\/{2,9}/g,"/").split("/")
return"/"!=t.substr(0,1)&&0!==t.length||r.splice(0,1),"/"==t.substr(t.length-1,1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function(e,t){var r={}
return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,i){t&&(r[t]=i)})),r}(0,o.query),o}},function(e,t){"use strict"
e.exports=function(){return function(){}}},function(e,t,r){function i(){}function n(e){var r=""+e.type
if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(r+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(r+=e.nsp+","),null!=e.id&&(r+=e.id),null!=e.data){var i=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data)
if(!1===i)return p
r+=i}return r}function s(){this.reconstructor=null}function a(e){var r=0,i={type:Number(e.charAt(0))}
if(null==t.types[i.type])return l("unknown packet type "+i.type)
if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var n="";"-"!==e.charAt(++r)&&(n+=e.charAt(r),r!=e.length););if(n!=Number(n)||"-"!==e.charAt(r))throw new Error("Illegal attachments")
i.attachments=Number(n)}if("/"===e.charAt(r+1))for(i.nsp="";++r;){if(","===(a=e.charAt(r)))break
if(i.nsp+=a,r===e.length)break}else i.nsp="/"
var s=e.charAt(r+1)
if(""!==s&&Number(s)==s){for(i.id="";++r;){var a
if(null==(a=e.charAt(r))||Number(a)!=a){--r
break}if(i.id+=e.charAt(r),r===e.length)break}i.id=Number(i.id)}if(e.charAt(++r)){var o=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(r))
if(!(!1!==o&&(i.type===t.ERROR||d(o))))return l("invalid payload")
i.data=o}return i}function o(e){this.reconPack=e,this.buffers=[]}function l(e){return{type:t.ERROR,data:"parser error: "+e}}var c=(r(3)("socket.io-parser"),r(5)),u=r(6),d=r(7),h=r(8)
t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=i,t.Decoder=s
var p=t.ERROR+'"encode error"'
i.prototype.encode=function(e,r){t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?function(e,t){u.removeBlobs(e,(function(e){var r=u.deconstructPacket(e),i=n(r.packet),s=r.buffers
s.unshift(i),t(s)}))}(e,r):r([n(e)])},c(s.prototype),s.prototype.add=function(e){var r
if("string"==typeof e)r=a(e),t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type?(this.reconstructor=new o(r),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",r)):this.emit("decoded",r)
else{if(!h(e)&&!e.base64)throw new Error("Unknown type: "+e)
if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(r=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",r))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},o.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=u.reconstructPacket(this.reconPack,this.buffers)
return this.finishedReconstruction(),t}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,r){function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t]
return e}(e)}e.exports=i,i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this
var r=this._callbacks["$"+e]
if(!r)return this
if(1==arguments.length)return delete this._callbacks["$"+e],this
for(var i,n=0;n<r.length;n++)if((i=r[n])===t||i.fn===t){r.splice(n,1)
break}return 0===r.length&&delete this._callbacks["$"+e],this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{}
for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i]
if(r){i=0
for(var n=(r=r.slice(0)).length;i<n;++i)r[i].apply(this,t)}return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,r){function i(e,t){if(!e)return e
if(a(e)){var r={_placeholder:!0,num:t.length}
return t.push(e),r}if(s(e)){for(var n=new Array(e.length),o=0;o<e.length;o++)n[o]=i(e[o],t)
return n}if("object"==typeof e&&!(e instanceof Date)){n={}
for(var l in e)n[l]=i(e[l],t)
return n}return e}function n(e,t){if(!e)return e
if(e&&e._placeholder)return t[e.num]
if(s(e))for(var r=0;r<e.length;r++)e[r]=n(e[r],t)
else if("object"==typeof e)for(var i in e)e[i]=n(e[i],t)
return e}var s=r(7),a=r(8),o=Object.prototype.toString,l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),c="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File)
t.deconstructPacket=function(e){var t=[],r=e.data,n=e
return n.data=i(r,t),n.attachments=t.length,{packet:n,buffers:t}},t.reconstructPacket=function(e,t){return e.data=n(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var r=0,i=e;(function e(n,o,u){if(!n)return n
if(l&&n instanceof Blob||c&&n instanceof File){r++
var d=new FileReader
d.onload=function(){u?u[o]=this.result:i=this.result,--r||t(i)},d.readAsArrayBuffer(n)}else if(s(n))for(var h=0;h<n.length;h++)e(n[h],h,n)
else if("object"==typeof n&&!a(n))for(var p in n)e(n[p],p,n)})(i),r||t(i)}},function(e,t){var r={}.toString
e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){e.exports=function(e){return r&&Buffer.isBuffer(e)||i&&(e instanceof ArrayBuffer||n(e))}
var r="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,i="function"==typeof ArrayBuffer,n=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}},function(e,t,r){"use strict"
function i(e,t){if(!(this instanceof i))return new i(e,t)
e&&"object"===(void 0===e?"undefined":n(e))&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[]
var r=t.parser||l
this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(10),a=r(34),o=r(5),l=r(4),c=r(36),u=r(37),d=(r(3)("socket.io-client:manager"),r(33)),h=r(38),p=Object.prototype.hasOwnProperty
e.exports=i,i.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},i.prototype.updateSocketIds=function(){for(var e in this.nsps)p.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},i.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},o(i.prototype),i.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},i.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},i.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},i.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},i.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},i.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},i.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},i.prototype.open=i.prototype.connect=function(e,t){if(~this.readyState.indexOf("open"))return this
this.engine=s(this.uri,this.opts)
var r=this.engine,i=this
this.readyState="opening",this.skipReconnect=!1
var n=c(r,"open",(function(){i.onopen(),e&&e()})),a=c(r,"error",(function(t){if(i.cleanup(),i.readyState="closed",i.emitAll("connect_error",t),e){var r=new Error("Connection error")
r.data=t,e(r)}else i.maybeReconnectOnOpen()}))
if(!1!==this._timeout){var o=this._timeout
0===o&&n.destroy()
var l=setTimeout((function(){n.destroy(),r.close(),r.emit("error","timeout"),i.emitAll("connect_timeout",o)}),o)
this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(n),this.subs.push(a),this},i.prototype.onopen=function(){this.cleanup(),this.readyState="open",this.emit("open")
var e=this.engine
this.subs.push(c(e,"data",u(this,"ondata"))),this.subs.push(c(e,"ping",u(this,"onping"))),this.subs.push(c(e,"pong",u(this,"onpong"))),this.subs.push(c(e,"error",u(this,"onerror"))),this.subs.push(c(e,"close",u(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",u(this,"ondecoded")))},i.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},i.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},i.prototype.ondata=function(e){this.decoder.add(e)},i.prototype.ondecoded=function(e){this.emit("packet",e)},i.prototype.onerror=function(e){this.emitAll("error",e)},i.prototype.socket=function(e,t){function r(){~d(n.connecting,i)||n.connecting.push(i)}var i=this.nsps[e]
if(!i){i=new a(this,e,t),this.nsps[e]=i
var n=this
i.on("connecting",r),i.on("connect",(function(){i.id=n.generateId(e)})),this.autoConnect&&r()}return i},i.prototype.destroy=function(e){var t=d(this.connecting,e)
~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},i.prototype.packet=function(e){var t=this
e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(r){for(var i=0;i<r.length;i++)t.engine.write(r[i],e.options)
t.encoding=!1,t.processPacketQueue()})))},i.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift()
this.packet(e)}},i.prototype.cleanup=function(){for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},i.prototype.close=i.prototype.disconnect=function(){this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},i.prototype.onclose=function(e){this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},i.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this
var e=this
if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1
else{var t=this.backoff.duration()
this.reconnecting=!0
var r=setTimeout((function(){e.skipReconnect||(e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):e.onreconnect()})))}),t)
this.subs.push({destroy:function(){clearTimeout(r)}})}},i.prototype.onreconnect=function(){var e=this.backoff.attempts
this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,r){e.exports=r(11),e.exports.parser=r(19)},function(e,t,r){function i(e,t){return this instanceof i?(t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=l(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new i(e,t)}var n=r(12),s=r(5),a=(r(3)("engine.io-client:socket"),r(33)),o=r(19),l=r(2),c=r(27)
e.exports=i,i.priorWebsocketSuccess=!1,s(i.prototype),i.protocol=o.protocol,i.Socket=i,i.Transport=r(18),i.transports=r(12),i.parser=r(19),i.prototype.createTransport=function(e){var t=function(e){var t={}
for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])
return t}(this.query)
t.EIO=o.protocol,t.transport=e
var r=this.transportOptions[e]||{}
return this.id&&(t.sid=this.id),new n[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative})},i.prototype.open=function(){var e
if(this.rememberUpgrade&&i.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket"
else{if(0===this.transports.length){var t=this
return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening"
try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},i.prototype.setTransport=function(e){var t=this
this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},i.prototype.probe=function(e){function t(){if(d.onlyBinaryUpgrades){var e=!this.supportsBinary&&d.transport.supportsBinary
u=u||e}u||(c.send([{type:"ping",data:"probe"}]),c.once("packet",(function(e){if(!u)if("pong"===e.type&&"probe"===e.data){if(d.upgrading=!0,d.emit("upgrading",c),!c)return
i.priorWebsocketSuccess="websocket"===c.name,d.transport.pause((function(){u||"closed"!==d.readyState&&(l(),d.setTransport(c),c.send([{type:"upgrade"}]),d.emit("upgrade",c),c=null,d.upgrading=!1,d.flush())}))}else{var t=new Error("probe error")
t.transport=c.name,d.emit("upgradeError",t)}})))}function r(){u||(u=!0,l(),c.close(),c=null)}function n(e){var t=new Error("probe error: "+e)
t.transport=c.name,r(),d.emit("upgradeError",t)}function s(){n("transport closed")}function a(){n("socket closed")}function o(e){c&&e.name!==c.name&&r()}function l(){c.removeListener("open",t),c.removeListener("error",n),c.removeListener("close",s),d.removeListener("close",a),d.removeListener("upgrading",o)}var c=this.createTransport(e,{probe:1}),u=!1,d=this
i.priorWebsocketSuccess=!1,c.once("open",t),c.once("error",n),c.once("close",s),this.once("close",a),this.once("upgrading",o),c.open()},i.prototype.onOpen=function(){if(this.readyState="open",i.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])},i.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data))
break
case"pong":this.setPing(),this.emit("pong")
break
case"error":var t=new Error("server error")
t.code=e.data,this.onError(t)
break
case"message":this.emit("data",e.data),this.emit("message",e.data)}},i.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},i.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer)
var t=this
t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},i.prototype.setPing=function(){var e=this
clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},i.prototype.ping=function(){var e=this
this.sendPacket("ping",(function(){e.emit("ping")}))},i.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},i.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},i.prototype.write=i.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this},i.prototype.sendPacket=function(e,t,r,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof r&&(i=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress
var n={type:e,data:t,options:r}
this.emit("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}},i.prototype.close=function(){function e(){i.onClose("forced close"),i.transport.close()}function t(){i.removeListener("upgrade",t),i.removeListener("upgradeError",t),e()}function r(){i.once("upgrade",t),i.once("upgradeError",t)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing"
var i=this
this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():e()})):this.upgrading?r():e()}return this},i.prototype.onError=function(e){i.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},i.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},i.prototype.filterUpgrades=function(e){for(var t=[],r=0,i=e.length;r<i;r++)~a(this.transports,e[r])&&t.push(e[r])
return t}},function(e,t,r){var i=r(13),n=r(16),s=r(30),a=r(31)
t.polling=function(e){var t=!1,r=!1,a=!1!==e.jsonp
if("undefined"!=typeof location){var o="https:"===location.protocol,l=location.port
l||(l=o?443:80),t=e.hostname!==location.hostname||l!==e.port,r=e.secure!==o}if(e.xdomain=t,e.xscheme=r,"open"in new i(e)&&!e.forceJSONP)return new n(e)
if(!a)throw new Error("JSONP disabled")
return new s(e)},t.websocket=a},function(e,t,r){var i=r(14),n=r(15)
e.exports=function(e){var t=e.xdomain,r=e.xscheme,s=e.enablesXDR
try{if("undefined"!=typeof XMLHttpRequest&&(!t||i))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!r&&s)return new XDomainRequest}catch(e){}if(!t)try{return new(n[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,r){function i(){}function n(e){if(l.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,r=location.port
r||(r=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}function s(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function a(){for(var e in s.requests)s.requests.hasOwnProperty(e)&&s.requests[e].abort()}var o=r(13),l=r(17),c=r(5),u=r(28),d=(r(3)("engine.io-client:polling-xhr"),r(15))
if(e.exports=n,e.exports.Request=s,u(n,l),n.prototype.supportsBinary=!0,n.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new s(e)},n.prototype.doWrite=function(e,t){var r="string"!=typeof e&&void 0!==e,i=this.request({method:"POST",data:e,isBinary:r}),n=this
i.on("success",t),i.on("error",(function(e){n.onError("xhr post error",e)})),this.sendXhr=i},n.prototype.doPoll=function(){var e=this.request(),t=this
e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},c(s.prototype),s.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR}
e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized
var t=this.xhr=new o(e),r=this
try{t.open(this.method,this.uri,this.async)
try{if(this.extraHeaders)for(var i in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.extraHeaders[i])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(r.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?r.onLoad():setTimeout((function(){r.onError("number"==typeof t.status?t.status:0)}),0))},t.send(this.data)}catch(e){return void setTimeout((function(){r.onError(e)}),0)}"undefined"!=typeof document&&(this.index=s.requestsCount++,s.requests[this.index]=this)},s.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},s.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},s.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},s.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=i:this.xhr.onreadystatechange=i,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete s.requests[this.index],this.xhr=null}},s.prototype.onLoad=function(){var e
try{var t
try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},s.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},s.prototype.abort=function(){this.cleanup()},s.requestsCount=0,s.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",a)
else if("function"==typeof addEventListener){addEventListener("onpagehide"in d?"pagehide":"unload",a,!1)}},function(e,t,r){function i(e){var t=e&&e.forceBase64
c&&!t||(this.supportsBinary=!1),n.call(this,e)}var n=r(18),s=r(27),a=r(19),o=r(28),l=r(29)
r(3)("engine.io-client:polling"),e.exports=i
var c=null!=new(r(13))({xdomain:!1}).responseType
o(i,n),i.prototype.name="polling",i.prototype.doOpen=function(){this.poll()},i.prototype.pause=function(e){function t(){r.readyState="paused",e()}var r=this
if(this.readyState="pausing",this.polling||!this.writable){var i=0
this.polling&&(i++,this.once("pollComplete",(function(){--i||t()}))),this.writable||(i++,this.once("drain",(function(){--i||t()})))}else t()},i.prototype.poll=function(){this.polling=!0,this.doPoll(),this.emit("poll")},i.prototype.onData=function(e){var t=this
a.decodePayload(e,this.socket.binaryType,(function(e,r,i){return"opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type?(t.onClose(),!1):void t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState&&this.poll())},i.prototype.doClose=function(){function e(){t.write([{type:"close"}])}var t=this
"open"===this.readyState?e():this.once("open",e)},i.prototype.write=function(e){var t=this
this.writable=!1
var r=function(){t.writable=!0,t.emit("drain")}
a.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,r)}))},i.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r=""
return!1!==this.timestampRequests&&(e[this.timestampParam]=l()),this.supportsBinary||e.sid||(e.b64=1),e=s.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(r=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+r+this.path+e}},function(e,t,r){function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}var n=r(19),s=r(5)
e.exports=i,s(i.prototype),i.prototype.onError=function(e,t){var r=new Error(e)
return r.type="TransportError",r.description=t,this.emit("error",r),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open")
this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=n.decodePacket(e,this.socket.binaryType)
this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,r){function i(e,r){return r("b"+t.packets[e.type]+e.data.data)}function n(e,r,i){if(!r)return t.encodeBase64Packet(e,i)
var n=e.data,s=new Uint8Array(n),a=new Uint8Array(1+n.byteLength)
a[0]=g[e.type]
for(var o=0;o<s.length;o++)a[o+1]=s[o]
return i(a.buffer)}function s(e,r,i){if(!r)return t.encodeBase64Packet(e,i)
if(m)return function(e,r,i){if(!r)return t.encodeBase64Packet(e,i)
var n=new FileReader
return n.onload=function(){t.encodePacket({type:e.type,data:n.result},r,!0,i)},n.readAsArrayBuffer(e.data)}(e,r,i)
var n=new Uint8Array(1)
return n[0]=g[e.type],i(new v([n.buffer,e.data]))}function a(e,t,r){for(var i=new Array(e.length),n=d(e.length,r),s=function(e,r,n){t(r,(function(t,r){i[e]=r,n(t,i)}))},a=0;a<e.length;a++)s(a,e[a],n)}var o,l=r(20),c=r(21),u=r(22),d=r(23),h=r(24)
"undefined"!=typeof ArrayBuffer&&(o=r(25))
var p="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),f="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),m=p||f
t.protocol=3
var g=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=l(g),y={type:"error",data:"parser error"},v=r(26)
t.encodePacket=function(e,t,r,a){"function"==typeof t&&(a=t,t=!1),"function"==typeof r&&(a=r,r=null)
var o=void 0===e.data?void 0:e.data.buffer||e.data
if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return n(e,t,a)
if(void 0!==v&&o instanceof v)return s(e,t,a)
if(o&&o.base64)return i(e,a)
var l=g[e.type]
return void 0!==e.data&&(l+=r?h.encode(String(e.data),{strict:!1}):String(e.data)),a(""+l)},t.encodeBase64Packet=function(e,r){var i,n="b"+t.packets[e.type]
if(void 0!==v&&e.data instanceof v){var s=new FileReader
return s.onload=function(){var e=s.result.split(",")[1]
r(n+e)},s.readAsDataURL(e.data)}try{i=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),o=new Array(a.length),l=0;l<a.length;l++)o[l]=a[l]
i=String.fromCharCode.apply(null,o)}return n+=btoa(i),r(n)},t.decodePacket=function(e,r,i){if(void 0===e)return y
if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),r)
if(i&&!1===(e=function(e){try{e=h.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return y
var n=e.charAt(0)
return Number(n)==n&&b[n]?e.length>1?{type:b[n],data:e.substring(1)}:{type:b[n]}:y}n=new Uint8Array(e)[0]
var s=u(e,1)
return v&&"blob"===r&&(s=new v([s])),{type:b[n],data:s}},t.decodeBase64Packet=function(e,t){var r=b[e.charAt(0)]
if(!o)return{type:r,data:{base64:!0,data:e.substr(1)}}
var i=o.decode(e.substr(1))
return"blob"===t&&v&&(i=new v([i])),{type:r,data:i}},t.encodePayload=function(e,r,i){"function"==typeof r&&(i=r,r=null)
var n=c(e)
return r&&n?v&&!m?t.encodePayloadAsBlob(e,i):t.encodePayloadAsArrayBuffer(e,i):e.length?void a(e,(function(e,i){t.encodePacket(e,!!n&&r,!1,(function(e){i(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return i(t.join(""))})):i("0:")},t.decodePayload=function(e,r,i){if("string"!=typeof e)return t.decodePayloadAsBinary(e,r,i)
var n
if("function"==typeof r&&(i=r,r=null),""===e)return i(y,0,1)
for(var s,a,o="",l=0,c=e.length;l<c;l++){var u=e.charAt(l)
if(":"===u){if(""===o||o!=(s=Number(o)))return i(y,0,1)
if(o!=(a=e.substr(l+1,s)).length)return i(y,0,1)
if(a.length){if(n=t.decodePacket(a,r,!1),y.type===n.type&&y.data===n.data)return i(y,0,1)
if(!1===i(n,l+s,c))return}l+=s,o=""}else o+=u}return""!==o?i(y,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,r){return e.length?void a(e,(function(e,r){t.encodePacket(e,!0,!0,(function(e){return r(null,e)}))}),(function(e,t){var i=t.reduce((function(e,t){var r
return e+(r="string"==typeof t?t.length:t.byteLength).toString().length+r+2}),0),n=new Uint8Array(i),s=0
return t.forEach((function(e){var t="string"==typeof e,r=e
if(t){for(var i=new Uint8Array(e.length),a=0;a<e.length;a++)i[a]=e.charCodeAt(a)
r=i.buffer}n[s++]=t?0:1
var o=r.byteLength.toString()
for(a=0;a<o.length;a++)n[s++]=parseInt(o[a])
n[s++]=255
for(i=new Uint8Array(r),a=0;a<i.length;a++)n[s++]=i[a]})),r(n.buffer)})):r(new ArrayBuffer(0))},t.encodePayloadAsBlob=function(e,r){a(e,(function(e,r){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1)
if(t[0]=1,"string"==typeof e){for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n)
e=i.buffer,t[0]=0}var s=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(s.length+1)
for(n=0;n<s.length;n++)a[n]=parseInt(s[n])
if(a[s.length]=255,v){var o=new v([t.buffer,a.buffer,e])
r(null,o)}}))}),(function(e,t){return r(new v(t))}))},t.decodePayloadAsBinary=function(e,r,i){"function"==typeof r&&(i=r,r=null)
for(var n=e,s=[];n.byteLength>0;){for(var a=new Uint8Array(n),o=0===a[0],l="",c=1;255!==a[c];c++){if(l.length>310)return i(y,0,1)
l+=a[c]}n=u(n,2+l.length),l=parseInt(l)
var d=u(n,0,l)
if(o)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var h=new Uint8Array(d)
d=""
for(c=0;c<h.length;c++)d+=String.fromCharCode(h[c])}s.push(d),n=u(n,l)}var p=s.length
s.forEach((function(e,n){i(t.decodePacket(e,r,!0),n,p)}))}},function(e,t){e.exports=Object.keys||function(e){var t=[],r=Object.prototype.hasOwnProperty
for(var i in e)r.call(e,i)&&t.push(i)
return t}},function(e,t,r){var i=r(7),n=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File)
e.exports=function e(t){if(!t||"object"!=typeof t)return!1
if(i(t)){for(var r=0,n=t.length;r<n;r++)if(e(t[r]))return!0
return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0
if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0)
for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return!0
return!1}},function(e,t){e.exports=function(e,t,r){var i=e.byteLength
if(t=t||0,r=r||i,e.slice)return e.slice(t,r)
if(t<0&&(t+=i),r<0&&(r+=i),r>i&&(r=i),t>=i||t>=r||0===i)return new ArrayBuffer(0)
for(var n=new Uint8Array(e),s=new Uint8Array(r-t),a=t,o=0;a<r;a++,o++)s[o]=n[a]
return s.buffer}},function(e,t){function r(){}e.exports=function(e,t,i){function n(e,r){if(n.count<=0)throw new Error("after called too many times");--n.count,e?(s=!0,t(e),t=i):0!==n.count||s||t(null,r)}var s=!1
return i=i||r,n.count=e,0===e?t():n}},function(e,t){function r(e){for(var t,r,i=[],n=0,s=e.length;n<s;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<s?56320==(64512&(r=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--):i.push(t)
return i}function i(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")
return!1}return!0}function n(e,t){return d(e>>t&63|128)}function s(e,t){if(!(4294967168&e))return d(e)
var r=""
return 4294965248&e?4294901760&e?!(4292870144&e)&&(r=d(e>>18&7|240),r+=n(e,12),r+=n(e,6)):(i(e,t)||(e=65533),r=d(e>>12&15|224),r+=n(e,6)):r=d(e>>6&31|192),r+d(63&e|128)}function a(){if(u>=c)throw Error("Invalid byte index")
var e=255&l[u]
if(u++,128==(192&e))return 63&e
throw Error("Invalid continuation byte")}function o(e){var t,r
if(u>c)throw Error("Invalid byte index")
if(u==c)return!1
if(t=255&l[u],u++,!(128&t))return t
if(192==(224&t)){if((r=(31&t)<<6|a())>=128)return r
throw Error("Invalid continuation byte")}if(224==(240&t)){if((r=(15&t)<<12|a()<<6|a())>=2048)return i(r,e)?r:65533
throw Error("Invalid continuation byte")}if(240==(248&t)&&((r=(7&t)<<18|a()<<12|a()<<6|a())>=65536&&r<=1114111))return r
throw Error("Invalid UTF-8 detected")}/*! https://mths.be/utf8js v2.1.2 by @mathias */
var l,c,u,d=String.fromCharCode
e.exports={version:"2.1.2",encode:function(e,t){for(var i=!1!==(t=t||{}).strict,n=r(e),a=n.length,o=-1,l="";++o<a;)l+=s(n[o],i)
return l},decode:function(e,t){var i=!1!==(t=t||{}).strict
l=r(e),c=l.length,u=0
for(var n,s=[];!1!==(n=o(i));)s.push(n)
return function(e){for(var t,r=e.length,i=-1,n="";++i<r;)(t=e[i])>65535&&(n+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=d(t)
return n}(s)}}},function(e,t){!function(e){"use strict"
t.encode=function(t){var r,i=new Uint8Array(t),n=i.length,s=""
for(r=0;r<n;r+=3)s+=e[i[r]>>2],s+=e[(3&i[r])<<4|i[r+1]>>4],s+=e[(15&i[r+1])<<2|i[r+2]>>6],s+=e[63&i[r+2]]
return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s},t.decode=function(t){var r,i,n,s,a,o=.75*t.length,l=t.length,c=0
"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--)
var u=new ArrayBuffer(o),d=new Uint8Array(u)
for(r=0;r<l;r+=4)i=e.indexOf(t[r]),n=e.indexOf(t[r+1]),s=e.indexOf(t[r+2]),a=e.indexOf(t[r+3]),d[c++]=i<<2|n>>4,d[c++]=(15&n)<<4|s>>2,d[c++]=(3&s)<<6|63&a
return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t){function r(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer
if(e.byteLength!==t.byteLength){var r=new Uint8Array(e.byteLength)
r.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=r.buffer}return t}return e}))}function i(e,t){t=t||{}
var i=new s
return r(e).forEach((function(e){i.append(e)})),t.type?i.getBlob(t.type):i.getBlob()}function n(e,t){return new Blob(r(e),t||{})}var s=void 0!==s?s:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),l=s&&s.prototype.append&&s.prototype.getBlob
"undefined"!=typeof Blob&&(i.prototype=Blob.prototype,n.prototype=Blob.prototype),e.exports=a?o?Blob:n:l?i:void 0},function(e,t){t.encode=function(e){var t=""
for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]))
return t},t.decode=function(e){for(var t={},r=e.split("&"),i=0,n=r.length;i<n;i++){var s=r[i].split("=")
t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}},function(e,t){e.exports=function(e,t){var r=function(){}
r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t){"use strict"
function r(e){var t=""
do{t=s[e%a]+t,e=Math.floor(e/a)}while(e>0)
return t}function i(){var e=r(+new Date)
return e!==n?(l=0,n=e):e+"."+r(l++)}for(var n,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,o={},l=0,c=0;c<a;c++)o[s[c]]=c
i.encode=r,i.decode=function(e){var t=0
for(c=0;c<e.length;c++)t=t*a+o[e.charAt(c)]
return t},e.exports=i},function(e,t,r){function i(){}function n(e){s.call(this,e),this.query=this.query||{},l||(l=o.___eio=o.___eio||[]),this.index=l.length
var t=this
l.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=i)}),!1)}var s=r(17),a=r(28),o=r(15)
e.exports=n
var l,c=/\n/g,u=/\\n/g
a(n,s),n.prototype.supportsBinary=!1,n.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),s.prototype.doClose.call(this)},n.prototype.doPoll=function(){var e=this,t=document.createElement("script")
this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)}
var r=document.getElementsByTagName("script")[0]
r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe")
document.body.appendChild(e),document.body.removeChild(e)}),100)},n.prototype.doWrite=function(e,t){function r(){i(),t()}function i(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">'
s=document.createElement(e)}catch(e){(s=document.createElement("iframe")).name=n.iframeId,s.src="javascript:0"}s.id=n.iframeId,n.form.appendChild(s),n.iframe=s}var n=this
if(!this.form){var s,a=document.createElement("form"),o=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index
a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=l,a.method="POST",a.setAttribute("accept-charset","utf-8"),o.name="d",a.appendChild(o),document.body.appendChild(a),this.form=a,this.area=o}this.form.action=this.uri(),i(),e=e.replace(u,"\\\n"),this.area.value=e.replace(c,"\\n")
try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&r()}:this.iframe.onload=r}},function(e,t,r){function i(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=n&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=s),a.call(this,e)}var n,s,a=r(18),o=r(19),l=r(27),c=r(28),u=r(29)
if(r(3)("engine.io-client:websocket"),"undefined"!=typeof WebSocket?n=WebSocket:"undefined"!=typeof self&&(n=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{s=r(32)}catch(e){}var d=n||s
e.exports=i,c(i,a),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,r={}
this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress)
try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,r)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var e=this
this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},i.prototype.write=function(e){var t=this
this.writable=!1
for(var r=e.length,i=0,n=r;i<n;i++)!function(e){o.encodePacket(e,t.supportsBinary,(function(i){if(!t.usingBrowserWebSocket){var n={}
if(e.options&&(n.compress=e.options.compress),t.perMessageDeflate)("string"==typeof i?Buffer.byteLength(i):i.length)<t.perMessageDeflate.threshold&&(n.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(i):t.ws.send(i,n)}catch(e){}--r||(t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0))}))}(e[i])},i.prototype.onClose=function(){a.prototype.onClose.call(this)},i.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},i.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r=""
return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||(e.b64=1),(e=l.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+r+this.path+e},i.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===i.prototype.name)}},function(e,t){},function(e,t){var r=[].indexOf
e.exports=function(e,t){if(r)return e.indexOf(t)
for(var i=0;i<e.length;++i)if(e[i]===t)return i
return-1}},function(e,t,r){"use strict"
function i(e,t,r){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},r&&r.query&&(this.query=r.query),this.io.autoConnect&&this.open()}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(4),a=r(5),o=r(35),l=r(36),c=r(37),u=(r(3)("socket.io-client:socket"),r(27)),d=r(21)
e.exports=i
var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=a.prototype.emit
a(i.prototype),i.prototype.subEvents=function(){if(!this.subs){var e=this.io
this.subs=[l(e,"open",c(this,"onopen")),l(e,"packet",c(this,"onpacket")),l(e,"close",c(this,"onclose"))]}},i.prototype.open=i.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},i.prototype.send=function(){var e=o(arguments)
return e.unshift("message"),this.emit.apply(this,e),this},i.prototype.emit=function(e){if(h.hasOwnProperty(e))return p.apply(this,arguments),this
var t=o(arguments),r={type:(void 0!==this.flags.binary?this.flags.binary:d(t))?s.BINARY_EVENT:s.EVENT,data:t,options:{}}
return r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),this.flags={},this},i.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},i.prototype.onopen=function(){if("/"!==this.nsp)if(this.query){var e="object"===n(this.query)?u.encode(this.query):this.query
this.packet({type:s.CONNECT,query:e})}else this.packet({type:s.CONNECT})},i.prototype.onclose=function(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},i.prototype.onpacket=function(e){var t=e.nsp===this.nsp,r=e.type===s.ERROR&&"/"===e.nsp
if(t||r)switch(e.type){case s.CONNECT:this.onconnect()
break
case s.EVENT:case s.BINARY_EVENT:this.onevent(e)
break
case s.ACK:case s.BINARY_ACK:this.onack(e)
break
case s.DISCONNECT:this.ondisconnect()
break
case s.ERROR:this.emit("error",e.data)}},i.prototype.onevent=function(e){var t=e.data||[]
null!=e.id&&t.push(this.ack(e.id)),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},i.prototype.ack=function(e){var t=this,r=!1
return function(){if(!r){r=!0
var i=o(arguments)
t.packet({type:d(i)?s.BINARY_ACK:s.ACK,id:e,data:i})}}},i.prototype.onack=function(e){var t=this.acks[e.id]
"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])},i.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},i.prototype.emitBuffered=function(){var e
for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e])
for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e])
this.sendBuffer=[]},i.prototype.ondisconnect=function(){this.destroy(),this.onclose("io server disconnect")},i.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy()
this.subs=null}this.io.destroy(this)},i.prototype.close=i.prototype.disconnect=function(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},i.prototype.compress=function(e){return this.flags.compress=e,this},i.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t){e.exports=function(e,t){for(var r=[],i=(t=t||0)||0;i<e.length;i++)r[i-t]=e[i]
return r}},function(e,t){"use strict"
e.exports=function(e,t,r){return e.on(t,r),{destroy:function(){e.removeListener(t,r)}}}},function(e,t){var r=[].slice
e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function")
var i=r.call(arguments,2)
return function(){return t.apply(e,i.concat(r.call(arguments)))}}},function(e,t){function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++)
if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e)
e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}}])})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(r),r}:e(jQuery)}((function(e){e.jGrowl=function(t,r){0===e("#jGrowl").length&&e('<div id="jGrowl"></div>').addClass((r&&r.position?r:e.jGrowl.defaults).position).appendTo((r&&r.appendTo?r:e.jGrowl.defaults).appendTo),e("#jGrowl").jGrowl(t,r)},e.fn.jGrowl=function(t,r){var i
if(void 0===r&&e.isPlainObject(t)&&(t=(r=t).message),e.isFunction(this.each))return i=arguments,this.each((function(){void 0===e(this).data("jGrowl.instance")&&(e(this).data("jGrowl.instance",e.extend(new e.fn.jGrowl,{notifications:[],element:null,interval:null})),e(this).data("jGrowl.instance").startup(this)),e.isFunction(e(this).data("jGrowl.instance")[t])?e(this).data("jGrowl.instance")[t].apply(e(this).data("jGrowl.instance"),e.makeArray(i).slice(1)):e(this).data("jGrowl.instance").create(t,r)}))},e.extend(e.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},click:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(t,r){void 0!==(r=e.extend({},this.defaults,r)).speed&&(r.openDuration=r.speed,r.closeDuration=r.speed),this.notifications.push({message:t,options:r}),r.log.apply(this.element,[this.element,t,r])},render:function(t){var r=this,i=t.message,n=t.options,s=(n.themeState=""===n.themeState?"":"ui-state-"+n.themeState,e("<div/>").addClass("jGrowl-notification alert "+n.themeState+" ui-corner-all"+(void 0!==n.group&&""!==n.group?" "+n.group:"")).append(e("<button/>").addClass("jGrowl-close").html(n.closeTemplate)).append(e("<div/>").addClass("jGrowl-header").html(n.header)).append(e("<div/>").addClass("jGrowl-message").html(i)).data("jGrowl",n).addClass(n.theme).children(".jGrowl-close").bind("click.jGrowl",(function(){return e(this).parent().trigger("jGrowl.beforeClose"),!1})).parent())
e(s).bind("mouseover.jGrowl",(function(){e(".jGrowl-notification",r.element).data("jGrowl.pause",!0)})).bind("mouseout.jGrowl",(function(){e(".jGrowl-notification",r.element).data("jGrowl.pause",!1)})).bind("jGrowl.beforeOpen",(function(){!1!==n.beforeOpen.apply(s,[s,i,n,r.element])&&e(this).trigger("jGrowl.open")})).bind("jGrowl.open",(function(){!1!==n.open.apply(s,[s,i,n,r.element])&&("after"==n.glue?e(".jGrowl-notification:last",r.element).after(s):e(".jGrowl-notification:first",r.element).before(s),e(this).animate(n.animateOpen,n.openDuration,n.easing,(function(){!1===e.support.opacity&&this.style.removeAttribute("filter"),null!==e(this).data("jGrowl")&&void 0!==e(this).data("jGrowl")&&(e(this).data("jGrowl").created=new Date),e(this).trigger("jGrowl.afterOpen")})))})).bind("jGrowl.afterOpen",(function(){n.afterOpen.apply(s,[s,i,n,r.element])})).bind("click",(function(){n.click.apply(s,[s,i,n,r.element])})).bind("jGrowl.beforeClose",(function(){!1!==n.beforeClose.apply(s,[s,i,n,r.element])&&e(this).trigger("jGrowl.close")})).bind("jGrowl.close",(function(){e(this).data("jGrowl.pause",!0),e(this).animate(n.animateClose,n.closeDuration,n.easing,(function(){(!e.isFunction(n.close)||!1!==n.close.apply(s,[s,i,n,r.element]))&&e(this).remove()}))})).trigger("jGrowl.beforeOpen"),""!==n.corners&&void 0!==e.fn.corner&&e(s).corner(n.corners),1<e(".jGrowl-notification:parent",r.element).length&&0===e(".jGrowl-closer",r.element).length&&!1!==this.defaults.closer&&e(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this.defaults.theme).appendTo(r.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",(function(){e(this).siblings().trigger("jGrowl.beforeClose"),e.isFunction(r.defaults.closer)&&r.defaults.closer.apply(e(this).parent()[0],[e(this).parent()[0]])}))},update:function(){e(this.element).find(".jGrowl-notification:parent").each((function(){void 0!==e(this).data("jGrowl")&&void 0!==e(this).data("jGrowl").created&&e(this).data("jGrowl").created.getTime()+parseInt(e(this).data("jGrowl").life,10)<(new Date).getTime()&&!0!==e(this).data("jGrowl").sticky&&(void 0===e(this).data("jGrowl.pause")||!0!==e(this).data("jGrowl.pause"))&&e(this).trigger("jGrowl.beforeClose")})),0<this.notifications.length&&(0===this.defaults.pool||e(this.element).find(".jGrowl-notification:parent").length<this.defaults.pool)&&this.render(this.notifications.shift()),e(this.element).find(".jGrowl-notification:parent").length<2&&e(this.element).find(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,(function(){e(this).remove()}))},startup:function(t){this.element=e(t).addClass("jGrowl").append('<div class="jGrowl-notification"></div>'),this.interval=setInterval((function(){var r=e(t).data("jGrowl.instance")
if(void 0!==r)try{r.update()}catch(t){throw r.shutdown(),t}}),parseInt(this.defaults.check,10))},shutdown:function(){try{e(this.element).removeClass("jGrowl").find(".jGrowl-notification").trigger("jGrowl.close").parent().empty()}catch(t){throw t}finally{clearInterval(this.interval)}},close:function(){e(this.element).find(".jGrowl-notification").each((function(){e(this).trigger("jGrowl.beforeClose")}))}}),e.jGrowl.defaults=e.fn.jGrowl.prototype.defaults})),function(e){var t,r
t=this,r=function(){"use strict"
function e(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){for(var r in t.dataset)if(t.dataset.hasOwnProperty(r))if("env"===r||"dumpLineNumbers"===r||"rootpath"===r||"errorReporting"===r)e[r]=t.dataset[r]
else try{e[r]=JSON.parse(t.dataset[r])}catch(e){}}var r=function(t,r,i){var n=i.href||"",s="less:"+(i.title||e(n)),a=t.getElementById(s),o=!1,l=t.createElement("style")
l.setAttribute("type","text/css"),i.media&&l.setAttribute("media",i.media),l.id=s,l.styleSheet||(l.appendChild(t.createTextNode(r)),o=null!==a&&a.childNodes.length>0&&l.childNodes.length>0&&a.firstChild.nodeValue===l.firstChild.nodeValue)
var c=t.getElementsByTagName("head")[0]
if(null===a||!1===o){var u=i&&i.nextSibling||null
u?u.parentNode.insertBefore(l,u):c.appendChild(l)}if(a&&!1===o&&a.parentNode.removeChild(a),l.styleSheet)try{l.styleSheet.cssText=r}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)}
function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length
var i=Array(e),n=0
for(t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,n++)i[n]=s[a]
return i}var a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},l={colors:a,unitConversions:o},c=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null
var e=this
Object.defineProperty(this,"currentFileInfo",{get:function(){return e.fileInfo()}}),Object.defineProperty(this,"index",{get:function(){return e.getIndex()}})}return e.prototype.setParent=function(t,r){function i(t){t&&t instanceof e&&(t.parent=r)}Array.isArray(t)?t.forEach(i):i(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(e){var t=[]
return this.genCSS(e,{add:function(e,r,i){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.prototype.genCSS=function(e,t){t.add(this.value)},e.prototype.accept=function(e){this.value=e.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(e,t,r,i){switch(t){case"+":return r+i
case"-":return r-i
case"*":return r*i
case"/":return r/i}},e.prototype.fround=function(e,t){var r=e&&e.numPrecision
return r?Number((t+2e-16).toFixed(r)):t},e.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},e.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},e}()
c.compare=function(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t)
if(t.compare)return-t.compare(e)
if(e.type===t.type){if(e=e.value,t=t.value,!Array.isArray(e))return e===t?0:void 0
if(e.length===t.length){for(var r=0;r<e.length;r++)if(0!==c.compare(e[r],t[r]))return
return 0}}},c.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0}
var u=function(e,t,r){var i=this
Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map((function(e,t){t<3?i.rgb.push(parseInt(e,16)):i.alpha=parseInt(e,16)/255}))):(this.rgb=[],e.split("").map((function(e,t){t<3?i.rgb.push(parseInt(e+e,16)):i.alpha=parseInt(e+e,16)/255}))),this.alpha=this.alpha||("number"==typeof t?t:1),void 0!==r&&(this.value=r)}
function d(e,t){return Math.min(Math.max(e,0),t)}function h(e){return"#"+e.map((function(e){return((e=d(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}(u.prototype=new c).luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,r=this.rgb[2]/255
return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},u.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},u.prototype.toCSS=function(e,t){var r,i,n,s=e&&e.compress&&!t,a=[]
if(i=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))i<1&&(n="rgba")
else{if(0!==this.value.indexOf("hsl"))return this.value
n=i<1?"hsla":"hsl"}else i<1&&(n="rgba")
switch(n){case"rgba":a=this.rgb.map((function(e){return d(Math.round(e),255)})).concat(d(i,1))
break
case"hsla":a.push(d(i,1))
case"hsl":r=this.toHSL(),a=[this.fround(e,r.h),this.fround(e,100*r.s)+"%",this.fround(e,100*r.l)+"%"].concat(a)}if(n)return n+"("+a.join(","+(s?"":" "))+")"
if(r=this.toRGB(),s){var o=r.split("")
o[1]===o[2]&&o[3]===o[4]&&o[5]===o[6]&&(r="#"+o[1]+o[3]+o[5])}return r},u.prototype.operate=function(e,t,r){for(var i=new Array(3),n=this.alpha*(1-r.alpha)+r.alpha,s=0;s<3;s++)i[s]=this._operate(e,t,this.rgb[s],r.rgb[s])
return new u(i,n)},u.prototype.toRGB=function(){return h(this.rgb)},u.prototype.toHSL=function(){var e,t,r=this.rgb[0]/255,i=this.rgb[1]/255,n=this.rgb[2]/255,s=this.alpha,a=Math.max(r,i,n),o=Math.min(r,i,n),l=(a+o)/2,c=a-o
if(a===o)e=t=0
else{switch(t=l>.5?c/(2-a-o):c/(a+o),a){case r:e=(i-n)/c+(i<n?6:0)
break
case i:e=(n-r)/c+2
break
case n:e=(r-i)/c+4}e/=6}return{h:360*e,s:t,l:l,a:s}},u.prototype.toHSV=function(){var e,t,r=this.rgb[0]/255,i=this.rgb[1]/255,n=this.rgb[2]/255,s=this.alpha,a=Math.max(r,i,n),o=Math.min(r,i,n),l=a,c=a-o
if(t=0===a?0:c/a,a===o)e=0
else{switch(a){case r:e=(i-n)/c+(i<n?6:0)
break
case i:e=(n-r)/c+2
break
case n:e=(r-i)/c+4}e/=6}return{h:360*e,s:t,v:l,a:s}},u.prototype.toARGB=function(){return h([255*this.alpha].concat(this.rgb))},u.prototype.compare=function(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0},u.prototype.type="Color",u.fromKeyword=function(e){var t,r=e.toLowerCase()
if(a.hasOwnProperty(r)?t=new u(a[r].slice(1)):"transparent"===r&&(t=new u([0,0,0],0)),t)return t.value=e,t}
var p=function(e){this.value=e};(p.prototype=new c).genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},p.prototype.eval=function(e){return new p(this.value.eval(e))},p.prototype.type="Paren"
var f={"":!0," ":!0,"|":!0},m=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};(m.prototype=new c).genCSS=function(e,t){var r=e.compress||f[this.value]?"":" "
t.add(r+this.value+r)},m.prototype.type="Combinator"
var g=function(e,t,r,i,n,s){this.combinator=e instanceof m?e:new m(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=r,this._index=i,this._fileInfo=n,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)};(g.prototype=new c).accept=function(e){var t=this.value
this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},g.prototype.eval=function(e){return new g(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.clone=function(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},g.prototype.toCSS=function(e){void 0===e&&(e={})
var t=this.value,r=e.firstSelector
return t instanceof p&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=r,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t},g.prototype.type="Element"
var b={ALWAYS:0,PARENS_DIVISION:1,PARENS:2,STRICT_LEGACY:3}
function y(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Array"===y(e)}function w(e,t){return void 0===t&&(t={}),v(e)?e.map((function(e){return w(e,t)})):"Object"!==y(r=e)||r.constructor!==Object||Object.getPrototypeOf(r)!==Object.prototype?e:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length
var i=Array(e),n=0
for(t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,n++)i[n]=s[a]
return i}(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(r,i){return v(t.props)&&!t.props.includes(i)||function(e,t,r,i,n){var s={}.propertyIsEnumerable.call(i,t)?"enumerable":"nonenumerable"
"enumerable"===s&&(e[t]=r),n&&"nonenumerable"===s&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,i,w(e[i],t),e,t.nonenumerable),r}),{})
var r}function x(e,t){for(var r=e+1,i=null,n=-1;--r>=0&&"\n"!==t.charAt(r);)n++
return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:n}}function _(e){var t,r=e.length,i=new Array(r)
for(t=0;t<r;t++)i[t]=e[t]
return i}function S(e){var t={}
for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])
return t}function k(e,t){var r=t||{}
if(!t._defaults){r={}
var i=w(e)
r._defaults=i
var n=t?w(t):{}
Object.assign(r,i,n)}return r}function A(e,t){if(t&&t._defaults)return t
var r=k(e,t)
if(r.strictMath&&(r.math=b.STRICT_LEGACY),r.relativeUrls&&(r.rewriteUrls=2),"string"==typeof r.math)switch(r.math.toLowerCase()){case"always":r.math=b.ALWAYS
break
case"parens-division":r.math=b.PARENS_DIVISION
break
case"strict":case"parens":r.math=b.PARENS
break
case"strict-legacy":r.math=b.STRICT_LEGACY}if("string"==typeof r.rewriteUrls)switch(r.rewriteUrls.toLowerCase()){case"off":r.rewriteUrls=0
break
case"local":r.rewriteUrls=1
break
case"all":r.rewriteUrls=2}return r}function C(e,t){void 0===t&&(t=[])
for(var r=0,i=e.length;r<i;r++){var n=e[r]
Array.isArray(n)?C(n,t):void 0!==n&&t.push(n)}return t}var P=Object.freeze({__proto__:null,getLocation:x,copyArray:_,clone:S,defaults:k,copyOptions:A,merge:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])
return e},flattenArray:C}),O=/(<anonymous>|Function):(\d+):(\d+)/,E=function(e,t,r){Error.call(this)
var i=e.filename||r
if(this.message=e.message,this.stack=e.stack,t&&i){var n=t.contents[i],s=x(e.index,n),a=s.line,o=s.column,l=e.call&&x(e.call,n).line,c=n?n.split("\n"):""
if(this.type=e.type||"Syntax",this.filename=i,this.index=e.index,this.line="number"==typeof a?a+1:null,this.column=o,!this.line&&this.stack){var u=this.stack.match(O),d=new Function("a","throw new Error()"),h=0
try{d()}catch(e){var p=e.stack.match(O)
h=1-parseInt(p[2])}u&&(u[2]&&(this.line=parseInt(u[2])+h),u[3]&&(this.column=parseInt(u[3])))}this.callLine=l+1,this.callExtract=c[l],this.extract=[c[this.line-2],c[this.line-1],c[this.line]]}}
if(void 0===Object.create){var T=function(){}
T.prototype=Error.prototype,E.prototype=new T}else E.prototype=Object.create(Error.prototype)
E.prototype.constructor=E,E.prototype.toString=function(e){void 0===e&&(e={})
var t="",r=this.extract||[],i=[],n=function(e){return e}
if(e.stylize){var s=typeof e.stylize
if("function"!==s)throw Error("options.stylize should be a function, got a "+s+"!")
n=e.stylize}if(null!==this.line){if("string"==typeof r[0]&&i.push(n(this.line-1+" "+r[0],"grey")),"string"==typeof r[1]){var a=this.line+" "
r[1]&&(a+=r[1].slice(0,this.column)+n(n(n(r[1].substr(this.column,1),"bold")+r[1].slice(this.column+1),"red"),"inverse")),i.push(a)}"string"==typeof r[2]&&i.push(n(this.line+1+" "+r[2],"grey")),i=i.join("\n")+n("","reset")+"\n"}return t+=n(this.type+"Error: "+this.message,"red"),this.filename&&(t+=n(" in ","red")+this.filename),this.line&&(t+=n(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+="\n"+i,this.callLine&&(t+=n("from ","red")+(this.filename||"")+"/n",t+=n(this.callLine,"grey")+" "+this.callExtract+"/n"),t}
var M=function(e,t,r,i,n,s){this.extendList=t,this.condition=r,this.evaldCondition=!r,this._index=i,this._fileInfo=n,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)};(M.prototype=new c).accept=function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},M.prototype.createDerived=function(e,t,r){e=this.getElements(e)
var i=new M(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo())
return i.evaldCondition=null!=r?r:this.evaldCondition,i.mediaEmpty=this.mediaEmpty,i},M.prototype.getElements=function(e){return e?("string"==typeof e&&this.parse.parseNode(e,["selector"],this._index,this._fileInfo,(function(t,r){if(t)throw new E({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename)
e=r[0].elements})),e):[new g("","&",!1,this._index,this._fileInfo)]},M.prototype.createEmptySelectors=function(){var e=new g("","&",!1,this._index,this._fileInfo),t=[new M([e],null,null,this._index,this._fileInfo)]
return t[0].mediaEmpty=!0,t},M.prototype.match=function(e){var t,r,i=this.elements,n=i.length
if(0===(t=(e=e.mixinElements()).length)||n<t)return 0
for(r=0;r<t;r++)if(i[r].value!==e[r])return 0
return t},M.prototype.mixinElements=function(){if(this.mixinElements_)return this.mixinElements_
var e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g)
return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},M.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},M.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),r=this.elements,i=this.extendList
return r=r&&r.map((function(t){return t.eval(e)})),i=i&&i.map((function(t){return t.eval(e)})),this.createDerived(r,i,t)},M.prototype.genCSS=function(e,t){var r
for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),r=0;r<this.elements.length;r++)this.elements[r].genCSS(e,t)},M.prototype.getIsOutput=function(){return this.evaldCondition},M.prototype.type="Selector"
var I=function(e){if(!e)throw new Error("Value requires an array argument")
Array.isArray(e)?this.value=e:this.value=[e]};(I.prototype=new c).accept=function(e){this.value&&(this.value=e.visitArray(this.value))},I.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new I(this.value.map((function(t){return t.eval(e)})))},I.prototype.genCSS=function(e,t){var r
for(r=0;r<this.value.length;r++)this.value[r].genCSS(e,t),r+1<this.value.length&&t.add(e&&e.compress?",":", ")},I.prototype.type="Value"
var F=function(e){this.value=e};(F.prototype=new c).genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"}
t.add(this.value)},F.prototype.type="Keyword",F.True=new F("true"),F.False=new F("false")
var N=function(e,t,r,i,n,s){this.value=e,this._index=t,this._fileInfo=r,this.mapLines=i,this.rulesetLike=void 0!==n&&n,this.allowRoot=!0,this.copyVisibilityInfo(s)};(N.prototype=new c).eval=function(){return new N(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},N.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},N.prototype.isRulesetLike=function(){return this.rulesetLike},N.prototype.genCSS=function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)},N.prototype.type="Anonymous"
var R=b,D=function(e,t,r,i,n,s,a,o){this.name=e,this.value=t instanceof c?t:new I([t?new N(t):null]),this.important=r?" "+r.trim():"",this.merge=i,this._index=n,this._fileInfo=s,this.inline=a||!1,this.variable=void 0!==o?o:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)};(D.prototype=new c).genCSS=function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex())
try{this.value.genCSS(e,t)}catch(e){throw e.index=this._index,e.filename=this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},D.prototype.eval=function(e){var t,r,i=!1,n=this.name,s=this.variable
"string"!=typeof n&&(n=1===n.length&&n[0]instanceof F?n[0].value:function(e,t){var r,i="",n=t.length,s={add:function(e){i+=e}}
for(r=0;r<n;r++)t[r].eval(e).genCSS(e,s)
return i}(e,n),s=!1),"font"===n&&e.math===R.ALWAYS&&(i=!0,t=e.math,e.math=R.PARENS_DIVISION)
try{if(e.importantScope.push({}),r=this.value.eval(e),!this.variable&&"DetachedRuleset"===r.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename}
var a=this.important,o=e.importantScope.pop()
return!a&&o.important&&(a=o.important),new D(n,r,a,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(e){throw"number"!=typeof e.index&&(e.index=this.getIndex(),e.filename=this.fileInfo().filename),e}finally{i&&(e.math=t)}},D.prototype.makeImportant=function(){return new D(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)},D.prototype.type="Declaration"
var j=function(e,t,r){var i=""
if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":i=j.asComment(t)
break
case"mediaquery":i=j.asMediaQuery(t)
break
case"all":i=j.asComment(t)+(r||"")+j.asMediaQuery(t)}return i}
j.asComment=function(e){return e.debugInfo?"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n":""},j.asMediaQuery=function(e){if(!e.debugInfo)return""
var t=e.debugInfo.fileName
return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,(function(e){return"\\"==e&&(e="/"),"\\"+e}))+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"}
var L=function(e,t,r,i){this.value=e,this.isLineComment=t,this._index=r,this._fileInfo=i,this.allowRoot=!0};(L.prototype=new c).genCSS=function(e,t){this.debugInfo&&t.add(j(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},L.prototype.isSilent=function(e){var t=e.compress&&"!"!==this.value[2]
return this.isLineComment||t},L.prototype.type="Comment"
var B={},$=function(e,t,r){if(e)for(var i=0;i<r.length;i++)e.hasOwnProperty(r[i])&&(t[r[i]]=e[r[i]])},z=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"]
B.Parse=function(e){$(e,this,z),"string"==typeof this.paths&&(this.paths=[this.paths])}
var U=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"]
function q(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function H(e){return"."===e.charAt(0)}B.Eval=function(){function e(e,t){$(e,this,U),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[],this.inCalc=!1,this.mathOn=!0}return e.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},e.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},e.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.prototype.isMathOn=function(e){return!!this.mathOn&&!!("/"!==e||this.math===b.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>b.PARENS_DIVISION)||this.parensStack&&this.parensStack.length)},e.prototype.pathRequiresRewrite=function(e){return(1===this.rewriteUrls?H:q)(e)},e.prototype.rewritePath=function(e,t){var r
return t=t||"",r=this.normalizePath(t+e),H(e)&&q(t)&&!1===H(r)&&(r="./"+r),r},e.prototype.normalizePath=function(e){var t,r=e.split("/").reverse()
for(e=[];0!==r.length;)switch(t=r.pop()){case".":break
case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop()
break
default:e.push(t)}return e.join("/")},e}()
var V=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){var t=this
Object.keys(e).forEach((function(r){t.add(r,e[r])}))},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null),G={eval:function(){var e=this.value_,t=this.error_
if(t)throw t
if(null!=e)return e?F.True:F.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},W=function(e,t,r,i){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=r,this.copyVisibilityInfo(i),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};(W.prototype=new c).isRulesetLike=function(){return!0},W.prototype.accept=function(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},W.prototype.eval=function(e){var t,r,i,n,s,a=!1
if(this.selectors&&(r=this.selectors.length)){for(t=new Array(r),G.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),n=0;n<r;n++){i=this.selectors[n].eval(e)
for(var o=0;o<i.elements.length;o++)if(i.elements[o].isVariable){s=!0
break}t[n]=i,i.evaldCondition&&(a=!0)}if(s){var l=new Array(r)
for(n=0;n<r;n++)i=t[n],l[n]=i.toCSS(e)
this.parse.parseNode(l.join(","),["selectors"],t[0].getIndex(),t[0].fileInfo(),(function(e,r){r&&(t=C(r))}))}G.reset()}else a=!0
var u,d,h=this.rules?_(this.rules):null,p=new W(t,h,this.strictImports,this.visibilityInfo())
p.originalRuleset=this,p.root=this.root,p.firstRoot=this.firstRoot,p.allowImports=this.allowImports,this.debugInfo&&(p.debugInfo=this.debugInfo),a||(h.length=0),p.functionRegistry=function(e){for(var t,r=0,i=e.length;r!==i;++r)if(t=e[r].functionRegistry)return t
return V}(e.frames).inherit()
var f=e.frames
f.unshift(p)
var m=e.selectors
m||(e.selectors=m=[]),m.unshift(this.selectors),(p.root||p.allowImports||!p.strictImports)&&p.evalImports(e)
var g=p.rules
for(n=0;u=g[n];n++)u.evalFirst&&(g[n]=u.eval(e))
var b=e.mediaBlocks&&e.mediaBlocks.length||0
for(n=0;u=g[n];n++)"MixinCall"===u.type?(h=u.eval(e).filter((function(e){return!(e instanceof D&&e.variable&&p.variable(e.name))})),g.splice.apply(g,[n,1].concat(h)),n+=h.length-1,p.resetCache()):"VariableCall"===u.type&&(h=u.eval(e).rules.filter((function(e){return!(e instanceof D&&e.variable)})),g.splice.apply(g,[n,1].concat(h)),n+=h.length-1,p.resetCache())
for(n=0;u=g[n];n++)u.evalFirst||(g[n]=u=u.eval?u.eval(e):u)
for(n=0;u=g[n];n++)if(u instanceof W&&u.selectors&&1===u.selectors.length&&u.selectors[0]&&u.selectors[0].isJustParentSelector())for(g.splice(n--,1),o=0;d=u.rules[o];o++)d instanceof c&&(d.copyVisibilityInfo(u.visibilityInfo()),d instanceof D&&d.variable||g.splice(++n,0,d))
if(f.shift(),m.shift(),e.mediaBlocks)for(n=b;n<e.mediaBlocks.length;n++)e.mediaBlocks[n].bubbleSelectors(t)
return p},W.prototype.evalImports=function(e){var t,r,i=this.rules
if(i)for(t=0;t<i.length;t++)"Import"===i[t].type&&((r=i[t].eval(e))&&(r.length||0===r.length)?(i.splice.apply(i,[t,1].concat(r)),t+=r.length-1):i.splice(t,1,r),this.resetCache())},W.prototype.makeImportant=function(){return new W(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())},W.prototype.matchArgs=function(e){return!e||0===e.length},W.prototype.matchCondition=function(e,t){var r=this.selectors[this.selectors.length-1]
return!(!r.evaldCondition||r.condition&&!r.condition.eval(new B.Eval(t,t.frames)))},W.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},W.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof D&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var r=t.root.variables()
for(var i in r)r.hasOwnProperty(i)&&(e[i]=t.root.variable(i))}return e}),{}):{}),this._variables},W.prototype.properties=function(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof D&&!0!==t.variable){var r=1===t.name.length&&t.name[0]instanceof F?t.name[0].value:t.name
e["$"+r]?e["$"+r].push(t):e["$"+r]=[t]}return e}),{}):{}),this._properties},W.prototype.variable=function(e){var t=this.variables()[e]
if(t)return this.parseValue(t)},W.prototype.property=function(e){var t=this.properties()[e]
if(t)return this.parseValue(t)},W.prototype.lastDeclaration=function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1]
if(t instanceof D)return this.parseValue(t)}},W.prototype.parseValue=function(e){var t=this
function r(e){return e.value instanceof N&&!e.parsed?("string"==typeof e.value.value?this.parse.parseNode(e.value.value,["value","important"],e.value.getIndex(),e.fileInfo(),(function(t,r){t&&(e.parsed=!0),r&&(e.value=r[0],e.important=r[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){var i=[]
return e.forEach((function(e){i.push(r.call(t,e))})),i}return r.call(t,e)},W.prototype.rulesets=function(){if(!this.rules)return[]
var e,t,r=[],i=this.rules
for(e=0;t=i[e];e++)t.isRuleset&&r.push(t)
return r},W.prototype.prependRule=function(e){var t=this.rules
t?t.unshift(e):this.rules=[e],this.setParent(e,this)},W.prototype.find=function(e,t,r){void 0===t&&(t=this)
var i,n,s=[],a=e.toCSS()
return a in this._lookups?this._lookups[a]:(this.rulesets().forEach((function(a){if(a!==t)for(var o=0;o<a.selectors.length;o++)if(i=e.match(a.selectors[o])){if(e.elements.length>i){if(!r||r(a)){n=a.find(new M(e.elements.slice(i)),t,r)
for(var l=0;l<n.length;++l)n[l].path.push(a)
Array.prototype.push.apply(s,n)}}else s.push({rule:a,path:[]})
break}})),this._lookups[a]=s,s)},W.prototype.genCSS=function(e,t){var r,i,n,s,a,o=[]
e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++
var l,c=e.compress?"":Array(e.tabLevel+1).join("  "),u=e.compress?"":Array(e.tabLevel).join("  "),d=0,h=0
for(r=0;s=this.rules[r];r++)s instanceof L?(h===r&&h++,o.push(s)):s.isCharset&&s.isCharset()?(o.splice(d,0,s),d++,h++):"Import"===s.type?(o.splice(h,0,s),h++):o.push(s)
if(o=[].concat(o),!this.root){(n=j(e,this,u))&&(t.add(n),t.add(u))
var p=this.paths,f=p.length,m=void 0
for(l=e.compress?",":",\n"+u,r=0;r<f;r++)if(m=(a=p[r]).length)for(r>0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,i=1;i<m;i++)a[i].genCSS(e,t)
t.add((e.compress?"{":" {\n")+c)}for(r=0;s=o[r];r++){r+1===o.length&&(e.lastRule=!0)
var g=e.lastRule
s.isRulesetLike(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=g,!e.lastRule&&s.isVisible()?t.add(e.compress?"":"\n"+c):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n"+u+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},W.prototype.joinSelectors=function(e,t,r){for(var i=0;i<r.length;i++)this.joinSelector(e,t,r[i])},W.prototype.joinSelector=function(e,t,r){function i(e,t){var r,i
if(0===e.length)r=new p(e[0])
else{var n=new Array(e.length)
for(i=0;i<e.length;i++)n[i]=new g(null,e[i],t.isVariable,t._index,t._fileInfo)
r=new p(new M(n))}return r}function n(e,t){var r
return r=new g(null,e,t.isVariable,t._index,t._fileInfo),new M([r])}function s(e,t,r,i){var n,s,a
if(n=[],e.length>0?(s=(n=_(e)).pop(),a=i.createDerived(_(s.elements))):a=i.createDerived([]),t.length>0){var o=r.combinator,l=t[0].elements[0]
o.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(o=l.combinator),a.elements.push(new g(o,l.value,r.isVariable,r._index,r._fileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&n.push(a),t.length>1){var c=t.slice(1)
c=c.map((function(e){return e.createDerived(e.elements,[])})),n=n.concat(c)}return n}function a(e,t,r,i,n){var a
for(a=0;a<e.length;a++){var o=s(e[a],t,r,i)
n.push(o)}return n}function o(e,t){var r,i
if(0!==e.length)if(0!==t.length)for(r=0;i=t[r];r++)i.length>0?i[i.length-1]=i[i.length-1].createDerived(i[i.length-1].elements.concat(e)):i.push(new M(e))
else t.push([new M(e)])}function l(e,t){var r=t.createDerived(t.elements,t.extendList,t.evaldCondition)
return r.copyVisibilityInfo(e),r}var c,u
if(!function e(t,r,l){var c,u,d,h,f,m,b,y,v,w,x,_,S=!1
for(h=[],f=[[]],c=0;y=l.elements[c];c++)if("&"!==y.value){var k=(_=void 0,(x=y).value instanceof p&&(_=x.value.value)instanceof M?_:null)
if(null!=k){o(h,f)
var A,C=[],P=[]
for(A=e(C,r,k),S=S||A,d=0;d<C.length;d++)a(f,[n(i(C[d],y),y)],y,l,P)
f=P,h=[]}else h.push(y)}else{for(S=!0,m=[],o(h,f),u=0;u<f.length;u++)if(b=f[u],0===r.length)b.length>0&&b[0].elements.push(new g(y.combinator,"",y.isVariable,y._index,y._fileInfo)),m.push(b)
else for(d=0;d<r.length;d++){var O=s(b,r[d],y,l)
m.push(O)}f=m,h=[]}for(o(h,f),c=0;c<f.length;c++)(v=f[c].length)>0&&(t.push(f[c]),w=f[c][v-1],f[c][v-1]=w.createDerived(w.elements,l.extendList))
return S}(u=[],t,r))if(t.length>0)for(u=[],c=0;c<t.length;c++){var d=t[c].map(l.bind(this,r.visibilityInfo()))
d.push(r),u.push(d)}else u=[[r]]
for(c=0;c<u.length;c++)e.push(u[c])},W.prototype.type="Ruleset",W.prototype.isRuleset=!0
var X=function(e,t,r,i,n,s,a,o){var l
if(this.name=e,this.value=t instanceof c?t:t?new N(t):t,r){for(Array.isArray(r)?this.rules=r:(this.rules=[r],this.rules[0].selectors=new M([],null,null,i,n).createEmptySelectors()),l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0
this.setParent(this.rules,this)}this._index=i,this._fileInfo=n,this.debugInfo=s,this.isRooted=a||!1,this.copyVisibilityInfo(o),this.allowRoot=!0};(X.prototype=new c).accept=function(e){var t=this.value,r=this.rules
r&&(this.rules=e.visitArray(r)),t&&(this.value=e.visit(t))},X.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},X.prototype.isCharset=function(){return"@charset"===this.name},X.prototype.genCSS=function(e,t){var r=this.value,i=this.rules
t.add(this.name,this.fileInfo(),this.getIndex()),r&&(t.add(" "),r.genCSS(e,t)),i?this.outputRuleset(e,t,i):t.add(";")},X.prototype.eval=function(e){var t,r,i=this.value,n=this.rules
return t=e.mediaPath,r=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)),n&&((n=[n[0].eval(e)])[0].root=!0),e.mediaPath=t,e.mediaBlocks=r,new X(this.name,i,n,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},X.prototype.variable=function(e){if(this.rules)return W.prototype.variable.call(this.rules[0],e)},X.prototype.find=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
if(this.rules)return W.prototype.find.apply(this.rules[0],e)},X.prototype.rulesets=function(){if(this.rules)return W.prototype.rulesets.apply(this.rules[0])},X.prototype.outputRuleset=function(e,t,r){var i,n=r.length
if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),i=0;i<n;i++)r[i].genCSS(e,t)
return t.add("}"),void e.tabLevel--}var s="\n"+Array(e.tabLevel).join("  "),a=s+"  "
if(n){for(t.add(" {"+a),r[0].genCSS(e,t),i=1;i<n;i++)t.add(a),r[i].genCSS(e,t)
t.add(s+"}")}else t.add(" {"+s+"}")
e.tabLevel--},X.prototype.type="AtRule"
var K=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};(K.prototype=new c).accept=function(e){this.ruleset=e.visit(this.ruleset)},K.prototype.eval=function(e){var t=this.frames||_(e.frames)
return new K(this.ruleset,t)},K.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new B.Eval(e,this.frames.concat(e.frames)):e)},K.prototype.type="DetachedRuleset",K.prototype.evalFirst=!0
var Y=function(e,t,r){this.numerator=e?_(e).sort():[],this.denominator=t?_(t).sort():[],r?this.backupUnit=r:e&&e.length&&(this.backupUnit=e[0])};(Y.prototype=new c).clone=function(){return new Y(_(this.numerator),_(this.denominator),this.backupUnit)},Y.prototype.genCSS=function(e,t){var r=e&&e.strictUnits
1===this.numerator.length?t.add(this.numerator[0]):!r&&this.backupUnit?t.add(this.backupUnit):!r&&this.denominator.length&&t.add(this.denominator[0])},Y.prototype.toString=function(){var e,t=this.numerator.join("*")
for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e]
return t},Y.prototype.compare=function(e){return this.is(e.toString())?0:void 0},Y.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},Y.prototype.isLength=function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},Y.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},Y.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},Y.prototype.map=function(e){var t
for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1)
for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},Y.prototype.usedUnits=function(){var e,t,r,i={}
for(r in t=function(t){return e.hasOwnProperty(t)&&!i[r]&&(i[r]=t),t},o)o.hasOwnProperty(r)&&(e=o[r],this.map(t))
return i},Y.prototype.cancel=function(){var e,t,r={}
for(t=0;t<this.numerator.length;t++)r[e=this.numerator[t]]=(r[e]||0)+1
for(t=0;t<this.denominator.length;t++)r[e=this.denominator[t]]=(r[e]||0)-1
for(e in this.numerator=[],this.denominator=[],r)if(r.hasOwnProperty(e)){var i=r[e]
if(i>0)for(t=0;t<i;t++)this.numerator.push(e)
else if(i<0)for(t=0;t<-i;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()},Y.prototype.type="Unit"
var J=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.")
this.unit=t&&t instanceof Y?t:new Y(t?[t]:void 0),this.setParent(this.unit,this)};(J.prototype=new c).accept=function(e){this.unit=e.visit(this.unit)},J.prototype.eval=function(e){return this},J.prototype.toColor=function(){return new u([this.value,this.value,this.value])},J.prototype.genCSS=function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString())
var r=this.fround(e,this.value),i=String(r)
if(0!==r&&r<1e-6&&r>-1e-6&&(i=r.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===r&&this.unit.isLength())return void t.add(i)
r>0&&r<1&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},J.prototype.operate=function(e,t,r){var i=this._operate(e,t,this.value,r.value),n=this.unit.clone()
if("+"===t||"-"===t)if(0===n.numerator.length&&0===n.denominator.length)n=r.unit.clone(),this.unit.backupUnit&&(n.backupUnit=this.unit.backupUnit)
else if(0===r.unit.numerator.length&&0===n.denominator.length);else{if(r=r.convertTo(this.unit.usedUnits()),e.strictUnits&&r.unit.toString()!==n.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+n.toString()+"' and '"+r.unit.toString()+"'.")
i=this._operate(e,t,this.value,r.value)}else"*"===t?(n.numerator=n.numerator.concat(r.unit.numerator).sort(),n.denominator=n.denominator.concat(r.unit.denominator).sort(),n.cancel()):"/"===t&&(n.numerator=n.numerator.concat(r.unit.denominator).sort(),n.denominator=n.denominator.concat(r.unit.numerator).sort(),n.cancel())
return new J(i,n)},J.prototype.compare=function(e){var t,r
if(e instanceof J){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,r=e
else if(t=this.unify(),r=e.unify(),0!==t.unit.compare(r.unit))return
return c.numericCompare(t.value,r.value)}},J.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},J.prototype.convertTo=function(e){var t,r,i,n,s,a=this.value,l=this.unit.clone(),c={}
if("string"==typeof e){for(t in o)o[t].hasOwnProperty(e)&&((c={})[t]=e)
e=c}for(r in s=function(e,t){return i.hasOwnProperty(e)?(t?a/=i[e]/i[n]:a*=i[e]/i[n],n):e},e)e.hasOwnProperty(r)&&(n=e[r],i=o[r],l.map(s))
return l.cancel(),new J(a,l)},J.prototype.type="Dimension"
var Q=b,Z=function(e,t,r){this.op=e.trim(),this.operands=t,this.isSpaced=r};(Z.prototype=new c).accept=function(e){this.operands=e.visitArray(this.operands)},Z.prototype.eval=function(e){var t,r=this.operands[0].eval(e),i=this.operands[1].eval(e)
if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,r instanceof J&&i instanceof u&&(r=r.toColor()),i instanceof J&&r instanceof u&&(i=i.toColor()),!r.operate){if(r instanceof Z&&"/"===r.op&&e.math===Q.PARENS_DIVISION)return new Z(this.op,[r,i],this.isSpaced)
throw{type:"Operation",message:"Operation on an invalid type"}}return r.operate(e,t,i)}return new Z(this.op,[r,i],this.isSpaced)},Z.prototype.genCSS=function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)},Z.prototype.type="Operation"
var ee=b,te=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw new Error("Expression requires an array parameter")};(te.prototype=new c).accept=function(e){this.value=e.visitArray(this.value)},te.prototype.eval=function(e){var t,r=e.isMathOn(),i=this.parens&&(e.math!==ee.STRICT_LEGACY||!this.parensInOp),n=!1
return i&&e.inParenthesis(),this.value.length>1?t=new te(this.value.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(n=!0),t=this.value[0].eval(e)):t=this,i&&e.outOfParenthesis(),!this.parens||!this.parensInOp||r||n||t instanceof J||(t=new p(t)),t},te.prototype.genCSS=function(e,t){for(var r=0;r<this.value.length;r++)this.value[r].genCSS(e,t),!this.noSpacing&&r+1<this.value.length&&t.add(" ")},te.prototype.throwAwayComments=function(){this.value=this.value.filter((function(e){return!(e instanceof L)}))},te.prototype.type="Expression"
var re=function(){function e(e,t,r,i){this.name=e.toLowerCase(),this.index=r,this.context=t,this.currentFileInfo=i,this.func=t.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(e){var t=this,r=this.func.evalArgs
return!1!==r&&(e=e.map((function(e){return e.eval(t.context)}))),Array.isArray(e)&&(e=e.filter((function(e){return"Comment"!==e.type})).map((function(e){if("Expression"===e.type){var t=e.value.filter((function(e){return"Comment"!==e.type}))
return 1===t.length?t[0]:new te(t)}return e}))),!1===r?this.func.apply(this,s([this.context],e)):this.func.apply(this,e)},e}(),ie=function(e,t,r,i){this.name=e,this.args=t,this.calc="calc"===e,this._index=r,this._fileInfo=i};(ie.prototype=new c).accept=function(e){this.args&&(this.args=e.visitArray(this.args))},ie.prototype.eval=function(e){var t=this,r=e.mathOn
e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc()
var i,n=function(){(t.calc||e.inCalc)&&e.exitCalc(),e.mathOn=r},s=new re(this.name,e,this.getIndex(),this.fileInfo())
if(s.isValid()){try{i=s.call(this.args),n()}catch(e){if(e.hasOwnProperty("line")&&e.hasOwnProperty("column"))throw e
throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=i)return i instanceof c||(i=new N(i&&!0!==i?i.toString():null)),i._index=this._index,i._fileInfo=this._fileInfo,i}var a=this.args.map((function(t){return t.eval(e)}))
return n(),new ie(this.name,a,this.getIndex(),this.fileInfo())},ie.prototype.genCSS=function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex())
for(var r=0;r<this.args.length;r++)this.args[r].genCSS(e,t),r+1<this.args.length&&t.add(", ")
t.add(")")},ie.prototype.type="Call"
var ne=function(e,t,r){this.name=e,this._index=t,this._fileInfo=r};(ne.prototype=new c).eval=function(e){var t,r=this.name
if(0===r.indexOf("@@")&&(r="@"+new ne(r.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+r,filename:this.fileInfo().filename,index:this.getIndex()}
if(this.evaluating=!0,t=this.find(e.frames,(function(t){var i=t.variable(r)
if(i)return i.important&&(e.importantScope[e.importantScope.length-1].important=i.important),e.inCalc?new ie("_SELF",[i.value]).eval(e):i.value.eval(e)})))return this.evaluating=!1,t
throw{type:"Name",message:"variable "+r+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},ne.prototype.find=function(e,t){for(var r=0,i=void 0;r<e.length;r++)if(i=t.call(e,e[r]))return i
return null},ne.prototype.type="Variable"
var se=function(e,t,r){this.name=e,this._index=t,this._fileInfo=r};(se.prototype=new c).eval=function(e){var t,r=this.name,i=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules
if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+r,filename:this.fileInfo().filename,index:this.getIndex()}
if(this.evaluating=!0,t=this.find(e.frames,(function(t){var n,s=t.property(r)
if(s){for(var a=0;a<s.length;a++)n=s[a],s[a]=new D(n.name,n.value,n.important,n.merge,n.index,n.currentFileInfo,n.inline,n.variable)
return i(s),(n=s[s.length-1]).important&&(e.importantScope[e.importantScope.length-1].important=n.important),n.value.eval(e)}})))return this.evaluating=!1,t
throw{type:"Name",message:"Property '"+r+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},se.prototype.find=function(e,t){for(var r=0,i=void 0;r<e.length;r++)if(i=t.call(e,e[r]))return i
return null},se.prototype.type="Property"
var ae=function(e,t,r){this.key=e,this.op=t,this.value=r};(ae.prototype=new c).eval=function(e){return new ae(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},ae.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},ae.prototype.toCSS=function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key
return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"},ae.prototype.type="Attribute"
var oe=function(e,t,r,i,n){this.escaped=null==r||r,this.value=t||"",this.quote=e.charAt(0),this._index=i,this._fileInfo=n,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=r};(oe.prototype=new c).genCSS=function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},oe.prototype.containsVariables=function(){return this.value.match(this.variableRegex)},oe.prototype.eval=function(e){var t=this,r=this.value
function i(e,t,r){var i=e
do{e=i.toString(),i=e.replace(t,r)}while(e!==i)
return i}return r=i(r,this.variableRegex,(function(r,i){var n=new ne("@"+i,t.getIndex(),t.fileInfo()).eval(e,!0)
return n instanceof oe?n.value:n.toCSS()})),r=i(r,this.propRegex,(function(r,i){var n=new se("$"+i,t.getIndex(),t.fileInfo()).eval(e,!0)
return n instanceof oe?n.value:n.toCSS()})),new oe(this.quote+r+this.quote,r,this.escaped,this.getIndex(),this.fileInfo())},oe.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:c.numericCompare(this.value,e.value)},oe.prototype.type="Quoted"
var le=function(e,t,r,i){this.value=e,this._index=t,this._fileInfo=r,this.isEvald=i};(le.prototype=new c).accept=function(e){this.value=e.visit(this.value)},le.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},le.prototype.eval=function(e){var t,r=this.value.eval(e)
if(!this.isEvald&&("string"==typeof(t=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof r.value&&e.pathRequiresRewrite(r.value)?(r.quote||(t=t.replace(/[\(\)'"\s]/g,(function(e){return"\\"+e}))),r.value=e.rewritePath(r.value,t)):r.value=e.normalizePath(r.value),e.urlArgs&&!r.value.match(/^\s*data:/))){var i=(-1===r.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==r.value.indexOf("#")?r.value=r.value.replace("#",i+"#"):r.value+=i}return new le(r,this.getIndex(),this.fileInfo(),!0)},le.prototype.type="Url"
var ce=function(e,t,r,i,n){this._index=r,this._fileInfo=i
var s=new M([],null,null,this._index,this._fileInfo).createEmptySelectors()
this.features=new I(t),this.rules=[new W(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(n),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};(ce.prototype=new X).isRulesetLike=function(){return!0},ce.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},ce.prototype.genCSS=function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},ce.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[])
var t=new ce(null,[],this._index,this._fileInfo,this.visibilityInfo())
return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)},ce.prototype.evalTop=function(e){var t=this
if(e.mediaBlocks.length>1){var r=new M([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new W(r,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},ce.prototype.evalNested=function(e){var t,r,i=e.mediaPath.concat([this])
for(t=0;t<i.length;t++)r=i[t].features instanceof I?i[t].features.value:i[t].features,i[t]=Array.isArray(r)?r:[r]
return this.features=new I(this.permute(i).map((function(e){for(e=e.map((function(e){return e.toCSS?e:new N(e)})),t=e.length-1;t>0;t--)e.splice(t,0,new N("and"))
return new te(e)}))),this.setParent(this.features,this),new W([],[])},ce.prototype.permute=function(e){if(0===e.length)return[]
if(1===e.length)return e[0]
for(var t=[],r=this.permute(e.slice(1)),i=0;i<r.length;i++)for(var n=0;n<e[0].length;n++)t.push([e[0][n]].concat(r[i]))
return t},ce.prototype.bubbleSelectors=function(e){e&&(this.rules=[new W(_(e),[this.rules[0]])],this.setParent(this.rules,this))},ce.prototype.type="Media"
var ue=function(e,t,r,i,n,s){if(this.options=r,this._index=i,this._fileInfo=n,this.path=e,this.features=t,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline
else{var a=this.getPath()
a&&/[#\.\&\?]css([\?;].*)?$/.test(a)&&(this.css=!0)}this.copyVisibilityInfo(s),this.setParent(this.features,this),this.setParent(this.path,this)};(ue.prototype=new c).accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},ue.prototype.genCSS=function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},ue.prototype.getPath=function(){return this.path instanceof le?this.path.value.value:this.path.value},ue.prototype.isVariableImport=function(){var e=this.path
return e instanceof le&&(e=e.value),!(e instanceof oe)||e.containsVariables()},ue.prototype.evalForImport=function(e){var t=this.path
return t instanceof le&&(t=t.value),new ue(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},ue.prototype.evalPath=function(e){var t=this.path.eval(e),r=this._fileInfo
if(!(t instanceof le)){var i=t.value
r&&i&&e.pathRequiresRewrite(i)?t.value=e.rewritePath(i,r.rootpath):t.value=e.normalizePath(t.value)}return t},ue.prototype.eval=function(e){var t=this.doEval(e)
return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t},ue.prototype.doEval=function(e){var t,r,i=this.features&&this.features.eval(e)
if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new E(e,this.root.imports,this.root.filename)}return(r=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&r.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[]
if(this.options.inline){var n=new N(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0)
return this.features?new ce([n],this.features.value):[n]}if(this.css){var s=new ue(this.evalPath(e),i,this.options,this._index)
if(!s.css&&this.error)throw this.error
return s}return this.root?((t=new W(null,_(this.root.rules))).evalImports(e),this.features?new ce(t.rules,this.features.value):t.rules):[]},ue.prototype.type="Import"
var de=function(){};(de.prototype=new c).evaluateJavaScript=function(e,t){var r,i=this,n={}
if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()}
e=e.replace(/@\{([\w-]+)\}/g,(function(e,r){return i.jsify(new ne("@"+r,i.getIndex(),i.fileInfo()).eval(t))}))
try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var s=t.frames[0].variables()
for(var a in s)s.hasOwnProperty(a)&&(n[a.slice(1)]={value:s[a].value,toJS:function(){return this.value.eval(t).toCSS()}})
try{r=e.call(n)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return r},de.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map((function(e){return e.toCSS()})).join(", ")+"]":e.toCSS()}
var he=function(e,t,r,i){this.escaped=t,this.expression=e,this._index=r,this._fileInfo=i};(he.prototype=new de).eval=function(e){var t=this.evaluateJavaScript(this.expression,e),r=typeof t
return"number"!==r||isNaN(t)?"string"===r?new oe('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new N(t.join(", ")):new N(t):new J(t)},he.prototype.type="JavaScript"
var pe=function(e,t){this.key=e,this.value=t};(pe.prototype=new c).accept=function(e){this.value=e.visit(this.value)},pe.prototype.eval=function(e){return this.value.eval?new pe(this.key,this.value.eval(e)):this},pe.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},pe.prototype.type="Assignment"
var fe=function(e,t,r,i,n){this.op=e.trim(),this.lvalue=t,this.rvalue=r,this._index=i,this.negate=n};(fe.prototype=new c).accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},fe.prototype.eval=function(e){var t=function(e,t,r){switch(e){case"and":return t&&r
case"or":return t||r
default:switch(c.compare(t,r)){case-1:return"<"===e||"=<"===e||"<="===e
case 0:return"="===e||">="===e||"=<"===e||"<="===e
case 1:return">"===e||">="===e
default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e))
return this.negate?!t:t},fe.prototype.type="Condition"
var me=function(e){this.value=e};(me.prototype=new c).type="UnicodeDescriptor"
var ge=function(e){this.value=e};(ge.prototype=new c).genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},ge.prototype.eval=function(e){return e.isMathOn()?new Z("*",[new J(-1),this.value]).eval(e):new ge(this.value.eval(e))},ge.prototype.type="Negative"
var be=function(e,t,r,i,n){"all"===(this.selector=e,this.option=t,this.object_id=be.next_id++,this.parent_ids=[this.object_id],this._index=r,this._fileInfo=i,this.copyVisibilityInfo(n),this.allowRoot=!0,t)?(this.allowBefore=!0,this.allowAfter=!0):(this.allowBefore=!1,this.allowAfter=!1),this.setParent(this.selector,this)}
be.prototype=new c,be.prototype.accept=function(e){this.selector=e.visit(this.selector)},be.prototype.eval=function(e){return new be(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},be.prototype.clone=function(e){return new be(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},be.prototype.findSelfSelectors=function(e){var t,r,i=[]
for(t=0;t<e.length;t++)r=e[t].elements,t>0&&r.length&&""===r[0].combinator.value&&(r[0].combinator.value=" "),i=i.concat(e[t].elements)
this.selfSelectors=[new M(i)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},be.next_id=0,be.prototype.type="Extend"
var ye=function(e,t,r){this.variable=e,this._index=t,this._fileInfo=r,this.allowRoot=!0};(ye.prototype=new c).eval=function(e){var t,r=new ne(this.variable,this.getIndex(),this.fileInfo()).eval(e),i=new E({message:"Could not evaluate variable call "+this.variable})
if(!r.ruleset){if(r.rules)t=r
else if(Array.isArray(r))t=new W("",r)
else{if(!Array.isArray(r.value))throw i
t=new W("",r.value)}r=new K(t)}if(r.ruleset)return r.callEval(e)
throw i},ye.prototype.type="VariableCall"
var ve=function(e,t,r,i){this.value=e,this.lookups=t,this._index=r,this._fileInfo=i};(ve.prototype=new c).eval=function(e){var t,r,i=this.value.eval(e)
for(t=0;t<this.lookups.length;t++){if(r=this.lookups[t],Array.isArray(i)&&(i=new W([new M],i)),""===r)i=i.lastDeclaration()
else if("@"===r.charAt(0)){if("@"===r.charAt(1)&&(r="@"+new ne(r.substr(1)).eval(e).value),i.variables&&(i=i.variable(r)),!i)throw{type:"Name",message:"variable "+r+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(r="$@"===r.substring(0,2)?"$"+new ne(r.substr(1)).eval(e).value:"$"===r.charAt(0)?r:"$"+r,i.properties&&(i=i.property(r)),!i)throw{type:"Name",message:'property "'+r.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()}
i=i[i.length-1]}i.value&&(i=i.eval(e).value),i.ruleset&&(i=i.ruleset.eval(e))}return i},ve.prototype.type="NamespaceValue"
var we=function(e,t,r,i,n,s,a){this.name=e||"anonymous mixin",this.selectors=[new M([new g(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=i,this.variadic=n,this.arity=t.length,this.rules=r,this._lookups={}
var o=[]
this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(o.push(t.name),e)}),0),this.optionalParameters=o,this.frames=s,this.copyVisibilityInfo(a),this.allowRoot=!0};(we.prototype=new W).accept=function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},we.prototype.evalParams=function(e,t,r,i){var n,s,a,o,l,c,u,d,h=new W(null,null),p=_(this.params),f=0
if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(h.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new B.Eval(t,[h].concat(t.frames)),r)for(f=(r=_(r)).length,a=0;a<f;a++)if(c=(s=r[a])&&s.name){for(u=!1,o=0;o<p.length;o++)if(!i[o]&&c===p[o].name){i[o]=s.value.eval(e),h.prependRule(new D(c,s.value.eval(e))),u=!0
break}if(u){r.splice(a,1),a--
continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+r[a].name+" not found"}}for(d=0,a=0;a<p.length;a++)if(!i[a]){if(s=r&&r[d],c=p[a].name)if(p[a].variadic){for(n=[],o=d;o<f;o++)n.push(r[o].value.eval(e))
h.prependRule(new D(c,new te(n).eval(e)))}else{if(l=s&&s.value)l=Array.isArray(l)?new K(new W("",l)):l.eval(e)
else{if(!p[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+f+" for "+this.arity+")"}
l=p[a].value.eval(t),h.resetCache()}h.prependRule(new D(c,l)),i[a]=l}if(p[a].variadic&&r)for(o=d;o<f;o++)i[o]=r[o].value.eval(e)
d++}return h},we.prototype.makeImportant=function(){var e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules
return new we(this.name,this.params,e,this.condition,this.variadic,this.frames)},we.prototype.eval=function(e){return new we(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||_(e.frames))},we.prototype.evalCall=function(e,t,r){var i,n,s=[],a=this.frames?this.frames.concat(e.frames):e.frames,o=this.evalParams(e,new B.Eval(e,a),t,s)
return o.prependRule(new D("@arguments",new te(s).eval(e))),i=_(this.rules),(n=new W(null,i)).originalRuleset=this,n=n.eval(new B.Eval(e,[this,o].concat(a))),r&&(n=n.makeImportant()),n},we.prototype.matchCondition=function(e,t){return!(this.condition&&!this.condition.eval(new B.Eval(t,[this.evalParams(t,new B.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},we.prototype.matchArgs=function(e,t){var r,i=e&&e.length||0,n=this.optionalParameters,s=e?e.reduce((function(e,t){return n.indexOf(t.name)<0?e+1:e}),0):0
if(this.variadic){if(s<this.required-1)return!1}else{if(s<this.required)return!1
if(i>this.params.length)return!1}r=Math.min(s,this.arity)
for(var a=0;a<r;a++)if(!this.params[a].name&&!this.params[a].variadic&&e[a].value.eval(t).toCSS()!=this.params[a].value.eval(t).toCSS())return!1
return!0},we.prototype.type="MixinDefinition",we.prototype.evalFirst=!0
var xe=function(e,t,r,i,n){this.selector=new M(e),this.arguments=t||[],this._index=r,this._fileInfo=i,this.important=n,this.allowRoot=!0,this.setParent(this.selector,this)};(xe.prototype=new c).accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},xe.prototype.eval=function(e){var t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g=[],b=[],y=!1,v=[],w=[]
function x(t,r){var i,n,s
for(i=0;i<2;i++){for(w[i]=!0,G.value(i),n=0;n<r.length&&w[i];n++)(s=r[n]).matchCondition&&(w[i]=w[i]&&s.matchCondition(null,e))
t.matchCondition&&(w[i]=w[i]&&t.matchCondition(g,e))}return w[0]||w[1]?w[0]!=w[1]?w[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),a=0;a<this.arguments.length;a++)if(s=(n=this.arguments[a]).value.eval(e),n.expand&&Array.isArray(s.value))for(s=s.value,o=0;o<s.length;o++)g.push({value:s[o]})
else g.push({name:n.name,value:s})
for(m=function(t){return t.matchArgs(null,e)},a=0;a<e.frames.length;a++)if((t=e.frames[a].find(this.selector,null,m)).length>0){for(u=!0,o=0;o<t.length;o++){for(r=t[o].rule,i=t[o].path,c=!1,l=0;l<e.frames.length;l++)if(!(r instanceof we)&&r===(e.frames[l].originalRuleset||e.frames[l])){c=!0
break}c||r.matchArgs(g,e)&&(-1!==(d={mixin:r,group:x(r,i)}).group&&v.push(d),y=!0)}for(G.reset(),p=[0,0,0],o=0;o<v.length;o++)p[v[o].group]++
if(p[0]>0)h=2
else if(h=1,p[1]+p[2]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(g)+"`",index:this.getIndex(),filename:this.fileInfo().filename}
for(o=0;o<v.length;o++)if(0===(d=v[o].group)||d===h)try{(r=v[o].mixin)instanceof we||(f=r.originalRuleset||r,(r=new we("",[],r.rules,null,!1,null,f.visibilityInfo())).originalRuleset=f)
var _=r.evalCall(e,g,this.important).rules
this._setVisibilityToReplacement(_),Array.prototype.push.apply(b,_)}catch(e){throw{message:e.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:e.stack}}if(y)return b}throw u?{type:"Runtime",message:"No matching definition was found for `"+this.format(g)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},xe.prototype._setVisibilityToReplacement=function(e){var t
if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},xe.prototype.format=function(e){return this.selector.toCSS().trim()+"("+(e?e.map((function(e){var t=""
return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS():t+="???",t})).join(", "):"")+")"},xe.prototype.type="MixinCall"
var _e={Node:c,Color:u,AtRule:X,DetachedRuleset:K,Operation:Z,Dimension:J,Unit:Y,Keyword:F,Variable:ne,Property:se,Ruleset:W,Element:g,Attribute:ae,Combinator:m,Selector:M,Quoted:oe,Expression:te,Declaration:D,Call:ie,URL:le,Import:ue,Comment:L,Anonymous:N,Value:I,JavaScript:he,Assignment:pe,Condition:fe,Paren:p,Media:ce,UnicodeDescriptor:me,Negative:ge,Extend:be,VariableCall:ye,NamespaceValue:ve,mixin:{Call:xe,Definition:we}},Se={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var r=0;r<this._listeners.length;r++){var i=this._listeners[r][e]
i&&i(t)}},_listeners:[]},ke=function(){function e(e,t){this.fileManagers=t||[],e=e||{}
for(var r=[],i=r.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),n=0;n<i.length;n++){var s=i[n],a=e[s]
a?this[s]=a.bind(e):n<r.length&&this.warn("missing required function in environment - "+s)}}return e.prototype.getFileManager=function(e,t,r,i,n){e||Se.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&Se.warn("getFileManager called with null directory.. Please report this issue. continuing.")
var s=this.fileManagers
r.pluginManager&&(s=[].concat(s).concat(r.pluginManager.getFileManagers()))
for(var a=s.length-1;a>=0;a--){var o=s[a]
if(o[n?"supportsSync":"supports"](e,t,r,i))return o}return null},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),Ae=function(){function e(){}return e.prototype.getPath=function(e){var t=e.lastIndexOf("?")
return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},e.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},e.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},e.prototype.join=function(e,t){return e?e+t:t},e.prototype.pathDiff=function(e,t){var r,i,n,s,a=this.extractUrlParts(e),o=this.extractUrlParts(t),l=""
if(a.hostPart!==o.hostPart)return""
for(i=Math.max(o.directories.length,a.directories.length),r=0;r<i&&o.directories[r]===a.directories[r];r++);for(s=o.directories.slice(r),n=a.directories.slice(r),r=0;r<s.length-1;r++)l+="../"
for(r=0;r<n.length-1;r++)l+=n[r]+"/"
return l},e.prototype.extractUrlParts=function(e,t){var r,i,n=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=e.match(n),a={},o=[],l=[]
if(!s)throw new Error("Could not parse sheet href - '"+e+"'")
if(t&&(!s[1]||s[2])){if(!(i=t.match(n)))throw new Error("Could not parse page url - '"+t+"'")
s[1]=s[1]||i[1]||"",s[2]||(s[3]=i[3]+s[3])}if(s[3])for(o=s[3].replace(/\\/g,"/").split("/"),r=0;r<o.length;r++)".."===o[r]?l.pop():"."!==o[r]&&l.push(o[r])
return a.hostPart=s[1],a.directories=l,a.rawPath=(s[1]||"")+o.join("/"),a.path=(s[1]||"")+l.join("/"),a.filename=s[4],a.fileUrl=a.path+(s[4]||""),a.url=a.fileUrl+(s[5]||""),a},e}(),Ce=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(e,t,r,i,n){var s,a,o,l,c,u
l=t.pluginManager,n&&(c="string"==typeof n?n:n.filename)
var d=(new this.less.FileManager).extractUrlParts(c).filename
if(c&&(a=l.get(c))){if(u=this.trySetOptions(a,c,d,i))return u
try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new E(e,r,c)}return a}o={exports:{},pluginManager:l,fileInfo:n},s=V.create()
try{new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(o,this.require(c),(function(e){a=e}),s,this.less.tree,this.less,n)}catch(e){return new E(e,r,c)}if(a||(a=o.exports),(a=this.validatePlugin(a,c,d))instanceof E)return a
if(!a)return new E({message:"Not a valid plugin"},r,c)
if(a.imports=r,a.filename=c,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(u=this.trySetOptions(a,c,d,i)))return u
if(l.addPlugin(a,n.filename,s),a.functions=s.getLocalFunctions(),u=this.trySetOptions(a,c,d,i))return u
try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new E(e,r,c)}return a},e.prototype.trySetOptions=function(e,t,r,i){if(i&&!e.setOptions)return new E({message:"Options have been provided but the plugin "+r+" does not support any options."})
try{e.setOptions&&e.setOptions(i)}catch(e){return new E(e)}},e.prototype.validatePlugin=function(e,t,r){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new E({message:"Plugin "+r+" requires version "+this.versionToString(e.minVersion)}):e):null},e.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift()
for(var r=0;r<e.length;r++)if(e[r]!==t[r])return parseInt(e[r])>parseInt(t[r])?-1:1
return 0},e.prototype.versionToString=function(e){for(var t="",r=0;r<e.length;r++)t+=(t?".":"")+e[r]
return t},e.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var r=e[t]
r.printUsage&&r.printUsage()}},e}(),Pe={visitDeeper:!0},Oe=!1
function Ee(e){return e}var Te=function(){function e(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},Oe||(function e(t,r){var i,n
for(i in t)switch(typeof(n=t[i])){case"function":n.prototype&&n.prototype.type&&(n.prototype.typeIndex=r++)
break
case"object":r=e(n,r)}return r}(_e,1),Oe=!0)}return e.prototype.visit=function(e){if(!e)return e
var t=e.typeIndex
if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e
var r,i=this._implementation,n=this._visitInCache[t],s=this._visitOutCache[t],a=Pe
if(a.visitDeeper=!0,n||(n=i[r="visit"+e.type]||Ee,s=i[r+"Out"]||Ee,this._visitInCache[t]=n,this._visitOutCache[t]=s),n!==Ee){var o=n.call(i,e,a)
e&&i.isReplacing&&(e=o)}if(a.visitDeeper&&e)if(e.length)for(var l=0,c=e.length;l<c;l++)e[l].accept&&e[l].accept(this)
else e.accept&&e.accept(this)
return s!=Ee&&s.call(i,e),e},e.prototype.visitArray=function(e,t){if(!e)return e
var r,i=e.length
if(t||!this._implementation.isReplacing){for(r=0;r<i;r++)this.visit(e[r])
return e}var n=[]
for(r=0;r<i;r++){var s=this.visit(e[r])
void 0!==s&&(s.splice?s.length&&this.flatten(s,n):n.push(s))}return n},e.prototype.flatten=function(e,t){var r,i,n,s,a,o
for(t||(t=[]),i=0,r=e.length;i<r;i++)if(void 0!==(n=e[i]))if(n.splice)for(a=0,s=n.length;a<s;a++)void 0!==(o=n[a])&&(o.splice?o.length&&this.flatten(o,t):t.push(o))
else t.push(n)
return t},e}(),Me=function(){function e(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}return e.prototype.addImport=function(e){var t=this,r={callback:e,args:null,isReady:!1}
return this.imports.push(r),function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i]
r.args=Array.prototype.slice.call(e,0),r.isReady=!0,t.tryRun()}},e.prototype.addVariableImport=function(e){this.variableImports.push(e)},e.prototype.tryRun=function(){this._currentDepth++
try{for(;;){for(;this.imports.length>0;){var e=this.imports[0]
if(!e.isReady)return
this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break
var t=this.variableImports[0]
this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),Ie=function(e,t){this._visitor=new Te(this),this._importer=e,this._finish=t,this.context=new B.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new Me(this._onSequencerEmpty.bind(this))}
Ie.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var r=e.options.inline
if(!e.css||r){var i=new B.Eval(this.context,_(this.context.frames)),n=i.frames[0]
this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,i,n)):this.processImportNode(e,i,n)}t.visitDeeper=!1},processImportNode:function(e,t,r){var i,n=e.options.inline
try{i=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!i||i.css&&!n)this.importCount--,this.isFinished&&this._sequencer.tryRun()
else{i.options.multiple&&(t.importMultiple=!0)
for(var s=void 0===i.css,a=0;a<r.rules.length;a++)if(r.rules[a]===e){r.rules[a]=i
break}var o=this.onImported.bind(this,i,t),l=this._sequencer.addImport(o)
this._importer.push(i.getPath(),s,i.fileInfo(),i.options,l)}},onImported:function(e,t,r,i,n,s){r&&(r.filename||(r.index=e.getIndex(),r.filename=e.fileInfo().filename),this.error=r)
var a=this,o=e.options.inline,l=e.options.isPlugin,c=e.options.optional,u=n||s in a.recursionDetector
if(t.importMultiple||(e.skip=!!u||function(){return s in a.onceFileDetectionMap||(a.onceFileDetectionMap[s]=!0,!1)}),!s&&c&&(e.skip=!0),i&&(e.root=i,e.importedFilename=s,!o&&!l&&(t.importMultiple||!u))){a.recursionDetector[s]=!0
var d=this.context
this.context=t
try{this._visitor.visit(i)}catch(r){this.error=r}this.context=d}a.importCount--,a.isFinished&&a._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}}
var Fe=function(){function e(e){this.visible=e}return e.prototype.run=function(e){this.visit(e)},e.prototype.visitArray=function(e){if(!e)return e
var t,r=e.length
for(t=0;t<r;t++)this.visit(e[t])
return e},e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},e}(),Ne=function(){function e(){this._visitor=new Te(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var r,i,n,s,a=[],o=e.rules,l=o?o.length:0
for(r=0;r<l;r++)e.rules[r]instanceof _e.Extend&&(a.push(o[r]),e.extendOnEveryPath=!0)
var c=e.paths
for(r=0;r<c.length;r++){var u=c[r],d=u[u.length-1].extendList
for((s=d?_(d).concat(a):a)&&(s=s.map((function(e){return e.clone()}))),i=0;i<s.length;i++)this.foundExtends=!0,(n=s[i]).findSelfSelectors(u),n.ruleset=e,0===i&&(n.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(n)}this.contexts.push(e.selectors)}},e.prototype.visitRulesetOut=function(e){e.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitMediaOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitAtRuleOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),Re=function(){function e(){this._visitor=new Te(this)}return e.prototype.run=function(e){var t=new Ne
if(this.extendIndices={},t.run(e),!t.foundExtends)return e
e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends]
var r=this._visitor.visit(e)
return this.checkExtendsForNonMatched(e.allExtends),r},e.prototype.checkExtendsForNonMatched=function(e){var t=this.extendIndices
e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){var r="_unknown_"
try{r=e.selector.toCSS({})}catch(e){}t[e.index+" "+r]||(t[e.index+" "+r]=!0,Se.warn("extend '"+r+"' has no matches"))}))},e.prototype.doExtendChaining=function(e,t,r){var i,n,s,a,o,l,c,u,d=[],h=this
for(r=r||0,i=0;i<e.length;i++)for(n=0;n<t.length;n++)l=e[i],c=t[n],l.parent_ids.indexOf(c.object_id)>=0||(o=[c.selfSelectors[0]],(s=h.findMatch(l,o)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach((function(e){var t=c.visibilityInfo()
a=h.extendSelector(s,o,e,l.isVisible()),(u=new _e.Extend(c.selector,c.option,0,c.fileInfo(),t)).selfSelectors=a,a[a.length-1].extendList=[u],d.push(u),u.ruleset=c.ruleset,u.parent_ids=u.parent_ids.concat(c.parent_ids,l.parent_ids),c.firstExtendOnThisSelectorPath&&(u.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))}))))
if(d.length){if(this.extendChainCount++,r>100){var p="{unable to calculate}",f="{unable to calculate}"
try{p=d[0].selfSelectors[0].toCSS(),f=d[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+p+":extend("+f+")"}}return d.concat(h.doExtendChaining(d,t,r+1))}return d},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitSelector=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var r,i,n,s,a=this.allExtendsStack[this.allExtendsStack.length-1],o=[],l=this
for(n=0;n<a.length;n++)for(i=0;i<e.paths.length;i++)if(s=e.paths[i],!e.extendOnEveryPath){var c=s[s.length-1].extendList
c&&c.length||(r=this.findMatch(a[n],s)).length&&(a[n].hasFoundMatches=!0,a[n].selfSelectors.forEach((function(e){var t
t=l.extendSelector(r,s,e,a[n].isVisible()),o.push(t)})))}e.paths=e.paths.concat(o)}},e.prototype.findMatch=function(e,t){var r,i,n,s,a,o,l,c=e.selector.elements,u=[],d=[]
for(r=0;r<t.length;r++)for(i=t[r],n=0;n<i.elements.length;n++)for(s=i.elements[n],(e.allowBefore||0===r&&0===n)&&u.push({pathIndex:r,index:n,matched:0,initialCombinator:s.combinator}),o=0;o<u.length;o++)l=u[o],""===(a=s.combinator.value)&&0===n&&(a=" "),!this.isElementValuesEqual(c[l.matched].value,s.value)||l.matched>0&&c[l.matched].combinator.value!==a?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(n+1<i.elements.length||r+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=r,l.endPathElementIndex=n+1,u.length=0,d.push(l)):(u.splice(o,1),o--)
return d},e.prototype.isElementValuesEqual=function(e,t){if("string"==typeof e||"string"==typeof t)return e===t
if(e instanceof _e.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value)
if(e=e.value,t=t.value,e instanceof _e.Selector){if(!(t instanceof _e.Selector)||e.elements.length!==t.elements.length)return!1
for(var r=0;r<e.elements.length;r++){if(e.elements[r].combinator.value!==t.elements[r].combinator.value&&(0!==r||(e.elements[r].combinator.value||" ")!==(t.elements[r].combinator.value||" ")))return!1
if(!this.isElementValuesEqual(e.elements[r].value,t.elements[r].value))return!1}return!0}return!1},e.prototype.extendSelector=function(e,t,r,i){var n,s,a,o,l,c=0,u=0,d=[]
for(n=0;n<e.length;n++)s=t[(o=e[n]).pathIndex],a=new _e.Element(o.initialCombinator,r.elements[0].value,r.elements[0].isVariable,r.elements[0].getIndex(),r.elements[0].fileInfo()),o.pathIndex>c&&u>0&&(d[d.length-1].elements=d[d.length-1].elements.concat(t[c].elements.slice(u)),u=0,c++),l=s.elements.slice(u,o.index).concat([a]).concat(r.elements.slice(1)),c===o.pathIndex&&n>0?d[d.length-1].elements=d[d.length-1].elements.concat(l):(d=d.concat(t.slice(c,o.pathIndex))).push(new _e.Selector(l)),c=o.endPathIndex,(u=o.endPathElementIndex)>=t[c].elements.length&&(u=0,c++)
return c<t.length&&u>0&&(d[d.length-1].elements=d[d.length-1].elements.concat(t[c].elements.slice(u)),c++),(d=d.concat(t.slice(c,t.length))).map((function(e){var t=e.createDerived(e.elements)
return i?t.ensureVisibility():t.ensureInvisibility(),t}))},e.prototype.visitMedia=function(e,t){var r=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1])
r=r.concat(this.doExtendChaining(r,e.allExtends)),this.allExtendsStack.push(r)},e.prototype.visitMediaOut=function(e){var t=this.allExtendsStack.length-1
this.allExtendsStack.length=t},e.prototype.visitAtRule=function(e,t){var r=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1])
r=r.concat(this.doExtendChaining(r,e.allExtends)),this.allExtendsStack.push(r)},e.prototype.visitAtRuleOut=function(e){var t=this.allExtendsStack.length-1
this.allExtendsStack.length=t},e}(),De=function(){function e(){this.contexts=[[]],this._visitor=new Te(this)}return e.prototype.run=function(e){return this._visitor.visit(e)},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){var r,i=this.contexts[this.contexts.length-1],n=[]
this.contexts.push(n),e.root||((r=e.selectors)&&(r=r.filter((function(e){return e.getIsOutput()})),e.selectors=r.length?r:r=null,r&&e.joinSelectors(n,i,r)),r||(e.rules=null),e.paths=n)},e.prototype.visitRulesetOut=function(e){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(e,t){var r=this.contexts[this.contexts.length-1]
e.rules[0].root=0===r.length||r[0].multiMedia},e.prototype.visitAtRule=function(e,t){var r=this.contexts[this.contexts.length-1]
e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===r.length||null)},e}(),je=function(){function e(e){this._visitor=new Te(this),this._context=e}return e.prototype.containsSilentNonBlockedChild=function(e){var t
if(!e)return!1
for(var r=0;r<e.length;r++)if((t=e[r]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0
return!1},e.prototype.keepOnlyVisibleChilds=function(e){e&&e.rules&&(e.rules=e.rules.filter((function(e){return e.isVisible()})))},e.prototype.isEmpty=function(e){return!e||!e.rules||0===e.rules.length},e.prototype.hasVisibleSelector=function(e){return!(!e||!e.paths)&&e.paths.length>0},e.prototype.resolveVisibility=function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return
return e}var r=e.rules[0]
if(this.keepOnlyVisibleChilds(r),!this.isEmpty(r))return e.ensureVisibility(),e.removeVisibilityBlock(),e},e.prototype.isVisibleRuleset=function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))},e}(),Le=function(e){this._visitor=new Te(this),this._context=e,this.utils=new je(e)}
Le.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var r=e.rules[0].rules
return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,r)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var r=function(e){var t=e.rules
return function(e){var t=e.rules
return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e)
return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,r)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var r=new _e.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n")
return r.debugInfo=e.debugInfo,this._visitor.visit(r)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var r=0;r<e.length;r++){var i=e[r]
if(t&&i instanceof _e.Declaration&&!i.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}
if(i instanceof _e.Call)throw{message:"Function '"+i.name+"' is undefined",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}
if(i.type&&!i.allowRoot)throw{message:i.type+" node returned by a function is not valid here",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}}},visitRuleset:function(e,t){var r,i=[]
if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1
else{this._compileRulesetPaths(e)
for(var n=e.rules,s=n?n.length:0,a=0;a<s;)(r=n[a])&&r.rules?(i.push(this._visitor.visit(r)),n.splice(a,1),s--):a++
s>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),i.splice(0,0,e)),1===i.length?i[0]:i},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter((function(e){var t
for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new _e.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0
return!1})))},_removeDuplicateRules:function(e){if(e){var t,r,i,n={}
for(i=e.length-1;i>=0;i--)if((r=e[i])instanceof _e.Declaration)if(n[r.name]){(t=n[r.name])instanceof _e.Declaration&&(t=n[r.name]=[n[r.name].toCSS(this._context)])
var s=r.toCSS(this._context);-1!==t.indexOf(s)?e.splice(i,1):t.push(s)}else n[r.name]=r}},_mergeRules:function(e){if(e){for(var t={},r=[],i=0;i<e.length;i++){var n=e[i]
if(n.merge){var s=n.name
t[s]?e.splice(i--,1):r.push(t[s]=[]),t[s].push(n)}}r.forEach((function(e){if(e.length>0){var t=e[0],r=[],i=[new _e.Expression(r)]
e.forEach((function(e){"+"===e.merge&&r.length>0&&i.push(new _e.Expression(r=[])),r.push(e.value),t.important=t.important||e.important})),t.value=new _e.Value(i)}}))}}}
var Be={Visitor:Te,ImportVisitor:Ie,MarkVisibleSelectorsVisitor:Fe,ExtendVisitor:Re,JoinSelectorVisitor:De,ToCSSVisitor:Le},$e=function e(t,r,i){var n,s=function(){var e,t,r,i,n,s,a,o=[],l={}
function c(r){for(var i,o,u,d=l.i,h=t,p=l.i-a,f=l.i+s.length-p,m=l.i+=r,g=e;l.i<f;l.i++){if(i=g.charCodeAt(l.i),l.autoCommentAbsorb&&47===i){if("/"===(o=g.charAt(l.i+1))){u={index:l.i,isLineComment:!0}
var b=g.indexOf("\n",l.i+2)
b<0&&(b=f),l.i=b,u.text=g.substr(u.index,l.i-u.index),l.commentStore.push(u)
continue}if("*"===o){var y=g.indexOf("*/",l.i+2)
if(y>=0){u={index:l.i,text:g.substr(l.i,y+2-l.i),isLineComment:!1},l.i+=u.text.length-1,l.commentStore.push(u)
continue}}break}if(32!==i&&10!==i&&9!==i&&13!==i)break}if(s=s.slice(r+l.i-m+p),a=l.i,!s.length){if(t<n.length-1)return s=n[++t],c(0),!0
l.finished=!0}return d!==l.i||h!==t}return l.save=function(){a=l.i,o.push({current:s,i:l.i,j:t})},l.restore=function(e){(l.i>r||l.i===r&&e&&!i)&&(r=l.i,i=e)
var n=o.pop()
s=n.current,a=l.i=n.i,t=n.j},l.forget=function(){o.pop()},l.isWhitespace=function(t){var r=l.i+(t||0),i=e.charCodeAt(r)
return 32===i||13===i||9===i||10===i},l.$re=function(e){l.i>a&&(s=s.slice(l.i-a),a=l.i)
var t=e.exec(s)
return t?(c(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(c(1),t)},l.$str=function(t){for(var r=t.length,i=0;i<r;i++)if(e.charAt(l.i+i)!==t.charAt(i))return null
return c(r),t},l.$quoted=function(t){var r=t||l.i,i=e.charAt(r)
if("'"===i||'"'===i){for(var n=e.length,s=r,a=1;a+s<n;a++)switch(e.charAt(a+s)){case"\\":a++
continue
case"\r":case"\n":break
case i:var o=e.substr(s,a+1)
return t||0===t?[i,o]:(c(a+1),o)}return null}},l.$parseUntil=function(t){var r,i="",n=null,s=!1,a=0,o=[],u=[],d=e.length,h=l.i,p=l.i,f=l.i,m=!0
r="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)}
do{var g=e.charAt(f)
if(0===a&&r(g))(n=e.substr(p,f-p))?u.push(n):u.push(" "),n=u,c(f-h),m=!1
else{if(s){"*"===g&&"/"===e.charAt(f+1)&&(f++,a--,s=!1),f++
continue}switch(g){case"\\":f++,g=e.charAt(f),u.push(e.substr(p,f-p+1)),p=f+1
break
case"/":"*"===e.charAt(f+1)&&(f++,s=!0,a++)
break
case"'":case'"':(i=l.$quoted(f))?(u.push(e.substr(p,f-p),i),p=(f+=i[1].length-1)+1):(c(f-h),n=g,m=!1)
break
case"{":o.push("}"),a++
break
case"(":o.push(")"),a++
break
case"[":o.push("]"),a++
break
case"}":case")":case"]":var b=o.pop()
g===b?a--:(c(f-h),n=b,m=!1)}++f>d&&(m=!1)}}while(m)
return n||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var r=0;r<t.length;r++)if(e.charAt(l.i+r)!==t.charAt(r))return!1
return!0}return t.test(s)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i)
return t>57||t<43||47===t||44===t},l.start=function(i,o,u){e=i,l.i=t=a=r=0,n=o?function(e,t){var r,i,n,s,a,o,l,c,u,d=e.length,h=0,p=0,f=[],m=0
function g(t){var r=a-m
r<512&&!t||!r||(f.push(e.slice(m,a+1)),m=a+1)}for(a=0;a<d;a++)if(!((l=e.charCodeAt(a))>=97&&l<=122||l<34))switch(l){case 40:p++,i=a
continue
case 41:if(--p<0)return t("missing opening `(`",a)
continue
case 59:p||g()
continue
case 123:h++,r=a
continue
case 125:if(--h<0)return t("missing opening `{`",a)
h||p||g()
continue
case 92:if(a<d-1){a++
continue}return t("unescaped `\\`",a)
case 34:case 39:case 96:for(u=0,o=a,a+=1;a<d;a++)if(!((c=e.charCodeAt(a))>96)){if(c==l){u=1
break}if(92==c){if(a==d-1)return t("unescaped `\\`",a)
a++}}if(u)continue
return t("unmatched `"+String.fromCharCode(l)+"`",o)
case 47:if(p||a==d-1)continue
if(47==(c=e.charCodeAt(a+1)))for(a+=2;a<d&&(!((c=e.charCodeAt(a))<=13)||10!=c&&13!=c);a++);else if(42==c){for(n=o=a,a+=2;a<d-1&&(125==(c=e.charCodeAt(a))&&(s=a),42!=c||47!=e.charCodeAt(a+1));a++);if(a==d-1)return t("missing closing `*/`",o)
a++}continue
case 42:if(a<d-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a)
continue}return 0!==h?t(n>r&&s>n?"missing closing `}` or `*/`":"missing closing `}`",r):0!==p?t("missing closing `)`",i):(g(!0),f)}(i,u):[i],s=n[0],c(0)},l.end=function(){var t,n=l.i>=e.length
return l.i<r&&(t=i,l.i=r),{isFinished:n,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l}()
function a(e,t){throw new E({index:s.i,filename:i.filename,type:t||"Syntax",message:e},r)}function o(e,t){var r=e instanceof Function?e.call(n):s.$re(e)
if(r)return r
a(t||("string"==typeof e?"expected '"+e+"' got '"+s.currentChar()+"'":"unexpected token"))}function l(e,t){if(s.$char(e))return e
a(t||"expected '"+e+"' got '"+s.currentChar()+"'")}function c(e){var t=i.filename
return{lineNumber:x(e,s.getInput()).line+1,fileName:t}}return{parserInput:s,imports:r,fileInfo:i,parseNode:function(e,t,i,a,o){var l,c=[],u=s
try{u.start(e,!1,(function(e,t){o({message:e,index:t+i})}))
for(var d=0,h=void 0,p=void 0;h=t[d];d++)if(p=u.i,l=n[h]()){try{l._index=p+i,l._fileInfo=a}catch(e){}c.push(l)}else c.push(null)
u.end().isFinished?o(null,c):o(!0,null)}catch(e){throw new E({index:e.index+i,message:e.message},r,a.filename)}},parse:function(n,a,o){var l,c,u,d,h=null,p=""
if(c=o&&o.globalVars?e.serializeVars(o.globalVars)+"\n":"",u=o&&o.modifyVars?"\n"+e.serializeVars(o.modifyVars):"",t.pluginManager)for(var f=t.pluginManager.getPreProcessors(),m=0;m<f.length;m++)n=f[m].process(n,{context:t,imports:r,fileInfo:i});(c||o&&o.banner)&&(p=(o&&o.banner?o.banner:"")+c,(d=r.contentsIgnoredChars)[i.filename]=d[i.filename]||0,d[i.filename]+=p.length),n=p+(n=n.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+u,r.contents[i.filename]=n
try{s.start(n,t.chunkInput,(function(e,t){throw new E({index:t,type:"Parse",message:e,filename:i.filename},r)})),_e.Node.prototype.parse=this,l=new _e.Ruleset(null,this.parsers.primary()),_e.Node.prototype.rootNode=l,l.root=!0,l.firstRoot=!0,l.functionRegistry=V.inherit()}catch(e){return a(new E(e,r,i.filename))}var g=s.end()
if(!g.isFinished){var b=g.furthestPossibleErrorMessage
b||(b="Unrecognised input","}"===g.furthestChar?b+=". Possibly missing opening '{'":")"===g.furthestChar?b+=". Possibly missing opening '('":g.furthestReachedEnd&&(b+=". Possibly missing something")),h=new E({type:"Parse",message:b,index:g.furthest,filename:i.filename},r)}var y=function(e){return(e=h||e||r.error)?(e instanceof E||(e=new E(e,r,i.filename)),a(e)):a(null,l)}
if(!1===t.processImports)return y()
new Be.ImportVisitor(r,y).run(l)},parsers:n={primary:function(){for(var e,t=this.mixin,r=[];;){for(;e=this.comment();)r.push(e)
if(s.finished)break
if(s.peek("}"))break
if(e=this.extendRule())r=r.concat(e)
else if(e=t.definition()||this.declaration()||t.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule())r.push(e)
else{for(var i=!1;s.$char(";");)i=!0
if(!i)break}}return r},comment:function(){if(s.commentStore.length){var e=s.commentStore.shift()
return new _e.Comment(e.text,e.isLineComment,e.index,i)}},entities:{mixinLookup:function(){return n.mixin.call(!0,!0)},quoted:function(e){var t,r=s.i,n=!1
if(s.save(),s.$char("~"))n=!0
else if(e)return void s.restore()
if(t=s.$quoted())return s.forget(),new _e.Quoted(t.charAt(0),t.substr(1,t.length-2),n,r,i)
s.restore()},keyword:function(){var e=s.$char("%")||s.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/)
if(e)return _e.Color.fromKeyword(e)||new _e.Keyword(e)},call:function(){var e,t,r,n=s.i
if(!s.peek(/^url\(/i))if(s.save(),e=s.$re(/^([\w-]+|%|progid:[\w\.]+)\(/)){if(e=e[1],(r=this.customFuncCall(e))&&(t=r.parse())&&r.stop)return s.forget(),t
if(t=this.arguments(t),s.$char(")"))return s.forget(),new _e.Call(e,t,n,i)
s.restore("Could not parse call arguments or missing ')'")}else s.forget()},customFuncCall:function(e){return{alpha:t(n.ieAlpha,!0),boolean:t(r),if:t(r)}[e.toLowerCase()]
function t(e,t){return{parse:e,stop:t}}function r(){return[o(n.condition,"expected condition")]}},arguments:function(e){var t,r,i=e||[],a=[]
for(s.save();;){if(e)e=!1
else{if(!(r=n.detachedRuleset()||this.assignment()||n.expression()))break
r.value&&1==r.value.length&&(r=r.value[0]),i.push(r)}s.$char(",")||(s.$char(";")||t)&&(t=!0,r=i.length<1?i[0]:new _e.Value(i),a.push(r),i=[])}return s.forget(),t?a:i},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t
if(s.save(),e=s.$re(/^\w+(?=\s?=)/i))if(s.$char("=")){if(t=n.entity())return s.forget(),new _e.Assignment(e,t)
s.restore()}else s.restore()
else s.restore()},url:function(){var e,t=s.i
if(s.autoCommentAbsorb=!1,s.$str("url("))return e=this.quoted()||this.variable()||this.property()||s.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",s.autoCommentAbsorb=!0,l(")"),new _e.URL(null!=e.value||e instanceof _e.Variable||e instanceof _e.Property?e:new _e.Anonymous(e,t),t,i)
s.autoCommentAbsorb=!0},variable:function(){var e,t,r=s.i
if(s.save(),"@"===s.currentChar()&&(t=s.$re(/^@@?[\w-]+/))){if("("===(e=s.currentChar())||"["===e&&!s.prevChar().match(/^\s/)){var a=n.variableCall(t)
if(a)return s.forget(),a}return s.forget(),new _e.Variable(t,r,i)}s.restore()},variableCurly:function(){var e,t=s.i
if("@"===s.currentChar()&&(e=s.$re(/^@\{([\w-]+)\}/)))return new _e.Variable("@"+e[1],t,i)},property:function(){var e,t=s.i
if("$"===s.currentChar()&&(e=s.$re(/^\$[\w-]+/)))return new _e.Property(e,t,i)},propertyCurly:function(){var e,t=s.i
if("$"===s.currentChar()&&(e=s.$re(/^\$\{([\w-]+)\}/)))return new _e.Property("$"+e[1],t,i)},color:function(){var e
if(s.save(),"#"===s.currentChar()&&(e=s.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#\[])?/))&&!e[2])return s.forget(),new _e.Color(e[1],void 0,e[0])
s.restore()},colorKeyword:function(){s.save()
var e=s.autoCommentAbsorb
s.autoCommentAbsorb=!1
var t=s.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/)
if(s.autoCommentAbsorb=e,t){s.restore()
var r=_e.Color.fromKeyword(t)
return r?(s.$str(t),r):void 0}s.forget()},dimension:function(){if(!s.peekNotNumeric()){var e=s.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i)
return e?new _e.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e
if(e=s.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new _e.UnicodeDescriptor(e[0])},javascript:function(){var e,t=s.i
s.save()
var r=s.$char("~")
if(s.$char("`")){if(e=s.$re(/^[^`]*`/))return s.forget(),new _e.JavaScript(e.substr(0,e.length-1),Boolean(r),t,i)
s.restore("invalid javascript definition")}else s.restore()}},variable:function(){var e
if("@"===s.currentChar()&&(e=s.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){var t,r=s.i,a=!!e,o=e
if(s.save(),o||"@"===s.currentChar()&&(o=s.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(a&&"()"!==s.$str("()")||"()"!==o[2]))return void s.restore("Missing '[...]' lookup in variable call")
a||(o=o[1])
var l=new _e.VariableCall(o,r,i)
return!a&&n.end()?(s.forget(),l):(s.forget(),new _e.NamespaceValue(l,t,r,i))}s.restore()},extend:function(e){var t,r,n,l,c,u=s.i
if(s.$str(e?"&:extend(":":extend(")){do{for(n=null,t=null;!(n=s.$re(/^(all)(?=\s*(\)|,))/))&&(r=this.element());)t?t.push(r):t=[r]
n=n&&n[1],t||a("Missing target selector for :extend()."),c=new _e.Extend(new _e.Selector(t),n,u,i),l?l.push(c):l=[c]}while(s.$char(","))
return o(/^\)/),e&&o(/^;/),l}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var r,a,o,c,u=s.currentChar(),d=!1,h=s.i
if("."===u||"#"===u){if(s.save(),a=this.elements()){if(s.$char("(")&&(o=this.args(!0).args,l(")"),c=!0),!1!==t&&(r=this.ruleLookups()),!0===t&&!r)return void s.restore()
if(e&&!r&&!c)return void s.restore()
if(!e&&n.important()&&(d=!0),e||n.end()){s.forget()
var p=new _e.mixin.Call(a,o,h,i,!r&&d)
return r?new _e.NamespaceValue(p,r):p}}s.restore()}},elements:function(){for(var e,t,r,n,a,o=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;a=s.i,t=s.$re(o);)n=new _e.Element(r,t,!1,a,i),e?e.push(n):e=[n],r=s.$char(">")
return e},args:function(e){var t,r,i,o,l,c,u,d=n.entities,h={args:null,variadic:!1},p=[],f=[],m=[],g=!0
for(s.save();;){if(e)c=n.detachedRuleset()||n.expression()
else{if(s.commentStore.length=0,s.$str("...")){h.variadic=!0,s.$char(";")&&!t&&(t=!0),(t?f:m).push({variadic:!0})
break}c=d.variable()||d.property()||d.literal()||d.keyword()||this.call(!0)}if(!c||!g)break
o=null,c.throwAwayComments&&c.throwAwayComments(),l=c
var b=null
if(e?c.value&&1==c.value.length&&(b=c.value[0]):b=c,b&&(b instanceof _e.Variable||b instanceof _e.Property))if(s.$char(":")){if(p.length>0&&(t&&a("Cannot mix ; and , as delimiter types"),r=!0),!(l=n.detachedRuleset()||n.expression())){if(!e)return s.restore(),h.args=[],h
a("could not understand value for named argument")}o=i=b.name}else if(s.$str("...")){if(!e){h.variadic=!0,s.$char(";")&&!t&&(t=!0),(t?f:m).push({name:c.name,variadic:!0})
break}u=!0}else e||(i=o=b.name,l=null)
l&&p.push(l),m.push({name:o,value:l,expand:u}),s.$char(",")?g=!0:((g=";"===s.$char(";"))||t)&&(r&&a("Cannot mix ; and , as delimiter types"),t=!0,p.length>1&&(l=new _e.Value(p)),f.push({name:i,value:l,expand:u}),i=null,p=[],r=!1)}return s.forget(),h.args=t?f:m,h},definition:function(){var e,t,r,i,a=[],l=!1
if(!("."!==s.currentChar()&&"#"!==s.currentChar()||s.peek(/^[^{]*\}/)))if(s.save(),t=s.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1]
var c=this.args(!1)
if(a=c.args,l=c.variadic,!s.$char(")"))return void s.restore("Missing closing ')'")
if(s.commentStore.length=0,s.$str("when")&&(i=o(n.conditions,"expected condition")),r=n.block())return s.forget(),new _e.mixin.Definition(e,a,r,i,l)
s.restore()}else s.restore()},ruleLookups:function(){var e,t=[]
if("["===s.currentChar()){for(;;){if(s.save(),!(e=this.lookupValue())&&""!==e){s.restore()
break}t.push(e),s.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(s.save(),s.$char("[")){var e=s.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/)
if(s.$char("]"))return e||""===e?(s.forget(),e):void s.restore()
s.restore()}else s.restore()}},entity:function(){var e=this.entities
return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return s.$char(";")||s.peek("}")},ieAlpha:function(){var e
if(s.$re(/^opacity=/i))return(e=s.$re(/^\d+/))||(e="@{"+(e=o(n.entities.variable,"Could not parse alpha")).name.slice(1)+"}"),l(")"),new _e.Quoted("","alpha(opacity="+e+")")},element:function(){var e,t,r,n=s.i
if(t=this.combinator(),(e=s.$re(/^(?:\d+\.\d+|\d+)%/)||s.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||s.$char("*")||s.$char("&")||this.attribute()||s.$re(/^\([^&()@]+\)/)||s.$re(/^[\.#:](?=@)/)||this.entities.variableCurly())||(s.save(),s.$char("(")?(r=this.selector(!1))&&s.$char(")")?(e=new _e.Paren(r),s.forget()):s.restore("Missing closing ')'"):s.forget()),e)return new _e.Element(t,e,e instanceof _e.Variable,n,i)},combinator:function(){var e=s.currentChar()
if("/"===e){s.save()
var t=s.$re(/^\/[a-z]+\//i)
if(t)return s.forget(),new _e.Combinator(t)
s.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(s.i++,"^"===e&&"^"===s.currentChar()&&(e="^^",s.i++);s.isWhitespace();)s.i++
return new _e.Combinator(e)}return s.isWhitespace(-1)?new _e.Combinator(" "):new _e.Combinator(null)},selector:function(e){var t,r,n,l,c,u,d,h=s.i
for(e=!1!==e;(e&&(r=this.extend())||e&&(u=s.$str("when"))||(l=this.element()))&&(u?d=o(this.conditions,"expected condition"):d?a("CSS guard can only be used at the end of selector"):r?c=c?c.concat(r):r:(c&&a("Extend can only be used at the end of selector"),n=s.currentChar(),t?t.push(l):t=[l],l=null),"{"!==n&&"}"!==n&&";"!==n&&","!==n&&")"!==n););if(t)return new _e.Selector(t,c,d,h,i)
c&&a("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],s.commentStore.length=0,e.condition&&t.length>1&&a("Guards are only currently allowed on a single selector."),s.$char(","));)e.condition&&a("Guards are only currently allowed on a single selector."),s.commentStore.length=0
return t},attribute:function(){if(s.$char("[")){var e,t,r,i=this.entities
return(e=i.variableCurly())||(e=o(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(r=s.$re(/^[|~*$^]?=/))&&(t=i.quoted()||s.$re(/^[0-9]+%/)||s.$re(/^[\w-]+/)||i.variableCurly()),l("]"),new _e.Attribute(e,r,t)}},block:function(){var e
if(s.$char("{")&&(e=this.primary())&&s.$char("}"))return e},blockRuleset:function(){var e=this.block()
return e&&(e=new _e.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,r
if(s.save(),!s.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,r=e.variadic,s.$char(")"))){var i=this.blockRuleset()
if(i)return s.forget(),t?new _e.mixin.Definition(null,t,i,null,r):new _e.DetachedRuleset(i)
s.restore()}else s.restore()},ruleset:function(){var e,r,i
if(s.save(),t.dumpLineNumbers&&(i=c(s.i)),(e=this.selectors())&&(r=this.block())){s.forget()
var n=new _e.Ruleset(e,r,t.strictImports)
return t.dumpLineNumbers&&(n.debugInfo=i),n}s.restore()},declaration:function(){var e,t,r,n,a,o,l=s.i,c=s.currentChar()
if("."!==c&&"#"!==c&&"&"!==c&&":"!==c)if(s.save(),e=this.variable()||this.ruleProperty()){if((o="string"==typeof e)&&(t=this.detachedRuleset())&&(r=!0),s.commentStore.length=0,!t){if(a=!o&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return s.forget(),new _e.Declaration(e,t,!1,a,l,i)
t||(t=this.value()),t?n=this.important():o&&(t=this.permissiveValue())}if(t&&(this.end()||r))return s.forget(),new _e.Declaration(e,t,n,a,l,i)
s.restore()}else s.restore()},anonymousValue:function(){var e=s.i,t=s.$re(/^([^.#@\$+\/'"*`(;{}-]*);/)
if(t)return new _e.Anonymous(t[1],e)},permissiveValue:function(e){var t,r,n,o,l=e||";",c=s.i,u=[]
function d(){var e=s.currentChar()
return"string"==typeof l?e===l:l.test(e)}if(!d()){o=[]
do{((r=this.comment())||(r=this.entity()))&&o.push(r)}while(r)
if(n=d(),o.length>0){if(o=new _e.Expression(o),n)return o
u.push(o)," "===s.prevChar()&&u.push(new _e.Anonymous(" ",c))}if(s.save(),o=s.$parseUntil(l)){if("string"==typeof o&&a("Expected '"+o+"'","Parse"),1===o.length&&" "===o[0])return s.forget(),new _e.Anonymous("",c)
var h=void 0
for(t=0;t<o.length;t++)if(h=o[t],Array.isArray(h))u.push(new _e.Quoted(h[0],h[1],!0,c,i))
else{t===o.length-1&&(h=h.trim())
var p=new _e.Quoted("'",h,!0,c,i)
p.variableRegex=/@([\w-]+)/g,p.propRegex=/\$([\w-]+)/g,u.push(p)}return s.forget(),new _e.Expression(u,!0)}s.restore()}},import:function(){var e,t,r=s.i,n=s.$re(/^@import?\s+/)
if(n){var o=(n?this.importOptions():null)||{}
if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),s.$char(";")||(s.i=r,a("missing semi-colon or unrecognised media features on import")),t=t&&new _e.Value(t),new _e.Import(e,t,o,r,i)
s.i=r,a("malformed import statement")}},importOptions:function(){var e,t,r,i={}
if(!s.$char("("))return null
do{if(e=this.importOption()){switch(r=!0,t=e){case"css":t="less",r=!1
break
case"once":t="multiple",r=!1}if(i[t]=r,!s.$char(","))break}}while(e)
return l(")"),i},importOption:function(){var e=s.$re(/^(less|css|multiple|once|inline|reference|optional)/)
if(e)return e[1]},mediaFeature:function(){var e,t,r=this.entities,n=[]
s.save()
do{(e=r.keyword()||r.variable()||r.mixinLookup())?n.push(e):s.$char("(")&&(t=this.property(),e=this.value(),s.$char(")")?t&&e?n.push(new _e.Paren(new _e.Declaration(t,e,null,null,s.i,i,!0))):e?n.push(new _e.Paren(e)):a("badly formed media feature definition"):a("Missing closing ')'","Parse"))}while(e)
if(s.forget(),n.length>0)return new _e.Expression(n)},mediaFeatures:function(){var e,t=this.entities,r=[]
do{if(e=this.mediaFeature()){if(r.push(e),!s.$char(","))break}else if((e=t.variable()||t.mixinLookup())&&(r.push(e),!s.$char(",")))break}while(e)
return r.length>0?r:null},media:function(){var e,r,n,o,l=s.i
if(t.dumpLineNumbers&&(o=c(l)),s.save(),s.$str("@media"))return e=this.mediaFeatures(),(r=this.block())||a("media definitions require block statements after any features"),s.forget(),n=new _e.Media(r,e,l,i),t.dumpLineNumbers&&(n.debugInfo=o),n
s.restore()},plugin:function(){var e,t,r,n=s.i
if(s.$re(/^@plugin?\s+/)){if(r=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return s.$char(";")||(s.i=n,a("missing semi-colon on @plugin")),new _e.Import(e,null,r,n,i)
s.i=n,a("malformed @plugin statement")}},pluginArgs:function(){if(s.save(),!s.$char("("))return s.restore(),null
var e=s.$re(/^\s*([^\);]+)\)\s*/)
return e[1]?(s.forget(),e[1].trim()):(s.restore(),null)},atrule:function(){var e,r,n,o,l,u,d,h=s.i,p=!0,f=!0
if("@"===s.currentChar()){if(r=this.import()||this.plugin()||this.media())return r
if(s.save(),e=s.$re(/^@[a-z-]+/)){switch(o=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(o="@"+e.slice(e.indexOf("-",2)+1)),o){case"@charset":l=!0,p=!1
break
case"@namespace":u=!0,p=!1
break
case"@keyframes":case"@counter-style":l=!0
break
case"@document":case"@supports":d=!0,f=!1
break
default:d=!0}if(s.commentStore.length=0,l?(r=this.entity())||a("expected "+e+" identifier"):u?(r=this.expression())||a("expected "+e+" expression"):d&&(r=this.permissiveValue(/^[{;]/),p="{"===s.currentChar(),r?r.value||(r=null):p||";"===s.currentChar()||a(e+" rule is missing block or ending semi-colon")),p&&(n=this.blockRuleset()),n||!p&&r&&s.$char(";"))return s.forget(),new _e.AtRule(e,r,n,h,i,t.dumpLineNumbers?c(h):null,f)
s.restore("at-rule options not recognised")}}},value:function(){var e,t=[],r=s.i
do{if((e=this.expression())&&(t.push(e),!s.$char(",")))break}while(e)
if(t.length>0)return new _e.Value(t,r)},important:function(){if("!"===s.currentChar())return s.$re(/^! *important/)},sub:function(){var e,t
if(s.save(),s.$char("("))return(e=this.addition())&&s.$char(")")?(s.forget(),(t=new _e.Expression([e])).parens=!0,t):void s.restore("Expected ')'")
s.restore()},multiplication:function(){var e,t,r,i,n
if(e=this.operand()){for(n=s.isWhitespace(-1);!s.peek(/^\/[*\/]/);){if(s.save(),!(r=s.$char("/")||s.$char("*")||s.$str("./"))){s.forget()
break}if(!(t=this.operand())){s.restore()
break}s.forget(),e.parensInOp=!0,t.parensInOp=!0,i=new _e.Operation(r,[i||e,t],n),n=s.isWhitespace(-1)}return i||e}},addition:function(){var e,t,r,i,n
if(e=this.multiplication()){for(n=s.isWhitespace(-1);(r=s.$re(/^[-+]\s+/)||!n&&(s.$char("+")||s.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,i=new _e.Operation(r,[i||e,t],n),n=s.isWhitespace(-1)
return i||e}},conditions:function(){var e,t,r,i=s.i
if(e=this.condition(!0)){for(;s.peek(/^,\s*(not\s*)?\(/)&&s.$char(",")&&(t=this.condition(!0));)r=new _e.Condition("or",r||e,t,i)
return r||e}},condition:function(e){var t,r,i
if(t=this.conditionAnd(e)){if(r=s.$str("or")){if(!(i=this.condition(e)))return
t=new _e.Condition(r,t,i)}return t}},conditionAnd:function(e){var t,r,i,n,a=this
if(t=(n=a.negatedCondition(e)||a.parenthesisCondition(e))||e?n:a.atomicCondition(e)){if(r=s.$str("and")){if(!(i=this.conditionAnd(e)))return
t=new _e.Condition(r,t,i)}return t}},negatedCondition:function(e){if(s.$str("not")){var t=this.parenthesisCondition(e)
return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t
if(s.save(),s.$str("(")){if(t=function(t){var r
if(s.save(),r=t.condition(e)){if(s.$char(")"))return s.forget(),r
s.restore()}else s.restore()}(this))return s.forget(),t
if(t=this.atomicCondition(e)){if(s.$char(")"))return s.forget(),t
s.restore("expected ')' got '"+s.currentChar()+"'")}else s.restore()}else s.restore()},atomicCondition:function(e){var t,r,i,n,o=this.entities,l=s.i
function c(){return this.addition()||o.keyword()||o.quoted()||o.mixinLookup()}if(t=(c=c.bind(this))())return s.$char(">")?n=s.$char("=")?">=":">":s.$char("<")?n=s.$char("=")?"<=":"<":s.$char("=")&&(n=s.$char(">")?"=>":s.$char("<")?"=<":"="),n?(r=c())?i=new _e.Condition(n,t,r,l,!1):a("expected expression"):i=new _e.Condition("=",t,new _e.Keyword("true"),l,!1),i},operand:function(){var e,t=this.entities
s.peek(/^-[@\$\(]/)&&(e=s.$char("-"))
var r=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||t.mixinLookup()
return e&&(r.parensInOp=!0,r=new _e.Negative(r)),r},expression:function(){var e,t,r=[],i=s.i
do{(e=this.comment())?r.push(e):((e=this.addition()||this.entity())instanceof _e.Comment&&(e=null),e&&(r.push(e),s.peek(/^\/[\/*]/)||(t=s.$char("/"))&&r.push(new _e.Anonymous(t,i))))}while(e)
if(r.length>0)return new _e.Expression(r)},property:function(){var e=s.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/)
if(e)return e[1]},ruleProperty:function(){var e,t,r=[],n=[]
s.save()
var a=s.$re(/^([_a-zA-Z0-9-]+)\s*:/)
if(a)return r=[new _e.Keyword(a[1])],s.forget(),r
function o(e){var t=s.i,i=s.$re(e)
if(i)return n.push(t),r.push(i[1])}for(o(/^(\*?)/);o(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/););if(r.length>1&&o(/^((?:\+_|\+)?)\s*:/)){for(s.forget(),""===r[0]&&(r.shift(),n.shift()),t=0;t<r.length;t++)e=r[t],r[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new _e.Keyword(e):"@"===e.charAt(0)?new _e.Variable("@"+e.slice(2,-1),n[t],i):new _e.Property("$"+e.slice(2,-1),n[t],i)
return r}s.restore()}}}}
function ze(e,t,r,i){return t.eval(e)?r.eval(e):i?i.eval(e):new N}$e.serializeVars=function(e){var t=""
for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=e[r]
t+=("@"===r[0]?"":"@")+r+": "+i+(";"===String(i).slice(-1)?"":";")}return t},ze.evalArgs=!1
var Ue,qe={boolean:function(e){return e?F.True:F.False},if:ze}
function He(e){return Math.min(1,Math.max(0,e))}function Ve(e,t){var r=Ue.hsla(t.h,t.s,t.l,t.a)
if(r)return e.value&&/^(rgb|hsl)/.test(e.value)?r.value=e.value:r.value="rgb",r}function Ge(e){if(e.toHSL)return e.toHSL()
throw new Error("Argument cannot be evaluated to a color")}function We(e){if(e.toHSV)return e.toHSV()
throw new Error("Argument cannot be evaluated to a color")}function Xe(e){if(e instanceof J)return parseFloat(e.unit.is("%")?e.value/100:e.value)
if("number"==typeof e)return e
throw{type:"Argument",message:"color functions take numbers as parameters"}}var Ke=Ue={rgb:function(e,t,r){var i=Ue.rgba(e,t,r,1)
if(i)return i.value="rgb",i},rgba:function(e,t,r,i){try{if(e instanceof u)return i=t?Xe(t):e.alpha,new u(e.rgb,i,"rgba")
var n=[e,t,r].map((function(e){return(t=e)instanceof J&&t.unit.is("%")?parseFloat(255*t.value/100):Xe(t)
var t}))
return i=Xe(i),new u(n,i,"rgba")}catch(e){}},hsl:function(e,t,r){var i=Ue.hsla(e,t,r,1)
if(i)return i.value="hsl",i},hsla:function(e,t,r,i){try{if(e instanceof u)return i=t?Xe(t):e.alpha,new u(e.rgb,i,"hsla")
var n,s
function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?n+(s-n)*e*6:2*e<1?s:3*e<2?n+(s-n)*(2/3-e)*6:n}e=Xe(e)%360/360,t=He(Xe(t)),r=He(Xe(r)),i=He(Xe(i)),n=2*r-(s=r<=.5?r*(t+1):r+t-r*t)
var a=[255*o(e+1/3),255*o(e),255*o(e-1/3)]
return i=Xe(i),new u(a,i,"hsla")}catch(e){}},hsv:function(e,t,r){return Ue.hsva(e,t,r,1)},hsva:function(e,t,r,i){var n,s
e=Xe(e)%360/360*360,t=Xe(t),r=Xe(r),i=Xe(i)
var a=[r,r*(1-t),r*(1-(s=e/60-(n=Math.floor(e/60%6)))*t),r*(1-(1-s)*t)],o=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]]
return Ue.rgba(255*a[o[n][0]],255*a[o[n][1]],255*a[o[n][2]],i)},hue:function(e){return new J(Ge(e).h)},saturation:function(e){return new J(100*Ge(e).s,"%")},lightness:function(e){return new J(100*Ge(e).l,"%")},hsvhue:function(e){return new J(We(e).h)},hsvsaturation:function(e){return new J(100*We(e).s,"%")},hsvvalue:function(e){return new J(100*We(e).v,"%")},red:function(e){return new J(e.rgb[0])},green:function(e){return new J(e.rgb[1])},blue:function(e){return new J(e.rgb[2])},alpha:function(e){return new J(Ge(e).a)},luma:function(e){return new J(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255
return new J(t*e.alpha*100,"%")},saturate:function(e,t,r){if(!e.rgb)return null
var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.s+=i.s*t.value/100:i.s+=t.value/100,i.s=He(i.s),Ve(e,i)},desaturate:function(e,t,r){var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.s-=i.s*t.value/100:i.s-=t.value/100,i.s=He(i.s),Ve(e,i)},lighten:function(e,t,r){var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.l+=i.l*t.value/100:i.l+=t.value/100,i.l=He(i.l),Ve(e,i)},darken:function(e,t,r){var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.l-=i.l*t.value/100:i.l-=t.value/100,i.l=He(i.l),Ve(e,i)},fadein:function(e,t,r){var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.a+=i.a*t.value/100:i.a+=t.value/100,i.a=He(i.a),Ve(e,i)},fadeout:function(e,t,r){var i=Ge(e)
return void 0!==r&&"relative"===r.value?i.a-=i.a*t.value/100:i.a-=t.value/100,i.a=He(i.a),Ve(e,i)},fade:function(e,t){var r=Ge(e)
return r.a=t.value/100,r.a=He(r.a),Ve(e,r)},spin:function(e,t){var r=Ge(e),i=(r.h+t.value)%360
return r.h=i<0?360+i:i,Ve(e,r)},mix:function(e,t,r){r||(r=new J(50))
var i=r.value/100,n=2*i-1,s=Ge(e).a-Ge(t).a,a=((n*s==-1?n:(n+s)/(1+n*s))+1)/2,o=1-a,l=[e.rgb[0]*a+t.rgb[0]*o,e.rgb[1]*a+t.rgb[1]*o,e.rgb[2]*a+t.rgb[2]*o],c=e.alpha*i+t.alpha*(1-i)
return new u(l,c)},greyscale:function(e){return Ue.desaturate(e,new J(100))},contrast:function(e,t,r,i){if(!e.rgb)return null
if(void 0===r&&(r=Ue.rgba(255,255,255,1)),void 0===t&&(t=Ue.rgba(0,0,0,1)),t.luma()>r.luma()){var n=r
r=t,t=n}return i=void 0===i?.43:Xe(i),e.luma()<i?r:t},argb:function(e){return new N(e.toARGB())},color:function(e){if(e instanceof oe&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1)
return new u(t,void 0,"#"+t)}if(e instanceof u||(e=u.fromKeyword(e.value)))return e.value=void 0,e
throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Ue.mix(Ue.rgb(255,255,255),e,t)},shade:function(e,t){return Ue.mix(Ue.rgb(0,0,0),e,t)}}
function Ye(e,t,r){var i,n,s,a,o=t.alpha,l=r.alpha,c=[]
s=l+o*(1-l)
for(var d=0;d<3;d++)a=e(i=t.rgb[d]/255,n=r.rgb[d]/255),s&&(a=(l*n+o*(i-l*(i+n-a)))/s),c[d]=255*a
return new u(c,s)}var Je={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?Je.multiply(e,t):Je.screen(e-1,t)},softlight:function(e,t){var r=1,i=e
return t>.5&&(i=1,r=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(r-e)},hardlight:function(e,t){return Je.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}}
for(var Qe in Je)Je.hasOwnProperty(Qe)&&(Ye[Qe]=Ye.bind(null,Je[Qe]))
var Ze=function(e){return Array.isArray(e.value)?e.value:Array(e)},et={_SELF:function(e){return e},extract:function(e,t){return t=t.value-1,Ze(e)[t]},length:function(e){return new J(Ze(e).length)},range:function(e,t,r){var i,n,s=1,a=[]
t?(n=t,i=e.value,r&&(s=r.value)):(i=1,n=e)
for(var o=i;o<=n.value;o+=s)a.push(new J(o,n.unit))
return new te(a)},each:function(e,t){var r,i,n=this,s=[],a=function(e){return e instanceof c?e.eval(n.context):e}
i=!e.value||e instanceof oe?e.ruleset?a(e.ruleset).rules:e.rules?e.rules.map(a):Array.isArray(e)?e.map(a):[a(e)]:Array.isArray(e.value)?e.value.map(a):[a(e.value)]
var o="@value",l="@key",u="@index"
t.params?(o=t.params[0]&&t.params[0].name,l=t.params[1]&&t.params[1].name,u=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset
for(var d=0;d<i.length;d++){var h=void 0,p=void 0,f=i[d]
f instanceof D?(h="string"==typeof f.name?f.name:f.name[0].value,p=f.value):(h=new J(d+1),p=f),f instanceof L||(r=t.rules.slice(0),o&&r.push(new D(o,p,!1,!1,this.index,this.currentFileInfo)),u&&r.push(new D(u,new J(d+1),!1,!1,this.index,this.currentFileInfo)),l&&r.push(new D(l,h,!1,!1,this.index,this.currentFileInfo)),s.push(new W([new M([new g("","&")])],r,t.strictImports,t.visibilityInfo())))}return new W([new M([new g("","&")])],s,t.strictImports,t.visibilityInfo()).eval(this.context)}},tt=function(e,t,r){if(!(r instanceof J))throw{type:"Argument",message:"argument must be a number"}
return null==t?t=r.unit:r=r.unify(),new J(e(parseFloat(r.value)),t)},rt={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"}
for(var it in rt)rt.hasOwnProperty(it)&&(rt[it]=tt.bind(null,Math[it],rt[it]))
rt.round=function(e,t){var r=void 0===t?0:t.value
return tt((function(e){return e.toFixed(r)}),null,e)}
var nt,st=function(e,t){if(0===(t=Array.prototype.slice.call(t)).length)throw{type:"Argument",message:"one or more arguments required"}
var r,i,n,s,a,o,l,c,u=[],d={}
for(r=0;r<t.length;r++)if((n=t[r])instanceof J)if(l=""!==(o=""===(s=""===n.unit.toString()&&void 0!==c?new J(n.value,c).unify():n.unify()).unit.toString()&&void 0!==l?l:s.unit.toString())&&void 0===l||""!==o&&""===u[0].unify().unit.toString()?o:l,c=""!==o&&void 0===c?n.unit.toString():c,void 0!==(i=void 0!==d[""]&&""!==o&&o===l?d[""]:d[o]))a=""===u[i].unit.toString()&&void 0!==c?new J(u[i].value,c).unify():u[i].unify(),(e&&s.value<a.value||!e&&s.value>a.value)&&(u[i]=n)
else{if(void 0!==l&&o!==l)throw{type:"Argument",message:"incompatible types"}
d[o]=u.length,u.push(n)}else Array.isArray(t[r].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[r].value))
return 1==u.length?u[0]:(t=u.map((function(e){return e.toCSS(this.context)})).join(this.context.compress?",":", "),new N((e?"min":"max")+"("+t+")"))},at={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
return st(!0,e)},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
return st(!1,e)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new J(Math.PI)},mod:function(e,t){return new J(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new J(e),t=new J(t)
else if(!(e instanceof J&&t instanceof J))throw{type:"Argument",message:"arguments must be numbers"}
return new J(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return tt((function(e){return 100*e}),"%",e)}},ot={e:function(e){return new oe('"',e instanceof he?e.evaluated:e.value,!0)},escape:function(e){return new N(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,r,i){var n=e.value
return r="Quoted"===r.type?r.value:r.toCSS(),n=n.replace(new RegExp(t.value,i?i.value:""),r),new oe(e.quote||"",n,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),r=e.value,i=function(e){r=r.replace(/%[sda]/i,(function(r){var i="Quoted"===t[e].type&&r.match(/s/i)?t[e].value:t[e].toCSS()
return r.match(/[A-Z]$/)?encodeURIComponent(i):i}))},n=0;n<t.length;n++)i(n)
return r=r.replace(/%%/g,"%"),new oe(e.quote||"",r,e.escaped)}},lt=function(e,t){return e instanceof t?F.True:F.False},ct=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."}
if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."}
return e instanceof J&&e.unit.is(t)?F.True:F.False},ut={isruleset:function(e){return lt(e,K)},iscolor:function(e){return lt(e,u)},isnumber:function(e){return lt(e,J)},isstring:function(e){return lt(e,oe)},iskeyword:function(e){return lt(e,F)},isurl:function(e){return lt(e,le)},ispixel:function(e){return ct(e,"px")},ispercentage:function(e){return ct(e,"%")},isem:function(e){return ct(e,"em")},isunit:ct,unit:function(e,t){if(!(e instanceof J))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof Z?". Have you forgotten parenthesis?":"")}
return t=t?t instanceof F?t.value:t.toCSS():"",new J(e.value,t)},"get-unit":function(e){return new N(e.unit)}},dt=function(e){var t={functionRegistry:V,functionCaller:re}
return V.addMultiple(qe),V.add("default",G.eval.bind(G)),V.addMultiple(Ke),V.addMultiple(Ye),V.addMultiple(function(e){var t=function(e,t){return new le(t,e.index,e.currentFileInfo).eval(e.context)}
return{"data-uri":function(r,i){i||(i=r,r=null)
var n=r&&r.value,s=i.value,a=this.currentFileInfo,o=a.rewriteUrls?a.currentDirectory:a.entryPath,l=s.indexOf("#"),c="";-1!==l&&(c=s.slice(l),s=s.slice(0,l))
var u=S(this.context)
u.rawBuffer=!0
var d=e.getFileManager(s,o,u,e,!0)
if(!d)return t(this,i)
var h=!1
if(r)h=/;base64$/.test(n)
else{if("image/svg+xml"===(n=e.mimeLookup(s)))h=!1
else{var p=e.charsetLookup(n)
h=["US-ASCII","UTF-8"].indexOf(p)<0}h&&(n+=";base64")}var f=d.loadFileSync(s,o,u,e)
if(!f.contents)return Se.warn("Skipped data-uri embedding of "+s+" because file not found"),t(this,i||r)
var m=f.contents
if(h&&!e.encodeBase64)return t(this,i)
var g="data:"+n+","+(m=h?e.encodeBase64(m):encodeURIComponent(m))+c
return new le(new oe('"'+g+'"',g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}}(e)),V.addMultiple(et),V.addMultiple(rt),V.addMultiple(at),V.addMultiple(ot),V.addMultiple({"svg-gradient":function(e){var t,r,i,n,s,a,o,l,c="linear",d='x="0" y="0" width="1" height="1"',h={compress:!1},p=e.toCSS(h)
function f(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&f(),t=arguments[1].value):arguments.length<3?f():t=Array.prototype.slice.call(arguments,1),p){case"to bottom":r='x1="0%" y1="0%" x2="0%" y2="100%"'
break
case"to right":r='x1="0%" y1="0%" x2="100%" y2="0%"'
break
case"to bottom right":r='x1="0%" y1="0%" x2="100%" y2="100%"'
break
case"to top right":r='x1="0%" y1="100%" x2="100%" y2="0%"'
break
case"ellipse":case"ellipse at center":c="radial",r='cx="50%" cy="50%" r="75%"',d='x="-50" y="-50" width="101" height="101"'
break
default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+c+'Gradient id="g" '+r+">",n=0;n<t.length;n+=1)t[n]instanceof te?(s=t[n].value[0],a=t[n].value[1]):(s=t[n],a=void 0),s instanceof u&&((0===n||n+1===t.length)&&void 0===a||a instanceof J)||f(),o=a?a.toCSS(h):0===n?"0%":"100%",l=s.alpha,i+='<stop offset="'+o+'" stop-color="'+s.toRGB()+'"'+(l<1?' stop-opacity="'+l+'"':"")+"/>"
return i+="</"+c+"Gradient><rect "+d+' fill="url(#g)" /></svg>',i=encodeURIComponent(i),new le(new oe("'"+(i="data:image/svg+xml,"+i)+"'",i,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}),V.addMultiple(ut),t},ht=function(e,t){var r
void 0===t&&(t={})
var i=t.variables,n=new B.Eval(t)
"object"!=typeof i||Array.isArray(i)||(i=Object.keys(i).map((function(e){var t=i[e]
return t instanceof _e.Value||(t instanceof _e.Expression||(t=new _e.Expression([t])),t=new _e.Value([t])),new _e.Declaration("@"+e,t,!1,null,0)})),n.frames=[new _e.Ruleset(null,i)])
var s,a,o=[new Be.JoinSelectorVisitor,new Be.MarkVisibleSelectorsVisitor(!0),new Be.ExtendVisitor,new Be.ToCSSVisitor({compress:Boolean(t.compress)})],l=[]
if(t.pluginManager){a=t.pluginManager.visitor()
for(var c=0;c<2;c++)for(a.first();s=a.get();)s.isPreEvalVisitor?0!==c&&-1!==l.indexOf(s)||(l.push(s),s.run(e)):0!==c&&-1!==o.indexOf(s)||(s.isPreVisitor?o.unshift(s):o.push(s))}for(r=e.eval(n),c=0;c<o.length;c++)o[c].run(r)
if(t.pluginManager)for(a.first();s=a.get();)-1===o.indexOf(s)&&-1===l.indexOf(s)&&s.run(r)
return r},pt=function(){function e(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}return e.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},e.prototype.addPlugin=function(e,t,r){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,r||this.less.functions.functionRegistry)},e.prototype.get=function(e){return this.pluginCache[e]},e.prototype.addVisitor=function(e){this.visitors.push(e)},e.prototype.addPreProcessor=function(e,t){var r
for(r=0;r<this.preProcessors.length&&!(this.preProcessors[r].priority>=t);r++);this.preProcessors.splice(r,0,{preProcessor:e,priority:t})},e.prototype.addPostProcessor=function(e,t){var r
for(r=0;r<this.postProcessors.length&&!(this.postProcessors[r].priority>=t);r++);this.postProcessors.splice(r,0,{postProcessor:e,priority:t})},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor)
return e},e.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor)
return e},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var e=this
return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}()
function ft(e,t){return!t&&nt||(nt=new pt(e)),nt}var mt,gt,bt=function(e,t){var r,i=function(e){return function(){function t(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return t.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,r,i){if(e){var n,s,a,o,l
if(t&&t.filename){var c=this._contentsMap[t.filename]
if(this._contentsIgnoredCharsMap[t.filename]&&((r-=this._contentsIgnoredCharsMap[t.filename])<0&&(r=0),c=c.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===c)return void this._css.push(e)
o=(s=(c=c.substring(0,r)).split("\n"))[s.length-1]}if(a=(n=e.split("\n"))[n.length-1],t&&t.filename)if(i)for(l=0;l<n.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:s.length+l,column:0===l?o.length:0},source:this.normalizeFilename(t.filename)})
else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:s.length,column:o.length},source:this.normalizeFilename(t.filename)})
1===n.length?this._column+=a.length:(this._lineNumber+=n.length-1,this._column=a.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var r=this._contentsMap[t]
this._contentsIgnoredCharsMap[t]&&(r=r.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),r)}if(this._rootNode.genCSS(e,this),this._css.length>0){var i=void 0,n=JSON.stringify(this._sourceMapGenerator.toJSON())
this.sourceMapURL?i=this.sourceMapURL:this._sourceMapFilename&&(i=this._sourceMapFilename),this.sourceMapURL=i,this.sourceMap=n}return this._css.join("")},t}()}(e=new ke(e,t)),n=function(e,t){return function(){function r(e){this.options=e}return r.prototype.toCSS=function(t,r,i){var n=new e({contentsIgnoredCharsMap:i.contentsIgnoredChars,rootNode:t,contentsMap:i.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),s=n.toCSS(r)
return this.sourceMap=n.sourceMap,this.sourceMapURL=n.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=n.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=n.removeBasepath(this.sourceMapURL)),s+this.getCSSAppendage()},r.prototype.getCSSAppendage=function(){var e=this.sourceMapURL
if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return""
e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":e?"/*# sourceMappingURL="+e+" */":""},r.prototype.getExternalSourceMap=function(){return this.sourceMap},r.prototype.setExternalSourceMap=function(e){this.sourceMap=e},r.prototype.isInline=function(){return this.options.sourceMapFileInline},r.prototype.getSourceMapURL=function(){return this.sourceMapURL},r.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},r.prototype.getInputFilename=function(){return this.sourceMapInputFilename},r}()}(i,e),a=function(e){return function(){function t(e,t){this.root=e,this.imports=t}return t.prototype.toCSS=function(t){var r,i,n={}
try{r=ht(this.root,t)}catch(e){throw new E(e,this.imports)}try{var s=Boolean(t.compress)
s&&Se.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.")
var a={compress:s,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8}
t.sourceMap?(i=new e(t.sourceMap),n.css=i.toCSS(r,a,this.imports)):n.css=r.toCSS(a)}catch(e){throw new E(e,this.imports)}if(t.pluginManager)for(var o=t.pluginManager.getPostProcessors(),l=0;l<o.length;l++)n.css=o[l].process(n.css,{sourceMap:i,options:t,imports:this.imports})
for(var c in t.sourceMap&&(n.map=i.getExternalSourceMap()),n.imports=[],this.imports.files)this.imports.files.hasOwnProperty(c)&&c!==this.imports.rootFilename&&n.imports.push(c)
return n},t}()}(n),o=function(e){return function(){function t(e,t,r){this.less=e,this.rootFilename=r.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}return t.prototype.push=function(t,r,i,n,s){var a=this,o=this.context.pluginManager.Loader
this.queue.push(t)
var l=function(e,r,i){a.queue.splice(a.queue.indexOf(t),1)
var o=i===a.rootFilename
n.optional&&e?(s(null,{rules:[]},!1,null),Se.info("The file "+i+" was skipped because it was not found and the import was marked optional.")):(a.files[i]||n.inline||(a.files[i]={root:r,options:n}),e&&!a.error&&(a.error=e),s(e,r,o,i))},c={rewriteUrls:this.context.rewriteUrls,entryPath:i.entryPath,rootpath:i.rootpath,rootFilename:i.rootFilename},u=e.getFileManager(t,i.currentDirectory,this.context,e)
if(u){var d,h,p=function(e){var t,r=e.filename,s=e.contents.replace(/^\uFEFF/,"")
c.currentDirectory=u.getPath(r),c.rewriteUrls&&(c.rootpath=u.join(a.context.rootpath||"",u.pathDiff(c.currentDirectory,c.entryPath)),!u.isPathAbsolute(c.rootpath)&&u.alwaysMakePathsAbsolute()&&(c.rootpath=u.join(c.entryPath,c.rootpath))),c.filename=r
var d=new B.Parse(a.context)
d.processImports=!1,a.contents[r]=s,(i.reference||n.reference)&&(c.reference=!0),n.isPlugin?(t=o.evalPlugin(s,d,a,n.pluginArgs,c))instanceof E?l(t,null,r):l(null,t,r):n.inline?l(null,s,r):!a.files[r]||a.files[r].options.multiple||n.multiple?new $e(d,a,c).parse(s,(function(e,t){l(e,t,r)})):l(null,a.files[r].root,r)},f=S(this.context)
r&&(f.ext=n.isPlugin?".js":".less"),n.isPlugin?(f.mime="application/javascript",f.syncImport?d=o.loadPluginSync(t,i.currentDirectory,f,e,u):h=o.loadPlugin(t,i.currentDirectory,f,e,u)):f.syncImport?d=u.loadFileSync(t,i.currentDirectory,f,e):h=u.loadFile(t,i.currentDirectory,f,e,(function(e,t){e?l(e):p(t)})),d?d.filename?p(d):l(d):h&&h.then(p,l)}else l({message:"Could not find a file-manager for "+t})},t}()}(e),c=function(e,t){var r=function(e,i,n){if("function"==typeof i?(n=i,i=A(this.options,{})):i=A(this.options,i||{}),!n){var s=this
return new Promise((function(t,n){r.call(s,e,i,(function(e,r){e?n(e):t(r)}))}))}this.parse(e,i,(function(e,r,i,s){if(e)return n(e)
var a
try{a=new t(r,i).toCSS(s)}catch(e){return n(e)}n(null,a)}))}
return r}(0,a),u=function(e,t,r){var i=function(e,t,n){if("function"==typeof t?(n=t,t=A(this.options,{})):t=A(this.options,t||{}),!n){var s=this
return new Promise((function(r,n){i.call(s,e,t,(function(e,t){e?n(e):r(t)}))}))}var a,o=void 0,l=new ft(this,!t.reUsePluginManager)
if(t.pluginManager=l,a=new B.Parse(t),t.rootFileInfo)o=t.rootFileInfo
else{var c=t.filename||"input",u=c.replace(/[^\/\\]*$/,"");(o={filename:c,rewriteUrls:a.rewriteUrls,rootpath:a.rootpath||"",currentDirectory:u,entryPath:u,rootFilename:c}).rootpath&&"/"!==o.rootpath.slice(-1)&&(o.rootpath+="/")}var d=new r(this,a,o)
this.importManager=d,t.plugins&&t.plugins.forEach((function(e){var t,r
if(e.fileContent){if(r=e.fileContent.replace(/^\uFEFF/,""),(t=l.Loader.evalPlugin(r,a,d,e.options,e.filename))instanceof E)return n(t)}else l.addPlugin(e)})),new $e(a,d,o).parse(e,(function(e,r){if(e)return n(e)
n(null,r,d,t)}),t)}
return i}(0,0,o),d=dt(e),h={version:[3,13,1],data:l,tree:_e,Environment:ke,AbstractFileManager:Ae,AbstractPluginLoader:Ce,environment:e,visitors:Be,Parser:$e,functions:d,contexts:B,SourceMapOutput:i,SourceMapBuilder:n,ParseTree:a,ImportManager:o,render:c,parse:u,LessError:E,transformTree:ht,utils:P,PluginManager:ft,logger:Se},p=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r]
return new(e.bind.apply(e,s([void 0],t)))}},f=Object.create(h)
for(var m in h.tree)if("function"==typeof(r=h.tree[m]))f[m.toLowerCase()]=p(r)
else for(var g in f[m]=Object.create(null),r)f[m][g.toLowerCase()]=p(r[g])
return h.parse=h.parse.bind(f),h.render=h.render.bind(f),f},yt={},vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.alwaysMakePathsAbsolute=function(){return!0},t.prototype.join=function(e,t){return e?this.extractUrlParts(t,e).path:t},t.prototype.doXHR=function(e,t,r,i){var n=new XMLHttpRequest,s=!mt.isFileProtocol||mt.fileAsync
function a(t,r,i){t.status>=200&&t.status<300?r(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}"function"==typeof n.overrideMimeType&&n.overrideMimeType("text/css"),gt.debug("XHR: Getting '"+e+"'"),n.open("GET",e,s),n.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),n.send(null),mt.isFileProtocol&&!mt.fileAsync?0===n.status||n.status>=200&&n.status<300?r(n.responseText):i(n.status,e):s?n.onreadystatechange=function(){4==n.readyState&&a(n,r,i)}:a(n,r,i)},t.prototype.supports=function(){return!0},t.prototype.clearFileCache=function(){yt={}},t.prototype.loadFile=function(e,t,r,i){t&&!this.isPathAbsolute(e)&&(e=t+e),e=r.ext?this.tryAppendExtension(e,r.ext):e,r=r||{}
var n=this.extractUrlParts(e,window.location.href).url,s=this
return new Promise((function(e,t){if(r.useFileCache&&yt[n])try{var i=yt[n]
return e({contents:i,filename:n,webInfo:{lastModified:new Date}})}catch(e){return t({filename:n,message:"Error loading file "+n+" error was "+e.message})}s.doXHR(n,r.mime,(function(t,r){yt[n]=t,e({contents:t,filename:n,webInfo:{lastModified:r}})}),(function(e,r){t({type:"File",message:"'"+r+"' wasn't found ("+e+")",href:n})}))}))},t}(Ae),wt=function(e){function t(t){var r=e.call(this)||this
return r.less=t,r}return n(t,e),t.prototype.loadPlugin=function(e,t,r,i,n){return new Promise((function(s,a){n.loadFile(e,t,r,i).then(s).catch(a)}))},t}(Ce),xt=function(t,i,n){return{add:function(s,a){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?function(e,t){var r=e.filename||t,s=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+r,o=function(e,t,r){void 0!==e.extract[t]&&s.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,r).replace(/\{content\}/,e.extract[t]))}
e.line&&(o(e,0,""),o(e,1,"line"),o(e,2,""),a+=" on line "+e.line+", column "+(e.column+1)+":\n"+s.join("\n")),e.stack&&(e.extract||n.logLevel>=4)&&(a+="\nStack Trace\n"+e.stack),i.logger.error(a)}(s,a):"function"==typeof n.errorReporting&&n.errorReporting("add",s,a):function(i,s){var a,o,l="less-error-message:"+e(s||""),c=t.document.createElement("div"),u=[],d=i.filename||s,h=d.match(/([^\/]+(\?.*)?)$/)[1]
c.id=l,c.className="less-error-message",o="<h3>"+(i.type||"Syntax")+"Error: "+(i.message||"There is an error in your .less file")+'</h3><p>in <a href="'+d+'">'+h+"</a> "
var p=function(e,t,r){void 0!==e.extract[t]&&u.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,r).replace(/\{content\}/,e.extract[t]))}
i.line&&(p(i,0,""),p(i,1,"line"),p(i,2,""),o+="on line "+i.line+", column "+(i.column+1)+":</p><ul>"+u.join("")+"</ul>"),i.stack&&(i.extract||n.logLevel>=4)&&(o+="<br/>Stack Trace</br />"+i.stack.split("\n").slice(1).join("<br/>")),c.innerHTML=o,r(t.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),c.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===n.env&&(a=setInterval((function(){var e=t.document,r=e.body
r&&(e.getElementById(l)?r.replaceChild(c,e.getElementById(l)):r.insertBefore(c,r.firstChild),clearInterval(a))}),10))}(s,a)},remove:function(r){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting||"function"==typeof n.errorReporting&&n.errorReporting("remove",r):function(r){var i=t.document.getElementById("less-error-message:"+e(r))
i&&i.parentNode.removeChild(i)}(r)}}},_t={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:0,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""}
if(window.less)for(var St in window.less)window.less.hasOwnProperty(St)&&(_t[St]=window.less[St])
!function(e,r){t(r,function(e){var t,r=e.document
return r.currentScript||(t=r.getElementsByTagName("script"))[t.length-1]}(e)),void 0===r.isFileProtocol&&(r.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),r.async=r.async||!1,r.fileAsync=r.fileAsync||!1,r.poll=r.poll||(r.isFileProtocol?1e3:1500),r.env=r.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||r.isFileProtocol?"development":"production")
var i=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash)
i&&(r.dumpLineNumbers=i[1]),void 0===r.useFileCache&&(r.useFileCache=!0),void 0===r.onReady&&(r.onReady=!0),r.relativeUrls&&(r.rewriteUrls="all")}(window,_t),_t.plugins=_t.plugins||[],window.LESS_PLUGINS&&(_t.plugins=_t.plugins.concat(window.LESS_PLUGINS))
var kt,At,Ct,Pt=function(e,i){var n=e.document,s=bt()
s.options=i
var a=s.environment,o=function(e,t){return mt=e,gt=t,vt}(i,s.logger),l=new o
a.addFileManager(l),s.FileManager=o,s.PluginLoader=wt,function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}])
for(var r=0;r<t.loggers.length;r++)e.logger.addListener(t.loggers[r])}(s,i)
var c=xt(e,s,i),u=s.cache=i.cache||function(e,t,r){var i=null
if("development"!==t.env)try{i=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,n,s){if(i){r.info("saving "+e+" to cache.")
try{i.setItem(e,s),i.setItem(e+":timestamp",t),n&&i.setItem(e+":vars",JSON.stringify(n))}catch(t){r.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,r){var n=i&&i.getItem(e),s=i&&i.getItem(e+":timestamp"),a=i&&i.getItem(e+":vars")
if(r=r||{},a=a||"{}",s&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(s).valueOf()&&JSON.stringify(r)===a)return n}}}(e,i,s.logger)
!function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}}
V.addMultiple(t)}(s.environment),i.functions&&s.functions.functionRegistry.addMultiple(i.functions)
var d=/^text\/(x-)?less$/
function h(e){var t={}
for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])
return t}function p(e,t){var r=Array.prototype.slice.call(arguments,2)
return function(){var i=r.concat(Array.prototype.slice.call(arguments,0))
return e.apply(t,i)}}function f(e){for(var t,r=n.getElementsByTagName("style"),a=0;a<r.length;a++)if((t=r[a]).type.match(d)){var o=h(i)
o.modifyVars=e
var l=t.innerHTML||""
o.filename=n.location.href.replace(/#.*$/,""),s.render(l,o,p((function(e,t,r){t?c.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=r.css:e.innerHTML=r.css)}),null,t))}}function m(e,r,n,o,d){var p=h(i)
t(p,e),p.mime=e.type,d&&(p.modifyVars=d),l.loadFile(e.href,null,p,a).then((function(t){!function(t){var i=t.contents,a=t.filename,d=t.webInfo,h={currentDirectory:l.getPath(a),filename:a,rootFilename:a,rewriteUrls:p.rewriteUrls}
if(h.entryPath=h.currentDirectory,h.rootpath=p.rootpath||h.currentDirectory,d){d.remaining=o
var f=u.getCSS(a,d,p.modifyVars)
if(!n&&f)return d.local=!0,void r(null,f,i,e,d,a)}c.remove(a),p.rootFileInfo=h,s.render(i,p,(function(t,n){t?(t.href=a,r(t)):(u.setCSS(e.href,d.lastModified,p.modifyVars,n.css),r(null,n.css,i,e,d,a))}))}(t)})).catch((function(e){console.log(e),r(e)}))}function g(e,t,r){for(var i=0;i<s.sheets.length;i++)m(s.sheets[i],e,t,s.sheets.length-(i+1),r)}return s.watch=function(){return s.watchMode||(s.env="development","development"===s.env&&(s.watchTimer=setInterval((function(){s.watchMode&&(l.clearFileCache(),g((function(t,i,n,s,a){t?c.add(t,t.href||s.href):i&&r(e.document,i,s)})))}),i.poll))),this.watchMode=!0,!0},s.unwatch=function(){return clearInterval(s.watchTimer),this.watchMode=!1,!1},s.registerStylesheetsImmediately=function(){var e=n.getElementsByTagName("link")
s.sheets=[]
for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(d))&&s.sheets.push(e[t])},s.registerStylesheets=function(){return new Promise((function(e,t){s.registerStylesheetsImmediately(),e()}))},s.modifyVars=function(e){return s.refresh(!0,e,!1)},s.refresh=function(t,i,n){return(t||n)&&!1!==n&&l.clearFileCache(),new Promise((function(n,a){var o,l,u,d
o=l=new Date,0===(d=s.sheets.length)?(l=new Date,u=l-o,s.logger.info("Less has finished and no sheets were loaded."),n({startTime:o,endTime:l,totalMilliseconds:u,sheets:s.sheets.length})):g((function(t,i,h,p,f){if(t)return c.add(t,t.href||p.href),void a(t)
f.local?s.logger.info("Loading "+p.href+" from cache."):s.logger.info("Rendered "+p.href+" successfully."),r(e.document,i,p),s.logger.info("CSS for "+p.href+" generated in "+(new Date-l)+"ms"),0==--d&&(u=new Date-o,s.logger.info("Less has finished. CSS generated in "+u+"ms"),n({startTime:o,endTime:l,totalMilliseconds:u,sheets:s.sheets.length})),l=new Date}),t,i),f(i)}))},s.refreshStyles=f,s}(window,_t)
function Ot(e){e.filename&&console.warn(e),_t.async||At.removeChild(Ct)}return window.less=Pt,_t.onReady&&(/!watch/.test(window.location.hash)&&Pt.watch(),_t.async||(kt="body { display: none !important }",At=document.head||document.getElementsByTagName("head")[0],(Ct=document.createElement("style")).type="text/css",Ct.styleSheet?Ct.styleSheet.cssText=kt:Ct.appendChild(document.createTextNode(kt)),At.appendChild(Ct)),Pt.registerStylesheetsImmediately(),Pt.pageLoadFinished=Pt.refresh("development"===Pt.env).then(Ot,Ot)),Pt},"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof e&&e.amd?e(r):(t=t||self).less=r()}(function(){function e(){var e=Array.prototype.slice.call(arguments)
return e.unshift("less"),define.apply(null,e)}return e.amd=!0,e}()),define("@ember-data/adapter/-private",["exports","@ember/debug","rsvp","require","@ember/object/mixin","@ember/string","ember-inflector"],(function(e,t,r,i,n,s,a){"use strict"
const o=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},l=o(i),c=/\r?\n/
const u=/\[\]$/
function d(e,t,r){void 0!==r&&(null===r&&(r=""),r="function"==typeof r?r():r,e[e.length]=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`)}let h=null
const p={buildURL:function(e,t,r,i,n){switch(i){case"findRecord":return this.urlForFindRecord(t,e,r)
case"findAll":return this.urlForFindAll(e,r)
case"query":return this.urlForQuery(n||{},e)
case"queryRecord":return this.urlForQueryRecord(n||{},e)
case"findMany":return this.urlForFindMany(t,e,r)
case"findHasMany":return this.urlForFindHasMany(t,e,r)
case"findBelongsTo":return this.urlForFindBelongsTo(t,e,r)
case"createRecord":return this.urlForCreateRecord(e,r)
case"updateRecord":return this.urlForUpdateRecord(t,e,r)
case"deleteRecord":return this.urlForDeleteRecord(t,e,r)
default:return this._buildURL(e,t)}},_buildURL:function(e,t){let r,i=[],{host:n}=this,s=this.urlPrefix()
e&&(r=this.pathForType(e),r&&i.push(r)),t&&i.push(encodeURIComponent(t)),s&&i.unshift(s)
let a=i.join("/")
return!n&&a&&"/"!==a.charAt(0)&&(a="/"+a),a},urlForFindRecord:function(e,t,r){return this._buildURL(t,e)},urlForFindAll:function(e,t){return this._buildURL(e)},urlForQueryRecord:function(e,t){return this._buildURL(t)},urlForQuery:function(e,t){return this._buildURL(t)},urlForFindMany:function(e,t,r){return this._buildURL(t)},urlForFindHasMany:function(e,t,r){return this._buildURL(t,e)},urlForFindBelongsTo:function(e,t,r){return this._buildURL(t,e)},urlForCreateRecord:function(e,t){return this._buildURL(e)},urlForDeleteRecord:function(e,t,r){return this._buildURL(t,e)},urlForUpdateRecord:function(e,t,r){return this._buildURL(t,e)},urlPrefix:function(e,t){let{host:r,namespace:i}=this
if(r&&"/"!==r||(r=""),e)return/^\/\//.test(e)||/http(s)?:\/\//.test(e)?e:"/"===e.charAt(0)?`${r}${e}`:`${t}/${e}`
let n=[]
return r&&n.push(r),i&&n.push(i),n.join("/")},pathForType:function(e){let t=s.camelize(e)
return a.pluralize(t)}},f=o(n).default.create(p)
e.BuildURLMixin=f,e.determineBodyPromise=function(e,t){return(i=e.text(),r.resolve(i).catch((e=>e))).then((r=>function(e,t,r){let i=r,n=null
if(!e.ok)return r
let s=e.status,a=""===r||null===r,o=204===s||205===s||"HEAD"===t.method
if(!e.ok||!o&&!a){try{i=JSON.parse(r)}catch(l){if(!(l instanceof SyntaxError))return l
l.payload=r,n=l}return n||i}}(e,t,r)))
var i},e.fetch=function(){if(null!==h)return h()
if(i.has("fetch")){let e=l.default("fetch").default
h=()=>e}else{if("function"!=typeof fetch)throw new Error("cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?")
h=()=>fetch}return h()},e.parseResponseHeaders=function(e){const t=Object.create(null)
if(!e)return t
const r=e.split(c)
for(let i=0;i<r.length;i++){let e=r[i],n=0,s=!1
for(;n<e.length;n++)if(58===e.charCodeAt(n)){s=!0
break}if(!1===s)continue
let a=e.substring(0,n).trim(),o=e.substring(n+1,e.length).trim()
if(o){t[a.toLowerCase()]=o,t[a]=o}}return t},e.serializeIntoHash=function(e,t,r,i={includeId:!0}){const n=e.serializerFor(t.modelName)
if("function"==typeof n.serializeIntoHash){const e={}
return n.serializeIntoHash(e,t,r,i),e}return n.serialize(r,i)},e.serializeQueryParams=function(e){let t=[]
return function e(r,i){let n,s,a
if(r)if(Array.isArray(i))for(n=0,s=i.length;n<s;n++)u.test(r)?d(t,r,i[n]):e(r+"["+("object"==typeof i[n]&&null!==i[n]?n:"")+"]",i[n])
else if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(i))for(a in i)e(r+"["+a+"]",i[a])
else d(t,r,i)
else if(Array.isArray(i))for(n=0,s=i.length;n<s;n++)d(t,i[n].name,i[n].value)
else for(a in i)e(a,i[a])
return t}("",e).join("&")},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/adapter/error",["exports","@ember/debug"],(function(e,t){"use strict"
function r(e,t="Adapter operation failed"){this.isAdapterError=!0
let r=Error.call(this,t)
r&&(this.stack=r.stack,this.description=r.description,this.fileName=r.fileName,this.lineNumber=r.lineNumber,this.message=r.message,this.name=r.name,this.number=r.number),this.errors=e||[{title:"Adapter Error",detail:t}]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.UnauthorizedError=e.TimeoutError=e.ServerError=e.NotFoundError=e.InvalidError=e.ForbiddenError=e.ConflictError=e.AbortError=void 0,e.errorsArrayToHash=function(e){{let t={}
return e&&e.forEach((e=>{if(e.source&&e.source.pointer){let r=e.source.pointer.match(s)
r?r=r[2]:-1!==e.source.pointer.search(a)&&(r=o),r&&(t[r]=t[r]||[],t[r].push(e.detail||e.title))}})),t}},e.errorsHashToArray=function(e){{let t=[]
return e&&Object.keys(e).forEach((r=>{let i=(n=e[r],Array.isArray(n)?n:[n])
var n
for(let e=0;e<i.length;e++){let n="Invalid Attribute",s=`/data/attributes/${r}`
r===o&&(n="Invalid Document",s="/data"),t.push({title:n,detail:i[e],source:{pointer:s}})}})),t}}
e.default=r
function i(e){return function({message:t}={}){return n(e,t)}}function n(e,t){let r=function(r,i){e.call(this,r,i||t)}
return r.prototype=Object.create(e.prototype),r.extend=i(r),r}r.prototype=Object.create(Error.prototype),r.prototype.code="AdapterError",r.extend=i(r);(e.InvalidError=n(r,"The adapter rejected the commit because it was invalid")).prototype.code="InvalidError";(e.TimeoutError=n(r,"The adapter operation timed out")).prototype.code="TimeoutError";(e.AbortError=n(r,"The adapter operation was aborted")).prototype.code="AbortError";(e.UnauthorizedError=n(r,"The adapter operation is unauthorized")).prototype.code="UnauthorizedError";(e.ForbiddenError=n(r,"The adapter operation is forbidden")).prototype.code="ForbiddenError";(e.NotFoundError=n(r,"The adapter could not find the resource")).prototype.code="NotFoundError";(e.ConflictError=n(r,"The adapter operation failed due to a conflict")).prototype.code="ConflictError";(e.ServerError=n(r,"The adapter operation failed due to a server error")).prototype.code="ServerError"
const s=/^\/?data\/(attributes|relationships)\/(.*)/,a=/^\/?data/,o="base"})),define("@ember-data/adapter/index",["exports","@ember/object","@ember/service","rsvp","@ember-data/adapter/-private"],(function(e,t,r,i,n){"use strict"
var s,a
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BuildURLMixin",{enumerable:!0,get:function(){return n.BuildURLMixin}}),e.default=void 0
e.default=(s=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="store",n=this,(i=a)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}findRecord(e,t,r,n){return i.Promise.resolve()}findAll(e,t,r,n){return i.Promise.resolve()}query(e,t,r){return i.Promise.resolve()}queryRecord(e,t,r,n){return i.Promise.resolve()}serialize(e,t){return e.serialize(t)}createRecord(e,t,r){return i.Promise.resolve()}updateRecord(e,t,r){return i.Promise.resolve()}deleteRecord(e,t,r){return i.Promise.resolve()}get coalesceFindRequests(){let e=this._coalesceFindRequests
return"boolean"==typeof e?e:this._coalesceFindRequests=!0}set coalesceFindRequests(e){this._coalesceFindRequests=e}groupRecordsForFindMany(e,t){return[t]}shouldReloadRecord(e,t){return!1}shouldReloadAll(e,t){return!t.length}shouldBackgroundReloadRecord(e,t){return!0}shouldBackgroundReloadAll(e,t){return!0}},o=s.prototype,l="store",c=[r.inject],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),a=void 0===h.initializer?(Object.defineProperty(o,l,h),null):h,s)
var o,l,c,u,d,h})),define("@ember-data/adapter/json-api",["exports","@ember/debug","@ember/string","ember-inflector","@ember-data/adapter/-private","@ember-data/adapter/rest"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends s.default{constructor(...e){super(...e),this._defaultContentType="application/vnd.api+json"}ajaxOptions(e,t,r={}){let i=super.ajaxOptions(e,t,r)
return i.headers.Accept=i.headers.Accept||"application/vnd.api+json",i}get coalesceFindRequests(){let e=this._coalesceFindRequests
return"boolean"==typeof e?e:this._coalesceFindRequests=!1}set coalesceFindRequests(e){this._coalesceFindRequests=e}findMany(e,t,r,i){let n=this.buildURL(t.modelName,r,i,"findMany")
return this.ajax(n,"GET",{data:{filter:{id:r.join(",")}}})}pathForType(e){let t=(0,r.dasherize)(e)
return(0,i.pluralize)(t)}updateRecord(e,t,r){const i=(0,n.serializeIntoHash)(e,t,r),s=r.modelName,a=r.id
let o=this.buildURL(s,a,r,"updateRecord")
return this.ajax(o,"PATCH",{data:i})}}e.default=a})),define("@ember-data/adapter/rest",["exports","@ember/application","@ember/debug","@ember/object","@ember/runloop","rsvp","@ember-data/adapter/-private","@ember-data/adapter/error","@ember-data/adapter/index"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.fetchOptions=S
let d=(c=(0,i.computed)(),u=class extends(l.default.extend(l.BuildURLMixin)){constructor(...e){super(...e),this.useFetch=!0,this._defaultContentType="application/json; charset=utf-8",this.maxURLLength=2048}get fastboot(){let e=this._fastboot
return e||(this._fastboot=(0,t.getOwner)(this).lookup("service:fastboot"))}set fastboot(e){this._fastboot=e}sortQueryParams(e){let t=Object.keys(e),r=t.length
if(r<2)return e
let i={},n=t.sort()
for(let s=0;s<r;s++)i[n[s]]=e[n[s]]
return i}get coalesceFindRequests(){let e=this._coalesceFindRequests
return"boolean"==typeof e?e:this._coalesceFindRequests=!1}set coalesceFindRequests(e){this._coalesceFindRequests=e}findRecord(e,t,r,i){let n=this.buildURL(t.modelName,r,i,"findRecord"),s=this.buildQuery(i)
return this.ajax(n,"GET",{data:s})}findAll(e,t,r,i){let n=this.buildQuery(i),s=this.buildURL(t.modelName,null,i,"findAll")
return r&&(n.since=r),this.ajax(s,"GET",{data:n})}query(e,t,r){let i=this.buildURL(t.modelName,null,null,"query",r)
return this.sortQueryParams&&(r=this.sortQueryParams(r)),this.ajax(i,"GET",{data:r})}queryRecord(e,t,r,i){let n=this.buildURL(t.modelName,null,null,"queryRecord",r)
return this.sortQueryParams&&(r=this.sortQueryParams(r)),this.ajax(n,"GET",{data:r})}findMany(e,t,r,i){let n=this.buildURL(t.modelName,r,i,"findMany")
return this.ajax(n,"GET",{data:{ids:r}})}findHasMany(e,t,r,i){let n=t.id,s=t.modelName
return r=this.urlPrefix(r,this.buildURL(s,n,t,"findHasMany")),this.ajax(r,"GET")}findBelongsTo(e,t,r,i){let n=t.id,s=t.modelName
return r=this.urlPrefix(r,this.buildURL(s,n,t,"findBelongsTo")),this.ajax(r,"GET")}createRecord(e,t,r){let i=this.buildURL(t.modelName,null,r,"createRecord")
const n=(0,a.serializeIntoHash)(e,t,r)
return this.ajax(i,"POST",{data:n})}updateRecord(e,t,r){const i=(0,a.serializeIntoHash)(e,t,r,{}),n=r.modelName,s=r.id
let o=this.buildURL(n,s,r,"updateRecord")
return this.ajax(o,"PUT",{data:i})}deleteRecord(e,t,r){const i=r.modelName,n=r.id
return this.ajax(this.buildURL(i,n,r,"deleteRecord"),"DELETE")}_stripIDFromURL(e,t){const r=t.modelName,i=t.id
let n=this.buildURL(r,i,t).split("/"),s=n[n.length-1]
var a,o
return decodeURIComponent(s)===i?n[n.length-1]="":i&&(a=s,o="?id="+i,"function"!=typeof String.prototype.endsWith?-1!==a.indexOf(o,a.length-o.length):a.endsWith(o))&&(n[n.length-1]=s.substring(0,s.length-i.length-1)),n.join("/")}groupRecordsForFindMany(e,t){let r=new Map,i=this,n=this.maxURLLength
t.forEach((t=>{let n=i._stripIDFromURL(e,t)
r.has(n)||r.set(n,[]),r.get(n).push(t)}))
let s=[]
return r.forEach(((t,r)=>{let a=function(t,r,n){let s=0,a=i._stripIDFromURL(e,t[0]),o=[[]]
return t.forEach((e=>{let t=encodeURIComponent(e.id).length+n
a.length+s+t>=r&&(s=0,o.push([])),s+=t
let i=o.length-1
o[i].push(e)})),o}(t,n,11)
a.forEach((e=>s.push(e)))})),s}handleResponse(e,t,r,i){if(this.isSuccess(e,t,r))return r
if(this.isInvalid(e,t,r))return new o.InvalidError("object"==typeof r&&"errors"in r?r.errors:void 0)
let n=this.normalizeErrorResponse(e,t,r),s=this.generatedDetailedMessage(e,t,r,i)
switch(e){case 401:return new o.UnauthorizedError(n,s)
case 403:return new o.ForbiddenError(n,s)
case 404:return new o.NotFoundError(n,s)
case 409:return new o.ConflictError(n,s)
default:if(e>=500)return new o.ServerError(n,s)}return new o.default(n,s)}isSuccess(e,t,r){return e>=200&&e<300||304===e}isInvalid(e,t,r){return 422===e}async ajax(e,t,r={}){let i=this,o={url:e,method:t}
if(this.useFetch){let n=i.ajaxOptions(e,t,r),s=await this._fetchRequest(n),l=await(0,a.determineBodyPromise)(s,o)
if(!s.ok||l instanceof Error)throw function(e,t,r,i,n){let s=w(r)
200===s.status&&t instanceof Error?(s.errorThrown=t,t=s.errorThrown.payload):(s.errorThrown=i,"string"==typeof t&&(t=e.parseErrorResponse(t)))
return v(e,t,n,s)}(i,l,s,null,o)
return function(e,t,r,i){let n=w(r)
return y(e,t,i,n)}(i,l,s,o)}{let a=i.ajaxOptions(e,t,r)
return new s.Promise((function(e,t){a.success=function(t,r,s){let a=function(e,t,r,i){let n=x(r)
return y(e,t,i,n)}(i,t,s,o);(0,n.join)(null,e,a)},a.error=function(e,r,s){let a=function(e,t,r,i){let n=x(t)
n.errorThrown=r
let s=e.parseErrorResponse(t.responseText)
return v(e,s,i,n)}(i,e,s,o);(0,n.join)(null,t,a)},i._ajax(a)}),"DS: RESTAdapter#ajax "+t+" to "+e)}}_ajaxRequest(e){"undefined"!=typeof jQuery&&jQuery.ajax(e)}_fetchRequest(e){let t=(0,a.fetch)()
if(t)return t(e.url,e)
throw new Error("cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?")}_ajax(e){this.useFetch?this._fetchRequest(e):this._ajaxRequest(e)}ajaxOptions(e,t,r){let i=Object.assign({url:e,method:t,type:t},r)
void 0!==this.headers?i.headers={...this.headers,...i.headers}:r.headers||(i.headers={})
let n=i.contentType||this._defaultContentType
return this.useFetch?(i.data&&"GET"!==i.type&&i.headers&&(i.headers["Content-Type"]||i.headers["content-type"]||(i.headers["content-type"]=n)),i=S(i,this)):(i.data&&"GET"!==i.type&&(i={...i,contentType:n}),i=function(e,t){e.dataType="json",e.context=t,e.data&&"GET"!==e.type&&(e.data=JSON.stringify(e.data))
return e.beforeSend=function(t){e.headers&&Object.keys(e.headers).forEach((r=>{let i=e.headers&&e.headers[r];(e=>"string"==typeof e)(i)&&t.setRequestHeader(r,i)}))},e}(i,this)),i.url=this._ajaxURL(i.url),i}_ajaxURL(e){if(this.fastboot?.isFastBoot){let r=/^https?:\/\//,i=/^\/\//,n=this.fastboot.request.protocol,s=this.fastboot.request.host
if(i.test(e))return`${n}${e}`
if(!r.test(e))try{return`${n}//${s}${e}`}catch(t){throw new Error("You are using Ember Data with no host defined in your adapter. This will attempt to use the host of the FastBoot request, which is not configured for the current host of this request. Please set the hostWhitelist property for in your environment.js. FastBoot Error: "+t.message)}}return e}parseErrorResponse(e){let t=e
try{t=JSON.parse(e)}catch(p){}return t}normalizeErrorResponse(e,t,r){return r&&"object"==typeof r&&"errors"in r&&Array.isArray(r.errors)?r.errors:[{status:`${e}`,title:"The backend responded with an error",detail:`${r}`}]}generatedDetailedMessage(e,t,r,i){let n,s=t["content-type"]||"Empty Content-Type"
return n="text/html"===s&&"string"==typeof r&&r.length>250?"[Omitted Lengthy HTML]":r,["Ember Data Request "+(i.method+" "+i.url)+" returned a "+e,"Payload ("+s+")",n].join("\n")}buildQuery(e){let t={}
if(e){let{include:r}=e
r&&(t.include=r)}return t}},h=u.prototype,p="fastboot",f=[c],m=Object.getOwnPropertyDescriptor(u.prototype,"fastboot"),g=u.prototype,b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(h,p,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),void 0===b.initializer&&Object.defineProperty(h,p,b),u)
var h,p,f,m,g,b
function y(e,t,r,i){let n
try{n=e.handleResponse(i.status,i.headers,t,r)}catch(a){return s.Promise.reject(a)}return n&&n.isAdapterError?s.Promise.reject(n):n}function v(e,t,r,i){let n
if(i.errorThrown instanceof Error&&""!==t)n=i.errorThrown
else if("timeout"===i.textStatus)n=new o.TimeoutError
else if("abort"===i.textStatus||0===i.status)n=function(e,t){let{method:r,url:i,errorThrown:n}=e,{status:s}=t,a=[{title:"Adapter Error",detail:`Request failed: ${r} ${i} ${n||""}`.trim(),status:s}]
return new o.AbortError(a)}(r,i)
else try{n=e.handleResponse(i.status,i.headers,t||i.errorThrown,r)}catch(p){n=p}return n}function w(e){return{status:e.status,textStatus:e.statusText,headers:_(e.headers)}}function x(e){return{status:e.status,textStatus:e.statusText,headers:(0,a.parseResponseHeaders)(e.getAllResponseHeaders())}}function _(e){let t={}
return e&&e.forEach(((e,r)=>t[r]=e)),t}function S(e,t){if(e.credentials=e.credentials||"same-origin",e.data)if("GET"===e.method||"HEAD"===e.method){if(Object.keys(e.data).length&&e.url){const t=e.url.indexOf("?")>-1?"&":"?"
e.url+=`${t}${(0,a.serializeQueryParams)(e.data)}`}}else"[object Object]"===Object.prototype.toString.call(e.data)?e.body=JSON.stringify(e.data):e.body=e.data
return e}e.default=d})),define("@ember-data/debug/index",["exports","@ember/array","@ember/debug","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/string","@ember/runloop","@ember-data/debug/setup"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({store:(0,s.inject)("store"),getFilters:()=>[{name:"isNew",desc:"New"},{name:"isModified",desc:"Modified"},{name:"isClean",desc:"Clean"}],_nameToClass(e){return this.store.modelFor(e)},watchModelTypes(e,t){const{store:r}=this,i=r._instanceCache.getRecordData,n=[],s=(0,l.typesMapFor)(r)
s.forEach(((i,a)=>{this.watchTypeIfUnseen(r,s,a,e,t,n)})),r._instanceCache.getRecordData=a=>((0,o.next)((()=>this.watchTypeIfUnseen(r,s,a.type,e,t,n))),i.call(r._instanceCache,a))
let a=()=>{n.forEach((e=>e())),r._instanceCache.getRecordData=i,s.forEach(((e,t)=>{s.set(t,!1)})),this.releaseMethods.removeObject(a)}
return this.releaseMethods.pushObject(a),a},watchTypeIfUnseen(e,t,r,i,n,s){if(!0!==t.get(r)){let a=e.modelFor(r),o=this.wrapModelType(a,r)
s.push(this.observeModelType(r,n)),i([o]),t.set(r,!0)}},columnNameToDesc:e=>(0,a.capitalize)((0,a.underscore)(e).replace(/_/g," ").trim()),columnsForType(e){let t=[{name:"id",desc:"Id"}],r=0,i=this
return e.attributes.forEach(((e,n)=>{if(r++>i.attributeLimit)return!1
let s=this.columnNameToDesc(n)
t.push({name:n,desc:s})})),t},getRecords(e,t){if(arguments.length<2){let r=e._debugContainerKey
if(r){let e=r.match(/model:(.*)/)
null!==e&&(t=e[1])}}return this.store.peekAll(t)},getRecordColumnValues(e){let t=0,r={id:e.id}
return e.eachAttribute((i=>{if(t++>this.attributeLimit)return!1
r[i]=e[i]})),r},getRecordKeywords(e){let r=[],i=(0,t.A)(["id"])
return e.eachAttribute((e=>i.push(e))),i.forEach((t=>r.push(e[t]))),r},getRecordFilterValues:e=>({isNew:e.isNew,isModified:e.hasDirtyAttributes&&!e.isNew,isClean:!e.hasDirtyAttributes}),getRecordColor(e){let t="black"
return e.isNew?t="green":e.hasDirtyAttributes&&(t="blue"),t},observeRecord(e,r){let i=(0,t.A)(),s=(0,t.A)(["id","isNew","hasDirtyAttributes"])
e.eachAttribute((e=>s.push(e)))
let a=this
s.forEach((function(t){let s=function(){r(a.wrapRecord(e))};(0,n.addObserver)(e,t,s),i.push((function(){(0,n.removeObserver)(e,t,s)}))}))
return function(){i.forEach((e=>e()))}}})})),define("@ember-data/debug/setup",["exports","@ember-data/store"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.typesMapFor=i
const r=new WeakMap
function i(e){let t=r.get(e)
return void 0===t&&(t=new Map,r.set(e,t)),t}Object.defineProperty(t.default.prototype,"_instanceCache",{get(){return this.__instanceCache},set(e){const t=e.getRecordData,r=this
e.getRecordData=function(e){const n=i(r)
return n.has(e.type)||n.set(e.type,!1),t.call(this,e)},this.__instanceCache=e}})
const n=t.default.prototype._createRecordData
t.default.prototype._createRecordData=function(e){const t=i(this)
return t.has(e.type)||t.set(e.type,!1),n.call(this,e)}
e.default={name:"@ember-data/data-adapter",initialize(){}}})),define("@ember-data/model/-private",["exports","@ember/debug","@ember/object","@ember-data/store","@ember-data/store/-private","@ember/string","@ember/object/compat","@ember/runloop","@glimmer/tracking","ember","rsvp","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/array","@ember/array/proxy","@ember/object/computed","@embroider/macros/es-compat2","@ember/object/internals","@ember-data/tracking/-private","ember-inflector","@ember/application"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y,v,w){"use strict"
const x=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},_=x(r),S=x(c),k=x(d),A=x(h),C=x(p),P=x(f),O=x(g)
function E(e){return(...t)=>function(e){let[t,r,i]=e
return 3===e.length&&("function"==typeof t||"object"==typeof t&&null!==t)&&"string"==typeof r&&("object"==typeof i&&null!==i&&"enumerable"in i&&"configurable"in i||void 0===i)}(t)?e()(...t):e(...t)}const T=E((function(e,t){"object"==typeof e?(t=e,e=void 0):t=t||{}
let s={type:e,isAttribute:!0,options:t}
return r.computed({get(e){if(!this.isDestroyed&&!this.isDestroying)return n.recordDataFor(this).getAttr(i.recordIdentifierFor(this),e)},set(e,t){const r=i.recordIdentifierFor(this),n=i.storeFor(this)._instanceCache.getRecordData(r)
if(n.getAttr(r,e)!==t&&(n.setAttr(r,e,t),!this.isValid)){const{errors:t}=this
t.get(e)&&(t.remove(e),this.currentState.cleanErrorRequests())}return t}}).meta(s)})),M=A.default.extend(k.default)
function I(e){const t=function(e){return M.create({promise:u.resolve(e)})}(e)
return t}var F,N,R,D,j,L,B
function $(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function z(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}const U=P.default
let q=(F=r.computed(),N=m.mapBy("content","message"),R=r.computed(),D=m.not("length"),j=class extends U{constructor(...e){super(...e),$(this,"messages",L,this),$(this,"isEmpty",B,this)}get errorsByAttributeName(){return new Map}errorsFor(e){let t=this.errorsByAttributeName,i=t.get(e)
return void 0===i&&(i=p.A(),t.set(e,i)),r.get(i,"[]"),i}get content(){return p.A()}unknownProperty(e){let t=this.errorsFor(e)
if(0!==t.length)return t}add(e,t){const r=this._findOrCreateMessages(e,t)
this.addObjects(r),this.errorsFor(e).addObjects(r),this.__record.currentState.notify("isValid"),this.notifyPropertyChange(e)}_findOrCreateMessages(e,t){let r=this.errorsFor(e),i=Array.isArray(t)?t:[t],n=new Array(i.length)
for(let s=0;s<i.length;s++){let t=i[s],a=r.findBy("message",t)
n[s]=a||{attribute:e,message:t}}return n}remove(e){if(this.isEmpty)return
let t=this.rejectBy("attribute",e)
this.content.setObjects(t)
let r=this.errorsFor(e)
for(let i=0;i<r.length;i++)r[i].attribute===e&&r.replace(i,1)
this.errorsByAttributeName.delete(e),this.__record.currentState.notify("isValid"),this.notifyPropertyChange(e),this.notifyPropertyChange("length")}clear(){if(this.isEmpty)return
let e=this.errorsByAttributeName,t=[]
e.forEach((function(e,r){t.push(r)})),e.clear(),t.forEach((e=>{this.notifyPropertyChange(e)})),this.__record.currentState.notify("isValid"),super.clear()}has(e){return this.errorsFor(e).length>0}},z(j.prototype,"errorsByAttributeName",[F],Object.getOwnPropertyDescriptor(j.prototype,"errorsByAttributeName"),j.prototype),L=z(j.prototype,"messages",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z(j.prototype,"content",[R],Object.getOwnPropertyDescriptor(j.prototype,"content"),j.prototype),B=z(j.prototype,"isEmpty",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j)
function H(e,t,r,i,n,s){return e?e.normalizeResponse(t,r,i,n,s):i}function V(e,t,r,i){let n=t.data?(s=t.data,a=(t,n)=>{const{id:s,type:a}=t
return function(e,t,r,i){let{id:n,type:s}=e
e.relationships||(e.relationships={})
let{relationships:a}=e,o=function(e,t,r,i){let{name:n}=r,{type:s}=t,a=function(e,t,r){const i=e.getSchemaDefinitionService().relationshipsDefinitionFor(t)[r]
if(!i)return null
if("function"==typeof i._inverseKey){const r=e.modelFor(t.type)
return i._inverseKey(e,r)}return i.options.inverse}(e,{type:s},n)
if(a){const t=e.getSchemaDefinitionService().relationshipsDefinitionFor({type:i})
let{kind:r}=t[a]
return{inverseKey:a,kind:r}}}(r,t,i,s)
if(o){let{inverseKey:e,kind:r}=o,i=a[e]&&a[e].data
"hasMany"===r&&void 0===i||(a[e]=a[e]||{},a[e].data=function(e,t,{id:r,type:i}){let n,s={id:r,type:i}
return"hasMany"===t?(n=e||[],e&&e.find((e=>e.type===s.type&&e.id===s.id))||n.push(s)):(n=e||{},Object.assign(n,s)),n}(i,r,t))}}(t,r,e,i),{id:s,type:a}},Array.isArray(s)?s.map(a):a(s)):null
var s,a
const o={}
"meta"in t&&(o.meta=t.meta),"links"in t&&(o.links=t.links),"data"in t&&(o.data=n)
const l={id:r.id,type:r.type,relationships:{[i.key]:o}}
return Array.isArray(t.included)||(t.included=[]),t.included.push(l),t}function G(e,...t){return function(){return e.apply(void 0,t)}}function W(e,t){let r=e.finally((()=>{t()||(r._subscribers.length=0)}))
return r}function X(e){return!(e.isDestroyed||e.isDestroying)}function K(e,t,r){return W(u.resolve(e,r).then((r=>(X(t),e))),(()=>X(t)))}class Y extends n.RecordArray{constructor(e){super(e),this.isLoaded=e.isLoaded||!1,this.isAsync=e.isAsync||!1,this.isPolymorphic=e.isPolymorphic||!1,this.identifier=e.identifier,this.key=e.key}[n.MUTATE](e,t,r){switch(e){case"length 0":this._manager.updateCache({op:"replaceRelatedRecords",record:this.identifier,field:this.key,value:[]})
break
case"replace cell":{const[e,r,i]=t
this._manager.updateCache({op:"replaceRelatedRecord",record:this.identifier,field:this.key,value:i,prior:r,index:e})
break}case"push":this._manager.updateCache({op:"addToRelatedRecords",record:this.identifier,field:this.key,value:J(t)})
break
case"pop":r&&this._manager.updateCache({op:"removeFromRelatedRecords",record:this.identifier,field:this.key,value:n.recordIdentifierFor(r)})
break
case"unshift":this._manager.updateCache({op:"addToRelatedRecords",record:this.identifier,field:this.key,value:J(t),index:0})
break
case"shift":r&&this._manager.updateCache({op:"removeFromRelatedRecords",record:this.identifier,field:this.key,value:n.recordIdentifierFor(r),index:0})
break
case"sort":this._manager.updateCache({op:"sortRelatedRecords",record:this.identifier,field:this.key,value:r.map(n.recordIdentifierFor)})
break
case"splice":{const[e,i,...s]=t
if(i>0&&s.length===this[n.SOURCE].length)return void this._manager.updateCache({op:"replaceRelatedRecords",record:this.identifier,field:this.key,value:J(s)})
i>0&&this._manager.updateCache({op:"removeFromRelatedRecords",record:this.identifier,field:this.key,value:r.map(n.recordIdentifierFor),index:e}),s?.length&&this._manager.updateCache({op:"addToRelatedRecords",record:this.identifier,field:this.key,value:J(s),index:e})
break}}}notify(){this[n.IDENTIFIER_ARRAY_TAG].shouldReset=!0,n.notifyArray(this)}reload(e){return this._manager.reloadHasMany(this.key,e)}createRecord(e){const{store:t}=this,r=t.createRecord(this.modelName,e)
return this.push(r),r}}function J(e){return e.map(Q)}function Q(e){if(e.then){let t=e.content
return n.recordIdentifierFor(t)}return n.recordIdentifierFor(e)}var Z,ee
Y.prototype.isAsync=!1,Y.prototype.isPolymorphic=!1,Y.prototype.identifier=null,Y.prototype.recordData=null,Y.prototype._inverseIsAsync=!1,Y.prototype.key="",Y.prototype.DEPRECATED_CLASS_NAME="ManyArray"
const te=M
let re=(Z=r.computed(),ie=(ee=class extends te{get meta(){}async reload(e){let{key:t,legacySupport:r}=this._belongsToState
return await r.reloadBelongsTo(t,e),this}}).prototype,ne="meta",se=[Z],ae=Object.getOwnPropertyDescriptor(ee.prototype,"meta"),oe=ee.prototype,le={},Object.keys(ae).forEach((function(e){le[e]=ae[e]})),le.enumerable=!!le.enumerable,le.configurable=!!le.configurable,("value"in le||le.initializer)&&(le.writable=!0),le=se.slice().reverse().reduce((function(e,t){return t(ie,ne,e)||e}),le),oe&&void 0!==le.initializer&&(le.value=le.initializer?le.initializer.call(oe):void 0,le.initializer=void 0),void 0===le.initializer&&Object.defineProperty(ie,ne,le),ee)
var ie,ne,se,ae,oe,le,ce,ue,de,he,pe,fe
function me(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function ge(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}let be=(ue=ge((ce=class{constructor(e,t){me(this,"content",ue,this),me(this,"isPending",de,this),me(this,"isRejected",he,this),me(this,"isFulfilled",pe,this),me(this,"isSettled",fe,this),this._update(e,t),this.isDestroyed=!1,this.isDestroying=!1
S.default.meta(this).hasMixin=e=>e===p.NativeArray||e===C.default}get length(){return this["[]"],this.content?this.content.length:0}get"[]"(){return this.content?.length&&this.content}forEach(e){this.content&&this.length&&this.content.forEach(e)}reload(e){return this.content.reload(e),this}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}destroy(){this.isDestroying=!0,this.isDestroyed=!0,this.content=null,this.promise=null}get links(){return this.content?this.content.links:void 0}get meta(){return this.content?this.content.meta:void 0}_update(e,t){void 0!==t&&(this.content=t),this.promise=function(e,t){return e.isPending=!0,e.isSettled=!1,e.isFulfilled=!1,e.isRejected=!1,u.resolve(t).then((t=>(e.isPending=!1,e.isFulfilled=!0,e.isSettled=!0,e.content=t,t)),(t=>{throw e.isPending=!1,e.isFulfilled=!1,e.isRejected=!0,e.isSettled=!0,t}))}(this,e)}static create({promise:e,content:t}){return new this(e,t)}}).prototype,"content",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge(ce.prototype,"length",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ce.prototype,"length"),ce.prototype),ge(ce.prototype,"[]",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ce.prototype,"[]"),ce.prototype),de=ge(ce.prototype,"isPending",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),he=ge(ce.prototype,"isRejected",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe=ge(ce.prototype,"isFulfilled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fe=ge(ce.prototype,"isSettled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge(ce.prototype,"links",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ce.prototype,"links"),ce.prototype),ge(ce.prototype,"meta",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ce.prototype,"meta"),ce.prototype),ce)
be.prototype.createRecord=function(...e){return this.content.createRecord(...e)},Object.defineProperty(be.prototype,"firstObject",{get(){return this.content?this.content.firstObject:void 0}}),Object.defineProperty(be.prototype,"lastObject",{get(){return this.content?this.content.lastObject:void 0}});["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{be.prototype[e]=function(...t){return S.default[e](this,...t)}}));["addArrayObserver","addObject","addObjects","any","arrayContentDidChange","arrayContentWillChange","clear","compact","every","filter","filterBy","find","findBy","getEach","includes","indexOf","insertAt","invoke","isAny","isEvery","lastIndexOf","map","mapBy","objectAt","objectsAt","popObject","pushObject","pushObjects","reduce","reject","rejectBy","removeArrayObserver","removeAt","removeObject","removeObjects","replace","reverseObjects","setEach","setObjects","shiftObject","slice","sortBy","toArray","uniq","uniqBy","unshiftObject","unshiftObjects","without"].forEach((e=>{be.prototype[e]=function(...t){return this.content[e](...t)}}))
var ye,ve
function we(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}let xe=O.default(require("ember-cached-decorator-polyfill")).cached
function _e(e){return Boolean(e&&e.links&&e.links.related)}let Se=(ye=class{constructor(e,t,r,i,n){this.___identifier=void 0,this.___token=void 0,this.___relatedToken=null,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"_ref",ve,this),this.graph=t,this.key=n,this.belongsToRelationship=i,this.type=i.definition.type,this.store=e,this.___identifier=r,this.___token=e._notificationManager.subscribe(r,((e,t,r)=>{"relationships"===t&&r===n&&this._ref++}))}destroy(){this.store._notificationManager.unsubscribe(this.___token),this.___token=null,this.___relatedToken&&(this.store._notificationManager.unsubscribe(this.___relatedToken),this.___relatedToken=null)}get identifier(){this._ref,this.___relatedToken&&(this.store._notificationManager.unsubscribe(this.___relatedToken),this.___relatedToken=null)
let e=this._resource()
if(e&&e.data){const t=this.store.identifierCache.getOrCreateRecordIdentifier(e.data)
return this.___relatedToken=this.store._notificationManager.subscribe(t,((e,t,r)=>{("identity"===t||"attributes"===t&&"id"===r)&&this._ref++})),t}return null}id(){return this.identifier?.id||null}link(){let e=this._resource()
if(_e(e)&&e.links){let t=e.links.related
return t&&"string"!=typeof t?t.href:t}return null}links(){let e=this._resource()
return e&&e.links?e.links:null}meta(){let e=null,t=this._resource()
return t&&t.meta&&"object"==typeof t.meta&&(e=t.meta),e}_resource(){return this.store._instanceCache.getRecordData(this.___identifier).getRelationship(this.___identifier,this.key)}remoteType(){return _e(this._resource())?"link":"id"}async push(e){let t=e
e.then&&(t=await u.resolve(e))
let r=this.store.push(t)
const{identifier:i}=this.belongsToRelationship
return this.store._join((()=>{this.graph.push({op:"replaceRelatedRecord",record:i,field:this.key,value:n.recordIdentifierFor(r)})})),r}value(){let e=this._resource()
return e&&e.data?this.store.peekRecord(e.data):null}load(e){return it.get(this.___identifier).getBelongsTo(this.key,e)}reload(e){return it.get(this.___identifier).reloadBelongsTo(this.key,e).then((()=>this.value()))}},ve=we(ye.prototype,"_ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),we(ye.prototype,"identifier",[xe,a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ye.prototype,"identifier"),ye.prototype),ye)
var ke,Ae
function Ce(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}let Pe=O.default(require("ember-cached-decorator-polyfill")).cached
let Oe=(ke=class{constructor(e,t,r,i,n){this.___token=void 0,this.___identifier=void 0,this.___relatedTokenMap=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"_ref",Ae,this),this.graph=t,this.key=n,this.hasManyRelationship=i,this.type=i.definition.type,this.store=e,this.___identifier=r,this.___token=e._notificationManager.subscribe(r,((e,t,r)=>{"relationships"===t&&r===n&&this._ref++})),this.___relatedTokenMap=new Map}destroy(){this.store._notificationManager.unsubscribe(this.___token),this.___relatedTokenMap.forEach((e=>{this.store._notificationManager.unsubscribe(e)})),this.___relatedTokenMap.clear()}get identifiers(){this._ref
let e=this._resource(),t=this.___relatedTokenMap
return this.___relatedTokenMap=new Map,e&&e.data?e.data.map((e=>{const r=this.store.identifierCache.getOrCreateRecordIdentifier(e)
let i=t.get(r)
return i?t.delete(r):i=this.store._notificationManager.subscribe(r,((e,t,r)=>{("identity"===t||"attributes"===t&&"id"===r)&&this._ref++})),this.___relatedTokenMap.set(r,i),r})):(t.forEach((e=>{this.store._notificationManager.unsubscribe(e)})),t.clear(),[])}_resource(){return this.store._instanceCache.getRecordData(this.___identifier).getRelationship(this.___identifier,this.key)}remoteType(){let e=this._resource()
return e&&e.links&&e.links.related?"link":"ids"}ids(){return this.identifiers.map((e=>e.id))}link(){let e=this._resource()
if(t=e,Boolean(t&&t.links&&t.links.related)&&e.links){let t=e.links.related
return t&&"string"!=typeof t?t.href:t}var t
return null}links(){let e=this._resource()
return e&&e.links?e.links:null}meta(){let e=null,t=this._resource()
return t&&t.meta&&"object"==typeof t.meta&&(e=t.meta),e}async push(e){let t,r=e
e.then&&(r=await u.resolve(e)),t=!Array.isArray(r)&&"object"==typeof r&&Array.isArray(r.data)?r.data:r
const{store:n}=this
let s=t.map((e=>{let t
return t="data"in e?n.push(e):n.push({data:e}),i.recordIdentifierFor(t)}))
const{identifier:a}=this.hasManyRelationship
return n._join((()=>{this.graph.push({op:"replaceRelatedRecords",record:a,field:this.key,value:s})})),this.load()}_isLoaded(){return!!this.hasManyRelationship.state.hasReceivedData&&this.hasManyRelationship.localState.every((e=>!0===this.store._instanceCache.recordIsLoaded(e,!0)))}value(){const e=it.get(this.___identifier)
return this._isLoaded()?e.getManyArray(this.key):(this._ref,null)}async load(e){return it.get(this.___identifier).getHasMany(this.key,e)}reload(e){return it.get(this.___identifier).reloadHasMany(this.key,e)}},Ae=Ce(ke.prototype,"_ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ce(ke.prototype,"identifiers",[Pe,a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ke.prototype,"identifiers"),ke.prototype),ke)
class Ee{constructor(e){this.record=e,this.store=n.storeFor(e),this.identifier=n.recordIdentifierFor(e),this.recordData=this.store._instanceCache.getRecordData(this.identifier),this._manyArrayCache=Object.create(null),this._relationshipPromisesCache=Object.create(null),this._relationshipProxyCache=Object.create(null),this.references=Object.create(null)}_syncArray(e){if(this.isDestroyed||this.isDestroying)return
const t=e[n.SOURCE],r=this.identifier
let[i,s]=this._getCurrentState(r,e.key)
s.meta&&(e.meta=s.meta),s.links&&(e.links=s.links),t.length=0,n.fastPush(t,i)}updateCache(e){this.recordData.update(e)}_findBelongsTo(e,t,r,i){return this._findBelongsToByJsonApiResource(t,this.identifier,r,i).then((t=>Te(this,e,r,t)),(t=>Te(this,e,r,null,t)))}reloadBelongsTo(e,t){let r=this._relationshipPromisesCache[e]
if(r)return r
const i=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e)
let n=this.recordData.getRelationship(this.identifier,e)
i.state.hasFailedLoadAttempt=!1,i.state.shouldForceReload=!0
let s=this._findBelongsTo(e,n,i,t)
return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("belongsTo",e,{promise:s}):s}getBelongsTo(e,t){const{identifier:r,recordData:i}=this
let n=i.getRelationship(this.identifier,e),s=n&&n.data?n.data:null
const a=this.store,o=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(a).get(this.identifier,e)
let l=o.definition.isAsync,c={key:e,store:a,legacySupport:this,modelName:o.definition.type}
if(l){if(o.state.hasFailedLoadAttempt)return this._relationshipProxyCache[e]
let r=this._findBelongsTo(e,n,o,t)
const i=s&&a._instanceCache.recordIsLoaded(s)
return this._updatePromiseProxyFor("belongsTo",e,{promise:r,content:i?a._instanceCache.getRecord(s):null,_belongsToState:c})}if(null===s)return null
return a._instanceCache.getRecord(s)}setDirtyBelongsTo(e,t){return this.recordData.update({op:"replaceRelatedRecord",record:this.identifier,field:e,value:Me(t)},!0)}_getCurrentState(e,t){let r=this.recordData.getRelationship(e,t,!0)
const i=this.store._instanceCache
let n=[]
if(r.data)for(let s=0;s<r.data.length;s++){const e=r.data[s]
i.recordIsLoaded(e,!0)&&n.push(e)}return[n,r]}getManyArray(e,t){{let r=this._manyArrayCache[e]
if(!t){t=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e).definition}if(!r){const[i,n]=this._getCurrentState(this.identifier,e)
r=new Y({store:this.store,type:t.type,identifier:this.identifier,recordData:this.recordData,identifiers:i,key:e,meta:n.meta||null,links:n.links||null,isPolymorphic:t.isPolymorphic,isAsync:t.isAsync,_inverseIsAsync:t.inverseIsAsync,manager:this,isLoaded:!t.isAsync,allowMutation:!0}),this._manyArrayCache[e]=r}return r}}fetchAsyncHasMany(e,t,r,i){{let n=this._relationshipPromisesCache[e]
if(n)return n
const s=this.recordData.getRelationship(this.identifier,e),a=this._findHasManyByJsonApiResource(s,this.identifier,t,i)
return a?(n=a.then((()=>Te(this,e,t,r)),(i=>Te(this,e,t,r,i))),this._relationshipPromisesCache[e]=n,n):(r.isLoaded=!0,u.resolve(r))}}reloadHasMany(e,t){{let r=this._relationshipPromisesCache[e]
if(r)return r
const i=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:n,state:s}=i
s.hasFailedLoadAttempt=!1,s.shouldForceReload=!0
let a=this.getManyArray(e,n),o=this.fetchAsyncHasMany(e,i,a,t)
return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("hasMany",e,{promise:o}):o}}getHasMany(e,t){{const r=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:i,state:n}=r
let s=this.getManyArray(e,i)
if(i.isAsync){if(n.hasFailedLoadAttempt)return this._relationshipProxyCache[e]
let i=this.fetchAsyncHasMany(e,r,s,t)
return this._updatePromiseProxyFor("hasMany",e,{promise:i,content:s})}return s}}_updatePromiseProxyFor(e,t,r){let i=this._relationshipProxyCache[t]
if("hasMany"===e){const{promise:e,content:n}=r
return i?i._update(e,n):i=this._relationshipProxyCache[t]=new be(e,n),i}if(i){const{promise:e,content:t}=r
void 0!==t&&i.set("content",t),i.set("promise",e)}else i=re.create(r),this._relationshipProxyCache[t]=i
return i}referenceFor(e,t){let r=this.references[t]
if(!r){const e=(0,O.default(require("@ember-data/record-data/-private")).graphFor)(this.store),i=e.get(this.identifier,t)
let n=i.definition.kind
"belongsTo"===n?r=new Se(this.store,e,this.identifier,i,t):"hasMany"===n&&(r=new Oe(this.store,e,this.identifier,i,t)),this.references[t]=r}return r}_findHasManyByJsonApiResource(e,t,r,i={}){{if(!e)return
const{definition:n,state:s}=r,a=this.store.adapterFor(n.type),{isStale:o,hasDematerializedInverse:l,hasReceivedData:c,isEmpty:d,shouldForceReload:h}=s,p=Ie(this.store,e)
if(e.links&&e.links.related&&("function"==typeof a.findHasMany||void 0===e.data)&&(h||l||o||!p&&!d)){const r=this.store.getSchemaDefinitionService().relationshipsDefinitionFor({type:n.inverseType})[n.key]
return function(e,t,r,i,n,s){const a=t._instanceCache.getRecord(r),o=t._instanceCache.createSnapshot(r,s)
let l=t.modelFor(n.type),c=i&&"string"!=typeof i?i.href:i,u=e.findHasMany(t,o,c,n),d=`DS: Handle Adapter#findHasMany of '${r.type}' : '${n.type}'`
return u=K(u,t,d),u=u.then((e=>{X(a)
let i=H(t.serializerFor(n.type),t,l,e,null,"findHasMany")
return i=V(t,i,r,n),t._push(i)}),null,`DS: Extract payload of '${r.type}' : hasMany '${n.type}'`),u=W(u,G(X,a)),u}(this.store.adapterFor(t.type),this.store,t,e.links.related,r,i)}const f=c&&!d,m=l||d&&Array.isArray(e.data)&&e.data.length>0
if(!h&&!o&&(f||m)){if(p)return
if(p)return
let t=new Array(e.data.length),r=this.store._instanceCache
for(let n=0;n<e.data.length;n++){const s=e.data[n]
t[n]=r._fetchDataIfNeededForIdentifier(s,i)}return u.all(t)}if(c&&!d||m){const t=e.data
let r=new Array(t.length)
const n=this.store._fetchManager
for(let e=0;e<t.length;e++){let s=t[e]
r[e]=n.scheduleFetch(s,i)}return u.all(r)}return}}_findBelongsToByJsonApiResource(e,t,r,i={}){if(!e)return u.resolve(null)
const n=e.data?e.data:null
let{isStale:s,hasDematerializedInverse:a,hasReceivedData:o,isEmpty:l,shouldForceReload:c}=r.state,d=n&&this.store._fetchManager.getPendingFetch(n,i)
if(d)return d
const h=Ie(this.store,e)
if(e.links?.related&&(c||a||s||!h&&!l)){const n=this.store.getSchemaDefinitionService().relationshipsDefinitionFor(this.identifier)[r.definition.key]
return function(e,t,r,i,n){const s=e._instanceCache.getRecord(t)
let a=e.adapterFor(t.type),o=e._instanceCache.createSnapshot(t,n),l=e.modelFor(i.type),c=r&&"string"!=typeof r?r.href:r,u=a.findBelongsTo(e,o,c,i),d=`DS: Handle Adapter#findBelongsTo of ${t.type} : ${i.type}`
return u=K(u,e,d),u=W(u,G(X,s)),u=u.then((r=>{X(s)
let n=H(e.serializerFor(i.type),e,l,r,null,"findBelongsTo")
return n.data||n.links||n.meta?(n=V(e,n,t,i),e._push(n)):null}),null,`DS: Extract payload of ${t.type} : ${i.type}`),u=W(u,G(X,s)),u}(this.store,t,e.links.related,n,i)}let p=o&&h&&!l,f=a||l&&e.data
const m=void 0===e.data||null===e.data
if(!c&&!s&&(p||f))return m?u.resolve(null):this.store._instanceCache._fetchDataIfNeededForIdentifier(n,i)
let g=!m&&null===e.data.id
return n&&g?u.resolve(n):n&&!m?this.store._fetchManager.scheduleFetch(n,i):u.resolve(null)}destroy(){this.isDestroying=!0
let e=this._manyArrayCache
this._manyArrayCache=Object.create(null),Object.keys(e).forEach((t=>{e[t].destroy()})),e=this._relationshipProxyCache,this._relationshipProxyCache=Object.create(null),Object.keys(e).forEach((t=>{const r=e[t]
r.destroy&&r.destroy()})),e=this.references,this.references=Object.create(null),Object.keys(e).forEach((t=>{e[t].destroy()})),this.isDestroyed=!0}}function Te(e,t,r,i,n){delete e._relationshipPromisesCache[t],r.state.shouldForceReload=!1
const s="hasMany"===r.definition.kind
if(s&&i.notify(),n){r.state.hasFailedLoadAttempt=!0
let i=e._relationshipProxyCache[t]
throw i&&!s&&i.content&&i.content.isDestroying&&i.set("content",null),n}return s&&(i.isLoaded=!0),r.state.hasFailedLoadAttempt=!1,r.state.isStale=!1,s||!i?i:e.store.peekRecord(i)}function Me(e){if(!e)return null
if(e.then){let t=e.content
return t?n.recordIdentifierFor(t):null}return n.recordIdentifierFor(e)}function Ie(e,t){const r=e._instanceCache,i=t.data
return Array.isArray(i)?i.every((e=>r.recordIsLoaded(e))):!i||r.recordIsLoaded(i)}function Fe(e,t,r,i){if("belongsTo"===i.kind)r.notifyPropertyChange(t)
else if("hasMany"===i.kind){let n=it.get(e),s=n&&n._manyArrayCache[t],a=n&&n._relationshipPromisesCache[t]
if(s&&a)return
s&&(s.notify(),i.options&&!i.options.async&&void 0!==i.options.async||r.notifyPropertyChange(t))}}function Ne(e,t,r,i){b.cacheFor(i,r)!==e._instanceCache.getRecordData(t).getAttr(t,r)&&i.notifyPropertyChange(r)}var Re,De,je,Le
function Be(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function $e(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}let ze=O.default(require("ember-cached-decorator-polyfill")).cached
const Ue=/^\/?data\/(attributes|relationships)\/(.*)/,qe=/^\/?data/
function He(e){return e&&!0===e.isAdapterError&&"InvalidError"===e.code}let Ve=(De=$e((Re=class{constructor(){Be(this,"ref",De,this),this.rev=1,this.isDirty=!0,this.value=void 0,this.t=!1}notify(){this.isDirty=!0,y.addToTransaction(this),this.rev++}consume(e){this.isDirty=!1,this.value=e}}).prototype,"ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Re)
const Ge=new WeakMap
function We(e,t){let r=Ge.get(e)
return r||(r=Object.create(null),Ge.set(e,r)),r[t]=r[t]||new Ve}function Xe(e,t,r){const i=r.get,n=r.set
return r.get=function(){let e=We(this,t)
return y.subscribe(e),e.isDirty&&e.consume(i.call(this)),e.value},r.set=function(e){We(this,t),n.call(this,e)},a.dependentKeyCompat(r),r}let Ke=(je=class{constructor(e){Be(this,"isSaving",Le,this)
const t=i.storeFor(e),r=n.recordIdentifierFor(e)
this.identifier=r,this.record=e,this.recordData=t._instanceCache.getRecordData(r),this.pendingCount=0,this.fulfilledCount=0,this.rejectedCount=0,this._errorRequests=[],this._lastError=null
let s=t.getRequestStateService(),a=t._notificationManager
const o=e=>{if("mutation"===e.type)switch(e.state){case"pending":this.isSaving=!0
break
case"rejected":this.isSaving=!1,this._lastError=e,e.response&&He(e.response.data)||this._errorRequests.push(e),Ye(this)
break
case"fulfilled":this._errorRequests=[],this._lastError=null,this.isSaving=!1,Ye(this)}else switch(e.state){case"pending":this.pendingCount++,this.notify("isLoading")
break
case"rejected":this.pendingCount--,this._lastError=e,e.response&&He(e.response.data)||this._errorRequests.push(e),this.notify("isLoading"),Ye(this)
break
case"fulfilled":this.pendingCount--,this.fulfilledCount++,this.notify("isLoading"),this.notify("isDirty"),Ye(this),this._errorRequests=[],this._lastError=null}}
s.subscribeForRecord(r,o)
{const e=s.getLastRequestForRecord(r)
e&&o(e)}this.handler=a.subscribe(r,((e,t,r)=>{switch(t){case"state":this.notify("isNew"),this.notify("isDeleted"),this.notify("isDirty")
break
case"attributes":this.notify("isEmpty"),this.notify("isDirty")
break
case"errors":this.updateInvalidErrors(this.record.errors),this.notify("isValid")}}))}destroy(){i.storeFor(this.record)._notificationManager.unsubscribe(this.handler)}notify(e){We(this,e).notify()}updateInvalidErrors(e){let t=this.recordData.getErrors(this.identifier)
e.clear()
for(let r=0;r<t.length;r++){let i=t[r]
if(i.source&&i.source.pointer){let t,r=i.source.pointer.match(Ue)
if(r?t=r[2]:-1!==i.source.pointer.search(qe)&&(t="base"),t){let r=i.detail||i.title
e.add(t,r)}}}}cleanErrorRequests(){this.notify("isValid"),this.notify("isError"),this.notify("adapterError"),this._errorRequests=[],this._lastError=null}get isLoading(){return!this.isLoaded&&this.pendingCount>0&&0===this.fulfilledCount}get isLoaded(){return!!this.isNew||(this.fulfilledCount>0||!this.isEmpty)}get isSaved(){let e=this.recordData
return this.isDeleted?e.isDeletionCommitted(this.identifier):!(this.isNew||this.isEmpty||!this.isValid||this.isDirty||this.isLoading)}get isEmpty(){let e=this.recordData
return!this.isNew&&e.isEmpty(this.identifier)}get isNew(){return this.recordData.isNew(this.identifier)}get isDeleted(){return this.recordData.isDeleted(this.identifier)}get isValid(){return 0===this.record.errors.length}get isDirty(){let e=this.recordData
return!(e.isDeletionCommitted(this.identifier)||this.isDeleted&&this.isNew)&&(this.isNew||e.hasChangedAttrs(this.identifier))}get isError(){return!!this._errorRequests[this._errorRequests.length-1]}get adapterError(){let e=this._lastError
return e?"rejected"===e.state&&e.response.data:null}get isPreloaded(){return!this.isEmpty&&this.isLoading}get stateName(){return this.isLoading?"root.loading":this.isEmpty?"root.empty":this.isDeleted?this.isSaving?"root.deleted.inFlight":this.isSaved?"root.deleted.saved":this.isValid?"root.deleted.uncommitted":"root.deleted.invalid":this.isNew?this.isSaving?"root.loaded.created.inFlight":this.isValid?"root.loaded.created.uncommitted":"root.loaded.created.invalid":this.isSaving?"root.loaded.updated.inFlight":this.isValid?this.isDirty?"root.loaded.updated.uncommitted":"root.loaded.saved":"root.loaded.updated.invalid"}get dirtyType(){return this.isLoading||this.isEmpty?"":this.isDeleted?"deleted":this.isNew?"created":this.isSaving||!this.isValid||this.isDirty?"updated":""}},Le=$e(je.prototype,"isSaving",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$e(je.prototype,"isLoading",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isLoading"),je.prototype),$e(je.prototype,"isLoaded",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isLoaded"),je.prototype),$e(je.prototype,"isSaved",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isSaved"),je.prototype),$e(je.prototype,"isEmpty",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isEmpty"),je.prototype),$e(je.prototype,"isNew",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isNew"),je.prototype),$e(je.prototype,"isDeleted",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isDeleted"),je.prototype),$e(je.prototype,"isValid",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isValid"),je.prototype),$e(je.prototype,"isDirty",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isDirty"),je.prototype),$e(je.prototype,"isError",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"isError"),je.prototype),$e(je.prototype,"adapterError",[Xe],Object.getOwnPropertyDescriptor(je.prototype,"adapterError"),je.prototype),$e(je.prototype,"isPreloaded",[ze],Object.getOwnPropertyDescriptor(je.prototype,"isPreloaded"),je.prototype),$e(je.prototype,"stateName",[ze],Object.getOwnPropertyDescriptor(je.prototype,"stateName"),je.prototype),$e(je.prototype,"dirtyType",[ze],Object.getOwnPropertyDescriptor(je.prototype,"dirtyType"),je.prototype),je)
function Ye(e){e.notify("isValid"),e.notify("isError"),e.notify("adapterError")}class Je{constructor(e){this._type="",this.__inverseKey="",this.__hasCalculatedInverse=!1,this.parentModelName=e.parentModelName,this.meta=e}get key(){return this.meta.key}get kind(){return this.meta.kind}get type(){return this._type||(this._type=function(e){let t=s.dasherize(e.type||e.key)
return"hasMany"===e.kind&&(t=v.singularize(t)),t}(this.meta)),this._type}get options(){return this.meta.options}get name(){return this.meta.name}_inverseKey(e,t){return!1===this.__hasCalculatedInverse&&this._calculateInverse(e,t),this.__inverseKey}_calculateInverse(e,t){let r
this.__hasCalculatedInverse=!0
let i=null;(function(e){let t=e.options
return!(t&&null===t.inverse)})(this.meta)&&(i=t.inverseFor(this.key,e)),r=i?i.name:null,this.__inverseKey=r}}var Qe,Ze,et
function tt(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}const{changeProperties:rt}=S.default,it=new Map
function nt(e){const t=i.recordIdentifierFor(e)
let r=it.get(t)
return r||(r=new Ee(e),it.set(t,r),it.set(e,r)),r}function st(e,t,r,i){let n=i||[],s=t.relationships
if(!s)return n
let a=s.get(e.modelName),o=Array.isArray(a)?a.filter((e=>{let t=e.options
return!t.inverse&&null!==t.inverse||r===t.inverse})):null
return o&&n.push.apply(n,o),e.superclass&&st(e.superclass,t,r,n),n}function at(e,t,r){const i=new WeakMap
let n=r.get
return r.get=function(){let e=i.get(this)
return e||(e={hasComputed:!1,value:void 0},i.set(this,e)),e.hasComputed||(e.value=n.call(this),e.hasComputed=!0),e.value},r}let ot=(et=class extends _.default{constructor(...e){super(...e),this.___private_notifications=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"isReloading",Ze,this)}init(e={}){const t=e._createProps,r=e._secretInit
e._createProps=null,e._secretInit=null
let i=this.store=r.store
super.init(e)
let n=r.identifier
r.cb(this,r.recordData,n,r.store),this.___recordState=null,this.setProperties(t)
let s=i._notificationManager
this.___private_notifications=s.subscribe(n,((e,t,r)=>{(function(e,t,r,i,n){if("attributes"===t)r?Ne(n,e,r,i):i.eachAttribute((t=>{Ne(n,e,t,i)}))
else if("relationships"===t)if(r){let t=i.constructor.relationshipsByName.get(r)
Fe(e,r,i,t)}else i.eachRelationship(((t,r)=>{Fe(e,t,i,r)}))
else"identity"===t&&i.notifyPropertyChange("id")})(e,t,r,this,i)}))}destroy(){const e=i.recordIdentifierFor(this)
this.___recordState?.destroy()
i.storeFor(this)._notificationManager.unsubscribe(this.___private_notifications),this.eachRelationship(((e,t)=>{"belongsTo"===t.kind&&this.notifyPropertyChange(e)})),it.get(this)?.destroy(),it.delete(this),it.delete(e),super.destroy()}get isEmpty(){return this.currentState.isEmpty}get isLoading(){return this.currentState.isLoading}get isLoaded(){return this.currentState.isLoaded}get hasDirtyAttributes(){return this.currentState.isDirty}get isSaving(){return this.currentState.isSaving}get isDeleted(){return this.currentState.isDeleted}get isNew(){return this.currentState.isNew}get isValid(){return this.currentState.isValid}get dirtyType(){return this.currentState.dirtyType}get isError(){return this.currentState.isError}set isError(e){}get id(){return i.recordIdentifierFor(this).id}set id(e){const t=n.coerceId(e),r=i.recordIdentifierFor(this)
let s=t!==r.id
null!==t&&s&&(this.store._instanceCache.setRecordId(r,t),this.store._notificationManager.notify(r,"identity"))}toString(){return`<model::${this.constructor.modelName}:${this.id}>`}get currentState(){return this.___recordState||(this.___recordState=new Ke(this)),this.___recordState}set currentState(e){throw new Error("cannot set currentState")}get errors(){let e=q.create({__record:this})
return this.currentState.updateInvalidErrors(e),e}get adapterError(){return this.currentState.adapterError}set adapterError(e){throw new Error("adapterError is not directly settable")}serialize(e){return i.storeFor(this)._instanceCache.createSnapshot(i.recordIdentifierFor(this)).serialize(e)}notifyPropertyChange(e){let t=function(e,t){let r=Ge.get(e)
return r&&r[t]}(this,e)
t&&t.notify(),super.notifyPropertyChange(e)}deleteRecord(){this.currentState&&i.storeFor(this).deleteRecord(this)}destroyRecord(e){const{isNew:t}=this.currentState
return this.deleteRecord(),t?u.resolve(this):this.save(e).then((e=>(o.run((()=>{this.unloadRecord()})),this)))}unloadRecord(){this.currentState.isNew&&(this.isDestroyed||this.isDestroying)||i.storeFor(this).unloadRecord(this)}_notifyProperties(e){rt((()=>{let t
for(let r=0,i=e.length;r<i;r++)t=e[r],this.notifyPropertyChange(t)}))}changedAttributes(){return n.recordDataFor(this).changedAttrs(i.recordIdentifierFor(this))}rollbackAttributes(){const{currentState:e}=this,{isNew:t}=e
i.storeFor(this)._join((()=>{n.recordDataFor(this).rollbackAttrs(i.recordIdentifierFor(this)),this.errors.clear(),e.cleanErrorRequests(),t&&this.unloadRecord()}))}_createSnapshot(){return i.storeFor(this)._instanceCache.createSnapshot(i.recordIdentifierFor(this))}save(e){let t
return t=this.currentState.isNew&&this.currentState.isDeleted?u.resolve(this):i.storeFor(this).saveRecord(this,e),I(t)}reload(e){let t={}
"object"==typeof e&&null!==e&&e.adapterOptions&&(t.adapterOptions=e.adapterOptions),t.isReloading=!0
let r=i.recordIdentifierFor(this)
this.isReloading=!0
return I(i.storeFor(this)._fetchManager.scheduleFetch(r,t).then((()=>this)).finally((()=>{this.isReloading=!1})))}attr(){}belongsTo(e){return nt(this).referenceFor("belongsTo",e)}hasMany(e){return nt(this).referenceFor("hasMany",e)}eachRelationship(e,t){this.constructor.eachRelationship(e,t)}relationshipFor(e){return this.constructor.relationshipsByName.get(e)}inverseFor(e){return this.constructor.inverseFor(e,i.storeFor(this))}eachAttribute(e,t){this.constructor.eachAttribute(e,t)}static typeForRelationship(e,t){let r=this.relationshipsByName.get(e)
return r&&t.modelFor(r.type)}static get inverseMap(){return Object.create(null)}static inverseFor(e,t){let r=this.inverseMap
if(r[e])return r[e]
{let i=this._findInverseFor(e,t)
return r[e]=i,i}}static _findInverseFor(e,t){const r=this.relationshipsByName.get(e),{options:i}=r,n=i.polymorphic,s=null===i.inverse,a=!s&&n&&!t.getSchemaDefinitionService().doesTypeExist(r.type)
if(s||a)return null
let o,l,c,u,d=this.typeForRelationship(e,t)
if(void 0!==i.inverse)o=i.inverse,c=d&&d.relationshipsByName.get(o),l=c.kind,u=c.options
else{r.type,r.parentModelName
let t=st(this,d,e)
if(0===t.length)return null
let i=t.find((t=>t.options.inverse===e))
i&&(t=[i]),o=t[0].name,l=t[0].kind,u=t[0].options}return{type:d,name:o,kind:l,options:u}}static get relationships(){let e=new Map
return this.relationshipsByName.forEach((t=>{let{type:r}=t
e.has(r)||e.set(r,[]),e.get(r).push(t)})),e}static get relationshipNames(){let e={hasMany:[],belongsTo:[]}
return this.eachComputedProperty(((t,r)=>{r.isRelationship&&e[r.kind].push(t)})),e}static get relatedTypes(){let e=[],t=this.relationshipsObject,r=Object.keys(t)
for(let i=0;i<r.length;i++){let n=t[r[i]].type;-1===e.indexOf(n)&&e.push(n)}return e}static get relationshipsByName(){let e=new Map,t=this.relationshipsObject,r=Object.keys(t)
for(let i=0;i<r.length;i++){let n=t[r[i]]
e.set(n.key,n)}return e}static get relationshipsObject(){let e=Object.create(null),t=this.modelName
return this.eachComputedProperty(((r,i)=>{i.isRelationship&&(i.key=r,i.name=r,i.parentModelName=t,e[r]=function(e){return new Je(e)}(i))})),e}static get fields(){let e=new Map
return this.eachComputedProperty(((t,r)=>{r.isRelationship?e.set(t,r.kind):r.isAttribute&&e.set(t,"attribute")})),e}static eachRelationship(e,t){this.relationshipsByName.forEach(((r,i)=>{e.call(t,i,r)}))}static eachRelatedType(e,t){let r=this.relatedTypes
for(let i=0;i<r.length;i++){let n=r[i]
e.call(t,n)}}static determineRelationshipType(e,t){let r,i=e.key,n=e.kind,s=this.inverseFor(i,t)
return s?(r=s.kind,"belongsTo"===r?"belongsTo"===n?"oneToOne":"manyToOne":"belongsTo"===n?"oneToMany":"manyToMany"):"belongsTo"===n?"oneToNone":"manyToNone"}static get attributes(){let e=new Map
return this.eachComputedProperty(((t,r)=>{r.isAttribute&&(r.name=t,e.set(t,r))})),e}static get transformedAttributes(){let e=new Map
return this.eachAttribute(((t,r)=>{r.type&&e.set(t,r.type)})),e}static eachAttribute(e,t){this.attributes.forEach(((r,i)=>{e.call(t,i,r)}))}static eachTransformedAttribute(e,t){this.transformedAttributes.forEach(((r,i)=>{e.call(t,i,r)}))}static toString(){return`model:${this.modelName}`}},et.isModel=!0,et.modelName=null,tt((Qe=et).prototype,"isEmpty",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isEmpty"),Qe.prototype),tt(Qe.prototype,"isLoading",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isLoading"),Qe.prototype),tt(Qe.prototype,"isLoaded",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isLoaded"),Qe.prototype),tt(Qe.prototype,"hasDirtyAttributes",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"hasDirtyAttributes"),Qe.prototype),tt(Qe.prototype,"isSaving",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isSaving"),Qe.prototype),tt(Qe.prototype,"isDeleted",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isDeleted"),Qe.prototype),tt(Qe.prototype,"isNew",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isNew"),Qe.prototype),tt(Qe.prototype,"isValid",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isValid"),Qe.prototype),tt(Qe.prototype,"dirtyType",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"dirtyType"),Qe.prototype),tt(Qe.prototype,"isError",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"isError"),Qe.prototype),Ze=tt(Qe.prototype,"isReloading",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tt(Qe.prototype,"id",[Xe],Object.getOwnPropertyDescriptor(Qe.prototype,"id"),Qe.prototype),tt(Qe.prototype,"currentState",[Xe],Object.getOwnPropertyDescriptor(Qe.prototype,"currentState"),Qe.prototype),tt(Qe.prototype,"errors",[at],Object.getOwnPropertyDescriptor(Qe.prototype,"errors"),Qe.prototype),tt(Qe.prototype,"adapterError",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Qe.prototype,"adapterError"),Qe.prototype),tt(Qe,"inverseMap",[at],Object.getOwnPropertyDescriptor(Qe,"inverseMap"),Qe),tt(Qe,"relationships",[at],Object.getOwnPropertyDescriptor(Qe,"relationships"),Qe),tt(Qe,"relationshipNames",[at],Object.getOwnPropertyDescriptor(Qe,"relationshipNames"),Qe),tt(Qe,"relatedTypes",[at],Object.getOwnPropertyDescriptor(Qe,"relatedTypes"),Qe),tt(Qe,"relationshipsByName",[at],Object.getOwnPropertyDescriptor(Qe,"relationshipsByName"),Qe),tt(Qe,"relationshipsObject",[at],Object.getOwnPropertyDescriptor(Qe,"relationshipsObject"),Qe),tt(Qe,"fields",[at],Object.getOwnPropertyDescriptor(Qe,"fields"),Qe),tt(Qe,"attributes",[at],Object.getOwnPropertyDescriptor(Qe,"attributes"),Qe),tt(Qe,"transformedAttributes",[at],Object.getOwnPropertyDescriptor(Qe,"transformedAttributes"),Qe),Qe)
function lt(e){if(e)return s.dasherize(e)}ot.prototype._createProps=null,ot.prototype._secretInit=null,ot.prototype._debugInfo=function(){let e=["id"],t={},r=[]
this.eachAttribute(((t,r)=>e.push(t)))
let i=[{name:"Attributes",properties:e,expand:!0}]
return this.eachRelationship(((e,n)=>{let s=t[n.kind]
void 0===s&&(s=t[n.kind]=[],i.push({name:n.kind,properties:s,expand:!0})),s.push(e),r.push(e)})),i.push({name:"Flags",properties:["isLoaded","hasDirtyAttributes","isSaving","isDeleted","isError","isNew","isValid"]}),{propertyInfo:{includeOtherProperties:!0,groups:i,expensiveProperties:r}}}
const ct=E((function(e,t){let i=t,n=e
"string"==typeof e&&e.length||("object"==typeof e?(i=e,n=void 0):(i=t,n=e)),i&&"boolean"==typeof i.async||(i=i||{},"async"in i||(i.async=!0)),null!==i.inverse&&("string"!=typeof i.inverse||i.inverse.length)
let s={type:lt(n),isRelationship:!0,options:i,kind:"belongsTo",name:"Belongs To",key:null}
return r.computed({get(e){if(this.isDestroying||this.isDestroyed)return null
return nt(this).getBelongsTo(e)},set(e,t){const r=nt(this)
return this.store._join((()=>{r.setDirtyBelongsTo(e,t)})),r.getBelongsTo(e)}}).meta(s)}))
function ut(e){if(e)return v.singularize(s.dasherize(e))}const dt=E((function(e,t){"string"==typeof e&&e.length||"object"==typeof e&&(t=e,e=void 0),t&&"boolean"==typeof t.async||"async"in(t=t||{})||(t.async=!0),null!==t.inverse&&("string"!=typeof t.inverse||t.inverse.length)
let i={type:ut(e),options:t,isRelationship:!0,kind:"hasMany",name:"Has Many",key:null}
return r.computed({get(e){return this.isDestroying||this.isDestroyed?p.A():nt(this).getHasMany(e)},set(e,t){const r=nt(this),i=r.getManyArray(e)
return this.store._join((()=>{i.splice(0,i.length,...t)})),r.getHasMany(e)}}).meta(i)}))
e.Errors=q,e.LEGACY_SUPPORT=it,e.ManyArray=Y,e.Model=ot,e.PromiseBelongsTo=re,e.PromiseManyArray=be,e._modelForMixin=function(e,t){let r=w.getOwner(e),i=r.factoryFor(`mixin:${t}`),n=i&&i.class
if(n){let e=ot.extend(n)
e.__isMixin=!0,e.__mixin=n,r.register("model:"+t,e)}return r.factoryFor(`model:${t}`)},e.attr=T,e.belongsTo=ct,e.diffArray=function(e,t){const r=e.length,i=t.length,n=Math.min(r,i)
let s=null
for(let l=0;l<n;l++)if(e[l]!==t[l]){s=l
break}null===s&&i!==r&&(s=n)
let a=0,o=0
if(null!==s){let l=n-s
for(let s=1;s<=n;s++)if(e[r-s]!==t[i-s]){l=s-1
break}a=i-l-s,o=r-l-s}return{firstChangeIndex:s,addedCount:a,removedCount:o}},e.hasMany=dt,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/model/index",["exports","@ember-data/model/-private"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"attr",{enumerable:!0,get:function(){return t.attr}}),Object.defineProperty(e,"belongsTo",{enumerable:!0,get:function(){return t.belongsTo}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.Model}}),Object.defineProperty(e,"hasMany",{enumerable:!0,get:function(){return t.hasMany}})})),define("@ember-data/record-data/-private",["exports","@ember/debug","@ember/runloop","@ember/utils","@ember-data/store/-private"],(function(e,t,r,i,n){"use strict"
function s(e){return e._store}function a(e,t,r){return(e[t]=e[t]||Object.create(null))[r]}function o(e,t,r,i){(e[t]=e[t]||Object.create(null))[r]=i}function l(e){if(!e.id)return!0
const t=n.recordDataFor(e)
return Boolean(t?.isNew(e))}function c(e){return"belongsTo"===e.definition.kind}function u(e){return e.definition.isImplicit}function d(e){return"hasMany"===e.definition.kind}function h(e,t){if(c(e))e.remoteState&&t(e.remoteState),e.localState&&e.localState!==e.remoteState&&t(e.localState)
else if(d(e)){let r=new Set
for(let i=0;i<e.localState.length;i++){const n=e.localState[i]
r.has(n)||(r.add(n),t(n))}for(let i=0;i<e.remoteState.length;i++){const n=e.remoteState[i]
r.has(n)||(r.add(n),t(n))}}else{let r=new Set
e.localMembers.forEach((e=>{r.has(e)||(r.add(e),t(e))})),e.remoteMembers.forEach((e=>{r.has(e)||(r.add(e),t(e))}))}}function p(e,t,r,i){if(c(t))t.remoteState===r&&(t.remoteState=null),t.localState===r&&(t.localState=null,i||f(e,t.identifier,t.definition.key))
else if(d(t)){t.remoteMembers.delete(r),t.localMembers.delete(r)
const n=t.remoteState.indexOf(r);-1!==n&&t.remoteState.splice(n,1)
const s=t.localState.indexOf(r);-1!==s&&(t.localState.splice(s,1),i||f(e,t.identifier,t.definition.key))}else t.remoteMembers.delete(r),t.localMembers.delete(r)}function f(e,t,r){t!==e._removing&&e.store.notifyChange(t,"relationships",r)}class m{constructor(e,t){this.definition=e,this.identifier=t,this._state=null,this.transactionRef=0,this.meta=null,this.links=null,this.localState=null,this.remoteState=null}get state(){let{_state:e}=this
return e||(e=this._state={hasReceivedData:!1,isEmpty:!0,isStale:!1,hasFailedLoadAttempt:!1,shouldForceReload:!1,hasDematerializedInverse:!1}),e}getData(){let e,t={}
return this.localState&&(e=this.localState),null===this.localState&&this.state.hasReceivedData&&(e=null),this.links&&(t.links=this.links),void 0!==e&&(t.data=e),this.meta&&(t.meta=this.meta),t}}class g{constructor(e,t){this.definition=e,this.identifier=t,this._state=null,this.transactionRef=0,this.localMembers=new Set,this.remoteMembers=new Set,this.meta=null,this.links=null,this.remoteState=[],this.localState=[]}get state(){let{_state:e}=this
return e||(e=this._state={hasReceivedData:!1,isEmpty:!0,isStale:!1,hasFailedLoadAttempt:!1,shouldForceReload:!1,hasDematerializedInverse:!1}),e}getData(){let e={}
return this.state.hasReceivedData&&(e.data=this.localState.slice()),this.links&&(e.links=this.links),this.meta&&(e.meta=this.meta),e}}const b=null,y="",v=Date.now()
function w(e,t){e.inverseKind=t.kind,e.inverseKey=t.key,e.inverseType=t.type,e.inverseIsAsync=t.isAsync,e.inverseIsCollection=t.isCollection,e.inverseIsPolymorphic=t.isPolymorphic,e.inverseIsImplicit=t.isImplicit}function x(e){let t={},r=e.options
return t.kind=e.kind,t.key=e.name,t.type=e.type,t.isAsync=r.async,t.isImplicit=!1,t.isCollection="hasMany"===e.kind,t.isPolymorphic=r&&!!r.polymorphic,t.inverseKey=r&&r.inverse||y,t.inverseType=y,t.inverseIsAsync=b,t.inverseIsImplicit=r&&null===r.inverse||b,t.inverseIsCollection=b,t}function _(e,t,r,i=!1){const n=e._definitionCache,l=e.store,c=e._potentialPolymorphicTypes,{type:u}=t
let d=a(n,u,r)
if(void 0!==d)return d
let h=l.getSchemaDefinitionService().relationshipsDefinitionFor(t)[r]
if(!h){if(c[u]){const e=Object.keys(c[u])
for(let t=0;t<e.length;t++){let i=a(n,e[t],r)
if(i)return o(n,u,r,i),i}}return n[u][r]=null,null}const p=x(h)
let f,m
const g=p.type
if(null===p.inverseKey)f=null
else if(m=function(e,t,r){const i=e.getSchemaDefinitionService().relationshipsDefinitionFor(t)[r]
if(!i)return null
if(function(e){return"function"==typeof e._inverseKey}(i)){const r=e.modelFor(t.type)
return i._inverseKey(e,r)}return i.options.inverse}(s(l),t,r),!m&&p.isPolymorphic&&p.inverseKey)f={kind:"belongsTo",key:p.inverseKey,type:u,isAsync:!1,isImplicit:!1,isCollection:!1,isPolymorphic:!1,isInitialized:!1}
else if(m){f=x(l.getSchemaDefinitionService().relationshipsDefinitionFor({type:g})[m])}else f=null
if(!f){m=function(e,t){return`implicit-${e}:${t}${v}`}(u,r),f={kind:"implicit",key:m,type:u,isAsync:!1,isImplicit:!0,isCollection:!0,isPolymorphic:!1},w(p,f),w(f,p)
const e={lhs_key:`${u}:${r}`,lhs_modelNames:[u],lhs_baseModelName:u,lhs_relationshipName:r,lhs_definition:p,lhs_isPolymorphic:p.isPolymorphic,rhs_key:"",rhs_modelNames:[],rhs_baseModelName:g,rhs_relationshipName:"",rhs_definition:f,rhs_isPolymorphic:!1,hasInverse:!1,isSelfReferential:u===g,isReflexive:!1}
return o(n,g,m,e),o(n,u,r,e),e}const b=f.type
if(d=a(n,b,r)||a(n,g,m),d){return(d.lhs_baseModelName===b?d.lhs_modelNames:d.rhs_modelNames).push(u),o(n,u,r,d),d}w(p,f),w(f,p)
const y=[u]
u!==b&&y.push(b)
const _=u===g,S={lhs_key:`${b}:${r}`,lhs_modelNames:y,lhs_baseModelName:b,lhs_relationshipName:r,lhs_definition:p,lhs_isPolymorphic:p.isPolymorphic,rhs_key:`${g}:${m}`,rhs_modelNames:[g],rhs_baseModelName:g,rhs_relationshipName:m,rhs_definition:f,rhs_isPolymorphic:f.isPolymorphic,hasInverse:!0,isSelfReferential:_,isReflexive:_&&r===m}
return o(n,b,r,S),o(n,u,r,S),o(n,g,m,S),S}function S(e,t,r){r?function(e,t,r){const i=t.value,n=e.get(t.record,t.field)
r&&e._addToTransaction(n)
n.state.hasReceivedData=!0
const{remoteState:s,remoteMembers:a,definition:o}=n,l=new Set(i),c=i.length,u=new Array(l.size),d=new Set
n.remoteMembers=d,n.remoteState=u
const{type:h}=n.definition
let p=!1
const f=s.length,m=f>c?f:c,g=f===c
for(let b=0,y=0;b<m;b++){let n=!1
if(b<c){const s=i[b]
d.has(s)||(h!==s.type&&e.registerPolymorphicType(h,s.type),u[y]=s,d.add(s),n=!0,a.has(s)||(p=!0,k(e,s,o.inverseKey,t.record,r)))}if(b<f){const i=s[b]
d.has(i)||(g&&u[y]!==i&&(p=!0),l.has(i)||(p=!0,A(e,i,o.inverseKey,t.record,r)))}n&&y++}C(e,n)}(e,t,r):function(e,t,r){const i=t.value,n=e.get(t.record,t.field)
n.state.hasReceivedData=!0
const{localState:s,localMembers:a,definition:o}=n,l=new Set(i),c=i.length,u=new Array(l.size),d=new Set
n.localMembers=d,n.localState=u
const{type:h}=n.definition
let p=!1
const m=s.length,g=m>c?m:c,b=m===c
for(let f=0,y=0;f<g;f++){let n=!1
if(f<c){const s=i[f]
d.has(s)||(h!==s.type&&e.registerPolymorphicType(h,s.type),u[y]=s,n=!0,d.add(s),a.has(s)||(p=!0,k(e,s,o.inverseKey,t.record,r)))}if(f<m){const i=s[f]
d.has(i)||(b&&u[f]!==i&&(p=!0),l.has(i)||(p=!0,A(e,i,o.inverseKey,t.record,r)))}n&&y++}p&&f(e,n.identifier,n.definition.key)}(e,t,r)}function k(e,t,r,i,n){const s=e.get(t,r),{type:a}=s.definition
a!==i.type&&e.registerPolymorphicType(a,i.type),c(s)?(s.state.hasReceivedData=!0,s.state.isEmpty=!1,n&&(e._addToTransaction(s),null!==s.remoteState&&A(e,s.remoteState,s.definition.inverseKey,t,n),s.remoteState=i),s.localState!==i&&(!n&&s.localState&&A(e,s.localState,s.definition.inverseKey,t,n),s.localState=i,f(e,s.identifier,s.definition.key))):d(s)?n?s.remoteMembers.has(i)||(e._addToTransaction(s),s.remoteState.push(i),s.remoteMembers.add(i),s.state.hasReceivedData=!0,C(e,s)):s.localMembers.has(i)||(s.localState.push(i),s.localMembers.add(i),s.state.hasReceivedData=!0,f(e,s.identifier,s.definition.key)):n?s.remoteMembers.has(i)||(s.remoteMembers.add(i),s.localMembers.add(i)):s.localMembers.has(i)||s.localMembers.add(i)}function A(e,t,r,i,n){const s=e.get(t,r)
if(c(s))s.state.isEmpty=!0,n&&(e._addToTransaction(s),s.remoteState=null),s.localState===i&&(s.localState=null,f(e,t,r))
else if(d(s)){if(n){e._addToTransaction(s)
let t=s.remoteState.indexOf(i);-1!==t&&(s.remoteMembers.delete(i),s.remoteState.splice(t,1))}let t=s.localState.indexOf(i);-1!==t&&(s.localMembers.delete(i),s.localState.splice(t,1)),f(e,s.identifier,s.definition.key)}else n?(s.remoteMembers.delete(i),s.localMembers.delete(i)):i&&s.localMembers.has(i)&&s.localMembers.delete(i)}function C(e,t){e._scheduleLocalSync(t)}function P(e,t,r,i,n,s){const{localMembers:a,localState:o}=t
if(a.has(i))return
const{type:l}=t.definition
l!==i.type&&e.registerPolymorphicType(i.type,l),t.state.hasReceivedData=!0,a.add(i),void 0===n?o.push(i):o.splice(n,0,i),k(e,i,t.definition.inverseKey,r,s)}function O(e,t,r){Object.keys(r).forEach((i=>{const n=r[i]
n&&function(e,t,r){r.identifier=t.value,h(r,(i=>{const n=e.get(i,r.definition.inverseKey);(function(e,t,r){c(t)?function(e,t,r){t.remoteState===r.record&&(t.remoteState=r.value)
t.localState===r.record&&(t.localState=r.record,f(e,t.identifier,t.definition.key))}(e,t,r):d(t)?function(e,t,r){if(t.remoteMembers.has(r.record)){t.remoteMembers.delete(r.record),t.remoteMembers.add(r.value)
const e=t.remoteState.indexOf(r.record)
t.remoteState.splice(e,1,r.value)}if(t.localMembers.has(r.record)){t.localMembers.delete(r.record),t.localMembers.add(r.value)
const i=t.localState.indexOf(r.record)
t.localState.splice(i,1,r.value),f(e,t.identifier,t.definition.key)}}(e,t,r):function(e,t,r){t.remoteMembers.has(r.record)&&(t.remoteMembers.delete(r.record),t.remoteMembers.add(r.value))
t.localMembers.has(r.record)&&(t.localMembers.delete(r.record),t.localMembers.add(r.value))}(0,t,r)})(e,n,t)}))}(e,t,n)}))}function E(e,t,r,i,n){const{localMembers:s,localState:a}=t
if(!s.has(i))return
s.delete(i)
let o=a.indexOf(i)
a.splice(o,1),A(e,i,t.definition.inverseKey,r,n)}function T(e,t,r=!1){const i=e.get(t.record,t.field)
r&&e._addToTransaction(i)
const{definition:n,state:s}=i,a=r?"remoteState":"localState",o=i[a]
if(t.value!==o)if(o&&A(e,o,n.inverseKey,t.record,r),i[a]=t.value,s.hasReceivedData=!0,s.isEmpty=null===t.value,s.isStale=!1,s.hasFailedLoadAttempt=!1,t.value&&(n.type!==t.value.type&&e.registerPolymorphicType(n.type,t.value.type),k(e,t.value,n.inverseKey,t.record,r)),r){const{localState:t,remoteState:r}=i
if(t&&l(t)&&!r)return
t!==r&&(i.localState=r,f(e,i.identifier,i.definition.key))}else f(e,i.identifier,i.definition.key)
else if(s.hasReceivedData=!0,r){const{localState:s}=i
if(s&&l(s)&&!o)return
o&&s===o?function(e,t,r,i,n){const s=e.get(t,r)
d(s)&&n&&s.remoteMembers.has(i)&&f(e,s.identifier,s.definition.key)}(e,o,n.inverseKey,t.record,r):(i.localState=o,f(e,i.identifier,i.definition.key))}}function M(e){switch(typeof e){case"object":return e
case"string":return{href:e}}}const I=new Map
class F{constructor(e){this._definitionCache=Object.create(null),this._potentialPolymorphicTypes=Object.create(null),this.identifiers=new Map,this.store=e,this.isDestroyed=!1,this._willSyncRemote=!1,this._willSyncLocal=!1,this._pushedUpdates={belongsTo:[],hasMany:[],deletions:[]},this._updatedRelationships=new Set,this._transaction=null,this._removing=null}has(e,t){let r=this.identifiers.get(e)
return!!r&&void 0!==r[t]}get(e,t){let r=this.identifiers.get(e)
r||(r=Object.create(null),this.identifiers.set(e,r))
let i=r[t]
if(!i){const n=_(this,e,t),s=function(e,t,r){let i=e.isSelfReferential
return!0==(r===e.lhs_relationshipName)&&(!0===i||t===e.lhs_baseModelName||e.rhs_isPolymorphic&&-1!==e.lhs_modelNames.indexOf(t))}(n,e.type,t)?n.lhs_definition:n.rhs_definition
if("implicit"!==s.kind){const n="hasMany"===s.kind?g:m
i=r[t]=new n(s,e)}else i=r[t]={definition:s,identifier:e,localMembers:new Set,remoteMembers:new Set}}return i}registerPolymorphicType(e,t){const r=this._potentialPolymorphicTypes
let i=r[e]
i||(i=r[e]=Object.create(null)),i[t]=!0
let n=r[t]
n||(n=r[t]=Object.create(null)),n[e]=!0}isReleasable(e){const t=this.identifiers.get(e)
if(!t)return!0
const r=Object.keys(t)
for(let i=0;i<r.length;i++){if(t[r[i]].definition.inverseIsAsync)return!1}return!0}unload(e,t){const r=this.identifiers.get(e)
r&&Object.keys(r).forEach((e=>{let i=r[e]
i&&(function(e,t,r){if(u(t))return void(e.isReleasable(t.identifier)&&R(e,t))
const{identifier:i}=t,{inverseKey:n}=t.definition
t.definition.inverseIsImplicit||h(t,(t=>function(e,t,r,i,n){if(!e.has(t,r))return
let s=e.get(t,r)
c(s)&&s.localState&&i!==s.localState||function(e,t,r,i){if(c(t)){const r=t.localState
!t.definition.isAsync||r&&l(r)?(t.localState===r&&null!==r&&(t.localState=null),t.remoteState===r&&null!==r&&(t.remoteState=null,t.state.hasReceivedData=!0,t.state.isEmpty=!0,t.localState&&!l(t.localState)&&(t.localState=null))):t.state.hasDematerializedInverse=!0,i||f(e,t.identifier,t.definition.key)}else!t.definition.isAsync||r&&l(r)?p(e,t,r):t.state.hasDematerializedInverse=!0,i||f(e,t.identifier,t.definition.key)}(e,s,i,n)}(e,t,n,i,r)))
t.definition.inverseIsImplicit||t.definition.inverseIsAsync||(t.state.isStale=!0,N(t),t.definition.isAsync||r||f(e,t.identifier,t.definition.key))}(this,i,t),u(i)&&(r[e]=void 0))}))}remove(e){this._removing=e,this.unload(e),this.identifiers.delete(e),this._removing=null}push(e){if("deleteRecord"===e.op)this._pushedUpdates.deletions.push(e)
else if("replaceRelatedRecord"===e.op)this._pushedUpdates.belongsTo.push(e)
else{const t=this.get(e.record,e.field)
this._pushedUpdates[t.definition.kind].push(e)}this._willSyncRemote||(this._willSyncRemote=!0,s(this.store)._schedule("coalesce",(()=>this._flushRemoteQueue())))}update(e,t=!1){switch(e.op){case"mergeIdentifiers":{const t=this.identifiers.get(e.record)
t&&O(this,e,t)
break}case"updateRelationship":(function(e,t){const r=e.get(t.record,t.field),{definition:i,state:n,identifier:s}=r,{isCollection:a}=i,o=t.value
let l=!1,c=!1
if(o.meta&&(r.meta=o.meta),void 0!==o.data)if(l=!0,a){null===o.data&&(o.data=[])
const r=e.store.identifierCache
e.update({op:"replaceRelatedRecords",record:s,field:t.field,value:o.data.map((e=>r.getOrCreateRecordIdentifier(e)))},!0)}else e.update({op:"replaceRelatedRecord",record:s,field:t.field,value:o.data?e.store.identifierCache.getOrCreateRecordIdentifier(o.data):null},!0)
else!1!==i.isAsync||n.hasReceivedData||(l=!0,a?e.update({op:"replaceRelatedRecords",record:s,field:t.field,value:[]},!0):e.update({op:"replaceRelatedRecord",record:s,field:t.field,value:null},!0))
if(o.links){let e=r.links
if(r.links=o.links,o.links.related){let t=M(o.links.related),r=e&&e.related?M(e.related):null,i=r?r.href:null
t&&t.href&&t.href!==i&&(c=!0)}}if(r.state.hasFailedLoadAttempt=!1,l){let e=null===o.data||Array.isArray(o.data)&&0===o.data.length
r.state.hasReceivedData=!0,r.state.isStale=!1,r.state.hasDematerializedInverse=!1,r.state.isEmpty=e}else c&&(a||!r.state.hasReceivedData||0===r.transactionRef?(r.state.isStale=!0,f(e,r.identifier,r.definition.key)):r.state.isStale=!1)})(this,e)
break
case"deleteRecord":{const t=e.record,r=this.identifiers.get(t)
r&&(Object.keys(r).forEach((e=>{const t=r[e]
t&&(r[e]=void 0,R(this,t))})),this.identifiers.delete(t))
break}case"replaceRelatedRecord":T(this,e,t)
break
case"addToRelatedRecords":(function(e,t,r){const{record:i,value:n,index:s}=t,a=e.get(i,t.field)
if(Array.isArray(n))for(let o=0;o<n.length;o++)P(e,a,i,n[o],void 0!==s?s+o:s,r)
else P(e,a,i,n,s,r)
f(e,a.identifier,a.definition.key)})(this,e,t)
break
case"removeFromRelatedRecords":(function(e,t,r){const{record:i,value:n}=t,s=e.get(i,t.field)
if(Array.isArray(n))for(let a=0;a<n.length;a++)E(e,s,i,n[a],r)
else E(e,s,i,n,r)
f(e,s.identifier,s.definition.key)})(this,e,t)
break
case"replaceRelatedRecords":S(this,e,t)}}_scheduleLocalSync(e){this._updatedRelationships.add(e),this._willSyncLocal||(this._willSyncLocal=!0,s(this.store)._schedule("sync",(()=>this._flushLocalQueue())))}_flushRemoteQueue(){if(!this._willSyncRemote)return
this._transaction=new Set,this._willSyncRemote=!1
const{deletions:e,hasMany:t,belongsTo:r}=this._pushedUpdates
this._pushedUpdates.deletions=[],this._pushedUpdates.hasMany=[],this._pushedUpdates.belongsTo=[]
for(let i=0;i<e.length;i++)this.update(e[i],!0)
for(let i=0;i<t.length;i++)this.update(t[i],!0)
for(let i=0;i<r.length;i++)this.update(r[i],!0)
this._finalize()}_addToTransaction(e){e.transactionRef++,this._transaction.add(e)}_finalize(){this._transaction&&(this._transaction.forEach((e=>e.transactionRef=0)),this._transaction=null)}_flushLocalQueue(){if(!this._willSyncLocal)return
this._willSyncLocal=!1
let e=this._updatedRelationships
this._updatedRelationships=new Set,e.forEach((e=>function(e,t){let r=t.remoteState,i=t.localState.filter((e=>l(e)&&-1===r.indexOf(e))),n=t.localState
t.localState=r.concat(i)
let s=t.localMembers=new Set
t.remoteMembers.forEach((e=>s.add(e)))
for(let a=0;a<i.length;a++)s.add(i[a])
if(n.length!==t.localState.length)f(e,t.identifier,t.definition.key)
else for(let a=0;a<n.length;a++)if(n[a]!==t.localState[a]){f(e,t.identifier,t.definition.key)
break}}(this,e)))}destroy(){I.delete(this.store),this.identifiers.clear(),this.store=null,this.isDestroyed=!0}}function N(e){c(e)?(e.localState=null,e.remoteState=null,e.state.hasReceivedData=!1,e.state.isEmpty=!0):(e.localMembers.clear(),e.remoteMembers.clear(),e.localState=[],e.remoteState=[])}function R(e,t){const{identifier:r}=t,{inverseKey:i}=t.definition
h(t,(t=>{e.has(t,i)&&p(e,e.get(t,i),r)})),c(t)?(t.definition.isAsync||N(t),t.localState=null):d(t)?t.definition.isAsync||(N(t),f(e,t.identifier,t.definition.key)):(t.remoteMembers.clear(),t.localMembers.clear())}function D(e){return void 0!==e._instanceCache?e._instanceCache._storeWrapper:e}function j(e){return I.get(D(e))}function L(e){const t=D(e)
let r=I.get(t)
return r||(r=new F(t),I.set(t,r)),r}const B={iterator:()=>({next:()=>({done:!0,value:void 0})})}
function $(e){return"belongsTo"===e.definition.kind?e.remoteState?[e.remoteState]:[]:e.remoteState}function z(e,t,r){if(r)for(let i=0;i<r.length;i++)e.notifyChange(t,"attributes",r[i])
else e.notifyChange(t,"attributes")}function U(e,t){let r=[]
if(t){const n=Object.keys(t),s=n.length,a=e.localAttrs,o=Object.assign(Object.create(null),e.remoteAttrs,e.inflightAttrs)
for(let e=0;e<s;e++){let s=n[e],l=t[s]
a&&void 0!==a[s]||(i.isEqual(o[s],l)||r.push(s))}}return r}function q(e,t,r){const i=e.getSchemaDefinitionService().relationshipsDefinitionFor(t),n=Object.keys(i)
for(let s=0;s<n.length;s++){const i=n[s],a=r.relationships[i]
a&&L(e).push({op:"updateRelationship",record:t,field:i,value:a})}}function H(e){const{localAttrs:t,remoteAttrs:r,inflightAttrs:i,changes:n}=e
if(!t)return!1
let s=!1,a=Object.keys(t)
for(let o=0,l=a.length;o<l;o++){let e=a[o];(i&&e in i?i[e]:r&&e in r?r[e]:void 0)===t[e]&&(s=!0,delete t[e],delete n[e])}return s}function V(e,t){const r=j(e),i=r?.identifiers.get(t)
if(!i)return B
const n=[]
Object.keys(i).forEach((e=>{const t=i[e]
t&&!u(t)&&n.push(t)}))
let s=0,a=0,o=0
return{iterator:()=>({next:()=>{const e=(()=>{for(;s<n.length;){for(;a<2;){let t=0===a?"belongsTo"===(e=n[s]).definition.kind?e.localState?[e.localState]:[]:e.localState:$(n[s])
for(;o<t.length;){let e=t[o++]
if(null!==e)return e}o=0,a++}a=0,s++}var e})()
return{value:e,done:void 0===e}}})}}e.RecordData=class{constructor(e){this.version="2",this.__storeWrapper=void 0,this.__cache=new Map,this.__destroyedCache=new Map,this.__storeWrapper=e}createCache(e){this.__cache.set(e,{remoteAttrs:null,localAttrs:null,inflightAttrs:null,changes:null,errors:null,isNew:!1,isDeleted:!1,isDeletionCommitted:!1})}__peek(e,t=!1){let r=this.__cache.get(e)
return!r&&t&&(r=this.__destroyedCache.get(e)),r}pushData(e,t,r){let i
const n=this.__peek(e)
return n.isNew&&(n.isNew=!1,this.__storeWrapper.notifyChange(e,"state")),r&&(i=U(n,t.attributes)),n.remoteAttrs=Object.assign(n.remoteAttrs||Object.create(null),t.attributes),n.localAttrs&&H(n)&&this.__storeWrapper.notifyChange(e,"state"),t.relationships&&q(this.__storeWrapper,e,t),i&&i.length&&z(this.__storeWrapper,e,i),i}sync(e){if("mergeIdentifiers"===e.op){const t=this.__cache.get(e.record)
t&&(this.__cache.set(e.value,t),this.__cache.delete(e.record)),L(this.__storeWrapper).update(e,!0)}}update(e){L(this.__storeWrapper).update(e,!1)}clientDidCreate(e,t){this.__peek(e).isNew=!0
let r={}
if(void 0!==t){const i=this.__storeWrapper
let n=i.getSchemaDefinitionService().attributesDefinitionFor(e),s=i.getSchemaDefinitionService().relationshipsDefinitionFor(e)
const a=L(i)
let o=Object.keys(t)
for(let l=0;l<o.length;l++){let i=o[l],c=t[i]
if("id"===i)continue
const u=s[i]||n[i]
let d
switch(void 0!==u?"kind"in u?u.kind:"attribute":null){case"attribute":this.setAttr(e,i,c)
break
case"belongsTo":this.update({op:"replaceRelatedRecord",field:i,record:e,value:c}),d=a.get(e,i),d.state.hasReceivedData=!0,d.state.isEmpty=!1
break
case"hasMany":this.update({op:"replaceRelatedRecords",field:i,record:e,value:c}),d=a.get(e,i),d.state.hasReceivedData=!0,d.state.isEmpty=!1
break
default:r[i]=c}}}return r}willCommit(e){const t=this.__peek(e)
t.inflightAttrs=t.localAttrs,t.localAttrs=null}didCommit(e,t){const r=this.__peek(e)
let i
r.isDeleted&&(L(this.__storeWrapper).push({op:"deleteRecord",record:e,isNew:!1}),r.isDeletionCommitted=!0),r.isNew=!1,t&&(t.id&&this.__storeWrapper.setRecordId(e,t.id),t.relationships&&q(this.__storeWrapper,e,t),i=t.attributes)
let n=U(r,i)
r.remoteAttrs=Object.assign(r.remoteAttrs||Object.create(null),r.inflightAttrs,i),r.inflightAttrs=null,H(r),r.errors&&(r.errors=null,this.__storeWrapper.notifyChange(e,"errors")),z(this.__storeWrapper,e,n),this.__storeWrapper.notifyChange(e,"state")}commitWasRejected(e,t){const r=this.__peek(e)
if(r.inflightAttrs){let e=Object.keys(r.inflightAttrs)
if(e.length>0){let t=r.localAttrs=r.localAttrs||Object.create(null)
for(let i=0;i<e.length;i++)void 0===t[e[i]]&&(t[e[i]]=r.inflightAttrs[e[i]])}r.inflightAttrs=null}t&&(r.errors=t),this.__storeWrapper.notifyChange(e,"errors")}unloadRecord(e){const t=this.__peek(e),i=this.__storeWrapper
j(i)?.unload(e),t.localAttrs=null,t.remoteAttrs=null,t.inflightAttrs=null
let n=function(e,t){let r=[],i=[],n=new Set
i.push(t)
for(;i.length>0;){let s=i.shift()
r.push(s),n.add(s)
const a=V(e,t).iterator()
for(let e=a.next();!e.done;e=a.next()){const t=e.value
t&&!n.has(t)&&(n.add(t),i.push(t))}}return r}(i,e)
if(function(e,t){for(let r=0;r<t.length;++r){let i=t[r]
if(e.hasRecord(i))return!1}return!0}(i,n))for(let r=0;r<n.length;++r){let e=n[r]
i.disconnectRecord(e)}this.__cache.delete(e),this.__destroyedCache.set(e,t),1===this.__destroyedCache.size&&r.schedule("destroy",(()=>{setTimeout((()=>{this.__destroyedCache.clear()}),100)}))}getAttr(e,t){const r=this.__peek(e,!0)
if(r.localAttrs&&t in r.localAttrs)return r.localAttrs[t]
if(r.inflightAttrs&&t in r.inflightAttrs)return r.inflightAttrs[t]
if(r.remoteAttrs&&t in r.remoteAttrs)return r.remoteAttrs[t]
{const r=this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(e)[t]
return function(e){if(!e)return
if("function"==typeof e.defaultValue)return e.defaultValue()
return e.defaultValue}(r?.options)}}setAttr(e,t,r){const i=this.__peek(e),n=i.inflightAttrs&&t in i.inflightAttrs?i.inflightAttrs[t]:i.remoteAttrs&&t in i.remoteAttrs?i.remoteAttrs[t]:void 0
n!==r?(i.localAttrs=i.localAttrs||Object.create(null),i.localAttrs[t]=r,i.changes=i.changes||Object.create(null),i.changes[t]=[n,r]):i.localAttrs&&(delete i.localAttrs[t],delete i.changes[t]),this.__storeWrapper.notifyChange(e,"attributes",t)}changedAttrs(e){return this.__peek(e).changes||Object.create(null)}hasChangedAttrs(e){const t=this.__peek(e,!0)
return null!==t.localAttrs&&Object.keys(t.localAttrs).length>0}rollbackAttrs(e){const t=this.__peek(e)
let r
return t.isDeleted=!1,null!==t.localAttrs&&(r=Object.keys(t.localAttrs),t.localAttrs=null,t.changes=null),t.isNew&&(L(this.__storeWrapper).push({op:"deleteRecord",record:e,isNew:!0}),t.isDeleted=!0,t.isNew=!1),t.inflightAttrs=null,t.errors&&(t.errors=null,this.__storeWrapper.notifyChange(e,"errors")),this.__storeWrapper.notifyChange(e,"state"),r&&r.length&&z(this.__storeWrapper,e,r),r||[]}getRelationship(e,t){return L(this.__storeWrapper).get(e,t).getData()}setIsDeleted(e,t){const r=this.__peek(e)
r.isDeleted=t,r.isNew&&L(this.__storeWrapper).push({op:"deleteRecord",record:e,isNew:!0}),this.__storeWrapper.notifyChange(e,"state")}getErrors(e){return this.__peek(e,!0).errors||[]}isEmpty(e){const t=this.__peek(e,!0)
return null===t.remoteAttrs&&null===t.inflightAttrs&&null===t.localAttrs}isNew(e){return this.__peek(e,!0).isNew}isDeleted(e){return this.__peek(e,!0).isDeleted}isDeletionCommitted(e){return this.__peek(e,!0).isDeletionCommitted}},e.graphFor=L,e.peekGraph=j,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/serializer/-private",["exports","@ember/array","@ember/debug","@ember/object/mixin","@ember/string","@ember/utils","@ember/object"],(function(e,t,r,i,n,s,a){"use strict"
const o=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},l=o(i),c=o(a),u=l.default.create({normalize(e,t,r){let i=this._super(e,t,r)
return this._extractEmbeddedRecords(this,this.store,e,i)},keyForRelationship(e,t,r){return"serialize"===r&&this.hasSerializeRecordsOption(e)||"deserialize"===r&&this.hasDeserializeRecordsOption(e)?this.keyForAttribute(e,r):this._super(e,t,r)||e},serializeBelongsTo(e,t,r){let i=r.key
if(this.noSerializeOptionSpecified(i))return void this._super(e,t,r)
let n=this.hasSerializeIdsOption(i),s=this.hasSerializeRecordsOption(i),a=e.belongsTo(i)
if(n){let i=this.store.modelFor(e.modelName),n=this._getMappedKey(r.key,i)
n===r.key&&this.keyForRelationship&&(n=this.keyForRelationship(r.key,r.kind,"serialize")),a?(t[n]=a.id,r.options.polymorphic&&this.serializePolymorphicType(e,t,r)):t[n]=null}else s&&this._serializeEmbeddedBelongsTo(e,t,r)},_serializeEmbeddedBelongsTo(e,t,r){let i=e.belongsTo(r.key),n=this.store.modelFor(e.modelName),s=this._getMappedKey(r.key,n)
s===r.key&&this.keyForRelationship&&(s=this.keyForRelationship(r.key,r.kind,"serialize")),i?(t[s]=i.serialize({includeId:!0}),this.removeEmbeddedForeignKey(e,i,r,t[s]),r.options.polymorphic&&this.serializePolymorphicType(e,t,r)):t[s]=null},serializeHasMany(e,t,r){let i=r.key
if(this.noSerializeOptionSpecified(i))this._super(e,t,r)
else if(this.hasSerializeIdsOption(i)){let n=this.store.modelFor(e.modelName),s=this._getMappedKey(r.key,n)
s===r.key&&this.keyForRelationship&&(s=this.keyForRelationship(r.key,r.kind,"serialize")),t[s]=e.hasMany(i,{ids:!0})}else this.hasSerializeRecordsOption(i)?this._serializeEmbeddedHasMany(e,t,r):this.hasSerializeIdsAndTypesOption(i)&&this._serializeHasManyAsIdsAndTypes(e,t,r)},_serializeHasManyAsIdsAndTypes(e,r,i){let n=this.keyForAttribute(i.key,"serialize"),s=e.hasMany(i.key)
r[n]=t.A(s).map((function(e){return{id:e.id,type:e.modelName}}))},_serializeEmbeddedHasMany(e,t,r){let i=this.store.modelFor(e.modelName),n=this._getMappedKey(r.key,i)
n===r.key&&this.keyForRelationship&&(n=this.keyForRelationship(r.key,r.kind,"serialize")),t[n]=this._generateSerializedHasMany(e,r)},_generateSerializedHasMany(e,r){let i=e.hasMany(r.key),n=t.A(i),s=new Array(n.length)
for(let t=0;t<n.length;t++){let i=n[t],a=i.serialize({includeId:!0})
this.removeEmbeddedForeignKey(e,i,r,a),s[t]=a}return s},removeEmbeddedForeignKey(e,t,r,i){if("belongsTo"===r.kind){let n=this.store.modelFor(e.modelName).inverseFor(r.key,this.store)
if(n){let e=n.name,r=this.store.serializerFor(t.modelName).keyForRelationship(e,n.kind,"deserialize")
r&&delete i[r]}}},hasEmbeddedAlwaysOption(e){let t=this.attrsOption(e)
return t&&"always"===t.embedded},hasSerializeRecordsOption(e){let t=this.hasEmbeddedAlwaysOption(e),r=this.attrsOption(e)
return t||r&&"records"===r.serialize},hasSerializeIdsOption(e){let t=this.attrsOption(e)
return t&&("ids"===t.serialize||"id"===t.serialize)},hasSerializeIdsAndTypesOption(e){let t=this.attrsOption(e)
return t&&("ids-and-types"===t.serialize||"id-and-type"===t.serialize)},noSerializeOptionSpecified(e){let t=this.attrsOption(e)
return!(t&&(t.serialize||t.embedded))},hasDeserializeRecordsOption(e){let t=this.hasEmbeddedAlwaysOption(e),r=this.attrsOption(e)
return t||r&&"records"===r.deserialize},attrsOption(e){let t=this.attrs
return t&&(t[n.camelize(e)]||t[e])},_extractEmbeddedRecords(e,t,r,i){return r.eachRelationship(((r,n)=>{e.hasDeserializeRecordsOption(r)&&("hasMany"===n.kind&&this._extractEmbeddedHasMany(t,r,i,n),"belongsTo"===n.kind&&this._extractEmbeddedBelongsTo(t,r,i,n))})),i},_extractEmbeddedHasMany(e,t,r,i){let n=r.data?.relationships?.[t]?.data
if(!n)return
let s=new Array(n.length)
for(let o=0;o<n.length;o++){let t=n[o],{data:a,included:l}=this._normalizeEmbeddedRelationship(e,i,t)
r.included=r.included||[],r.included.push(a),l&&(r.included=r.included.concat(l)),s[o]={id:a.id,type:a.type}}let a={data:s}
r.data.relationships[t]=a},_extractEmbeddedBelongsTo(e,t,r,i){let n=r.data?.relationships?.[t]?.data
if(!n)return
let{data:s,included:a}=this._normalizeEmbeddedRelationship(e,i,n)
r.included=r.included||[],r.included.push(s),a&&(r.included=r.included.concat(a))
let o={data:{id:s.id,type:s.type}}
r.data.relationships[t]=o},_normalizeEmbeddedRelationship(e,t,r){let i=t.type
t.options.polymorphic&&(i=r.type)
let n=e.modelFor(i)
return e.serializerFor(i).normalize(n,r,null)},isEmbeddedRecordsMixin:!0})
class d extends c.default{}function h(e){return e==e&&e!==1/0&&e!==-1/0}e.BooleanTransform=class extends d{deserialize(e,t){if(s.isNone(e)&&!0===t.allowNull)return null
let r=typeof e
return"boolean"===r?e:"string"===r?/^(true|t|1)$/i.test(e):"number"===r&&1===e}serialize(e,t){return s.isNone(e)&&!0===t.allowNull?null:Boolean(e)}},e.DateTransform=class extends d{deserialize(e){let t=typeof e
if("string"===t){let t=e.indexOf("+")
return-1!==t&&e.length-5===t?(t+=3,new Date(e.slice(0,t)+":"+e.slice(t))):new Date(e)}return"number"===t?new Date(e):null==e?e:null}serialize(e){return e instanceof Date&&!isNaN(e)?e.toISOString():null}},e.EmbeddedRecordsMixin=u,e.NumberTransform=class extends d{deserialize(e){let t
return""===e||null==e?null:(t=Number(e),h(t)?t:null)}serialize(e){let t
return""===e||null==e?null:(t=Number(e),h(t)?t:null)}},e.StringTransform=class extends d{deserialize(e){return s.isNone(e)?null:String(e)}serialize(e){return s.isNone(e)?null:String(e)}},e.Transform=d,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/serializer/index",["exports","@ember/object","@ember/service"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="store",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}normalize(e,t){return t}},s=i.prototype,a="store",o=[r.inject],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("@ember-data/serializer/json-api",["exports","@ember/debug","@ember/string","@ember/utils","ember-inflector","@ember-data/serializer/json"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=s.default.extend({_normalizeDocumentHelper(e){if("object"===(0,i.typeOf)(e.data))e.data=this._normalizeResourceHelper(e.data)
else if(Array.isArray(e.data)){let t=new Array(e.data.length)
for(let r=0;r<e.data.length;r++){let i=e.data[r]
t[r]=this._normalizeResourceHelper(i)}e.data=t}if(Array.isArray(e.included)){let t=new Array
for(let r=0;r<e.included.length;r++){let i=e.included[r],n=this._normalizeResourceHelper(i)
null!==n&&t.push(n)}e.included=t}return e},_normalizeRelationshipDataHelper(e){return e.type=this.modelNameFromPayloadKey(e.type),e},_normalizeResourceHelper(e){let t,r
if(t=this.modelNameFromPayloadKey(e.type),r="modelNameFromPayloadKey",!this.store.getSchemaDefinitionService().doesTypeExist(t))return null
let i=this.store.modelFor(t),n=this.store.serializerFor(t),{data:s}=n.normalize(i,e)
return s},pushPayload(e,t){let r=this._normalizeDocumentHelper(t)
e.push(r)},_normalizeResponse(e,t,r,i,n,s){return this._normalizeDocumentHelper(r)},normalizeQueryRecordResponse(){let e=this._super(...arguments)
return e},extractAttributes(e,t){let r={}
return t.attributes&&e.eachAttribute((e=>{let i=this.keyForAttribute(e,"deserialize")
void 0!==t.attributes[i]&&(r[e]=t.attributes[i])})),r},extractRelationship(e){if("object"===(0,i.typeOf)(e.data)&&(e.data=this._normalizeRelationshipDataHelper(e.data)),Array.isArray(e.data)){let t=new Array(e.data.length)
for(let r=0;r<e.data.length;r++){let i=e.data[r]
t[r]=this._normalizeRelationshipDataHelper(i)}e.data=t}return e},extractRelationships(e,t){let r={}
return t.relationships&&e.eachRelationship(((e,i)=>{let n=this.keyForRelationship(e,i.kind,"deserialize")
if(void 0!==t.relationships[n]){let i=t.relationships[n]
r[e]=this.extractRelationship(i)}})),r},_extractType(e,t){return this.modelNameFromPayloadKey(t.type)},modelNameFromPayloadKey:e=>(0,n.singularize)((0,r.dasherize)(e)),payloadKeyFromModelName:e=>(0,n.pluralize)(e),normalize(e,t){t.attributes&&this.normalizeUsingDeclaredMapping(e,t.attributes),t.relationships&&this.normalizeUsingDeclaredMapping(e,t.relationships)
let r={id:this.extractId(e,t),type:this._extractType(e,t),attributes:this.extractAttributes(e,t),relationships:this.extractRelationships(e,t)}
return this.applyTransforms(e,r.attributes),{data:r}},keyForAttribute:(e,t)=>(0,r.dasherize)(e),keyForRelationship:(e,t,i)=>(0,r.dasherize)(e),serialize(e,t){let r=this._super(...arguments)
return r.type=this.payloadKeyFromModelName(e.modelName),{data:r}},serializeAttribute(e,t,r,i){let n=i.type
if(this._canSerialize(r)){t.attributes=t.attributes||{}
let s=e.attr(r)
if(n){s=this.transformFor(n).serialize(s,i.options)}let a=this.store.modelFor(e.modelName),o=this._getMappedKey(r,a)
o===r&&(o=this.keyForAttribute(r,"serialize")),t.attributes[o]=s}},serializeBelongsTo(e,t,r){let i=r.key
if(this._canSerialize(i)){let r=e.belongsTo(i),n=r&&!r.isNew
if(null===r||n){t.relationships=t.relationships||{}
let n=this.store.modelFor(e.modelName),s=this._getMappedKey(i,n)
s===i&&(s=this.keyForRelationship(i,"belongsTo","serialize"))
let a=null
if(r){a={type:this.payloadKeyFromModelName(r.modelName),id:r.id}}t.relationships[s]={data:a}}}},serializeHasMany(e,t,r){let i=r.key
if(this.shouldSerializeHasMany(e,i,r)){let r=e.hasMany(i)
if(void 0!==r){t.relationships=t.relationships||{}
let n=this.store.modelFor(e.modelName),s=this._getMappedKey(i,n)
s===i&&this.keyForRelationship&&(s=this.keyForRelationship(i,"hasMany","serialize"))
let a=r.filter((e=>e.record&&!e.record.isNew)),o=new Array(a.length)
for(let e=0;e<a.length;e++){let t=r[e],i=this.payloadKeyFromModelName(t.modelName)
o[e]={type:i,id:t.id}}t.relationships[s]={data:o}}}}})
e.default=a})),define("@ember-data/serializer/json",["exports","@ember/application","@ember/debug","@ember/string","@ember/utils","@ember-data/serializer","@ember-data/store/-private"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=/^\/?data\/(attributes|relationships)\/(.*)/,l=/^\/?data/,c=s.default.extend({primaryKey:"id",mergedProperties:["attrs"],applyTransforms(e,t){let r=e.attributes
return e.eachTransformedAttribute(((e,i)=>{if(void 0===t[e])return
let n=this.transformFor(i),s=r.get(e)
t[e]=n.deserialize(t[e],s.options)})),t},normalizeResponse(e,t,r,i,n){switch(n){case"findRecord":return this.normalizeFindRecordResponse(...arguments)
case"queryRecord":return this.normalizeQueryRecordResponse(...arguments)
case"findAll":return this.normalizeFindAllResponse(...arguments)
case"findBelongsTo":return this.normalizeFindBelongsToResponse(...arguments)
case"findHasMany":return this.normalizeFindHasManyResponse(...arguments)
case"findMany":return this.normalizeFindManyResponse(...arguments)
case"query":return this.normalizeQueryResponse(...arguments)
case"createRecord":return this.normalizeCreateRecordResponse(...arguments)
case"deleteRecord":return this.normalizeDeleteRecordResponse(...arguments)
case"updateRecord":return this.normalizeUpdateRecordResponse(...arguments)}},normalizeFindRecordResponse(e,t,r,i,n){return this.normalizeSingleResponse(...arguments)},normalizeQueryRecordResponse(e,t,r,i,n){return this.normalizeSingleResponse(...arguments)},normalizeFindAllResponse(e,t,r,i,n){return this.normalizeArrayResponse(...arguments)},normalizeFindBelongsToResponse(e,t,r,i,n){return this.normalizeSingleResponse(...arguments)},normalizeFindHasManyResponse(e,t,r,i,n){return this.normalizeArrayResponse(...arguments)},normalizeFindManyResponse(e,t,r,i,n){return this.normalizeArrayResponse(...arguments)},normalizeQueryResponse(e,t,r,i,n){return this.normalizeArrayResponse(...arguments)},normalizeCreateRecordResponse(e,t,r,i,n){return this.normalizeSaveResponse(...arguments)},normalizeDeleteRecordResponse(e,t,r,i,n){return this.normalizeSaveResponse(...arguments)},normalizeUpdateRecordResponse(e,t,r,i,n){return this.normalizeSaveResponse(...arguments)},normalizeSaveResponse(e,t,r,i,n){return this.normalizeSingleResponse(...arguments)},normalizeSingleResponse(e,t,r,i,n){return this._normalizeResponse(e,t,r,i,n,!0)},normalizeArrayResponse(e,t,r,i,n){return this._normalizeResponse(e,t,r,i,n,!1)},_normalizeResponse(e,t,r,i,n,s){let a={data:null,included:[]},o=this.extractMeta(e,t,r)
if(o&&(a.meta=o),s){let{data:e,included:i}=this.normalize(t,r)
a.data=e,i&&(a.included=i)}else{let e=new Array(r.length)
for(let i=0,n=r.length;i<n;i++){let n=r[i],{data:s,included:o}=this.normalize(t,n)
o&&(a.included=a.included.concat(o)),e[i]=s}a.data=e}return a},normalize(e,t){let r=null
return t&&(this.normalizeUsingDeclaredMapping(e,t),"object"===(0,n.typeOf)(t.links)&&this.normalizeUsingDeclaredMapping(e,t.links),r={id:this.extractId(e,t),type:e.modelName,attributes:this.extractAttributes(e,t),relationships:this.extractRelationships(e,t)},this.applyTransforms(e,r.attributes)),{data:r}},extractId(e,t){let r=t[this.primaryKey]
return(0,a.coerceId)(r)},extractAttributes(e,t){let r,i={}
return e.eachAttribute((e=>{r=this.keyForAttribute(e,"deserialize"),void 0!==t[r]&&(i[e]=t[r])})),i},extractRelationship(e,t){if((0,n.isNone)(t))return null
if("object"===(0,n.typeOf)(t)){t.id&&(t.id=(0,a.coerceId)(t.id))
let r=this.store.modelFor(e)
return t.type&&!r.fields.has("type")&&(t.type=this.modelNameFromPayloadKey(t.type)),t}return{id:(0,a.coerceId)(t),type:e}},extractPolymorphicRelationship(e,t,r){return this.extractRelationship(e,t)},extractRelationships(e,t){let r={}
return e.eachRelationship(((e,i)=>{let s=null,a=this.keyForRelationship(e,i.kind,"deserialize")
if(void 0!==t[a]){let r=null,o=t[a]
if("belongsTo"===i.kind)r=i.options.polymorphic?this.extractPolymorphicRelationship(i.type,o,{key:e,resourceHash:t,relationshipMeta:i}):this.extractRelationship(i.type,o)
else if("hasMany"===i.kind&&!(0,n.isNone)(o))if(r=new Array(o.length),i.options.polymorphic)for(let n=0,s=o.length;n<s;n++){let s=o[n]
r[n]=this.extractPolymorphicRelationship(i.type,s,{key:e,resourceHash:t,relationshipMeta:i})}else for(let e=0,t=o.length;e<t;e++){let t=o[e]
r[e]=this.extractRelationship(i.type,t)}s={data:r}}let o=this.keyForLink(e,i.kind)
if(t.links&&void 0!==t.links[o]){let e=t.links[o]
s=s||{},s.links={related:e}}s&&(r[e]=s)})),r},modelNameFromPayloadKey:e=>(0,i.dasherize)(e),normalizeRelationships(e,t){let r
this.keyForRelationship&&e.eachRelationship(((e,i)=>{r=this.keyForRelationship(e,i.kind,"deserialize"),e!==r&&void 0!==t[r]&&(t[e]=t[r],delete t[r])}))},normalizeUsingDeclaredMapping(e,t){let r,i,n=this.attrs
if(n)for(let s in n)r=i=this._getMappedKey(s,e),void 0!==t[i]&&(e.attributes.has(s)&&(r=this.keyForAttribute(s,"deserialize")),e.relationshipsByName.has(s)&&(r=this.keyForRelationship(s,e,"deserialize")),i!==r&&(t[r]=t[i],delete t[i]))},_getMappedKey(e,t){let r,i=this.attrs
return i&&i[e]&&(r=i[e],r.key&&(r=r.key),"string"==typeof r&&(e=r)),e},_canSerialize(e){let t=this.attrs
return!t||!t[e]||!1!==t[e].serialize},_mustSerialize(e){let t=this.attrs
return t&&t[e]&&!0===t[e].serialize},shouldSerializeHasMany(e,t,r){let i=this.store.modelFor(e.modelName).determineRelationshipType(r,this.store)
return!!this._mustSerialize(t)||this._canSerialize(t)&&("manyToNone"===i||"manyToMany"===i)},serialize(e,t){let r={}
if(t&&t.includeId){const t=e.id
t&&(r[this.primaryKey]=t)}return e.eachAttribute(((t,i)=>{this.serializeAttribute(e,r,t,i)})),e.eachRelationship(((t,i)=>{"belongsTo"===i.kind?this.serializeBelongsTo(e,r,i):"hasMany"===i.kind&&this.serializeHasMany(e,r,i)})),r},serializeIntoHash(e,t,r,i){Object.assign(e,this.serialize(r,i))},serializeAttribute(e,t,r,i){if(this._canSerialize(r)){let n=i.type,s=e.attr(r)
if(n){s=this.transformFor(n).serialize(s,i.options)}let a=this.store.modelFor(e.modelName),o=this._getMappedKey(r,a)
o===r&&this.keyForAttribute&&(o=this.keyForAttribute(r,"serialize")),t[o]=s}},serializeBelongsTo(e,t,r){let i=r.key
if(this._canSerialize(i)){let s=e.belongsTo(i,{id:!0}),a=this.store.modelFor(e.modelName),o=this._getMappedKey(i,a)
o===i&&this.keyForRelationship&&(o=this.keyForRelationship(i,"belongsTo","serialize")),(0,n.isNone)(s)?t[o]=null:t[o]=s,r.options.polymorphic&&this.serializePolymorphicType(e,t,r)}},serializeHasMany(e,t,r){let i=r.key
if(this.shouldSerializeHasMany(e,i,r)){let r=e.hasMany(i,{ids:!0})
if(void 0!==r){let n=this.store.modelFor(e.modelName),s=this._getMappedKey(i,n)
s===i&&this.keyForRelationship&&(s=this.keyForRelationship(i,"hasMany","serialize")),t[s]=r}}},serializePolymorphicType(){},extractMeta(e,t,r){if(r&&void 0!==r.meta){let e=r.meta
return delete r.meta,e}},extractErrors(e,t,r,i){if(r&&"object"==typeof r&&r.errors){const e={}
return r.errors.forEach((t=>{if(t.source&&t.source.pointer){let r=t.source.pointer.match(o)
r?r=r[2]:-1!==t.source.pointer.search(l)&&(r="base"),r&&(e[r]=e[r]||[],e[r].push(t.detail||t.title))}})),this.normalizeUsingDeclaredMapping(t,e),t.eachAttribute((t=>{let r=this.keyForAttribute(t,"deserialize")
r!==t&&void 0!==e[r]&&(e[t]=e[r],delete e[r])})),t.eachRelationship((t=>{let r=this.keyForRelationship(t,"deserialize")
r!==t&&void 0!==e[r]&&(e[t]=e[r],delete e[r])})),e}return r},keyForAttribute:(e,t)=>e,keyForRelationship:(e,t,r)=>e,keyForLink:(e,t)=>e,transformFor(e,r){let i=(0,t.getOwner)(this).lookup("transform:"+e)
return i}})
e.default=c})),define("@ember-data/serializer/rest",["exports","@ember/debug","@ember/string","@ember/utils","ember-inflector","@ember-data/serializer/json","@ember-data/store/-private","@ember-data/serializer/-private"],(function(e,t,r,i,n,s,a,o){"use strict"
function l(e){return Array.isArray(e)?e:[e]}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EmbeddedRecordsMixin",{enumerable:!0,get:function(){return o.EmbeddedRecordsMixin}}),e.default=void 0
const c=s.default.extend({keyForPolymorphicType(e,t,r){return`${this.keyForRelationship(e)}Type`},_normalizeArray(e,t,r,i){let n={data:[],included:[]},s=e.modelFor(t),a=e.serializerFor(t)
return l(r).forEach((t=>{let{data:r,included:o}=this._normalizePolymorphicRecord(e,t,i,s,a)
n.data.push(r),o&&(n.included=n.included.concat(o))})),n},_normalizePolymorphicRecord(e,t,r,i,n){let s=n,a=i
if(!i.fields.has("type")&&t.type){let r=this.modelNameFromPayloadKey(t.type)
e.getSchemaDefinitionService().doesTypeExist(r)&&(s=e.serializerFor(r),a=e.modelFor(r))}return s.normalize(a,t,r)},_normalizeResponse(e,t,r,i,n,s){let o={data:null,included:[]},l=this.extractMeta(e,t,r)
l&&(o.meta=l)
let c=Object.keys(r)
for(var u=0,d=c.length;u<d;u++){var h=c[u],p=h,f=!1
"_"===h.charAt(0)&&(f=!0,p=h.substr(1))
var m=this.modelNameFromPayloadKey(p)
if(!e.getSchemaDefinitionService().doesTypeExist(m))continue
var g=!f&&this.isPrimaryType(e,m,t),b=r[h]
if(null===b)continue
if(g&&!Array.isArray(b)){let{data:r,included:i}=this._normalizePolymorphicRecord(e,b,h,t,this)
o.data=r,i&&(o.included=o.included.concat(i))
continue}let{data:n,included:l}=this._normalizeArray(e,m,b,h)
l&&(o.included=o.included.concat(l)),s?n.forEach((e=>{let t=g&&(0,a.coerceId)(e.id)===i
g&&!i&&!o.data||t?o.data=e:o.included.push(e)})):g?o.data=n:n&&(o.included=o.included.concat(n))}return o},isPrimaryType:(e,t,i)=>(0,r.dasherize)(t)===i.modelName,pushPayload(e,t){let r={data:[],included:[]}
for(var i in t){var n=this.modelNameFromPayloadKey(i)
if(e.getSchemaDefinitionService().doesTypeExist(n)){var s=e.modelFor(n),a=e.serializerFor(s.modelName)
l(t[i]).forEach((e=>{let{data:t,included:n}=a.normalize(s,e,i)
r.data.push(t),n&&(r.included=r.included.concat(n))}))}}e.push(r)},modelNameFromPayloadKey:e=>(0,n.singularize)((0,r.dasherize)(e)),serialize(e,t){return this._super(...arguments)},serializeIntoHash(e,t,r,i){e[this.payloadKeyFromModelName(t.modelName)]=this.serialize(r,i)},payloadKeyFromModelName:e=>(0,r.camelize)(e),serializePolymorphicType(e,t,n){let s=n.key,a=this.keyForPolymorphicType(s,n.type,"serialize"),o=e.belongsTo(s);(0,i.isNone)(o)?t[a]=null:t[a]=(0,r.camelize)(o.modelName)},extractPolymorphicRelationship(e,t,r){let{key:i,resourceHash:n,relationshipMeta:s}=r,a=s.options.polymorphic,o=this.keyForPolymorphicType(i,e,"deserialize")
if(a&&void 0!==n[o]&&"object"!=typeof t){return{id:t,type:this.modelNameFromPayloadKey(n[o])}}return this._super(...arguments)}})
e.default=c}))
define("@ember-data/serializer/transform",["exports","@ember-data/serializer/-private"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.Transform})),define("@ember-data/store/-private",["exports","@ember/debug","@ember/string","@ember/application","@ember/runloop","@ember/service","@ember/test","rsvp","@glimmer/tracking","@embroider/macros/es-compat2","@ember-data/tracking/-private","@ember/-internals/metal","@ember/object","@ember/object/compat","@ember/utils","@glimmer/validator","ember","@ember/object/computed","@ember/array/proxy","@ember/object/promise-proxy-mixin","@ember/object/proxy"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m,g,b,y,v,w){"use strict"
const x=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},_=x(s),S=x(o),k=x(c),A=x(g),C=x(y),P=x(v),O=x(w)
function E(e){return r.dasherize(e)}function T(e){return null==e||""===e?null:"string"==typeof e?e:"symbol"==typeof e?e.toString():""+e}function M(e){let t=null
if("string"==typeof e?t=e.length>0?e:null:"number"!=typeof e||isNaN(e)||(t=""+e),null===t)throw new Error(`Expected id to be a string or number, received ${String(e)}`)
return t}function I(e){return e&&"string"==typeof e}const F=new Set
function N(e){return F.has(e)}const R="undefined"!=typeof FastBoot?FastBoot.require("crypto"):window.crypto
let D,j,L,B
function $(e,t){if(I(e.lid))return e.lid
if(void 0!==e.id){let{type:t,id:r}=e
if(I(T(r)))return`@lid:${E(t)}-${r}`}return R.randomUUID()}function z(...e){}class U{constructor(){this._cache={lids:new Map,types:Object.create(null)},this._generate=j||$,this._update=B||z,this._forget=D||z,this._reset=L||z,this._merge=z,this._isDefaultConfig=!j}__configureMerge(e){this._merge=e||z}_getRecordIdentifier(e,t=!1){if(N(e))return e
let r=T(e.lid),i=null!==r?this._cache.lids.get(r):void 0
if(void 0!==i)return i
if(!(!1!==t||e.type&&e.id))return
let n=e.type&&E(e.type),s=T(e.id),a=q(this._cache.types,n)
if(null!==r&&(i=a.lid.get(r)),void 0===i&&null!==s&&(i=a.id.get(s)),void 0===i){let o=this._generate(e,"record")
if(null!==r&&o!==r)throw new Error("You should not change the <lid> of a RecordIdentifier")
null!==r||this._isDefaultConfig||(i=a.lid.get(o)),!0===t&&(void 0===i&&(i=H(s,n,o,"record",!1),this._cache.lids.set(i.lid,i),a.lid.set(i.lid,i)),null!==i.id&&a.id.set(i.id,i))}return i}peekRecordIdentifier(e){return this._getRecordIdentifier(e,!1)}getOrCreateRecordIdentifier(e){return this._getRecordIdentifier(e,!0)}createIdentifierForNewRecord(e){let t=this._generate(e,"record"),r=H(e.id||null,e.type,t,"record",!0),i=q(this._cache.types,e.type)
return this._cache.lids.set(r.lid,r),i.lid.set(t,r),e.id&&i.id.set(e.id,r),r}updateRecordIdentifier(e,t){let r=this.getOrCreateRecordIdentifier(e),i=void 0!==t.id?T(t.id):null,n=function(e,t,r,i,n){const{id:s,type:a,lid:o}=t
if(null!==s&&s!==i&&null!==i){let r=q(e,t.type).id.get(i)
return void 0!==r&&r}{let t=r.type&&E(r.type)
if(null!==s&&s===i&&t===a&&r.lid&&r.lid!==o){let e=n.get(r.lid)
return void 0!==e&&e}if(null!==s&&s===i&&t&&t!==a&&r.lid&&r.lid===o){let r=q(e,t).id.get(s)
return void 0!==r&&r}}return!1}(this._cache.types,r,t,i,this._cache.lids)
if(!n&&t.type&&r.type!==E(t.type)){let e={...t}
delete e.lid,n=this.getOrCreateRecordIdentifier(e)}if(n){let e=q(this._cache.types,r.type),s=r
r=this._mergeRecordIdentifiers(e,s,n,t,i)}let s=r.id
if(function(e,t,r){r(e,t,"record"),void 0!==t.id&&(e.id=T(t.id))}(r,t,this._update),i=r.id,s!==i&&null!==i){let e=q(this._cache.types,r.type)
e.id.set(i,r),null!==s&&e.id.delete(s)}return r}_mergeRecordIdentifiers(e,t,r,i,n){let s=this._merge(t,r,i),a=s===t?r:t
return this.forgetRecordIdentifier(a),e.id.set(n,s),q(this._cache.types,r.type).id.set(n,s),i.lid=s.lid,s}forgetRecordIdentifier(e){let t=this.getOrCreateRecordIdentifier(e),r=q(this._cache.types,t.type)
null!==t.id&&r.id.delete(t.id),this._cache.lids.delete(t.lid),r.lid.delete(t.lid),F.delete(e),this._forget(t,"record")}destroy(){this._reset()}}function q(e,t){let r=e[t]
return void 0===r&&(r={lid:new Map,id:new Map},e[t]=r),r}function H(e,t,r,i,n=!1){let s={lid:r,id:e,type:t}
return F.add(s),s}const V=new Map,G=new Map
function W(e){let t=G.get(e)
if(t){G.delete(e)
const r=V.get(t)
r?.delete(e)}}class X{constructor(e){this.store=e,this.isDestroyed=!1}subscribe(e,t){let r=V.get(e)
r||(r=new Map,V.set(e,r))
let i={}
return r.set(i,t),G.set(i,e),i}unsubscribe(e){this.isDestroyed||W(e)}notify(e,t,r){if(!N(e))return!1
let i=V.get(e)
return!(!i||!i.size)&&(i.forEach((i=>{i(e,t,r)})),!0)}destroy(){this.isDestroyed=!0,G.clear(),V.clear()}}var K,Y
let J=(K=class{constructor(e,t){var r,i,n,s
this.___token=void 0,this.___identifier=void 0,r=this,i="_ref",s=this,(n=Y)&&Object.defineProperty(r,i,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(s):void 0}),this.store=e,this.___identifier=t,this.___token=e._notificationManager.subscribe(t,((e,t,r)=>{("identity"===t||"attributes"===t&&"id"===r)&&this._ref++}))}destroy(){W(this.___token)}get type(){return this.identifier().type}id(){return this._ref,this.___identifier.id}identifier(){return this.___identifier}remoteType(){return"identity"}push(e){return o.resolve(e).then((e=>this.store.push(e)))}value(){return this.store.peekRecord(this.___identifier)}load(){const e=this.id()
if(null!==e)return this.store.findRecord(this.type,e)}reload(){const e=this.id()
if(null!==e)return this.store.findRecord(this.type,e,{reload:!0})}},Q=K.prototype,Z="_ref",ee=[l.tracked],te={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}},ie={},Object.keys(te).forEach((function(e){ie[e]=te[e]})),ie.enumerable=!!ie.enumerable,ie.configurable=!!ie.configurable,("value"in ie||ie.initializer)&&(ie.writable=!0),ie=ee.slice().reverse().reduce((function(e,t){return t(Q,Z,e)||e}),ie),re&&void 0!==ie.initializer&&(ie.value=ie.initializer?ie.initializer.call(re):void 0,ie.initializer=void 0),Y=void 0===ie.initializer?(Object.defineProperty(Q,Z,ie),null):ie,K)
var Q,Z,ee,te,re,ie
function ne(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance")
return e}var se=0
function ae(e){return"__private_"+se+++"_"+e}var oe=ae("store"),le=ae("recordData"),ce=ae("identifier"),ue=ae("isDeprecated")
class de{get managedVersion(){return ne(this,le)[le].version||"1"}constructor(e,t,r){Object.defineProperty(this,ue,{value:he}),this.version="2",Object.defineProperty(this,oe,{writable:!0,value:void 0}),Object.defineProperty(this,le,{writable:!0,value:void 0}),Object.defineProperty(this,ce,{writable:!0,value:void 0}),ne(this,oe)[oe]=e,ne(this,le)[le]=t,ne(this,ce)[ce]=r,ne(this,ue)[ue](t)}getResourceIdentifier(){return ne(this,ce)[ce]}pushData(e,t,r){const i=ne(this,le)[le]
return N(e)||(r=t=e,e=ne(this,ce)[ce]),ne(this,ue)[ue](i)?i.pushData(t,r):i.pushData(e,t,r)}sync(e){const t=ne(this,le)[le]
ne(this,ue)[ue](t)||t.sync(e)}update(e,t){if(ne(this,ue)[ue](ne(this,le)[le])){const r=ne(this,oe)[oe]._instanceCache
switch(e.op){case"addToRelatedRecords":return void ne(this,le)[le].addToHasMany(e.field,e.value.map((e=>r.getRecordData(e))),e.index)
case"removeFromRelatedRecords":return void ne(this,le)[le].removeFromHasMany(e.field,e.value.map((e=>r.getRecordData(e))))
case"replaceRelatedRecords":return void ne(this,le)[le].setDirtyHasMany(e.field,e.value.map((e=>r.getRecordData(e))))
case"replaceRelatedRecord":return t?void ne(this,le)[le].setDirtyBelongsTo(e.field,e.value?r.getRecordData(e.value):null):(ne(this,le)[le].removeFromHasMany(e.field,[r.getRecordData(e.prior)]),void ne(this,le)[le].addToHasMany(e.field,[r.getRecordData(e.value)],e.index))
default:return}}else ne(this,le)[le].update(e)}clientDidCreate(e,t){N(e)||(t=e,e=ne(this,ce)[ce])
let r=ne(this,le)[le]
return ne(this,ue)[ue](r)?(r.clientDidCreate(),r._initRecordCreateOptions(t)):r.clientDidCreate(e,t)}_initRecordCreateOptions(e){let t=ne(this,le)[le]
if(ne(this,ue)[ue](t))return t._initRecordCreateOptions(e)}willCommit(e){ne(this,le)[le].willCommit(e||ne(this,ce)[ce])}didCommit(e,t){N(e)||(t=e,e=ne(this,ce)[ce])
let r=ne(this,le)[le]
ne(this,ue)[ue](r)?r.didCommit(t):r.didCommit(e,t)}commitWasRejected(e,t){ne(this,le)[le].commitWasRejected(e||ne(this,ce)[ce],t)}unloadRecord(e){const t=ne(this,le)[le]
ne(this,ue)[ue](t)?t.unloadRecord():t.unloadRecord(e||ne(this,ce)[ce])}getAttr(e,t){N(e)||(t=e,e=ne(this,ce)[ce])
let r=ne(this,le)[le]
return ne(this,ue)[ue](r)?r.getAttr(t):r.getAttr(e,t)}setAttr(e,t,r){let i=ne(this,le)[le]
ne(this,ue)[ue](i)?i.setDirtyAttribute(t,r):i.setAttr(e,t,r)}setDirtyAttribute(e,t){let r=ne(this,le)[le]
ne(this,ue)[ue](r)?r.setDirtyAttribute(e,t):r.setAttr(ne(this,ce)[ce],e,t)}changedAttributes(){const e=ne(this,le)[le]
return ne(this,ue)[ue](e)?e.changedAttributes():e.changedAttrs(ne(this,ce)[ce])}changedAttrs(e){const t=ne(this,le)[le]
return ne(this,ue)[ue](t)?t.changedAttributes():t.changedAttrs(e)}hasChangedAttributes(){const e=ne(this,le)[le]
return ne(this,ue)[ue](e)?e.hasChangedAttributes():e.hasChangedAttrs(ne(this,ce)[ce])}hasChangedAttrs(e){const t=ne(this,le)[le]
return ne(this,ue)[ue](t)?t.hasChangedAttributes():t.hasChangedAttrs(e)}rollbackAttributes(){const e=ne(this,le)[le]
return ne(this,ue)[ue](e)?e.rollbackAttributes():e.rollbackAttrs(ne(this,ce)[ce])}rollbackAttrs(e){const t=ne(this,le)[le]
return ne(this,ue)[ue](t)?t.rollbackAttributes():t.rollbackAttrs(e)}getRelationship(e,t,r=!1){let i=ne(this,le)[le]
if(ne(this,ue)[ue](i)){return!r?i.getBelongsTo(t):i.getHasMany(t)}return i.getRelationship(e,t)}getBelongsTo(e){let t=ne(this,le)[le]
if(ne(this,ue)[ue](t))return t.getBelongsTo(e)
{let r=ne(this,ce)[ce]
return t.getRelationship(r,e)}}getHasMany(e){let t=ne(this,le)[le]
if(ne(this,ue)[ue](t))return t.getHasMany(e)
{let r=ne(this,ce)[ce]
return t.getRelationship(r,e)}}setDirtyBelongsTo(e,t){const r=ne(this,le)[le]
ne(this,ue)[ue](r)?r.setDirtyBelongsTo(e,t):r.update({op:"replaceRelatedRecord",record:ne(this,ce)[ce],field:e,value:t?t.getResourceIdentifier():null})}addToHasMany(e,t,r){const i=ne(this,ce)[ce],n=ne(this,le)[le]
ne(this,ue)[ue](n)?n.addToHasMany(e,t,r):n.update({op:"addToRelatedRecords",field:e,record:i,value:t.map((e=>e.getResourceIdentifier()))})}removeFromHasMany(e,t){const r=ne(this,ce)[ce],i=ne(this,le)[le]
ne(this,ue)[ue](i)?i.removeFromHasMany(e,t):i.update({op:"removeFromRelatedRecords",record:r,field:e,value:t.map((e=>e.getResourceIdentifier()))})}setDirtyHasMany(e,t){let r=ne(this,le)[le]
ne(this,ue)[ue](r)?r.setDirtyHasMany(e,t):r.update({op:"replaceRelatedRecords",record:ne(this,ce)[ce],field:e,value:t.map((e=>e.getResourceIdentifier()))})}setIsDeleted(e,t){N(e)||(t=e,e=ne(this,ce)[ce])
const r=ne(this,le)[le]
ne(this,ue)[ue](r)?r.setIsDeleted(t):r.setIsDeleted(e,t)}getErrors(e){return ne(this,le)[le].getErrors(e||ne(this,ce)[ce])}isEmpty(e){const t=ne(this,le)[le]
return ne(this,ue)[ue](t)?t.isEmpty?.(e||ne(this,ce)[ce])||!1:t.isEmpty(e||ne(this,ce)[ce])}isNew(e){return ne(this,le)[le].isNew(e||ne(this,ce)[ce])}isDeleted(e){return ne(this,le)[le].isDeleted(e||ne(this,ce)[ce])}isDeletionCommitted(e){return ne(this,le)[le].isDeletionCommitted(e||ne(this,ce)[ce])}}function he(e){return(e.version||"1")!==this.version}function pe(e,t,r){if("object"==typeof e&&null!==e){let t=e
return N(t)||"id"in t&&(t.id=T(t.id)),t}{const i=T(t)
if(!I(i)){if(I(r))return{lid:r}
throw new Error("Expected either id or lid to be a valid string")}return I(r)?{type:e,id:i,lid:r}:{type:e,id:i}}}const fe=class{constructor(e){this._store=e,this._willNotify=!1,this._pendingNotifies=new Map}get identifierCache(){return this._store.identifierCache}_scheduleNotification(e,t){let r=this._pendingNotifies.get(e)
r||(r=new Set,this._pendingNotifies.set(e,r)),r.add(t),!0!==this._willNotify&&(this._willNotify=!0,this._store._cbs?this._store._schedule("notify",(()=>this._flushNotifications())):this._flushNotifications())}_flushNotifications(){if(!1===this._willNotify)return
let e=this._pendingNotifies
this._pendingNotifies=new Map,this._willNotify=!1,e.forEach(((e,t)=>{e.forEach((e=>{this._store._notificationManager.notify(t,"relationships",e)}))}))}notifyChange(e,t,r){"relationships"===t&&r?this._scheduleNotification(e,r):(this._store._notificationManager.notify(e,t,r),"state"===t&&this._store.recordArrayManager.identifierChanged(e))}notifyErrorsChange(e,t,r){const i=pe(e,t,r),n=this.identifierCache.getOrCreateRecordIdentifier(i)
this._store._notificationManager.notify(n,"errors")}attributesDefinitionFor(e){return this._store.getSchemaDefinitionService().attributesDefinitionFor({type:e})}relationshipsDefinitionFor(e){return this._store.getSchemaDefinitionService().relationshipsDefinitionFor({type:e})}getSchemaDefinitionService(){return this._store.getSchemaDefinitionService()}notifyPropertyChange(e,t,r,i){const n=pe(e,t,r),s=this.identifierCache.getOrCreateRecordIdentifier(n)
this._store._notificationManager.notify(s,"attributes",i)}notifyHasManyChange(e,t,r,i){const n=pe(e,t,r),s=this.identifierCache.getOrCreateRecordIdentifier(n)
this._scheduleNotification(s,i)}notifyBelongsToChange(e,t,r,i){const n=pe(e,t,r),s=this.identifierCache.getOrCreateRecordIdentifier(n)
this._scheduleNotification(s,i)}notifyStateChange(e,t,r,i){const n=pe(e,t,r),s=this.identifierCache.getOrCreateRecordIdentifier(n)
this._store._notificationManager.notify(s,"state"),this._store.recordArrayManager.identifierChanged(s)}recordDataFor(e,t,r){let i
i=N(e)?e:t||r?this.identifierCache.getOrCreateRecordIdentifier(pe(e,t,r)):this.identifierCache.createIdentifierForNewRecord({type:e})
const n=this._store._instanceCache.getRecordData(i)
return t||r||(n.clientDidCreate(i),this._store.recordArrayManager.identifierAdded(i)),n}setRecordId(e,t,r){let i
if(N(e))i=e
else{const t=pe(E(e),null,T(r))
i=this.identifierCache.peekRecordIdentifier(t)}this._store._instanceCache.setRecordId(i,t)}isRecordInUse(e,t,r){const i=pe(e,t,r),n=this.identifierCache.peekRecordIdentifier(i),s=n&&this._store._instanceCache.peek({identifier:n,bucket:"record"})
return!!s&&!(s.isDestroyed||s.isDestroying)}hasRecord(e){return Boolean(this._store._instanceCache.peek({identifier:e,bucket:"record"}))}disconnectRecord(e,t,r){let i
if("string"==typeof e){let n=pe(e,t,r)
i=this.identifierCache.peekRecordIdentifier(n)}else i=e
this._store._instanceCache.disconnect(i),this._pendingNotifies.delete(i)}}
class me{constructor(e,t,r){this._store=r,this.__attributes=null,this._belongsToRelationships=Object.create(null),this._belongsToIds=Object.create(null),this._hasManyRelationships=Object.create(null),this._hasManyIds=Object.create(null)
const i=!!r._instanceCache.peek({identifier:t,bucket:"record"})
this.modelName=t.type,this.identifier=t,i&&this._attributes,this.id=t.id,this.adapterOptions=e.adapterOptions,this.include=e.include,this.modelName=t.type,i&&(this._changedAttributes=this._store._instanceCache.getRecordData(t).changedAttrs(t))}get record(){return this._store._instanceCache.getRecord(this.identifier)}get _attributes(){if(null!==this.__attributes)return this.__attributes
let e=this.__attributes=Object.create(null)
const{identifier:t}=this
let r=Object.keys(this._store.getSchemaDefinitionService().attributesDefinitionFor(t)),i=this._store._instanceCache.getRecordData(t)
return r.forEach((r=>{e[r]=i.getAttr(t,r)})),e}get isNew(){const e=this._store._instanceCache.peek({identifier:this.identifier,bucket:"recordData"})
return e?.isNew(this.identifier)||!1}attr(e){if(e in this._attributes)return this._attributes[e]}attributes(){return{...this._attributes}}changedAttributes(){let e=Object.create(null)
if(!this._changedAttributes)return e
let t=Object.keys(this._changedAttributes)
for(let r=0,i=t.length;r<i;r++){let i=t[r]
e[i]=this._changedAttributes[i].slice()}return e}belongsTo(e,t){let r,i=!(!t||!t.id),n=this._store
if(!0===i&&e in this._belongsToIds)return this._belongsToIds[e]
if(!1===i&&e in this._belongsToRelationships)return this._belongsToRelationships[e]
n.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})[e]
const s=k.default(require("@ember-data/record-data/-private")).graphFor,{identifier:a}=this
let o=s(this._store).get(a,e).getData(),l=o&&o.data,c=l?n.identifierCache.getOrCreateRecordIdentifier(l):null
return o&&void 0!==o.data&&(r=c&&!n._instanceCache.getRecordData(c).isDeleted(c)?i?c.id:n._instanceCache.createSnapshot(c):null),i?this._belongsToIds[e]=r:this._belongsToRelationships[e]=r,r}hasMany(e,t){let r,i=!(!t||!t.ids),n=this._hasManyIds[e],s=this._hasManyRelationships[e]
if(!0===i&&e in this._hasManyIds)return n
if(!1===i&&e in this._hasManyRelationships)return s
let a=this._store
a.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})[e]
const o=k.default(require("@ember-data/record-data/-private")).graphFor,{identifier:l}=this
let c=o(this._store).get(l,e).getData()
return c.data&&(r=[],c.data.forEach((e=>{let t=a.identifierCache.getOrCreateRecordIdentifier(e)
a._instanceCache.getRecordData(t).isDeleted(t)||(i?r.push(t.id):r.push(a._instanceCache.createSnapshot(t)))}))),i?this._hasManyIds[e]=r:this._hasManyRelationships[e]=r,r}eachAttribute(e,t){let r=this._store.getSchemaDefinitionService().attributesDefinitionFor(this.identifier)
Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}eachRelationship(e,t){let r=this._store.getSchemaDefinitionService().relationshipsDefinitionFor(this.identifier)
Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}serialize(e){return this._store.serializerFor(this.modelName).serialize(this,e)}}Object.defineProperty(me.prototype,"type",{get(){return this._store.modelFor(this.identifier.type)}})
const ge=new Map
function be(e,t){ge.set(e,t)}function ye(e){ge.delete(e)}function ve(e){return ge.has(e)?ge.get(e):null}let we
{let e
we=t=>{let r=k.default(require("@ember-data/record-data/-private")).peekGraph
return e=e||r,e(t)}}const xe=new Map
function _e(e){return xe.get(e)}function Se(e){return xe.get(e)}function ke(e,t){xe.set(e,t)}const Ae=new Map
class Ce{constructor(e){this.__instances={record:new Map,recordData:new Map,reference:new WeakMap},this.store=e,this._storeWrapper=new fe(this.store),this.__recordDataFor=e=>{const t=this.store.identifierCache.getOrCreateRecordIdentifier(e)
return this.getRecordData(t)},e.identifierCache.__configureMerge(((e,t,r)=>{let i=e
e.id!==t.id?i="id"in r&&e.id===r.id?e:t:e.type!==t.type&&(i="type"in r&&e.type===r.type?e:t)
let n=e===i?t:e,s=this.__instances.record.has(i),a=this.__instances.record.has(n),o=this.__instances.recordData.get(i)||null,l=this.__instances.recordData.get(n)||null
if(s&&a&&"id"in r)throw new Error(`Failed to update the 'id' for the RecordIdentifier '${e.type}:${String(e.id)} (${e.lid})' to '${String(r.id)}', because that id is already in use by '${t.type}:${String(t.id)} (${t.lid})'`)
let c=o||l
return c?c.sync({op:"mergeIdentifiers",record:n,value:i}):this.store.__private_singleton_recordData?.sync({op:"mergeIdentifiers",record:n,value:i}),null===l||this.unloadRecord(n),i}))}peek({identifier:e,bucket:t}){return this.__instances[t]?.get(e)}getRecord(e,t){let r=this.__instances.record.get(e)
if(!r){const i=this.getRecordData(e)
r=this.store.instantiateRecord(e,t||{},this.__recordDataFor,this.store._notificationManager),ke(r,e),be(r,i),Ae.set(r,this.store),this.__instances.record.set(e,r)}return r}getRecordData(e){let t=this.__instances.recordData.get(e)
if(!t&&this.store.createRecordDataFor.length>2){let r=this.store.createRecordDataFor(e.type,e.id,e.lid,this._storeWrapper)
t=new de(this.store,r,e)}if(!t){let r=this.store.createRecordDataFor(e,this._storeWrapper)
t=new de(this.store,r,e),be(e,t),this.__instances.recordData.set(e,t)}return t}getReference(e){let t=this.__instances.reference,r=t.get(e)
return r||(r=new J(this.store,e),t.set(e,r)),r}recordIsLoaded(e,t=!1){const r=this.__instances.recordData.get(e)
if(!r)return!1
const i=r.isNew(e),n=r.isEmpty(e)
return i?!r.isDeleted(e):(!t||!r.isDeletionCommitted(e))&&!n}createSnapshot(e,t={}){return new me(t,e,this.store)}disconnect(e){this.__instances.record.get(e)
{let t=we(this.store)
t&&t.remove(e)}this.store.identifierCache.forgetRecordIdentifier(e)}unloadRecord(e){this.store._join((()=>{const t=this.__instances.record.get(e),r=this.__instances.recordData.get(e)
t&&(this.store.teardownRecord(t),this.__instances.record.delete(e),Ae.delete(t),xe.delete(t),ye(t)),r?(r.unloadRecord(e),this.__instances.recordData.delete(e),ye(e)):this.disconnect(e),this.store._fetchManager.clearEntries(e),this.store.recordArrayManager.identifierRemoved(e)}))}clear(e){const t=this.store.identifierCache._cache.types
if(void 0===e)this.__instances.recordData.forEach(((e,t)=>{this.unloadRecord(t)}))
else{let r=t[e]?.lid
const i=this.__instances.recordData
r&&r.forEach((e=>{i.has(e)&&this.unloadRecord(e)}))}}_fetchDataIfNeededForIdentifier(e,t={}){const r=Oe(this,e),i=Ee(this,e)
let n
return t.preload&&this.store._join((()=>{(function(e,t,r){let i={}
const n=e.getSchemaDefinitionService().relationshipsDefinitionFor(t)
Object.keys(r).forEach((e=>{let t=r[e],s=n[e]
s?(i.relationships||(i.relationships={}),i.relationships[e]=function(e,t){const r=e.type
if("hasMany"===e.kind)return{data:t.map((e=>Pe(e,r)))}
return{data:t?Pe(t,r):null}}(s,t)):(i.attributes||(i.attributes={}),i.attributes[e]=t)})),e._instanceCache.getRecordData(t).pushData(t,i)})(this.store,e,t.preload)})),n=r?this.store._fetchManager.scheduleFetch(e,t):i?this.store._fetchManager.getPendingFetch(e,t):o.resolve(e),n}setRecordId(e,t){const{type:r,lid:i}=e
null!==e.id&&null===t||(this.store.identifierCache.peekRecordIdentifier({type:r,id:t}),null===e.id&&this.store.identifierCache.updateRecordIdentifier(e,{type:r,id:t}),this.store._notificationManager.notify(e,"identity"))}loadData(e){e.type
const t=pe(E(e.type),M(e.id),T(e.lid))
let r=this.store.identifierCache.peekRecordIdentifier(t),i=!1
if(r){const t=Ee(this,r)||!this.recordIsLoaded(r)
i=!Oe(this,r)&&!t,(i||t)&&(r=this.store.identifierCache.updateRecordIdentifier(r,e))}else r=this.store.identifierCache.getOrCreateRecordIdentifier(e)
const n=this.getRecordData(r)
n.isNew(r)&&this.store._notificationManager.notify(r,"identity")
const s=this.__instances.record.has(r)
return n.pushData(r,e,s),i||this.store.recordArrayManager.identifierAdded(r),r}}function Pe(e,t){return"string"==typeof e||"number"==typeof e?{type:t,id:e}:Se(e)}function Oe(e,t){const r=e.__instances.recordData.get(t)
if(!r)return!0
const i=r.isNew(t),n=r.isDeleted(t),s=r.isEmpty(t)
return(!i||n)&&s}function Ee(e,t){const r=e.store.getRequestStateService()
return!e.recordIsLoaded(t)&&r.getPendingRequestsForRecord(t).some((e=>"query"===e.type))}let Te
{let e
Te=function(){return e||(e=k.default(require("@ember-data/model/-private"))._modelForMixin),e(...arguments)}}class Me{constructor(e){this.store=e,this._relationshipsDefCache=Object.create(null),this._attributesDefCache=Object.create(null)}attributesDefinitionFor(e){let t,r
if(t="string"==typeof e?e:e.type,r=this._attributesDefCache[t],void 0===r){let e=this.store.modelFor(t).attributes
r=Object.create(null),e.forEach(((e,t)=>r[t]=e)),this._attributesDefCache[t]=r}return r}relationshipsDefinitionFor(e){let t,r
if(t="string"==typeof e?e:e.type,r=this._relationshipsDefCache[t],void 0===r){r=this.store.modelFor(t).relationshipsObject||null,this._relationshipsDefCache[t]=r}return r}doesTypeExist(e){let t=E(e)
return null!==Ie(this.store,this.store._modelFactoryCache,t)}}function Ie(e,t,r){let n=t[r]
if(!n){if(n=i.getOwner(e).factoryFor(`model:${r}`),n||(n=Te(e,r)),!n)return null
let s=n.class
if(s.isModel){s.modelName&&Object.prototype.hasOwnProperty.call(s,"modelName")||Object.defineProperty(s,"modelName",{value:r})}t[r]=n}return n}const Fe=new WeakMap
function Ne(e){let t=new Map
for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.set(r,e[r])
return t}class Re{constructor(e,t){this.__store=e,this.modelName=t}get fields(){let e=this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName}),t=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}),r=new Map
return Object.keys(e).forEach((e=>r.set(e,"attribute"))),Object.keys(t).forEach((e=>r.set(e,t[e].kind))),r}get attributes(){return Ne(this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName}))}get relationshipsByName(){return Ne(this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}))}eachAttribute(e,t){let r=this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName})
Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}eachRelationship(e,t){let r=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})
Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}eachTransformedAttribute(e,t){let r=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})
Object.keys(r).forEach((i=>{r[i].type&&e.call(t,i,r[i])}))}}const De=C.default.extend(P.default),je=O.default.extend(P.default)
var Le,Be,$e
let ze=(Le=b.reads("content.meta"),Be=class extends De{constructor(...e){super(...e),function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"meta",$e,this)}},$e=function(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}(Be.prototype,"meta",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be)
function Ue(e){const t=function(e,t){return ze.create({promise:o.resolve(e,t)})}(e)
return t}function qe(e){const t=function(e,t){return je.create({promise:o.resolve(e,t)})}(e)
return t}var He,Ve,Ge,We
function Xe(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Ke(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}const Ye=new Set([Symbol.iterator,"concat","entries","every","fill","filter","find","findIndex","flat","flatMap","forEach","includes","indexOf","join","keys","lastIndexOf","map","reduce","reduceRight","slice","some","values"]),Je=new Set(["push","pop","unshift","shift","splice","sort"]),Qe=new Set(["[]","length","links","meta"])
function Ze(e){return Ye.has(e)}const et=Symbol("#tag"),tt=Symbol("#source"),rt=Symbol("#update"),it=Symbol("#notify")
function nt(e){e[et].ref=null,m.dirtyTag(d.tagForProperty(e,"length")),m.dirtyTag(d.tagForProperty(e,"[]"))}function st(e){if("symbol"==typeof e)return null
const t=Number(e)
return isNaN(t)?null:t%1==0?t:null}let at=(Ve=Ke((He=class{constructor(){Xe(this,"ref",Ve,this),this.shouldReset=!1,this.t=!1}}).prototype,"ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),He)
let ot=(Ge=class e{[it](){nt(this)}destroy(){this.isDestroying=!0,this[tt].length=0,this[it](),this.isDestroyed=!0}get length(){return this[tt].length}set length(e){this[tt].length=e}get"[]"(){return this}constructor(t){Xe(this,"isUpdating",We,this),this.isLoaded=!0,this.isDestroying=!1,this.isDestroyed=!1,this._updatingPromise=null,this[et]=new at,this[tt]=void 0
let r=this
this.modelName=t.type,this.store=t.store,this._manager=t.manager,this[tt]=t.identifiers
const i=t.store,n=new Map,s=this[et],a={links:t.links||null,meta:t.meta||null}
let o=!1
const l=new Proxy(this[tt],{get(e,l,c){let d=st(l)
if(s.shouldReset&&(null!==d||Qe.has(l)||Ze(l))&&(t.manager._syncArray(c),s.t=!1,s.shouldReset=!1),null!==d){const t=e[d]
return o||u.subscribe(s),t&&i._instanceCache.getRecord(t)}if("meta"===l)return u.subscribe(s),a.meta
if("links"===l)return u.subscribe(s),a.links
if("[]"===l)return u.subscribe(s),c
if(Ze(l)){let t=n.get(l)
return void 0===t&&(t=function(){u.subscribe(s),o=!0
let t=Reflect.apply(e[l],c,arguments)
return o=!1,t},n.set(l,t)),t}if(function(e){return Je.has(e)}(l)){let i=n.get(l)
return void 0===i&&(i=function(){if(!t.allowMutation)return
const i=Array.prototype.slice.call(arguments)
o=!0
let n=Reflect.apply(e[l],c,i)
return r[rt](l,i,n),u.addToTransaction(s),o=!1,n},n.set(l,i)),i}if(l in r){if("firstObject"===l)return r.DEPRECATED_CLASS_NAME,c[0]
if("lastObject"===l)return r.DEPRECATED_CLASS_NAME,c[c.length-1]
if(l===it||l===et||l===tt)return r[l]
let e=n.get(l)
if(e)return e
let t=r[l]
return"function"==typeof t?(e=function(){return u.subscribe(s),Reflect.apply(t,c,arguments)},n.set(l,e),e):(u.subscribe(s),t)}return e[l]},set(e,i,n){if("length"===i){if(!o&&0===n)return o=!0,u.addToTransaction(s),Reflect.set(e,i,n),r[rt]("length 0",[]),o=!1,!0
if(o)return Reflect.set(e,i,n)}if("links"===i)return a.links=n||null,!0
if("meta"===i)return a.meta=n||null,!0
let l=st(i)
if(null===l||l>e.length)return i in r&&(r[i]=n,!0)
if(!t.allowMutation)return!1
let c=e[l],d=function(e){if(!e)return null
if(t=e,t.then){return Se(e.content)}var t
return Se(e)}(n)
return e[l]=d,o||(r[rt]("replace cell",[l,c,d]),u.addToTransaction(s)),!0},deleteProperty:(e,t)=>!!o&&Reflect.deleteProperty(e,t),getPrototypeOf:()=>e.prototype})
A.default.meta(this).hasMixin=e=>e===NativeArray||e===ArrayMixin
return this[it]=this[it].bind(l),l}update(){if(this.isUpdating)return this._updatingPromise
this.isUpdating=!0
let e=this._update()
return e.finally((()=>{this._updatingPromise=null,this.isDestroying||this.isDestroyed||(this.isUpdating=!1)})),this._updatingPromise=e,e}_update(){return this.store.findAll(this.modelName,{reload:!0})}save(){return Ue(Promise.all(this.map((e=>this.store.saveRecord(e)))).then((()=>this)))}},We=Ke(Ge.prototype,"isUpdating",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ke(Ge.prototype,"length",[p.dependentKeyCompat],Object.getOwnPropertyDescriptor(Ge.prototype,"length"),Ge.prototype),Ge)
Object.defineProperty(ot.prototype,"type",{get(){return this.modelName?this.store.modelFor(this.modelName):null}})
class lt extends ot{constructor(e){super(e),this.query=null,this.query=e.query||null,this.isLoaded=e.isLoaded||!1}_update(){const{store:e,query:t}=this
return Ue(e.query(this.modelName,t,{_recordArray:this}))}destroy(){super.destroy(),this._manager._managed.delete(this),this._manager._pending.delete(this)}}lt.prototype.query=null
ot.prototype.DEPRECATED_CLASS_NAME="RecordArray",lt.prototype.DEPRECATED_CLASS_NAME="RecordArray";["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{ot.prototype[e]=function(...t){return A.default[e](this,...t)}})),ot.prototype.addObject=function(e){return this.DEPRECATED_CLASS_NAME,-1===this.indexOf(e)&&this.push(e),this},ot.prototype.addObjects=function(e){return this.DEPRECATED_CLASS_NAME,e.forEach((e=>{-1===this.indexOf(e)&&this.push(e)})),this},ot.prototype.popObject=function(){return this.DEPRECATED_CLASS_NAME,this.pop()},ot.prototype.pushObject=function(e){return this.DEPRECATED_CLASS_NAME,this.push(e),e},ot.prototype.pushObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.push(...e),this},ot.prototype.shiftObject=function(){return this.DEPRECATED_CLASS_NAME,this.shift()},ot.prototype.unshiftObject=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(e),e},ot.prototype.unshiftObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(...e),this},ot.prototype.objectAt=function(e){return this.DEPRECATED_CLASS_NAME,this[-1===Math.sign(e)?this.length+e:e]},ot.prototype.objectsAt=function(e){return this.DEPRECATED_CLASS_NAME,e.map((e=>this.objectAt(e)))},ot.prototype.removeAt=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(e,1),this},ot.prototype.insertAt=function(e,t){return this.DEPRECATED_CLASS_NAME,this.splice(e,0,t),this},ot.prototype.removeObject=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(this.indexOf(e),1),this},ot.prototype.removeObjects=function(e){return this.DEPRECATED_CLASS_NAME,e.forEach((e=>this.splice(this.indexOf(e),1))),this},ot.prototype.toArray=function(){return this.DEPRECATED_CLASS_NAME,this.slice()},ot.prototype.replace=function(e,t,r){this.DEPRECATED_CLASS_NAME,r?this.splice(e,t,...r):this.splice(e,t)},ot.prototype.clear=function(){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this},ot.prototype.setObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this.push(...e),this},ot.prototype.reverseObjects=function(){return this.DEPRECATED_CLASS_NAME,this.reverse(),this},ot.prototype.compact=function(){return this.DEPRECATED_CLASS_NAME,this.filter((e=>null!=e))},ot.prototype.any=function(e,t){return this.DEPRECATED_CLASS_NAME,this.some(e,t)},ot.prototype.isAny=function(e,t){this.DEPRECATED_CLASS_NAME
let r=2===arguments.length
return this.some((i=>r?i[e]===t:!0===i[e]))},ot.prototype.isEvery=function(e,t){this.DEPRECATED_CLASS_NAME
let r=2===arguments.length
return this.every((i=>r?i[e]===t:!0===i[e]))},ot.prototype.getEach=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.mapBy=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.findBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.find((r=>h.get(r,e)===t)):this.find((t=>Boolean(h.get(t,e))))},ot.prototype.filterBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.filter((r=>h.get(r,e)===t)):this.filter((t=>Boolean(h.get(t,e))))},ot.prototype.sortBy=function(...e){return this.DEPRECATED_CLASS_NAME,this.slice().sort(((t,r)=>{for(let i=0;i<e.length;i++){let n=e[i],s=h.get(t,n),a=h.get(r,n),o=f.compare(s,a)
if(o)return o}return 0}))},ot.prototype.invoke=function(e,...t){return this.DEPRECATED_CLASS_NAME,this.map((r=>r[e](...t)))}
ot.prototype.addArrayObserver=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.removeArrayObserver=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.arrayContentWillChange=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.arrayContentDidChange=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.reject=function(e,t){return this.DEPRECATED_CLASS_NAME,this.filter((t=>!h.get(t,e)))},ot.prototype.rejectBy=function(e,t){return this.DEPRECATED_CLASS_NAME,this.filter((t=>!h.get(t,e)))},ot.prototype.setEach=function(e,t){this.DEPRECATED_CLASS_NAME,this.forEach((r=>h.set(r,e,t)))},ot.prototype.uniq=function(){return this.DEPRECATED_CLASS_NAME,this.slice()},ot.prototype.uniqBy=function(e){this.DEPRECATED_CLASS_NAME
let t=new Set,r=[]
return this.forEach((i=>{let n=h.get(i,e)
t.has(n)||(t.add(n),r.push(i))})),r},ot.prototype.without=function(e){this.DEPRECATED_CLASS_NAME
const t=this.slice(),r=this.indexOf(e)
return-1!==r&&t.splice(r,1),t},ot.prototype.firstObject=null,ot.prototype.lastObject=null
const ct=new Map,ut={},dt=1200
function ht(e,t){let r=0,i=t.length
for(;i-r>dt;)e.push.apply(e,t.slice(r,r+dt)),r+=dt
e.push.apply(e,t.slice(r))}class pt{constructor(e){this.store=e.store,this.isDestroying=!1,this.isDestroyed=!1,this._live=new Map,this._managed=new Set,this._pending=new Map,this._staged=new Map,this._identifiers=ct}_syncArray(e){const t=this._pending.get(e)
!t||this.isDestroying||this.isDestroyed||(function(e,t){let r=e[tt]
const i=[],n=[]
t.forEach(((e,t)=>{if("add"===e){if(r.includes(t))return
i.push(t)}else n.push(t)})),n.length&&(n.length===r.length?r.length=0:n.forEach((e=>{r.splice(r.indexOf(e),1)})))
i.length&&ht(r,i)}(e,t),this._pending.delete(e))}liveArrayFor(e){let t=this._live.get(e),r=[],i=this._staged.get(e)
return i&&(i.forEach(((e,t)=>{"add"===e&&r.push(t)})),this._staged.delete(e)),t||(t=new ot({type:e,identifiers:r,store:this.store,allowMutation:!1,manager:this}),this._live.set(e,t)),t}createArray(e){let t={type:e.type,links:e.doc?.links||null,meta:e.doc?.meta||null,query:e.query||null,identifiers:e.identifiers||[],isLoaded:!!e.identifiers?.length,allowMutation:!1,store:this.store,manager:this},r=new lt(t)
return this._managed.add(r),e.identifiers&&ft(r,e.identifiers),r}dirtyArray(e,t){if(e===ut)return
let r=e[et]
r.shouldReset?t>0&&!r.t&&u.addTransactionCB(e[it]):(r.shouldReset=!0,u.addTransactionCB(e[it]))}_getPendingFor(e,t,r){if(this.isDestroying||this.isDestroyed)return
let i=this._live.get(e.type)
const n=this._pending
let s=new Map
if(t){let t=ct.get(e)
t&&t.forEach((e=>{let t=n.get(e)
t||(t=new Map,n.set(e,t)),s.set(e,t)}))}if(i&&0===i[tt].length&&r){const e=n.get(i)
if(!e||0===e.size)return s}if(i){let e=n.get(i)
e||(e=new Map,n.set(i,e)),s.set(i,e)}else{let t=this._staged.get(e.type)
t||(t=new Map,this._staged.set(e.type,t)),s.set(ut,t)}return s}populateManagedArray(e,t,r){this._pending.delete(e)
const i=e[tt],n=i.slice()
i.length=0,ht(i,t),nt(e),e.meta=r.meta||null,e.links=r.links||null,e.isLoaded=!0,function(e,t){for(let r=0;r<t.length;r++)mt(e,t[r])}(e,n),ft(e,t)}identifierAdded(e){let t=this._getPendingFor(e,!1)
t&&t.forEach(((t,r)=>{"del"===t.get(e)?t.delete(e):(t.set(e,"add"),this.dirtyArray(r,t.size))}))}identifierRemoved(e){let t=this._getPendingFor(e,!0,!0)
t&&t.forEach(((t,r)=>{"add"===t.get(e)?t.delete(e):(t.set(e,"del"),this.dirtyArray(r,t.size))}))}identifierChanged(e){this.store._instanceCache.recordIsLoaded(e,!0)?this.identifierAdded(e):this.identifierRemoved(e)}clear(){this._live.forEach((e=>e.destroy())),this._managed.forEach((e=>e.destroy())),this._managed.clear(),ct.clear()}destroy(){this.isDestroying=!0,this.clear(),this._live.clear(),this.isDestroyed=!0}}function ft(e,t){for(let r=0;r<t.length;r++){let i=t[r],n=ct.get(i)
n||(n=new Set,ct.set(i,n)),n.add(e)}}function mt(e,t){let r=ct.get(t)
r&&r.delete(e)}function gt(e,t){let r=e.finally((()=>{t()||(r._subscribers.length=0)}))
return r}function bt(e){return!(e.isDestroyed||e.isDestroying)}function yt(e,t,r){return gt(o.resolve(e,r).then((r=>(bt(t),e))),(()=>bt(t)))}function vt(e,t,r,i,n,s){return e?e.normalizeResponse(t,r,i,n,s):i}const wt=Symbol("touching"),xt=Symbol("promise")
class _t{constructor(){this._pending=Object.create(null),this._done=new Map,this._subscriptions=Object.create(null)}enqueue(e,t){let r=t.data[0]
if("recordIdentifier"in r){let i=r.recordIdentifier.lid,n="saveRecord"===r.op?"mutation":"query"
this._pending[i]||(this._pending[i]=[])
let s={state:"pending",request:t,type:n}
s[wt]=[r.recordIdentifier],s[xt]=e,this._pending[i].push(s),this._triggerSubscriptions(s),e.then((e=>{this._dequeue(i,s)
let r={state:"fulfilled",request:t,type:n,response:{data:e}}
r[wt]=s[wt],this._addDone(r),this._triggerSubscriptions(r)}),(e=>{this._dequeue(i,s)
let r={state:"rejected",request:t,type:n,response:{data:e}}
r[wt]=s[wt],this._addDone(r),this._triggerSubscriptions(r)}))}}_triggerSubscriptions(e){e[wt].forEach((t=>{this._subscriptions[t.lid]&&this._subscriptions[t.lid].forEach((t=>t(e)))}))}_dequeue(e,t){this._pending[e]=this._pending[e].filter((e=>e!==t))}_addDone(e){e[wt].forEach((t=>{let r=e.request.data[0].op,i=this._done.get(t)
i&&(i=i.filter((e=>{let t
return t=e.request.data instanceof Array?e.request.data[0]:e.request.data,t.op!==r}))),i=i||[],i.push(e),this._done.set(t,i)}))}subscribeForRecord(e,t){this._subscriptions[e.lid]||(this._subscriptions[e.lid]=[]),this._subscriptions[e.lid].push(t)}getPendingRequestsForRecord(e){return this._pending[e.lid]?this._pending[e.lid]:[]}getLastRequestForRecord(e){let t=this._done.get(e)
return t?t[t.length-1]:null}}const St=Symbol("SaveOp")
class kt{constructor(e){this._store=e,this._pendingFetch=new Map,this._pendingSave=[],this.requestCache=new _t,this.isDestroyed=!1}clearEntries(e){this.requestCache._done.delete(e)}scheduleSave(e,t){let r="DS: Model#save "+this,i=S.default.defer(r),s={data:[{op:"saveRecord",recordIdentifier:e,options:t}]},a={snapshot:new me(t,e,this._store),resolver:i,identifier:e,options:t,queryRequest:s}
return this._pendingSave.push(a),n._backburner.scheduleOnce("actions",this,this._flushPendingSaves),this.requestCache.enqueue(i.promise,a.queryRequest),i.promise}_flushPendingSaves(){const e=this._store
let t=this._pendingSave.slice()
this._pendingSave=[]
for(let r=0,i=t.length;r<i;r++){Ot(e,t[r])}}scheduleFetch(e,t){let r={data:[{op:"findRecord",recordIdentifier:e,options:t}]},i=this.getPendingFetch(e,t)
if(i)return i
let s=e.id,a=e.type,o=S.default.defer(`Fetching ${a}' with id: ${s}`),l={identifier:e,resolver:o,options:t,queryRequest:r},c=o.promise
const u=this._store,d=!u._instanceCache.recordIsLoaded(e),h=c.then((t=>{t.data&&!Array.isArray(t.data)&&(t.data.lid=e.lid)
let r=u._push(t)
return r&&!Array.isArray(r)?r:e}),(t=>{const r=u._instanceCache.peek({identifier:e,bucket:"recordData"})
if(!r||r.isEmpty(e)||d){let t=!0
if(!r){const r=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(u)
t=r.isReleasable(e),t||r.unload(e,!0)}(r||t)&&u._instanceCache.unloadRecord(e)}throw t}))
0===this._pendingFetch.size&&n._backburner.schedule("actions",this,this.flushAllPendingFetches)
let p=this._pendingFetch
return p.has(a)||p.set(a,[]),p.get(a).push(l),l.promise=h,this.requestCache.enqueue(c,l.queryRequest),h}getPendingFetch(e,t){let r=this._pendingFetch.get(e.type)
if(r){let i=r.find((r=>r.identifier===e&&function(e={},t={}){let r=!e.include||e.include===t.include,i=e.adapterOptions===t.adapterOptions
return r&&i}(t,r.options)))
if(i)return i.promise}}flushAllPendingFetches(){if(this.isDestroyed)return
const e=this._store
this._pendingFetch.forEach(((t,r)=>function(e,t,r){let i=e.adapterFor(r),n=!!i.findMany&&i.coalesceFindRequests,s=t.length
if(n){let n,a=new Array(s),o=new Map
for(let r=0;r<s;r++){let i=t[r]
a[r]=new me(i.options,i.identifier,e),o.set(a[r],i)}n=i.groupRecordsForFindMany?i.groupRecordsForFindMany(e,a):[a]
for(let t=0,s=n.length;t<s;t++)Pt(e,o,n[t],i,r)}else for(let a=0;a<s;a++)Ct(e,t[a])}(e,t,r))),this._pendingFetch.clear()}destroy(){this.isDestroyed=!0}}function At(e,t,r){for(let i=0,n=t.length;i<n;i++){let n=t[i],s=e.get(n)
s&&s.resolver.reject(r||new Error(`Expected: '<${n.modelName}:${n.id}>' to be present in the adapter provided payload, but it was not found.`))}}function Ct(e,t){let r=t.identifier,i=r.type,n=e.adapterFor(i),s=new me(t.options,r,e),a=e.modelFor(r.type),l=r.id,c=`DS: Handle Adapter#findRecord of '${i}' with id: '${l}'`,u=yt(o.resolve().then((()=>n.findRecord(e,a,r.id,s))),e,c).then((t=>vt(e.serializerFor(i),e,a,t,l,"findRecord")))
t.resolver.resolve(u)}function Pt(e,t,r,i,n){r.length>1?function(e,t,r,i){let n=e.modelFor(r)
const s=i.map((e=>e.id))
let a=t.findMany(e,n,s,i),o=`DS: Handle Adapter#findMany of '${r}'`
if(void 0===a)throw new Error("adapter.findMany returned undefined, this was very likely a mistake")
return a=yt(a,e,o),a.then((t=>vt(e.serializerFor(r),e,n,t,null,"findMany")))}(e,i,n,r).then((i=>{(function(e,t,r,i){let n=new Map
for(let l=0;l<r.length;l++){let e=r[l].id,t=n.get(e)
t||(t=[],n.set(e,t)),t.push(r[l])}const s=Array.isArray(i.included)?i.included:[]
let a=i.data
for(let l=0,c=a.length;l<c;l++){let e=a[l],r=n.get(e.id)
n.delete(e.id),r?r.forEach((r=>{t.get(r).resolver.resolve({data:e})})):s.push(e)}if(s.length>0&&e._push({data:null,included:s}),0===n.size)return
let o=[]
n.forEach((e=>{o.push(...e)})),At(t,o)})(e,t,r,i)})).catch((e=>{At(t,r,e)})):1===r.length&&Ct(e,t.get(r[0]))}function Ot(e,t){const{snapshot:r,resolver:i,identifier:n,options:s}=t,a=e.adapterFor(n.type),l=s[St]
let c=r.modelName,u=e.modelFor(c)
const d=e._instanceCache.getRecord(n)
let h=o.resolve().then((()=>a[l](e,u,r))),p=e.serializerFor(c)
h=gt(yt(h,e,`DS: Extract and notify about ${l} completion of ${n}`),function(e,...t){return function(){return e.apply(void 0,t)}}(bt,d)).then((t=>{if(bt(d),t)return vt(p,e,u,t,r.id,l)})),i.resolve(h)}class Et{constructor(e,t,r={}){this.__store=e,this._snapshots=null,this._recordArray=t,this.length=t.length,this.adapterOptions=r.adapterOptions,this.include=r.include}get modelName(){return this._recordArray.modelName}snapshots(){if(null!==this._snapshots)return this._snapshots
const{_instanceCache:e}=this.__store
return this._snapshots=this._recordArray[tt].map((t=>e.createSnapshot(t))),this._snapshots}}function Tt(e,t,r,i,n){let s=t.modelFor(r),a=t.peekAll(r)
n=n||new Et(t,a,i)
let l=o.Promise.resolve().then((()=>e.findAll(t,s,null,n)))
return l=yt(l,t,"DS: Handle Adapter#findAll of "+s),l.then((e=>{let i=vt(t.serializerFor(r),t,s,e,null,"findAll")
return t._push(i),a.isUpdating=!1,a}),null,"DS: Extract payload of findAll ${modelName}")}let Mt
Object.defineProperty(Et.prototype,"type",{get(){return this._recordArray.type}})
class It extends _.default{constructor(){super(...arguments),this.__private_singleton_recordData=void 0,this.identifierCache=new U,this.recordArrayManager=new pt({store:this}),this._notificationManager=new X(this),this._fetchManager=new kt(this),this._instanceCache=new Ce(this),this._adapterCache=Object.create(null),this._serializerCache=Object.create(null),this._modelFactoryCache=Object.create(null)}_run(e){const t=this._cbs={}
e(),t.coalesce&&t.coalesce(),t.sync&&t.sync(),t.notify&&t.notify(),this._cbs=null}_join(e){this._cbs?e():this._run(e)}_schedule(e,t){this._cbs[e]=t}getRequestStateService(){return this._fetchManager.requestCache}instantiateRecord(e,t,r,n){{let r=e.type,n={_createProps:t,_secretInit:{identifier:e,recordData:this._instanceCache.getRecordData(e),store:this,cb:jt}}
return i.setOwner(n,i.getOwner(this)),Ie(this,this._modelFactoryCache,r).class.create(n)}}teardownRecord(e){e.destroy()}getSchemaDefinitionService(){return this._schemaDefinitionService||(this._schemaDefinitionService=new Me(this)),this._schemaDefinitionService}registerSchemaDefinitionService(e){this._schemaDefinitionService=e}modelFor(e){{let t=E(e),r=Ie(this,this._modelFactoryCache,t),i=r&&r.class?r.class:r
return i&&i.isModel?i:function(e,t){let r=Fe.get(e)
r||(r=Object.create(null),Fe.set(e,r))
let i=r[t]
return void 0===i&&(i=r[t]=new Re(e,t)),i}(this,e)}}createRecord(e,t){let r
return n._backburner.join((()=>{this._join((()=>{let i=E(e),n={...t}
if(null===n.id||void 0===n.id){let t=this.adapterFor(e)
t&&t.generateIdForRecord?n.id=t.generateIdForRecord(this,e,n):n.id=null}n.id=T(n.id)
const s={type:i,id:n.id}
s.id&&this.identifierCache.peekRecordIdentifier(s)
const a=this.identifierCache.createIdentifierForNewRecord(s),o=this._instanceCache.getRecordData(a),l=function(e,t,r,i=!1){if(void 0!==r){const{type:n}=t
let s=e.getSchemaDefinitionService().relationshipsDefinitionFor({type:n})
if(null!==s){let e,t=Object.keys(r)
for(let n=0;n<t.length;n++){let a=t[n],o=s[a]
void 0!==o&&(e="hasMany"===o.kind?Rt(r[a],i):Dt(r[a],i),r[a]=e)}}}return r}(this,a,n,"1"===o.managedVersion),c=o.clientDidCreate(a,l)
this.recordArrayManager.identifierAdded(a),r=this._instanceCache.getRecord(a,c)}))})),r}deleteRecord(e){const t=_e(e),r=t&&this._instanceCache.peek({identifier:t,bucket:"recordData"})
this._join((()=>{r.setIsDeleted(t,!0),r.isNew(t)&&n._backburner.join((()=>{this._instanceCache.unloadRecord(t)}))}))}unloadRecord(e){const t=_e(e)
t&&this._instanceCache.unloadRecord(t)}find(e,t,r){return this.findRecord(e,t)}findRecord(e,t,r){if(Ft(e))r=t
else{e=pe(E(e),M(t))}const i=this.identifierCache.getOrCreateRecordIdentifier(e)
let n
if(r=r||{},this._instanceCache.recordIsLoaded(i))if(r.reload)n=this._fetchManager.scheduleFetch(i,r)
else{let e=null,t=this.adapterFor(i.type)
void 0===r.reload&&t.shouldReloadRecord&&t.shouldReloadRecord(this,e=this._instanceCache.createSnapshot(i,r))?n=this._fetchManager.scheduleFetch(i,r):(!1===r.backgroundReload||!r.backgroundReload&&t.shouldBackgroundReloadRecord&&!t.shouldBackgroundReloadRecord(this,e=e||this._instanceCache.createSnapshot(i,r))||this._fetchManager.scheduleFetch(i,r),n=o.resolve(i))}else n=this._instanceCache._fetchDataIfNeededForIdentifier(i,r)
return function(e,t){return qe(t.then((t=>e.peekRecord(t))))}(this,n)}getReference(e,t){let r
if(1===arguments.length&&Ft(e))r=e
else{r=pe(E(e),M(t))}let i=this.identifierCache.getOrCreateRecordIdentifier(r)
return this._instanceCache.getReference(i)}peekRecord(e,t){if(1===arguments.length&&Ft(e)){const t=this.identifierCache.peekRecordIdentifier(e)
return t&&this._instanceCache.recordIsLoaded(t)?this._instanceCache.getRecord(t):null}const r={type:E(e),id:M(t)},i=this.identifierCache.peekRecordIdentifier(r)
return i&&this._instanceCache.recordIsLoaded(i)?this._instanceCache.getRecord(i):null}hasRecordForId(e,t){{const r={type:E(e),id:M(t)},i=this.identifierCache.peekRecordIdentifier(r)
return Boolean(i&&this._instanceCache.recordIsLoaded(i))}}query(e,t,r){let i={}
r&&r.adapterOptions&&(i.adapterOptions=r.adapterOptions)
let n=r?._recordArray||null,s=E(e),a=function(e,t,r,i,n,s){let a=t.modelFor(r)
n=n||t.recordArrayManager.createArray({type:r,query:i})
let l=o.Promise.resolve().then((()=>e.query(t,a,i,n,s)))
return l=yt(l,t,`DS: Handle Adapter#query of ${r}`),l.then((e=>{let i=vt(t.serializerFor(r),t,a,e,null,"query"),s=t._push(i)
return t.recordArrayManager.populateManagedArray(n,s,i),n}),null,`DS: Extract payload of query ${r}`)}(this.adapterFor(s),this,s,t,n,i)
return Ue(a)}queryRecord(e,t,r){let i=E(e),n=this.adapterFor(i),s={}
r&&r.adapterOptions&&(s.adapterOptions=r.adapterOptions)
const a=function(e,t,r,i,n){let s=t.modelFor(r),a=o.Promise.resolve().then((()=>e.queryRecord(t,s,i,n)))
return a=yt(a,t,`DS: Handle Adapter#queryRecord of ${r}`),a.then((e=>{let i=vt(t.serializerFor(r),t,s,e,null,"queryRecord")
return t._push(i)}),null,`DS: Extract payload of queryRecord ${r}`)}(n,this,i,t,s)
return qe(a.then((e=>e&&this.peekRecord(e))))}findAll(e,t={}){let r,i=E(e),n=this.peekAll(i),s=this.adapterFor(i)
if(t.reload)n.isUpdating=!0,r=Tt(s,this,i,t)
else{let i=new Et(this,n,t)
!1!==t.reload&&(s.shouldReloadAll&&s.shouldReloadAll(this,i)||!s.shouldReloadAll&&0===i.length)&&(n.isUpdating=!0,r=Tt(s,this,e,t,i)),r||(!1===t.backgroundReload?r=o.resolve(n):(t.backgroundReload||!s.shouldBackgroundReloadAll||s.shouldBackgroundReloadAll(this,i))&&(n.isUpdating=!0,Tt(s,this,e,t,i)),r=o.resolve(n))}return Ue(r)}peekAll(e){let t=E(e)
return this.recordArrayManager.liveArrayFor(t)}unloadAll(e){this._join((()=>{if(void 0===e){{let e=(0,k.default(require("@ember-data/record-data/-private")).peekGraph)(this)
e&&e.identifiers.clear()}this._notificationManager.destroy(),this.recordArrayManager.clear(),this._instanceCache.clear()}else{let t=E(e)
this._instanceCache.clear(t)}}))}push(e){let t=this._push(e)
if(Array.isArray(t)){return t.map((e=>this._instanceCache.getRecord(e)))}return null===t?null:this._instanceCache.getRecord(t)}_push(e){let t
return this._join((()=>{let r,i,n=e.included
if(n)for(r=0,i=n.length;r<i;r++)this._instanceCache.loadData(n[r])
if(Array.isArray(e.data)){i=e.data.length
let n=new Array(i)
for(r=0;r<i;r++)n[r]=this._instanceCache.loadData(e.data[r])
t=n}else t=null!==e.data?this._instanceCache.loadData(e.data):null})),t}pushPayload(e,t){let r,i
if(t){i=t
let n=E(e)
r=this.serializerFor(n)}else i=e,r=this.serializerFor("application")
r.pushPayload(this,i)}serializeRecord(e,t){return this._instanceCache.createSnapshot(Se(e)).serialize(t)}saveRecord(e,t={}){let r=Se(e),i=r&&this._instanceCache.peek({identifier:r,bucket:"recordData"})
if(!i)return o.reject("Record Is Disconnected")
if(function(e,t){let r=e.__instances.recordData.get(t)
return!r||function(e,t){return t.isDeletionCommitted(e)||t.isNew(e)&&t.isDeleted(e)}(t,r)}(this._instanceCache,r))return o.resolve(e)
i.willCommit(r),function(e){return!!e&&"constructor"in e&&"isModel"in e.constructor&&!0===e.constructor.isModel}(e)&&e.errors.clear(),t||(t={})
let n="updateRecord"
i.isNew(r)?n="createRecord":i.isDeleted(r)&&(n="deleteRecord")
const s=Object.assign({[St]:n},t)
return this._fetchManager.scheduleSave(r,s).then((t=>(this._join((()=>{let e=t&&t.data
const i=this.identifierCache
let s=r
"deleteRecord"!==n&&e&&(s=i.updateRecordIdentifier(r,e))
this._instanceCache.getRecordData(s).didCommit(r,e),"deleteRecord"===n&&this.recordArrayManager.identifierRemoved(s),t&&t.included&&this._push({data:null,included:t.included})})),e)),(e=>{let t=e
throw e?"string"==typeof e&&(t=new Error(e)):t=new Error("Unknown Error Occurred During Request"),function(e,t,r){if(r&&!0===r.isAdapterError&&"InvalidError"===r.code){let i=e.serializerFor(t.type)
if(i&&"function"==typeof i.extractErrors){let n=i.extractErrors(e,e.modelFor(t.type),r,t.id)
r.errors=function(e){const t=[]
e&&Object.keys(e).forEach((r=>{let i=(n=e[r],Array.isArray(n)?n:[n])
var n
for(let e=0;e<i.length;e++){let n="Invalid Attribute",s=`/data/attributes/${r}`
r===Nt&&(n="Invalid Document",s="/data"),t.push({title:n,detail:i[e],source:{pointer:s}})}}))
return t}(n)}}const i=e._instanceCache.getRecordData(t)
if(r.errors){let e=r.errors
0===e.length&&(e=[{title:"Invalid Error",detail:"",source:{pointer:"/data"}}]),i.commitWasRejected(t,e)}else i.commitWasRejected(t)}(this,r,t),t}))}createRecordDataFor(e,t){return void 0===Mt&&(Mt=k.default(require("@ember-data/record-data/-private")).RecordData),4===arguments.length&&(e=this.identifierCache.getOrCreateRecordIdentifier({type:arguments[0],id:arguments[1],lid:arguments[2]}),t=arguments[3]),this.__private_singleton_recordData=this.__private_singleton_recordData||new Mt(t),this.__private_singleton_recordData.createCache(e),this.__private_singleton_recordData}normalize(e,t){let r=E(e),i=this.serializerFor(r),n=this.modelFor(r)
return i.normalize(n,t)}adapterFor(e){let t=E(e),{_adapterCache:r}=this,n=r[t]
if(n)return n
let s=i.getOwner(this)
return n=s.lookup(`adapter:${t}`),void 0!==n?(r[t]=n,n):(n=r.application||s.lookup("adapter:application"),void 0!==n?(r[t]=n,r.application=n,n):(n=r["-json-api"]||s.lookup("adapter:-json-api"),void 0!==n?(r[t]=n,r["-json-api"]=n,n):void 0))}serializerFor(e){let t=E(e),{_serializerCache:r}=this,n=r[t]
if(n)return n
let s=i.getOwner(this)
return n=s.lookup(`serializer:${t}`),void 0!==n?(r[t]=n,n):(n=r.application||s.lookup("serializer:application"),void 0!==n?(r[t]=n,r.application=n,n):null)}destroy(){for(let e in this._adapterCache){let t=this._adapterCache[e]
"function"==typeof t.destroy&&t.destroy()}for(let e in this._serializerCache){let t=this._serializerCache[e]
"function"==typeof t.destroy&&t.destroy()}{let e=(0,k.default(require("@ember-data/record-data/-private")).peekGraph)(this)
e&&e.destroy()}return super.destroy()}willDestroy(){super.willDestroy(),this.recordArrayManager.destroy(),this.identifierCache.destroy(),this.unloadAll()}}function Ft(e){return Boolean(null!==e&&"object"==typeof e&&("id"in e&&"type"in e&&e.id&&e.type||e.lid))}const Nt="base"
function Rt(e,t=!1){return e.map((e=>Dt(e,t)))}function Dt(e,t=!1){if(!e)return null
const r=t?ve:Se
if(e.then){let t=e.content
return t?r(t):null}return r(e)}function jt(e,t,r,i){ke(e,r),Ae.set(e,i),be(e,t)}e.AdapterPopulatedRecordArray=lt,e.IDENTIFIER_ARRAY_TAG=et,e.IdentifierArray=ot,e.MUTATE=rt,e.RecordArray=ot,e.RecordArrayManager=pt,e.SOURCE=tt,e.Snapshot=me,e.SnapshotRecordArray=Et,e.Store=It,e._clearCaches=function(){xe.clear(),Ae.clear(),ge.clear()},e.coerceId=T,e.fastPush=ht,e.isStableIdentifier=N,e.normalizeModelName=function(e){return E(e)},e.notifyArray=nt,e.recordDataFor=ve,e.recordIdentifierFor=Se,e.removeRecordDataFor=ye,e.setIdentifierForgetMethod=function(e){D=e},e.setIdentifierGenerationMethod=function(e){j=e},e.setIdentifierResetMethod=function(e){L=e},e.setIdentifierUpdateMethod=function(e){B=e},e.storeFor=function(e){return Ae.get(e)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/store/index",["exports","@ember-data/store/-private"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.Store}}),Object.defineProperty(e,"normalizeModelName",{enumerable:!0,get:function(){return t.normalizeModelName}}),Object.defineProperty(e,"recordIdentifierFor",{enumerable:!0,get:function(){return t.recordIdentifierFor}}),Object.defineProperty(e,"setIdentifierForgetMethod",{enumerable:!0,get:function(){return t.setIdentifierForgetMethod}}),Object.defineProperty(e,"setIdentifierGenerationMethod",{enumerable:!0,get:function(){return t.setIdentifierGenerationMethod}}),Object.defineProperty(e,"setIdentifierResetMethod",{enumerable:!0,get:function(){return t.setIdentifierResetMethod}}),Object.defineProperty(e,"setIdentifierUpdateMethod",{enumerable:!0,get:function(){return t.setIdentifierUpdateMethod}}),Object.defineProperty(e,"storeFor",{enumerable:!0,get:function(){return t.storeFor}})})),define("@ember-data/tracking/-private",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.addToTransaction=function(e){t?t.props.add(e):e.ref=null},e.addTransactionCB=function(e){t?t.cbs.add(e):e()},e.memoTransact=function(e){return function(...t){r()
const n=e(...t)
return i(),n}},e.subscribe=function(e){t?t.sub.add(e):e.ref},e.transact=function(e){r()
const t=e()
return i(),t},e.untracked=function(e){r()
const i=e()
return async function(){let e=t
t=e.parent,await Promise.resolve(),e.cbs.forEach((e=>{e()})),e.props.forEach((e=>{e.t=!0,e.ref=null}))}(),i}
let t=null
function r(){let e={cbs:new Set,props:new Set,sub:new Set,parent:null}
t&&(e.parent=t),t=e}function i(){let e=t
t=e.parent,e.cbs.forEach((e=>{e()})),e.props.forEach((e=>{e.t=!0,e.ref=null})),e.sub.forEach((e=>{e.ref}))}})),define("@ember-data/tracking/index",["exports","@ember-data/tracking/-private"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"memoTransact",{enumerable:!0,get:function(){return t.memoTransact}}),Object.defineProperty(e,"transact",{enumerable:!0,get:function(){return t.transact}}),Object.defineProperty(e,"untracked",{enumerable:!0,get:function(){return t.untracked}})})),define("@ember/render-modifiers/modifiers/did-insert",["exports","@ember/modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.setModifierManager)((()=>({capabilities:(0,t.capabilities)("3.22",{disableAutoTracking:!0}),createModifier(){},installModifier(e,t,{positional:[r,...i],named:n}){r(t,i,n)},updateModifier(){},destroyModifier(){}})),class{})})),define("@ember/render-modifiers/modifiers/did-update",["exports","@ember/modifier","@embroider/macros/es-compat2"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,r.default)(require("@glimmer/validator")).untrack
e.default=(0,t.setModifierManager)((()=>({capabilities:(0,t.capabilities)("3.22",{disableAutoTracking:!1}),createModifier:()=>({element:null}),installModifier(e,t,r){e.element=t,r.positional.forEach((()=>{})),r.named&&Object.values(r.named)},updateModifier({element:e},t){let[r,...n]=t.positional
t.positional.forEach((()=>{})),t.named&&Object.values(t.named),i((()=>{r(e,n,t.named)}))},destroyModifier(){}})),class{})})),define("@ember/render-modifiers/modifiers/will-destroy",["exports","@ember/modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.setModifierManager)((()=>({capabilities:(0,t.capabilities)("3.22",{disableAutoTracking:!0}),createModifier:()=>({element:null}),installModifier(e,t){e.element=t},updateModifier(){},destroyModifier({element:e},t){let[r,...i]=t.positional
r(e,i,t.named)}})),class{})})),define("@ember/string/cache",["exports"],(function(e){"use strict"
function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e,r,i){t(this,"size",0),t(this,"misses",0),t(this,"hits",0),this.limit=e,this.func=r,this.store=i,this.store=i||new Map}get(e){let t=this.store.get(e)
return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,t=this.set(e,this.func(e)),t)}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}})),define("@ember/string/index",["exports","@ember/string/cache"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=function(e){return o.get(e)},e.capitalize=function(e){return g.get(e)},e.classify=function(e){return d.get(e)},e.dasherize=function(e){return n.get(e)},e.decamelize=v,e.getString=function(e){return r[e]},e.getStrings=function(){return r},e.htmlSafe=function(e){throw new Error("htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.")},e.isHTMLSafe=function(e){throw new Error("isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.")},e.setStrings=function(e){r=e},e.underscore=function(e){return f.get(e)},e.w=function(e){return e.split(/\s+/)}
let r={}
const i=/[ _]/g,n=new t.default(1e3,(e=>v(e).replace(i,"-"))),s=/(\-|\_|\.|\s)+(.)?/g,a=/(^|\/)([A-Z])/g,o=new t.default(1e3,(e=>e.replace(s,((e,t,r)=>r?r.toUpperCase():"")).replace(a,(e=>e.toLowerCase())))),l=/^(\-|_)+(.)?/,c=/(.)(\-|\_|\.|\s)+(.)?/g,u=/(^|\/|\.)([a-z])/g,d=new t.default(1e3,(e=>{const t=(e,t,r)=>r?`_${r.toUpperCase()}`:"",r=(e,t,r,i)=>t+(i?i.toUpperCase():""),i=e.split("/")
for(let n=0;n<i.length;n++)i[n]=i[n].replace(l,t).replace(c,r)
return i.join("/").replace(u,(e=>e.toUpperCase()))})),h=/([a-z\d])([A-Z]+)/g,p=/\-|\s+/g,f=new t.default(1e3,(e=>e.replace(h,"$1_$2").replace(p,"_").toLowerCase())),m=/(^|\/)([a-z\u00C0-\u024F])/g,g=new t.default(1e3,(e=>e.replace(m,(e=>e.toUpperCase())))),b=/([a-z\d])([A-Z])/g,y=new t.default(1e3,(e=>e.replace(b,"$1_$2").toLowerCase()))
function v(e){return y.get(e)}})),define("@ember/test-waiters/build-waiter",["exports","@ember/debug","@ember/test-waiters/token","@ember/test-waiters/waiter-manager"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._resetWaiterNames=function(){n=new Set},e.default=function(e){0
return new s(e)}
let n
class s{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}})),define("@ember/test-waiters/index",["exports","@ember/test-waiters/waiter-manager","@ember/test-waiters/build-waiter","@ember/test-waiters/wait-for-promise","@ember/test-waiters/wait-for"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"_reset",{enumerable:!0,get:function(){return t._reset}}),Object.defineProperty(e,"_resetWaiterNames",{enumerable:!0,get:function(){return r._resetWaiterNames}}),Object.defineProperty(e,"buildWaiter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"getPendingWaiterState",{enumerable:!0,get:function(){return t.getPendingWaiterState}}),Object.defineProperty(e,"getWaiters",{enumerable:!0,get:function(){return t.getWaiters}}),Object.defineProperty(e,"hasPendingWaiters",{enumerable:!0,get:function(){return t.hasPendingWaiters}}),Object.defineProperty(e,"register",{enumerable:!0,get:function(){return t.register}}),Object.defineProperty(e,"unregister",{enumerable:!0,get:function(){return t.unregister}}),Object.defineProperty(e,"waitFor",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"waitForPromise",{enumerable:!0,get:function(){return i.default}})})),define("@ember/test-waiters/token",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{}})),define("@ember/test-waiters/types/index",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("@ember/test-waiters/wait-for-promise",["exports","@ember/test-waiters/build-waiter"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let r=e
0
return r};(0,t.default)("@ember/test-waiters:promise-waiter")})),define("@ember/test-waiters/wait-for",["exports","@ember/test-waiters/wait-for-promise","@ember/test-waiters/build-waiter"],(function(e,t,r){"use strict"
function i(e,t){return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(...e){if(e.length<3){let[t,r]=e
return i(t,r)}{let[,,t,r]=e
return t}};(0,r.default)("@ember/test-waiters:generator-waiter")})),define("@ember/test-waiters/waiter-manager",["exports","ember","@ember/test"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e._reset=function(){for(let e of s())e.isRegistered=!1
i.clear()},e.getPendingWaiterState=a,e.getWaiters=s,e.hasPendingWaiters=o,e.register=function(e){i.set(e.name,e)},e.unregister=function(e){i.delete(e.name)}
const i=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,r=n(),i=r[t]
return void 0===i&&(i=r[t]=new Map),i}()
function n(){if("undefined"!=typeof globalThis)return globalThis
if("undefined"!=typeof self)return self
if("undefined"!=typeof window)return window
if("undefined"!=typeof global)return global
throw new Error("unable to locate global object")}function s(){let e=[]
return i.forEach((t=>{e.push(t)})),e}function a(){let e={pending:0,waiters:{}}
return i.forEach((t=>{if(!t.waitUntil()){e.pending++
let r=t.debugInfo()
e.waiters[t.name]=r||!0}})),e}function o(){return a().pending>0}t.default.Test&&(0,r.registerWaiter)((()=>!o()))})),define("@embroider/macros/es-compat2",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e?.__esModule?e:{default:e,...e}}})),define("@embroider/macros/runtime",["exports"],(function(e){"use strict"
function t(e){return i.packages[e]}function r(){return i.global}Object.defineProperty(e,"__esModule",{value:!0}),e.config=t,e.each=function(e){if(!Array.isArray(e))throw new Error("the argument to the each() macro must be an array")
return e},e.getGlobalConfig=r,e.isTesting=function(){let e=i.global,t=e&&e["@embroider/macros"]
return Boolean(t&&t.isTesting)},e.macroCondition=function(e){return e}
const i={packages:{},global:{}}
let n="undefined"!=typeof window?window._embroider_macros_runtime_config:void 0
if(n){let e={config:t,getGlobalConfig:r,setConfig(e,t){i.packages[e]=t},setGlobalConfig(e,t){i.global[e]=t}}
for(let t of n)t(e)}})),define("@embroider/util/ember-private-api",["exports","@embroider/macros/es-compat2"],(function(e,t){"use strict"
let r
Object.defineProperty(e,"__esModule",{value:!0}),e.isCurriedComponentDefinition=void 0,e.lookupCurriedComponentDefinition=function(e,t){let r=function(e){let t=e.lookup("renderer:-dom")._runtimeResolver
if(t)return t
let r=Object.entries(e.__container__.cache).find((e=>e[0].startsWith("template-compiler:main-")))
if(r)return r[1].resolver.resolver
throw new Error("@embroider/util couldn't locate the runtime resolver on this ember version")}(t)
if("function"==typeof r.lookupComponentHandle){let i=r.lookupComponentHandle(e,t)
if(null!=i)return new n(r.resolve(i),null)}if(!r.lookupComponent(e,t))throw new Error(`Attempted to resolve \`${e}\` via ensureSafeComponent, but nothing was found.`)
return s(0,e,t,{named:{},positional:[]})},r=(0,t.default)(require("@glimmer/runtime"))
let{isCurriedComponentDefinition:i,CurriedComponentDefinition:n,curry:s,CurriedValue:a}=r
e.isCurriedComponentDefinition=i,i||(e.isCurriedComponentDefinition=i=function(e){return e instanceof a})})),define("@embroider/util/index",["exports","@ember/debug","@ember/application","@embroider/util/ember-private-api","@ember/component/helper"],(function(e,t,r,i,n){"use strict"
function s(e,t){return"string"==typeof e?function(e,t){let n=(0,r.getOwner)(t)
return(0,i.lookupCurriedComponentDefinition)(e,n)}(e,t):(0,i.isCurriedComponentDefinition)(e)||null==e?e:e}Object.defineProperty(e,"__esModule",{value:!0}),e.EnsureSafeComponentHelper=void 0,e.ensureSafeComponent=s
class a extends n.default{compute([e]){return s(e,this)}}e.EnsureSafeComponentHelper=a})),define("@embroider/util/services/ensure-registered",["exports","@ember/service","@ember/application"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"classNonces",new WeakMap),i(this,"nonceCounter",0)}register(e,t=(0,r.getOwner)(this)){let i=this.classNonces.get(e)
return null==i&&(i="-ensure"+this.nonceCounter++,this.classNonces.set(e,i),t.register(`component:${i}`,e)),i}}e.default=n})),define("@glimmer/component/-private/base-component-manager",["exports","@glimmer/component/-private/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){return class{static create(e){return new this(t(e))}constructor(t){var i,n,s
i=this,s=r,(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(n="capabilities"))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,e(this,t)}createComponent(e,r){return new e(t(this),r.named)}getContext(e){return e}}}})),define("@glimmer/component/-private/component",["exports","@glimmer/component/-private/owner","@glimmer/component/-private/destroyables"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ARGS_SET=void 0
e.ARGS_SET=void 0
e.default=class{constructor(e,r){i(this,"args",void 0),this.args=r,(0,t.setOwner)(this,e)}get isDestroying(){return(0,r.isDestroying)(this)}get isDestroyed(){return(0,r.isDestroyed)(this)}willDestroy(){}}})),define("@glimmer/component/-private/destroyables",["exports","ember"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.isDestroying=e.isDestroyed=void 0
e.isDestroying=t.default._isDestroying,e.isDestroyed=t.default._isDestroyed})),define("@glimmer/component/-private/ember-component-manager",["exports","ember","@ember/object","@ember/application","@ember/component","@ember/runloop","@glimmer/component/-private/base-component-manager","@glimmer/component/-private/destroyables"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{setDestroyed:l,setDestroying:c}=o,u=(0,n.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),d=t.default.destroy,h=t.default._registerDestructor
class p extends((0,a.default)(i.setOwner,i.getOwner,u)){createComponent(e,t){const r=super.createComponent(e,t)
return h(r,(()=>{r.willDestroy()})),r}destroyComponent(e){d(e)}}e.default=p})),define("@glimmer/component/-private/owner",["exports","@ember/application"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}})})),define("@glimmer/component/index",["exports","@ember/component","@glimmer/component/-private/ember-component-manager","@glimmer/component/-private/component"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=i.default;(0,t.setComponentManager)((e=>new r.default(e)),n)
e.default=n})),define("@sentry/ember/index",["exports","@sentry/browser","@ember/runloop","@ember/debug","ember","@sentry/utils"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var a={InitSentryForEmber:!0,getActiveTransaction:!0,instrumentRoutePerformance:!0,init:!0}
e.InitSentryForEmber=l,e.instrumentRoutePerformance=e.init=e.getActiveTransaction=void 0
var o=t
function l(e){const r={disablePerformance:!0,sentry:{url:"https://7e3ffdc743c9424c8040b55b22e3c747@gosentry.gointegro.com/8"}}
r.sentry||(r.sentry={...e}),Object.assign(r.sentry,e||{})
const i=Object.assign({},r.sentry)
i._metadata=i._metadata||{},i._metadata.sdk={name:"sentry.javascript.ember",packages:[{name:"npm:@sentry/ember",version:t.SDK_VERSION}],version:t.SDK_VERSION}
const n=function(){const e=(0,s.getGlobalObject)()
return e.__sentryEmberConfig=e.__sentryEmberConfig??{},e.__sentryEmberConfig}()
Object.assign(n,i),o.init(i)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(a,r)||r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}}))}))
const c=()=>o.getCurrentHub()?.getScope()?.getTransaction()
e.getActiveTransaction=c
e.instrumentRoutePerformance=e=>{const t=async(e,t,r,i)=>{const n=(0,s.timestampWithMs)(),a=await r(...i),o=c()
return o?(o.startChild({op:e,description:t,startTimestamp:n}).finish(),a):a}
return{[e.name]:class extends e{beforeModel(...e){return t("ember.route.beforeModel",this.fullRouteName,super.beforeModel.bind(this),e)}async model(...e){return t("ember.route.model",this.fullRouteName,super.model.bind(this),e)}async afterModel(...e){return t("ember.route.afterModel",this.fullRouteName,super.afterModel.bind(this),e)}async setupController(...e){return t("ember.route.setupController",this.fullRouteName,super.setupController.bind(this),e)}}}[e.name]}
e.init=l})),define("@sentry/ember/instance-initializers/sentry-performance",["exports","ember","@ember/runloop","@sentry/browser","@sentry/ember","@sentry/utils"],(function(e,t,r,i,n,s){"use strict"
function a(){const e=(0,s.getGlobalObject)()
e.__sentryEmberConfig=e.__sentryEmberConfig??{}
const t={disablePerformance:!0,sentry:{url:"https://7e3ffdc743c9424c8040b55b22e3c747@gosentry.gointegro.com/8"}}
return t.sentry||(t.sentry={browserTracingOptions:{}}),Object.assign(t.sentry,e.__sentryEmberConfig),t}function o(e){if(a().disablePerformance)return
h(e)}function l(){return r._backburner?r._backburner:r.run.backburner?r.run.backburner:{on(){},off(){}}}function c(e,t,r,i,n){const{disableRunloopPerformance:s}=r
let a,o
const c=function(e){if(!e||!e.getURL||!e.formatURL)return""
const t=e.formatURL(e.getURL())
return"hash"===e.implementation?`${e.rootURL}${t}`:t}(t.location)
if(n&&c){const t=e.recognize(c)
a=i({name:`route:${t.name}`,op:"pageload",tags:{url:c,toRoute:t.name,"routing.instrumentation":"@sentry/ember"}})}const u=function(e,t){t||(a.finish(),l().off("end",u))}
return e.on("routeWillChange",(t=>{const{fromRoute:r,toRoute:n}=function(e,t){const r=e?.from?.name
return{fromRoute:r,toRoute:e&&e.to?e.to.name:t.currentRouteName}}(t,e)
a?.finish(),a=i({name:`route:${n}`,op:"navigation",tags:{fromRoute:r,toRoute:n,"routing.instrumentation":"@sentry/ember"}}),o=a.startChild({op:"ui.ember.transition",description:`route:${r} -> route:${n}`})})),e.on("routeDidChange",(()=>{o&&a&&(o.finish(),s?a.finish():l().on("end",u))})),{startTransaction:i}}function u(e,t){const r={payload:e,now:(0,s.timestampWithMs)()}
t[e.object]=r}function d(e,t,r,i){const a=t[e.object]
if(!a)return
const o=(0,s.timestampWithMs)()
if(1e3*(o-a.now)>=i){const t=(0,n.getActiveTransaction)()
t?.startChild({op:r,description:e.containerKey||e.object,startTimestamp:a.now,endTimestamp:o})}}async function h(e){const o=a(),h=o.sentry,p=o.browserTracingOptions||o.sentry.browserTracingOptions||{},f=await emberAutoImportDynamic("@sentry/tracing"),m=o.transitionTimeout||5e3,g=h.integrations||[]
h.integrations=[...g,new f.Integrations.BrowserTracing({routingInstrumentation:(t,r)=>{const i=e.lookup("router:main")
c(e.lookup("service:router"),i,o,t,r)},idleTimeout:m,...p})],i.init(h),function(e){const{disableRunloopPerformance:t,minimumRunloopQueueDuration:i}=e
if(t)return
let a,o
const c=["actions","routerTransitions","render","afterRender","destroy"]
l().on("begin",((e,t)=>{if(t)return
const l=(0,n.getActiveTransaction)()
l&&(o&&o.finish(),a=(0,s.timestampWithMs)(),c.forEach((e=>{(0,r.scheduleOnce)(e,null,(()=>{(0,r.scheduleOnce)(e,null,(()=>{if(a){const t=(0,s.timestampWithMs)()
1e3*(t-a)>=(i??5)&&l?.startChild({op:`ui.ember.runloop.${e}`,startTimestamp:a,endTimestamp:t}).finish(),a=void 0}(0,n.getActiveTransaction)()&&(a=(0,s.timestampWithMs)())}))}))})))})),l().on("end",((e,t)=>{t||o&&(o.finish(),o=void 0)}))}(o),function(e){const{disableInstrumentComponents:r,minimumComponentRenderDuration:i,enableComponentDefinitions:n}=e
if(r)return
const s=i??2,a={},o={},l=t.default.subscribe
l("render.component",{before(e,t,r){u(r,a)},after(e,t,r,i){d(r,a,"ui.ember.component.render",s)}}),n&&l("render.getComponentDefinition",{before(e,t,r){u(r,o)},after(e,t,r,i){d(r,o,"ui.ember.component.definition",0)}})}(o),function(e){const t="@sentry/ember:initial-load-start",r="@sentry/ember:initial-load-end",{performance:i}=window
if(!(i&&i.clearMarks&&i.clearMeasures))return
if(e.disableInitialLoadInstrumentation)return i.clearMarks(t),void i.clearMarks(r)
if(!i.measure||!i.getEntriesByName||void 0===s.browserPerformanceTimeOrigin)return
const a="@sentry/ember:initial-load",o=i.getEntriesByName(t).length>0,l=i.getEntriesByName(r).length>0
if(!o||!l)return
i.measure(a,t,r)
const c=i.getEntriesByName(a)[0],u=(c.startTime+s.browserPerformanceTimeOrigin)/1e3,d=u+c.duration/1e3,h=(0,n.getActiveTransaction)(),p=h?.startChild({op:"ui.ember.init",startTimestamp:u})
p?.finish(d),i.clearMarks(t),i.clearMarks(r),i.clearMeasures(a)}(o)}Object.defineProperty(e,"__esModule",{value:!0}),e._instrumentEmberRouter=c,e.default=void 0,e.initialize=o,e.instrumentForPerformance=h
e.default={initialize:o}}))
define("@sentry/ember/types",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("ember-ajax/-private/promise",["exports","rsvp"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.Promise{constructor(e,t){super(e,t)}then(e,t,r){const i=super.then(e,t,r)
return i.xhr=this.xhr,i}}e.default=r})),define("ember-ajax/-private/types",[],(function(){})),define("ember-ajax/-private/utils/get-header",["exports","@ember/array","@ember/utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){if((0,r.isNone)(e)||(0,r.isNone)(i))return
const n=(0,t.A)(Object.keys(e)).find((e=>e.toLowerCase()===i.toLowerCase()))
return n?e[n]:void 0}})),define("ember-ajax/-private/utils/is-string",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return"string"==typeof e}})),define("ember-ajax/-private/utils/parse-response-headers",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.CRLF=void 0,e.default=function(e){const r={}
if(!e)return r
return e.split(t).reduce(((e,t)=>{let[r,...i]=t.split(":")
r=r.trim()
const n=i.join(":").trim()
return n&&(e[r]=n),e}),r)}
const t=e.CRLF="\r\n"})),define("ember-ajax/-private/utils/url-helpers",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.haveSameHost=function(e,t){const i=r(e),n=r(t)
return i.protocol===n.protocol&&i.hostname===n.hostname&&i.port===n.port},e.isFullURL=function(e){return!!e.match(t)},e.parseURL=r
const t=/^(http|https)/
function r(e){let t
if("undefined"==typeof FastBoot){const r=document.createElement("a")
r.href=e,t=r}else t=FastBoot.require("url").parse(e)
return{href:t.href,protocol:t.protocol,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash}}})),define("ember-ajax/ajax-request",["exports","@ember/object","ember-ajax/mixins/ajax-request"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(r.default)})),define("ember-ajax/errors",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.UnauthorizedError=e.TimeoutError=e.ServerError=e.NotFoundError=e.InvalidError=e.GoneError=e.ForbiddenError=e.ConflictError=e.BadRequestError=e.AjaxError=e.AbortError=void 0,e.isAbortError=function(e){return h(e)?e instanceof c:0===e},e.isAjaxError=h,e.isBadRequestError=function(e){return h(e)?e instanceof s:400===e},e.isConflictError=function(e){return h(e)?e instanceof u:409===e},e.isForbiddenError=function(e){return h(e)?e instanceof n:403===e},e.isGoneError=function(e){return h(e)?e instanceof o:410===e},e.isInvalidError=function(e){return h(e)?e instanceof r:422===e},e.isNotFoundError=function(e){return h(e)?e instanceof a:404===e},e.isServerError=function(e){return h(e)?e instanceof d:e>=500&&e<600},e.isSuccess=function(e){let t=e
"string"==typeof e&&(t=parseInt(e,10))
return t>=200&&t<300||304===t},e.isTimeoutError=function(e){return e instanceof l},e.isUnauthorizedError=function(e){return h(e)?e instanceof i:401===e}
class t extends Error{constructor(e,t="Ajax operation failed",r){super(t),this.payload=e,this.status=r}}e.AjaxError=t
class r extends t{constructor(e){super(e,"Request was rejected because it was invalid",422)}}e.InvalidError=r
class i extends t{constructor(e){super(e,"Ajax authorization failed",401)}}e.UnauthorizedError=i
class n extends t{constructor(e){super(e,"Request was rejected because user is not permitted to perform this operation.",403)}}e.ForbiddenError=n
class s extends t{constructor(e){super(e,"Request was formatted incorrectly.",400)}}e.BadRequestError=s
class a extends t{constructor(e){super(e,"Resource was not found.",404)}}e.NotFoundError=a
class o extends t{constructor(e){super(e,"Resource is no longer available.",410)}}e.GoneError=o
class l extends t{constructor(){super(null,"The ajax operation timed out",-1)}}e.TimeoutError=l
class c extends t{constructor(){super(null,"The ajax operation was aborted",0)}}e.AbortError=c
class u extends t{constructor(e){super(e,"The ajax operation failed due to a conflict",409)}}e.ConflictError=u
class d extends t{constructor(e,t){super(e,"Request was rejected due to server error",t)}}function h(e){return e instanceof t}e.ServerError=d})),define("ember-ajax/index",["exports","ember-ajax/request"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-ajax/mixins/ajax-request",["exports","@ember/array","@ember/error","@ember/object/mixin","@ember/object","@ember/utils","@ember/runloop","@ember/debug","ember","ember-ajax/errors","ember-ajax/utils/ajax","ember-ajax/-private/utils/parse-response-headers","ember-ajax/-private/utils/get-header","ember-ajax/-private/utils/url-helpers","ember-ajax/-private/utils/is-string","ember-ajax/-private/promise"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{Test:g}=l.default,b=/^application\/(?:vnd\.api\+)?json/i
function y(e){return!!(0,f.default)(e)&&!!e.match(b)}function v(e){return"/"===e.charAt(0)}function w(e){return"/"===e.charAt(e.length-1)}function x(e){return e.substring(1)}function _(e){return e.slice(0,-1)}function S(e){return v(e)&&(e=x(e)),w(e)&&(e=_(e)),e}let k=0
l.default.testing&&g.registerWaiter((function(){return 0===k}))
e.default=i.default.create({contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:void 0,host:void 0,namespace:void 0,trustedHosts:void 0,request(e,t){const r=this.options(e,t),i=this._makeRequest(r),n=new m.default(((e,t)=>{i.then((({response:t})=>{e(t)})).catch((({response:e})=>{t(e)}))}),`ember-ajax: ${r.type} ${r.url} response`)
return n.xhr=i.xhr,n},raw(e,t){const r=this.options(e,t)
return this._makeRequest(r)},_makeRequest(e){const t=e.method||e.type||"GET",r={method:t,type:t,url:e.url};(function(e,{contentType:t,data:r,headers:i}){return"GET"!==e&&!(!y(t)&&!y((0,h.default)(i,"Content-Type")))&&"object"==typeof r})(t,e)&&(e.data=JSON.stringify(e.data)),k+=1
const i=(0,u.default)(e.url,e),n=new m.default(((e,t)=>{i.done(((i,n,s)=>{const o=this.handleResponse(s.status,(0,d.default)(s.getAllResponseHeaders()),i,r)
if((0,c.isAjaxError)(o)){const e={payload:i,textStatus:n,jqXHR:s,response:o};(0,a.join)(null,t,e)}else{const t={payload:i,textStatus:n,jqXHR:s,response:o};(0,a.join)(null,e,t)}})).fail(((e,i,n)=>{(0,o.runInDebug)((function(){"parsererror"===i&&e.responseText}))
const s=this.parseErrorResponse(e.responseText)||n
let l
l="timeout"===i?new c.TimeoutError:"abort"===i?new c.AbortError:this.handleResponse(e.status,(0,d.default)(e.getAllResponseHeaders()),s,r)
const u={payload:s,textStatus:i,jqXHR:e,errorThrown:n,response:l};(0,a.join)(null,t,u)})).always((()=>{k-=1}))}),`ember-ajax: ${e.type} ${e.url}`)
return n.xhr=i,n},post(e,t){return this.request(e,this._addTypeToOptionsFor(t,"POST"))},put(e,t){return this.request(e,this._addTypeToOptionsFor(t,"PUT"))},patch(e,t){return this.request(e,this._addTypeToOptionsFor(t,"PATCH"))},del(e,t){return this.request(e,this._addTypeToOptionsFor(t,"DELETE"))},delete(e,t){return this.del(e,t)},get(e){if(arguments.length>1||-1!==e.indexOf("/"))throw new r.default("It seems you tried to use `.get` to make a request! Use the `.request` method instead.")
return this._super(...arguments)},_addTypeToOptionsFor:(e,t)=>((e=e||{}).type=t,e),_getFullHeadersHash(e){const t=(0,n.get)(this,"headers")
return Object.assign({},t,e)},options(e,t={}){return(t=Object.assign({},t)).url=this._buildURL(e,t),t.type=t.type||"GET",t.dataType=t.dataType||"json",t.contentType=(0,s.isEmpty)(t.contentType)?(0,n.get)(this,"contentType"):t.contentType,this._shouldSendHeaders(t)?t.headers=this._getFullHeadersHash(t.headers):t.headers=t.headers||{},t},_buildURL(e,t={}){if((0,p.isFullURL)(e))return e
const r=[]
let i=t.host||(0,n.get)(this,"host")
i&&(i=w(i)?_(i):i,r.push(i))
let s=t.namespace||(0,n.get)(this,"namespace")
if(s){i?s=S(s):w(s)&&(s=_(s))
new RegExp(`^(/)?${S(s)}/`).test(e)||r.push(s)}return v(e)&&0!==r.length&&(e=x(e)),r.push(e),r.join("/")},handleResponse(e,t,r,i){return this.isSuccess(e,t,r)?r:(r=this.normalizeErrorResponse(e,t,r),this._createCorrectError(e,t,r,i))},_createCorrectError(e,t,r,i){let n
if(this.isUnauthorizedError(e,t,r))n=new c.UnauthorizedError(r)
else if(this.isForbiddenError(e,t,r))n=new c.ForbiddenError(r)
else if(this.isInvalidError(e,t,r))n=new c.InvalidError(r)
else if(this.isBadRequestError(e,t,r))n=new c.BadRequestError(r)
else if(this.isNotFoundError(e,t,r))n=new c.NotFoundError(r)
else if(this.isGoneError(e,t,r))n=new c.GoneError(r)
else if(this.isAbortError(e,t,r))n=new c.AbortError
else if(this.isConflictError(e,t,r))n=new c.ConflictError(r)
else if(this.isServerError(e,t,r))n=new c.ServerError(r,e)
else{const s=this.generateDetailedMessage(e,t,r,i)
n=new c.AjaxError(r,s,e)}return n},_matchHosts:(e,t)=>!!(0,f.default)(e)&&(t instanceof RegExp?t.test(e):"string"==typeof t?t===e:(console.warn("trustedHosts only handles strings or regexes. ",t," is neither."),!1)),_shouldSendHeaders({url:e,host:r}){e=e||"",r=r||(0,n.get)(this,"host")||""
const i=(0,n.get)(this,"trustedHosts")||(0,t.A)(),{hostname:s}=(0,p.parseURL)(e)
return!(0,p.isFullURL)(e)||(!!i.find((e=>this._matchHosts(s,e)))||(0,p.haveSameHost)(e,r))},generateDetailedMessage(e,t,r,i){let n
const s=(0,h.default)(t,"Content-Type")||"Empty Content-Type"
n="text/html"===s.toLowerCase()&&r.length>250?"[Omitted Lengthy HTML]":JSON.stringify(r)
return[`Ember AJAX Request ${`${i.type} ${i.url}`} returned a ${e}`,`Payload (${s})`,n].join("\n")},isUnauthorizedError:(e,t,r)=>(0,c.isUnauthorizedError)(e),isForbiddenError:(e,t,r)=>(0,c.isForbiddenError)(e),isInvalidError:(e,t,r)=>(0,c.isInvalidError)(e),isBadRequestError:(e,t,r)=>(0,c.isBadRequestError)(e),isNotFoundError:(e,t,r)=>(0,c.isNotFoundError)(e),isGoneError:(e,t,r)=>(0,c.isGoneError)(e),isAbortError:(e,t,r)=>(0,c.isAbortError)(e),isConflictError:(e,t,r)=>(0,c.isConflictError)(e),isServerError:(e,t,r)=>(0,c.isServerError)(e),isSuccess:(e,t,r)=>(0,c.isSuccess)(e),parseErrorResponse(e){try{return JSON.parse(e)}catch(t){return e}},normalizeErrorResponse:(e,t,r)=>r})})),define("ember-ajax/mixins/ajax-support",["exports","@ember/object/mixin","@ember/service","@ember/object","@ember/object/computed"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({ajaxService:(0,r.inject)("ajax"),host:(0,n.alias)("ajaxService.host"),namespace:(0,n.alias)("ajaxService.namespace"),headers:(0,n.alias)("ajaxService.headers"),ajax(e,t,r){const n=this.ajaxOptions(...arguments)
return(0,i.get)(this,"ajaxService").request(e,n)}})})),define("ember-ajax/mixins/legacy/normalize-error-response",["exports","@ember/object/mixin","@ember/array","@ember/utils","ember-ajax/-private/utils/is-string"],(function(e,t,r,i,n){"use strict"
function s(e){return"object"==typeof e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({normalizeErrorResponse(e,t,a){return function(e){if(!s(e))return!1
const t=e
return!!t.errors&&(0,r.isArray)(t.errors)}(a=(0,i.isNone)(a)?{}:a)?a.errors.map((function(t){if(s(t)){const e=Object.assign({},t)
return e.status=`${t.status}`,e}return{status:`${e}`,title:t}})):(o=a,(0,r.isArray)(o)?a.map((function(t){return s(t)?{status:`${e}`,title:t.title||"The backend responded with an error",detail:t}:{status:`${e}`,title:`${t}`}})):(0,n.default)(a)?[{status:`${e}`,title:a}]:[{status:`${e}`,title:a.title||"The backend responded with an error",detail:a}])
var o}})})),define("ember-ajax/raw",["exports","ember-ajax/ajax-request"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){return t.default.create().raw(e,r)}})),define("ember-ajax/request",["exports","ember-ajax/ajax-request"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){return t.default.create().request(e,r)}})),define("ember-ajax/services/ajax",["exports","@ember/service","ember-ajax/mixins/ajax-request"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.AjaxServiceClass=void 0
const i=t.default.extend(r.default)
e.default=i
e.AjaxServiceClass=class extends i{}})),define("ember-ajax/utils/ajax",["exports","jquery"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r="undefined"==typeof FastBoot?t.default.ajax:FastBoot.require("najax")
e.default=r})),define("ember-cached-decorator-polyfill/index",["exports","@glimmer/tracking/primitives/cache","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.cached=function(...e){const[r,i,n]=e
const s=new WeakMap,a=n.get
n.get=function(){return s.has(this)||s.set(this,(0,t.createCache)(a.bind(this))),(0,t.getValue)(s.get(this))}}})),define("ember-cli-app-version/initializer-factory",["exports","ember"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let i=!1
return function(){!i&&e&&t&&(r.register(e,t),i=!0)}}
const{libraries:r}=t.default})),define("ember-cli-app-version/utils/regexp",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.versionRegExp=e.versionExtendedRegExp=e.shaRegExp=void 0
e.versionRegExp=/\d+[.]\d+[.]\d+/,e.versionExtendedRegExp=/\d+[.]\d+[.]\d+-[a-z]*([.]\d+)?/,e.shaRegExp=/[a-z\d]{8}$/})),define("ember-click-outside/-private/matches-selector",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.matches=function(e,t){if(!e||1!==e.nodeType)return!1
if(r)return r.call(e,t)
for(var i=e.parentNode.querySelectorAll(t),n=0;n<i.length;n++)if(i[n]==e)return!0
return!1}
const t="undefined"!=typeof Element?Element.prototype:{},r=t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector})),define("ember-click-outside/component",["exports","@ember/component","@ember/runloop","ember-click-outside/utils","@ember/object","@ember/debug"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a
e.default=t.default.extend({init(...e){this._super(...e)},clickHandler:(a="outsideClickHandler",(0,n.computed)(a,(function(){let e=(0,n.get)(this,a)
if(e)return e.bind(this)}))),outsideClickHandler(e){const t=this.element,r=e.path||e.composedPath&&e.composedPath()
if(r)r.includes(t)||this.clickOutside(e)
else{const r=!e.target||!(0,i.documentOrBodyContains)(e.target),n=t===e.target||t.contains(e.target)
r||n||this.clickOutside(e)}},didInsertElement(){this._super(...arguments),this._cancelOutsideListenerSetup=(0,r.next)(this,this.addClickOutsideListener),(0,i.ios)()&&(document.body.style.cursor="pointer")},willDestroyElement(){this._super(...arguments),(0,r.cancel)(this._cancelOutsideListenerSetup),this.removeClickOutsideListener(),(0,i.ios)()&&(document.body.style.cursor="")},addClickOutsideListener(){const e=this.eventType||"click",t=this.clickHandler
document.addEventListener(e,t)},removeClickOutsideListener(){const e=this.eventType||"click",t=this.clickHandler
document.removeEventListener(e,t)},clickOutside(e){if(this.isDestroying||this.isDestroyed)return
const t=this.exceptSelector
if(t&&(0,i.closest)(e.target,t))return
let r=this.onClickOutside
"function"==typeof r&&r(e)}})})),define("ember-click-outside/modifier",["exports","@ember/runloop","@ember/destroyable","ember-modifier","ember-click-outside/utils"],(function(e,t,r,i,n){"use strict"
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends i.default{constructor(){super(...arguments),s(this,"didSetup",!1),s(this,"action",null),s(this,"capture",null),s(this,"eventHandler",null),s(this,"eventType","click"),s(this,"exceptSelector",null),s(this,"cancelOutsideListenerSetup",null),s(this,"cleanup",(()=>{this._destroy(),(0,n.ios)()&&(document.body.style.cursor="")})),(0,r.registerDestructor)(this,this.cleanup)}modify(e,[t],{capture:r,eventType:i,exceptSelector:s}){this.didSetup?this._destroy():((0,n.ios)()&&(document.body.style.cursor="pointer"),this.didSetup=!0),this._init({element:e,action:t,capture:r,eventType:i,exceptSelector:s})}_init({element:e,action:r,capture:i,eventType:n,exceptSelector:s}){r&&(this.action=r,this.exceptSelector=s,this.capture=i,n&&(this.eventType=n),this.eventHandler=this._createHandler(e,this.action,this.exceptSelector),this.cancelOutsideListenerSetup=(0,t.next)(this,this._addClickOutsideListener))}_destroy(){this.action&&((0,t.cancel)(this.cancelOutsideListenerSetup),this._removeClickOutsideListener())}_addClickOutsideListener(){let{capture:e,eventHandler:t,eventType:r}=this
document.addEventListener(r,t,{capture:e})}_removeClickOutsideListener(){let{capture:e,eventHandler:t,eventType:r}=this
document.removeEventListener(r,t,{capture:e})}_createHandler(e,t,r){return i=>{if(r&&(0,n.closest)(i.target,r))return
let s=i.path||i.composedPath&&i.composedPath()
if(s)s.includes(e)||t(i)
else{let r=!i.target||!(0,n.documentOrBodyContains)(i.target),s=e===i.target||e.contains(i.target)
r||s||t(i)}}}}e.default=a})),define("ember-click-outside/utils",["exports","ember-click-outside/-private/matches-selector"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.closest=function(e,r){if((0,t.matches)(e,r))return e
for(;e.parentNode;)if(e=e.parentNode,(0,t.matches)(e,r))return e},e.ios=e.documentOrBodyContains=void 0,e.printConsoleMessage=function(e){console.trace?console.groupCollapsed?(console.groupCollapsed(e),console.trace(),console.groupEnd()):(console.warn(e),console.trace()):console.warn(e)}
e.documentOrBodyContains=e=>"function"==typeof document.contains?document.contains(e):document.body.contains(e)
e.ios=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream})),define("ember-concurrency/-private/async-arrow-runtime",["exports","ember-concurrency/-private/task-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.buildTask=function(e,r,i,n){let s=r
n&&(s=Object.assign({},s),s[n]=!0)
const a=e()
return new t.TaskFactory(i||"<unknown>",a.generator,s).createTask(a.context)}})),define("ember-concurrency/-private/cancelable-promise-helpers",["exports","@ember/debug","rsvp","ember-concurrency/-private/task-instance","ember-concurrency/-private/external/yieldables"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.race=e.hashSettled=e.hash=e.allSettled=e.all=void 0
e.all=l(r.default.Promise,"all",s),e.allSettled=l(r.default,"allSettled",s),e.race=l(r.Promise,"race",s),e.hash=l(r.default,"hash",a),e.hashSettled=l(r.default,"hashSettled",a)
function s(e){return e}function a(e){return Object.keys(e).map((t=>e[t]))}function o(e){if(e)if(e instanceof i.TaskInstance)e.executor.asyncErrorsHandled=!0
else if(e instanceof n.Yieldable)return e._toPromise()
return e}function l(e,t,s){return function(a){let l=function(e,t){if(Array.isArray(e))return e.map(t)
if("object"==typeof e&&null!==e){let r={}
return Object.keys(e).forEach((i=>{r[i]=t(e[i])})),r}return e}(a,o),c=s(l),u=r.default.defer()
e[t](l).then(u.resolve,u.reject)
let d=!1,h=()=>{d||(d=!0,c.forEach((e=>{e&&(e instanceof i.TaskInstance?e.cancel():"function"==typeof e[n.cancelableSymbol]&&e[n.cancelableSymbol]())})))},p=u.promise.finally(h)
return p[n.cancelableSymbol]=h,p}}})),define("ember-concurrency/-private/ember-environment",["exports","ember","rsvp","ember-concurrency/-private/external/environment","@ember/debug","@ember/runloop"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.EmberEnvironment=e.EMBER_ENVIRONMENT=void 0
class a extends i.Environment{assert(...e){}async(e){(0,s.join)((()=>(0,s.schedule)("actions",e)))}reportUncaughtRejection(e){(0,s.next)(null,(function(){if(!t.default.onerror)throw e
t.default.onerror(e)}))}defer(){return(0,r.defer)()}globalDebuggingEnabled(){return t.default.ENV.DEBUG_TASKS}}e.EmberEnvironment=a
e.EMBER_ENVIRONMENT=new a})),define("ember-concurrency/-private/external/environment",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Environment=e.DEFAULT_ENVIRONMENT=void 0
class t{assert(){}async(e){Promise.resolve().then(e)}reportUncaughtRejection(){this.async((e=>{throw e}))}defer(){let e={promise:null,resolve:null,reject:null},t=new Promise(((t,r)=>{e.resolve=t,e.reject=r}))
return e.promise=t,e}globalDebuggingEnabled(){return!1}}e.Environment=t
e.DEFAULT_ENVIRONMENT=new t})),define("ember-concurrency/-private/external/generator-state",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.GeneratorStepResult=e.GeneratorState=void 0
class t{constructor(e,t,r){this.value=e,this.done=t,this.errored=r}}e.GeneratorStepResult=t
e.GeneratorState=class{constructor(e){this.done=!1,this.generatorFactory=e,this.iterator=null}step(e,r){try{let i=this.getIterator(),{value:n,done:s}=i[r](e)
return s?this.finalize(n,!1):new t(n,!1,!1)}catch(i){return this.finalize(i,!0)}}getIterator(){return this.iterator||this.done||(this.iterator=this.generatorFactory()),this.iterator}finalize(e,r){return this.done=!0,this.iterator=null,new t(e,!0,r)}}})),define("ember-concurrency/-private/external/scheduler/policies/bounded-policy",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){this.maxConcurrency=e||1}}}))
define("ember-concurrency/-private/external/scheduler/policies/drop-policy",["exports","ember-concurrency/-private/external/scheduler/policies/bounded-policy","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,r.makeCancelState)("it belongs to a 'drop' Task that was already running")
class n{constructor(e){this.remainingSlots=e}step(){return this.remainingSlots>0?(this.remainingSlots--,r.STARTED):i}}class s extends t.default{makeReducer(){return new n(this.maxConcurrency)}}e.default=s})),define("ember-concurrency/-private/external/scheduler/policies/enqueued-policy",["exports","ember-concurrency/-private/external/scheduler/policies/bounded-policy","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i{constructor(e){this.remainingSlots=e}step(){return this.remainingSlots>0?(this.remainingSlots--,r.STARTED):r.QUEUED}}class n extends t.default{makeReducer(){return new i(this.maxConcurrency)}}e.default=n})),define("ember-concurrency/-private/external/scheduler/policies/execution-states",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.makeCancelState=e.TYPE_STARTED=e.TYPE_QUEUED=e.TYPE_CANCELLED=e.STARTED=e.QUEUED=void 0
const t=e.TYPE_CANCELLED="CANCELLED",r=e.TYPE_STARTED="STARTED",i=e.TYPE_QUEUED="QUEUED"
e.STARTED={type:r},e.QUEUED={type:i}
e.makeCancelState=e=>({type:t,reason:e})})),define("ember-concurrency/-private/external/scheduler/policies/keep-latest-policy",["exports","ember-concurrency/-private/external/scheduler/policies/bounded-policy","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,r.makeCancelState)("it belongs to a 'keepLatest' Task that was already running")
class n{constructor(e,t){this.remainingSlots=e,this.numToCancel=t}step(){return this.remainingSlots>0?(this.remainingSlots--,r.STARTED):this.numToCancel>0?(this.numToCancel--,i):r.QUEUED}}class s extends t.default{makeReducer(e,t){let r=e+t
return new n(this.maxConcurrency,r-this.maxConcurrency-1)}}e.default=s})),define("ember-concurrency/-private/external/scheduler/policies/restartable-policy",["exports","ember-concurrency/-private/external/scheduler/policies/bounded-policy","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,r.makeCancelState)("it belongs to a 'restartable' Task that was .perform()ed again")
class n{constructor(e){this.numToCancel=e}step(){return this.numToCancel>0?(this.numToCancel--,i):r.STARTED}}class s extends t.default{makeReducer(e,t){return new n(e+t-this.maxConcurrency)}}e.default=s})),define("ember-concurrency/-private/external/scheduler/policies/unbounded-policy",["exports","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=new class{step(){return t.STARTED}}
e.default=class{makeReducer(){return r}}})),define("ember-concurrency/-private/external/scheduler/refresh",["exports","ember-concurrency/-private/external/scheduler/policies/execution-states"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=new Map
e.default=class{constructor(e,t,r){this.stateTracker=t,this.schedulerPolicy=e,this.initialTaskInstances=r,this.startingInstances=[]}process(){let[e,t,r]=this.filterFinishedTaskInstances(),i=this.schedulerPolicy.makeReducer(t,r),n=e.filter((e=>this.setTaskInstanceExecutionState(e,i.step())))
return this.stateTracker.computeFinalStates((e=>this.applyState(e))),this.startingInstances.forEach((e=>e.start())),n}filterFinishedTaskInstances(){let e=0,t=0
return[this.initialTaskInstances.filter((r=>{let i=this.stateTracker.stateFor(r.task),n=r.executor.state
return n.isFinished?(i.onCompletion(r),!1):(n.hasStarted?e+=1:t+=1,!0)})),e,t]}setTaskInstanceExecutionState(e,r){let i=this.stateTracker.stateFor(e.task)
switch(e.executor.counted||(e.executor.counted=!0,i.onPerformed(e)),r.type){case t.TYPE_CANCELLED:return e.cancel(r.reason),!1
case t.TYPE_STARTED:return e.executor.state.hasStarted||(this.startingInstances.push(e),i.onStart(e)),i.onRunning(e),!0
case t.TYPE_QUEUED:return i.onQueued(e),!0}}applyState(e){let{taskable:t}=e
if(!t.onState)return
const{guid:i}=t
if(r.has(i)&&e.tag<r.get(i))return
let n=Object.assign({numRunning:e.numRunning,numQueued:e.numQueued,numPerformedInc:e.numPerformedInc},e.attrs)
t.onState(n,t),r.set(i,e.tag)}}})),define("ember-concurrency/-private/external/scheduler/scheduler",["exports","ember-concurrency/-private/external/scheduler/refresh","ember-concurrency/-private/external/scheduler/state-tracker/state-tracker","ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e,t){this.schedulerPolicy=e,this.stateTrackingEnabled=t,this.taskInstances=[]}cancelAll(e,t){let r=this.taskInstances.map((r=>{r.task.guids[e]&&r.executor.cancel(t)})).filter((e=>!!e))
return Promise.all(r)}perform(e){e.onFinalize((()=>this.scheduleRefresh())),this.taskInstances.push(e),this.refresh()}scheduleRefresh(){Promise.resolve().then((()=>this.refresh()))}refresh(){let e=this.stateTrackingEnabled?new r.default:new i.default,n=new t.default(this.schedulerPolicy,e,this.taskInstances)
this.taskInstances=n.process()}}})),define("ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker",["exports","ember-concurrency/-private/external/scheduler/state-tracker/null-state"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=new t.default
e.default=class{stateFor(){return r}computeFinalStates(){}}})),define("ember-concurrency/-private/external/scheduler/state-tracker/null-state",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{onCompletion(){}onPerformed(){}onStart(){}onRunning(){}onQueued(){}}})),define("ember-concurrency/-private/external/scheduler/state-tracker/state-tracker",["exports","ember-concurrency/-private/external/scheduler/state-tracker/state"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=new Map
e.default=class{constructor(){this.states=new Map}stateFor(e){let i=e.guid,n=this.states.get(i)
if(!n){let s=r.has(i)?r.get(i):0
n=new t.default(e,++s),this.states.set(i,n),r.set(i,s)}return n}computeFinalStates(e){this.computeRecursiveState(),this.forEachState((t=>e(t)))}computeRecursiveState(){this.forEachState((e=>{let t=e
e.recurseTaskGroups((e=>{let r=this.stateFor(e)
r.applyStateFrom(t),t=r}))}))}forEachState(e){this.states.forEach((t=>e(t)))}}})),define("ember-concurrency/-private/external/scheduler/state-tracker/state",["exports","ember-concurrency/-private/external/task-instance/completion-states"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e,t){this.taskable=e,this.group=e.group,this.numRunning=0,this.numQueued=0,this.numPerformedInc=0,this.attrs={},this.tag=t}onCompletion(e){let r=e.completionState
this.attrs.lastRunning=null,this.attrs.lastComplete=e,r===t.COMPLETION_SUCCESS?this.attrs.lastSuccessful=e:(r===t.COMPLETION_ERROR?this.attrs.lastErrored=e:r===t.COMPLETION_CANCEL&&(this.attrs.lastCanceled=e),this.attrs.lastIncomplete=e)}onPerformed(e){this.numPerformedInc+=1,this.attrs.lastPerformed=e}onStart(e){this.attrs.last=e}onRunning(e){this.attrs.lastRunning=e,this.numRunning+=1}onQueued(){this.numQueued+=1}recurseTaskGroups(e){let t=this.group
for(;t;)e(t),t=t.group}applyStateFrom(e){Object.assign(this.attrs,e.attrs),this.numRunning+=e.numRunning,this.numQueued+=e.numQueued,this.numPerformedInc+=e.numPerformedInc}}})),define("ember-concurrency/-private/external/task-decorators",["exports","ember-concurrency/-private/external/task-factory"],(function(e,t){"use strict"
function r(e,r,i,n=[],s=t.TaskFactory){let a,{initializer:o,get:l,value:c}=i
o?a=o.call(void 0):l?a=l.call(void 0):c&&(a=c),a.displayName=`${r} (task)`
let u=new WeakMap,d=new s(r,a,n[0]||{})
return d._setupEmberKVO(e),{get(){let e=u.get(this)
return e||(e=d.createTask(this),u.set(this,e)),e}}}function i(e,r,i,n=[],s=t.TaskFactory){let a=new WeakMap,o=new s(r,null,n[0]||{})
return{get(){let e=a.get(this)
return e||(e=o.createTaskGroup(this),a.set(this,e)),e}}}function n(e){return function(...t){return function(e){let[t,r,i]=e
return 3===e.length&&"object"==typeof t&&null!==t&&"string"==typeof r&&("object"==typeof i&&null!==i&&"enumerable"in i&&"configurable"in i||void 0===i)}(t)?e(...t):(...r)=>e(...r,t)}}function s(e,r={},i=t.TaskFactory){return n(((t,n,s,[a]=[])=>{let o=Object.assign({},{...r,...a})
return e(t,n,s,[o],i)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.createTaskDecorator=function(e={},i=t.TaskFactory){return s(r,e,i)},e.createTaskGroupDecorator=function(e={},r=t.TaskFactory){return s(i,e,r)},e.decoratorWithParams=n,e.lastValue=void 0
e.lastValue=n(((e,t,r,[i]=[])=>{const{initializer:n}=r
return delete r.initializer,{get(){let e=this[i].lastSuccessful
return e?e.value:n?n.call(this):void 0}}}))})),define("ember-concurrency/-private/external/task-factory",["exports","ember-concurrency/-private/external/scheduler/scheduler","ember-concurrency/-private/external/scheduler/policies/unbounded-policy","ember-concurrency/-private/external/scheduler/policies/enqueued-policy","ember-concurrency/-private/external/scheduler/policies/drop-policy","ember-concurrency/-private/external/scheduler/policies/keep-latest-policy","ember-concurrency/-private/external/scheduler/policies/restartable-policy","ember-concurrency/-private/external/task/task","ember-concurrency/-private/external/task/task-group","ember-concurrency/-private/external/environment"],(function(e,t,r,i,n,s,a,o,l,c){"use strict"
function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskFactory=void 0,e.getModifier=function(e){return d[e]},e.hasModifier=h,e.registerModifier=function(e,t){if(d[e])throw new Error(`A modifier with the name '${e}' has already been defined.`)
d[e]=t}
const d={enqueue:(e,t)=>t&&e.setBufferPolicy(i.default),evented:(e,t)=>t&&e.setEvented(t),debug:(e,t)=>t&&e.setDebug(t),drop:(e,t)=>t&&e.setBufferPolicy(n.default),group:(e,t)=>e.setGroup(t),keepLatest:(e,t)=>t&&e.setBufferPolicy(s.default),maxConcurrency:(e,t)=>e.setMaxConcurrency(t),onState:(e,t)=>e.setOnState(t),restartable:(e,t)=>t&&e.setBufferPolicy(a.default)}
function h(e){return e in d}e.TaskFactory=class{constructor(e="<unknown>",t=null,i={}){u(this,"env",c.DEFAULT_ENVIRONMENT),u(this,"_debug",null),u(this,"_enabledModifiers",[]),u(this,"_hasSetConcurrencyConstraint",!1),u(this,"_hasSetBufferPolicy",!1),u(this,"_hasEnabledEvents",!1),u(this,"_maxConcurrency",null),u(this,"_onStateCallback",((e,t)=>t.setState(e))),u(this,"_schedulerPolicyClass",r.default),u(this,"_taskGroupPath",null),this.name=e,this.taskDefinition=t,this.options=i,this._processModifierOptions(i)}createTask(e){let t=this.getTaskOptions(e)
return new o.Task(Object.assign({generatorFactory:t=>this.taskDefinition.apply(e,t)},t))}createTaskGroup(e){let t=this.getTaskOptions(e)
return new l.TaskGroup(t)}getModifier(e){if(h(e))return d[e].bind(null,this)}getOptions(){return this.options}getScheduler(e,r){return new t.default(e,r)}getTaskOptions(e){let t,r,i=this._onStateCallback
if(this._taskGroupPath){if(t=e[this._taskGroupPath],!(t instanceof l.TaskGroup))throw new Error(`Expected group '${this._taskGroupPath}' to be defined but was not found.`)
r=t.scheduler}else{let e=new this._schedulerPolicyClass(this._maxConcurrency)
r=this.getScheduler(e,i&&"function"==typeof i)}return{context:e,debug:this._debug,env:this.env,name:this.name,group:t,scheduler:r,hasEnabledEvents:this._hasEnabledEvents,onStateCallback:i,enabledModifiers:this._enabledModifiers,modifierOptions:this.getOptions()}}setBufferPolicy(e){return function(e){if(e._hasSetBufferPolicy)throw new Error(`Cannot set multiple buffer policies on a task or task group. ${e._schedulerPolicyClass} has already been set for task or task group '${e.name}'`)}(this),this._hasSetBufferPolicy=!0,this._hasSetConcurrencyConstraint=!0,this._schedulerPolicyClass=e,function(e){if(e._hasSetConcurrencyConstraint&&e._taskGroupPath)throw new Error("Cannot use both 'group' and other concurrency-constraining task modifiers (e.g. 'drop', 'enqueue', 'restartable')")}(this),this}setDebug(e){return this._debug=e,this}setEvented(e){return this._hasEnabledEvents=e,this}setMaxConcurrency(e){return this._hasSetConcurrencyConstraint=!0,this._maxConcurrency=e,this}setGroup(e){return this._taskGroupPath=e,this}setName(e){return this.name=e,this}setOnState(e){return this._onStateCallback=e,this}setTaskDefinition(e){return this.taskDefinition=e,this}_processModifierOptions(e){if(e)for(let t of Object.keys(e)){let r=e[t],i=this.getModifier(t)
"function"==typeof i&&i(r)&&this._enabledModifiers.push(t)}}}})),define("ember-concurrency/-private/external/task-instance/base",["exports","ember-concurrency/-private/external/task-instance/initial-state","ember-concurrency/-private/external/yieldables","ember-concurrency/-private/external/task-instance/cancelation"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.BaseTaskInstance=void 0
class n{constructor({task:e,args:t,executor:r,performType:i,hasEnabledEvents:n}){this.task=e,this.args=t,this.performType=i,this.executor=r,this.executor.taskInstance=this,this.hasEnabledEvents=n}setState(){}onStarted(){}onSuccess(){}onError(){}onCancel(){}formatCancelReason(){}selfCancelLoopWarning(){}onFinalize(e){this.executor.onFinalize(e)}proceed(e,t,r){this.executor.proceedChecked(e,t,r)}[r.yieldableSymbol](e,t){return this.executor.onYielded(e,t)}cancel(e=".cancel() was explicitly called"){this.executor.cancel(new i.CancelRequest(i.CANCEL_KIND_EXPLICIT,e))}then(...e){return this.executor.promise().then(...e)}catch(...e){return this.executor.promise().catch(...e)}finally(...e){return this.executor.promise().finally(...e)}toString(){return`${this.task} TaskInstance`}start(){return this.executor.start(),this}}e.BaseTaskInstance=n,Object.assign(n.prototype,t.INITIAL_STATE),Object.assign(n.prototype,{state:"waiting",isDropped:!1,isRunning:!0})})),define("ember-concurrency/-private/external/task-instance/cancelation",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TASK_CANCELATION_NAME=e.CancelRequest=e.CANCEL_KIND_YIELDABLE_CANCEL=e.CANCEL_KIND_PARENT_CANCEL=e.CANCEL_KIND_LIFESPAN_END=e.CANCEL_KIND_EXPLICIT=void 0,e.didCancel=function(e){return e&&e.name===t}
const t=e.TASK_CANCELATION_NAME="TaskCancelation"
e.CANCEL_KIND_EXPLICIT="explicit",e.CANCEL_KIND_YIELDABLE_CANCEL="yielded",e.CANCEL_KIND_LIFESPAN_END="lifespan_end",e.CANCEL_KIND_PARENT_CANCEL="parent_cancel"
e.CancelRequest=class{constructor(e,t){this.kind=e,this.reason=t,this.promise=new Promise((e=>{this.finalize=e}))}}})),define("ember-concurrency/-private/external/task-instance/completion-states",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.COMPLETION_SUCCESS=e.COMPLETION_PENDING=e.COMPLETION_ERROR=e.COMPLETION_CANCEL=void 0
e.COMPLETION_PENDING=0,e.COMPLETION_SUCCESS=1,e.COMPLETION_ERROR=2,e.COMPLETION_CANCEL=3})),define("ember-concurrency/-private/external/task-instance/executor",["exports","ember-concurrency/-private/external/generator-state","ember-concurrency/-private/external/task-instance/initial-state","ember-concurrency/-private/external/yieldables","ember-concurrency/-private/external/task-instance/completion-states","ember-concurrency/-private/external/task-instance/cancelation"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TaskInstanceExecutor=e.PERFORM_TYPE_UNLINKED=e.PERFORM_TYPE_LINKED=e.PERFORM_TYPE_DEFAULT=void 0,e.getRunningInstance=function(){return u[u.length-1]}
const a=e.PERFORM_TYPE_DEFAULT="PERFORM_TYPE_DEFAULT",o=e.PERFORM_TYPE_UNLINKED="PERFORM_TYPE_UNLINKED",l=e.PERFORM_TYPE_LINKED="PERFORM_TYPE_LINKED",c={}
let u=[]
e.TaskInstanceExecutor=class{constructor({generatorFactory:e,env:i,debug:n}){this.generatorState=new t.GeneratorState(e),this.state=Object.assign({},r.INITIAL_STATE),this.index=1,this.disposers=[],this.finalizeCallbacks=[],this.env=i,this.debug=n,this.cancelRequest=null}start(){this.state.hasStarted||this.cancelRequest||(this.setState({hasStarted:!0}),this.proceedSync(i.YIELDABLE_CONTINUE,void 0),this.taskInstance.onStarted())}cancel(e){return this.requestCancel(e)?(this.state.hasStarted?this.proceedWithCancelAsync():this.finalizeWithCancel(),this.cancelRequest.promise):(e.finalize(),e.promise)}setState(e){Object.assign(this.state,e),this.taskInstance.setState(this.state)}proceedChecked(e,t,r){this.state.isFinished||this.advanceIndex(e)&&(t===i.YIELDABLE_CANCEL?(this.requestCancel(new s.CancelRequest(s.CANCEL_KIND_YIELDABLE_CANCEL),r),this.proceedWithCancelAsync()):this.proceedAsync(t,r))}proceedWithCancelAsync(){this.proceedAsync(i.YIELDABLE_RETURN,c)}proceedAsync(e,t){this.advanceIndex(this.index),this.env.async((()=>this.proceedSync(e,t)))}proceedSync(e,t){this.state.isFinished||(this.dispose(),this.generatorState.done?this.handleResolvedReturnedValue(e,t):this.handleResolvedContinueValue(e,t))}handleResolvedContinueValue(e,t){let r=this.index,i=this.generatorStep(t,e)
this.advanceIndex(r)&&(i.errored?this.finalize(i.value,n.COMPLETION_ERROR):this.handleYieldedValue(i))}handleResolvedReturnedValue(e,t){switch(e){case i.YIELDABLE_CONTINUE:case i.YIELDABLE_RETURN:this.finalize(t,n.COMPLETION_SUCCESS)
break
case i.YIELDABLE_THROW:this.finalize(t,n.COMPLETION_ERROR)}}handleYieldedUnknownThenable(e){let t=this.index
e.then((e=>{this.proceedChecked(t,i.YIELDABLE_CONTINUE,e)}),(e=>{this.proceedChecked(t,i.YIELDABLE_THROW,e)}))}advanceIndex(e){if(this.index===e)return++this.index}handleYieldedValue(e){let t=e.value
t?(this.addDisposer(t[i.cancelableSymbol]),t[i.yieldableSymbol]?this.invokeYieldable(t):"function"==typeof t.then?this.handleYieldedUnknownThenable(t):this.proceedWithSimpleValue(t)):this.proceedWithSimpleValue(t)}proceedWithSimpleValue(e){this.proceedAsync(i.YIELDABLE_CONTINUE,e)}addDisposer(e){"function"==typeof e&&this.disposers.push(e)}dispose(){let e=this.disposers
0!==e.length&&(this.disposers=[],e.forEach((e=>e())))}generatorStep(e,t){u.push(this)
let r=this.generatorState.step(e,t)
if(u.pop(),this._expectsLinkedYield){let e=r.value
e&&e.performType===l||console.warn("You performed a .linked() task without immediately yielding/returning it. This is currently unsupported (but might be supported in future version of ember-concurrency)."),this._expectsLinkedYield=!1}return r}maybeResolveDefer(){this.defer&&this.state.isFinished&&(this.state.completionState===n.COMPLETION_SUCCESS?this.defer.resolve(this.state.value):this.defer.reject(this.state.error))}onFinalize(e){this.finalizeCallbacks.push(e),this.state.isFinished&&this.runFinalizeCallbacks()}runFinalizeCallbacks(){this.finalizeCallbacks.forEach((e=>e())),this.finalizeCallbacks=[],this.maybeResolveDefer(),this.maybeThrowUnhandledTaskErrorLater()}promise(){return this.defer||(this.defer=this.env.defer(),this.asyncErrorsHandled=!0,this.maybeResolveDefer()),this.defer.promise}maybeThrowUnhandledTaskErrorLater(){this.asyncErrorsHandled||this.state.completionState!==n.COMPLETION_ERROR||(0,s.didCancel)(this.state.error)||this.env.async((()=>{this.asyncErrorsHandled||this.env.reportUncaughtRejection(this.state.error)}))}requestCancel(e){return!this.cancelRequest&&!this.state.isFinished&&(this.cancelRequest=e,!0)}finalize(e,t){if(this.cancelRequest)return this.finalizeWithCancel()
let r={completionState:t}
t===n.COMPLETION_SUCCESS?(r.isSuccessful=!0,r.value=e):t===n.COMPLETION_ERROR?(r.isError=!0,r.error=e):t===n.COMPLETION_CANCEL&&(r.error=e),this.finalizeShared(r)}finalizeWithCancel(){let e=this.taskInstance.formatCancelReason(this.cancelRequest.reason),t=new Error(e)
this.debugEnabled()&&console.log(e),t.name=s.TASK_CANCELATION_NAME,this.finalizeShared({isCanceled:!0,completionState:n.COMPLETION_CANCEL,error:t,cancelReason:e}),this.cancelRequest.finalize()}debugEnabled(){return this.debug||this.env.globalDebuggingEnabled()}finalizeShared(e){this.index++,e.isFinished=!0,this.setState(e),this.runFinalizeCallbacks(),this.dispatchFinalizeEvents(e.completionState)}dispatchFinalizeEvents(e){switch(e){case n.COMPLETION_SUCCESS:this.taskInstance.onSuccess()
break
case n.COMPLETION_ERROR:this.taskInstance.onError(this.state.error)
break
case n.COMPLETION_CANCEL:this.taskInstance.onCancel(this.state.cancelReason)}}invokeYieldable(e){try{let t=e[i.yieldableSymbol](this.taskInstance,this.index)
this.addDisposer(t)}catch(t){this.env.reportUncaughtRejection(t)}}onYielded(e,t){this.asyncErrorsHandled=!0,this.onFinalize((()=>{let r=this.state.completionState
r===n.COMPLETION_SUCCESS?e.proceed(t,i.YIELDABLE_CONTINUE,this.state.value):r===n.COMPLETION_ERROR?e.proceed(t,i.YIELDABLE_THROW,this.state.error):r===n.COMPLETION_CANCEL&&e.proceed(t,i.YIELDABLE_CANCEL,null)}))
let r=this.getPerformType()
if(r!==o)return()=>{this.detectSelfCancelLoop(r,e),this.cancel(new s.CancelRequest(s.CANCEL_KIND_PARENT_CANCEL))}}getPerformType(){return this.taskInstance.performType||a}detectSelfCancelLoop(e,t){if(e!==a)return
let r=t.executor&&t.executor.cancelRequest
!r||r.kind!==s.CANCEL_KIND_LIFESPAN_END||this.cancelRequest||this.state.isFinished||this.taskInstance.selfCancelLoopWarning(t)}}})),define("ember-concurrency/-private/external/task-instance/initial-state",["exports","ember-concurrency/-private/external/task-instance/completion-states"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.INITIAL_STATE=void 0
e.INITIAL_STATE={completionState:t.COMPLETION_PENDING,value:null,error:null,isSuccessful:!1,isError:!1,isCanceled:!1,hasStarted:!1,isFinished:!1}})),define("ember-concurrency/-private/external/task/default-state",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_STATE=void 0
const t=e.DEFAULT_STATE={last:null,lastRunning:null,lastPerformed:null,lastSuccessful:null,lastComplete:null,lastErrored:null,lastCanceled:null,lastIncomplete:null,performCount:0}
Object.freeze(t)})),define("ember-concurrency/-private/external/task/task-group",["exports","ember-concurrency/-private/external/task/taskable"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TaskGroup=void 0
class r extends t.Taskable{}e.TaskGroup=r})),define("ember-concurrency/-private/external/task/task",["exports","ember-concurrency/-private/external/task/taskable","ember-concurrency/-private/external/task-instance/executor"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Task=void 0
class i{constructor(e,t,r){this.task=e,this.performType=t,this.linkedObject=r}perform(...e){return this.task._performShared(e,this.performType,this.linkedObject)}}class n extends t.Taskable{constructor(e){super(e),this.generatorFactory=e.generatorFactory,this.perform=this._perform.bind(this)}linked(){let e=(0,r.getRunningInstance)()
if(!e)throw new Error("You can only call .linked() from within a task.")
return new i(this,r.PERFORM_TYPE_LINKED,e)}unlinked(){return new i(this,r.PERFORM_TYPE_UNLINKED,null)}toString(){return`<Task:${this.name}>`}_clone(){return new n({context:this.context,debug:this.debug,env:this.env,generatorFactory:this.generatorFactory,group:this.group,hasEnabledEvents:this.hasEnabledEvents,name:this.name,onStateCallback:this.onStateCallback,scheduler:this.scheduler})}_curry(...e){let t=this._clone()
return t._curryArgs=[...this._curryArgs||[],...e],t}_perform(...e){return this._performShared(e,r.PERFORM_TYPE_DEFAULT,null)}_performShared(e,t,i){let n=this._curryArgs?[...this._curryArgs,...e]:e,s=this._taskInstanceFactory(n,t,i)
return t===r.PERFORM_TYPE_LINKED&&(i._expectsLinkedYield=!0),this._isAlive||s.cancel(),this.scheduler.perform(s),s}_taskInstanceOptions(e,t,i){return{task:this,args:e,executor:new r.TaskInstanceExecutor({generatorFactory:()=>this.generatorFactory(e),env:this.env,debug:this.debug}),performType:t,hasEnabledEvents:this.hasEnabledEvents}}}e.Task=n})),define("ember-concurrency/-private/external/task/taskable",["exports","ember-concurrency/-private/external/task/default-state","ember-concurrency/-private/external/task-instance/cancelation"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Taskable=void 0
let i=0
class n{constructor(e){this.context=e.context,this.debug=e.debug||!1,this.enabledModifiers=e.enabledModifiers,this.env=e.env,this.group=e.group,this.hasEnabledEvents=e.hasEnabledEvents,this.modifierOptions=e.modifierOptions,this.name=e.name,this.onStateCallback=e.onStateCallback,this.scheduler=e.scheduler,this.guid="ec_"+i++,this.guids={},this.guids[this.guid]=!0,this.group&&Object.assign(this.guids,this.group.guids)}cancelAll(e){let{reason:t,cancelRequestKind:i,resetState:n}=e||{}
t=t||".cancelAll() was explicitly called on the Task"
let s=new r.CancelRequest(i||r.CANCEL_KIND_EXPLICIT,t)
return this.scheduler.cancelAll(this.guid,s).then((()=>{n&&this._resetState()}))}get _isAlive(){return!0}_resetState(){this.setState(t.DEFAULT_STATE)}setState(){}}e.Taskable=n,Object.assign(n.prototype,t.DEFAULT_STATE),Object.assign(n.prototype,{numRunning:0,numQueued:0,isRunning:!1,isQueued:!1,isIdle:!0,state:"idle"})})),define("ember-concurrency/-private/external/yieldables",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Yieldable=e.YIELDABLE_THROW=e.YIELDABLE_RETURN=e.YIELDABLE_CONTINUE=e.YIELDABLE_CANCEL=void 0,e.animationFrame=function(){return new c},e.forever=e.cancelableSymbol=void 0,e.rawTimeout=function(e){return new u(e)},e.yieldableSymbol=void 0
const t=e.cancelableSymbol="__ec_cancel__",r=e.yieldableSymbol="__ec_yieldable__",i=e.YIELDABLE_CONTINUE="next",n=e.YIELDABLE_THROW="throw",s=e.YIELDABLE_RETURN="return",a=e.YIELDABLE_CANCEL="cancel"
class o{constructor(e,t){this._taskInstance=e,this._resumeIndex=t}getTaskInstance(){return this._taskInstance}cancel(){let e=this._taskInstance
e.proceed.call(e,this._resumeIndex,a)}next(e){let t=this._taskInstance
t.proceed.call(t,this._resumeIndex,i,e)}return(e){let t=this._taskInstance
t.proceed.call(t,this._resumeIndex,s,e)}throw(e){let t=this._taskInstance
t.proceed.call(t,this._resumeIndex,n,e)}}class l{constructor(){this[r]=this[r].bind(this)}onYield(){}_deferable(){let e={resolve:void 0,reject:void 0}
return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e}_toPromise(){let e=this._deferable(),n={proceed(t,r,n){r==i||r==s?e.resolve(n):e.reject(n)}},a=this[r](n,0)
return e.promise[t]=a,e.promise}then(...e){return this._toPromise().then(...e)}catch(...e){return this._toPromise().catch(...e)}finally(...e){return this._toPromise().finally(...e)}[r](e,t){let r=new o(e,t)
return this.onYield(r)}}e.Yieldable=l
class c extends l{onYield(e){let t=requestAnimationFrame((()=>e.next()))
return()=>cancelAnimationFrame(t)}}class u extends l{constructor(e){super(),this.ms=e}onYield(e){let t=setTimeout((()=>e.next()),this.ms)
return()=>clearTimeout(t)}}e.forever=new class extends l{onYield(){}}})),define("ember-concurrency/-private/helpers",["exports","@ember/object","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.taskHelperClosure=function(e,r,i,n){let s=i[0],a=i.slice(1)
return function(...e){if(s&&"function"==typeof s[r]){if(n&&n.value){let r=e.pop()
e.push((0,t.get)(r,n.value))}return s[r](...a,...e)}}}})),define("ember-concurrency/-private/scheduler/ember-scheduler",["exports","ember-concurrency/-private/external/scheduler/scheduler","@ember/runloop"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{scheduleRefresh(){(0,r.once)(this,this.refresh)}}e.default=i})),define("ember-concurrency/-private/task-decorators",["exports","@ember/object","ember-concurrency/-private/external/task-decorators","ember-concurrency/-private/task-factory","ember-concurrency/-private/utils"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.taskGroup=e.task=e.restartableTaskGroup=e.restartableTask=e.lastValue=e.keepLatestTaskGroup=e.keepLatestTask=e.enqueueTaskGroup=e.enqueueTask=e.dropTaskGroup=e.dropTask=void 0
const s=(0,r.decoratorWithParams)(((e,r,i,[n]=[])=>{const{initializer:s}=i
return delete i.initializer,(0,t.computed)(`${n}.lastSuccessful`,(function(){let e=(0,t.get)(this,`${n}.lastSuccessful`)
return e?(0,t.get)(e,"value"):s?s.call(this):void 0}))(e,r,i)}))
e.lastValue=n.USE_TRACKED?r.lastValue:s,e.task=(0,r.createTaskDecorator)({},i.TaskFactory),e.dropTask=(0,r.createTaskDecorator)({drop:!0},i.TaskFactory),e.enqueueTask=(0,r.createTaskDecorator)({enqueue:!0},i.TaskFactory),e.keepLatestTask=(0,r.createTaskDecorator)({keepLatest:!0},i.TaskFactory),e.restartableTask=(0,r.createTaskDecorator)({restartable:!0},i.TaskFactory),e.taskGroup=(0,r.createTaskGroupDecorator)({},i.TaskFactory),e.dropTaskGroup=(0,r.createTaskGroupDecorator)({drop:!0},i.TaskFactory),e.enqueueTaskGroup=(0,r.createTaskGroupDecorator)({enqueue:!0},i.TaskFactory),e.keepLatestTaskGroup=(0,r.createTaskGroupDecorator)({keepLatest:!0},i.TaskFactory),e.restartableTaskGroup=(0,r.createTaskGroupDecorator)({restartable:!0},i.TaskFactory)})),define("ember-concurrency/-private/task-factory",["exports","@ember/debug","@ember/object","@ember/object/events","@ember/object/observers","@ember/runloop","ember-concurrency/-private/external/task-factory","ember-concurrency/-private/task","ember-concurrency/-private/task-properties","ember-concurrency/-private/task-group","ember-concurrency/-private/scheduler/ember-scheduler","ember-concurrency/-private/ember-environment"],(function(e,t,r,i,n,s,a,o,l,c,u,d){"use strict"
function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskFactory=void 0
let p=0
function f(e,t,r,i,n,s){if(r&&r.length>0)for(let a=0;a<r.length;++a){let o=r[a],l="__ember_concurrency_handler_"+p++
t[l]=m(i,n,s),e(t,o,null,l)}}function m(e,t,i){return function(){let n=(0,r.get)(this,e)
i?(0,s.scheduleOnce)("actions",n,t,...arguments):n[t].apply(n,arguments)}}const g=e=>Array.isArray(e)?e:[e];(0,a.registerModifier)("cancelOn",((e,t)=>e.addCancelEvents(...g(t)))),(0,a.registerModifier)("observes",((e,t)=>e.addObserverKeys(...g(t)))),(0,a.registerModifier)("on",((e,t)=>e.addPerformEvents(...g(t))))
class b extends a.TaskFactory{constructor(...e){super(...e),h(this,"env",d.EMBER_ENVIRONMENT)}createTask(e){let t=this.getTaskOptions(e)
return"object"==typeof this.taskDefinition?new o.EncapsulatedTask(Object.assign({taskObj:this.taskDefinition},t)):new o.Task(Object.assign({generatorFactory:t=>this.taskDefinition.apply(e,t)},t))}createTaskGroup(e){let t=this.getTaskOptions(e)
return new c.TaskGroup(t)}addCancelEvents(...e){return this._cancelEventNames=this._cancelEventNames||[],this._cancelEventNames.push(...e),this}addObserverKeys(...e){return this._observes=this._observes||[],this._observes.push(...e),this}addPerformEvents(...e){return this._eventNames=this._eventNames||[],this._eventNames.push(...e),this}getModifier(e){let t=super.getModifier(e)
return t||"function"!=typeof l.TaskProperty.prototype[e]||(t=l.TaskProperty.prototype[e].bind(this)),t}getScheduler(e,t){return new u.default(e,t)}_setupEmberKVO(e){f(i.addListener,e,this._eventNames,this.name,"perform",!1),f(i.addListener,e,this._cancelEventNames,this.name,"cancelAll",!1),f(n.addObserver,e,this._observes,this.name,"perform",!0)}get taskFn(){return this.taskDefinition}set taskFn(e){this.setTaskDefinition(e)}}e.TaskFactory=b})),define("ember-concurrency/-private/task-group",["exports","ember-concurrency/-private/external/task/task-group","ember-concurrency/-private/taskable-mixin","ember-concurrency/-private/tracked-state"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TaskGroup=void 0
class n extends t.TaskGroup{}e.TaskGroup=n,i.TRACKED_INITIAL_TASK_STATE&&Object.defineProperties(n.prototype,i.TRACKED_INITIAL_TASK_STATE),Object.assign(n.prototype,r.TASKABLE_MIXIN)})),define("ember-concurrency/-private/task-instance",["exports","ember-concurrency/-private/external/task-instance/base","ember-concurrency/-private/tracked-state","ember-concurrency/-private/utils"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TaskInstance=void 0
class n extends t.BaseTaskInstance{setState(e){let t=this._recomputeState(e);(0,i.assignProperties)(this,{...e,isRunning:!e.isFinished,isDropped:"dropped"===t,state:t})}_recomputeState(e){return e.isDropped?"dropped":e.isCanceled?e.hasStarted?"canceled":"dropped":e.isFinished?"finished":e.hasStarted?"running":"waiting"}onStarted(){this.triggerEvent("started",this)}onSuccess(){this.triggerEvent("succeeded",this)}onError(e){this.triggerEvent("errored",this,e)}onCancel(e){this.triggerEvent("canceled",this,e)}formatCancelReason(e){return`TaskInstance '${this.getName()}' was canceled because ${e}. For more information, see: http://ember-concurrency.com/docs/task-cancelation-help`}getName(){return this.name||(this.name=this.task&&this.task.name||"<unknown>"),this.name}selfCancelLoopWarning(e){let t=`\`${e.getName()}\``,r=`\`${this.getName()}\``
console.warn(`ember-concurrency detected a potentially hazardous "self-cancel loop" between parent task ${t} and child task ${r}. If you want child task ${r} to be canceled when parent task ${t} is canceled, please change \`.perform()\` to \`.linked().perform()\`. If you want child task ${r} to keep running after parent task ${t} is canceled, change it to \`.unlinked().perform()\``)}triggerEvent(...e){if(!this.hasEnabledEvents)return
let t=this.task,r=t.context,i=t&&t.name
if(r&&r.trigger&&i){let[t,...n]=e
r.trigger(`${i}:${t}`,...n)}}}e.TaskInstance=n,r.TRACKED_INITIAL_INSTANCE_STATE&&Object.defineProperties(n.prototype,r.TRACKED_INITIAL_INSTANCE_STATE)}))
define("ember-concurrency/-private/task-properties",["exports","ember","@ember/object","@ember/object/computed","ember-concurrency/-private/external/scheduler/policies/enqueued-policy","ember-concurrency/-private/external/scheduler/policies/drop-policy","ember-concurrency/-private/external/scheduler/policies/keep-latest-policy","ember-concurrency/-private/external/scheduler/policies/restartable-policy"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.propertyModifiers=e.TaskProperty=e.TaskGroupProperty=void 0,e.taskComputed=function(e){{let t=function(i,n){return void 0!==t.setup&&t.setup(i,n),(0,r.computed)(e)(...arguments)}
return h(t),t}},e.taskFactorySymbol=void 0
let l=e.taskFactorySymbol="__ec_task_factory"
const c=e.propertyModifiers={restartable(){return this[l].setBufferPolicy(o.default),this},enqueue(){return this[l].setBufferPolicy(n.default),this},drop(){return this[l].setBufferPolicy(s.default),this},keepLatest(){return this[l].setBufferPolicy(a.default),this},maxConcurrency(e){return this[l].setMaxConcurrency(e),this},group(e){return this[l].setGroup(e),this},evented(){return this[l].setEvented(!0),this},debug(){return this[l].setDebug(!0),this},onState(e){return this[l].setOnState(e),this}}
let u=e.TaskProperty=void 0,d=e.TaskGroupProperty=void 0
e.TaskProperty=u=class{},e.TaskGroupProperty=d=class{},Object.assign(d.prototype,c),Object.assign(u.prototype,c,{setup(e,t){this.callSuperSetup&&this.callSuperSetup(...arguments),this[l].setName(t),this[l]._setupEmberKVO(e)},on(){return this[l].addPerformEvents(...arguments),this},cancelOn(){return this[l].addCancelEvents(...arguments),this},observes(){return this[l].addObserverKeys(...arguments),this}})
const h=t.default._setClassicDecorator||t.default._setComputedDecorator})),define("ember-concurrency/-private/task-public-api",["exports","ember-concurrency/-private/task-factory","ember-concurrency/-private/task-properties","ember-concurrency/-private/task-decorators","@ember/debug"],(function(e,t,r,i,n){"use strict"
function s(e){return!!e&&("function"!=typeof e&&(("object"!=typeof e||!("perform"in e)||"function"!=typeof e.perform)&&Object.getPrototypeOf(e)===Object.prototype))}Object.defineProperty(e,"__esModule",{value:!0}),e.task=function(e,n,a){return s(e)||n&&a?(0,i.task)(...arguments):function(e){const i=(0,r.taskComputed)((function(){return i[r.taskFactorySymbol].setTaskDefinition(i.taskFn),i[r.taskFactorySymbol].createTask(this)}))
return i.taskFn=e,i[r.taskFactorySymbol]=new t.TaskFactory,Object.setPrototypeOf(i,r.TaskProperty.prototype),i}(e)},e.taskGroup=function(e,n,a){if(s(e)||n&&a)return(0,i.taskGroup)(...arguments)
{let e=(0,r.taskComputed)((function(t){return e[r.taskFactorySymbol].setName(t),e[r.taskFactorySymbol].createTaskGroup(this)}))
return e[r.taskFactorySymbol]=new t.TaskFactory,Object.setPrototypeOf(e,r.TaskGroupProperty.prototype),e}}})),define("ember-concurrency/-private/task",["exports","@ember/application","@ember/object","@ember/destroyable","ember-concurrency/-private/external/task/task","ember-concurrency/-private/task-instance","ember-concurrency/-private/external/task-instance/executor","ember-concurrency/-private/taskable-mixin","ember-concurrency/-private/tracked-state","ember-concurrency/-private/external/task-instance/cancelation"],(function(e,t,r,i,n,s,a,o,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.Task=e.EncapsulatedTask=void 0
class u extends n.Task{constructor(e){super(e),(0,i.isDestroying)(this.context)||(0,i.registerDestructor)(this.context,(()=>{this.cancelAll({reason:"the object it lives on was destroyed or unrendered",cancelRequestKind:c.CANCEL_KIND_LIFESPAN_END})}))}get _isAlive(){return!(0,i.isDestroying)(this.context)}_taskInstanceFactory(e,t,r){let i=this._taskInstanceOptions(e,t,r)
return new s.TaskInstance(i)}_clone(){return new u({context:this.context,debug:this.debug,env:this.env,generatorFactory:this.generatorFactory,group:this.group,hasEnabledEvents:this.hasEnabledEvents,name:this.name,onStateCallback:this.onStateCallback,scheduler:this.scheduler})}}e.Task=u,l.TRACKED_INITIAL_TASK_STATE&&Object.defineProperties(u.prototype,l.TRACKED_INITIAL_TASK_STATE),Object.assign(u.prototype,o.TASKABLE_MIXIN)
const d="__ec__encap_current_ti"
e.EncapsulatedTask=class extends u{constructor(e){super(e),this.taskObj=e.taskObj,this._encapsulatedTaskStates=new WeakMap,this._encapsulatedTaskInstanceProxies=new WeakMap}_getEncapsulatedTaskClass(){let e=this._encapsulatedTaskImplClass
return e||(e=r.default.extend(this.taskObj,{unknownProperty(e){let t=this[d]
return t?t[e]:void 0}})),e}_taskInstanceFactory(e,r){let i,n=(0,t.getOwner)(this.context),o=this._getEncapsulatedTaskClass().create({context:this.context});(0,t.setOwner)(o,n)
let l=new s.TaskInstance({task:this,args:e,executor:new a.TaskInstanceExecutor({generatorFactory:()=>o.perform.apply(i,e),env:this.env,debug:this.debug}),performType:r,hasEnabledEvents:this.hasEnabledEvents})
return o[d]=l,this._encapsulatedTaskStates.set(l,o),i=this._wrappedEncapsulatedTaskInstance(l),i}_wrappedEncapsulatedTaskInstance(e){if(!e)return null
let t=this._encapsulatedTaskInstanceProxies,i=t.get(e)
if(!i){let n=this._encapsulatedTaskStates.get(e)
i=new Proxy(e,{get:(e,t)=>t in e?e[t]:(0,r.get)(n,t.toString()),set:(e,t,i)=>(t in e?e[t]=i:(0,r.set)(n,t.toString(),i),!0),has:(e,t)=>t in e||t in n,ownKeys:e=>Reflect.ownKeys(e).concat(Reflect.ownKeys(n)),defineProperty(r,i,s){let a=t.get(e)
return a&&(s.get?s.get=s.get.bind(a):a&&s.set&&(s.set=s.set.bind(a))),Reflect.defineProperty(n,i,s)},getOwnPropertyDescriptor:(e,t)=>t in e?Reflect.getOwnPropertyDescriptor(e,t):Reflect.getOwnPropertyDescriptor(n,t)}),t.set(e,i)}return i}}})),define("ember-concurrency/-private/taskable-mixin",["exports","ember-concurrency/-private/utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.TASKABLE_MIXIN=void 0
e.TASKABLE_MIXIN={_performCount:0,setState(e){this._performCount=this._performCount+(e.numPerformedInc||0)
let r=e.numRunning>0,i=e.numQueued>0,n=Object.assign({},e,{performCount:this._performCount,isRunning:r,isQueued:i,isIdle:!r&&!i,state:r?"running":"idle"});(0,t.assignProperties)(this,n)},onState(e,t){t.onStateCallback&&t.onStateCallback(e,t)}}})),define("ember-concurrency/-private/tracked-state",["exports","@glimmer/tracking","ember-concurrency/-private/external/task/default-state","ember-concurrency/-private/external/task-instance/initial-state","ember-concurrency/-private/utils"],(function(e,t,r,i,n){"use strict"
function s(e,r){return Object.keys(e).reduce(((r,i)=>function(e,r,i){const n=Object.getOwnPropertyDescriptor(e,i)
n.initializer=n.initializer||(()=>e[i]),delete n.value
const s=(0,t.tracked)(r,i,n)
return r[i]=s,r}(e,r,i)),r)}Object.defineProperty(e,"__esModule",{value:!0}),e.TRACKED_INITIAL_TASK_STATE=e.TRACKED_INITIAL_INSTANCE_STATE=void 0
let a=e.TRACKED_INITIAL_TASK_STATE=void 0,o=e.TRACKED_INITIAL_INSTANCE_STATE=void 0
n.USE_TRACKED&&(e.TRACKED_INITIAL_TASK_STATE=a=s(r.DEFAULT_STATE,{}),e.TRACKED_INITIAL_TASK_STATE=a=s({numRunning:0,numQueued:0,isRunning:!1,isQueued:!1,isIdle:!0,state:"idle"},a),e.TRACKED_INITIAL_INSTANCE_STATE=o=s(i.INITIAL_STATE,{}),e.TRACKED_INITIAL_INSTANCE_STATE=o=s({state:"waiting",isDropped:!1,isRunning:!1},o),Object.freeze(a),Object.freeze(o))})),define("ember-concurrency/-private/utils",["exports","@ember/object","@ember/runloop","ember-concurrency/-private/ember-environment","ember-concurrency/-private/external/yieldables"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.assignProperties=e.USE_TRACKED=e.EmberYieldable=void 0,e.deprecatePrivateModule=function(e){console.warn(`an Ember addon is importing a private ember-concurrency module '${e}' that has moved`)},e.isEventedObject=function(e){return e&&("function"==typeof e.one&&"function"==typeof e.off||"function"==typeof e.on&&"function"==typeof e.off||"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)},e.timeout=function(e){return new o(e)}
const s=e.USE_TRACKED=!0
e.assignProperties=s?Object.assign:t.setProperties
class a extends n.Yieldable{_deferable(){return i.EMBER_ENVIRONMENT.defer()}}e.EmberYieldable=a
class o extends a{constructor(e){super(),this.ms=e}onYield(e){let t=(0,r.later)((()=>e.next()),this.ms)
return()=>(0,r.cancel)(t)}}})),define("ember-concurrency/-private/wait-for",["exports","@ember/debug","@ember/runloop","@ember/object","@ember/object/observers","ember-concurrency/-private/utils"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.waitForEvent=function(e,t){return new o(e,t)},e.waitForProperty=function(e,t,r){return new l(e,t,r)},e.waitForQueue=function(e){return new a(e)}
class a extends s.EmberYieldable{constructor(e){super(),this.queueName=e}onYield(e){let t
try{t=(0,r.schedule)(this.queueName,(()=>e.next()))}catch(i){e.throw(i)}return()=>(0,r.cancel)(t)}}class o extends s.EmberYieldable{constructor(e,t){super(),this.object=e,this.eventName=t,this.usesDOMEvents=!1}on(e){"function"==typeof this.object.addEventListener?(this.usesDOMEvents=!0,this.object.addEventListener(this.eventName,e)):this.object.on(this.eventName,e)}off(e){this.usesDOMEvents?this.object.removeEventListener(this.eventName,e):this.object.off(this.eventName,e)}onYield(e){let t=null,r=()=>{t&&this.off(t),t=null}
return t=t=>{r(),e.next(t)},this.on(t),r}}class l extends s.EmberYieldable{constructor(e,t,r=Boolean){super(),this.object=e,this.key=t,this.predicateCallback="function"==typeof r?r:e=>e===r}onYield(e){let t=!1,r=()=>{let t=(0,i.get)(this.object,this.key)
if(this.predicateCallback(t))return e.next(t),!0}
return r()||((0,n.addObserver)(this.object,this.key,null,r),t=!0),()=>{t&&r&&(0,n.removeObserver)(this.object,this.key,null,r)}}}})),define("ember-concurrency/-task-instance",["exports","ember-concurrency/-private/task-instance","ember-concurrency/-private/utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,r.deprecatePrivateModule)("ember-concurrency/-task-instance")
e.default=t.TaskInstance})),define("ember-concurrency/-task-property",["exports","ember-concurrency/-private/task","ember-concurrency/-private/task-properties","ember-concurrency/-private/utils"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Task",{enumerable:!0,get:function(){return t.Task}}),Object.defineProperty(e,"TaskProperty",{enumerable:!0,get:function(){return r.TaskProperty}}),(0,i.deprecatePrivateModule)("ember-concurrency/-task-property")})),define("ember-concurrency/helpers/cancel-all",["exports","@ember/component/helper","@ember/debug","ember-concurrency/-private/helpers"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.cancelHelper=s,e.default=void 0
const n="the 'cancel-all' template helper was invoked"
function s(e){let t=e[0]
return!t||t.cancelAll,(0,i.taskHelperClosure)("cancel-all","cancelAll",[t,{reason:n}])}e.default=(0,t.helper)(s)})),define("ember-concurrency/helpers/perform",["exports","@ember/component/helper","@ember/debug","ember-concurrency/-private/helpers"],(function(e,t,r,i){"use strict"
function n(e){return function(t){"function"==typeof e&&e(t)}}function s(e,t){let r=(0,i.taskHelperClosure)("perform","perform",e,t)
return t&&void 0!==t.onError?function(...e){try{return r(...e).catch(n(t.onError))}catch{n(t.onError)}}:r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.performHelper=s
e.default=(0,t.helper)(s)})),define("ember-concurrency/helpers/task",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,...t]){return e._curry(...t)}))})),define("ember-concurrency/index",["exports","ember-concurrency/-private/utils","ember-concurrency/-private/task-properties","ember-concurrency/-private/task-public-api","ember-concurrency/-private/task-instance","ember-concurrency/-private/cancelable-promise-helpers","ember-concurrency/-private/wait-for","ember-concurrency/-private/external/task-instance/cancelation","ember-concurrency/-private/external/yieldables","ember-concurrency/-private/task","ember-concurrency/-private/task-group","ember-concurrency/-private/task-decorators","ember-concurrency/-private/external/task-factory"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Task",{enumerable:!0,get:function(){return c.Task}}),Object.defineProperty(e,"TaskGroup",{enumerable:!0,get:function(){return u.TaskGroup}}),Object.defineProperty(e,"TaskGroupProperty",{enumerable:!0,get:function(){return r.TaskGroupProperty}}),Object.defineProperty(e,"TaskInstance",{enumerable:!0,get:function(){return n.TaskInstance}}),Object.defineProperty(e,"TaskProperty",{enumerable:!0,get:function(){return r.TaskProperty}}),Object.defineProperty(e,"Yieldable",{enumerable:!0,get:function(){return t.EmberYieldable}}),Object.defineProperty(e,"all",{enumerable:!0,get:function(){return s.all}}),Object.defineProperty(e,"allSettled",{enumerable:!0,get:function(){return s.allSettled}}),Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return l.animationFrame}}),Object.defineProperty(e,"didCancel",{enumerable:!0,get:function(){return o.didCancel}}),Object.defineProperty(e,"dropTask",{enumerable:!0,get:function(){return d.dropTask}}),Object.defineProperty(e,"dropTaskGroup",{enumerable:!0,get:function(){return d.dropTaskGroup}}),Object.defineProperty(e,"enqueueTask",{enumerable:!0,get:function(){return d.enqueueTask}}),Object.defineProperty(e,"enqueueTaskGroup",{enumerable:!0,get:function(){return d.enqueueTaskGroup}}),Object.defineProperty(e,"forever",{enumerable:!0,get:function(){return l.forever}}),Object.defineProperty(e,"getModifier",{enumerable:!0,get:function(){return h.getModifier}}),Object.defineProperty(e,"hasModifier",{enumerable:!0,get:function(){return h.hasModifier}}),Object.defineProperty(e,"hash",{enumerable:!0,get:function(){return s.hash}}),Object.defineProperty(e,"hashSettled",{enumerable:!0,get:function(){return s.hashSettled}}),Object.defineProperty(e,"keepLatestTask",{enumerable:!0,get:function(){return d.keepLatestTask}}),Object.defineProperty(e,"keepLatestTaskGroup",{enumerable:!0,get:function(){return d.keepLatestTaskGroup}}),Object.defineProperty(e,"lastValue",{enumerable:!0,get:function(){return d.lastValue}}),Object.defineProperty(e,"race",{enumerable:!0,get:function(){return s.race}}),Object.defineProperty(e,"rawTimeout",{enumerable:!0,get:function(){return l.rawTimeout}}),Object.defineProperty(e,"registerModifier",{enumerable:!0,get:function(){return h.registerModifier}}),Object.defineProperty(e,"restartableTask",{enumerable:!0,get:function(){return d.restartableTask}}),Object.defineProperty(e,"restartableTaskGroup",{enumerable:!0,get:function(){return d.restartableTaskGroup}}),Object.defineProperty(e,"task",{enumerable:!0,get:function(){return i.task}}),Object.defineProperty(e,"taskGroup",{enumerable:!0,get:function(){return i.taskGroup}})
Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return t.timeout}}),Object.defineProperty(e,"waitForEvent",{enumerable:!0,get:function(){return a.waitForEvent}}),Object.defineProperty(e,"waitForProperty",{enumerable:!0,get:function(){return a.waitForProperty}}),Object.defineProperty(e,"waitForQueue",{enumerable:!0,get:function(){return a.waitForQueue}})})),define("ember-cookies/services/cookies",["exports","@ember/utils","@ember/object","@ember/debug","@ember/application","@ember/service","@ember/polyfills","ember-cookies/utils/serialize-cookie"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{keys:l}=Object,c=Object.assign||a.assign||a.merge,u={raw:!1}
e.default=s.default.extend({init(){if(this._super(...arguments),this._document=this._document||window.document,void 0===this._fastBoot){let e=(0,n.getOwner)(this)
this._fastBoot=e.lookup("service:fastboot")}},_getDocumentCookies(){let e=this._document.cookie.split(";")
return this._filterDocumentCookies(e).reduce(((e,r)=>{if(!(0,t.isEmpty)(r)){let[t,i]=r
e[t.trim()]=(i||"").trim()}return e}),{})},_getFastBootCookies(){let e=(0,r.get)(this._fastBoot,"request.cookies")
e=l(e).reduce(((t,r)=>{let i=e[r]
return t[r]={value:i},t}),{})
let t=this._fastBootCookiesCache||{}
return e=c({},e,t),this._fastBootCookiesCache=e,this._filterCachedFastBootCookies(e)},read(e,t={}){let r
return t=c({},u,t||{}),r=this._isFastBoot()?this._getFastBootCookies():this._getDocumentCookies(),e?this._decodeValue(r[e],t.raw):(l(r).forEach((e=>r[e]=this._decodeValue(r[e],t.raw))),r)},write(e,t,r={}){r=c({},u,r||{}),t=this._encodeValue(t,r.raw),this._isFastBoot()?this._writeFastBootCookie(e,t,r):(r.path=r.path||this._normalizedDefaultPath(),this._writeDocumentCookie(e,t,r))},clear(e,t={}){(t=c({},t||{})).expires=new Date("1970-01-01"),t.path=t.path||this._normalizedDefaultPath(),this.write(e,null,t)},exists(e){let t
return t=this._isFastBoot()?this._getFastBootCookies():this._getDocumentCookies(),t.hasOwnProperty(e)},_writeDocumentCookie(e,t,r={}){let i=this._serializeCookie(e,t,r)
this._document.cookie=i},_writeFastBootCookie(e,i,n={}){let s=(0,r.get)(this._fastBoot,"response.headers"),a=this._serializeCookie(...arguments);(0,t.isEmpty)(n.maxAge)||(n.maxAge*=1e3),this._cacheFastBootCookie(...arguments)
let o=!1,l=s.getAll("set-cookie")
for(let t=0;t<l.length;t++)if(l[t].startsWith(`${e}=`)){l[t]=a,o=!0
break}o||s.append("set-cookie",a)},_cacheFastBootCookie(e,t,r={}){let i=this._fastBootCookiesCache||{},n=c({},r)
if(n.maxAge){let e=new Date
e.setSeconds(e.getSeconds()+r.maxAge),n.expires=e,delete n.maxAge}i[e]={value:t,options:n},this._fastBootCookiesCache=i},_filterCachedFastBootCookies(e){let{path:t,protocol:i}=(0,r.get)(this._fastBoot,"request"),n=(0,r.get)(this._fastBoot,"request.host")
return l(e).reduce(((r,s)=>{let{value:a,options:o}=e[s]
o=o||{}
let{path:l,domain:c,expires:u,secure:d}=o
return l&&0!==t.indexOf(l)||c&&n.indexOf(c)+c.length!==n.length||u&&u<new Date||d&&!(i||"").match(/^https/)||(r[s]=a),r}),{})},_encodeValue:(e,r)=>(0,t.isNone)(e)?"":r?e:encodeURIComponent(e),_decodeValue:(e,r)=>(0,t.isNone)(e)||r?e:decodeURIComponent(e),_filterDocumentCookies:e=>e.map((e=>{let t=e.indexOf("=")
return[e.substring(0,t),e.substring(t+1)]})).filter((e=>2===e.length&&(0,t.isPresent)(e[0]))),_serializeCookie:(e,t,r={})=>(0,o.serializeCookie)(e,t,r),_isCookieSizeAcceptable(e){let t,r=0,i=0
for(;t=e.charCodeAt(i++);)r+=t>>11?3:t>>7?2:1
return r<4096},_normalizedDefaultPath(){if(!this._isFastBoot()){let e=window.location.pathname
return e.substring(0,e.lastIndexOf("/"))}},_isFastBoot(){return this._fastBoot&&this._fastBoot.isFastBoot}})})),define("ember-cookies/utils/serialize-cookie",["exports","@ember/utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.serializeCookie=void 0
e.serializeCookie=(e,r,i={})=>{let n=`${e}=${r}`
return(0,t.isEmpty)(i.domain)||(n=`${n}; domain=${i.domain}`),"date"===(0,t.typeOf)(i.expires)&&(n=`${n}; expires=${i.expires.toUTCString()}`),(0,t.isEmpty)(i.maxAge)||(n=`${n}; max-age=${i.maxAge}`),i.secure&&(n=`${n}; secure`),i.httpOnly&&(n=`${n}; httpOnly`),(0,t.isEmpty)(i.path)||(n=`${n}; path=${i.path}`),(0,t.isEmpty)(i.sameSite)||(n=`${n}; SameSite=${i.sameSite}`),n}})),define("ember-data/-private",["exports","@ember/array/proxy","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember-data/store","@ember/application/namespace","ember","ember-data/version","@ember-data/model/-private","@ember-data/store/-private","@ember-data/record-data/-private"],(function(e,t,r,i,n,s,a,o,l,c,u){"use strict"
const d=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},h=d(t),p=d(r),f=d(i),m=d(n),g=d(s),b=d(a),y=d(o),v=g.default.create({VERSION:y.default,name:"DS"})
b.default.libraries&&b.default.libraries.registerCoreLibrary("Ember Data",y.default)
const w=h.default.extend(p.default),x=f.default.extend(p.default)
Object.defineProperty(e,"Store",{enumerable:!0,get:()=>m.default}),Object.defineProperty(e,"Errors",{enumerable:!0,get:()=>l.Errors}),Object.defineProperty(e,"ManyArray",{enumerable:!0,get:()=>l.ManyArray}),Object.defineProperty(e,"PromiseManyArray",{enumerable:!0,get:()=>l.PromiseManyArray}),Object.defineProperty(e,"RecordArrayManager",{enumerable:!0,get:()=>c.RecordArrayManager}),Object.defineProperty(e,"Snapshot",{enumerable:!0,get:()=>c.Snapshot}),Object.defineProperty(e,"SnapshotRecordArray",{enumerable:!0,get:()=>c.SnapshotRecordArray}),Object.defineProperty(e,"coerceId",{enumerable:!0,get:()=>c.coerceId}),Object.defineProperty(e,"normalizeModelName",{enumerable:!0,get:()=>c.normalizeModelName}),Object.defineProperty(e,"RecordData",{enumerable:!0,get:()=>u.RecordData}),e.DS=v,e.PromiseArray=w,e.PromiseObject=x,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("ember-data/adapter",["exports","@ember-data/adapter"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/adapters/errors",["exports","@ember-data/adapter/error"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortError",{enumerable:!0,get:function(){return t.AbortError}}),Object.defineProperty(e,"AdapterError",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"ConflictError",{enumerable:!0,get:function(){return t.ConflictError}}),Object.defineProperty(e,"ForbiddenError",{enumerable:!0,get:function(){return t.ForbiddenError}}),Object.defineProperty(e,"InvalidError",{enumerable:!0,get:function(){return t.InvalidError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return t.NotFoundError}}),Object.defineProperty(e,"ServerError",{enumerable:!0,get:function(){return t.ServerError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return t.TimeoutError}}),Object.defineProperty(e,"UnauthorizedError",{enumerable:!0,get:function(){return t.UnauthorizedError}}),Object.defineProperty(e,"errorsArrayToHash",{enumerable:!0,get:function(){return t.errorsArrayToHash}}),Object.defineProperty(e,"errorsHashToArray",{enumerable:!0,get:function(){return t.errorsHashToArray}})})),define("ember-data/adapters/json-api",["exports","@ember-data/adapter/json-api"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/adapters/rest",["exports","@ember-data/adapter/rest"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/attr",["exports","@ember-data/model"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.attr}})})),define("ember-data/index",["exports","@ember-data/adapter","@ember-data/adapter/error","@ember-data/adapter/json-api","@ember-data/adapter/rest","@ember-data/model","@ember-data/serializer","@ember-data/serializer/-private","@ember-data/serializer/json","@ember-data/serializer/json-api","@ember-data/serializer/rest","@ember-data/serializer/transform","@ember-data/store","ember-data/-private","ember-data/setup-container","@embroider/macros/es-compat2"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,p.DS.Store=h.default,p.DS.PromiseArray=p.PromiseArray,p.DS.PromiseObject=p.PromiseObject,p.DS.PromiseManyArray=p.PromiseManyArray,p.DS.Model=s.default,p.DS.attr=s.attr,p.DS.Errors=p.Errors,p.DS.Snapshot=p.Snapshot,p.DS.Adapter=t.default,p.DS.AdapterError=r.default,p.DS.InvalidError=r.InvalidError,p.DS.TimeoutError=r.TimeoutError,p.DS.AbortError=r.AbortError,p.DS.UnauthorizedError=r.UnauthorizedError,p.DS.ForbiddenError=r.ForbiddenError,p.DS.NotFoundError=r.NotFoundError,p.DS.ConflictError=r.ConflictError,p.DS.ServerError=r.ServerError,p.DS.errorsHashToArray=r.errorsHashToArray,p.DS.errorsArrayToHash=r.errorsArrayToHash,p.DS.Serializer=a.default,p.DS.DebugAdapter=(0,m.default)(require("@ember-data/debug")).default,p.DS.ManyArray=p.ManyArray,p.DS.RecordArrayManager=p.RecordArrayManager,p.DS.RESTAdapter=n.default,p.DS.BuildURLMixin=t.BuildURLMixin,p.DS.RESTSerializer=u.default,p.DS.JSONSerializer=l.default
p.DS.JSONAPIAdapter=i.default,p.DS.JSONAPISerializer=c.default,p.DS.Transform=d.default,p.DS.DateTransform=o.DateTransform,p.DS.StringTransform=o.StringTransform,p.DS.NumberTransform=o.NumberTransform,p.DS.BooleanTransform=o.BooleanTransform,p.DS.EmbeddedRecordsMixin=u.EmbeddedRecordsMixin,p.DS.belongsTo=s.belongsTo,p.DS.hasMany=s.hasMany,p.DS._setupContainer=f.default,Object.defineProperty(p.DS,"normalizeModelName",{enumerable:!0,writable:!1,configurable:!1,value:h.normalizeModelName})
e.default=p.DS})),define("ember-data/model",["exports","@ember-data/model"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/relationships",["exports","@ember-data/model"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"belongsTo",{enumerable:!0,get:function(){return t.belongsTo}}),Object.defineProperty(e,"hasMany",{enumerable:!0,get:function(){return t.hasMany}})})),define("ember-data/serializer",["exports","@ember-data/serializer"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/serializers/embedded-records-mixin",["exports","@ember-data/serializer/rest"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EmbeddedRecordsMixin}})})),define("ember-data/serializers/json-api",["exports","@ember-data/serializer/json-api"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/serializers/json",["exports","@ember-data/serializer/json"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/serializers/rest",["exports","@ember-data/serializer/rest"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/setup-container",["exports","@ember-data/store"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){(function(e){e.registerOptionsForType("serializer",{singleton:!1}),e.registerOptionsForType("adapter",{singleton:!1}),e.hasRegistration("service:store")||e.register("service:store",t.default)})(e)}}))
define("ember-data/store",["exports","@ember-data/store"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/transform",["exports","@ember-data/serializer/transform"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/version",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default="4.11.3"})),define("ember-dayjs/helpers/base-helper",["exports","@ember/component/helper","@ember/runloop","@ember/service"],(function(e,t,r,i){"use strict"
var n,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="dayjs",n=this,(i=s)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}compute(e,t={}){this.clearTimer(),t.interval&&(this.intervalTimer=setTimeout((()=>{(0,r.run)((()=>this.recompute()))}),parseInt(t.interval,10)))}clearTimer(){clearTimeout(this.intervalTimer)}},a=n.prototype,o="dayjs",l=[i.inject],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(c).forEach((function(e){d[e]=c[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),s=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,n)
var a,o,l,c,u,d})),define("ember-dayjs/helpers/dayjs-add",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).add(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-calendar",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("calendar"),this.dayjs.self().calendar(...e)}}e.default=r})),define("ember-dayjs/helpers/dayjs-date-of-month",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).date(e[1])}}e.default=r})),define("ember-dayjs/helpers/dayjs-day-of-week",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).day(e[1])}}e.default=r})),define("ember-dayjs/helpers/dayjs-day-of-year",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("dayOfYear"),this.dayjs.self(e[0]).dayOfYear(e[1])}}e.default=r})),define("ember-dayjs/helpers/dayjs-days-in-month",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("weekday"),this.dayjs.self(e[0]).daysInMonth()}}e.default=r})),define("ember-dayjs/helpers/dayjs-diff",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).diff(e[1],t.precision,t.float||!1)}}e.default=r})),define("ember-dayjs/helpers/dayjs-duration-humanize",["exports","ember-dayjs/helpers/dayjs-duration"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return this.dayjs.useLocale(t.locale||this.dayjs.locale),this.dayjs.extend("relativeTime"),super.compute(e,t).locale(t.locale||this.dayjs.locale).humanize()}}e.default=r})),define("ember-dayjs/helpers/dayjs-duration",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("duration"),this.dayjs.self.duration(...e)}}e.default=r})),define("ember-dayjs/helpers/dayjs-end-of",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self().endOf(e[0])}}e.default=r})),define("ember-dayjs/helpers/dayjs-format",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),t.inputFormat&&this.dayjs.extend("customParseFormat"),this.dayjs.useLocale(t.locale||this.dayjs.locale),this.dayjs.self(e[0],t.inputFormat).locale(t.locale||this.dayjs.locale).format(e[1])}}e.default=r})),define("ember-dayjs/helpers/dayjs-from-now",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("relativeTime"),this.dayjs.self(e[0]).fromNow(t.hideAffix||!1)}}e.default=r})),define("ember-dayjs/helpers/dayjs-from",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("relativeTime"),this.dayjs.self(e[0]).from(e[1],t.hideAffix||!1)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-after",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).isAfter(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-before",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).isBefore(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-between",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("isBetween"),this.dayjs.self(e[0]).isBetween(e[1],e[2],t.precision,t.inclusivity)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-dayjs",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self.isDayjs(e[0])}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-leap-year",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("isLeapYear"),this.dayjs.self(e[0]).isLeapYear()}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-same-or-after",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("isSameOrAfter"),this.dayjs.self(e[0]).isSameOrAfter(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-same-or-before",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("isSameOrBefore"),this.dayjs.self(e[0]).isSameOrBefore(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-is-same",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).isSame(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-months-short",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("localeData"),this.dayjs.self.monthsShort()}}e.default=r})),define("ember-dayjs/helpers/dayjs-months",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("localeData"),this.dayjs.self.months()}}e.default=r})),define("ember-dayjs/helpers/dayjs-start-of",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self().startOf(e[0])}}e.default=r})),define("ember-dayjs/helpers/dayjs-subtract",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.self(e[0]).subtract(e[1],t.precision)}}e.default=r})),define("ember-dayjs/helpers/dayjs-to-now",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("relativeTime"),this.dayjs.self(e[0]).toNow(t.hideAffix||!1)}}e.default=r}))
define("ember-dayjs/helpers/dayjs-to",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("relativeTime"),this.dayjs.self(e[0]).to(e[1],t.hideAffix||!1)}}e.default=r})),define("ember-dayjs/helpers/dayjs-tz",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("timezone"),this.dayjs.self.tz(e[0],e[1])}}e.default=r})),define("ember-dayjs/helpers/dayjs-week-of-year",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("weekOfYear"),this.dayjs.self(e[0]).week()}}e.default=r})),define("ember-dayjs/helpers/dayjs-weekday",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("weekday"),this.dayjs.self().weekday(e[0])}}e.default=r})),define("ember-dayjs/helpers/dayjs-weekdays-min",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("localeData"),this.dayjs.self.weekdaysMin()}}e.default=r})),define("ember-dayjs/helpers/dayjs-weekdays-short",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("localeData"),this.dayjs.self.weekdaysShort()}}e.default=r})),define("ember-dayjs/helpers/dayjs-weekdays",["exports","ember-dayjs/helpers/base-helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("localeData"),this.dayjs.self.weekdays()}}e.default=r})),define("ember-dayjs/helpers/dayjs",["exports","ember-dayjs/helpers/base-helper","@ember/utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.useLocale(t.locale||this.dayjs.locale),"object"===(0,r.typeOf)(e)&&this.dayjs.extend("objectSupport"),this.dayjs.self(...e).locale(t.locale||this.dayjs.locale)}}e.default=i})),define("ember-dayjs/helpers/local",["exports","ember-dayjs/helpers/utc"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{compute(e,t){return super.compute(e,t),super.compute(e).local()}}e.default=r})),define("ember-dayjs/helpers/now",["exports","ember-dayjs/helpers/dayjs"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{}e.default=r})),define("ember-dayjs/helpers/unix",["exports","ember-dayjs/helpers/dayjs"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{}e.default=r})),define("ember-dayjs/helpers/utc",["exports","ember-dayjs/helpers/base-helper","@ember/utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{compute(e,t){return super.compute(e,t),this.dayjs.extend("utc"),"object"===(0,r.typeOf)(e)&&this.dayjs.extend("objectSupport"),this.dayjs.self.utc(...e)}}e.default=i})),define("ember-dayjs/services/dayjs",["exports","@ember/utils","@ember/service","@ember/debug","@glimmer/tracking"],(function(e,t,r,i,n){"use strict"
var s,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="locale",n=this,(i=a)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get self(){return dayjs}setLocale(e){this.useLocale(e),this.locale=e}useLocale(e){const r=e.toLowerCase()
if((0,t.isEqual)(r,"en"))return
r.replace("-","_")}setTimeZone(e){this.extend("timezone"),this.self.tz.setDefault(e)}resetTimezone(){this.setTimeZone()}extend(e){const t=`dayjs_plugin_${e}`
this.self.extend(window[t])}},o=s.prototype,l="locale",c=[n.tracked],u={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"en"}},h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),a=void 0===h.initializer?(Object.defineProperty(o,l,h),null):h,s)
var o,l,c,u,d,h})),define("ember-fetch/errors",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.isAbortError=function(e){return"AbortError"==e.name},e.isBadRequestResponse=function(e){return 400===e.status},e.isConflictResponse=function(e){return 409===e.status},e.isForbiddenResponse=function(e){return 403===e.status},e.isGoneResponse=function(e){return 410===e.status},e.isInvalidResponse=function(e){return 422===e.status},e.isNotFoundResponse=function(e){return 404===e.status},e.isServerErrorResponse=function(e){return e.status>=500&&e.status<600},e.isUnauthorizedResponse=function(e){return 401===e.status}})),define("ember-fetch/types",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}})),define("ember-fetch/utils/determine-body-promise",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){return e.text().then((function(i){let n=i
try{n=JSON.parse(i)}catch(s){if(!(s instanceof SyntaxError))throw s
const a=e.status
!e.ok||204!==a&&205!==a&&"HEAD"!==r.method?(0,t.debug)(`This response was unable to be parsed as json: ${i}`):n=void 0}return n}))}})),define("ember-fetch/utils/mung-options-for-fetch",["exports","@ember/polyfills","ember-fetch/utils/serialize-query-params","ember-fetch/types"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n=(0,t.assign)({credentials:"same-origin"},e)
if(n.method=(n.method||n.type||"GET").toUpperCase(),n.data)if("GET"===n.method||"HEAD"===n.method){if(Object.keys(n.data).length){const e=n.url.indexOf("?")>-1?"&":"?"
n.url+=`${e}${(0,r.serializeQueryParams)(n.data)}`}}else(0,i.isPlainObject)(n.data)?n.body=JSON.stringify(n.data):n.body=n.data
return n}})),define("ember-fetch/utils/serialize-query-params",["exports","ember-fetch/types"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.serializeQueryParams=i
const r=/\[\]$/
function i(e){var i=[]
return function e(s,a){var o,l,c
if(s)if(Array.isArray(a))for(o=0,l=a.length;o<l;o++)r.test(s)?n(i,s,a[o]):e(s+"["+("object"==typeof a[o]?o:"")+"]",a[o])
else if((0,t.isPlainObject)(a))for(c in a)e(s+"["+c+"]",a[c])
else n(i,s,a)
else if(Array.isArray(a))for(o=0,l=a.length;o<l;o++)n(i,a[o].name,a[o].value)
else for(c in a)e(c,a[c])
return i}("",e).join("&").replace(/%20/g,"+")}function n(e,t,r){void 0!==r&&(null===r&&(r=""),r="function"==typeof r?r():r,e[e.length]=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`)}e.default=i})),define("ember-get-config/index",["exports","go5-account-web/config/environment"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-inflector/index",["exports","ember-inflector/lib/system"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"pluralize",{enumerable:!0,get:function(){return t.pluralize}}),Object.defineProperty(e,"singularize",{enumerable:!0,get:function(){return t.singularize}})
e.default=t.Inflector})),define("ember-inflector/lib/helpers/pluralize",["exports","ember-inflector","ember-inflector/lib/utils/make-helper"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,r.default)((function(e,r){let i=new Array(...e)
return 2===i.length&&i.push({withoutCount:r["without-count"]}),(0,t.pluralize)(...i)}))})),define("ember-inflector/lib/helpers/singularize",["exports","ember-inflector","ember-inflector/lib/utils/make-helper"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,r.default)((function(e){return(0,t.singularize)(e[0])}))})),define("ember-inflector/lib/system",["exports","ember-inflector/lib/system/inflector","ember-inflector/lib/system/string"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Inflector",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"pluralize",{enumerable:!0,get:function(){return r.pluralize}}),Object.defineProperty(e,"singularize",{enumerable:!0,get:function(){return r.singularize}})})),define("ember-inflector/lib/system/inflections",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={plurals:[[/$/,"s"],[/s$/i,"s"],[/^(ax|test)is$/i,"$1es"],[/(octop|vir)us$/i,"$1i"],[/(octop|vir)i$/i,"$1i"],[/(alias|status|bonus)$/i,"$1es"],[/(bu)s$/i,"$1ses"],[/(buffal|tomat)o$/i,"$1oes"],[/([ti])um$/i,"$1a"],[/([ti])a$/i,"$1a"],[/sis$/i,"ses"],[/(?:([^f])fe|([lr])f)$/i,"$1$2ves"],[/(hive)$/i,"$1s"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/(x|ch|ss|sh)$/i,"$1es"],[/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"],[/^(m|l)ouse$/i,"$1ice"],[/^(m|l)ice$/i,"$1ice"],[/^(ox)$/i,"$1en"],[/^(oxen)$/i,"$1"],[/(quiz)$/i,"$1zes"]],singular:[[/s$/i,""],[/(ss)$/i,"$1"],[/(n)ews$/i,"$1ews"],[/([ti])a$/i,"$1um"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"],[/(^analy)(sis|ses)$/i,"$1sis"],[/([^f])ves$/i,"$1fe"],[/(hive)s$/i,"$1"],[/(tive)s$/i,"$1"],[/([lr])ves$/i,"$1f"],[/([^aeiouy]|qu)ies$/i,"$1y"],[/(s)eries$/i,"$1eries"],[/(m)ovies$/i,"$1ovie"],[/(x|ch|ss|sh)es$/i,"$1"],[/^(m|l)ice$/i,"$1ouse"],[/(bus)(es)?$/i,"$1"],[/(o)es$/i,"$1"],[/(shoe)s$/i,"$1"],[/(cris|test)(is|es)$/i,"$1is"],[/^(a)x[ie]s$/i,"$1xis"],[/(octop|vir)(us|i)$/i,"$1us"],[/(alias|status|bonus)(es)?$/i,"$1"],[/^(ox)en/i,"$1"],[/(vert|ind)ices$/i,"$1ex"],[/(matr)ices$/i,"$1ix"],[/(quiz)zes$/i,"$1"],[/(database)s$/i,"$1"]],irregularPairs:[["person","people"],["man","men"],["child","children"],["sex","sexes"],["move","moves"],["cow","kine"],["zombie","zombies"]],uncountable:["equipment","information","rice","money","species","series","fish","sheep","jeans","police"]}})),define("ember-inflector/lib/system/inflector",["exports","ember-inflector/lib/system/inflections"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=/^\s*$/,i=/([\w/-]+[_/\s-])([a-z\d]+$)/,n=/([\w/\s-]+)([A-Z][a-z\d]*$)/,s=/[A-Z][a-z\d]*$/,a=/(^|\/)([a-z\u00C0-\u024F])/g
function o(e){return e.replace(a,(e=>e.toUpperCase()))}function l(e,t){for(let r=0,i=t.length;r<i;r++)e.uncountable[t[r].toLowerCase()]=!0}function c(e,t){let r
for(let i=0,n=t.length;i<n;i++)r=t[i],e.irregular[r[0].toLowerCase()]=r[1],e.irregular[r[1].toLowerCase()]=r[1],e.irregularInverse[r[1].toLowerCase()]=r[0],e.irregularInverse[r[0].toLowerCase()]=r[0]}function u(e){(e=e||{}).uncountable=e.uncountable||d(),e.irregularPairs=e.irregularPairs||d()
const t=this.rules={plurals:e.plurals||[],singular:e.singular||[],irregular:d(),irregularInverse:d(),uncountable:d()}
l(t,e.uncountable),c(t,e.irregularPairs),this.enableCache()}if(!Object.create&&!Object.create(null).hasOwnProperty)throw new Error("This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg")
function d(){var e=Object.create(null)
return e._dict=null,delete e._dict,e}u.prototype={enableCache(){this.purgeCache(),this.singularize=function(e){return this._cacheUsed=!0,this._sCache[e]||(this._sCache[e]=this._singularize(e))},this.pluralize=function(e,t,r={}){this._cacheUsed=!0
var i=[e,t,r.withoutCount]
return this._pCache[i]||(this._pCache[i]=this._pluralize(e,t,r))}},purgeCache(){this._cacheUsed=!1,this._sCache=d(),this._pCache=d()},disableCache(){this._sCache=null,this._pCache=null,this.singularize=function(e){return this._singularize(e)},this.pluralize=function(){return this._pluralize(...arguments)}},plural(e,t){this._cacheUsed&&this.purgeCache(),this.rules.plurals.push([e,t.toLowerCase()])},singular(e,t){this._cacheUsed&&this.purgeCache(),this.rules.singular.push([e,t.toLowerCase()])},uncountable(e){this._cacheUsed&&this.purgeCache(),l(this.rules,[e.toLowerCase()])},irregular(e,t){this._cacheUsed&&this.purgeCache(),c(this.rules,[[e,t]])},pluralize(){return this._pluralize(...arguments)},_pluralize(e,t,r={}){return void 0===t?this.inflect(e,this.rules.plurals,this.rules.irregular):(1!==parseFloat(e)&&(t=this.inflect(t,this.rules.plurals,this.rules.irregular)),r.withoutCount?t:`${e} ${t}`)},singularize(e){return this._singularize(e)},_singularize(e){return this.inflect(e,this.rules.singular,this.rules.irregularInverse)},inflect(e,t,a){let l,c,u,d,h,p,f,m,g,b
if(f=!e||r.test(e),m=s.test(e),f)return e
if(d=e.toLowerCase(),h=i.exec(e)||n.exec(e),h&&(p=h[2].toLowerCase()),b=this.rules.uncountable[d]||this.rules.uncountable[p],b)return e
for(g in a)if(d.match(g+"$"))return c=a[g],m&&a[p]&&(c=o(c),g=o(g)),e.replace(new RegExp(g,"i"),c)
for(var y=t.length;y>0&&(l=t[y-1],g=l[0],!g.test(e));y--);return l=l||[],g=l[0],c=l[1],u=e.replace(g,c),u}},u.defaultRules=t.default,u.inflector=new u(t.default)
e.default=u})),define("ember-inflector/lib/system/string",["exports","ember-inflector/lib/system/inflector"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.pluralize=function(){return t.default.inflector.pluralize(...arguments)},e.singularize=function(e){return t.default.inflector.singularize(e)}})),define("ember-inflector/lib/utils/make-helper",["exports","ember","@ember/component/helper"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(r.default)return r.default.helper(e)
if(t.default.HTMLBars)return t.default.HTMLBars.makeBoundHelper(e)
return t.default.Handlebars.makeBoundHelper(e)}})),define("ember-intl/-private/error-types",["exports","intl-messageformat"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.MISSING_TRANSLATION=e.MISSING_INTL_API=void 0
e.MISSING_INTL_API=t.ErrorCode.MISSING_INTL_API,e.MISSING_TRANSLATION="MISSING_TRANSLATION"})),define("ember-intl/-private/formatters/-base",["exports","@ember/debug"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=Object.create(null)
class n{constructor(e){r(this,"config",void 0),r(this,"readFormatConfig",void 0),this.config=e,this.readFormatConfig=e.readFormatConfig}get options(){return[]}filterKnownOptions(e){if(!e)return i
const t={}
for(const r in e)this.options.includes(r)&&(t[r]=e[r])
return t}readOptions(e){let t=this.filterKnownOptions(e)
if(e&&"format"in e){t={...this.getNamedFormat(e.format),...t}}return t}validateFormatterOptions(e,t){}getNamedFormat(e){const t=this.readFormatConfig()[this.constructor.type]
if(t&&t[e])return t[e]}}e.default=n,r(n,"type",void 0)})),define("ember-intl/-private/formatters/-format-datetime",["exports","fast-memoize","ember-intl/-private/formatters/-base"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]
class s extends r.default{constructor(...e){super(...e),i(this,"createNativeFormatter",(0,t.default)(((e,t)=>new Intl.DateTimeFormat(e,t))))}get options(){return n}format(e,t,r){const i=this.readOptions(r)
this.validateFormatterOptions(e,i)
return this.createNativeFormatter(e,i).format(new Date(t))}}e.default=s,i(s,"type",void 0)}))
define("ember-intl/-private/formatters/format-date",["exports","ember-intl/-private/formatters/-format-datetime"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{}var i,n,s
e.default=r,i=r,s="date",(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(n="type"))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s})),define("ember-intl/-private/formatters/format-message",["exports","ember","fast-memoize","@ember/template","intl-messageformat","ember-intl/-private/utils/parse"],(function(e,t,r,i,n,s){"use strict"
function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{Handlebars:{Utils:{escapeExpression:o}}}=t.default
class l{constructor(e){a(this,"config",void 0),a(this,"readFormatConfig",void 0),a(this,"createNativeFormatter",(0,r.default)(((e,t,r)=>new n.default(e,t,r,{ignoreTag:!0})))),this.config=e,this.readFormatConfig=e.readFormatConfig}format(e,t,r){let n=t
"string"==typeof t&&(n=(0,s.default)(t))
const a=r&&r.htmlSafe,l=this.createNativeFormatter(n,e,this.readFormatConfig()),c=a?function(e){if("object"!=typeof e)return
const t={}
return Object.keys(e).forEach((r=>{const n=e[r];(0,i.isHTMLSafe)(n)?t[r]=n.toHTML():t[r]="string"==typeof n?o(n):n})),t}(r):r,u=l.format(c)
return a?(0,i.htmlSafe)(u):u}}e.default=l,a(l,"type","message")})),define("ember-intl/-private/formatters/format-number",["exports","fast-memoize","ember-intl/-private/formatters/-base"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unitDisplay","unit"]
class s extends r.default{constructor(...e){super(...e),i(this,"createNativeFormatter",(0,t.default)(((e,t)=>new Intl.NumberFormat(e,t))))}get options(){return n}format(e,t,r){const i=this.readOptions(r)
this.validateFormatterOptions(e,i)
return this.createNativeFormatter(e,i).format(t)}}e.default=s,i(s,"type","number")})),define("ember-intl/-private/formatters/format-relative",["exports","@ember/debug","fast-memoize","intl-messageformat","ember-intl/-private/error-types","ember-intl/-private/formatters/-base"],(function(e,t,r,i,n,s){"use strict"
function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=["numeric","style","unit"]
class l extends s.default{constructor(...e){super(...e),a(this,"createNativeFormatter",(0,r.default)(((e,t)=>{if(!Intl||!Intl.RelativeTimeFormat){const e=new i.FormatError('Intl.RelativeTimeFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-relativetimeformat"',n.MISSING_INTL_API)
throw this.config.onError({kind:n.MISSING_INTL_API,error:e}),e}return new Intl.RelativeTimeFormat(e,t)})))}get options(){return o}format(e,t,r){const i=this.readOptions(r)
this.validateFormatterOptions(e,i)
const n=r?.unit??i.unit
return this.createNativeFormatter(e,i).format("number"==typeof t?t:new Date(t).getTime(),n)}}e.default=l,a(l,"type","relative")})),define("ember-intl/-private/formatters/format-time",["exports","ember-intl/-private/formatters/-format-datetime"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{}var i,n,s
e.default=r,i=r,s="time",(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(n="type"))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s})),define("ember-intl/-private/formatters/index",["exports","ember-intl/-private/formatters/format-time","ember-intl/-private/formatters/format-date","ember-intl/-private/formatters/format-number","ember-intl/-private/formatters/format-message","ember-intl/-private/formatters/format-relative"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"FormatDate",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"FormatMessage",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"FormatNumber",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"FormatRelative",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"FormatTime",{enumerable:!0,get:function(){return t.default}})})),define("ember-intl/-private/store/container",["exports","@ember/object","ember-intl/-private/store/translation"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({locales:(0,t.computed)("_translationModels",(function(){return Array.from(this._translationModels.keys())})).readOnly(),init(){this._super(),this._translationModels=new Map},createTranslationModel(e){const t=new r.default(e)
return this._translationModels.set(e,t),this.notifyPropertyChange("locales"),t},findTranslationModel(e){return this._translationModels.get(e)},push(e,t){let r=this.findTranslationModel(e)
r||(r=this.createTranslationModel(e)),r.addTranslations(t)},has(e,t){const r=this.findTranslationModel(e)
if(r)return r.has(t)},_lookup(e,t){const r=this.findTranslationModel(e)
if(r&&r.has(t))return r.find(t)},lookupAst(e,t){const r=this._lookup(e,t)
if(r)return r.ast},lookup(e,t){const r=this._lookup(e,t)
if(r)return r.original}})})),define("ember-intl/-private/store/translation",["exports","ember-intl/-private/utils/flatten","ember-intl/-private/utils/parse"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{get localeName(){return this._localeName}constructor(e){i(this,"translations",new Map),i(this,"asts",new Map),i(this,"_localeName",void 0),this._localeName=e}addTranslations(e){const i=(0,t.default)(e)
for(const t in i){let e=i[t]
"string"!=typeof e&&(e=`${e}`),this.translations.set(t,e),this.asts.set(t,(0,r.default)(e))}}find(e){if(this.has(e))return{ast:this.asts.get(e),original:this.translations.get(e)}}has(e){return this.translations.has(e)}}})),define("ember-intl/-private/utils/empty-object",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const t=Object.create(null,{constructor:{value:void 0,enumerable:!1,writable:!0}})
function r(){}r.prototype=t
e.default=r})),define("ember-intl/-private/utils/flatten",["exports","ember-intl/-private/utils/empty-object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(i){const n=new t.default
for(const t in i){if(!r.call(i,t))continue
const s=i[t]
if("object"==typeof s&&s){const r=e(s)
for(const e in r)n[`${t}.${e}`]=r[e]}else n[t]=s}return n}
const r=Object.prototype.hasOwnProperty})),define("ember-intl/-private/utils/get-dom",["exports","@ember/application"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{renderer:r}=e
if(!r||!r._dom){let i=t.getOwner?(0,t.getOwner)(e):e.container,n=i.lookup("service:-document")
if(n)return n
r=i.lookup("renderer:-dom")}if(r._dom&&r._dom.document)return r._dom.document
return null}})),define("ember-intl/-private/utils/hydrate",["exports","ember-intl/translations"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){t.default.forEach((([t,r])=>{e.addTranslations(t,r)}))}})),define("ember-intl/-private/utils/is-array-equal",["exports","@ember/array"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if(!(0,t.isArray)(e)||!(0,t.isArray)(r))return!1
if(e===r)return!0
return e.toString()===r.toString()}})),define("ember-intl/-private/utils/missing-message",["exports","@ember/utils","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,i){if((0,t.isEmpty)(r))return`No locale defined.  Unable to resolve translation: "${e}"`
const n=r.join(", ")
return`Missing translation "${e}" for locale "${n}"`}})),define("ember-intl/-private/utils/normalize-locale",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if("string"==typeof e)return e.replace(/_/g,"-").toLowerCase()}})),define("ember-intl/-private/utils/parse",["exports","intl-messageformat-parser"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.parse)(e,{normalizeHashtagInPlural:!1,ignoreTag:!0})}})),define("ember-intl/helpers/-format-base",["exports","@ember/component/helper","@ember/application","@ember/utils"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=t.default.extend({intl:null,init(){if(this.constructor===n)throw new Error("FormatHelper is an abstract class, can not be instantiated directly.")
this._super(),this.intl=(0,r.getOwner)(this).lookup("service:intl"),this.intl.on("localeChanged",this,"recompute")},format(){throw new Error("not implemented")},compute([e],t){if((0,i.isEmpty)(e)){if(t.allowEmpty??this.allowEmpty)return
if(void 0===e)throw new Error(`${this} helper requires value attribute.`)}return this.format(e,t)},willDestroy(){this._super(),this.intl.off("localeChanged",this,"recompute")}})
e.default=n})),define("ember-intl/helpers/format-date",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({allowEmpty:!0,format(e,t){return this.intl.formatDate(e,t)}})})),define("ember-intl/helpers/format-message",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({format(e,t){return this.intl.formatMessage(e,t)}})})),define("ember-intl/helpers/format-number",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({format(e,t){return this.intl.formatNumber(e,t)}})})),define("ember-intl/helpers/format-relative",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({format(e,t){return this.intl.formatRelative(e,t)},compute(e,t={}){return this._super(e,t)}})})),define("ember-intl/helpers/format-time",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({format(e,t){return this.intl.formatTime(e,t)}})})),define("ember-intl/helpers/t",["exports","ember-intl/helpers/-format-base"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({format(e,t){return this.intl.t(e,t)}})})),define("ember-intl/index",["exports","ember-intl/services/intl","ember-intl/macros"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={Service:!0}
Object.defineProperty(e,"Service",{enumerable:!0,get:function(){return t.default}}),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})),define("ember-intl/macros/index",["exports","ember-intl/macros/intl","ember-intl/macros/t"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"intl",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"raw",{enumerable:!0,get:function(){return r.raw}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return r.default}})})),define("ember-intl/macros/intl",["exports","@ember/object","@ember/application"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.__intlInjectionName=void 0,e.default=function(...e){const n=e.pop(),s=e
return(0,t.computed)(`${i}.locale`,...s,(function(e){(0,t.get)(this,i)||(0,t.defineProperty)(this,i,{value:(0,r.getOwner)(this).lookup("service:intl"),enumerable:!1})
const s=(0,t.get)(this,i)
return n.call(this,s,e,this)}))}
const i=e.__intlInjectionName=`intl-${Date.now().toString(36)}`})),define("ember-intl/macros/t",["exports","@ember/object","ember-intl/-private/utils/empty-object","ember-intl/macros/intl"],(function(e,t,r,i){"use strict"
function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,i){const n=new r.default
return Object.keys(i).forEach((r=>{n[r]=(0,t.get)(e,i[r])})),n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){const n=t||new r.default,[o,l]=function(e){const t=new r.default,i=new r.default
return Object.keys(e).forEach((r=>{const n=e[r]
n instanceof a?i[r]=n.valueOf():t[r]=n})),[t,i]}(n),c=Object.values(o)
return(0,i.default)(...c,((t,r,i)=>t.t(e,{...l,...s(i,o)})))},e.raw=function(e){return new a(e)}
class a{constructor(e){n(this,"_value",void 0),this._value=e}valueOf(){return this._value}toString(){return String(this._value)}}})),define("ember-intl/services/intl",["exports","@ember/application","@ember/object","@ember/object/computed","@ember/object/evented","@ember/debug","@ember/array","@ember/service","@ember/runloop","ember-intl/-private/formatters","ember-intl/-private/utils/is-array-equal","ember-intl/-private/utils/normalize-locale","ember-intl/-private/utils/get-dom","ember-intl/-private/utils/hydrate","ember-intl/-private/store/container"],(function(e,t,r,i,n,s,a,o,l,c,u,d,h,p,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=o.default.extend(n.default,{formats:null,locales:(0,i.readOnly)("_translationContainer.locales"),locale:(0,r.computed)("_locale",{set(e,t){const i=(0,a.makeArray)(t).map(d.default)
return(0,u.default)(i,this._locale)||((0,r.set)(this,"_locale",i),(0,l.cancel)(this._timer),this._timer=(0,l.next)((()=>{this.trigger("localeChanged"),this._updateDocumentLanguage(this._locale)}))),this._locale},get(){return(0,r.get)(this,"_locale")}}),primaryLocale:(0,i.readOnly)("locale.0"),formatRelative:m("relative"),formatMessage:m("message"),formatNumber:m("number"),formatTime:m("time"),formatDate:m("date"),_translationContainer:null,_locale:null,_timer:null,_formatters:null,init(){this._super(...arguments)
const e=(0,r.get)(this,"locale")||["en-us"]
this.setLocale(e),this._owner=(0,t.getOwner)(this),this._translationContainer=f.default.create(),this._formatters=this._createFormatters(),this.formats||(this.formats=this._owner.resolveRegistration("formats:main")||{}),(0,p.default)(this)},willDestroy(){this._super(...arguments),(0,l.cancel)(this._timer)},onError({error:e}){throw e},lookup(e,t){const r=this._localeWithDefault(t)
let i
for(let n=0;n<r.length&&(i=this._translationContainer.lookup(r[n],e),void 0===i);n++);return i},lookupAst(e,t,r={}){const i=this._localeWithDefault(t)
let n
for(let s=0;s<i.length&&(n=this._translationContainer.lookupAst(i[s],e),void 0===n);s++);if(void 0===n&&!0!==r.resilient){return this._owner.resolveRegistration("util:intl/missing-message").call(this,e,i,r)}return n},validateKeys:e=>e.forEach((e=>{})),t(e,t={}){let r=[e]
t.default&&(Array.isArray(t.default)?r=[...r,...t.default]:"string"==typeof t.default&&(r=[...r,t.default])),this.validateKeys(r)
for(let i=0;i<r.length;i++){const e=r[i],n=this.lookupAst(e,t.locale,{...t,resilient:r.length-1!==i})
if(n)return this.formatMessage(n,t)}},exists(e,t){const r=this._localeWithDefault(t)
return r.some((t=>this._translationContainer.has(t,e)))},setLocale(e){(0,r.set)(this,"locale",e)},addTranslations(e,t){this._translationContainer.push((0,d.default)(e),t)},translationsFor(e){return this._translationContainer.findTranslationModel((0,d.default)(e),!1)},_localeWithDefault(e){return e?"string"==typeof e?(0,a.makeArray)(e).map(d.default):Array.isArray(e)?e.map(d.default):void 0:(0,r.get)(this,"_locale")||[]},_updateDocumentLanguage(e){const t=(0,h.default)(this)
if(t){const[r]=e
t.documentElement.setAttribute("lang",r)}},_createFormatters(){const e={onError:this.onError.bind(this),readFormatConfig:()=>this.formats}
return{message:new c.FormatMessage(e),relative:new c.FormatRelative(e),number:new c.FormatNumber(e),time:new c.FormatTime(e),date:new c.FormatDate(e)}}})
function m(e){return function(t,i){let n
return n=i&&i.locale?this._localeWithDefault(i.locale):(0,r.get)(this,"locale"),this._formatters[e].format(n,t,i)}}})),define("ember-intl/translations",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=[["en",{intl:{code:{actions:{reload:{text:"Reload QR code",title:"Reload the qr code"},save:{title:"Save changes"}},jgrowl:{commons:{text:{error:"Log in failed.",success:"Successfully logged in."}}},text:'To log in to {platform} Mobile you need to use your phone to scan the QR code.<br />1. Open {app} on your phone<br />2. Select "Log in with QR Code"<br />3. Point your phone to this screen to capture the code',title:"QR Code"},commons:{actions:{accept:{text:"Accept",title:"Close alert"},cancel:"Cancel",close:"Close",go_to:"Go to",hello:"Hello",help:"Help",input:{disable:{text:"Disable",title:"Uncheck the box"},enable:{text:"Enable",title:"Check the box"}},ok:"OK, got it!",retry:"Retry",save:"Save",update:{text:"Update",title:"Update the app"}},form:{description:{input:{password:{characters:{text:"The password must contain at least 8 characters"},expired:{text:"You must modify your password for one that contains at least 8 characters. The same can not be equal to the previous ones"},recover:{four:{text:"The password must contain at least 8 characters. The same can not be equal to the previous ones"},one:{text:"You must modify your password for one that contains at least 8 characters"},three:{text:"The password must contain at least 8 characters with at least 1 uppercase, 1 lower case, 1 number and 1 special character !@#$&*"},two:{text:"The password must contain at least 8 characters with at least 1 uppercase, 1 lower case, 1 number and 1 special character !@#$&*. The same can not be equal to the previous ones"}},secure:{text:"You must change your password to one that contains at least 8 characters with at least 1 uppercase, 1 lowercase, 1 number and 1 special character !@#$&*"}}}},error:{characters:{max:"{value, plural,\n =0 {The field cannot exceed # characters}\n =1 {The field cannot exceed # character}\n other {The field cannot exceed # characters}\n}\n",short:"{value, plural,\n =0 {Maximum # characters}\n =1 {Maximum # character}\n other {Maximum # characters}\n}\n"},date:{user:"The user must be at least {start} years old and not older than {end} years old."},input:{email:{format:"The field must have a valid E-mail format.",incorrect:"The E-mail is incorrect.",invalid:"The E-mail you entered is not valid.",registered:"The E-mail already registered.",use:"The E-mail is already in use."},id:{associated:"The ID is associated with another identity document.",incorrect:"Invalid identifier.",registered:"ID already registered.",use:"The identifier is already in use."},password:{block:{text:"For security, your account will be blocked for 30 minutes."},both:{text:"Incorrect E-mail or password."},characters:{max:"The field must have a maximum of 255 characters.",min:"The field must have at least 8 characters."},expired:{text:"The password can not be the same as the previous ones."},invalid:{text:"The password is invalid."},match:{text:"Passwords do not match."},new:{text:"You must enter a new password."},recover:{four:{text:"Enter the E-mail address you used when registering."},one:{text:"Enter a new password.<br />Write at least 8 characters."},three:{text:"An error occurred while trying to change your password.<br />Please try again."},two:{text:"An error occurred while trying to reset your password.<br />Please try again."}},secure:{text:"The password doesn't meet the platform requirements."}}},select:{document:{empty:"Number can not be empty.",incorrect:"The dni is wrong.",registered:"Document already registered."}}},input:{code:{title:"Code"},document:{number:"Number",selected:"Select type",text:"Identity document",title:"Identity document"},email:{text:"E-mail",title:"user@domain.com"},id:{text:"Identifier",title:"Enter Employee ID"},password:{current:{text:"Current password"},description:"The password must contain at least 8 characters.",new:{text:"New Password",title:"Re-type new password"}}},required:"Required field"},loading:{server:"Please wait a moment, connecting with the server.",text:"Loading..."},modal:{error:{actions:{cancel:{title:"Close the modal"},retry:{title:"Retry the action"}},text:"An error has ocurred. Please try again.",title:"An error has ocurred"},unsubscribe:{actions:{radio:{title:"Select option"},submit:{text:"Submit",title:"Send unsubscription"}},options:{display:"Content isn't displayed correctly on my devices.",frequency:"Frequency is not right.",relevant:"Content isn't relevant.",title:"If you have a moment, tell us why you unsubscribed:"},text:"You have been removed from this type of communication.",title:"Unsubscribe Successful"}},month:{april:"April",august:"August",december:"December",february:"February",january:"January",july:"July",june:"June",march:"March",may:"May",november:"November",october:"October",september:"September",title:"Month"}},footer:{actions:{privacy:{text:"Privacy",title:"Open the privacy modal"},terms:{text:"Terms",title:"Open the modal of terms"}},modal:{actions:{help:{accept:{text:"Understood",title:"Leave modal"}}},legal:{privacy:{access:'<em>Access, edition, inactivation and deletion of Personal Data</em><br />Users have access to all their Personal Data within their profile, at the Platform section "My Account", where they may edit and rectify them immediately. In case the data edition is not available, they shall request the Platform Administrators to do so. Moreover, the Administrators also have available tools required to export all Personal Data from Users in a standard format to be transfered.<br />In case an User wants to stop using their account, they must request the Platform Administrators to inactivate and/or permanently delete it.<br />In all cases of Personal Data edition, inactivation and deletion, GOintegro will preserve them for up to 90 days in backup copies. However, during that time, they won\'t be available within the Platform.',argentina:'<em>Argentina resident users. Privacy notice</em><br />INTEG S.A. (GOintegro Argentina), addressed at Avenida Álvarez Thomas 198, Autonomous City of Buenos Aires, Argentina, is responsible for the bank of personal data of users who access the Internet portal www.gointegro.com, use and protection of your personal information. We will treat your personal information in accordance with the provisions of Law No. 25,326, regulatory decree and complementary regulations on data protection in force in Argentina at all times. We will use your personal data to provide the following services through our platform: verify the identity and register a new User, contact the user regarding the use or consumption of the services of the platform, monitor the use, availability and security of the Platform, collect usage statistics for the Platform Administrators, and improve the user experience and develop new features and contents. We will keep your personal information for the term of your platform, or until you decide to be voluntarily excluded from it. You must give your consent for the processing of your personal data in order to enable the provision of the service at the time of first access. This decision is voluntary, but if you decide not to give your consent, the service cannot be provided. You can execute your rights of access, rectification and deletion of the data, with whom you have shared your personal information and revoke your consent by contacting the Administrator of your Platform, or our Support Center through the Help section, in your profile. For more information on the Terms and Conditions in which your Personal Data will be treated, such as third parties with whom we share your personal information, you can consult the Comprehensive Privacy Notice on its Platform section "Privacy Policy".',brasil:'<em>Brazil resident users. Privacy notice</em><br />Integro Marketing Brasil Ltda., addressed at Avenida Dr. Cardoso de Melo 900, 11th floor, São Paulo, Brazil, is responsible for the personal data bank of users who access the Internet portal www.gointegro.com, of the use and of the protection of your personal information. We will treat your personal information in accordance with the provisions of Law No. 13,709, its amendments and complementary regulations on data protection in force in Brazil at all times. We will use your personal data to provide the following services through our platform: verify the identity and register a new User, contact the user regarding the use or consumption of the services of the platform, monitor the use, availability and security of the Platform, collect usage statistics for the Platform Administrators, and improve the user experience and develop new features and contents. We will keep your personal information for the term of your platform, or until you decide to be voluntarily excluded from it. You must give your consent for the processing of your personal data in order to enable the provision of the service at the time of first access. This decision is voluntary, but if you decide not to give your consent, the service cannot be provided. You may exercise your rights to confirm the existence of the processing of your personal data, portability, access, rectification, anonymization, blocking and / or deletion of the data, with whom you have shared your personal information and revoke your consent by contacting the Administrator of your Platform, or with our Support Center through the Help section, in your profile. For more information on the Terms and Conditions in which your Personal Data will be treated, such as third parties with whom we share your personal information, you can consult the Comprehensive Privacy Notice on its Platform, section "Privacy Policy".',chile:'<em>Chile resident users. Privacy Notice</em><br />Integro Chile SA, addressed at Badajoz 45 17th floor, Las Condes, Santiago, Chile, is responsible for the bank of personal data of users who access the website www.gointegro.com, the use and protection of their personal information. We will treat your personal information in accordance with the provisions of Law No. 19,628, its amendments and complementary regulations on data protection in force in Chile at all times. We will use your personal data to provide the following services through our platform: verify the identity and register a new User, contact the user regarding the use or consumption of the services of the platform, monitor the use, availability and security of the Platform, collect usage statistics for the Platform Administrators, and improve the user experience and develop new features and contents. We will keep your personal information for the term of your platform, or until you decide to be voluntarily excluded from it. You must give your consent for the processing of your personal data in order to enable the provision of the service at the time of first access. This decision is voluntary, but if you decide not to give your consent, the service cannot be provided. You may exercise your rights to confirm the existence of the processing of your personal data, portability, access, rectification, anonymization, blocking and / or deletion of the data, with whom you have shared your personal information and revoke your consent by contacting the Administrator of your Platform, or with our Support Center through the Help section, in your profile. For more information on the Terms and Conditions in which your Personal Data will be treated, such as third parties with whom we share your personal information, you can consult the Comprehensive Privacy Notice on its Platform section "Privacy Policy".',colombia:"<em>Colombia resident users. Personal data protection</em><br />In compliance with Law 1581 from 2012 and its Regulatory Decree 1377 from 2013 and all other applicable regulations to the Personal Data Treatment Regime in Colombia, we inform you that all Personal Data collected and incorporated to this portal will be treated, stored, used and processed in line with the purpose of the Platform and in conformity with the Personal Data Treatment Policy of the Contracting Company. It offers to all their users the ability to execute their rights of consulting and claiming over their data through a formal request addressed directly to the Contracting Company, in its capacity of Responsible for these personal data. Therefore, by clicking, you accept and authorize in prior, expressed and informed manner the processing of your personal data within this Platform.",communication:"<em>Communications</em><br />Users accept to receive email messages and mobile phone notifications sent from the Platform that include updates to the company's private social network, as well as other content related to the use of the different features and applications active in the company's Platform. Users may opt-out from those messages or modify their delivery settings in their profile's preferences section.",compiled:"<em>Data gathering</em><br />GOintegro Platform collects different kinds of information from the Users in order to provide its services.<br />Personal Information. The minimum required data for the creation of a User are their First Name, Last Name and Email Address. In some circumstances, some additional personal data may be required, such as their Work or Personal ID number, Country of residence, Work or Personal Address and/or Telephone number, in order to provide subscribed Services. All this personal information is managed and controlled by the Platform Administrators.<br />Work Information. Users' profiles may be filled with work information such as Job Title, Supervisor or Chief, Department or Area and other data related with labour activity. This data can be provided by the Users themselves or by the Platform Administrator.<br />Content and usage data. The data originated from the Platform usage, such as pages and contents accessed by an user, their actions and the time they access are used by GOintegro to provide usage stats for the Platform Administrators.<br />Device information. Some details from the devices used for accessing the Platform, such as brand, model, operating system, location and IP address may be collected in order to provide a proper Service to the end User. In case the User's location is needed for any geolocated service, an authorization will be required.",consent:"<em>Consent</em><br/>GOintegro Users give their consent and accept the terms and conditions regarding the gathering and storage of personal information, including email address, in our database, as well as the use of that information in aggregated, non-personalized reports aimed at interpreting users navigation habits.",cookies:"<em>Cookies and Session Storage</em><br />Cookies are small data files that a website sends to your browser, that are hosted on your computer and that contain certain User information. Session cookies are temporary data files used to improve the browsing experience on the site and are deleted when you close the browser or turn off your device. Persistent cookies, on the other hand, are used to preserve information that you have previously provided, such as site preferences, and are stored in the storage of your device until they are deleted. For its correct operation, the Platform may use session cookies and other similar elements that allow identifying the activity performed by Users in their session. In no case, these elements are used to collect and store personal data of the Users. Those Users who do not wish to receive or maintain cookies on their equipment can configure their browser for this purpose. For more information on how to do this, visit the Help section of your browser.<br />In turn, the Platform could passively collect and use the following information during its session in order to ensure proper operation, in addition to providing usage statistics to its Administrator:<br />• Browser information: Name and version of web browser used.<br />• Device information: Device name and model, operating system, MAC address (Media Access Control), screen resolution and language.<br />• Connection information: Link type and IP address.",limits:"<em>Limits</em><br />Despite the fact that Users privacy is a priority, GOintegro cannot retain personal information when it is in violation of the law. GOintegro reserves the right to hand over Users Personal Data when required by the law, legal processes or court orders.",mexico:'<em>Mexico resident users. Privacy notice</em><br />Who are we? GOintegro Mexico SA de SV, also known as GOintegro, addressed at Calz. Gral. Mariano Escobedo 595, colonia Rincón del Bosque. Bosque de Chapultepec I Secc, Ciudad de México, CDMX, c.p. 11589, in the entity of Ciudad de México, country Mexico, and website www.gointegro.com, is the responsible of the usage and protection of your personal data, and accordingly we inform you as follows.<br />For what purposes will we use your personal data? The personal data that we collect from you will be used for the following purposes that are necessary for the service you are requiring us: To provide the services of our Platform.<br />Where can I check the comprehensive privacy notice? To have more information on the Terms and Conditions that apply for the treatment of your Personal Data, like third parties we share your personal information and the way you can execute your ARCO rights, you may check the Comprehensive Privacy Notice within your Platform, at the "Privacy Policy" section.',peru:'<em>Peru resident users. Personal data protection</em><br />According to Peru\'s Law 29733 for Personal Data Protection, we inform you that the personal data you provide us will be incorporated into the database "CLIENTS" whose owner is INTEGRO PERU S, A, C and authorizes expressly that the data can be used by the company in order to manage the "Platform" to receive communications. According to Law 29733, the interested party may exercise their rights of access, updating, inclusion, rectification, suppression and opposition, for which a web request must be submitted to the Platform\'s Administrators.',rules:"<em>Terms of exclusive application according to territoriality</em>",shared:"<em>Shared information</em><br />Gathered information from the Platform is shared with the Admin Users, who have control over it. It can also be shared with third parties on certain opportunities, such as:<br />• With other applications, websites or stores, in order to fulfill some services or goods requested through the Platform.<br />• With service providers that work in partnership with GOintegro to fulfill Services.<br />• With legal purposes, according to the items detailed in this Policy.",text:"The control and treatment of Platform Users Personal Data are exclusive responsibility of Platform Administrators, who delegate in GOintegro their processing with the purpose of providing the Platform’s Services. GOintegro is committed to protecting Platform Users’ privacy and security. GOintegro does not sell, lease, trade neither offer in any way Users personal information, nor the information from the Company or Organization they belong to. GOintegro uses Users information provided by Platform Administrators and complemented by the Users themselves for allowing, easing, optimizing and empowering Users experience in the usage of the Platform Services.",title:"Privacy Policy",ue:'<em>European Union resident users. Rights execution according to GDPR</em><br />According to the General Data Protection Regulation, GOintegro fulfills its responsibility as "Data Processor" and allows all Platform User to execute their right to access their Personal Data, rectify, transfer and eliminate them.<br />For so, the User must follow the indications shown previously on this Policy, contacting the Platform Administrators is necessary, who will execute their responsibility of "Data Controllers" within the Regulation framework.<br />Users also have the right to limit certain treatments on their Data, or oppose them:<br />• Right to oppose the treatment of their Data for Communications purposes, through the proper configuration at their Profile or through the unsubscription link at emails.<br />• Right to oppose the treatment of their Data for monitoring and Platform use tracking purposes, through the request of inactivation or deletion of their account, requested to the Platform Administrators at any time.',utilization:"<em>Information utilization</em><br />Data gathered by the Platform will be used by GOintegro to provide, maintain and improve subscribed Services. For example:<br />• Verify identity and register a new User.<br />• Contact the user as part of consumption of the Platform Services.<br />• Monitor the usage, availability and security of the Platform.<br />• Gather usage stats for the Platform Administrators.<br />• Improve the user experience and develop new features and contents."},terms:{accept:'<em>Acceptance of Terms and Conditions</em><br />The access and / or use of this Platform (hereinafter the "Platform") implies that, from this moment, its Users adhere and accept all Terms and Conditions set forth below, and also accept Particular Conditions, Policies and Agreements that are part or are referred in them, and those which may complement, replace and / or modify them in the future in relation to the Platforms services and contents. By the mere fact of accessing and making use of the site, Users adhere automatically and immediately to each and every of the following Terms and Conditions. Please read these Terms and Conditions carefully before accessing and / or using any of the Platform services at your own responsibility.',comunication:"<em>Communications</em><br />Users accept to receive E-mail messages and mobile phone notifications sent from the Platform that include updates to the company's private social network, as well as other content related to the use of the different features and applications active in the company's Platform. Users may opt-out from those messages or modify their delivery settings in their profile's preferences section.",content:"<em>Platform Content and External Links</em><br />GOintegro is not responsible for the misuse of the Platform's contents, being the sole responsibility of the User that accesses or uses them. Likewise, GOintegro does not assume any responsibility for the information contained in third party web pages that can be accessed through links or search engines of the Platform. Specifically in relation to discounts, benefits and / or prizes in points of sale, GOintegro is not responsible for the granting of these by the merchants, since the conditions can be modified since its publication in the Platform and GOintegro has no interference with the definition of third party trade policies.",end:"<em>End of Service</em><br />GOintegro reserves the right to terminate any User at any time and without the need to specify the reasons for such termination.",indemnity:"<em>Indemnity</em><br />GOintegro and all its affiliated companies, its managers, employees and contracting companies of the service are not responsible in any way for claims, damages, losses, charges, obligations or costs arising from the use of the Platform by Users and / or the non compliance of the Terms and Conditions expressed in that section.",privacy:"<em>Privacy and Security of Personal Data</em><br />The control and treatment of Platform Users Personal Data are exclusive responsibility of Platform Administrators, who delegate in GOintegro their processing with the purpose of providing the Platform's Services. GOintegro is committed in protecting Platform Users' privacy and security, in compliance with its Privacy Policy. GOintegro does not sell, lease, trade neither offer in any way Users personal information, nor the information from the Company or Organization they belong to. GOintegro uses Users information provided by Platform Administrators and complemented by the Users themselves for allowing, easing, optimizing and empowering Users experience in the usage of the Platform Services.",property:"<em>Intellectual property</em><br />The structure and content of the Platform, including without limitation any of its elements (texts, software, scripts, images, graphics, photos, sounds, music, videos, interactive and similar features and trademarks, trade names and/as well as any other protected elements), are owned by GOintegro or have been licensed and / or assigned to it, and are protected by exclusive intellectual or industrial property rights that are reserved exclusively for their respective owners. Any reproduction, distribution, transformation, public communication and / or making available all or part of said contents or elements, regardless of the medium used, is expressly prohibited without the prior express and written authorization of GOintegro or, as the case may be, the owner of the corresponding rights, assuming otherwise the User we be infringing all direct or indirect liabilities that may arise. The User has only a right of private corporate use, non-exclusive, non-transferable and revocable at any time intended solely for the purpose of enjoying the use of the Platform and its services in accordance with these Terms and Conditions. Likewise, access to or use of the Platform and / or its contents and / or services does not confer any right to the User on trademarks, logos and / or distinctive signs therein protected by law. Likewise, references to names and trademarks or registered trademarks, logos or other distinctive signs, whether owned by GOintegro or third parties, have an implied prohibition on their use without the prior express and written authorization of GOintegro or its rightful owners.",text:"This document describes the Terms and Conditions that users accept before starting to use the Platform.",title:"Terms and Conditions"}}},text:"Powered by {value}"},header:{go_to_home:"Go to start",menu:{apps:{empty:"Here you will find the applications integrated with your platform.",more:"Discover more products",see:"Display the apps",text:"Applications",title:"Go to see more products"},awards:{text:"Awards"},benefits:{text:"GObenefits",title:"Go to benefits application"},challenge:{text:"SportsPlay",title:"Go to SportsPlay"},commons:{title:{apps:"Apps",products:"Products"}},communication:{text:"Communications",title:"Go to communications application"},configuration:{text:"Admin Panel",title:"Go to settings"},discounts:{text:"Discounts",title:"Go to discounts"},engagement:{text:"Engagement",title:"Go to engagement"},flex:{text:"GOflex",title:"Go to flex app"},help:{text:"Help",title:"Go to help"},home:"Home",incentives:{text:"GOincentives",title:"Go to the incentives application"},menu:{text:"Menu",title:"Open menu"},messages:{text:"Messages",title:"Go to the messages app"},recognition:{text:"Recognition",title:"Go to app recognition"},recognitions:{text:"GOrecognition",title:"Go to app recognition"},rewards:{text:"GOrewards",title:"Go to app prizes"},score:{text:"GOscore",title:"Go to score application"},user:{logout:{text:"Sign off",title:"Log out"},settings:{text:"My account",title:"Go to set up my account"},status:{away:"Away",disturb:"Do not disturb",offline:"Offline",online:"Online",title:"Switch to this state"},title:"Displays the user menu"},visma:{text:"TuRecibo",title:"Go to TuRecibo"},wellbeing:{text:"Well-being",title:"Go to well-being"}},modal:{application:{text:"Applications and shortcuts available for {value}.",title:"Apps & Shortcuts"},shortcuts:{title:"Shortcuts"}}},information:{actions:{save:{title:"Save the form"}},commons:{input:{day:"Day",empty:"No results found",suggest:"Search for...",year:"Year"}},error:{input:{address:"The address is incorrect.",date_of_admission:{format:"The field must have a valid date format.",incorrect:"The date is incorrect."},last_name:{characters:"The last name must have at least 2 characters.",incorrect:"The surname is incorrect."},name:{characters:"The name must have at least 2 characters.",incorrect:"The name is incorrect."},social:"The url is incorrect.",suggest:"Sorry, you cannot select this supervisor."},select:{country:"You have not selected a country.",gender:"Gender is incorrect.",group:"The selected group is incorrect.",job:"Title is incorrect.",job_type:"The type of employment is incorrect.",phone:{characters:"The field can not have more than 15 characters or less than 5.",ext:"The extension can not be longer than 9 characters.",format:"The field must have a valid international telephone format.",incorrect:"The number entered is incorrect."},rol:"Access role is incorrect.",state:"Marital status is incorrect.",tier:"The category is incorrect."}},jgrowl:{commons:{text:{success:"Successfuly updated."}}},personal:{address:"Personal address",address_value:"Personal address {value}",birthdate:{text:"Only the administrator can see your year of birth.",title:"Birthdate"},description:"Complete the following information that will only be seen by the administrator. We will only share month and day of your birthdate.",email:"Personal E-mail",gender:{female:"Female",male:"Male",other:"Other",text:"Select",title:"Gender"},last_name:"Last name",name:"Name",phone:"Phone",phone_mobile:"Mobile phone",state:{divorced:"Divorced",married:"Married",single:"Single",text:"Select",title:"Marital status",widowed:"Widowed"},title:"Personal info"},social:{description:"Add your social networks to share with your colleagues.",facebook:"Facebook",linkedin:"Linkedin",title:"Social networks",twitter:"Twitter"},working:{address:"Work address",address_value:"Work address {value}",country:{no_options:"There are no countries to assign.",text:"Select country",title:"Country"},date_of_admission:"Hiring date",description:"Complete the following information and let your colleagues know you. This data is visible except for Identifier and Job type.",ext:"Ext.",job:{text:"Select job title",title:"Job title"},job_section:"Job title",job_type:{no_options:"There are no charges to assign.",text:"Select employement type",title:"Job type",type:"Part-time",type_three:"Teleworking",type_two:"Full-time"},phone:"Phone",phone_mobile:"Mobile phone",subtitle:"Job title",supervisor:"Reports to",tier:{no_options:"There are no job tiers to assign.",text:"Select job tier",title:"Job tier"},title:"Account Data"}},jgrowl:{commons:{text:{update:"A new version is available."}},error:{text:"An error has ocurred. Please try again."}},locales:"en-US",preferences:{actions:{save:{title:"Save form changes"}},alert:{timezone:{chosen:"<strong>Warning:</strong> The chosen time zone does not match the default time zone for the selected country ({value}).",selected:"<strong>Warning:</strong> The selected time zone does not match the one automatically detected based on your device ({value})."}},error:{language:"Incorrect language.",password:"The password could not be saved.",save:"The user preference could not be saved.",timezone:"Incorrect time zone."},jgrowl:{commons:{text:{error:"An error has occurred. Please try again later.",password:"Password successfuly saved.",success:"User preference saved successfully."}}},language:{language:{change:"Change the language",english:"English",portuguese:"Portuguese",spanish:"Spanish",text:"Select language",title:"Language"},timezone:{change:"Change the zone",current:"Set time zone automatically using current location",text:"Select your time zone",title:"Time zone"},title:"Language & Time zone"},password:{title:"Change password"}},sidebar:{code:"QR Code",language:"Language & Time zone",modal:{actions:{camera:{accept:{text:"To accept",title:"Accept the photo"},cancel:{text:"New photo",title:"Take a new picture"},capture:{text:"Capture",title:"Capture the photo"}},cancel:{title:"Close the modal"},save:{title:"Save the image"}},commons:{camera:{title:"Take a photo"},cut:{title:"Profile image"}}},password:"Change password",personal:"Personal info",photo:{camera:{text:"Take a photo",title:"Open options to take a photo"},options:{delete:{text:"Delete picture",title:"Delete the selected photo"},file:{text:"Select File",title:"Allows you to select a file"},picture:{text:"Take photo",title:"Allows you to take a picture with the camera"}}},working:"Account Data"},sign_up:{actions:{access:{text:"Sign in here",title:"Sign in here"},back:{text:"Back",title:"Go back to the previous page"},continue:{text:"Continue",title:"Allows to continue the registration"},first_entry:{text:"<span>First entry?</span> Sign in here",title:"Go to registration screen"},first_entry_login:{text:"<span>Already registered?</span> Login",title:"Go to login"},help_center:{text:"Help Center",title:"Go to the help center"},login:{text:"Log in",title:"Go back to signin"},privacy:{text:"and <span>Privacy Policy</span>",title:"Open the modal with the privacy policy"},recover:{text:"Recover",title:"Recover password"},registry:{text:"Sign Up",title:"Enter app"},restore:{text:"Forgot your password?",title:"Reset the password"},terms:{text:"I agree to the <span>Terms of Service</span>",title:"Open the modal with the terms and conditions"}},commons:{administrator:{text:"We have problems to complete your sign up.<br />If you think this is an error please contact your platform administrator.",title:"Contact your administrator"},check:{email:"We sent a confirmation E-mail to: <span>{value}</span>",registry:"Check your inbox to continue the registration process.",text:"We've sent you an E-mail with a link to reset your password.",title:"Check your inbox"},confirm:{text:"We can send a login code to: {value}",title:"We'll send you a code to your mobile number"},congratulations:{admin:"We have sent you an E-mail to <span>the address provided by the platform's administrator</span> which differs from the one you entered.",email:"We have sent you an E-mail to <span>{value}</span> to validate this address.",title:"Congratulations!",validation:"Your new E-mail address has been validated correctly.<br />Press the button to enter your platform."},create:{text:"Enter a password to complete the registration and access your company's platform.",title:"Create a password"},error:{block:{title:"Your account has been blocked"},both:"Correo electrónico o contraseña incorrectos",change:"An error occurred while trying to change your password.<br />Please try again.",code:"Invalid code",create:"There was an error trying to create your account.<br />Please try again.",expired:"Expired code",invalid:"Invalid code",password:"Unable to login.<br />If you think it is a mistake, contact the platform administrator.",registry:"An error has occurred trying to sign you up.<br />Please try again.",session:"Unable to login.<br />Check the configuration or contact the Help Center.",sms:{block:"Your account has been blocked. Try again in {value} hours.",code:"The number you entered doesn't match your code. Please try again.",credential:"Invalid credentials",format:"Please enter a valid mobile number or email address.",invalid:"Incorrect email or phone number.",limit:"You reached the limit of codes per day. Try again in {value} hours.",number:"The number you entered doesn't match your code. Please try again.",phone:"Phone login unavailable.",wait:"{value, plural,\n =0 {Wait # minutes to request another code.}\n =1 {Wait # minute to request another code.}\n other {Wait # minutes to request another code.}\n}\n"},title:"An error has occurred"},expired:{title:"Your password has expired"},factor:{resend:{text:"<span>Didn't get a verification code?</span> Resend code",title:"Resend the code to the email"},text:"A message with a verification code has been sent to your registered e-mail. Enter the code to continue.",title:"Two-Factor Authentication"},first_entry:{title:"First entry?"},go_to:{text:"Enter the registered E-mail and we will send you a link to reset your password:"},input:{confirm:{text:"Password confirmation"},last_name:{text:"Last name",title:"Enter your last name"},name:{text:"Name",title:"Enter your name"},password:{text:"Password"},sms:{text:"E-mail or phone number"},subdomain:{text:"Subdomain"}},login:{title:"Log in"},recover:{sms:{text:"Enter the email address or phone number with which you registered."},title:"Recover password"},registry:{eight:{text:"You are one step away from entering but we need more data for your account.",title:"Complete your data"},five:{text:"Enter your {value} to finish.",title:"We are almost done!"},four:{text:"Enter a password to complete the registration. It must contain at least 8 characters with al least 1 uppercase, 1 lowercase, 1 number and 1 special character !@#$%*"},one:{text:"Complete the following information and login into your company's platform.",title:"Register"},seven:{text:"Enter your identity document."},six:{text:"Enter your name and last name.",title:"Enter your data"},three:{text:"Enter a password to complete the registration. It must contain at least 8 characters."},two:{text:"Enter your E-mail to validate your user and access the platform of your company."}},secure:{one:{title:"Your password is not secure"},two:{text:"The password was restored correctly. Press the button to enter your platform.",title:"Password changed"}},security:{send:"We sent your code to: {value}",text:"Please check your phone for a text message with your code. Your code is 6 characters long.",title:"Enter security code"},sign_out:{text:"Session closed correctly.",title:"Session ended"},validate:{text:"Confirm your E-mail and enter your employee ID to validate your identity.",title:"Validate your identity"},verification:{text:"Let us know this mobile number belongs to you. Enter the code in the SMS sent to {value} ({country}).",title:"Enter the confirmation code from the text message"}},error:{api:"API error.",last_name:"You must enter a last name.",name:"You must enter a name.",password:"Invalid password.",subdomain:"The field must have a valid url format.",terms:"You must accept the Terms and Conditions.",validate:"The ID and E-mail entered do not match.<br />"},jgrowl:{success:"Verification code was sent",time:"{value, plural,\n =0 {Wait # minutes to request another code}\n =1 {Wait # minute to request another code}\n other {Wait # minutes to request another code}\n}\n"}}}}],["es",{intl:{code:{actions:{reload:{text:"Recargar el código QR",title:"Recarga el código qr"},save:{title:"Guarda los cambios"}},jgrowl:{commons:{text:{error:"Error al iniciar sesión.",success:"Sesión iniciada correctamente."}}},text:'Para iniciar sesión en {platform} Mobile escanea el código QR con tu teléfono<br />1. Abre {app} en tu teléfono<br />2. Selecciona "Iniciar Sesión con Código QR"<br />3. Apunta tu teléfono a esta pantalla para capturar el código',title:"Código QR"},commons:{actions:{accept:{text:"Aceptar",title:"Cierra el alerta"},cancel:"Cancelar",close:"Cerrar",go_to:"Ir a",hello:"Hello",help:"Ayuda",input:{disable:{text:"Inactivo",title:"Desactiva la casilla"},enable:{text:"Activo",title:"Activa la casilla"}},ok:"Ok, Entendido!",retry:"Reintentar",save:"Guardar",update:{text:"Actualizar",title:"Actualiza la app"}},form:{characters:{max:"{value, plural,\n =0 {El campo debe tener como máximo # caracteres}\n =1 {El campo debe tener como máximo # caracter}\n other {El campo debe tener como máximo # caracteres}\n}\n",short:"{value, plural,\n =0 {Máximo # caracteres}\n =1 {Máximo # caracter}\n other {Máximo # caracteres}\n}\n"},description:{input:{password:{characters:{text:"La contraseña debe contener como mínimo 8 caracteres"},expired:{text:"Debes modificar tu contraseña por una que contenga como mínimo 8 caracteres. La misma no puede ser igual a las anteriores"},recover:{four:{text:"La contraseña debe contener como mínimo 8 caracteres. La misma no puede ser igual a las anteriores"},one:{text:"La contraseña debe contener como mínimo 8 caracteres"},three:{text:"La contraseña debe contener como mínimo 8 caracteres con al menos 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial !@#$&*"},two:{text:"La contraseña debe contener como mínimo 8 caracteres con al menos 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial !@#$&*. La misma no puede ser igual a las anteriores"}},secure:{text:"Debes modificar tu contraseña por una que contenga como mínimo 8 caracteres con al menos 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial !@#$&*"}}}},error:{date:{user:"El usuario debe tener al menos {start} años y no más de {end} años."},input:{email:{format:"El campo debe tener un formato de correo electrónico valido.",incorrect:"El correo electrónico es incorrecto.",invalid:"El correo ingresado no es válido.",registered:"El correo electrónico ya está registrado.",use:"El correo electrónico ya está en uso."},id:{associated:"El ID está asociado a otro documento de identidad.",incorrect:"Identificador inválido.",registered:"ID ya está registrado.",use:"El identificador ya está en uso."},password:{block:{text:"Por seguridad, tu cuenta permanecerá bloqueada por 30 minutos."},both:{text:"Correo electrónico o contraseña incorrectos."},characters:{max:"El campo debe tener como máximo 255 caracteres.",min:"El campo debe tener como mínimo 8 caracteres."},expired:{text:"La contraseña no puede ser igual a las anteriores."},invalid:{text:"La contraseña es invalida."},match:{text:"Las contraseñas no coinciden."},new:{text:"Debes colocar una nueva contraseña."},recover:{four:{text:"Escribe la dirección de correo electrónico con la que te has registrado."},one:{text:"Ingresa una nueva contraseña.<br />Escribe al menos 8 caracteres."},three:{text:"Ocurrió un error al intentar cambiar tu contraseña.<br />Por favor, vuelve a intentarlo."},two:{text:"Ocurrió un error al intentar restablecer tu contraseña.<br />Por favor, vuelve a intentarlo."}},secure:{text:"La contraseña no cumple con los requisitos."}}},select:{document:{empty:"Número no puede estar vacío.",incorrect:"El dni es incorrecto.",registered:"Documento ya está registrado."}}},input:{code:{title:"Código"},document:{number:"Número",selected:"Selecciona",text:"Documento de identidad",title:"Documento de identidad"},email:{text:"Correo electrónico",title:"user@domain.com"},id:{text:"Identificador",title:"Ingresa el id de empleado"},password:{current:{text:"Contraseña actual"},description:"La contraseña debe contener como mínimo 8 caracteres.",new:{text:"Contraseña nueva",title:"Repetir contraseña nueva"}}},required:"Campo requerido"},loading:{server:"Por favor espere un momento, conectando con el servidor.",text:"Cargando..."},modal:{error:{actions:{cancel:{title:"Cierra el modal"},retry:{title:"Reintenta la acción"}},text:"Ha ocurrido un error. Intente nuevamente.",title:"Ha ocurrido un error"},unsubscribe:{actions:{radio:{title:"Selecciona la opción"},submit:{text:"Enviar",title:"Envia la desuscripción"}},options:{display:"El contenido no se muestra correctamente en mis dispositivos.",frequency:"La frecuencia no es correcta.",relevant:"El contenido no es relevante.",title:"Si tiene un momento, indica por qué cancelaste tu suscripción:"},text:"Se te ha quitado de este tipo de comunicaciones.",title:"Desuscripción exitosa"}},month:{april:"Abril",august:"Agosto",december:"Diciembre",february:"Febrero",january:"Enero",july:"Julio",june:"Junio",march:"Marzo",may:"Mayo",november:"Noviembre",october:"Octubre",september:"Septiembre",title:"Mes"}},footer:{actions:{privacy:{text:"Privacidad",title:"Abre el modal de privacidad"},terms:{text:"Términos",title:"Abre el modal de términos"}},modal:{actions:{help:{accept:{text:"Entendido",title:"Salir del modal"}}},legal:{privacy:{access:'<em>Acceso, modificación, inactivación y eliminación de Datos Personales</em><br />Los Usuarios tienen acceso a todos sus Datos Personales en su perfil, en la sección "Mi Cuenta" de la Plataforma, donde podrán modificarlos y rectificarlos inmediatamente. En caso que la edición de datos no esté disponible, deben solicitar la modificación a los Administradores de la Plataforma. Asimismo, los Administradores también tienen disponibles las herramientas necesarias para exportar todos los Datos Personales de los Usuarios en un formato estándar para ser transferidos.<br />Si un Usuario desea dejar de utilizar su cuenta, debe solicitar a los Administradores de la Plataforma su inactivación y/o su eliminación definitiva.<br />En todos los casos de modificación, inactivación y eliminación de Datos Personales, GOintegro conservará hasta por 90 días esos datos en copias de seguridad. Sin embargo, durante ese tiempo, los mismos ya no estarán disponibles en la Plataforma.',argentina:'<em>Usuarios residentes en Argentina. Aviso de Privacidad</em><br />INTEG S.A. (GOintegro Argentina), con domicilio en Avenida Álvarez Thomas 198, Ciudad Autónoma de Buenos Aires, Argentina, es el responsable del banco de datos personales de los usuarios que accedan al portal de internet www.gointegro.com, del uso y de la protección de su información personal. Trataremos su información personal de acuerdo con lo dispuesto por Ley N° 25.326, decreto reglamentario y normativa complementaria sobre protección de datos vigente en Argentina en todo momento. Utilizaremos sus datos personales para proveer los siguientes servicios a través de nuestra plataforma: verificar la identidad y registrar a un nuevo Usuario, contactar al usuario en relación al uso o consumo de los servicios de la plataforma, monitorear el uso, la disponibilidad y seguridad de la Plataforma, recopilar estadísticas de uso para los Administradores de la Plataforma, y mejorar la experiencia de uso y desarrollar nuevas funcionalidades y contenidos. Conservaremos su información personal por el plazo de vigencia de su plataforma, o hasta que usted decida ser excluido voluntariamente de la misma. Ud. debe prestar su consentimiento para el tratamiento de sus datos personales para poder habilitar la prestación del servicio al momento del primer acceso. Esta decisión es voluntaria, pero en caso de que resuelva no otorgar su consentimiento, el servicio no podrá prestarse. Podrá ejercer sus derechos de acceso, rectificación y supresión de los datos, con quién/es se ha compartido su información personal y revocar su consentimiento contactandose con el Administrador de su Plataforma, o con nuestro Centro de Soporte a través de la sección Ayuda, en su perfil. Para conocer mayor información sobre los Términos y Condiciones en que serán tratados sus Datos Personales, así como los terceros con quienes compartimos su información personal, puede consultar el Aviso de Privacidad Integral en su Plataforma, sección "Política de Privacidad".',brasil:'<em>Usuarios residentes en Brasil. Aviso de Privacidad</em><br />Integro Marketing Brasil Ltda., con domicilio en Avenida Dr. Cardoso de Melo 900, piso 11, São Paulo, Brasil, es el responsable del banco de datos personales de los usuarios que accedan al portal de internet www.gointegro.com, del uso y de la protección de su información personal. Trataremos su información personal de acuerdo con lo dispuesto por Ley N° 13.709, sus modificatorias y normativa complementaria sobre protección de datos vigente en Brasil en todo momento. Utilizaremos sus datos personales para proveer los siguientes servicios a través de nuestra plataforma: verificar la identidad y registrar a un nuevo Usuario, contactar al usuario en relación al uso o consumo de los servicios de la plataforma, monitorear el uso, la disponibilidad y seguridad de la Plataforma, recopilar estadísticas de uso para los Administradores de la Plataforma, y mejorar la experiencia de uso y desarrollar nuevas funcionalidades y contenidos. Conservaremos su información personal por el plazo de vigencia de su plataforma, o hasta que usted decida ser excluido voluntariamente de la misma. Ud. debe prestar su consentimiento para el tratamiento de sus datos personales para poder habilitar la prestación del servicio al momento del primer acceso. Esta decisión es voluntaria, pero en caso de que resuelva no otorgar su consentimiento, el servicio no podrá prestarse. Podrá ejercer sus derechos de confirmar la existencia del tratamiento de sus datos personales, portabilidad, acceso, rectificación, anonimización, bloqueo y/o supresión de los datos, con quién/es se ha compartido su información personal y revocar su consentimiento contactandose con el Administrador de su Plataforma, o con nuestro Centro de Soporte a través de la sección Ayuda, en su perfil. Para conocer mayor información sobre los Términos y Condiciones en que serán tratados sus Datos Personales, así como los terceros con quienes compartimos su información personal, puede consultar el Aviso de Privacidad Integral en su Plataforma, sección "Política de Privacidad".',chile:'<em>Usuarios residentes en Chile. Aviso de Privacidad</em><br />Integro Chile S.A., con domicilio en Badajoz 45 Piso 17, Las Condes, Santiago, Chile, es el responsable del banco de datos personales de los usuarios que accedan al portal de internet www.gointegro.com, del uso y de la protección de su información personal. Trataremos su información personal de acuerdo con lo dispuesto por Ley N° 19.628, sus modificatorias y normativa complementaria sobre protección de datos vigente en Chile en todo momento. Utilizaremos sus datos personales para proveer los siguientes servicios a través de nuestra plataforma: verificar la identidad y registrar a un nuevo Usuario, contactar al usuario en relación al uso o consumo de los servicios de la plataforma, monitorear el uso, la disponibilidad y seguridad de la Plataforma, recopilar estadísticas de uso para los Administradores de la Plataforma, y mejorar la experiencia de uso y desarrollar nuevas funcionalidades y contenidos. Conservaremos su información personal por el plazo de vigencia de su plataforma, o hasta que usted decida ser excluido voluntariamente de la misma. Ud. debe prestar su consentimiento para el tratamiento de sus datos personales para poder habilitar la prestación del servicio al momento del primer acceso. Esta decisión es voluntaria, pero en caso de que resuelva no otorgar su consentimiento, el servicio no podrá prestarse. Podrá ejercer sus derechos de confirmar la existencia del tratamiento de sus datos personales, portabilidad, acceso, rectificación, anonimización, bloqueo y/o supresión de los datos, con quién/es se ha compartido su información personal y revocar su consentimiento contactandose con el Administrador de su Plataforma, o con nuestro Centro de Soporte a través de la sección Ayuda, en su perfil. Para conocer mayor información sobre los Términos y Condiciones en que serán tratados sus Datos Personales, así como los terceros con quienes compartimos su información personal, puede consultar el Aviso de Privacidad Integral en su Plataforma, sección "Política de Privacidad".',colombia:"<em>Usuarios residentes en Colombia. Protección de datos personales</em><br />En cumplimiento a la Ley 1581 de 2012 y su Decreto Reglamentario 1377 de 2013 y las demás normas que le sean aplicables al Régimen de Tratamiento de Datos personales en Colombia, le informamos que los todos Datos Personales recolectados e incorporados a este portal, serán tratados, almacenados, usados y procesados en línea la finalidad de la Plataforma y de conformidad con la Política de Tratamiento de Datos Personales de la Empresa Contratante. La misma ofrece a todos sus usuarios la posibilidad de ejercer sus derechos de consulta y reclamo sobre sus datos a través de una solicitud dirigida directamente a la Empresa contratante, en su calidad de Responsable de estos datos personales. Por lo anterior, al dar clic, Usted acepta y autoriza de manera previa, expresa e informada el tratamiento de sus datos personales dentro de esta Plataforma.",communication:"<em>Comunicaciones</em><br />El usuario acepta recibir mensajes de correo electrónico y notificaciones al celular enviados desde la plataforma que incluyan actualizaciones de la red social privada de la compañía y demás contenidos referentes a la utilización y aprovechamiento de las distintas soluciones y aplicaciones activas en la plataforma de la compañía, pudiendo optar por no recibir los mismos o modificar la frecuencia de recepción desde las preferencias de su perfil.",compiled:"<em>Información Recopilada</em><br />La Plataforma recopila distintos tipos de información de los Usuarios con la finalidad de brindar su servicio.<br />Información Personal. Los datos mínimos requeridos para la creación de un Usuario son su Nombre, Apellido y Correo Electrónico. En algunas circunstancias, algunos datos personales adicionales pueden ser requeridos, como un Número de Identificación personal o laboral, País de Residencia, Domicilio Laboral o Personal y/o Número Telefónico, con el objetivo de proveer los Servicios contratados. Todos estos Datos Personales son administrados y controlados por los Administradores de la Plataforma.<br />Información Laboral. El perfil de los Usuarios puede complementarse con información laboral como Cargo, Supervisor o Jefe, Departamento o Área y otros datos relacionados con la actividad laboral. Estos datos pueden ser completados por el mismo Usuario o por el Administrador de la Plataforma.<br />Contenido y datos de uso. Los datos originados en el uso de la Plataforma, como las páginas y contenidos al que un Usuario accede, las acciones que realiza y el momento en el que accede son utilizados por GOintegro para brindar estadísticas de uso a los Administradores de la Plataforma.<br />Información de dispositivos. Algunos detalles de los dispositivos utilizados para el acceso a la Plataforma, como marca, modelo, sistema operativo, ubicación y dirección IP pueden ser recopilados con el fin de brindar un correcto servicio al Usuario. En caso de requerir el acceso a la ubicación del Usuario para algún servicio geolocalizado, se le solicitará la autorización correspondiente.",consent:"<em>Consentimiento</em><br/>Los usuarios de GOintegro brindan su consentimiento, aceptando los términos y condiciones de la plataforma, frente a la recopilación y almacenamiento de información personal, incluyendo dirección de email, en nuestra base de datos y al uso de la misma en forma de reportes agregados no personalizados que permitan interpretar los hábitos de navegación de los usuarios.",cookies:"<em>Cookies y Almacenamiento de Sesión</em><br />Las cookies son pequeños ficheros de datos que un sitio web envía a su navegador, que se alojan en su equipo y que contienen cierta información del Usuario. Las cookies de sesión son ficheros de datos temporales utilizados para mejorar la experiencia de navegación en el sitio y son eliminadas al cerrar el navegador o apagar su dispositivo. Las cookies persistentes, en cambio, son utilizadas para conservar información que haya proporcionado anteriormente, como preferencias de sitio, y se alojan en el almacenamiento de su dispositivo hasta tanto sean eliminadas. Para su correcto funcionamiento, la Plataforma puede utilizar cookies de sesión y otros elementos similares que permiten identificar la actividad realizada por los Usuarios en su sesión. En ningún caso, estos elementos son utilizados para recopilar y almacenar datos personales de los Usuarios. Aquellos Usuarios que no deseen recibir o mantener cookies en su equipo pueden configurar su navegador a tal efecto. Para más información de cómo hacerlo, visite la sección de Ayuda de su navegador.<br />A su vez, la Plataforma podría recolectar y utilizar pasivamente la siguiente información durante su sesión con el objetivo de asegurar un correcto funcionamiento, además de proveer estadísticas de uso al Administrador de la misma:<br />• Información del navegador: Nombre y versión de navegador web utilizado.<br />• Información del dispositivo: Nombre y modelo del dispositivo, sistema operativo, dirección MAC (Media Access Control), resolución de pantalla e idioma.<br />• Información de su conexión: Tipo de enlace y dirección IP.",limits:"<em>Límites</em><br />A pesar de que la privacidad de los usuarios es prioritaria, GOintegro no puede retener información cuando dicha acción represente una violación de la ley. GOintegro se reserva el derecho de dar a conocer la información personal de los usuarios cuando la ley, procesos u órdenes judiciales así lo requieran.",mexico:'<em>Usuarios residentes en México. Aviso de Privacidad</em><br />¿Quiénes somos? GOintegro Mexico SA de SV, mejor conocido como GOintegro, con domicilio en calle Calz. Gral. Mariano Escobedo 595, colonia Rincón del Bosque. Bosque de Chapultepec I Secc, Ciudad de México, CDMX, c.p. 11589, en la entidad de Ciudad de México, país México, y portal de internet www.gointegro.com, es el responsable del uso y protección de sus datos personales, y al respecto le informamos lo siguiente.<br />¿Para qué fines utilizaremos sus datos personales? Los datos personales que recabamos de usted, los utilizaremos para las siguientes finalidades que son necesarias para el servicio que solicita: Proveer los servicios de nuestra Plataforma.<br />¿Dónde puedo consultar el aviso de privacidad integral? Para conocer mayor información sobre los Términos y Condiciones en que serán tratados sus Datos Personales, como los terceros con quienes compartimos su información personal y la forma en que podrá ejercer sus derechos ARCO, puede consultar el Aviso de Privacidad Integral en su Plataforma, sección "Política de Privacidad".',peru:"<em>Usuarios residentes en Perú. Protección de datos personales</em><br />De conformidad con lo establecido en la Ley 29733 - Ley de Protección de Datos Personales, le informamos que los datos personales que usted nos proporciona, serán incorporados en el banco de datos CLIENTES cuyo titular es INTEGRO PERU S,A,C y autoriza expresamente que dichos datos podrán ser utilizados con la finalidad de que la empresa gestione la Plataforma para recibir comunicaciones. De acuerdo con la Ley 29733, el interesado podrá ejercer sus derechos de acceso, actualización, inclusión, rectificación supresión y oposición, para lo que deberá presentar una solicitud a los Administradores de la Plataforma.",rules:"<em>Normas de aplicación exclusiva según territorialidad</em>",shared:"<em>Información Compartida</em><br />La Información Recopilada por la Plataforma es compartida con los Usuarios Administradores de la Plataforma, quienes tienen el control sobre ella. También puede ser compartida con terceros en determinadas ocasiones, por ejemplo:<br />• Con otras aplicaciones, sitios web o comercios, con el fin de brindar algún servicio o bien requerido a través de la Plataforma.<br />• Con proveedores de servicios que colaboran con GOintegro en la prestación de Servicios.<br />• Con fines legales, según lo dispuesto más adelante en esta Política.",text:"El control y tratamiento de los Datos Personales de los Usuarios de la Plataforma son de exclusiva responsabilidad de los Administradores de la Plataforma, quienes delegan en GOintegro el procesamiento de los mismos con el objetivo de proveer los Servicios de la Plataforma. GOintegro se compromete a proteger la privacidad y seguridad de todos los Usuarios de la Plataforma. GOintegro no vende, alquila, canjea ni ofrece de ninguna forma la información personal de los Usuarios ni de la Compañía u Organización a la que pertenecen. GOintegro utiliza la información de Usuarios provista por los Administradores de la Plataforma y complementada por los mismos Usuarios para permitir, facilitar, optimizar y potenciar la experiencia de los Usuarios en el uso de los servicios de la Plataforma.",title:"Política de Privacidad",ue:'<em>Usuarios residentes en la Unión Europea. Ejercicio de derechos en virtud de RGPD</em><br />De conformidad con el Reglamento General de Protección de Datos, GOintegro cumple su responsabilidad como "Procesador de Datos" y permite a todo Usuario de la Plataforma ejercer su derecho a acceder a sus Datos Personales, rectificarlos, transferirlos y eliminarlos.<br />Para ello, el Usuario debe seguir las indicaciones señaladas previamente en esta Política, contactando de ser necesario a los Administradores de la Plataforma, quienes ejercen la responsabilidad de “Controladores de Datos” en el marco del Reglamento.<br />Los Usuarios también poseen el derecho a limitar determinados tratamientos de sus Datos, u oponerse a ellos:<br />• Derecho a oponerse al tratamiento de sus Datos para fines de Comunicaciones, mediante la configuración correspondiente en su Perfil o a través del link de de suscripción en correos electrónicos.<br />• Derecho a oponerse al tratamiento de sus Datos para fines de monitoreo y seguimiento de uso de la Plataforma, a través de la solicitud de inactivación o eliminación de cuenta, solicitado a los Administradores de la Plataforma en cualquier momento.',utilization:"<em>Utilización de la Información</em><br />La Información Recopilada por la Plataforma será utilizada por GOintegro para brindar, mantener y mejorar los Servicios ofrecidos. A modo de ejemplo:<br />• Verificar la identidad y registrar a un nuevo Usuario.<br />• Contactar al usuario en relación al uso o consumo de los Servicios de la Plataforma.<br />• Monitorear el uso, la disponibilidad y seguridad de la Plataforma.<br />• Recopilar estadísticas de uso para los Administradores de la Plataforma.<br />• Mejorar la experiencia de uso y desarrollar nuevas funcionalidades y contenidos."},terms:{accept:'<em>Aceptación de Términos y Condiciones</em><br />El acceso y/o uso de esta Plataforma (en adelante la "Plataforma") implica que, a partir de dicho momento, sus Usuarios adhieren y aceptan la totalidad de los Términos y Condiciones que se establecen a continuación, y aceptan también las Condiciones Particulares, Políticas y Acuerdos que forman parte o estén referenciados en ellos, y aquellas que en el futuro puedan complementarlas, sustituirlas y/o modificarlas en relación con los servicios y contenidos de la Plataforma. Por el sólo hecho de ingresar y hacer uso del mismo sitio, los Usuarios adhieren en forma automática e inmediata a todos y a cada uno de los siguientes Términos y Condiciones. Por favor, lea detenidamente estos Términos y Condiciones antes de acceder y/o utilizar cualquier servicio de la Plataforma bajo su entera responsabilidad.',comunication:"<em>Comunicaciones</em><br />El usuario acepta recibir mensajes de correo electrónico y notificaciones al celular enviados desde la plataforma que incluyan actualizaciones de la red social privada de la compañía y demás contenidos referentes a la utilización y aprovechamiento de las distintas soluciones y aplicaciones activas en la plataforma de la compañía, pudiendo optar por no recibir los mismos o modificar la frecuencia de recepción desde las preferencias de su perfil.",content:"<em>Contenido de la Plataforma y Links Externos</em><br />GOintegro no se responsabiliza del mal uso que se realice de los contenidos de la Plataforma, siendo exclusiva responsabilidad del Usuario que acceda a los mismos o los utilice. Asimismo, GOintegro no asume responsabilidad alguna por la información contenida en páginas web de terceros a las que se pueda acceder por enlaces (links) o buscadores de la Plataforma. Específicamente en lo referente a descuentos, beneficios y/o premios en puntos de venta, GOintegro no es responsable por el otorgamiento de los mismos por parte de los comercios, toda vez que las condiciones se pueden ver modificadas desde su publicación en la Plataforma y GOintegro no tiene injerencia de la definición de políticas comerciales de terceros.",end:"<em>Fin del Servicio</em><br />GOintegro se reserva el derecho de dar de baja a cualquier Usuario en cualquier momento y sin necesidad de especificar los motivos de dicha baja.",indemnity:"<em>Indemnidad</em><br />GOintegro y todas sus compañías afiliadas, sus directivos, empleados y compañías contratantes del servicio no son responsables en modo alguno por reclamos, daño, pérdidas, cargos, obligaciones o costo derivados del uso de la Plataforma por parte de los Usuarios y/o del no cumplimiento por parte de los mismos de los Términos y Condiciones expresados en esa sección.",privacy:"<em>Privacidad y Seguridad de Datos Personales</em><br />El control y tratamiento de los Datos Personales de los Usuarios de la Plataforma son de exclusiva responsabilidad de los Administradores de la Plataforma, quienes delegan en GOintegro el procesamiento de los mismos con el objetivo de proveer los Servicios de la Plataforma. GOintegro se compromete a proteger la privacidad y seguridad de todos los Usuarios de la Plataforma, en conformidad con su Política de Privacidad. GOintegro no vende, alquila, canjea ni ofrece de ninguna forma la información personal de los Usuarios. GOintegro utiliza la información de usuarios provista por los Administradores de la Plataforma y complementada por los mismos Usuarios para permitir, facilitar, optimizar y potenciar la experiencia de los Usuarios en el uso de los servicios de la Plataforma.",property:"<em>Propiedad Intelectual</em><br />La estructura y el contenido de la Plataforma, incluyendo sin restricción cualquiera de sus elementos (textos, software, scripts, imágenes, gráficos, fotos, sonidos, música, vídeos, funcionalidades interactivas y similares y las marcas, nombres comerciales y/o logos, así como cualesquiera otros elementos protegidos), son propiedad de GOintegro o se han licenciado y/o cedido a la misma, y están protegidos por derechos exclusivos de propiedad intelectual o industrial que quedan reservados en exclusiva en favor de sus respectivos titulares. Concretamente, queda expresamente prohibida cualquier reproducción, distribución, transformación, comunicación pública y/o puesta a disposición total o parcial de los referidos contenidos o elementos, con independencia del medio empleado, si no se cuenta con la autorización previa, expresa y por escrito de GOintegro o, en su caso, del titular de los correspondientes derechos, asumiendo en caso contrario el Usuario infractor todas las responsabilidades directas o indirectas que pudieran derivarse. El Usuario dispone únicamente de un derecho de uso privado corporativo, no exclusivo, intransferible y revocable en cualquier momento destinado exclusivamente a la finalidad de disfrutar de la utilización de la Plataforma y sus prestaciones de acuerdo con los presentes Términos y Condiciones. Del mismo modo, el acceso o uso de la Plataforma y/o de sus contenidos y/o servicios no confiere al Usuario derecho alguno sobre las marcas, logotipos y/o signos distintivos en él incluidos protegidos por ley. Asimismo, las referencias a nombres y marcas comerciales o registradas, logotipos u otros signos distintivos, ya sean titularidad de GOintegro o de terceras empresas, llevan implícitas la prohibición sobre su uso sin la previa, expresa y escrita autorización de GOintegro o de sus legítimos propietarios.",text:"Este documento describe los Términos y Condiciones que aceptan los Usuarios antes de comenzar a utilizar la Plataforma.",title:"Términos & Condiciones"}}},text:"Powered by {value}"},header:{go_to_home:"Ir al inicio",menu:{apps:{empty:"Aquí encontrarás las aplicaciones integradas con tu plataforma.",more:"Descubrir más productos",see:"Ver más apps",text:"Aplicaciones",title:"Ir a ver más productos"},awards:{text:"Premios"},benefits:{text:"GObenefits",title:"Ir a la aplicación beneficios"},challenge:{text:"SportsPlay",title:"Ir a la aplicación SportsPlay"},commons:{title:{apps:"Apps",products:"Productos"}},communication:{text:"Communications",title:"Ir a la aplicación communications"},configuration:{text:"Admin Panel",title:"Ir a la configuración"},discounts:{text:"Discounts",title:"Ir a la aplicación discounts"},engagement:{text:"Engagement",title:"Ir a la aplicación engagement"},flex:{text:"GOflex",title:"Ir a la aplicación flex"},help:{text:"Ayuda",title:"Ir a ayuda"},home:"Inicio",incentives:{text:"GOincentives",title:"Ir a la aplicación incentivos"},menu:{text:"Menú",title:"Abre el menú"},messages:{text:"Mensajes",title:"Ir a la aplicación mensajes"},recognition:{text:"Recognition",title:"Ir a la aplicación recognition"},recognitions:{text:"GOrecognition",title:"Ir a la aplicación reconocimientos"},rewards:{text:"GOrewards",title:"Ir a la aplicación premios"},score:{text:"GOscore",title:"Ir a la aplicación score"},user:{logout:{text:"Cerrar sesión",title:"Cierra la sesión"},settings:{text:"Mi cuenta",title:"Ir a configurar mi cuenta"},status:{away:"Ausente",disturb:"No molestar",offline:"Desconectado",online:"En línea",title:"Cambia a este estado"},title:"Despliega el menu de usuario"},visma:{text:"TuRecibo",title:"Ir a la aplicación TuRecibo"},wellbeing:{text:"Well-being",title:"Ir a la aplicación well-being"}},modal:{application:{text:"Aplicaciones y accesos directos disponibles para {value}.",title:"Apps & Accesos Directos"},shortcuts:{title:"Accesos Directos"}}},information:{actions:{save:{title:"Guarda el formulario"}},commons:{input:{day:"Día",empty:"No se encontraron resultados",suggest:"Buscar a...",year:"Año"}},error:{input:{address:"La dirección es incorrecta.",date_of_admission:{format:"El campo debe tener un formato de fecha valido.",incorrect:"La fecha es incorrecta."},last_name:{characters:"El apellido debe tener por lo menos 2 caracteres.",incorrect:"El apellido es incorrecto."},name:{characters:"El nombre debe tener por lo menos 2 caracteres.",incorrect:"El nombre es incorrecto."},social:"La url es incorrecta.",suggest:"No puedes seleccionar a este supervisor."},select:{country:"No ha seleccionado país.",gender:"El género es incorrecto.",group:"El grupo seleccionado es incorrecto.",job:"El título es incorrecto.",job_type:"El tipo de empleo es incorrecto.",phone:{characters:"El campo no puede tener más de 15 caracteres ni menos de 5.",ext:"La extensión no puede tener más de 9 caracteres.",format:"El campo debe tener un formato de teléfono internacional válido.",incorrect:"El número ingresado es incorrecto."},rol:"El rol de acceso es incorrecto.",state:"El estado civil es incorrecto.",tier:"La categoría es incorrecta."}},jgrowl:{commons:{text:{success:"Se actualizó correctamente."}}},personal:{address:"Dirección personal",address_value:"Dirección personal {value}",birthdate:{text:"Sólo el administrador podrá ver el año de tu nacimiento.",title:"Fecha de nacimiento"},description:"Completa la siguiente información que sólo será vista por el administrador. Únicamente compartiremos el día y mes de tu cumpleaños.",email:"Correo electrónico personal",gender:{female:"Femenino",male:"Masculino",other:"Otro",text:"Selecciona",title:"Género"},last_name:"Apellido",name:"Nombre",phone:"Teléfono",phone_mobile:"Teléfono móvil",state:{divorced:"Divorciado",married:"Casado",single:"Soltero",text:"Selecciona",title:"Estado civil",widowed:"Viudo"},title:"Información personal"},social:{description:"Agrega tus redes sociales para compartir con tus compañeros.",facebook:"Facebook",linkedin:"Linkedin",title:"Redes sociales",twitter:"Twitter"},working:{address:"Dirección laboral",address_value:"Dirección laboral {value}",country:{no_options:"No existen paises para asignar.",text:"Selecciona un país",title:"País"},date_of_admission:"Fecha de ingreso",description:"Completa la siguiente información para darte a conocer con tus compañeros. Estos datos son públicos excepto el Identificador y el tipo de empleo.",ext:"Ext.",job:{text:"Selecciona el cargo",title:"Cargo"},job_section:"Cargo laboral",job_type:{no_options:"No existen cargos para asignar.",text:"Selecciona tipo de empleo",title:"Tipo de empleo",type:"Part-time",type_three:"Teleworking",type_two:"Full-time"},phone:"Teléfono",phone_mobile:"Teléfono móvil",subtitle:"Puesto laboral",supervisor:"Reporta a",tier:{no_options:"No existen niveles jerárquicos para asignar.",text:"Selecciona el nivel jerárquico",title:"Nivel jerárquico"},title:"Información de la cuenta"}},jgrowl:{commons:{text:{update:"Una nueva versión esta disponible."}},error:{text:"Ha ocurrido un error. Intente nuevamente."}},locales:"es-AR",preferences:{actions:{save:{title:"Guarda los cambios del formulario"}},alert:{timezone:{chosen:"<strong>Advertencia:</strong> La zona horaria elegida no coincde con la zona por defecto para el país elegido ({value}).",selected:"<strong>Advertencia:</strong> La zona horaria elegida no coincide con la detectada automáticamente en base a tu dispositivo ({value})."}},error:{language:"Idioma incorrecto.",password:"No se pudo guardar la contraseña.",save:"No se pudo guardar la preferencia de usuario.",timezone:"Zona horaria incorrecta."},jgrowl:{commons:{text:{error:"Ha ocurrido un error. Intenta más tarde.",password:"La contraseña se ha guardado correctamente.",success:"La preferencia de usuario se guardó correctamente."}}},language:{language:{change:"Cambia el idioma",english:"Inglés",portuguese:"Portugués",spanish:"Español",text:"Selecciona un idioma",title:"Idioma"},timezone:{change:"Cambia la zona",current:"Establecer la zona horaria automáticamente utilizando la ubicación actual",text:"Selecciona tu zona horaria",title:"Zona horaria"},title:"Idioma & Zona horaria"},password:{title:"Cambiar contraseña"}},sidebar:{code:"Código QR",language:"Idioma & Zona horaria",modal:{actions:{camera:{accept:{text:"Aceptar",title:"Acepta la foto"},cancel:{text:"Nueva foto",title:"Saca una nueva foto"},capture:{text:"Capturar",title:"Captura la foto"}},cancel:{title:"Cierra el modal"},save:{title:"Guarda la imagen"}},commons:{camera:{title:"Tomar una foto"},cut:{title:"Imagen de perfil"}}},password:"Cambiar contraseña",personal:"Información personal",photo:{camera:{text:"Tomar una foto",title:"Abre opciones para tomar foto"},options:{delete:{text:"Eliminar foto",title:"Elimina la foto seleccionada"},file:{text:"Seleccionar archivo",title:"Permite seleccionar un archivo"},picture:{text:"Tomar foto",title:"Permite tomar una foto con la camara"}}},working:"Información de la cuenta"},sign_up:{actions:{access:{text:"Obtén tu acceso aquí",title:"Obtén tu acceso aquí"},back:{text:"Volver",title:"Vuelve a la página anterior"},continue:{text:"Continuar",title:"Permite continuar el registro"},first_entry:{text:"<span>¿Primer ingreso?</span> Obtén tu acceso aquí",title:"Ir a pantalla de registro"},first_entry_login:{text:"<span>¿Ya estás registrado?</span> Inicia sesión",title:"Ir a inicio de sesión"},help_center:{text:"Help Center",title:"Ir al help center"},login:{text:"Iniciar sesión",title:"Vuelve al signin"},privacy:{text:"y la <span>Política de Privacidad</span>",title:"Abre el modal con la política de privacidad"},recover:{text:"Recuperar",title:"Recupera la contraseña"},registry:{text:"Registrarme",title:"Permite ingresar a la app"},restore:{text:"¿Has olvidado tu contraseña?",title:"Restablece la contraseña"},terms:{text:"Acepto los <span>Términos de Servicio</span>",title:"Abre el modal con los términos y condiciones"}},commons:{administrator:{text:"No hemos podido registrarte con los datos que has ingresado.<br />Si crees que es un error, contacta al administrador de la plataforma.",title:"Contacta a tu administrador"},check:{email:"Te hemos enviado un correo electrónico a: <span>{value}</span>",registry:"Revisa tu casilla de correo para continuar con el registro.",text:"Te hemos enviado un correo electrónico con un enlace para restablecer tu contraseña.",title:"Revisa tu casilla de correo"},confirm:{text:"Podemos enviar un código de inicio de sesión al: {value}",title:"Te enviaremos un código a tu número de celular"},congratulations:{admin:"Te hemos enviado un correo electrónico a <span>la dirección suministrada por el administrador de la plataforma</span> que difiere a la ingresada.",email:"Te hemos enviado un correo electrónico a <span>{value}</span> para validar la dirección.",title:"¡Felicitaciones!",validation:"Tu nueva dirección de correo electrónico se ha validado correctamente.<br />Presiona el botón para ingresar a tu plataforma."},create:{text:"Ingresa una contraseña para completar el registro y acceder a la plataforma de tu empresa.",title:"Crea una contraseña"},error:{block:{title:"Tu cuenta ha sido bloqueada"},both:"Correo electrónico o contraseña incorrectos",change:"Ocurrió un error al intentar cambiar tu contraseña.<br />Por favor, vuelve a intentarlo.",code:"Código incorrecto",create:"Ocurrió un error intentado crear tu cuenta.<br />Por favor, vuelve a intentarlo.",expired:"Código expirado",invalid:"Código incorrecto",password:"No se ha podido iniciar sesión.<br />Si crees que es un error, contacta al administrador de la plataforma.",registry:"Ocurrió un error intentado registrarte.<br />Por favor, vuelve a intentarlo.",session:"No se ha podido iniciar sesión.<br />Revisa la configuración o contáctate con el Centro de Ayuda.",sms:{block:"Tu cuenta ha sido bloqueada. Intenta en {value}hs nuevamente.",code:"El número que ingresaste no coincide con tu código. Inténtalo de nuevo.",credential:"Credenciales no válidas",format:"Ingresa un número de teléfono móvil o dirección de correo electrónico válidos.",invalid:"Correo electrónico o número de teléfono incorrecto.",limit:"Alcanzaste el limite de códigos por día. Intenta en {value}hs nuevamente.",number:"El número que ingresaste no coincide con tu código. Inténtalo de nuevo.",phone:"Inicio de sesión con teléfono no disponible.",wait:"{value, plural,\n =0 {Espera # minutos para solicitar otro código.}\n =1 {Espera # minuto para solicitar otro código.}\n other {Espera # minutos para solicitar otro código.}\n}\n"},title:"Ha ocurrido un error"},expired:{title:"Tu contraseña ha expirado"},factor:{resend:{text:"<span>¿No te ha llegado el código de verificación?</span> Reenviar código",title:"Reenvía el código al email"},text:"Se ha enviado un mensaje con un código de verificación a tu correo electrónico registrado. Introduce el código para continuar.",title:"Autenticación de dos factores"},first_entry:{title:"¿Primer ingreso?"},go_to:{text:"Ingresa el correo electrónico registrado y te enviaremos un enlace para restablecer tu contraseña:"},input:{confirm:{text:"Confirmación de contraseña"},last_name:{text:"Apellido",title:"Ingresa tu apellido"},name:{text:"Nombre",title:"Ingresa tu nombre"},password:{text:"Contraseña"},sms:{text:"Correo electrónico o número de teléfono"},subdomain:{text:"Subdominio"}},login:{title:"Inicia sesión"},recover:{sms:{text:"Escribe la dirección de correo electrónico o número de teléfono con el que te has registrado."},title:"Recuperar contraseña"},registry:{eight:{text:"Estas a un paso de ingresar pero necesitamos mas datos para tu cuenta.",title:"Completa tus datos"},five:{text:"Ingresa tu {value} para finalizar.",title:"¡Ya casi terminamos!"},four:{text:"Ingresa una contraseña para completar el registro. La misma debe contener como mínimo 8 caracteres con al menos 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial !@#$&*"},one:{text:"Completa la siguiente información e ingresa a la plataforma de tu empresa.",title:"Registrate"},seven:{text:"Ingresa tu documento de identidad."},six:{text:"Ingresa tu nombre y apellido.",title:"Ingresa tus datos"},three:{text:"Ingresa una contraseña para completar el registro. La misma debe contener como mínimo 8 caracteres."},two:{text:"Ingresa tu correo electrónico para validar tu usuario y acceder a la plataforma de tu empresa."}},secure:{one:{title:"Tu contraseña no es segura"},two:{text:"La contraseña fue restablecida correctamente. Presiona el botón para ingresar a tu plataforma.",title:"Contraseña cambiada"}},security:{send:"Enviamos tu código a: {value}",text:"Verifica tu teléfono para ver si hay un mensaje de texto con tu código. Tu código tiene 6 caracteres.",title:"Ingresa el Código de Seguridad"},sign_out:{text:"Sesión cerrada correctamente.",title:"Sesión finalizada"},validate:{text:"Confirma tu correo electrónico e ingresa tu ID de empleado para validar tu identidad.",title:"Valida tu identidad"},verification:{text:"Indícanos que este número de móvil te pertenece. Ingresa el código en el SMS enviado a {value} ({country}).",title:"Ingresa el código de confirmación del mensaje de texto"}},error:{api:"Error de API.",last_name:"Debes colocar un apellido.",name:"Debes colocar un nombre.",password:"Debes colocar una contraseña.",subdomain:"Debes colocar un subdominio.",terms:"Debes aceptar los términos y condiciones.",validate:"El ID y correo ingresado no coinciden.<br />Ingresa al"},jgrowl:{success:"Se envió el código de verificación",time:"{value, plural,\n =0 {Espera # minutos para solicitar otro código}\n =1 {Espera # minuto para solicitar otro código}\n other {Espera # minutos para solicitar otro código}\n}\n"}}}}],["pt",{intl:{code:{actions:{reload:{text:"Recargar el QR code",title:"Recarregue o código qr"},save:{title:"Salvar alterações"}},jgrowl:{commons:{text:{error:"Falha no login.",success:"Conectado com sucesso."}}},text:'Para fazer login em {platform} Mobile, digitalize o código QR com seu telefone<br />1. Abrir {app} em seu telefone<br />2. Selecione "Login com QR Code"<br />3. Aponte seu telefone para esta tela para capturar o código',title:"Código QR"},commons:{actions:{accept:{text:"Aceitar",title:"Feche o alerta"},cancel:"Cancelar",close:"Fechar",go_to:"Vá para",hello:"Hello",help:"Ajuda",input:{disable:{text:"Inativo",title:"Desmarque a caixa"},enable:{text:"Ativo",title:"Marque a caixa"}},ok:"Fechar!",retry:"Repetir",save:"Salvar",update:{text:"Atualização",title:"Atualize o aplicativo"}},form:{description:{input:{password:{characters:{text:"A senha deve conter pelo menos 8 caracteres"},expired:{text:"Você deve modificar sua senha para uma que contenha pelo menos 8 caracteres. O mesmo não pode ser igual aos anteriores"},recover:{four:{text:"A senha deve conter pelo menos 8 caracteres. O mesmo não pode ser igual aos anteriores"},one:{text:"Você deve modificar sua senha para uma que contenha no mínimo de 8 caracteres"},three:{text:"A senha deve conter no mínimo 8 caracteres com pelo menos 1 maiúscula, 1 minúscula, 1 número e 1 caráter especial !@#$%*"},two:{text:"A senha deve conter no mínimo 8 caracteres com pelo menos 1 maiúscula, 1 minúscula, 1 número e 1 caráter especial !@#$%*. O mesmo não pode ser igual aos anteriores"}},secure:{text:"Você deve alterar sua senha para uma que contenha pelo menos 8 caracteres com pelo menos 1 maiúscula, 1 minúscula, 1 número e 1 caractere especial !@#$&*"}}}},error:{characters:{max:"{value, plural,\n =0 {O campo deve ter no máximo # caracteres}\n =1 {O campo deve ter no máximo # caracter}\n other {O campo deve ter no máximo # caracteres}\n}\n",short:"{value, plural,\n =0 {Máximo # caracteres}\n =1 {Máximo # caracter}\n other {Máximo # caracteres}\n}\n"},date:{user:"O usuário deve ter pelo menos {start} anos e não mais de {end} anos."},input:{email:{format:"O campo deve ter um formato de E-mail válido.",incorrect:"O E-mail está incorreto.",invalid:"O E-mail inserido não é válido.",registered:"O E-mail já registrado.",use:"O E-mail já registrado."},id:{associated:"O ID está associado a outro documento de identidade.",incorrect:"Identificador inválido.",registered:"ID já registrada.",use:"O identificador já registrado."},password:{block:{text:"Por segurança, sua conta permanecerá bloqueada por 30 minutos."},both:{text:"E-mail ou senha incorretos."},characters:{max:"O campo deve ter no máximo 255 caracteres.",min:"O campo deve ter pelo menos 8 caracteres."},expired:{text:"A senha não pode ser a mesma que as anteriores."},invalid:{text:"A senha é inválida."},match:{text:"As senhas não correspondem."},new:{text:"Você deve inserir uma nova senha."},recover:{four:{text:"Digite o endereço de E-mail com o que você se cadastrou."},one:{text:"Digite uma nova senha.<br />Escreva pelo menos 8 caracteres."},three:{text:"Ocorreu um erro ao tentar alterar sua senha.<br />Por favor, tente novamente."},two:{text:"Ocorreu um erro ao tentar redefinir sua senha.<br />Tente novamente."}},secure:{text:"A senha não cumpre com os requisitos."}}},select:{document:{empty:"Número não pode estar vazio.",incorrect:"O dni está errado.",registered:"Documento já registrado."}}},input:{code:{title:"Código"},document:{number:"Número",selected:"Selecione o tipo",text:"Documento de identidade",title:"Documento de identidade"},email:{text:"E-mail",title:"user@domain.com"},id:{text:"Identificador",title:"Insira o ID do empregado"},password:{current:{text:"Senha atual"},description:"A senha deve conter pelo menos 8 caracteres.",new:{text:"Nova senha",title:"Digite a nova senha novamente"}}},required:"Campo obrigatório"},loading:{server:"Por favor, aguarde um momento, conectando-se com o servidor.",text:"Carregando..."},modal:{error:{actions:{cancel:{title:"Fechar modal"},retry:{title:"Repita a ação"}},text:"Um erro ocorreu. Por favor, tente novamente.",title:"Um erro ocorreu"},unsubscribe:{actions:{radio:{title:"Selecione a opção"},submit:{text:"Enviar",title:"Enviar cancelamento de inscrição"}},options:{display:"O conteúdo não é exibido corretamente em meus dispositivos.",frequency:"Frequência não está certa.",relevant:"O conteúdo não é relevante.",title:"Se você tiver um momento, diga-nos por que cancelou a inscrição:"},text:"Você foi removido deste tipo de comunicação.",title:"Unsubscribe sucesso"}},month:{april:"Abril",august:"Agosto",december:"Dezembro",february:"Fevereiro",january:"Janeiro",july:"Julho",june:"Junho",march:"Março",may:"Maio",november:"Novembro",october:"Outubro",september:"Setembro",title:"Mês"}},footer:{actions:{privacy:{text:"Privacidade",title:"Abra o modal de privacidade"},terms:{text:"Termos",title:"Abra o modal de termos"}},modal:{actions:{help:{accept:{text:"Entendido",title:"Deixar modal"}}},legal:{privacy:{access:'<em>Acesso, modificação, inativação e eliminação de Dados Pessoais</em><br />Os Usuários têm acesso a todos seus Dados Pessoais no seu perfil, na seção "Minha Conta" da Plataforma, onde poderão modificá-los e retificá-los imediatamente. No caso de que a edição dos dados não esteja disponível aos Administradores da Plataforma. Além disso, os Administradores também têm disponíveis as ferramentas necessárias para exportar todos os Dados Pessoais dos Usuários em um formato para serem transferidos.<br />Se um Usuário deseja deixar de utilizar sua conta, deve solicitar aos Administradores da Plataforma sua inativação e/ou eliminação definitiva.<br />Em todos os casos de modificação, inativação e eliminação de Dados Pessoais, a GOintegro irá conservar até por 90 dias esses dados em cópias de segurança. No entanto, durante esse tempo, os mesmos já não estarão disponíveis na Plataforma.',argentina:'<em>Usuários residentes na Argentina. Aviso de Privacidade</em><br />INTEG S.A. (GOintegro Argentina), com endereço na Avenida Álvarez Thomas 198, Ciudad Autónoma de Buenos Aires, Argentina, é responsável pelo banco de dados pessoais dos usuários que acessam o portal da Internet www.gointegro.com, uso e proteção de suas informações pessoais. Trataremos suas informações pessoais de acordo com as disposições da Lei Nº 25.326, decreto regulamentar e regulamentos complementares sobre proteção de dados em vigor na Argentina o tempo todo. Usaremos seus dados pessoais para fornecer os seguintes serviços por meio de nossa plataforma: verificar a identidade e registrar um novo usuário, entrar em contato com o usuário sobre o uso ou consumo dos serviços da plataforma, monitorar o uso, disponibilidade e segurança da Plataforma, coletar estatísticas de uso para os Administradores da Plataforma, melhorar a experiência do usuário e desenvolver novos recursos e conteúdos. Manteremos suas informações pessoais pelo prazo de sua plataforma, ou até você decidir ser voluntariamente excluído dela. Você deve dar seu consentimento para o processamento de seus dados pessoais, a fim de permitir a prestação do serviço no momento do primeiro acesso. Esta decisão é voluntária, mas se você decidir não dar seu consentimento, o serviço não poderá ser fornecido. Você pode exercer seus direitos de acesso, retificação e exclusão dos dados, com quem compartilhou suas informações pessoais e revogar seu consentimento entrando em contato com o administrador de sua plataforma ou com o nosso Centro de suporte na seção Ajuda, em seu perfil Para obter mais informações sobre os Termos e Condições em que seus dados pessoais serão tratados, como terceiros com quem compartilhamos suas informações pessoais, você pode consultar o Aviso de privacidade abrangente em sua plataforma, seção "Política de privacidade".',brasil:'<em>Usuários residentes no Brasil. Aviso de Privacidade</em><br />A Integro Marketing Brasil Ltda., com endereço na Avenida Dr. Cardoso de Melo 900, 11º andar, São Paulo, Brasil, é responsável pelo banco de dados pessoais dos usuários que acessam o portal da Internet www.gointegro.com, de uso e proteção de suas informações pessoais. Trataremos suas informações pessoais de acordo com as disposições da Lei Nº 13.709, suas emendas e regulamentos complementares sobre proteção de dados em vigor no Brasil o tempo todo. Usaremos seus dados pessoais para fornecer os seguintes serviços por meio de nossa plataforma: verificar a identidade e registrar um novo usuário, entrar em contato com o usuário sobre o uso ou consumo dos serviços da plataforma, monitorar o uso, disponibilidade e segurança da Plataforma, coletar estatísticas de uso para os Administradores da Plataforma, melhore a experiência do usuário e desenvolva novos recursos e conteúdos. Manteremos suas informações pessoais pelo prazo de sua plataforma, ou até você decidir ser voluntariamente excluído dela. Você deve dar seu consentimento para o processamento de seus dados pessoais, a fim de permitir a prestação do serviço no momento do primeiro acesso. Esta decisão é voluntária, mas se você decidir não dar seu consentimento, o serviço não poderá ser fornecido. Você pode exercer seus direitos para confirmar a existência do processamento de seus dados pessoais, portabilidade, acesso, retificação, anonimização, bloqueio e / ou exclusão dos dados, com quem você compartilhou suas informações pessoais e revogar seu consentimento entrando em contato com o Administrador. da sua plataforma ou com o nosso Centro de suporte, na seção Ajuda, no seu perfil. Para obter mais informações sobre os Termos e Condições em que seus dados pessoais serão tratados, como terceiros com quem compartilhamos suas informações pessoais, você pode consultar o Aviso de privacidade abrangente em sua plataforma, seção "Política de privacidade".',chile:'<em>Usuários residentes no Chile. Aviso de Privacidade</em><br />A Integro Chile SA, com endereço no Badajoz 45 Piso 17, Las Condes, Santiago, Chile, é responsável pelo banco de dados pessoais dos usuários que acessam o site www.gointegro.com, pelo uso e proteção de sua informação pessoal. Trataremos suas informações pessoais de acordo com as disposições da Lei nº 19.628, suas emendas e regulamentos complementares sobre proteção de dados em vigor no Chile em todos os momentos. Usaremos seus dados pessoais para fornecer os seguintes serviços por meio de nossa plataforma: verificar a identidade e registrar um novo usuário, entrar em contato com o usuário sobre o uso ou consumo dos serviços da plataforma, monitorar o uso, disponibilidade e segurança de a Plataforma, coletar estatísticas de uso para os Administradores da Plataforma, melhore a experiência do usuário e desenvolva novos recursos e conteúdos. Manteremos suas informações pessoais pelo prazo de sua plataforma, ou até você decidir ser voluntariamente excluído dela. Você deve dar seu consentimento para o processamento de seus dados pessoais, a fim de permitir a prestação do serviço no momento do primeiro acesso. Esta decisão é voluntária, mas se você decidir não dar seu consentimento, o serviço não poderá ser fornecido. Você pode exercer seus direitos para confirmar a existência do processamento de seus dados pessoais, portabilidade, acesso, retificação, anonimização, bloqueio e / ou exclusão dos dados, com quem você compartilhou suas informações pessoais e revogar seu consentimento entrando em contato com o Administrador. da sua plataforma ou com o nosso Centro de suporte, na seção Ajuda, no seu perfil. Para obter mais informações sobre os Termos e Condições em que seus dados pessoais serão tratados, como terceiros com quem compartilhamos suas informações pessoais, você pode consultar o Aviso de privacidade abrangente em sua plataforma, seção "Política de privacidade".',colombia:"<em>Usuários residentes na Colômbia. Proteção de dados pessoais</em><br />Em cumprimento da Lei 1581 de 2012 e seu Decreto Regulamentar 1377 de 2013 e demais regulamentos aplicáveis ​​ao Regime de Tratamento de Dados Pessoais na Colômbia, informamos que todos os Dados Pessoais coletados e incorporados a este portal, serão tratados, armazenados, usados e processados, se correspondendo com a finalidade da Plataforma e de acordo com a Política de Processamento de Dados Pessoais da Contratante. A mesma oferece a todos os usuários a possibilidade de exercer seus direitos de consulta e reclamo sobre seus dados através de uma solicitação dirigida diretamente à empresa contratante, na qualidade de Responsável por esses dados pessoais. Assim, ao clicar, aceita e autoriza de forma prévia, expressa e informada o tratamento dos seus dados pessoais nesta Plataforma.",communication:"<em>Comunicações</em><br />O Usuário aceita receber mensagens de correio eletrônico e notificações ao celular enviados pela Plataforma que incluam atualizações da rede social privada da empresa e outros conteúdos referentes a utilização e aproveitamento das diferentes soluções e aplicativos ativos na plataforma da empresa, podendo optar por não receber os mesmos ou modificar a frequência de recepção dentro das preferências de seu perfil.",compiled:"<em>Informações Coletadas</em><br />A Plataforma coleta diferentes tipos de informação dos Usuários com a finalidade de proporcionar seus serviços.<br />Informação Pessoal. Os dados mínimos requeridos para a criação de um Usuário com seu Nome, Sobrenome e Correio Eletrônico. Em algumas circunstâncias, alguns dados pessoais adicionais podem ser requeridos, como um Número de Identificação pessoal ou de trabalho, País de Residência, Endereço de Trabalho ou Pessoal e/ou Número de Telefone, com o objetivo de fornecer os Serviços contratados. Todos esses Dados Pessoais são administrados e controlados pelos Administradores da Plataforma.<br />Informação de Trabalho. O perfil dos Usuários pode se complementar com informações de trabalho como Cargo, Supervisor ou Chefe, Departamento ou Área e outros dados relacionados com a atividade no trabalho. Esses dados podem ser completados pelo mesmo Usuário ou pelo Administrador da Plataforma.<br />Conteúdo e dados de uso. Os dados originados no uso da Plataforma, como as páginas e conteúdos ao que um Usuário acessa, as ações que realiza e o momento que acessa são usados pela GOintegro para fornecer estatísticas de uso aos Administradores da Plataforma.<br />Informação de dispositivos. Alguns detalhes dos dispositivos usados para o acesso à Plataforma, como marca, modelo, sistema operativo, localização e endereço IP podem ser recolhidos com o fim de proporcionar um correto serviço ao Usuário. No caso de requerer o acesso a localização do Usuário para algum serviço geolocalizado, será solicitada a autorização correspondente.",consent:"<em>Anuência</em><br/>Os usuários das Plataformas GOintegro, dão sua anuência ao aceitar os Termos e Condições da Plataforma, ante a coleta e armazenamento das informações pessoais, incluindo endereço de e-mail, em nossa base de dados e o uso da mesma informação em relatórios agregados não personalizados que permitam analisar os hábitos de navegação dos usuários.",cookies:"<em>Cookies e Armazenamento de Sessão</em><br />As cookies são pequenos arquivos de dados que um site envia para o seu navegador, hospedados no seu computador e que contêm determinadas informações do Usuário. As cookies de sessão são arquivos de dados temporários usados ​​para melhorar a experiência de navegação no site e são excluídos quando você fecha o navegador ou desliga o dispositivo. As cookies persistentes, por outro lado, são usadas ​​para preservar as informações que você forneceu anteriormente, como as preferências do site, e são armazenados no armazenamento do seu dispositivo até que sejam excluídos. Para seu correto funcionamento, a Plataforma pode usar cookies de sessão e outros elementos semelhantes que permitem identificar a atividade realizada pelos Usuários em sua sessão. Em nenhum caso, esses elementos são usados ​​para reunir e armazenar dados pessoais dos Usuários. Aqueles usuários que não desejam receber ou manter cookies em seu equipamento podem configurar seu navegador para esse fim. Para mais informações sobre como fazer isso, visite a seção Ajuda do seu navegador.<br />Por outro lado, a Plataforma poderia coletar e usar passivamente as seguintes informações durante sua sessão, a fim de garantir uma operação adequada, além de fornecer estatísticas de uso ao seu Administrador:<br />• Informações do navegador: nome e versão do navegador usado.<br />• Informações do dispositivo: nome e modelo do dispositivo, sistema operacional, endereço MAC (Media Access Control), resolução de tela e idioma.<br />• Informações de conexão: Tipo de link e endereço IP.",limits:"<em>Limites</em><br />Apesar da privacidade dos usuários ser uma prioridade, a GOintegro não pode reter a informação quando esta ação representa uma violação da Lei. A GOintegro reserva-se o direito de divulgar informações pessoais de usuários sob requisição direta de lei, processo ou ordem judicial.",mexico:'<em>Usuários residentes no México. Aviso de Privacidade</em><br />Quem somos? GOintegro México SA de SV, mais conhecido como GOintegro, com endereço na rua Calz. Gral. Mariano Escobedo 595, colonia Rincón del Bosque. Bosque de Chapultepec I Secc, Ciudad de México, CDMX, c.p. 11589, na entidade da Cidade do México, país México, e portal de internet www.gointegro.com, é responsável do uso e proteção dos seus dados pessoais, e ao respeito informamos o seguinte.<br />Para que fins utilizaremos seus dados pessoais? Os dados pessoais seus que forem recolhidos, serão utilizados para as seguintes finalidades que são necessárias para o serviço solicitado. Prover os serviços da Plataforma.<br />Onde posso consultar o aviso de privacidade integral? Para conhecer mais informação sobre os Termos e Condições em que serão tratados seus Dados pessoais, como os terceiros com quem compartilhamos sua informação pessoal e a forma em que poderá exercer seus direitos ARCO, consulte o Aviso de Privacidade Integral na sua Plataforma, seção "Política de Privacidade".',peru:"<em>Usuários residentes no Perú. Proteção de dados pessoais</em><br />Conforme o estabelecido na Lei 29733 - Lei de Proteção de Dados Pessoais, informamos que os dados pessoais que você nos proporciona, serão incorporados no banco de dados CLIENTES cujo titular é INTEGRO PERU S.A.C. e autoriza expressamente que tais dados poderão ser utilizados com a finalidade de que a empresa gerencie a Plataforma para receber comunicações. De acordo com a Lei 29733, o interessado poderá exercer seus direitos de acesso, atualização, inclusão, retificação, supressão e oposição, para o que deverá apresentar uma solicitação aos Administradores da Plataforma.",rules:"<em>Normas de aplicação exclusiva segundo territorialidade</em>",shared:"<em>Informações compartilhadas</em><br />A informação Coletada pela Plataforma é compartilhada com os Usuários Administradores da Plataforma, que têm o controle sobre ela. Também pode ser compartilhada com terceiros em determinadas ocasiões, por exemplo.<br />• Com outros aplicativos, web sites ou comércios, com o fim de proporcionar algum serviço ou bem requerido através da Plataforma.<br />• Com fornecedores de serviços que colaboram com a GOintegro na prestação de Serviços.<br />• Com fins legais, segundo o disposto mais adiante nesta Política.",text:"O controle e tratamento dos Dados Pessoais dos Usuários da Plataforma são de exclusiva responsabilidade dos Administradores da Plataforma, que delegam na GOintegro o processamento dos mesmos com o objetivo de fornecer os Serviços da Plataforma. A GOintegro compromete-se a proteger a privacidade e segurança de todos os usuários da Plataforma. A GOintegro não vende, aluga, troca nem oferece de nenhuma forma a informação pessoal dos Usuários nem da Empresa ou Organização a qual pertencem. A GOintegro utiliza a informação de Usuários provista pelos Administradores da Plataforma e complementada pelos mesmos Usuários para permitir, facilitar, otimizar a experiência dos Usuários no uso dos serviços da Plataforma.",title:"Políticas de Privacidade da Informação",ue:'<em>Usuários residentes na União Européia. Exercício de direitos em virtude do RGPD</em><br />Conforme o Regulamento Geral de Proteção de Dados, a GOintegro cumpre sua responsabilidade como "Processador de Dados" e permite a todo Usuário da Plataforma exercer seu direito a acessar aos seus Dados Pessoais, retificá-los, transferi-los e eliminá-los.<br />Para isso, o Usuário deve seguir as indicações assinaladas previamente nessa Política, entrando em contato se for necessário aos Administradores da Plataforma, que exercem a responsabilidade de "Controladores de Dados" no marco do Regulamento.<br />Os Usuários também possuem o direito de limitar determinados tratamentos de seus Dados, ou se opor e les:<br />• Direito a se opor ao tratamento de seus Dados para fins de Comunicações, por meio da configuração correspondente no seu Perfil ou através do link de subscrição de correios eletrônicos.<br />• Direito a se opor ao tratamento de seus Dados para fins de controle e seguimento de uso da Plataforma, através da solicitação de inativação ou eliminação da conta, solicitando aos Administradores da Plataforma em qualquer momento.',utilization:"<em>Utilização da Informação</em><br />A informação coletada pela Plataforma será usada pela GOintegro para proporcionar, manter e melhorar os Serviços oferecidos. Por exemplo:<br />• Verificar a identidade e registrar um novo Usuário.<br />• Entrar em contato com o usuário com respeito ao uso e consumo dos Serviços da Plataforma.<br />• Monitorar o uso, a disponibilidade e segurança da Plataforma.<br />• Coletar estatísticas de uso para os Administradores da Plataforma.<br />• Melhorar a experiência do usuário e desenvolver novos recursos e conteúdos."},terms:{accept:'<em>Aceitação dos Termos e Condições</em><br />O acesso e/ou uso desta Plataforma (doravante a "Plataforma") implica que, a partir deste momento seus Usuários aderem e aceitam em sua totalidade os Termos e Condições estabelecidos a continuação, e aceitando também as Condições Particulares, Políticas e Acordos que formam parte ou estejam referenciados neles, e aquelas que no futuro possam complementá-las, substituí-las e/ou modificá-las em relação com os serviços e conteúdos da Plataforma. Pelo simples fato de acessar ou fazer uso do site, os usuários aderem de forma automática e imediata a todos e cada um dos seguintes Termos e Condições. Por favor, leia com atenção estes Termos e Condições antes de acessar e/ou utilizar qualquer serviço da Plataforma sob sua inteira responsabilidade.',comunication:"<em>Comunicações</em><br />O Usuário aceita receber mensagens de E-mail e notificações ao celular enviados pela Plataforma que incluam atualizações da rede social privada da empresa e demais conteúdos referentes a utilização e aproveitamento das diferentes soluções e aplicativos ativos na plataforma da empresa, podendo optar por não receber os mesmos ou modificar a frequência de recepção dentro das preferências de seu perfil.",content:"<em>Conteúdo da Plataforma e Links Externos</em><br />GOintegro não se responsabiliza pelo mau uso que realize dos conteúdos da Plataforma, sendo de exclusiva responsabilidade do Usuário que acesse aos mesmos ou os utilize. GOintegro igualmente não assume responsabilidade pelas informações contidas nos websites de terceiros que possam ser acessados por links ou buscadores da Plataforma. Especificamente no que se refere a descontos, benefícios e/ou prêmios em pontos de vendas, GOintegro não é responsável pela outorga dos mesmos por parte dos comércios, uma vez que as condições se podem modificar na publicação dentro da Plataforma e GOintegro não possui ingerência sobre políticas comerciais de terceiros.",end:"<em>Fim do Serviço</em><br />GOintegro se reserva o direito de cancelar o acesso de qualquer Usuário em qualquer momento e sem necessidade de especificar os motivos deste cancelamento.",indemnity:"<em>Responsabilidades</em><br />GOintegro e todas suas empresas afiliadas, seus diretores, funcionários e empresas clientes de seus serviço não são responsáveis em nenhuma forma por reclamações, danos, perdas, obrigações ou custos derivados do uso da Plataforma por parte dos Usuários e/ou do não cumprimento por parte dos mesmos dos Termos e Condições expressados nesta seção.",privacy:"<em>Privacidade e Segurança de Dados Pessoais</em><br />O controle e tratamento dos Dados Pessoais dos Usuários da Plataforma são de exclusiva responsabilidade dos Administradores da Plataforma, que delegam na GOintegro o processamento dos mesmos com o objetivo de prover os Serviços da Plataforma. A GOintegro se compromete a proteger a privacidade e segurança de todos os Usuários da Plataforma, em conformidade com sua política de Privacidade. A GOintegro não vende, aluga, troca nem oferece de nenhuma forma a informação pessoal dos Usuários. A GOintegro usa a informação de usuários provista pelos Administradores da Plataforma e complementada pelos mesmos Usuários para permitir, facilitar, otimizar e potencializar a experiência dos Usuários no uso dos serviços da Plataforma.",property:"<em>Propriedade intelectual</em><br />A estrutura e o conteúdo da Plataforma, incluindo, sem restrição, qualquer de seus elementos (textos, softwares, scripts, imagens, gráficos, fotos, sons, música, vídeos, funcionalidades interativas e similares e as marcas, nomes comerciais e/ou logos, assim como quaisquer outros elementos protegidos), são de propriedade de GOintegro ou foram licenciados e/ou cedidos a mesma e estão protegidos por direitos exclusivos de propriedade intelectual ou industrial que ficam reservados exclusivamente em favor de seus respectivos titulares. Fica expressamente proibida qualquer reprodução, distribuição, transformação, comunicação pública e/ou disponibilização total ou parcial dos referidos conteúdos ou elementos, independente dos meios empregados sem autorização, prévia, expressa e por escrito de GOintegro o, no caso, do titular dos direitos correspondentes, caso contrário o Usuário infrator assumirá todas as responsabilidades diretas ou indiretas que possam se derivar deste ato. O Usuário dispõe única e exclusivamente do direito de uso privado corporativo, não exclusivo, intransferível e revogável a qualquer momento destinado exclusivamente à finalidade de utilização da Plataforma e de suas prestações de serviços de acordo com os presentes Termos e Condições. Do mesmo modo, o acesso ou uso da Plataforma e/ou de seus conteúdos e /ou serviços não conferem ao Usuário direito sobre as marcas, logotipos e/ou signos distintivos incluídos na Plataforma e que são protegidos por lei. Ainda assim, as referências a nomes e marcas comerciais ou registradas, logotipos ou signos distintivos, sejam de titularidade de GOintegro ou de empresas terceiras, têm implícitas a proibição de seu uso sem a autorização prévia, expressa e escrita de GOintegro e de seus legítimos proprietários.",text:"Este documento descreve os Termos e Condições que são aceitos pelos usuários antes de começar a utilizar a plataforma.",title:"Termos e Condições"}}},text:"Powered by {value}"},header:{go_to_home:"Ir para o topo",menu:{apps:{empty:"Aqui você encontrará os aplicativos integrados à sua plataforma.",more:"Descubra mais produtos",see:"Estenda as apps",text:"Aplicações",title:"Vá para ver mais produtos"},awards:{text:"Prêmios"},benefits:{text:"GObenefits",title:"Vá para a aplicação de benefícios"},challenge:{text:"SportsPlay",title:"Vá para o aplicativo do SportsPlay"},commons:{title:{apps:"Apps",products:"Produtos"}},communication:{text:"Communications",title:"Ir para aplicação communications"},configuration:{text:"Admin Panel",title:"Vá para configurações"},discounts:{text:"Discounts",title:"Vá para discounts"},engagement:{text:"Engagement",title:"Vá para o aplicativo engagement"},flex:{text:"GOflex",title:"Vá para o aplicativo flex"},help:{text:"Ajuda",title:"Vá para ajudar"},home:"Início",incentives:{text:"GOincentives",title:"Vá para o aplicativo de incentivos"},menu:{text:"Menu",title:"Abre el menu"},messages:{text:"Mensagens",title:"Vá para o aplicativo de mensagens"},recognition:{text:"Recognition",title:"Vá para o aplicativo de recognition"},recognitions:{text:"GOrecognition",title:"Vá para o reconhecimento do aplicativo"},rewards:{text:"GOrewards",title:"Vá para os prêmios do aplicativo"},score:{text:"GOscore",title:"Ir para aplicação score"},user:{logout:{text:"Fechar Sessão",title:"Sair"},settings:{text:"Minha conta",title:"Vá configurar minha conta"},status:{away:"Ausente",disturb:"No molestar",offline:"Offline",online:"Online",title:"Mudar para este estado"},title:"Exibe o menu do usuário"},visma:{text:"TuRecibo",title:"Vá para a aplicação de TuRecibo"},wellbeing:{text:"Well-being",title:"Vá para a aplicação de well-being"}},modal:{application:{text:"Aplicativos e atalhos disponíveis para {value}.",title:"Apps & Atalhos"},shortcuts:{title:"Atalhos"}}},information:{actions:{save:{title:"Salve o formulário"}},commons:{input:{day:"Dia",empty:"Nenhum resultado encontrado",suggest:"Procure por...",year:"Ano"}},error:{input:{address:"O endereço está incorreto.",date_of_admission:{format:"O campo deve ter um formato de data válido.",incorrect:"A data está incorreta."},last_name:{characters:"O apelido deve ter pelo menos dois caracteres.",incorrect:"O apelido está incorreto."},name:{characters:"O nome deve ter pelo menos dois caracteres.",incorrect:"O nome está incorreto."},social:"O URL está incorreto.",suggest:"Você não pode selecionar este supervisor."},select:{country:"Você não selecionou um país.",gender:"O gênero está errado.",group:"O grupo selecionado está incorreto.",job:"O título está incorreto.",job_type:"O tipo de emprego está incorreto.",phone:{characters:"O campo não pode ter mais de 15 caracteres ou menos de 5.",ext:"A extensão não pode ter mais de 9 caracteres.",format:"O campo deve ter um formato de telefone internacional válido.",incorrect:"O número inserido está incorreto."},rol:"A função de acesso está incorreta.",state:"O estado civil está incorreto.",tier:"A categoria está incorreta."}},jgrowl:{commons:{text:{success:"Atualizado com sucesso."}}},personal:{address:"Endereço pessoal",address_value:"Endereço pessoal {value}",birthdate:{text:"Somente o administrador pode ver o seu ano de nascimento.",title:"Data de nascimento"},description:"Complete os dados a seguir, que somente serão visualizados pelo administrador. Apenas o dia e mês do seu aniversário será compartilhado com todos.",email:"E-mail pessoal",gender:{female:"Feminino",male:"Masculino",other:"Outro",text:"Selecione",title:"Gênero"},last_name:"Sobrenome",name:"Nome",phone:"Telefone",phone_mobile:"Celular",state:{divorced:"Divorciado",married:"Casado",single:"Solteiro",text:"Selecione",title:"Estado civil",widowed:"Viúvo"},title:"Dados de identificação"},social:{description:"Adicione suas redes sociais para compartilhar com seus colegas.",facebook:"Facebook",linkedin:"Linkedin",title:"Redes sociais",twitter:"Twitter"},working:{address:"Endereço de trabalho",address_value:"Endereço de trabalhos {value}",country:{no_options:"Não há países para atribuir.",text:"Selecione país",title:"País"},date_of_admission:"Data de admissão",description:"Preencha os dados a seguir para se apresentar aos seus colegas. Esses dados são públicos, exceto o Identificador e o Tipo de emprego.",ext:"Ext.",job:{text:"Selecione um cargo",title:"Cargo"},job_section:"Cargo",job_type:{no_options:"Não há cobranças para atribuir.",text:"Selecione o tipo de emprego",title:"Tipo de emprego",type:"Part-time",type_three:"Teleworking",type_two:"Full-time"},phone:"Telefone",phone_mobile:"Celular",subtitle:"Cargo",supervisor:"Reporta para",tier:{no_options:"No existen niveles jerárquicos para asignar.",text:"Selecione um nivel hierarquico",title:"Nível hierárquico"},title:"Informações da conta"}},jgrowl:{commons:{text:{update:"Uma nova versão está disponível."}},error:{text:"Um erro ocorreu. Por favor, tente novamente."}},locales:"pt-BR",preferences:{actions:{save:{title:"Salvar alterações de formulário"}},alert:{timezone:{chosen:"<strong>Aviso:</strong> o fuso horário escolhido não corresponde ao fuso horário padrão do país selecionado ({value}).",selected:"<strong>Aviso:</strong> o fuso horário selecionado não corresponde ao detectado automaticamente com base no seu dispositivo ({value})."}},error:{language:"Linguagem errada.",password:"A senha não pôde ser salva.",save:"A preferência do usuário não pôde ser salva.",timezone:"Fuso horário incorreto."},jgrowl:{commons:{text:{error:"Ocorreu um erro. Tente mais tarde.",password:"A senha foi salvada corretamente.",success:"A preferência do usuário foi salva com sucesso."}}},language:{language:{change:"Mude o idioma",english:"English",portuguese:"Português",spanish:"Español",text:"Selecione o idioma",title:"Idioma"},timezone:{change:"Mude a zona",current:"Configurar automaticamente o fuso horário usando a localização atual",text:"Selecione seu fuso horário",title:"Fuso horário"},title:"Idioma & Fuso horário"},password:{title:"Mudar senha"}},sidebar:{code:"Código QR",language:"Idioma & Fuso horário",modal:{actions:{camera:{accept:{text:"Aceitar",title:"Aceite a foto"},cancel:{text:"Nova foto",title:"Tire uma nova foto"},capture:{text:"Captura",title:"Capture a foto"}},cancel:{title:"Feche o modal"},save:{title:"Salve a imagem"}},commons:{camera:{title:"Tirar uma foto"},cut:{title:"Imagem do perfil"}}},password:"Mudar senha",personal:"Dados de identificação",photo:{camera:{text:"Tirar uma foto",title:"Abra as opções para tirar uma foto"},options:{delete:{text:"Excluir foto",title:"Excluir a foto selecionada"},file:{text:"Selecione o arquivo",title:"Permite que você selecione um arquivo"},picture:{text:"Tirar foto",title:"Permite tirar uma foto com a câmera"}}},working:"Informações da conta"},sign_up:{actions:{access:{text:"Obtenha seu acesso aqui",title:"Obtenha seu acesso aqui"},back:{text:"Voltar",title:"Voltar à página anterior"},continue:{text:"Continuar",title:"Permite continuar o registro"},first_entry:{text:"<span>Primeira vez?</span> Obtenha seu acesso aqui",title:"Vá para a tela de registro"},first_entry_login:{text:"<span>Já se cadastrou?</span> Faça login",title:"Ir para faça login"},help_center:{text:"Help Center",title:"Vá para o centro de ajuda"},login:{text:"Iniciar sessão",title:"Volte para a inscrição"},privacy:{text:"e <span>Política de Privacidade</span>",title:"Abra o modal com a política de privacidade"},recover:{text:"Recuperar",title:"Recuperar senha"},registry:{text:"Cadastrar-se",title:"Insira o aplicativo"},restore:{text:"Esqueceu sua senha?",title:"Redefinir a senha"},terms:{text:"Concordo com o <span>Termo de Serviço</span>",title:"Abra o modal com os termos e condições"}},commons:{administrator:{text:"Não foi possível realizar o cadastro com os dados inseridos.<br />Se você acha que é um erro, entre em contato com o administrador da plataforma.",title:"Entre em contato com seu administrador"},check:{email:"Enviamos um E-mail para: <span>{value}</span>",registry:"Verifique sua caixa postal para continuar o registro.",text:"Nós enviamos um E-mail com um link para redefinir sua senha.",title:"Verifique seu E-mail"},confirm:{text:"Podemos enviar um código de login para: {value}",title:"Enviaremos um código para o seu número de celular"},congratulations:{admin:"Enviamos um E-mail para <span>o endereço fornecido pelo administrador da plataforma</span> que difere do que foi inserido.",email:"Enviamos um E-mail para <span>{value}</span> para validar o endereço.",title:"Parabéns!",validation:"Seu novo E-mail foi validado corretamente.<br />Pressione o botão para entrar na sua plataforma."},create:{text:"Insira uma senha para completar o registro e acessar a plataforma de sua empresa.",title:"Crie uma senha"},error:{block:{title:"Sua conta foi bloqueada"},both:"Correo electrónico o contraseña incorrectos",change:"Ocorreu um erro ao tentar alterar a sua senha.<br />Por favor, tente novamente.",code:"Código incorreto",create:"Ocorreu um erro ao tentar criar sua conta.<br />Tente novamente.",expired:"Código expirado",invalid:"Código incorreto",password:"Não é possível fazer o login.<br />Se você acha que é um erro, entre em contato com o administrador da plataforma.",registry:"Ocorreu um erro ao tentar se registrar.<br />Tente novamente.",session:"Não é possível fazer o login.<br />Verifique a configuração ou entre em contato com a Central de Ajuda.",sms:{block:"Sua conta foi bloqueada. Tente novamente em {value} horas.",code:"O número digitado não corresponde ao seu código. Por favor, tente novamente.",credential:"Credenciais inválidas",format:"Insira um número de celular ou endereço de e-mail válido.",invalid:"E-mail ou número de telefone incorreto.",limit:"Você atingiu o limite de códigos por dia. Tente novamente em {value} horas.",number:"O número digitado não corresponde ao seu código. Por favor, tente novamente.",phone:"Login por telefone indisponível.",wait:"{value, plural,\n =0 {Aguarde # minutos para solicitar outro código.}\n =1 {Aguarde # minuto para solicitar outro código.}\n other {Aguarde # minutos para solicitar outro código.}\n}\n"},title:"Ocorreu um erro"},expired:{title:"Sua senha expirou"},factor:{resend:{text:"<span>Não recebeu um código de verificação?</span> Reenviar código",title:"Reenvie o código para o e-mail"},text:"Uma mensagem com um código de verificação foi enviada para o seu e-mail cadastrado. Digite o código para continuar.",title:"Autenticação de dois fatores"},first_entry:{title:"Primeira vez?"},go_to:{text:"Digite o E-mail registrado e nós lhe enviaremos um link para redefinir sua senha:"},input:{confirm:{text:"Confirmação de senha"},last_name:{text:"Sobrenome",title:"Digite seu sobrenome"},name:{text:"Nome",title:"Digite seu nome"},password:{text:"Senha"},sms:{text:"Email ou telefone"},subdomain:{text:"Subdomínio"}},login:{title:"Iniciar sessão"},recover:{sms:{text:"Digite o endereço de e-mail ou número de telefone com o qual você se registrou."},title:"Recuperar senha"},registry:{eight:{text:"Você está a um passo de entrar, porém necessitamos mais dados para sua conta.",title:"Complete seus dados"},five:{text:"Digite seu {value} para finalizar.",title:"Estamos quase terminando!"},four:{text:"Insira uma senha para completar o registro. A mesma deve conter no mínimo 8 caracteres com pelo menos 1 maiúscula, 1 minúscula, 1 número e 1 caractere especial !@#$%*"},one:{text:"Complete as seguintes informações e entre na plataforma de sua empresa.",title:"Registre-se"},seven:{text:"Insira seu documento de identidade."},six:{text:"Insira seu nome e sobrenome.",title:"Insira seus dados"},three:{text:"Insira uma senha para completar o registro. A mesma deve conter pelo menos 8 caracteres."},two:{text:"Digite seu E-mail para validar seu usuário e acessar a plataforma de sua empresa."}},secure:{one:{title:"Sua senha não é segura"},two:{text:"A senha foi restabelecida corretamente. Pressione o botão para entrar na sua plataforma.",title:"Senha alterada"}},security:{send:"Nós mandamos seu código para: {value}",text:"Por favor, verifique o seu telefone para uma mensagem de texto com o seu código. Seu código tem 6 caracteres.",title:"Digite o código de segurança"},sign_out:{text:"Sessão fechada corretamente.",title:"Sessão terminada"},validate:{text:"Confirme seu E-mail e insira sua ID de funcionário para validar sua identidade.",title:"Valide sua identidade"},verification:{text:"Informe-nos que este número de celular pertence a você. Digite o código no SMS enviado para {value} ({country}).",title:"Insira o código de confirmação do SMS"}},error:{api:"Erro de API.",last_name:"Você deve colocar um sobrenome.",name:"Você deve inserir um nome.",password:"Você deve digitar uma senha.",subdomain:"Você deve colocar um subdomínio.",terms:"Você deve aceitar os termos e condições.",validate:"A ID e o E-mail inseridos não correspondem.<br />Entre para"},jgrowl:{success:"O código de verificação foi enviado",time:"{value, plural,\n =0 {Aguarde # minutos para solicitar outro código}\n =1 {Aguarde # minuto para solicitar outro código}\n other {Aguarde # minutos para solicitar outro código}\n}\n"}}}}]]})),define("ember-load-initializers/index",["exports","require"],(function(e,t){"use strict"
function r(e){var r=(0,t.default)(e,null,null,!0)
if(!r)throw new Error(e+" must export an initializer.")
var i=r.default
if(!i)throw new Error(e+" must have a default export")
return i.name||(i.name=e.slice(e.lastIndexOf("/")+1)),i}function i(e,t){return-1!==e.indexOf(t,e.length-t.length)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){for(var n=t+"/initializers/",s=t+"/instance-initializers/",a=[],o=[],l=Object.keys(requirejs._eak_seen),c=0;c<l.length;c++){var u=l[c]
0===u.lastIndexOf(n,0)?i(u,"-test")||a.push(u):0===u.lastIndexOf(s,0)&&(i(u,"-test")||o.push(u))}(function(e,t){for(var i=0;i<t.length;i++)e.initializer(r(t[i]))})(e,a),function(e,t){for(var i=0;i<t.length;i++)e.instanceInitializer(r(t[i]))}(e,o)}}))
define("ember-master-tab/consts",["exports","ember-uuid"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.tabIdKey=e.tabId=e.shouldInvalidateMasterTabKey=e.namespace=void 0
const r=e.namespace="ember-master-tab:"
e.tabIdKey=`${r}tab-id`,e.shouldInvalidateMasterTabKey=`${r}should-invalidate-master-tab`,e.tabId=(0,t.v4)()})),define("ember-master-tab/initializers/master-tab",["exports","ember-master-tab/services/master-tab-factory"],(function(e,t){"use strict"
function r(e){if(!e.testing){const r=t.default.create()
e.unregister("service:master-tab-factory"),e.register("service:master-tab",r,{instantiate:!1}),e.deferReadiness(),r.setup().then((()=>{r.initialized=!0,e.advanceReadiness()}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=r
e.default={name:"master-tab",initialize:r}})),define("ember-master-tab/services/master-tab-factory",["exports","@ember/polyfills","@ember/array","rsvp","@ember/runloop","@ember/object/evented","@ember/service","ember-master-tab/utils","ember-master-tab/consts"],(function(_exports,_polyfills,_array,_rsvp,_runloop,_evented,_service,_utils,_consts){"use strict"
function isMasterTab(){return localStorage[_consts.tabIdKey]===_consts.tabId}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0
var _default=_exports.default=_service.default.extend(_evented.default,{lockNames:(0,_array.A)(),resolve:null,contestTimeout:null,setup(){const storageHandler=e=>{switch(e.key){case _consts.tabIdKey:{const t=e.newValue
null===t?((0,_utils.debug)("Master tab currently being contested."),localStorage[_consts.shouldInvalidateMasterTabKey]=!1,this.registerAsMasterTab()):this.get("isMasterTab")&&null!==e.oldValue&&_consts.tabId!==t&&((0,_utils.debug)("Lost master tab status. Probably race condition related."),(0,_runloop.run)((()=>{this.set("isMasterTab",!1),this.trigger("isMasterTab",!1)})))
break}case _consts.shouldInvalidateMasterTabKey:{const shouldInvalidateMasterTab=eval(e.newValue),_isMasterTab=isMasterTab()
shouldInvalidateMasterTab&&_isMasterTab?(localStorage[_consts.shouldInvalidateMasterTabKey]=!1,(0,_utils.debug)("Invalidation of master tab avoided.")):shouldInvalidateMasterTab||_isMasterTab||null!==this.contestTimeout&&(clearTimeout(this.contestTimeout),this.contestTimeout=null,null!==this.resolve&&(this.resolve(),this.resolve=null),(0,_utils.debug)("Invalidation of master tab aborted."))
break}}}
return window.addEventListener("storage",storageHandler),window.addEventListener("beforeunload",(()=>{window.removeEventListener("storage",storageHandler),this.lockNames.forEach((e=>{delete localStorage[e],(0,_utils.debug)(`Deleted lock [${e}].`)})),isMasterTab()&&(delete localStorage[_consts.tabIdKey],(0,_utils.debug)("Unregistered as master tab. "))})),this.contestMasterTab()},isMasterTab:!1,registerAsMasterTab(){let e=!1
return isMasterTab()?e=!0:(void 0===localStorage[_consts.tabIdKey]&&(localStorage[_consts.tabIdKey]=_consts.tabId,localStorage[_consts.shouldInvalidateMasterTabKey]=!1,e=!0),(0,_utils.debug)(`Trying to register as master tab... ${e?"SUCCESS":"FAILED"}.`)),(0,_runloop.run)((()=>{this.set("isMasterTab",e),this.trigger("isMasterTab",e)})),e},contestMasterTab(){return new _rsvp.Promise((resolve=>{this.registerAsMasterTab()?resolve():((0,_utils.debug)("Trying to invalidate master tab."),this.resolve=resolve,this.contestTimeout=setTimeout((()=>{const shouldInvalidateMasterTab=eval(localStorage[_consts.shouldInvalidateMasterTabKey])
shouldInvalidateMasterTab&&(localStorage[_consts.shouldInvalidateMasterTabKey]=!1,delete localStorage[_consts.tabIdKey],this.registerAsMasterTab()),resolve()}),500),localStorage[_consts.shouldInvalidateMasterTabKey]=!0)}))},run(e,t={}){if("object"!=typeof t)throw"Options must be an object."
const r=(0,_polyfills.assign)({force:!1},t),i=isMasterTab()
return(i||r.force)&&e(),{else(e){i||r.force||e()}}},lock(e,t,r={}){if("object"!=typeof r)throw"Options must be an object."
const i=(0,_polyfills.assign)({force:!1,waitNext:!0,waitNextDelay:1e3},r),n=`${_consts.namespace}lock:${e}`,s=`${n}:result`,a=`${n}:result-type`,o=void 0!==localStorage[n],l=isMasterTab()
if((l||i.force)&&!o){localStorage[n]=!0,delete localStorage[s],delete localStorage[a],-1===this.lockNames.indexOf(n)&&this.lockNames.push(n)
const e=t()
if(!e||!e.then)throw"The function argument must return a thennable object."
const r=(e,t)=>{localStorage[a]=e,localStorage[s]=t,delete localStorage[n]
const r=this.lockNames.indexOf(n)
r>-1&&this.lockNames.splice(r,1)}
e.then((e=>r("success",e)),(e=>r("failure",e)))}return{wait(e,t=null){if(!l&&!i.force||o){const r=r=>{const i="success"===localStorage[a]?e:t,n=localStorage[s]
null!==i&&i(n,r)}
if(o||i.waitNext){const e=t=>{t.key===n&&null===t.newValue&&(window.removeEventListener("storage",e),r(!0))}
window.addEventListener("storage",e),i.waitNext&&setTimeout((()=>{window.removeEventListener("storage",e),r(!0)}),i.waitNextDelay)}else r(!1)}}}}})})),define("ember-master-tab/utils",["exports","ember-master-tab/consts"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.debug=function(){console.debug?console.debug(t.namespace,...arguments):console.log(t.namespace,...arguments)}})),define("ember-modifier/-private/class/modifier-manager",["exports","@ember/modifier","@ember/destroyable","ember-modifier/-private/class/modifier","ember-modifier/-private/compat"],(function(e,t,r,i,n){"use strict"
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){e.willRemove(),e.willDestroy()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){s(this,"capabilities",(0,t.capabilities)("3.22")),this.owner=e}createModifier(e,t){const s=new((0,n.isFactory)(e)?e.class:e)(this.owner,t)
return(0,r.registerDestructor)(s,a),{instance:s,implementsModify:(0,i._implementsModify)(s),element:null}}installModifier(e,t,r){const s=function(e,t){const r=e
return r.element=t,r}(e,t),{instance:a}=s;(function(e,t){e[i.Element]=t})(a,t),s.implementsModify?a.modify(t,r.positional,r.named):((0,n.consumeArgs)(r),a.didReceiveArguments(),a.didInstall())}updateModifier(e,t){const{instance:r}=e;(function(e,t){e[i.Args]=t})(e.instance,t),e.implementsModify?r.modify(e.element,t.positional,t.named):((0,n.consumeArgs)(t),r.didUpdateArguments(),r.didReceiveArguments())}destroyModifier(e){(0,r.destroy)(e.instance)}}})),define("ember-modifier/-private/class/modifier",["exports","@ember/application","@ember/modifier","ember-modifier/-private/class/modifier-manager","@ember/destroyable","@ember/debug"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e._implementsModify=e._implementsLegacyHooks=e.Element=e.Args=void 0
const a=e=>e.modify!==u.prototype.modify
e._implementsModify=a
const o=e=>e.didInstall!==u.prototype.didInstall||e.didUpdateArguments!==u.prototype.didUpdateArguments||e.didReceiveArguments!==u.prototype.didReceiveArguments
e._implementsLegacyHooks=o
const l=e.Element=Symbol("Element"),c=e.Args=Symbol("Args")
class u{constructor(e,r){(0,t.setOwner)(this,e),this[c]=r}modify(e,t,r){}didReceiveArguments(){}didUpdateArguments(){}didInstall(){}willRemove(){}willDestroy(){}get isDestroying(){return(0,n.isDestroying)(this)}get isDestroyed(){return(0,n.isDestroyed)(this)}}e.default=u,Object.defineProperty(u.prototype,"args",{enumerable:!0,get(){return this[c]}}),Object.defineProperty(u.prototype,"element",{enumerable:!0,get(){return this[l]??null}}),(0,r.setModifierManager)((e=>new i.default(e)),u)})),define("ember-modifier/-private/compat",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.consumeArgs=void 0,e.isFactory=function(e){return!1}
let t=e.consumeArgs=()=>{}
e.consumeArgs=t=function({positional:e,named:t}){const r=e
for(let i=0;i<r.length;i++)r[i]
Object.values(t)}})),define("ember-modifier/-private/function-based/modifier-manager",["exports","@ember/modifier","ember-modifier/-private/compat"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){i(this,"capabilities",(0,t.capabilities)("3.22")),i(this,"options",void 0),this.options={eager:e?.eager??!0}}createModifier(e){return{element:null,instance:(0,r.isFactory)(e)?e.class:e}}installModifier(e,t,i){const n=function(e,t){const r=e
return r.element=t,r}(e,t),{positional:s,named:a}=i,o=e.instance(t,s,a)
"function"==typeof o&&(n.teardown=o),this.options.eager&&(0,r.consumeArgs)(i)}updateModifier(e,t){e.teardown&&e.teardown()
const i=e.instance(e.element,t.positional,t.named)
"function"==typeof i&&(e.teardown=i),this.options.eager&&(0,r.consumeArgs)(t)}destroyModifier(e){"function"==typeof e.teardown&&e.teardown()}}})),define("ember-modifier/-private/function-based/modifier",["exports","@ember/debug","@ember/modifier","ember-modifier/-private/class/modifier","ember-modifier/-private/function-based/modifier-manager"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t={eager:!0}){return(0,r.setModifierManager)((()=>t.eager?s:a),e)}
const s=new n.default({eager:!0}),a=new n.default({eager:!1})})),define("ember-modifier/-private/interfaces",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("ember-modifier/-private/opaque",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("ember-modifier/-private/signature",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("ember-modifier/index",["exports","ember-modifier/-private/class/modifier","ember-modifier/-private/function-based/modifier"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"modifier",{enumerable:!0,get:function(){return r.default}})})),define("ember-page-title/helpers/page-title",["exports","@ember/service","@ember/component/helper","@ember/object/internals"],(function(e,t,r,i){"use strict"
var n,s,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.inject)("page-title-list"),s=class extends r.default{get tokenId(){return(0,i.guidFor)(this)}constructor(){var e,t,r,i
super(...arguments),e=this,t="tokens",i=this,(r=a)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0}),this.tokens.push({id:this.tokenId})}compute(e,t){let r={...t,id:this.tokenId,title:e.join("")}
return this.tokens.push(r),this.tokens.scheduleTitleUpdate(),""}willDestroy(){super.willDestroy(),this.tokens.remove(this.tokenId),this.tokens.scheduleTitleUpdate()}},o=s.prototype,l="tokens",c=[n],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),a=void 0===h.initializer?(Object.defineProperty(o,l,h),null):h,s)
var o,l,c,u,d,h})),define("ember-page-title/services/page-title-list",["exports","@ember/application","@ember/runloop","@ember/service","@ember/utils","@ember/debug"],(function(e,t,r,i,n,s){"use strict"
var a,o,l,c,u,d,h
function p(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let g="undefined"!=typeof FastBoot
const b="routeDidChange"
e.default=(a=(0,i.inject)("page-title"),o=(0,i.inject)("router"),l=(0,i.inject)("-document"),c=class extends i.default{constructor(){super(...arguments),p(this,"pageTitle",u,this),p(this,"router",d,this),p(this,"document",h,this),f(this,"tokens",[]),f(this,"_defaultConfig",{separator:" | ",prepend:!0,replace:null}),f(this,"scheduleTitleUpdate",(()=>{(0,r.scheduleOnce)("afterRender",this,this._updateTitle)})),this._validateExistingTitleElement()
let e=(0,t.getOwner)(this).resolveRegistration("config:environment")
e.pageTitle&&["separator","prepend","replace"].forEach((t=>{(0,n.isEmpty)(e.pageTitle[t])||(this._defaultConfig[t]=e.pageTitle[t])})),this.router.on(b,this.scheduleTitleUpdate)}applyTokenDefaults(e){let t=this._defaultConfig.separator,r=this._defaultConfig.prepend,i=this._defaultConfig.replace
null==e.separator&&(e.separator=t),null==e.prepend&&null!=r&&(e.prepend=r),null==e.replace&&null!=i&&(e.replace=i)}inheritFromPrevious(e){let t=e.previous
t&&(null==e.separator&&(e.separator=t.separator),null==e.prepend&&(e.prepend=t.prepend))}push(e){let t=this._findTokenById(e.id)
if(t){let r=this.tokens.indexOf(t),i=[...this.tokens],n=t.previous
return e.previous=n,e.next=t.next,this.inheritFromPrevious(e),this.applyTokenDefaults(e),i.splice(r,1,e),void(this.tokens=i)}let r=this.tokens.slice(-1)[0]
r&&(e.previous=r,r.next=e,this.inheritFromPrevious(e)),this.applyTokenDefaults(e),this.tokens=[...this.tokens,e]}remove(e){let t=this._findTokenById(e),{next:r,previous:i}=t
r&&(r.previous=i),i&&(i.next=r),t.previous=t.next=null
let n=[...this.tokens]
n.splice(n.indexOf(t),1),this.tokens=n}get visibleTokens(){let e=this.tokens,t=e?e.length:0,r=[]
for(;t--;){let i=e[t]
if(i.replace){r.unshift(i)
break}r.unshift(i)}return r}get sortedTokens(){let e=this.visibleTokens,t=!0,r=[],i=[r],n=[]
return e.forEach((e=>{if(e.front)n.unshift(e)
else if(e.prepend){t&&(t=!1,r=[],i.push(r))
let n=r[0]
n&&((e={...e}).separator=n.separator),r.unshift(e)}else t||(t=!0,r=[],i.push(r)),r.push(e)})),n.concat(i.reduce(((e,t)=>e.concat(t)),[]))}toString(){let e=this.sortedTokens,t=[]
for(let r=0,i=e.length;r<i;r++){let n=e[r]
n.title&&(t.push(n.title),r+1<i&&t.push(n.separator))}return t.join("")}willDestroy(){super.willDestroy(),this.router.off(b,this.scheduleTitleUpdate)}_updateTitle(){const e=this.toString()
g?this.updateFastbootTitle(e):this.document.title=e,this.pageTitle.titleDidUpdate(e)}_validateExistingTitleElement(){}_findTokenById(e){return this.tokens.filter((t=>t.id===e))[0]}updateFastbootTitle(e){if(!g)return
const t=this.document.head,r=t.childNodes
for(let s=0;s<r.length;s++){let e=r[s]
"title"===e.nodeName.toLowerCase()&&t.removeChild(e)}let i=this.document.createElement("title"),n=this.document.createTextNode(e)
i.appendChild(n),t.appendChild(i)}},u=m(c.prototype,"pageTitle",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(c.prototype,"router",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=m(c.prototype,"document",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c)})),define("ember-page-title/services/page-title",["exports","@ember/service"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{titleDidUpdate(){}}e.default=r})),define("ember-query-selector-helper/helpers/query-selector",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e],{optional:t=!1}){const r=document.querySelector(e)
return r}))})),define("ember-ref-bucket/helpers/ref-to",["exports","@ember/component/helper","ember-ref-bucket/utils/ref","@ember/destroyable","@ember/application"],(function(e,t,r,i,n){"use strict"
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends t.default{constructor(...e){super(...e),s(this,"_watcher",null)}compute([e],{bucket:t,tracked:s}){const a=t||(0,n.getOwner)(this)
return this._name!==e&&(this._watcher&&(0,i.unregisterDestructor)(this,this._watcher),this._watcher=(0,r.watchFor)(e,a,(()=>{this.recompute()})),(0,i.registerDestructor)(this,this._watcher),this._name=e),s?(0,r.bucketFor)(a).getTracked(e):(0,r.bucketFor)(a).get(e)}}e.default=a})),define("ember-ref-bucket/index",["exports","ember-ref-bucket/utils/ref","@ember/application","ember-ref-bucket/utils/prototype-reference"],(function(e,t,r,i){"use strict"
function n(e,t,r,i){return null==e?null:"function"==typeof r?(t.has(e)||t.set(e,r.call(i,e)),t.get(e)):e}Object.defineProperty(e,"__esModule",{value:!0}),e.globalRef=function(e,s){return function(a,o){const l=new WeakMap
return"function"==typeof s&&(0,i.addPrototypeReference)(a,o,e),{get(){return n((0,t.bucketFor)((0,r.getOwner)(this)||(0,t.resolveGlobalRef)()).get(e),l,s,this)},configurable:!0}}},e.nodeFor=function(e,r){return(0,t.bucketFor)(e).get(r)},e.ref=function(e,r){return function(s,a){const o=new WeakMap
return"function"==typeof r&&(0,i.addPrototypeReference)(s,a,e),{get(){return n((0,t.bucketFor)(this).get(e),o,r,this)},configurable:!0}}},Object.defineProperty(e,"registerNodeDestructor",{enumerable:!0,get:function(){return t.registerNodeDestructor}}),Object.defineProperty(e,"resolveGlobalRef",{enumerable:!0,get:function(){return t.resolveGlobalRef}}),e.trackedGlobalRef=function(e,s){return function(a,o){const l=new WeakMap
return"function"==typeof s&&(0,i.addPrototypeReference)(a,o,e),{get(){return n((0,t.bucketFor)((0,r.getOwner)(this)||(0,t.resolveGlobalRef)()).getTracked(e),l,s,this)},configurable:!0}}},e.trackedRef=function(e,r){return function(s,a){const o=new WeakMap
return"function"==typeof r&&(0,i.addPrototypeReference)(s,a,e),{get(){return n((0,t.bucketFor)(this).getTracked(e),o,r,this)},configurable:!0}}},Object.defineProperty(e,"unregisterNodeDestructor",{enumerable:!0,get:function(){return t.unregisterNodeDestructor}})})),define("ember-ref-bucket/instance-initializers/global-ref-cleanup",["exports","@ember/destroyable","ember-ref-bucket/utils/ref"],(function(e,t,r){"use strict"
function i(e){(0,t.registerDestructor)(e,(()=>{(0,r.cleanGlobalRef)()}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=i
e.default={initialize:i}})),define("ember-ref-bucket/modifiers/create-ref",["exports","ember-modifier","@ember/application","@ember/object","@ember/debug","ember-ref-bucket/utils/ref","ember-ref-bucket/utils/prototype-reference","@ember/destroyable"],(function(e,t,r,i,n,s,a,o){"use strict"
var l
function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(){super(...arguments),c(this,"_key",void 0),c(this,"_ctx",void 0),c(this,"_element",void 0),c(this,"defaultMutationObserverOptions",{attributes:!1,characterData:!1,childList:!1,subtree:!1}),(0,s.setGlobalRef)((0,r.getOwner)(this)),(0,o.registerDestructor)(this,(()=>{const e=this._element
this.cleanMutationObservers(),this.cleanResizeObservers(),(0,s.getNodeDestructors)(e).forEach((e=>e())),e===(0,s.bucketFor)(this._ctx).get(this._key)&&(0,s.bucketFor)(this._ctx).add(this._key,null),delete this._element}))}markDirty(){(0,s.bucketFor)(this._ctx).dirtyTrackedCell(this._key)}cleanMutationObservers(){this._mutationsObserver&&this._mutationsObserver.disconnect()}cleanResizeObservers(){this._resizeObserver&&this._resizeObserver.unobserve(this._element)}installMutationObservers(e={}){this._mutationsObserver=new MutationObserver(this.markDirty)
const t=this.getObserverOptions(e)
delete t.resize,(t.attributes||t.characterData||t.childList||t.subtree)&&this._mutationsObserver.observe(this._element,t)}validateTrackedOptions(e={}){const t=["subtree","attributes","children","resize","character"]
t.some((t=>t in e))}getObserverOptions(e={}){let t=!1,r=this.defaultMutationObserverOptions.subtree,i=this.defaultMutationObserverOptions.attributes,n=this.defaultMutationObserverOptions.characterData,s=this.defaultMutationObserverOptions.childList
return"subtree"in e&&(r=e.subtree),"attributes"in e&&(i=e.attributes),"children"in e&&(s=e.children),"resize"in e&&(t=e.resize),"character"in e&&(n=e.character),{subtree:r,attributes:i,childList:s,resize:t,characterData:n}}installResizeObservers(e){this._resizeObserver=new ResizeObserver(this.markDirty),this._resizeObserver.observe(e)}modify(e,t,r){const i=this.name(t),n=this.ctx(r,t)
this._key=i,this._ctx=n,this._element=e,this.validateTrackedOptions(r),this.cleanMutationObservers(),this.cleanResizeObservers(),i===this._key&&this._ctx===n||(0,s.bucketFor)(this._ctx).add(this._key,null),(0,s.watchFor)(i,n,(()=>{(0,a.getReferencedKeys)(n,i).forEach((e=>{n[e]}))})),(0,s.bucketFor)(n).add(i,e),this.isTracked(r)&&(this.installMutationObservers(r),this.getObserverOptions(r).resize&&this.installResizeObservers(e))}ctx(e={},t=[void 0]){return e.bucket||(0,r.getOwner)(this)}isTracked(e={}){return e.tracked||!1}name(e){return e[0]}},u=l.prototype,d="markDirty",h=[i.action],p=Object.getOwnPropertyDescriptor(l.prototype,"markDirty"),f=l.prototype,m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=h.slice().reverse().reduce((function(e,t){return t(u,d,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,d,m),l)
var u,d,h,p,f,m})),define("ember-ref-bucket/utils/prototype-reference",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.addPrototypeReference=function(e,r,i){t.has(e)||t.set(e,{})
let n=t.get(e)
i in n||(n[i]=new Set)
n[i].add(r)},e.getReferencedKeys=function(e,r){let i=e
for(;i.__proto__;)if(i=i.__proto__,t.has(i)){let e=t.get(i)
if(r in e)return Array.from(e[r])}return[]}
const t=new WeakMap})),define("ember-ref-bucket/utils/ref",["exports","@ember/destroyable","@glimmer/tracking"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.bucketFor=y,e.cleanGlobalRef=function(){s=null},e.getNodeDestructors=function(e){return o.get(e)||[]},e.registerNodeDestructor=function(e,t){o.has(e)||o.set(e,[])
o.get(e)?.push(t)},e.resolveGlobalRef=function(){return s},e.setGlobalRef=function(e){s=e},e.unregisterNodeDestructor=function(e,t){const r=o.get(e)||[]
o.set(e,r.filter((e=>e!==t)))},e.watchFor=function(e,t,r){const i=y(t)
return i?.addNotificationFor(e,r)}
let s=null
const a=new WeakMap,o=new WeakMap,l="undefined"!=typeof WeakRef
function c(e){return l&&e instanceof WeakRef?e.deref()??null:e}function u(e){return null==e?null:l?e instanceof WeakRef?e:new WeakRef(e):e}let d=(i=class{constructor(){var e,t,r,i
e=this,t="_element",i=this,(r=n)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}get value(){return this._element?c(this._element):null}set value(e){this._element=e?u(e):null}},h=i.prototype,p="_element",f=[r.tracked],m={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(h,p,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),n=void 0===b.initializer?(Object.defineProperty(h,p,b),null):b,i)
var h,p,f,m,g,b
function y(e){const r=e
if(!a.has(r)){if(a.set(r,{bucket:{},keys:{},createTrackedCell(e){e in this.keys||(this.keys[e]=new d)},get(e){return this.createTrackedCell(e),c(this.bucket[e])||null},dirtyTrackedCell(e){this.createTrackedCell(e)
const t=this.keys[e].value
this.keys[e].value=t},getTracked(e){return this.createTrackedCell(e),this.keys[e].value},add(e,t){this.createTrackedCell(e),this.keys[e].value=t,this.bucket[e]=u(t),e in this.notificationsFor||(this.notificationsFor[e]=[]),this.notificationsFor[e].forEach((e=>e()))},addNotificationFor(e,t){return e in this.notificationsFor||(this.notificationsFor[e]=[]),this.notificationsFor[e].push(t),()=>{this.notificationsFor[e]=this.notificationsFor[e].filter((e=>e!=e))}},notificationsFor:{}}),(0,t.isDestroyed)(r)||(0,t.isDestroying)(r))try{return a.get(r)}finally{a.delete(r)}(0,t.registerDestructor)(r,(()=>{a.delete(r)}))}return a.get(r)}})),define("ember-render-helpers/helpers/did-insert",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"didRun",!1)}compute(e,t){const r=e[0]
this.didRun||(this.didRun=!0,r(e.slice(1),t))}}e.default=n})),define("ember-render-helpers/helpers/did-update",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"didRun",!1)}compute(e,t){const r=e[0]
if(!this.didRun)return this.didRun=!0,e.forEach((()=>{})),void Object.values(t)
r(e.slice(1),t)}}e.default=n})),define("ember-render-helpers/helpers/will-destroy",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"fn",void 0),i(this,"positional",void 0),i(this,"named",void 0)}compute(e,t){const r=e[0]
this.fn=r,this.positional=e.slice(1),this.named=t}willDestroy(){if(this.fn&&this.positional&&this.named){const{fn:e}=this
e(this.positional,this.named)}super.willDestroy()}}e.default=n})),define("ember-render-helpers/types",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})})),define("ember-resolver/features",[],(function(){})),define("ember-resolver/index",["exports","ember-resolver/resolvers/classic"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-resolver/resolver",["exports","ember-resolver/resolvers/classic"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("ember-resolver/resolvers/classic/container-debug-adapter",["exports","@ember/array","@ember/debug/container-debug-adapter","ember-resolver/resolvers/classic/index","@ember/application"],(function(e,t,r,i,n){"use strict"
function s(e,t,r){let i=t.match(new RegExp("^/?"+r+"/(.+)/"+e+"$"))
if(null!==i)return i[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({_moduleRegistry:null,init(){this._super(...arguments),this.namespace=(0,n.getOwner)(this).lookup("application:main"),this._moduleRegistry||(this._moduleRegistry=new i.ModuleRegistry)},canCatalogEntriesByType(e){return"model"===e||this._super(...arguments)},catalogEntriesByType(e){let r=this._moduleRegistry.moduleNames(),i=(0,t.A)(),n=this.namespace.modulePrefix
for(let t=0,a=r.length;t<a;t++){let a=r[t]
if(-1!==a.indexOf(e)){let t=s(e,a,this.namespace.podModulePrefix||n)
t||(t=a.split(e+"s/").pop()),i.addObject(t)}}return i}})})),define("ember-resolver/resolvers/classic/index",["exports","ember","@ember/debug","@ember/object","@ember/string","ember-resolver/utils/class-factory"],(function(e,t,r,i,n,s){"use strict"
function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ModuleRegistry=void 0,void 0===requirejs.entries&&(requirejs.entries=requirejs._eak_seen)
class o{constructor(e){this._entries=e||requirejs.entries}moduleNames(){return Object.keys(this._entries)}has(e){return e in this._entries}get(...e){return require(...e)}}e.ModuleRegistry=o
class l extends i.default{constructor(){super(...arguments),a(this,"moduleBasedResolver",!0),a(this,"_deprecatedPodModulePrefix",!1),a(this,"_normalizeCache",Object.create(null)),a(this,"moduleNameLookupPatterns",[this.podBasedModuleName,this.podBasedComponentsInSubdir,this.mainModuleName,this.defaultModuleName,this.nestedColocationComponentModuleName]),this._moduleRegistry||(this._moduleRegistry=new o),this.pluralizedTypes=this.pluralizedTypes||Object.create(null),this.pluralizedTypes.config||(this.pluralizedTypes.config="config")}makeToString(e,t){return this.namespace.modulePrefix+"@"+t+":"}shouldWrapInClassFactory(){return!1}parseName(e){if(!0===e.parsedName)return e
let t,r,i,s=e.split("@")
if(3===s.length){if(0===s[0].length){t=`@${s[1]}`
let e=s[2].split(":")
r=e[0],i=e[1]}else t=`@${s[1]}`,r=s[0].slice(0,-1),i=s[2]
"template:components"===r&&(i=`components/${i}`,r="template")}else if(2===s.length){let e=s[0].split(":")
if(2===e.length)0===e[1].length?(r=e[0],i=`@${s[1]}`):(t=e[1],r=e[0],i=s[1])
else{let e=s[1].split(":")
t=s[0],r=e[0],i=e[1]}"template"===r&&0===t.lastIndexOf("components/",0)&&(i=`components/${i}`,t=t.slice(11))}else s=e.split(":"),r=s[0],i=s[1]
let a=i,o=this.namespace
return{parsedName:!0,fullName:e,prefix:t||this.prefix({type:r}),type:r,fullNameWithoutType:a,name:i,root:o,resolveMethodName:"resolve"+(0,n.classify)(r)}}resolveOther(e){let t=this.findModuleName(e)
if(t){let r=this._extractDefaultExport(t,e)
if(void 0===r)throw new Error(` Expected to find: '${e.fullName}' within '${t}' but got 'undefined'. Did you forget to 'export default' within '${t}'?`)
return this.shouldWrapInClassFactory(r,e)&&(r=(0,s.default)(r)),r}}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this._normalize(e))}resolve(e){let t,r=this.parseName(e),i=r.resolveMethodName
return"function"==typeof this[i]&&(t=this[i](r)),null==t&&(t=this.resolveOther(r)),t}_normalize(e){let t=e.split(":")
if(t.length>1){let e=t[0]
return"component"===e||"helper"===e||"modifier"===e||"template"===e&&0===t[1].indexOf("components/")?e+":"+t[1].replace(/_/g,"-"):e+":"+(0,n.dasherize)(t[1].replace(/\./g,"/"))}return e}pluralize(e){return this.pluralizedTypes[e]||(this.pluralizedTypes[e]=e+"s")}podBasedLookupWithPrefix(e,t){let r=t.fullNameWithoutType
return"template"===t.type&&(r=r.replace(/^components\//,"")),e+"/"+r+"/"+t.type}podBasedModuleName(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix
return this.podBasedLookupWithPrefix(t,e)}podBasedComponentsInSubdir(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix
if(t+="/components","component"===e.type||/^components/.test(e.fullNameWithoutType))return this.podBasedLookupWithPrefix(t,e)}resolveEngine(e){let t=e.fullNameWithoutType+"/engine"
if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)}resolveRouteMap(e){let t=e.fullNameWithoutType,r=t+"/routes"
if(this._moduleRegistry.has(r)){let e=this._extractDefaultExport(r)
return e}}resolveTemplate(e){let r=this.resolveOther(e)
return null==r&&(r=t.default.TEMPLATES[e.fullNameWithoutType]),r}mainModuleName(e){if("main"===e.fullNameWithoutType)return e.prefix+"/"+e.type}defaultModuleName(e){return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType}nestedColocationComponentModuleName(e){if("component"===e.type)return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType+"/index"}prefix(e){let t=this.namespace.modulePrefix
return this.namespace[e.type+"Prefix"]&&(t=this.namespace[e.type+"Prefix"]),t}findModuleName(e,t){let r,i=this.moduleNameLookupPatterns
for(let n=0,s=i.length;n<s;n++){let s=i[n].call(this,e)
if(s&&(s=this.chooseModuleName(s,e)),s&&this._moduleRegistry.has(s)&&(r=s),t||this._logLookup(r,e,s),r)return r}}chooseModuleName(e,t){let r=(0,n.underscore)(e)
if(e!==r&&this._moduleRegistry.has(e)&&this._moduleRegistry.has(r))throw new TypeError(`Ambiguous module names: '${e}' and '${r}'`)
if(this._moduleRegistry.has(e))return e
if(this._moduleRegistry.has(r))return r
let i=e.replace(/\/-([^/]*)$/,"/_$1")
if(this._moduleRegistry.has(i))return i}lookupDescription(e){let t=this.parseName(e)
return this.findModuleName(t,!0)}_logLookup(e,r,i){if(!t.default.ENV.LOG_MODULE_RESOLVER&&!r.root.LOG_RESOLVER)return
let n,s=e?"[✓]":"[ ]"
n=r.fullName.length>60?".":new Array(60-r.fullName.length).join("."),i||(i=this.lookupDescription(r)),console&&console.info&&console.info(s,r.fullName,n,i)}knownForType(e){let t=this._moduleRegistry.moduleNames(),r=Object.create(null)
for(let i=0,n=t.length;i<n;i++){let n=t[i],s=this.translateToContainerFullname(e,n)
s&&(r[s]=!0)}return r}translateToContainerFullname(e,t){let r=this.prefix({type:e}),i=r+"/",n="/"+e,s=t.indexOf(i),a=t.indexOf(n)
if(0===s&&a===t.length-n.length&&t.length>i.length+n.length)return e+":"+t.slice(s+i.length,a)
let o=r+"/"+this.pluralize(e)+"/"
return 0===t.indexOf(o)&&t.length>o.length?e+":"+t.slice(o.length):void 0}_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0)
return t&&t.default&&(t=t.default),t}}a(l,"moduleBasedResolver",!0)
e.default=l})),define("ember-resolver/utils/class-factory",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return{create:t=>"function"==typeof e.extend?e.extend(t):e}}})),define("ember-simple-auth/-internals/routing",["exports","ember","ember-simple-auth/utils/is-fastboot","ember-simple-auth/utils/location"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.handleSessionAuthenticated=function(e,t){let r=e.lookup("service:session"),i=r.get("attemptedTransition"),n=e.lookup("service:cookies")
const s=n.read("ember_simple_auth-redirectTarget")
let a=e.lookup("service:router")
i?(i.retry(),r.set("attemptedTransition",null)):s?(a.transitionTo(s),n.clear("ember_simple_auth-redirectTarget")):a.transitionTo(t)},e.handleSessionInvalidated=function(e,n){if((0,r.default)(e)){e.lookup("service:router").transitionTo(n)}else t.default.testing||(0,i.default)().replace(n)},e.prohibitAuthentication=function(e,t){(e.lookup("service:router")||e.lookup("router:main")).transitionTo(t)},e.requireAuthentication=function(e,t){let i=e.lookup("service:session"),n=i.get("isAuthenticated")
if(!n)if(t&&(0,r.default)(e)){const r=e.lookup("service:fastboot")
e.lookup("service:cookies").write("ember_simple_auth-redirectTarget",t.intent.url,{path:"/",secure:"https"===r.get("request.protocol")})}else t&&i.set("attemptedTransition",t)
return n},e.triggerAuthentication=function(e,t){(e.lookup("service:router")||e.lookup("router:main")).transitionTo(t)}})),define("ember-simple-auth/authenticators/base",["exports","rsvp","@ember/object/evented","@ember/object"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend(r.default,{restore:()=>t.default.reject(),authenticate:()=>t.default.reject(),invalidate:()=>t.default.resolve()})})),define("ember-simple-auth/authenticators/devise",["exports","rsvp","@ember/utils","@ember/runloop","@ember/polyfills","ember-simple-auth/authenticators/base","fetch"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=n.assign||n.merge,l="application/json"
e.default=s.default.extend({serverTokenEndpoint:"/users/sign_in",resourceName:"user",tokenAttributeName:"token",identificationAttributeName:"email",restore(e){return this._validate(e)?t.Promise.resolve(e):t.Promise.reject()},authenticate(e,r){return new t.Promise(((t,n)=>{const{resourceName:s,identificationAttributeName:a,tokenAttributeName:o}=this.getProperties("resourceName","identificationAttributeName","tokenAttributeName"),l={}
l[s]={password:r},l[s][a]=e,this.makeRequest(l).then((e=>{e.ok?e.json().then((e=>{if(this._validate(e)){const r=this.get("resourceName"),n=e[r]?e[r]:e;(0,i.run)(null,t,n)}else(0,i.run)(null,n,`Check that server response includes ${o} and ${a}`)})):(0,i.run)(null,n,e)})).catch((e=>(0,i.run)(null,n,e)))}))},invalidate:()=>t.Promise.resolve(),makeRequest(e,t={}){let r=t.url||this.get("serverTokenEndpoint"),i={},n=JSON.stringify(e)
return o(i,{body:n,method:"POST",headers:{accept:l,"content-type":l}}),o(i,t||{}),(0,a.default)(r,i)},_validate(e){const t=this.get("tokenAttributeName"),i=this.get("identificationAttributeName"),n=this.get("resourceName"),s=e[n]?e[n]:e
return!(0,r.isEmpty)(s[t])&&!(0,r.isEmpty)(s[i])}})})),define("ember-simple-auth/authenticators/oauth2-implicit-grant",["exports","rsvp","@ember/utils","ember-simple-auth/authenticators/base"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.parseResponse=function(e){let t={}
const r=e.substring(e.indexOf("?")),i=/([^#?&=]+)=([^&]*)/g
let n
for(;null!==(n=i.exec(r));)t[decodeURIComponent(n[1])]=decodeURIComponent(n[2])
return t}
e.default=i.default.extend({restore(e){return new t.default.Promise(((t,r)=>this._validateData(e)?t(e):r('Could not restore session - "access_token" missing.')))},authenticate(e){return new t.default.Promise(((t,r)=>{e.error?r(e.error):this._validateData(e)?t(e):r('Invalid auth params - "access_token" missing.')}))},invalidate:()=>t.default.Promise.resolve(),_validateData:e=>!(0,r.isEmpty)(e)&&!(0,r.isEmpty)(e.access_token)})})),define("ember-simple-auth/authenticators/oauth2-password-grant",["exports","rsvp","@ember/utils","@ember/runloop","@ember/array","@ember/debug","@ember/application","@ember/polyfills","ember","ember-simple-auth/authenticators/base","fetch","ember-simple-auth/utils/is-fastboot"],(function(e,t,r,i,n,s,a,o,l,c,u,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=o.assign||o.merge,p=Object.keys||o.keys
e.default=c.default.extend({clientId:null,serverTokenEndpoint:"/token",serverTokenRevocationEndpoint:null,refreshAccessTokens:!0,get tokenRefreshOffset(){return 1e3*(Math.floor(5*Math.random())+5)},_refreshTokenTimeout:null,restore(e){return new t.default.Promise(((t,i)=>{const n=(new Date).getTime(),s=this.get("refreshAccessTokens")
!(0,r.isEmpty)(e.expires_at)&&e.expires_at<n?s?this._refreshAccessToken(e.expires_in,e.refresh_token).then(t,i):i():this._validate(e)?(this._scheduleAccessTokenRefresh(e.expires_in,e.expires_at,e.refresh_token),t(e)):i()}))},authenticate(e,s,a=[],o={}){return new t.default.Promise(((t,l)=>{const c={grant_type:"password",username:e,password:s},u=this.get("serverTokenEndpoint"),d=(0,n.makeArray)(a).join(" ");(0,r.isEmpty)(d)||(c.scope=d),this.makeRequest(u,c,o).then((e=>{(0,i.run)((()=>{this._validate(e)||l("access_token is missing in server response")
const i=this._absolutizeExpirationTime(e.expires_in)
this._scheduleAccessTokenRefresh(e.expires_in,i,e.refresh_token),(0,r.isEmpty)(i)||(e=h(e,{expires_at:i})),t(e)}))}),(e=>{(0,i.run)(null,l,e)}))}))},invalidate(e){const s=this.get("serverTokenRevocationEndpoint")
function a(e){(0,i.cancel)(this._refreshTokenTimeout),delete this._refreshTokenTimeout,e()}return new t.default.Promise((i=>{if((0,r.isEmpty)(s))a.apply(this,[i])
else{const o=[];(0,n.A)(["access_token","refresh_token"]).forEach((t=>{const i=e[t];(0,r.isEmpty)(i)||o.push(this.makeRequest(s,{token_type_hint:t,token:i}))}))
const l=()=>{a.apply(this,[i])}
t.default.all(o).then(l,l)}}))},makeRequest(e,i,n={}){n["Content-Type"]="application/x-www-form-urlencoded"
const s=this.get("clientId");(0,r.isEmpty)(s)||(i.client_id=this.get("clientId"))
const a={body:p(i).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`)).join("&"),headers:n,method:"POST"}
return new t.default.Promise(((t,r)=>{(0,u.default)(e,a).then((e=>{e.text().then((i=>{try{let n=JSON.parse(i)
e.ok?t(n):(e.responseJSON=n,r(e))}catch(SyntaxError){e.responseText=i,r(e)}}))})).catch(r)}))},_scheduleAccessTokenRefresh(e,t,n){if(this.get("refreshAccessTokens")&&!(0,d.default)((0,a.getOwner)(this))){const s=(new Date).getTime();(0,r.isEmpty)(t)&&!(0,r.isEmpty)(e)&&(t=new Date(s+1e3*e).getTime())
const a=this.get("tokenRefreshOffset")
!(0,r.isEmpty)(n)&&!(0,r.isEmpty)(t)&&t>s-a&&((0,i.cancel)(this._refreshTokenTimeout),delete this._refreshTokenTimeout,l.default.testing||(this._refreshTokenTimeout=(0,i.later)(this,this._refreshAccessToken,e,n,t-s-a)))}},_refreshAccessToken(e,r){const n={grant_type:"refresh_token",refresh_token:r},s=this.get("serverTokenEndpoint")
return new t.default.Promise(((t,a)=>{this.makeRequest(s,n).then((n=>{(0,i.run)((()=>{e=n.expires_in||e,r=n.refresh_token||r
const i=this._absolutizeExpirationTime(e),s=h(n,{expires_in:e,expires_at:i,refresh_token:r})
this._scheduleAccessTokenRefresh(e,null,r),this.trigger("sessionDataUpdated",s),t(s)}))}),(e=>{a()}))}))},_absolutizeExpirationTime(e){if(!(0,r.isEmpty)(e))return new Date((new Date).getTime()+1e3*e).getTime()},_validate:e=>!(0,r.isEmpty)(e.access_token)})})),define("ember-simple-auth/authenticators/test",["exports","rsvp","ember-simple-auth/authenticators/base"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({restore:e=>t.default.resolve(e),authenticate:e=>t.default.resolve(e),invalidate:()=>t.default.resolve()})})),define("ember-simple-auth/authenticators/torii",["exports","rsvp","@ember/debug","@ember/utils","@ember/polyfills","ember-simple-auth/authenticators/base"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=s.default.extend({_provider:null,restore(e){if(this._assertToriiIsPresent(),e=e||{},(0,i.isEmpty)(e.provider))return delete this._provider,t.default.reject()
{const{provider:t}=e
return this.get("torii").fetch(e.provider,e).then((r=>(this._authenticateWithProvider(t,r),(0,n.assign)(e,r))),(e=>{throw delete this._provider,e}))}},authenticate(e,t){return this._assertToriiIsPresent(),this.get("torii").open(e,t||{}).then((t=>(this._authenticateWithProvider(e,t),t)))},invalidate(e){return this.get("torii").close(this._provider,e).then((()=>{delete this._provider}))},_authenticateWithProvider(e,t){t.provider=e,this._provider=t.provider},_assertToriiIsPresent(){this.get("torii")}})})),define("ember-simple-auth/configuration",["exports","ember-simple-auth/use-session-setup-method"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r="",i="index"
e.default={rootURL:r,routeAfterAuthentication:i,useSessionSetupMethod:t.default,load(e){this.rootURL=void 0!==e.rootURL?e.rootURL:r,this.routeAfterAuthentication=void 0!==e.routeAfterAuthentication?e.routeAfterAuthentication:i}}})),define("ember-simple-auth/initializers/setup-session-restoration",["exports","@ember/application","ember-simple-auth/configuration","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(r.default.useSessionSetupMethod)return;(e.resolveRegistration?e.resolveRegistration("route:application"):e.resolve("route:application")).reopen({init(){this._super(...arguments)
const e=this.beforeModel
this.beforeModel=function(){if(!this.__usesApplicationRouteMixn__){(0,t.getOwner)(this).lookup("service:session")._setupHandlers()}return(0,t.getOwner)(this).lookup("session:main").restore().then((()=>e.apply(this,arguments)),(()=>e.apply(this,arguments)))}}})}})),define("ember-simple-auth/initializers/setup-session",["exports","ember","ember-simple-auth/internal-session","ember-simple-auth/session-stores/ephemeral"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){e.register("session:main",r.default),t.default.testing&&e.register("session-store:test",i.default)}})),define("ember-simple-auth/internal-session",["exports","ember","rsvp","@ember/utils","@ember/object/proxy","@ember/object/evented","@ember/polyfills","@ember/object","@ember/debug","@ember/application"],(function(e,t,r,i,n,s,a,o,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=a.assign||a.merge
e.default=n.default.extend(s.default,{authenticator:null,store:null,isAuthenticated:!1,attemptedTransition:null,init(){this._super(...arguments),this.set("content",{authenticated:{}})
let e="session-store:application"
t.default.testing&&(e="session-store:test"),this.set("store",(0,c.getOwner)(this).lookup(e)),this._busy=!1,this._bindToStoreEvents()},authenticate(e,...t){this._busy=!0
const i=this._lookupAuthenticator(e)
return i.authenticate(...t).then((t=>(this._busy=!1,this._setup(e,t,!0))),(e=>{const t=()=>r.default.Promise.reject(e)
return this._busy=!1,this._clear().then(t,t)}))},invalidate(){if(this._busy=!0,this.set("attemptedTransition",null),!this.get("isAuthenticated"))return this._busy=!1,r.default.Promise.resolve()
let e=this._lookupAuthenticator(this.authenticator)
return e.invalidate(this.content.authenticated,...arguments).then((()=>(e.off("sessionDataUpdated",this,this._onSessionDataUpdated),this._busy=!1,this._clear(!0))),(e=>(this.trigger("sessionInvalidationFailed",e),this._busy=!1,r.default.Promise.reject(e))))},restore(){this._busy=!0
const e=()=>r.default.Promise.reject()
return this.store.restore().then((t=>{let{authenticator:r}=t.authenticated||{}
if(r){delete t.authenticated.authenticator
return this._lookupAuthenticator(r).restore(t.authenticated).then((e=>(this.set("content",t),this._busy=!1,this._setup(r,e))),(i=>((0,l.debug)(`The authenticator "${r}" rejected to restore the session - invalidating…`),i&&(0,l.debug)(i),this._busy=!1,this._clearWithContent(t).then(e,e))))}return delete(t||{}).authenticated,this._busy=!1,this._clearWithContent(t).then(e,e)}),(()=>(this._busy=!1,this._clear().then(e,e))))},_setup(e,t,r){return r=Boolean(r)&&!this.get("isAuthenticated"),this.setProperties({isAuthenticated:!0,authenticator:e,"content.authenticated":t}),this._bindToAuthenticatorEvents(),this._updateStore().then((()=>{r&&this.trigger("authenticationSucceeded")}),(()=>{this.setProperties({isAuthenticated:!1,authenticator:null,"content.authenticated":{}})}))},_clear(e){return e=Boolean(e)&&this.get("isAuthenticated"),this.setProperties({isAuthenticated:!1,authenticator:null,"content.authenticated":{}}),this._updateStore().then((()=>{e&&this.trigger("invalidationSucceeded")}))},_clearWithContent(e,t){return this.set("content",e),this._clear(t)},setUnknownProperty(e,t){let r=this._super(e,t)
return/^_/.test(e)||this._updateStore(),r},_updateStore(){let e=this.content
return(0,i.isEmpty)(this.authenticator)||(0,o.set)(e,"authenticated",u({authenticator:this.authenticator},e.authenticated||{})),this.store.persist(e)},_bindToAuthenticatorEvents(){const e=this._lookupAuthenticator(this.authenticator)
e.on("sessionDataUpdated",this,this._onSessionDataUpdated),e.on("sessionDataInvalidated",this,this._onSessionDataInvalidated)},_onSessionDataUpdated(e){this._setup(this.authenticator,e)},_onSessionDataInvalidated(){this._clear(!0)},_bindToStoreEvents(){this.store.on("sessionDataUpdated",(e=>{if(!this._busy){this._busy=!0
let{authenticator:t}=e.authenticated||{}
if(t){delete e.authenticated.authenticator
this._lookupAuthenticator(t).restore(e.authenticated).then((r=>{this.set("content",e),this._busy=!1,this._setup(t,r,!0)}),(r=>{(0,l.debug)(`The authenticator "${t}" rejected to restore the session - invalidating…`),r&&(0,l.debug)(r),this._busy=!1,this._clearWithContent(e,!0)}))}else this._busy=!1,this._clearWithContent(e,!0)}}))},_lookupAuthenticator(e){let t=(0,c.getOwner)(this),r=t.lookup(e)
return(0,c.setOwner)(r,t),r}})})),define("ember-simple-auth/mixins/application-route-mixin",["exports","@ember/object/mixin","@ember/array","@ember/application","@ember/service","ember","@ember/debug","ember-simple-auth/configuration","ember-simple-auth/utils/is-fastboot"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({session:(0,n.inject)("session"),routeAfterAuthentication:"index",init(){this._super(...arguments),this.__usesApplicationRouteMixn__=!0,this._isFastBoot=this.hasOwnProperty("_isFastBoot")?this._isFastBoot:(0,l.default)((0,i.getOwner)(this)),this._subscribeToSessionEvents()},_subscribeToSessionEvents(){(0,r.A)([["authenticationSucceeded","sessionAuthenticated"],["invalidationSucceeded","sessionInvalidated"]]).forEach((([e,t])=>{this.get("session").on(e,((...e)=>this[t](...e)))}))},sessionAuthenticated(){this.get("session").handleAuthentication(this.get("routeAfterAuthentication"))},sessionInvalidated(){s.default.testing||this.get("session").handleInvalidation(o.default.rootURL)}})})),define("ember-simple-auth/mixins/authenticated-route-mixin",["exports","@ember/service","@ember/object/mixin","@ember/debug","@ember/application","ember-simple-auth/-internals/routing"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.create({session:(0,t.inject)("session"),authenticationRoute:"login",beforeModel(e){if((0,s.requireAuthentication)((0,n.getOwner)(this),e))return this._super(...arguments)
this.triggerAuthentication()},triggerAuthentication(){let e=this.get("authenticationRoute");(0,s.triggerAuthentication)((0,n.getOwner)(this),e)}})})),define("ember-simple-auth/mixins/data-adapter-mixin",["exports","@ember/service","@ember/object/mixin","@ember/debug"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.create({session:(0,t.inject)("session"),handleResponse(e,t,r,i){return this.ensureResponseAuthorized(e,t,r,i),this._super(...arguments)},ensureResponseAuthorized(e){401===e&&this.get("session.isAuthenticated")&&this.get("session").invalidate()}})})),define("ember-simple-auth/mixins/oauth2-implicit-grant-callback-route-mixin",["exports","@ember/service","@ember/object/mixin","@ember/application","@ember/debug","ember-simple-auth/utils/location","ember-simple-auth/utils/is-fastboot","ember-simple-auth/authenticators/oauth2-implicit-grant"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.create({session:(0,t.inject)("session"),authenticator:null,error:null,activate(){if(this.hasOwnProperty("_isFastBoot")?this._isFastBoot:(0,a.default)((0,i.getOwner)(this)))return
let e=this.get("authenticator"),t=(0,o.parseResponse)((0,s.default)().hash)
this.get("session").authenticate(e,t).catch((e=>{this.set("error",e)}))}})})),define("ember-simple-auth/mixins/unauthenticated-route-mixin",["exports","@ember/service","@ember/object/mixin","@ember/debug","@ember/application","ember-simple-auth/-internals/routing"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.create({session:(0,t.inject)("session"),routeIfAlreadyAuthenticated:"index",beforeModel(){let e=this.get("routeIfAlreadyAuthenticated"),t=(0,n.getOwner)(this)
if(!t.lookup("service:session").get("isAuthenticated"))return this._super(...arguments);(0,s.prohibitAuthentication)(t,e)}})})),define("ember-simple-auth/services/session",["exports","@ember/object/computed","@ember/array","@ember/service","@ember/object/evented","@ember/application","@ember/debug","ember-simple-auth/configuration","ember-simple-auth/-internals/routing"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=/^data\./
let u=!0
function d(e){!e&&o.default.useSessionSetupMethod}e.default=i.default.extend(n.default,{isAuthenticated:(0,t.readOnly)("session.isAuthenticated"),data:(0,t.readOnly)("session.content"),store:(0,t.readOnly)("session.store"),attemptedTransition:(0,t.alias)("session.attemptedTransition"),session:null,init(){this._super(...arguments),this.set("session",(0,s.getOwner)(this).lookup("session:main")),this._forwardSessionEvents()},set(e,t){if(c.test(e)){const r=`session.${e.replace(c,"")}`
return this._super(r,t)}return this._super(...arguments)},_forwardSessionEvents(){(0,r.A)(["authenticationSucceeded","invalidationSucceeded"]).forEach((e=>{const t=this.get("session")
t&&t.on(e,(()=>{u=!1,this.trigger(e,...arguments),u=!0}))}))},on(){return this._super(...arguments)},one(){return this._super(...arguments)},off(){return this._super(...arguments)},has(){return this._super(...arguments)},trigger(){return this._super(...arguments)},_setupHandlers(){this.get("session").on("authenticationSucceeded",(()=>this.handleAuthentication(o.default.routeAfterAuthentication))),this.get("session").on("invalidationSucceeded",(()=>this.handleInvalidation(o.default.rootURL)))},authenticate(){return this.get("session").authenticate(...arguments)},invalidate(){return this.get("session").invalidate(...arguments)},requireAuthentication(e,t){d(this._setupIsCalled)
let r=(0,l.requireAuthentication)((0,s.getOwner)(this),e)
if(!r){let e=typeof t
"string"===e?(0,l.triggerAuthentication)((0,s.getOwner)(this),t):"function"===e&&t()}return r},prohibitAuthentication(e){d(this._setupIsCalled)
let t=this.get("isAuthenticated")
if(t){let t=typeof e
"string"===t?(0,l.prohibitAuthentication)((0,s.getOwner)(this),e):"function"===t&&e()}return!t},handleAuthentication(e){(0,l.handleSessionAuthenticated)((0,s.getOwner)(this),e)},handleInvalidation(e){(0,l.handleSessionInvalidated)((0,s.getOwner)(this),e)},async setup(){this._setupIsCalled=!0
try{this._setupHandlers(),await this.session.restore()}catch(e){}}})})),define("ember-simple-auth/session-stores/adaptive",["exports","@ember/object","@ember/service","@ember/application","ember-simple-auth/session-stores/base"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s="_ember_simple_auth_test_key",a=function(){return(0,t.computed)({get(e){return this.get(`_${e}`)},set(e,t){this.set(`_${e}`,t)
let r=this.get("_store")
return r&&r.set(e,t),t}})}
e.default=n.default.extend({localStorageKey:"ember_simple_auth-session",_cookieDomain:null,cookieDomain:a(),_cookieName:"ember_simple_auth-session",cookieName:a(),_cookiePath:"/",cookiePath:a(),_cookieExpirationTime:null,cookieExpirationTime:a(),_sameSite:null,sameSite:a(),_cookies:(0,r.inject)("cookies"),_isLocalStorageAvailable:(0,t.computed)({get:()=>function(){try{return localStorage.setItem(s,!0),localStorage.removeItem(s),!0}catch(e){return!1}}(),set:(e,t)=>t}),init(){this._super(...arguments)
let e,t=(0,i.getOwner)(this)
if(t&&!this.hasOwnProperty("_fastboot")&&(this._fastboot=t.lookup("service:fastboot")),this.get("_isLocalStorageAvailable")){const r=t.lookup("session-store:local-storage"),i={key:this.get("localStorageKey"),_isFastBoot:!1}
r.setProperties(i),e=r}else{const r=t.lookup("session-store:cookie"),i=this.getProperties("sameSite","cookieDomain","cookieName","cookieExpirationTime","cookiePath")
r._initialize(i),this.set("cookieExpirationTime",r.get("cookieExpirationTime")),e=r}this.set("_store",e),this._setupStoreEvents(e)},_setupStoreEvents(e){return e.on("sessionDataUpdated",(e=>{this.trigger("sessionDataUpdated",e)})),e},persist(){return this.get("_store").persist(...arguments)},restore(){return this.get("_store").restore()},clear(){return this.get("_store").clear()}})})),define("ember-simple-auth/session-stores/base",["exports","rsvp","@ember/object","@ember/object/evented"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(i.default,{persist:()=>t.default.reject(),restore:()=>t.default.reject(),clear:()=>t.default.reject()})})),define("ember-simple-auth/session-stores/cookie",["exports","rsvp","@ember/object","@ember/service","@ember/runloop","@ember/utils","@ember/array","@ember/application","@ember/debug","ember","ember-simple-auth/session-stores/base","ember-simple-auth/utils/objects-are-equal"],(function(e,t,r,i,n,s,a,o,l,c,u,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=function(e=function(){}){return(0,r.computed)({get(e){return this.get(`_${e}`)},set(t,r){return e.apply(this,[t,r]),this.set(`_${t}`,r),(0,n.scheduleOnce)("actions",this,this.rewriteCookie),r}})}
e.default=u.default.extend({_syncDataTimeout:null,_renewExpirationTimeout:null,_cookieDomain:null,cookieDomain:h(),_sameSite:null,sameSite:h(),_cookieName:"ember_simple_auth-session",cookieName:h((function(){this._oldCookieName=this._cookieName})),_cookiePath:"/",cookiePath:h(),_cookieExpirationTime:null,cookieExpirationTime:h((function(e,t){(0,s.isNone)(t)&&this.get("_cookies").clear(`${this.get("cookieName")}-expiration_time`)})),_cookies:(0,i.inject)("cookies"),_secureCookies(){return this.get("_fastboot.isFastBoot")?"https"===this.get("_fastboot.request.protocol"):"https:"===window.location.protocol},_isPageVisible(){if(this.get("_fastboot.isFastBoot"))return!1
return"visible"===("undefined"!=typeof document&&(document.visibilityState||"visible"))},init(){this._super(...arguments)
let e=(0,o.getOwner)(this)
e&&!this.hasOwnProperty("_fastboot")&&(this._fastboot=e.lookup("service:fastboot"))},_initialize(e){const t=Object.assign({},e)
t.cookieName&&this.set("_cookieName",t.cookieName),delete t.cookieName,this.setProperties(t)
let r=this._read(`${this.get("cookieName")}-expiration_time`)
r&&this.set("cookieExpirationTime",parseInt(r,10)),this.get("_fastboot.isFastBoot")?this._renew():(0,n.next)((()=>{this._syncData().then((()=>{this._renewExpiration()}))}))},persist(e){this._lastData=e,e=JSON.stringify(e||{})
let r=this._calculateExpirationTime()
return this._write(e,r),t.default.resolve()},restore(){let e=this._read(this.get("cookieName"))
return(0,s.isEmpty)(e)?t.default.resolve({}):t.default.resolve(JSON.parse(e))},clear(){return this._write("",0),this._lastData={},t.default.resolve()},_read(e){return this.get("_cookies").read(e)||""},_calculateExpirationTime(){let e=this._read(`${this.get("cookieName")}-expiration_time`)
return e=e?(new Date).getTime()+1e3*e:null,this.get("cookieExpirationTime")?(new Date).getTime()+1e3*this.get("cookieExpirationTime"):e},_write(e,t){let r={domain:this.get("cookieDomain"),expires:(0,s.isEmpty)(t)?null:new Date(t),path:this.get("cookiePath"),secure:this._secureCookies(),sameSite:this.get("sameSite")}
if(this._oldCookieName&&((0,a.A)([this._oldCookieName,`${this._oldCookieName}-expiration_time`]).forEach((e=>{this.get("_cookies").clear(e)})),delete this._oldCookieName),this.get("_cookies").write(this.get("cookieName"),e,r),!(0,s.isEmpty)(t)){let e=`${this.get("cookieName")}-expiration_time`,t=this.get("_cookies").read(e)
this.get("_cookies").write(e,this.get("cookieExpirationTime")||t,r)}},_syncData(){return this.restore().then((e=>{(0,d.default)(e,this._lastData)||(this._lastData=e,this.trigger("sessionDataUpdated",e)),c.default.testing||((0,n.cancel)(this._syncDataTimeout),this._syncDataTimeout=(0,n.later)(this,this._syncData,500))}))},_renew(){return this.restore().then((e=>{if(!(0,s.isEmpty)(e)&&(e.constructor!==Object||0!==Object.keys(e).length)){e="string"===(0,s.typeOf)(e)?e:JSON.stringify(e||{})
let t=this._calculateExpirationTime()
this._write(e,t)}}))},_renewExpiration(){return c.default.testing||((0,n.cancel)(this._renewExpirationTimeout),this._renewExpirationTimeout=(0,n.later)(this,this._renewExpiration,6e4)),this._isPageVisible()?this._renew():t.default.resolve()},rewriteCookie(){const e=this._oldCookieName||this._cookieName,t=this._read(e)
if((0,s.isPresent)(t)){const e=this._calculateExpirationTime()
this._write(t,e)}}})})),define("ember-simple-auth/session-stores/ephemeral",["exports","rsvp","ember-simple-auth/session-stores/base"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({init(){this._super(...arguments),this.clear()},persist(e){return this._data=JSON.stringify(e||{}),t.default.resolve()},restore(){const e=JSON.parse(this._data)||{}
return t.default.resolve(e)},clear(){return delete this._data,this._data="{}",t.default.resolve()}})})),define("ember-simple-auth/session-stores/local-storage",["exports","rsvp","@ember/runloop","@ember/application","ember-simple-auth/session-stores/base","ember-simple-auth/utils/objects-are-equal","ember-simple-auth/utils/is-fastboot"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({key:"ember_simple_auth-session",init(){this._super(...arguments),this._isFastBoot=this.hasOwnProperty("_isFastBoot")?this._isFastBoot:(0,a.default)((0,i.getOwner)(this)),this._boundHandler=(0,r.bind)(this,this._handleStorageEvent),this.get("_isFastBoot")||window.addEventListener("storage",this._boundHandler)},willDestroy(){this.get("_isFastBoot")||window.removeEventListener("storage",this._boundHandler)},persist(e){return this._lastData=e,e=JSON.stringify(e||{}),localStorage.setItem(this.key,e),t.default.resolve()},restore(){let e=localStorage.getItem(this.key)
return t.default.resolve(JSON.parse(e)||{})},clear(){return localStorage.removeItem(this.key),this._lastData={},t.default.resolve()},_handleStorageEvent(e){e.key===this.get("key")&&this.restore().then((e=>{(0,s.default)(e,this._lastData)||(this._lastData=e,this.trigger("sessionDataUpdated",e))}))}})})),define("ember-simple-auth/session-stores/session-storage",["exports","rsvp","@ember/runloop","@ember/application","ember-simple-auth/session-stores/base","ember-simple-auth/utils/objects-are-equal","ember-simple-auth/utils/is-fastboot"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({key:"ember_simple_auth-session",init(){this._super(...arguments),this._isFastBoot=this.hasOwnProperty("_isFastBoot")?this._isFastBoot:(0,a.default)((0,i.getOwner)(this)),this.get("_isFastBoot")||window.addEventListener("storage",(0,r.bind)(this,this._handleStorageEvent))},willDestroy(){this.get("_isFastBoot")||window.removeEventListener("storage",(0,r.bind)(this,this._handleStorageEvent))},persist(e){return this._lastData=e,e=JSON.stringify(e||{}),sessionStorage.setItem(this.key,e),t.default.resolve()},restore(){let e=sessionStorage.getItem(this.key)
return t.default.resolve(JSON.parse(e)||{})},clear(){return sessionStorage.removeItem(this.key),this._lastData={},t.default.resolve()},_handleStorageEvent(e){e.key===this.get("key")&&this.restore().then((e=>{(0,s.default)(e,this._lastData)||(this._lastData=e,this.trigger("sessionDataUpdated",e))}))}})})),define("ember-simple-auth/use-session-setup-method",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=!1})),define("ember-simple-auth/utils/inject",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r,i){(e.inject||e.injection).call(e,t,r,i)}})),define("ember-simple-auth/utils/is-fastboot",["exports","@ember/debug","@ember/application/instance"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const t=e.lookup("service:fastboot")
return!!t&&t.get("isFastBoot")}})),define("ember-simple-auth/utils/location",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=()=>window.location}))
define("ember-simple-auth/utils/objects-are-equal",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){return function e(t,r){let i
if(isNaN(t)&&isNaN(r)&&"number"==typeof t&&"number"==typeof r)return!0
if(t===r)return!0
if(!(t instanceof Object&&r instanceof Object))return!1
for(i in r){if(r.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1
if(typeof r[i]!=typeof t[i])return!1}for(i in t){if(r.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1
if(typeof r[i]!=typeof t[i])return!1
if("object"==typeof t[i]){if(!e(t[i],r[i]))return!1}else if(t[i]!==r[i])return!1}return!0}(e,t)}})),define("ember-svg-jar/helpers/svg-jar",["exports","@ember/component/helper","ember-svg-jar/utils/make-svg","@embroider/macros/es-compat2"],(function(e,t,r,i){"use strict"
function n(e){let t=null
try{t=require(`ember-svg-jar/inlined/${e}`).default}catch(r){}try{t=(0,i.default)(require(`../inlined/${e}`)).default}catch(r){}return t}function s(e,t){return(0,r.default)(e,t,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.svgJar=s
e.default=(0,t.helper)((function([e],t){return s(e,t)}))})),define("ember-svg-jar/utils/make-helper",["exports","@ember/component/helper","ember"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let i
i=t.default&&t.default.helper?t.default.helper((function([t],r){return e(t,r)})):r.default.Handlebars.makeBoundHelper((function(t,r){return e(t,r.hash||{})}))
return i}})),define("ember-svg-jar/utils/make-svg",["exports","@ember/utils","@ember/template"],(function(e,t,r){"use strict"
function i(){return([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,(e=>(4*e^16*Math.random()>>(2&e)).toString(16)))}Object.defineProperty(e,"__esModule",{value:!0}),e.createAccessibilityElements=c,e.createAriaLabel=u,e.default=function(e,t={},i){if(!e)return void console.warn("ember-svg-jar: asset name should not be undefined or null")
t=l(t=o(t))
let n=0===e.lastIndexOf("#",0)?h(e,t):p(e,i,t)
return(0,r.htmlSafe)(n)},e.formatAttrs=d,e.generateAccessibilityIds=l,e.inlineSvgFor=p,e.sanitizeAttrs=o,e.symbolUseFor=h
const n=["title","desc"],s={'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"}
function a(e){return s[e]}function o(e){let t=Object.assign({},e)
return Object.keys(t).forEach((e=>{var r
t[e]="number"==typeof(r=t[e])?r:null===r?null:"string"!=typeof r?"":r.indexOf(">")>-1||r.indexOf("<")>-1||r.indexOf("&")>-1||r.indexOf('"')>-1?r.replace(/[&"<>]/g,a):r})),t}function l(e){return e.title&&(e.title={id:i(),text:e.title}),e.desc&&(e.desc={id:i(),text:e.desc}),e}function c(e){const{title:t,desc:r}=e
return t||r?n.reduce(((t,r)=>e[r]?t.concat(`<${r} id="${e[r].id}">${e[r].text}</${r}>`):t),""):""}function u(e){const{title:t,desc:r}=e
return t||r?`aria-labelledby="${n.filter((t=>e[t])).map((t=>e[t].id)).join(" ")}"`:""}function d(e){return Object.keys(e).filter((e=>!n.includes(e))).map((r=>!(0,t.isNone)(e[r])&&`${r}="${e[r]}"`)).filter((e=>e)).join(" ")}function h(e,t={}){return`<svg ${d(t)}${u(t)}><use xlink:href="${e}" />${c(t)}</svg>`}function p(e,t,r={}){let i=t(e)
if(!i)return void console.warn(`ember-svg-jar: Missing inline SVG for ${e}`)
let n=i.attrs?Object.assign({},i.attrs,r):r,{size:s}=r
return s&&(n.width=parseFloat(n.width)*s||n.width,n.height=parseFloat(n.height)*s||n.height,delete n.size),`<svg ${d(n)}${u(r)}>${c(r)}${i.content}</svg>`}})),define("ember-test-waiters/index",["exports","@ember/debug","@ember/test-waiters"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})),define("ember-tracked-storage-polyfill/index",["exports","@glimmer/tracking","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.createStorage=function(e,t=s){return new n(e,t)},e.getValue=function(e){return e._value},e.setValue=function(e,t){const{_isEqual:r,_lastValue:i}=e
r(t,i)||(e._value=e._lastValue=t)}
var i=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i)
else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a)
return s>3&&a&&Object.defineProperty(t,r,a),a}
class n{constructor(e,t){this._value=this._lastValue=e,this._isEqual=t}}function s(e,t){return e===t}i([t.tracked],n.prototype,"_value",void 0)})),define("ember-truth-helpers/helpers/and",["exports","@ember/component/helper","ember-truth-helpers/utils/truth-convert"],(function(e,t,r){"use strict"
function i(e){for(let t=0,i=e.length;t<i;t++)if(!1===(0,r.default)(e[t]))return e[t]
return e[e.length-1]}Object.defineProperty(e,"__esModule",{value:!0}),e.and=i,e.default=void 0
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/helpers/eq",["exports","ember-truth-helpers/helpers/equal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return t.equal}})})),define("ember-truth-helpers/helpers/equal",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r(e){return e[0]===e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.equal=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/gt",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r([e,t],r){return r.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.gt=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/gte",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r([e,t],r){return r.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>=t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.gte=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/is-array",["exports","@ember/component/helper","@ember/array"],(function(e,t,r){"use strict"
function i(e){for(let t=0,i=e.length;t<i;t++)if(!1===(0,r.isArray)(e[t]))return!1
return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isArray=i
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/helpers/is-empty",["exports","@ember/component/helper","@ember/utils"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e]){return(0,r.isEmpty)(e)}))})),define("ember-truth-helpers/helpers/is-equal",["exports","@ember/component/helper","@ember/utils"],(function(e,t,r){"use strict"
function i([e,t]){return(0,r.isEqual)(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isEqual=i
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/helpers/lt",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r([e,t],r){return r.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.lt=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/lte",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r([e,t],r){return r.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<=t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.lte=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEqualHelper",{enumerable:!0,get:function(){return t.notEqualHelper}})})),define("ember-truth-helpers/helpers/not-equal",["exports","@ember/component/helper"],(function(e,t){"use strict"
function r(e){return e[0]!==e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.notEqualHelper=r
e.default=(0,t.helper)(r)})),define("ember-truth-helpers/helpers/not",["exports","@ember/component/helper","ember-truth-helpers/utils/truth-convert"],(function(e,t,r){"use strict"
function i(e){for(let t=0,i=e.length;t<i;t++)if(!0===(0,r.default)(e[t]))return!1
return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.not=i
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/helpers/or",["exports","@ember/component/helper","ember-truth-helpers/utils/truth-convert"],(function(e,t,r){"use strict"
function i(e){for(let t=0,i=e.length;t<i;t++)if(!0===(0,r.default)(e[t]))return e[t]
return e[e.length-1]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.or=i
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/helpers/xor",["exports","@ember/component/helper","ember-truth-helpers/utils/truth-convert"],(function(e,t,r){"use strict"
function i(e){return(0,r.default)(e[0])!==(0,r.default)(e[1])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.xor=i
e.default=(0,t.helper)(i)})),define("ember-truth-helpers/utils/truth-convert",["exports","@ember/array","@ember/object"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const i=e&&(0,r.get)(e,"isTruthy")
if("boolean"==typeof i)return i
return(0,t.isArray)(e)?0!==(0,r.get)(e,"length"):!!e}})),define("ember-uuid/index",["exports","ember-uuid/utils/uuid-generator"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return t.parse}}),Object.defineProperty(e,"unparse",{enumerable:!0,get:function(){return t.unparse}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.v1}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return t.v4}})})),define("ember-uuid/utils/browser-rng",["exports"],(function(e){"use strict"
let t
if(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,window&&window.crypto&&window.crypto.getRandomValues){let e=new Uint8Array(16)
t=function(){return window.crypto.getRandomValues(e),e}}if(!t){let e=new Array(16)
t=function(){for(let t,r=0;r<16;r++)3&r||(t=4294967296*Math.random()),e[r]=t>>>((3&r)<<3)&255
return e}}e.default=t})),define("ember-uuid/utils/uuid-generator",["exports","ember-uuid/utils/browser-rng"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.parse=s,e.unparse=a,e.v1=h,e.v4=p
for(var r=[],i={},n=0;n<256;n++)r[n]=(n+256).toString(16).substr(1),i[r[n]]=n
function s(e,t,r){var n=t&&r||0,s=0
for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){s<16&&(t[n+s++]=i[e])}));s<16;)t[n+s++]=0
return t}function a(e,t){var i=t||0,n=r
return n[e[i++]]+n[e[i++]]+n[e[i++]]+n[e[i++]]+"-"+n[e[i++]]+n[e[i++]]+"-"+n[e[i++]]+n[e[i++]]+"-"+n[e[i++]]+n[e[i++]]+"-"+n[e[i++]]+n[e[i++]]+n[e[i++]]+n[e[i++]]+n[e[i++]]+n[e[i++]]}var o=(0,t.default)(),l=[1|o[0],o[1],o[2],o[3],o[4],o[5]],c=16383&(o[6]<<8|o[7]),u=0,d=0
function h(e,t,r){var i=t&&r||0,n=t||[],s=void 0!==(e=e||{}).clockseq?e.clockseq:c,o=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:d+1,p=o-u+(h-d)/1e4
if(p<0&&void 0===e.clockseq&&(s=s+1&16383),(p<0||o>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
u=o,d=h,c=s
var f=(1e4*(268435455&(o+=122192928e5))+h)%4294967296
n[i++]=f>>>24&255,n[i++]=f>>>16&255,n[i++]=f>>>8&255,n[i++]=255&f
var m=o/4294967296*1e4&268435455
n[i++]=m>>>8&255,n[i++]=255&m,n[i++]=m>>>24&15|16,n[i++]=m>>>16&255,n[i++]=s>>>8|128,n[i++]=255&s
for(var g=e.node||l,b=0;b<6;b++)n[i+b]=g[b]
return t||a(n)}function p(e,r,i){var n=r&&i||0
"string"==typeof e&&(r="binary"===e?new Array(16):null,e=null)
var s=(e=e||{}).random||(e.rng||t.default)()
if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,r)for(var o=0;o<16;o++)r[n+o]=s[o]
return r||a(s)}e.default={v1:h,v4:p,parse:s,unparse:a}})),define("ember-websockets/helpers",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.cleanURL=function(e){return e.replace(/\./g,"")},e.normalizeURL=function(e){return new URL(e).toString()}})),define("ember-websockets/helpers/socketio-proxy",["exports","@ember/debug","@ember/object/proxy","@ember/runloop"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({listeners:null,init(){this._super(...arguments),this.listeners=[]},on(e,t,r){const n=(0,i.bind)(r,t)
this.listeners.push({url:this.socket.io.uri,type:e,callback:t,context:r,ref:n}),this.socket.on(e,n)},off(e,t){const r=this.listeners.filter((r=>r.callback===t&&r.url===this.socket.io.uri&&r.type===e))
r&&r.forEach((t=>this.socket.off(e,t.ref))),this.listeners=this.listeners.filter((e=>-1===r.indexOf(e)))},emit(){this.socket.emit.apply(this.socket,arguments)},close(){this.listeners=this.listeners.filter((e=>e.url===this.socket.io.uri)),this.socket.close.apply(this.socket,arguments)},send(){this.socket.send.apply(this.socket,arguments)},connect(){this.socket.connect.apply(this.socket,arguments)}})})),define("ember-websockets/helpers/websocket-proxy",["exports","@ember/runloop","@ember/debug","@ember/object/proxy"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=["close","error","message","open"],{filter:s,indexOf:a,forEach:o}=Array.prototype
e.default=i.default.extend({listeners:null,init(){this._super(...arguments),this.listeners=[],this.setupInternalListeners()},on(e,t,r){this.listeners.push({url:this.socket.url,type:e,callback:t,context:r})},off(e,t){this.listeners=s.call(this.listeners,(r=>!(r.callback===t&&r.type===e)))},send(e,t=!1){t&&JSON&&JSON.stringify&&(e=JSON.stringify(e)),this.socket.send(e)},close(){this.socket.close()},reconnect(){this.set("socket",new WebSocket(this.socket.url,this.protocols)),this.setupInternalListeners()},setupInternalListeners(){o.call(n,(e=>{this.socket[`on${e}`]=r=>{(0,t.run)((()=>{var t=s.call(this.listeners,(t=>t.url===r.currentTarget.url&&t.type===e))
o.call(t,(e=>{e.context?e.callback.call(e.context,r):e.callback(r)}))}))}}))},readyState(){return this.socket.readyState}})})),define("ember-websockets/services/socket-io",["exports","ember-websockets/services/websockets","ember-websockets/helpers/socketio-proxy"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{isWebSocketOpen(e){return"closed"!==e.io.readyState}createSocket(e,t={}){const r=io(e,t)
return r.connect(),r}createProxy(e){return r.default.create({content:this,socket:e})}}e.default=i})),define("ember-websockets/services/websockets",["exports","@ember/service","@ember/object","ember-websockets/helpers/websocket-proxy","ember-websockets/helpers"],(function(e,t,r,i,n){"use strict"
var s,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=(0,r.computed)(),a=class extends t.default{get sockets(){return{}}socketFor(e,t=[]){"string"==typeof t&&(t=[t])
const i=(0,n.normalizeURL)(e),s=(0,n.cleanURL)(i),a=(0,r.get)(this,`sockets.${s}`)
if(a&&this.isWebSocketOpen(a.socket))return a
const o=this.createSocket(i,t)
if(a)return(0,r.set)(a,"socket",o),a
const l=this.createProxy(o,t)
return(0,r.set)(this,`sockets.${s}`,l),l}closeSocketFor(e){const t=(0,n.cleanURL)((0,n.normalizeURL)(e)),i=(0,r.get)(this,`sockets.${t}`)
i&&i.socket.close(),delete this.sockets[t]}isWebSocketOpen(e){return e.readyState!==WebSocket.CLOSED}createSocket(e,t){return new WebSocket(e,t)}createProxy(e,t){return i.default.create({content:this,protocols:t,socket:e})}},o=a.prototype,l="sockets",c=[s],u=Object.getOwnPropertyDescriptor(a.prototype,"sockets"),d=a.prototype,h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),void 0===h.initializer&&Object.defineProperty(o,l,h),a)
var o,l,c,u,d,h}))
define("gds/components/core/accordion/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/accordion/index",["exports","@ember/component","@glimmer/component","@ember/object","tracked-toolbox","@ember/debug","gds/components/core/accordion/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c,u
function d(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,o.createTemplateFactory)({id:"H8kEEAAc",block:'[[[8,[39,0],null,[["@className","@dir","@disabled","@id","@open"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,1],[30,0,["isOpen"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],[[17,2],[4,[38,3],["click",[30,0,["toggle"]]],null]],[["@accessKey","@className","@dir","@dataTestSelector","@tabIndex"],[[30,3],"header",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,5]]],[["default"],[[[[41,[48,[30,8]],[[[18,8,[[28,[37,7],null,[["icon","close","dir","isOpen","toggle","visible"],[[50,"core/icon",0,null,[["name"],[[52,[30,0,["isOpen"]],"chevron_up","chevron_down"]]]],[30,0,["close"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isOpen"]],[30,0,["toggle"]],[30,0,["open"]]]]]]]],[]],[[[8,[39,9],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,6]]],[]]]]],[41,[30,0,["hasIcon"]],[[[8,[39,10],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[52,[30,0,["isOpen"]],"chevron_up","chevron_down"]]],null]],[]],null]],[]]]],[]]]]],[1,"\\n\\t"],[8,[39,11],null,[["@className","@dir"],["body",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,9]],[[[18,9,[[28,[37,7],null,[["close","dir","isOpen","toggle","visible"],[[30,0,["close"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isOpen"]],[30,0,["toggle"]],[30,0,["open"]]]]]]]],[]],[[[8,[39,12],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,7]]],[]]]]]],[]]]],[]]]]],[1,"\\n"]],[]]]]]],["@id","&attrs","@accessKey","@dataTestSelector","@tabIndex","@title","@text","&header","&body"],false,["foundations/details","config","foundations/summary","on","if","has-block","yield","hash","component","foundations/h2","core/icon","foundations/div","foundations/p"]]',moduleName:"gds/components/core/accordion/index.hbs",isStrictMode:!1})
let p=e.default=(l=(0,n.localCopy)("args.open",!1),c=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isOpen",n=this,(i=u)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get elementClassName(){const e=["accordion"]
return this.className&&e.push(this.className),this.isDisabled&&e.push("disable"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get hasIcon(){return this.args.icon??!0}close(e){e.preventDefault(),this.args.onOpen&&this.args.onOpen(e),this.isOpen=!1}open(e){e.preventDefault(),this.isOpen=!0}toggle(e){this.isOpen?this.close(e):this.open(e)}},u=d(c.prototype,"isOpen",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(c.prototype,"close",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"close"),c.prototype),d(c.prototype,"open",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"open"),c.prototype),d(c.prototype,"toggle",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"toggle"),c.prototype),c);(0,t.setComponentTemplate)(h,p)})),define("gds/components/core/alert/collapsible/band/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/alert/collapsible/band/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/alert/collapsible/band/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"NCJ1xrPM",block:'[[[8,[39,0],null,[["@className","@dir"],["band",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@className","@dir"],[[28,[37,3],[1],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,1]]],[]]]]],[1,"\\n  "],[18,2,[[28,[37,5],null,[["button","to"],[[50,"core/button",0,null,[["className","dir"],["default",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],"button"]]]]],[1,"\\n"]],[]]]]]],["@text","&default"],false,["foundations/div","config","foundations/p","lineclamp-class","yield","hash","component"]]',moduleName:"gds/components/core/alert/collapsible/band/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/alert/collapsible/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},status:{default:0,options:["default","error","loading","success","warning"],values:{default:{className:"default",icon:!1},error:{className:"error",icon:"alert"},loading:{className:"loading",icon:"spinner"},success:{className:"success",icon:"check_circle"},warning:{className:"warning",icon:"alert_warning"}}},style:{default:0,options:["default","file","image","system","video"],values:{default:{className:"default",icon:!1},file:{className:"default",icon:"file"},image:{className:"default",icon:"image"},system:{className:"default",icon:!1},warning:{className:"warning",icon:"alert_warning"}}}}})),define("gds/components/core/alert/collapsible/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/debug","gds/components/core/alert/collapsible/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c
function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,o.createTemplateFactory)({id:"Bt31SQlF",block:'[[[8,[39,0],null,[["@className","@dir","@role"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"alert"]],[["default"],[[[[1,"\\n  "],[8,[39,0],null,[["@className","@dir"],["header",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,1]]],[]]]]],[41,[48,[30,3]],[[[18,3,null]],[]],[[[8,[39,0],null,[["@className","@dir"],["actions",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n        "],[18,4,[[28,[37,6],null,[["close","toggle","visible","buttonExpand","buttonClose"],[[30,0,["close"]],[30,0,["toggle"]],[30,0,["visible"]],[50,"core/button/icon-button",0,null,[["active","ariaExpanded","ariaPressed","dir","isVisible","onClick","size","style"],[[30,0,["isVisible"]],[52,[30,0,["isVisible"]],"true","false"],[52,[30,0,["isVisible"]],"true","false"],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isVisible"]],[30,0,["toggle"]],"small",[52,[30,0,["isVisible"]],"dropup","dropdown"]]]],[50,"core/button/icon-button",0,null,[["dir","size","style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"small","close"]]]]]]]],[1,"\\n      "]],[]]]]]],[]]]],[]]]]],[1,"\\n  "],[8,[39,8],null,[["@animation","@dir","@visible"],["collapsable-vertical",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isVisible"]]]],[["default"],[[[[1,"\\n    "],[18,4,[[28,[37,6],null,[["band"],[[50,"core/alert/collapsible/band",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n    "],[8,[39,0],null,[["@className"],["body"]],[["default"],[[[[41,[30,0,["iconStyle"]],[[[8,[39,9],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["iconStyle"]]]],null]],[]],null],[8,[39,2],null,[["@className","@dir"],[[28,[37,10],[1],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[41,[30,0,["iconStatus"]],[[[8,[39,9],null,[["@className","@dir","@name"],[[30,0,["status"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["iconStatus"]]]],null]],[]],null]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["@title","@text","&headerActions","&default"],false,["foundations/div","config","foundations/p","if","has-block","yield","hash","component","core/container-area","core/icon","lineclamp-class"]]',moduleName:"gds/components/core/alert/collapsible/index.hbs",isStrictMode:!1})
let h=e.default=(l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isVisible",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get elementClassName(){const e=["alertcollapsible"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get iconStatus(){return a.default.status.values[this.nameStatus].icon}get iconStyle(){return a.default.style.values[this.nameStyle].icon}get nameStatus(){const e=this.args.status??a.default.status.options[a.default.status.default]
return e}get nameStyle(){const e=this.args.style??a.default.style.options[a.default.style.default]
return e}get status(){const e=this.args.status??a.default.status.options[a.default.status.default]
return e}get style(){const e=this.args.style??a.default.style.options[a.default.style.default]
return e}close(){this.isVisible=!1,this.args.onClose&&this.args.onClose()}toggle(){this.isVisible?this.close():this.visible()}visible(){this.args.onOpen&&this.args.onOpen(),this.isVisible=!0}},c=u(l.prototype,"isVisible",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u(l.prototype,"close",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"close"),l.prototype),u(l.prototype,"toggle",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"toggle"),l.prototype),u(l.prototype,"visible",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"visible"),l.prototype),l);(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/alert/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},style:{default:0,options:["default","error","file","image","info","success","system","video","warning"],values:{default:{className:"default",icon:!1},error:{className:"error",icon:"alert"},file:{className:"default",icon:"file"},image:{className:"default",icon:"image"},info:{className:"info",icon:"info"},success:{className:"success",icon:"check_circle"},system:{className:"default",icon:!1},video:{className:"default",icon:"video"},warning:{className:"warning",icon:"alert_warning"}}}}})),define("gds/components/core/alert/container/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:0,options:["bottom","left","left-end","left-start","right","right-end","right-start","top"],values:{bottom:{className:"bottom"},left:{className:"left"},"left-end":{className:"left-end"},"left-start":{className:"left-start"},right:{className:"right"},"right-end":{className:"right-end"},"right-start":{className:"right-start"},top:{className:"top"}}}}})),define("gds/components/core/alert/container/index",["exports","@ember/component","@glimmer/component","@ember/debug","@ember/service","gds/components/core/alert/container/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
var o,l,c
function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,a.createTemplateFactory)({id:"kzS0lrLL",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["zones"]]],null]],null],"placement",[[[41,[30,1,["items","length"]],[[[8,[39,3],null,[["@className","@dir"],[[30,1,["className"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[42,[28,[37,1],[[28,[37,1],[[30,1,["items"]]],null]],null],null,[[[44,[[50,[30,2,["component"]],0,null,null]],[[[8,[30,3],null,[["@alert","@dir","@style","@text"],[[30,2],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2,["style"]],[30,2,["text"]]]],[["icon","button"],[[[[41,[30,2,["icon"]],[[[8,[39,7],null,[["@dir","@name"],[[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2,["icon"]]]],null]],[]],null]],[]],[[[41,[30,2,["button"]],[[[8,[39,8],null,[["@className","@dir","@onClick","@text","@title"],["default",[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2,["button","action"]],[30,2,["button","text"]],[30,2,["button","title"]]]],null]],[]],null]],[]]]]]],[3]]]],[2]],null]],[]]]]]],[]],null]],[1]],null]],["zone","item","alert"],false,["each","-track-array","if","foundations/div","config","let","component","core/icon","core/button"]]',moduleName:"gds/components/core/alert/container/index.hbs",isStrictMode:!1})
let h=e.default=(o=(0,n.inject)("alert"),l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="alertService",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),u(this,"placements",s.default.placement.options)}get elementClassName(){const e=["containeralert"]
return this.className&&e.push(this.className),this.placement&&s.default.placement.values[this.placement].className&&e.push(s.default.placement.values[this.placement].className),e.join(" ")}get className(){return this.args.className??""}get placement(){const e=this.args.placement??s.default.placement.options[s.default.placement.default]
return e}get zones(){return this.placements.map((e=>({placement:e,className:`containeralert ${s.default.placement.values[e].className}`,items:this.alertService.items.filter((t=>t.placement===e))})))}},p=l.prototype,f="alertService",m=[o],g={configurable:!0,enumerable:!0,writable:!0,initializer:null},y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=m.slice().reverse().reduce((function(e,t){return t(p,f,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),c=void 0===y.initializer?(Object.defineProperty(p,f,y),null):y,l)
var p,f,m,g,b,y;(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/alert/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/alert/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"TBvqoe7G",block:'[[[8,[39,0],null,[["@className","@dir","@role"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"alert"]],[["default"],[[[[41,[48,[30,3]],[[[18,3,null]],[]],[[[41,[30,0,["icon"]],[[[8,[39,5],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["icon"]]]],null]],[]],null]],[]]],[8,[39,6],null,[["@className","@dir"],[[28,[37,7],[[30,1]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n  "],[18,4,null],[1,"\\n"]],[]]]]]],["@lineClamp","@text","&icon","&button"],false,["foundations/div","config","if","has-block","yield","core/icon","foundations/p","lineclamp-class"]]',moduleName:"gds/components/core/alert/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["alert"]
return this.className&&e.push(this.className),this.style&&n.default.style.values[this.style].className&&e.push(n.default.style.values[this.style].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get icon(){return n.default.style.values[this.name].icon}get name(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}get style(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/avatar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},shape:{default:0,options:["round","square"],values:{round:{className:"round"},square:{className:"square"}}},size:{default:1,options:["large","medium","small","xlarge","xsmall","xxlarge"],values:{large:{className:"l",height:64,width:64},medium:{className:"m",height:36,width:36},small:{className:"s",height:32,width:32},xlarge:{className:"xl",height:80,width:80},xsmall:{className:"xs",height:24,width:24},xxlarge:{className:"xxl",height:100,width:100}}}}})),define("gds/components/core/avatar/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/avatar/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"PuPveenN",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,[[28,[37,3],null,[["icon","image","initials","text"],[[50,"core/icon",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/image",0,null,[["dir","height","width"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["height"]],[30,0,["width"]]]]],[50,"core/initials",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"foundations/blank",0,null,null]]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["foundations/span","config","yield","hash","component"]]',moduleName:"gds/components/core/avatar/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["avatar"]
return this.className&&e.push(this.className),this.shape&&n.default.shape.values[this.shape].className&&e.push(n.default.shape.values[this.shape].className),this.size&&n.default.size.values[this.size].className&&e.push(n.default.size.values[this.size].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get height(){return n.default.size.values[this.size].height}get shape(){const e=this.args.shape??n.default.shape.options[n.default.shape.default]
return e}get size(){const e=this.args.size??n.default.size.options[n.default.size.default]
return e}get width(){return n.default.size.values[this.size].width}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/backdrop/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/backdrop/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/backdrop/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"tc7RQSpW",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[30,0,["text"]]],[1,"\\n"]],[]]]]]],["&attrs"],false,["foundations/div","config"]]',moduleName:"gds/components/core/backdrop/index.hbs",isStrictMode:!1})
class o extends r.default{get isActive(){return this.args.active??!1}get elementClassName(){const e=["backdrop"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get text(){return this.args.text??"text"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/badge/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={background:{default:0,options:["black","blue","blue-grey","corn-flower","dim-blue-grey","gainsboro","ghost-white","green","grey","ligth-blue","ligth-sky-blue","linen","misty-rose","orange","pale-green","red","slate-blue-grey","transparent","white"],values:{black:{className:"black"},blue:{className:"blue"},"blue-grey":{className:"blue-grey"},"corn-flower":{className:"corn-flower"},"dim-blue-grey":{className:"dim-blue-grey"},gainsboro:{className:"gainsboro"},"ghost-white":{className:"ghost-white"},green:{className:"green"},grey:{className:"grey"},"ligth-blue":{className:"ligth-blue"},"ligth-sky-blue":{className:"ligth-sky-blue"},linen:{className:"linen"},"misty-rose":{className:"misty-rose"},orange:{className:"orange"},"pale-green":{className:"pale-green"},red:{className:"red"},"slate-blue-grey":{className:"slate-blue-grey"},transparent:{className:"transparent"},white:{className:"white"}}},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},shape:{default:0,options:["round","square"],values:{round:{className:"round"},square:{className:"square"}}},size:{default:1,options:["large","medium","small","xsmall"],values:{large:{className:"l"},medium:{className:"m"},small:{className:"s"},xsmall:{className:"xs"}}}}})),define("gds/components/core/badge/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/badge/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"/XpfgKpk",block:'[[[8,[39,0],null,[["@className","@dir","@hidden"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isHidden"]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/mark","config"]]',moduleName:"gds/components/core/badge/index.hbs",isStrictMode:!1})
class o extends r.default{get background(){const e=this.args.background??n.default.background.options[n.default.background.default]
return e}get elementClassName(){const e=["badge"]
return this.className&&e.push(this.className),this.background&&n.default.background.values[this.background].className&&e.push(n.default.background.values[this.background].className),this.shape&&n.default.shape.values[this.shape].className&&e.push(n.default.shape.values[this.shape].className),this.size&&n.default.size.values[this.size].className&&e.push(n.default.size.values[this.size].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isHidden(){return this.args.hidden??""}get shape(){const e=this.args.shape??n.default.shape.options[n.default.shape.default]
return e}get size(){const e=this.args.size??n.default.size.options[n.default.size.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/breadcrumb/button-item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/breadcrumb/button-item/index",["exports","@ember/component","gds/components/core/breadcrumb/item","@ember/debug","gds/components/core/breadcrumb/button-item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"9aeVlOCQ",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@disabled"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,3],null,[["@text"],[[30,2]]],null]],[]],[[[8,[39,4],null,[["@dir","@disabled","@onClick","@tabIndex","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3],[30,4],[30,5]]],[["default"],[[[[41,[48,[30,7]],[[[18,7,null]],[]],[[[1,[30,6]]],[]]]],[]]]]]],[]]],[41,[30,0,["hasSeparator"]],[[[8,[39,7],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"chevron_right"]],null]],[]],null]],[]]]]]],["&attrs","@loadingText","@onClick","@tabIndex","@title","@text","&default"],false,["foundations/li","config","if","core/placeholder/text","core/button","has-block","yield","core/icon"]]',moduleName:"gds/components/core/breadcrumb/button-item/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get isLast(){return this.args.last??!1}get isLoading(){return this.args.loading??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/breadcrumb/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/breadcrumb/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/breadcrumb/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"MmOhNse2",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,[[28,[37,3],null,[["buttonItem","item","linkToItem"],[[50,"core/breadcrumb/button-item",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/breadcrumb/item",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/breadcrumb/link-to-item",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["foundations/ol","config","yield","hash","component"]]',moduleName:"gds/components/core/breadcrumb/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["breadcrumb"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/breadcrumb/item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/breadcrumb/item/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/breadcrumb/item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"S0TaNpNa",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,3],null,[["@text"],[[30,2]]],null]],[]],[[[41,[48,[30,4]],[[[18,4,null]],[]],[[[1,[30,3]]],[]]]],[]]],[41,[30,0,["hasSeparator"]],[[[8,[39,6],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"chevron_right"]],null]],[]],null]],[]]]]]],["&attrs","@loadingText","@text","&default"],false,["foundations/li","config","if","core/placeholder/text","has-block","yield","core/icon"]]',moduleName:"gds/components/core/breadcrumb/item/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["item"]
return this.className&&e.push(this.className),this.isDisabled&&e.push("disable"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isLast(){return this.args.last??!0}get isLoading(){return this.args.loading??!1}get hasSeparator(){return!this.isLast}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/breadcrumb/link-to-item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/breadcrumb/link-to-item/index",["exports","@ember/component","gds/components/core/breadcrumb/item","@ember/debug","gds/components/core/breadcrumb/link-to-item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"2fBV/eVy",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@disabled"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,3],null,[["@text"],[[30,2]]],null]],[]],[[[8,[39,4],null,[["@active","@dir","@disabled","@href","@models","@query","@role","@route","@tabindex","@title"],[[30,0,["isLast"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3],[30,4],[30,5],"link",[30,6],[30,7],[30,8]]],[["default"],[[[[41,[48,[30,10]],[[[18,10,null]],[]],[[[1,[30,9]]],[]]]],[]]]]]],[]]],[41,[30,0,["hasSeparator"]],[[[8,[39,7],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"chevron_right"]],null]],[]],null]],[]]]]]],["&attrs","@loadingText","@href","@models","@query","@route","@tabIndex","@title","@text","&default"],false,["foundations/li","config","if","core/placeholder/text","core/link-to","has-block","yield","core/icon"]]',moduleName:"gds/components/core/breadcrumb/link-to-item/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get isLast(){return this.args.last??!1}get isLoading(){return this.args.loading??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/button/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/button/group/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:10,options:["bottom","bottom-end","bottom-start","left","left-end","left-start","right","right-end","right-start","top","top-end","top-start"],values:{bottom:{className:"bottom"},"bottom-end":{className:"bottom-end"},"bottom-start":{className:"bottom-start"},left:{className:"left"},"left-end":{className:"left-end"},"left-start":{className:"left-start"},right:{className:"right"},"right-end":{className:"right-end"},"right-start":{className:"right-start"},top:{className:"top"},"top-end":{className:"top-end"},"top-start":{className:"top-start"}}}}})),define("gds/components/core/button/group/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/button/group/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"IrIDpewc",block:'[[[8,[39,0],null,[["@className","@dir","@role"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"group"]],[["default"],[[[[1,"\\n\\t"],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["foundations/div","config","yield"]]',moduleName:"gds/components/core/button/group/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["buttongroup"]
return this.className&&e.push(this.className),this.placement&&n.default.placement.values[this.placement].className&&e.push(n.default.placement.values[this.placement].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get placement(){const e=this.args.placement??n.default.placement.options[n.default.placement.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/button/icon-button/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},size:{default:1,options:["large","medium","small","smedium","xmedium","xsmall","xxmedium","xxsmall"],values:{large:{className:"l"},medium:{className:"m"},small:{className:"s"},smedium:{className:"sm"},xmedium:{className:"xm"},xsmall:{className:"xs"},xxmedium:{className:"xxm"},xxsmall:{className:"xxs"}}},style:{default:6,options:["apps","attach","back","camera","camerasolid","check","close","configuration","copy","delete","dropdown","dropup","edit","emoji","expand","facebook","filter","firstpage","help","home","image","information","lastpage","link","linkedin","mail","medal","medalflag","menu","morehorizontal","morevertical","notifications","orderdown","orderup","poll","plus","pluscircle","retry","search","twitter","view"],values:{apps:{className:"apps",icon:"apps"},attach:{className:"attach",icon:"paper_clip"},back:{className:"back",icon:"arrow_left"},camera:{className:"camera",icon:"camera_line"},camerasolid:{className:"camerasolid",icon:"camera_solid"},check:{className:"check",icon:"check"},close:{className:"close",icon:"x"},configuration:{className:"configuration",icon:"settings"},copy:{className:"copy",icon:"copy"},delete:{className:"delete",icon:"trash_2"},dropdown:{className:"dropdown",icon:"chevron_down"},dropup:{className:"dropup",icon:"chevron_up"},edit:{className:"edit",icon:"edit_2"},emoji:{className:"emoji",icon:"emoji_blissful"},expand:{className:"expand",icon:"mail"},facebook:{className:"facebook",icon:"facebook"},filter:{className:"filter",icon:"filter"},firstpage:{className:"firstpage",icon:"first_page"},help:{className:"help",icon:"help_circle"},home:{className:"home",icon:"home"},image:{className:"image",icon:"image"},information:{className:"information",icon:"info"},lastpage:{className:"lastpage",icon:"last_page"},link:{className:"link",icon:"link_2"},linkedin:{className:"linkedin",icon:"linkedin"},mail:{className:"mail",icon:"mail"},medal:{className:"medal",icon:"medal"},medalflag:{className:"medalflag",icon:"medalflag"},menu:{className:"menu",icon:"menu"},morehorizontal:{className:"morehorizontal",icon:"more_horizontal"},morevertical:{className:"morevertical",icon:"more_vertical"},notifications:{className:"notifications",icon:"bell"},orderdown:{className:"orderdown",icon:"order_down"},orderup:{className:"orderup",icon:"order_up"},poll:{className:"poll",icon:"poll"},plus:{className:"plus",icon:"plus"},pluscircle:{className:"pluscircle",icon:"plus_circle"},retry:{className:"retry",icon:"retry"},search:{className:"search",icon:"search"},twitter:{className:"twitter",icon:"twitter"},view:{className:"view",icon:"eye"}}}}})),define("gds/components/core/button/icon-button/index",["exports","@ember/component","gds/components/core/button/index","@ember/debug","gds/components/core/button/icon-button/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"5Uh7ESLA",block:'[[[8,[39,0],[[17,1]],[["@accessKey","@active","@ariaExpanded","@ariaPressed","@className","@dir","@disabled","@id","@onClick","@tabIndex","@title"],[[30,2],[30,0,["isActive"]],[30,3],[30,4],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,5],[30,6],[30,7],[30,8]]],[["default"],[[[[1,"\\n\\t"],[8,[30,9,["icon"]],null,[["@ariaLabel","@dir","@name"],[[30,10],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["icon"]]]],null],[41,[48,[30,11]],[[[8,[30,9,["text"]],null,null,[["default"],[[[[18,11,null]],[]]]]]],[]],[[[41,[30,10],[[[8,[30,9,["text"]],null,null,[["default"],[[[[2,[30,10]]],[]]]]]],[]],null]],[]]]],[9]]]]]],["&attrs","@accessKey","@ariaExpanded","@ariaPressed","@id","@onClick","@tabIndex","@title","b","@text","&default"],false,["core/button","config","if","has-block","yield"]]',moduleName:"gds/components/core/button/icon-button/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["iconbutton",n.default.style.values[this.style].className,n.default.size.values[this.size].className]
return super.className&&e.push(super.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get icon(){const e=[n.default.style.values[this.name].icon]
return super.icon&&e.push(super.icon),e}get name(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}get size(){const e=this.args.size??n.default.size.options[n.default.size.default]
return e}get style(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/button/index",["exports","@ember/component","@glimmer/component","@ember/utils","@ember/debug","gds/components/core/button/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"YDbAubWF",block:'[[[8,[39,0],[[17,1],[4,[38,2],[[30,2]],[["activated"],[[30,0,["accessKeyActivated"]]]]],[4,[38,3],["click",[30,10]],null]],[["@accessKey","@ariaChecked","@ariaExpanded","@ariaPressed","@className","@dataTestSelector","@dir","@disabled","@id","@role","@tabIndex","@title","@type"],[[30,2],[30,3],[30,4],[30,5],[30,0,["elementClassName"]],[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,6],[30,7],[30,8],[30,9],[30,0,["type"]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,5],null,[["@ariaLabel","@className","@dir","@name"],["Loading","loading",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"spinner"]],null]],[]],null],[41,[48,[30,12]],[[[18,12,[[28,[37,8],null,[["badge","icon","text"],[[50,"core/badge",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/icon",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"foundations/blank",0,null,null]]]]]]],[]],[[[1,[30,11]]],[]]]],[]]]]]],["&attrs","@accessKey","@ariaChecked","@ariaExpanded","@ariaPressed","@id","@role","@tabIndex","@title","@onClick","@text","&default"],false,["foundations/button","config","on-key","on-optional","if","core/icon","has-block","yield","hash","component"]]',moduleName:"gds/components/core/button/index.hbs",isStrictMode:!1})
class l extends r.default{get isActive(){return this.args.active??!1}get elementClassName(){const e=[]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.isLoading&&e.push("loading"),e.join(" ")}get className(){return this.args.className??""}get dataTestSelector(){return this.args.dataTestSelector??`qa-${this.className.replace(/\s+/,"-")}-btn`}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get accessKeyActivated(){const{onClick:e,accessKey:t}=this.args
return!(0,i.isEmpty)(t)&&e}get isLoading(){return this.args.loading??!1}get type(){return this.args.type??"button"}}e.default=l,(0,t.setComponentTemplate)(o,l)}))
define("gds/components/core/cards/actions/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/cards/actions/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/actions/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"dEUV4ZOu",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,[[28,[37,3],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir","form"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isForm"]]]]]]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","config","yield","hash","component"]]',moduleName:"gds/components/core/cards/actions/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["cactions"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return this.isForm?"blank":"ol"}get dir(){const e=this.args.dir
if(e)return e}get item(){return this.isForm?"foundations/blank":"foundations/li"}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/cards/body/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/cards/body/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/body/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"cEUILRuH",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","config","yield"]]',moduleName:"gds/components/core/cards/body/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["cbody"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return"div"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/cards/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},style:{default:1,options:["border","shadow"],values:{border:{className:"border"},shadow:{className:"shadow"}}}}})),define("gds/components/core/cards/footer/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/cards/footer/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/footer/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"tDG7T9Q0",block:'[[[8,[39,0],null,[["@className","@component","@dir","@form"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["form"]]]],[["default"],[[[[1,"\\n  "],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","config","yield"]]',moduleName:"gds/components/core/cards/footer/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["cfooter"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return this.isForm?"fieldset":"div"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/cards/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/cards/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"ZzJNXHK7",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","config","yield"]]',moduleName:"gds/components/core/cards/header/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["cheader"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return this.isForm?"fieldset":"div"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/cards/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"QBwdUQkD",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,2,null],[1,"\\n"]],[]]]]],[1,"\\n"]],["&attrs","&default"],false,["core/col","config","yield"]]',moduleName:"gds/components/core/cards/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["cards"]
return this.className&&e.push(this.className),this.style&&n.default.style.values[this.style].className&&e.push(n.default.style.values[this.style].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get style(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/cards/inside/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/cards/inside/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/cards/inside/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"0rAqfjD/",block:'[[[44,[[50,[30,0,["baseComponent"]],0,null,null]],[[[8,[30,1],[[17,2]],[["@className","@dir","@onSubmit","@submitOnEnter"],[[30,0,["elementClassName"]],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,4]]],[["default"],[[[[1,"\\n    "],[18,5,[[28,[37,4],null,[["header","body","footer"],[[50,"core/cards/header",0,null,[["dir","form"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isForm"]]]]],[50,"core/cards/body",0,null,[["dir","form"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isForm"]]]]],[50,"core/cards/footer",0,null,[["dir","form"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isForm"]]]]]]]]]],[1,"\\n  "]],[]]]]]],[1]]],[41,[30,0,["hasSeparator"]],[[[8,[39,6],null,null,null]],[]],null]],["Cards","&attrs","@onSubmit","@submitOnEnter","&default"],false,["let","component","config","yield","hash","if","core/divider"]]',moduleName:"gds/components/core/cards/inside/index.hbs",isStrictMode:!1})
class o extends r.default{get baseComponent(){return this.isForm?"core/form":"foundations/div"}get elementClassName(){const e=["inside"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}get isLast(){return this.args.last??!0}get hasSeparator(){return!this.isLast}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/chip/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/chip/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/chip/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"JWOIX65d",block:'[[[44,[[50,[30,0,["baseComponent"]],0,null,[["accesskey","className","dir","disabled","readOnly","role","tabIndex","title"],[[30,1],[30,0,["elementClassName"]],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,2],[30,0,["elementRole"]],[30,3],[30,4]]]]],[[[44,[[52,[30,0,["isButton"]],[50,[30,5],0,null,[["type"],["button"]]],[50,[30,5],0,null,[["href","models","query","route"],[[30,6],[30,0,["models"]],[30,7],[30,8]]]]]],[[[8,[30,9],[[17,10],[4,[52,[30,0,["isButton"]],[50,[28,[37,5],["modifier:on-optional"],null],2,["click",[30,11]],null]],null,null]],null,[["default"],[[[[1,"\\n\\t\\t\\t"],[18,14,null],[1,"\\n\\t\\t\\t"],[8,[39,7],null,[["@dir"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,15]],[[[18,15,null]],[]],[[[41,[48,[30,16]],[[[18,16,null]],[]],[[[1,[30,12]]],[]]]],[]]]],[]]]]],[41,[30,13],[[[8,[39,9],null,[["@name"],["x_circle"]],null]],[]],null]],[]]]]]],[9]]]],[5]]]],["@accessKey","@readOnly","@tabIndex","@title","Chip","@href","@query","@route","Chip","&attrs","@onClick","@text","@removable","&avatar","&default","&content"],false,["let","component","config","if","modifier","-resolve","yield","foundations/em","has-block","core/icon"]]',moduleName:"gds/components/core/chip/index.hbs",isStrictMode:!1})
class o extends r.default{get baseComponent(){return this.isButton?"foundations/button":"core/link-to"}get isButton(){return Boolean(this.args.onClick)}get elementClassName(){const e=["chip"]
return this.className&&e.push(this.className),this.isDisabled&&e.push("disable"),this.isReadOnly&&e.push("readonly"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isReadOnly(){return this.args.readOnly??!1}get elementRole(){return this.isButton?"button":"link"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/col/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={components:{default:3,options:["article","aside","blank","div","fieldset","form","li","main","nav","ol","section","ul"],values:{article:{component:"foundations/article"},aside:{component:"foundations/aside"},blank:{component:"foundations/blank"},div:{component:"foundations/div"},fieldset:{component:"foundations/fieldset"},form:{component:"foundations/form"},li:{component:"foundations/li"},main:{component:"foundations/main"},nav:{component:"foundations/nav"},ol:{component:"foundations/ol"},section:{component:"foundations/section"},ul:{component:"foundations/ul"}}},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/col/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/col/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"P7cAdwHr",block:'[[[44,[[50,[30,0,["containerColumn"]],0,null,null]],[[[8,[30,1],[[17,2]],[["@ariaLabel","@className","@component","@dir"],[[30,3],[30,0,["elementClassName"]],[30,4],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n    "],[18,5,null],[1,"\\n  "]],[]]]]]],[1]]]],["ContainerColumn","&attrs","@ariaLabel","@component","&default"],false,["let","component","config","yield"]]',moduleName:"gds/components/core/col/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=[]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get containerColumn(){const e=this.args.component??n.default.components.options[n.default.components.default]
return n.default.components.values[e].component}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/container-area/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={animation:{default:2,options:["collapsable-horizontal","collapsable-vertical","fade","none"],values:{"collapsable-horizontal":{className:"collapsable-horizontal"},"collapsable-vertical":{className:"collapsable-vertical"},fade:{className:"fade"},none:{className:""}}},components:{default:2,options:["article","aside","div","fieldset","form","footer","header","main","nav","ol","section","span","table","tbody","tfoot","thead","tr","ul"],values:{article:{component:"foundations/article"},aside:{component:"foundations/aside"},div:{component:"foundations/div"},fieldset:{component:"foundations/fieldset"},footer:{component:"foundations/footer"},form:{component:"foundations/form"},header:{component:"foundations/header"},main:{component:"foundations/main"},nav:{component:"foundations/nav"},ol:{component:"foundations/ol"},section:{component:"foundations/section"},span:{component:"foundations/span"},table:{component:"foundations/table"},tbody:{component:"foundations/tbody"},tfoot:{component:"foundations/tfoot"},thead:{component:"foundations/thead"},tr:{component:"foundations/tr"},ul:{component:"foundations/ul"}}},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/container-area/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/container-area/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"roupCTpn",block:'[[[44,[[50,[30,0,["containerArea"]],0,null,null]],[[[8,[30,1],[[17,2]],[["@className","@component","@dir","@role"],[[30,0,["elementClassName"]],[30,3],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[52,[51,[30,0,["isVisible"]]],"presentation"]]],[["default"],[[[[1,"\\n    "],[18,4,null],[1,"\\n  "]],[]]]]]],[1]]]],["ContainerArea","&attrs","@component","&default"],false,["let","component","config","unless","yield"]]',moduleName:"gds/components/core/container-area/index.hbs",isStrictMode:!1})
class o extends r.default{get animation(){const e=this.args.animation??n.default.animation.options[n.default.animation.default]
return e}get elementClassName(){const e=["containerarea"]
return this.className&&e.push(this.className),this.animation&&n.default.animation.values[this.animation].className&&e.push(n.default.animation.values[this.animation].className),this.isVisible&&e.push("visible"),e.join(" ")}get className(){return this.args.className??""}get containerArea(){const e=this.args.component??n.default.components.options[n.default.components.default]
return n.default.components.values[e].component}get dir(){const e=this.args.dir
if(e)return e}get isVisible(){return this.args.visible??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/divider/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/divider/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/divider/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"TS42/Dam",block:'[[[8,[39,0],null,[["@className","@dir","@role"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"separator"]],null]],[],false,["foundations/hr","config"]]',moduleName:"gds/components/core/divider/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["divider"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/drop-down/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/drop-down/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/object/internals","@ember/debug","tracked-toolbox","gds/components/core/drop-down/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d
function h(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,l.createTemplateFactory)({id:"U6/I15Eq",block:'[[[44,[[28,[37,1],null,[["isVisible","triggerId","close","toggle","visible","button","iconButton"],[[30,0,["isVisible"]],[30,0,["triggerId"]],[30,0,["close"]],[30,0,["toggle"]],[30,0,["visible"]],[50,"core/button",0,null,[["active","ariaExpanded","ariaPressed","className","dir","id","onClick"],[[30,0,["isVisible"]],[52,[30,0,["isVisible"]],"true","false"],[52,[30,0,["isVisible"]],"true","false"],"dropdown",[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["triggerId"]],[30,0,["toggle"]]]]],[50,"core/button/icon-button",0,null,[["active","ariaExpanded","ariaPressed","className","dir","id","onClick","style"],[[30,0,["isVisible"]],[52,[30,0,["isVisible"]],"true","false"],[52,[30,0,["isVisible"]],"true","false"],"dropdown",[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["triggerId"]],[30,0,["toggle"]],"morehorizontal"]]]]]],[28,[37,1],null,[["isVisible","triggerId","close","toggle","visible"],[[30,0,["isVisible"]],[30,0,["triggerId"]],[30,0,["close"]],[30,0,["toggle"]],[30,0,["visible"]]]]]],[[[18,4,[[30,1]]],[1,"\\n  "],[8,[39,6],[[4,[38,7],[[28,[37,8],["#",[30,0,["triggerId"]]],null]],[["placement"],[[30,0,["placement"]]]]],[4,[38,9],[[30,0,["handleClickOutside"]]],[["exceptSelector"],[[28,[37,8],["#",[30,0,["triggerId"]]],null]]]],[4,[38,10],["click",[30,0,["handleClickInside"]]],null],[4,[52,[30,3],[50,[28,[37,12],["modifier:did-insert"],null],2,[[30,3]],null]],null,null]],[["@animation","@dir","@visible"],["collapsable-vertical",[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isVisible"]]]],[["default"],[[[[1,"\\n    "],[18,5,[[30,2]]],[1,"\\n  "]],[]]]]]],[1,2]]]],["triggerYield","contentYield","@onContainerInsert","&trigger","&content"],false,["let","hash","component","if","config","yield","core/container-area","position-relative-to","concat","on-click-outside","on","modifier","-resolve"]]',moduleName:"gds/components/core/drop-down/index.hbs",isStrictMode:!1})
let f=e.default=(c=(0,a.localCopy)("args.open",!1),u=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isVisible",n=this,(i=d)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get dir(){const e=this.args.dir
if(e)return e}get triggerId(){return this.args.triggerId??`drop-down-trigger-${(0,n.guidFor)(this)}`}get closeOnOutsideClick(){return this.args.closeOnOutsideClick??!0}get closeOnInsideClick(){return this.args.closeOnInsideClick??!0}get placement(){return this.args.placement??"bottom-end"}close(){this.isVisible=!1,this.args.onClose&&this.args.onClose()}handleClickInside(){this.closeOnInsideClick&&this.isVisible&&this.close()}handleClickOutside(e){if(this.isVisible){const t=this.args.onClickOutside
t&&t(e),this.closeOnOutsideClick&&this.close()}}toggle(){this.isVisible?this.close():this.visible()}visible(){this.args.onOpen&&this.args.onOpen(),this.isVisible=!0}},d=h(u.prototype,"isVisible",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(u.prototype,"close",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"close"),u.prototype),h(u.prototype,"handleClickInside",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handleClickInside"),u.prototype),h(u.prototype,"handleClickOutside",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handleClickOutside"),u.prototype),h(u.prototype,"toggle",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"toggle"),u.prototype),h(u.prototype,"visible",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"visible"),u.prototype),u);(0,t.setComponentTemplate)(p,f)})),define("gds/components/core/form/auto-suggest/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/object/internals","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
var o,l,c
function u(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function d(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,a.createTemplateFactory)({id:"dULCQ9Gq",block:'[[[1,[28,[35,0],[[30,0,["handleValueUpdate"]],[30,1]],null]],[1,"\\n"],[1,[28,[35,1],[[30,0,["handleValueUpdate"]],[30,1]],null]],[1,"\\n"],[8,[39,2],[[17,2]],[["@disabled","@highlight","@multiple","@onChange","@options","@placeholder","@tabIndex","@title","@value"],[[30,3],[30,4],[30,0,["isMultiple"]],[30,5],[30,6],[30,7],[30,8],[30,9],[30,1]]],[["trigger","option"],[[[[1,"\\n\\t\\t"],[1,[28,[35,0],[[30,0,["registerSelectMethods"]],[30,10,["visible"]],[30,10,["close"]]],null]],[1,"\\n\\t\\t"],[1,[28,[35,1],[[30,0,["handleOptionsUpdate"]],[30,0,["hasOptions"]]],null]],[1,"\\n\\t\\t"],[8,[39,3],[[17,2],[4,[38,4],["blur",[28,[37,5],[[30,0,["handleBlurEvent"]],[30,10,["blurHandler"]]],null]],null],[4,[38,4],["focus",[28,[37,5],[[30,0,["handleFocusEvent"]],[30,10,["isVisible"]]],null]],null],[4,[38,4],["input",[28,[37,5],[[30,0,["handleInputEvent"]],[30,10,["visible"]],[30,10,["close"]]],null]],null],[4,[38,4],["keydown",[28,[37,5],[[30,0,["handleKeydownEvent"]],[30,10,["keydownHandler"]]],null]],null]],[["@className","@id","@placeholder","@tabIndex","@title","@type","@value"],[[30,0,["elementClassName"]],[30,10,["triggerId"]],[30,7],[30,8],[30,9],"text",[30,0,["selectedValueText"]]]],null],[41,[30,11],[[[8,[39,7],null,[["@ariaLabel","@className","@dir","@name"],["Loading","loading",[28,[37,8],["dir"],[["value"],[[30,0,["dir"]]]]],"spinner"]],null]],[]],null]],[10]],[[[41,[48,[30,14]],[[[18,14,[[30,12],[30,13]]]],[]],[[[41,[48,[30,15]],[[[18,15,[[30,12],[30,13]]]],[]],[[[8,[30,13],null,[["@caption","@text","@title"],[[28,[37,11],[[30,12,["caption"]],[30,4]],null],[28,[37,11],[[30,12,["text"]],[30,4]],null],[28,[37,11],[[30,12,["title"]],[30,4]],null]]],null]],[]]]],[]]]],[12,13]]]]]],["@value","&attrs","@disabled","@highlight","@onChange","@options","@placeholder","@tabIndex","@title","select","@loading","option","textBox","&option","&default"],false,["did-insert","did-update","core/form/select","core/form/input","on","fn","if","core/icon","config","has-block","yield","highlighter"]]',moduleName:"gds/components/core/form/auto-suggest/index.hbs",isStrictMode:!1})
let p=e.default=(o=class extends r.default{constructor(...e){super(...e),u(this,"selectedValueText",l,this),u(this,"isFocused",c,this)}get elementClassName(){const e=[""]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get hasOptions(){return Boolean(this.args.options&&this.args.options.length)}get isMultiple(){return Boolean(this.args.multiple)}get uniqueID(){return this.args.uniqueID??"auto-suggest-"+(0,s.guidFor)(this)}get values(){let e=this.args.value
return this.isMultiple?e:[e]}handleBlurEvent(e,t){this.isFocused=!1,e()}handleFocusEvent(e,t){const r=this.args.onFocus
this.isFocused=!0,!e&&this.hasOptions&&this.open(),r&&r(t)}handleInputEvent(e,t,r){const i=this.args.onSearch
let n=r.target.value
i&&i(n,r),this.hasOptions?e():t()}handleKeydownEvent(e,t){const r=t.key
if("Backspace"===r&&!this.isMultiple&&this.values[0]){const e=""
t.target.value=e
const r=this.args.onChange,i=this.args.onSearch
r&&r(e),i&&i(e,t)}" "!==r&&e(t)}handleOptionsUpdate([e]){if(this.isFocused)e?this.open():this.close()
else if(this.isMultiple)this.selectedValueText=""
else if(this.hasOptions){const e=this.values[0],t=this.args.options.find((t=>t.value===e))
t&&(this.selectedValueText=t.text)}}handleValueUpdate(){if(this.isMultiple)return void(this.selectedValueText="")
const e=this.values[0]
if(this.hasOptions){const t=this.args.options.find((t=>t.value===e))
t&&(this.selectedValueText=t.text)}}registerSelectMethods([e,t]){this.open=e,this.close=t}},l=d(o.prototype,"selectedValueText",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=d(o.prototype,"isFocused",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d(o.prototype,"handleBlurEvent",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleBlurEvent"),o.prototype),d(o.prototype,"handleFocusEvent",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleFocusEvent"),o.prototype),d(o.prototype,"handleInputEvent",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleInputEvent"),o.prototype),d(o.prototype,"handleKeydownEvent",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleKeydownEvent"),o.prototype),d(o.prototype,"handleOptionsUpdate",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleOptionsUpdate"),o.prototype),d(o.prototype,"handleValueUpdate",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleValueUpdate"),o.prototype),d(o.prototype,"registerSelectMethods",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"registerSelectMethods"),o.prototype),o);(0,t.setComponentTemplate)(h,p)})),define("gds/components/core/form/checkbox/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={defaultValues:{checked:"on",unchecked:""},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:0,options:["left","right"],values:{left:{className:"left"},right:{className:"right"}}}}})),define("gds/components/core/form/checkbox/index",["exports","@ember/component","gds/components/core/button/index","@ember/object","@ember/debug","tracked-toolbox","ember-ref-bucket","gds/components/core/form/checkbox/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d,h,p
function f(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,l.createTemplateFactory)({id:"shFQlJ9g",block:'[[[8,[39,0],[[16,"checked",[30,0,["isChecked"]]],[4,[38,2],["input"],[["debugName","bucket"],["create-ref",[30,0]]]],[4,[38,3],[[30,0,["computeIndeterminate"]]],null],[4,[38,4],[[30,0,["computeIndeterminate"]],[30,0,["value"]]],null],[4,[38,5],["change",[30,0,["handleChange"]]],null]],[["@dir","@disabled","@hidden","@id","@title","@type"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],true,[30,2],[30,3],"checkbox"]],null],[1,"\\n"],[8,[39,6],[[17,4],[4,[38,8],["blur",[30,8]],null],[4,[38,8],["focus",[30,9]],null]],[["@accessKey","@active","@ariaChecked","@className","@dir","@disabled","@error","@loading","@onClick","@role","@tabIndex","@title"],[[30,5],[30,0,["isChecked"]],[52,[30,0,["isChecked"]],"true","false"],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["isLoading"]],[30,0,["handleClick"]],"checkbox",[30,6],[30,7]]],[["default"],[[[[1,"\\n\\t"],[8,[39,9],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[52,[30,0,["indeterminate"]],"minus","check"]]],null],[1,"\\n\\t"],[8,[39,10],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,3]]],[]]]]],[1,"\\n"]],[]]]]]],["@disabled","@id","@text","&attrs","@accessKey","@tabIndex","@title","@onBlur","@onFocus"],false,["foundations/input","config","create-ref","did-insert","did-update","on","core/button","if","on-optional","core/icon","foundations/span"]]',moduleName:"gds/components/core/form/checkbox/index.hbs",isStrictMode:!1})
let b=e.default=(c=(0,s.localCopy)("args.value",o.default.defaultValues.unchecked),u=(0,a.ref)("input"),d=class extends r.default{constructor(...e){super(...e),f(this,"value",h,this),f(this,"input",p,this)}get checkedValue(){return String(this.args.checkedValue??o.default.defaultValues.checked)}get isChecked(){return this.value===this.checkedValue}get elementClassName(){const e=["checkboxbutton"]
return this.className&&e.push(this.className),this.isError&&e.push("error"),this.placement&&o.default.placement.values[this.placement].className&&e.push(o.default.placement.values[this.placement].className),e.join(" ")}get dir(){const e=this.args.dir
if(e)return e}get isError(){return this.args.error??!1}get placement(){const e=this.args.placement??o.default.placement.options[o.default.placement.default]
return e}get uncheckedValue(){return String(this.args.uncheckedValue??o.default.defaultValues.unchecked)}computeIndeterminate(){const e=this.value===this.checkedValue,t=this.value===this.uncheckedValue,r=!e&&!t
this.input.indeterminate=r}handleChange(e){const t=this.args.onChange,r=e.target.checked
if(this.value=r?this.checkedValue:this.uncheckedValue,this.input.value=this.value,t)return t(e)}handleClick(e){this.input.checked=!this.isChecked,this.input.dispatchEvent(new Event("change"))}},h=m(d.prototype,"value",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(d.prototype,"input",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(d.prototype,"computeIndeterminate",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"computeIndeterminate"),d.prototype),m(d.prototype,"handleChange",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleChange"),d.prototype),m(d.prototype,"handleClick",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleClick"),d.prototype),d);(0,t.setComponentTemplate)(g,b)})),define("gds/components/core/form/color-picker/color/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={style:{className:{black:"black",white:"white"},default:0,options:["black","white"]}}})),define("gds/components/core/form/color-picker/color/index",["exports","@ember/component","gds/components/core/button/index","@ember/object","@glimmer/tracking","@ember/debug","gds/components/core/form/color-picker/color/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c
function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,o.createTemplateFactory)({id:"ozQkPY56",block:'[[[8,[39,0],null,[["@disabled","@hidden","@title","@type"],[[30,1],"hidden",[30,2],"radio"]],null],[1,"\\n"],[8,[39,1],null,[["@accessKey","@active","@className","@disabled","@id","@onClick","@role","@tabIndex","@text","@title"],[[30,3],[30,0,["isActive"]],[30,0,["elementClassName"]],[30,0,["isDisabled"]],[30,4],[30,0,["handleClick"]],"radio",[30,5],[30,2],[30,6]]],null]],["@disabled","@text","@accessKey","@id","@tabIndex","@title"],false,["foundations/input","core/button"]]',moduleName:"gds/components/core/form/color-picker/color/index.hbs",isStrictMode:!1})
let h=e.default=(l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isActive",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get elementClassName(){const e=["colors",a.default.style.className[this.style]]
return super.className&&e.push(super.className),e.join(" ")}get className(){return this.args.className??""}get style(){const e=this.args.style??a.default.style.options[a.default.style.default]
return e}handleClick(e){const t=this.args.onClick
if(this.isActive=!this.isActive,t)return t(e)}},c=u(l.prototype,"isActive",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u(l.prototype,"handleClick",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"handleClick"),l.prototype),l);(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/form/color-picker/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"3h2WcfvI",block:'[[[8,[39,0],null,[["@className","@disabled","@for","@label","@value"],["colorpicker",[30,1],[30,0,["uniqueID"]],[30,2],[30,3]]],[["default"],[[[[1,"\\n\\t"],[18,8,[[31,2]]],[1,"\\n"],[41,[30,4],[[[1,"\\t\\t"],[8,[39,4],null,[["@className"],["pickercontainer"]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,9,[[31,5]]],[1,"\\n\\t\\t\\t"],[8,[39,6],null,[["@dataTestSelector","@disabled","@id","@placeholder","@tabIndex","@title","@type","@value"],[[30,0,["testSelector"]],[30,1],[30,0,["uniqueID"]],[30,5],[30,6],[30,7],"text",[30,3]]],null],[1,"\\n\\t\\t"]],[]]]]],[1,"\\n"]],[]],null]],[]]]]]],["@disabled","@label","@value","@picker","@placeholder","@tabIndex","@title","&color","&picker"],false,["core/form/field","yield","colorYield","if","foundations/span","pickerYield","foundations/input"]]',moduleName:"gds/components/core/form/color-picker/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/core/form/color-picker/picker/index",["exports","@ember/component","gds/components/core/button/index","@ember/object","@ember/template-factory"],(function(e,t,r,i,n){"use strict"
var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,n.createTemplateFactory)({id:"tnT120MH",block:'[[[8,[39,0],null,[["@accessKey","@active","@className","@disabled","@id","@onClick","@tabIndex","@title"],[[30,1],[30,2],"picker",[30,3],[30,4],[30,0,["handleClick"]],[30,5],[30,6]]],[["default"],[[[[1,"\\n\\t"],[8,[30,7,["icon"]],null,[["@name"],["picker"]],null],[1,"\\n\\t"],[8,[30,7,["text"]],null,null,[["default"],[[[[1,[30,8]]],[]]]]],[1,"\\n"]],[7]]]]],[1,"\\n"],[8,[39,1],null,[["@className","@disabled","@type","@value"],["hidden",[30,3],"color",[30,9]]],null]],["@accessKey","@active","@disabled","@id","@tabindex","@title","b","@text","@value"],false,["core/button","foundations/input"]]',moduleName:"gds/components/core/form/color-picker/picker/index.hbs",isStrictMode:!1})
let o=e.default=(s=class extends r.default{handleClick(e){const t=this.args.onClick
if(this.isActive=!this.isActive,t)return t(e)}},l=s.prototype,c="handleClick",u=[i.action],d=Object.getOwnPropertyDescriptor(s.prototype,"handleClick"),h=s.prototype,p={},Object.keys(d).forEach((function(e){p[e]=d[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,c,e)||e}),p),h&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(h):void 0,p.initializer=void 0),void 0===p.initializer&&Object.defineProperty(l,c,p),s)
var l,c,u,d,h,p;(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}}))
define("gds/components/core/form/count/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},limit:{values:{maximum:"200",start:"0"}}}})),define("gds/components/core/form/count/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/count/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"SKf/2nKy",block:'[[[8,[39,0],null,[["@className","@dir"],["count",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,0,["start"]]],[1," / "],[1,[30,0,["maximum"]]],[1,"\\n"]],[]]]]]],[],false,["foundations/small","config"]]',moduleName:"gds/components/core/form/count/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get maximum(){return this.args.maximum??n.default.limit.values.maximum}get start(){return this.args.start??n.default.limit.values.start}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/date-picker/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/date-picker/date-range-picker/index",["exports","@ember/component","@ember/object","@ember/template-factory"],(function(e,t,r,i){"use strict"
var n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"WUAjxYJE",block:'[[[11,"input"],[4,[38,0],[[30,0,["setupDatePicker"]]],null],[12],[13]],[],false,["did-insert"]]',moduleName:"gds/components/core/form/date-picker/date-range-picker/index.hbs",isStrictMode:!1})
let a=e.default=(n=class extends t.default{setupDatePicker(e){const t=window.$(e)
this.instance=t.daterangepicker({singleDatePicker:this.args.range,startDate:this.args.start,endDate:this.args.end,locale:{format:"MM/DD/YYYY",separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom",weekLabel:"W",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1},showDropdowns:this.args.dropdowns??!1,minYear:this.args.minYearDropdown,maxYear:this.args.maxYearDropdown,showCustomRangeLabel:this.showCustomRangeLabel,alwaysShowCalendars:!0})}},o=n.prototype,l="setupDatePicker",c=[r.action],u=Object.getOwnPropertyDescriptor(n.prototype,"setupDatePicker"),d=n.prototype,h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),void 0===h.initializer&&Object.defineProperty(o,l,h),n)
var o,l,c,u,d,h;(0,t.setComponentTemplate)(s,a)})),define("gds/components/core/form/date-picker/day/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/date-picker/day/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/form/date-picker/day/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"roNg6Lk8",block:'[[[8,[39,0],null,[["@active","@className","@dir","@disabled","@error","@for","@label"],[[30,1],"day",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2],[30,3],[30,0,["uniqueID"]],[30,4]]],[["control"],[[[[1,"\\n\\t\\t"],[8,[30,5,["input"]],[[4,[38,2],["blur",[30,12]],null],[4,[38,2],["input",[30,13]],null],[4,[38,2],["focus",[30,14]],null]],[["@ariaLabel","@dataTestSelector","@dir","@disabled","@id","@placeholder","@tabIndex","@title","@type","@value"],[[30,6],[30,7],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]],[30,8],[30,9],[30,10],"number",[30,11]]],null],[1,"\\n\\t"]],[5]]]]]],["@active","@disabled","@error","@label","c","@ariaLabel","@dataTestSelector","@placeholder","@tabIndex","@title","@value","@onBlur","@onChange","@onFocus"],false,["core/form/field","config","on"]]',moduleName:"gds/components/core/form/date-picker/day/index.hbs",isStrictMode:!1})
class l extends r.default{get dir(){const e=this.args.dir
if(e)return e}get uniqueID(){return this.args.id??`form-control-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/form/date-picker/index",["exports","@ember/component","@glimmer/component","@ember/object","ember-ref-bucket","@glimmer/tracking","@ember/debug","gds/components/core/form/date-picker/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d
function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,l.createTemplateFactory)({id:"GEGIBIsK",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@disabled","@error","@focus"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["hasError"]],[30,0,["isFocus"]]]],[["default"],[[[[41,[30,2],[[[8,[39,3],null,[["@dir","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],null]],[]],null],[18,5,null],[1,"\\n\\t"],[18,6,null],[1,"\\n\\t"],[8,[39,0],[[4,[38,5],["container"],[["debugName","bucket"],["create-ref",[30,0]]]]],[["@className"],["container"]],[["default"],[[[[42,[28,[37,7],[[28,[37,7],[[30,0,["parts"]]],null]],null],null,[[[44,[[50,[30,3,["input"]],0,null,null]],[[[8,[30,4],null,[["@dir","@disabled","@error","@label","@onBlur","@onChange","@onFocus","@placeholder","@tabIndex","@title","@value"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["hasError"]],[30,3,["label"]],[28,[37,10],[[30,0,["handlePartBlur"]],[30,3,["name"]]],null],[28,[37,10],[[30,0,["handlePartChange"]],[30,3,["name"]]],null],[28,[37,10],[[30,0,["handlePartFocus"]],[30,3,["name"]]],null],[30,3,["placeholder"]],[30,3,["tabIndex"]],[30,3,["title"]],[30,3,["value"]]]],null]],[4]]]],[3]],null]],[]]]]],[1,"\\n\\t"],[18,7,null],[1,"\\n\\t"],[18,8,null],[1,"\\n"]],[]]]]]],["&attrs","@label","part","Input","&icon","&popup","&instruction","&error"],false,["core/col","config","if","core/form/label","yield","create-ref","each","-track-array","let","component","fn"]]',moduleName:"gds/components/core/form/date-picker/index.hbs",isStrictMode:!1})
let m=e.default=(c=(0,n.ref)("container"),u=class extends r.default{get elementClassName(){const e=["field datepicker"]
return this.className&&e.push(this.className),this.isDisabled&&e.push("disable"),this.hasError&&e.push("error"),this.isFocus&&e.push("focus"),this.isLoading&&e.push("loading"),this.isOpen&&e.push("open"),e.join(" ")}get className(){return this.args.className??""}constructor(){var e,t,r,i
super(...arguments),e=this,t="container",i=this,(r=d)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0}),h(this,"partComponents",["core/form/date-picker/day","core/form/date-picker/month","core/form/date-picker/year"]),h(this,"partOrder",["Y","M","D"]),h(this,"values",{})
const n=(this.args.value||"").split(/[/ -]/),s=this.partOrder.filter((e=>this.inputFormat.includes(e)))
for(let a=0;a<s.length;a++)this.values[s[a]]=n[a]}get dataTestSelector(){return this.args.dataTestSelector??`qa-element-${this.uniqueID}`}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get hasError(){return this.args.error??!1}get isFocus(){return this.args.focus??!1}get inputFormat(){return(this.args.format||"Y-M-D").toUpperCase().split(/[/ -]/)}get isLoading(){return this.args.loading??!1}get outputFormat(){return this.partOrder.filter((e=>this.inputFormat.indexOf(e)>=0))}get parts(){const e=Boolean(this.args.value),t=(this.args.value||"").split(/[/ -]/),r={D:"day",M:"month",Y:"year"}
return this.inputFormat.map(((i,n)=>({accessKey:this.args[`${r[i]}AccessKey`],ariaLabel:this.args[`${r[i]}AriaLabel`],input:this.partComponents[this.partOrder.indexOf(i)],label:this.args[`${r[i]}Label`],name:i,placeholder:this.args[`${r[i]}Placeholder`],tabIndex:this.args[`${r[i]}TabIndex`],title:this.args[`${r[i]}Title`],value:e?String(Number(t[this.outputFormat.indexOf(i)])):""})))}handlePartBlur(e,t){if(!this.args.onBlur||!t)return
let r=t.target
"blur"===t.type&&(r=t.relatedTarget),this.container.contains(r)||this.args.onBlur(t)}handlePartChange(e,t){const r=t?.target?.value??t
this.values={...this.values,[e]:r}
let i=""
this.inputFormat.every((e=>Boolean(this.values[e])))&&(i=this.outputFormat.map((e=>this.values[e].padStart("Y"===e?4:2,"0"))).join("-")),this.args.onChange&&i!==this.args.value&&this.args.onChange(i)}handlePartFocus(e,t){this.args.onFocus&&this.args.onFocus(t)}},d=p(u.prototype,"container",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(u.prototype,"handlePartBlur",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handlePartBlur"),u.prototype),p(u.prototype,"handlePartChange",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handlePartChange"),u.prototype),p(u.prototype,"handlePartFocus",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handlePartFocus"),u.prototype),u);(0,t.setComponentTemplate)(f,m)})),define("gds/components/core/form/date-picker/month/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/date-picker/month/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/service","@ember/debug","gds/components/core/form/date-picker/month/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,o.createTemplateFactory)({id:"XIBCP8GP",block:'[[[8,[39,0],null,[["@active","@className","@dir","@disabled","@error","@for","@label"],[[30,1],"month",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2],[30,3],[30,0,["uniqueID"]],[30,4]]],[["control"],[[[[1,"\\n\\t\\t"],[8,[30,5,["select"]],null,[["@dir","@dataTestSelector","@disabled","@id","@loading","@onBlur","@onChange","@onFocus","@options","@placeholder","@tabIndex","@title","@value"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,6],[30,2],[30,0,["uniqueID"]],[30,7],[30,8],[30,9],[30,10],[30,0,["options"]],[30,11],[30,12],[30,13],[30,14]]],null],[1,"\\n\\t"]],[5]]]]]],["@active","@disabled","@error","@label","c","@dataTestSelector","@loading","@onBlur","@onChange","@onFocus","@placeholder","@tabIndex","@title","@value"],false,["core/form/field","config"]]',moduleName:"gds/components/core/form/date-picker/month/index.hbs",isStrictMode:!1})
let d=e.default=(l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="gdsConfig",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get dir(){const e=this.args.dir
if(e)return e}get options(){return(this.args.months??this.gdsConfig.get("forms.datepicker.months")).map(((e,t)=>({value:String(t+1),text:e})))}get uniqueID(){return this.args.id??`form-control-${(0,i.guidFor)(this)}`}},h=l.prototype,p="gdsConfig",f=[n.inject],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(h,p,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),c=void 0===b.initializer?(Object.defineProperty(h,p,b),null):b,l)
var h,p,f,m,g,b;(0,t.setComponentTemplate)(u,d)})),define("gds/components/core/form/date-picker/year/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/date-picker/year/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/form/date-picker/year/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"B6mcxPj9",block:'[[[8,[39,0],null,[["@active","@className","@dir","@disabled","@error","@for","@label"],[[30,1],"year",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2],[30,3],[30,0,["uniqueID"]],[30,4]]],[["control"],[[[[1,"\\n\\t\\t"],[8,[30,5,["input"]],[[4,[38,2],["blur",[30,12]],null],[4,[38,2],["input",[30,13]],null],[4,[38,2],["focus",[30,14]],null]],[["@ariaLabel","@dataTestSelector","@dir","@disabled","@id","@placeholder","@tabIndex","@title","@type","@value"],[[30,6],[30,7],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]],[30,8],[30,9],[30,10],"number",[30,11]]],null],[1,"\\n\\t"]],[5]]]]]],["@active","@disabled","@error","@label","c","@ariaLabel","@dataTestSelector","@placeholder","@tabIndex","@title","@value","@onBlur","@onChange","@onFocus"],false,["core/form/field","config","on"]]',moduleName:"gds/components/core/form/date-picker/year/index.hbs",isStrictMode:!1})
class l extends r.default{get dir(){const e=this.args.dir
if(e)return e}get uniqueID(){return this.args.id??`form-control-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/form/error/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/error/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/error/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"SU5oSW0B",block:'[[[8,[39,0],null,[["@className","@dir"],["errors",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/strong","config"]]',moduleName:"gds/components/core/form/error/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/field-button/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/field-button/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/form/field-button/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"y5igbKwe",block:'[[[8,[39,0],[[17,1],[4,[38,2],["click",[30,3]],null]],[["@accessKey","@className","@dir","@disabled","@for"],[[30,2],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]]]],[["default"],[[[[1,"\\n\\t"],[18,5,[[28,[37,4],null,[["dataTestSelector","dir","disabled","error","id","loading","checkbox","radio","switch"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["uniqueID"]],[30,0,["isLoading"]],[50,"core/form/checkbox",0,null,[["dataTestSelector","dir","disabled","error","id"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["uniqueID"]]]]],[50,"core/form/radio",0,null,[["dataTestSelector","dir","disabled","error","id"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["uniqueID"]]]]],[50,"core/form/switch",0,null,[["dataTestSelector","dir","disabled","id","loading"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]],[30,0,["isLoading"]]]]]]]]]],[41,[30,4],[[[8,[39,7],null,[["@className","@dir"],["inside",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,4],[[[8,[39,8],null,[["@dir","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4]]],null]],[]],null],[18,6,null],[1,"\\n\\t\\t\\t"],[18,7,null],[1,"\\n\\t\\t\\t"],[18,8,null],[1,"\\n\\t\\t"]],[]]]]]],[]],null]],[]]]]]],["&attrs","@accessKey","@onClick","@label","&control","&text","&link","&error"],false,["foundations/label","config","on-optional","yield","hash","component","if","foundations/span","core/form/label"]]',moduleName:"gds/components/core/form/field-button/index.hbs",isStrictMode:!1})
class l extends r.default{get elementClassName(){const e=["fieldbutton"]
return this.className&&e.push(this.className),this.isDisabled&&e.push("disable"),this.isError&&e.push("error"),e.join(" ")}get className(){return this.args.className??""}get dataTestSelector(){return this.args.dataTestSelector??`qa-element-${this.uniqueID}`}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isError(){return this.args.error??!1}get uniqueID(){return this.args.id??`form-control-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/form/field/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/field/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/form/field/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"wnHLz6gv",block:'[[[8,[39,0],[[17,1],[4,[38,2],["click",[30,3]],null]],[["@accessKey","@active","@className","@dir","@disabled","@error","@focus","@for"],[[30,2],[30,0,["isActive"]],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["hasError"]],[30,0,["isFocus"]],[30,0,["uniqueID"]]]],[["default"],[[[[41,[30,4],[[[8,[39,4],null,[["@dir","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4]]],null]],[]],null],[18,6,null],[1,"\\n\\t"],[18,7,null],[1,"\\n\\t"],[18,8,[[28,[37,6],null,[["dataTestSelector","dir","disabled","id","autosuggest","input","select","textArea"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]],[50,"core/form/auto-suggest",0,null,[["dataTestSelector","dir","disabled","id"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]]]]],[50,"core/form/input",0,null,[["dataTestSelector","dir","disabled","id"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]]]]],[50,"core/form/select",0,null,[["dataTestSelector","dir","disabled","id","loading"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]],[30,0,["isLoading"]]]]],[50,"core/form/text-area",0,null,[["dataTestSelector","dir","disabled","id"],[[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["uniqueID"]]]]]]]]]],[41,[30,5],[[[8,[39,8],null,[["@className","@dir","@title"],["tag",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5]]],[["default"],[[[[1,[30,5]]],[]]]]]],[]],null],[18,9,null],[1,"\\n\\t"],[18,10,null],[1,"\\n\\t"],[18,11,null],[1,"\\n"]],[]]]]]],["&attrs","@accessKey","@onClick","@label","@tag","&icon","&popup","&control","&instruction","&count","&error"],false,["foundations/label","config","on-optional","if","core/form/label","yield","hash","component","foundations/abbr"]]',moduleName:"gds/components/core/form/field/index.hbs",isStrictMode:!1})
class l extends r.default{get isActive(){return this.args.active??!1}get elementClassName(){const e=["field"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.hasError&&e.push("error"),this.isFocus&&e.push("focus"),this.isLoading&&e.push("loading"),this.isOpen&&e.push("open"),this.isTag&&e.push("withtag"),e.join(" ")}get className(){return this.args.className??""}get dataTestSelector(){return this.args.dataTestSelector??`qa-element-${this.uniqueID}`}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get hasError(){return this.args.error??!1}get isFocus(){return this.args.focus??!1}get isLoading(){return this.args.loading??!1}get isTag(){return this.args.tag??!1}get uniqueID(){return this.args.id??`form-control-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/form/fieldset/column/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/fieldset/column/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/fieldset/column/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"GzsTCe4q",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["core/form/fieldset","config","yield"]]',moduleName:"gds/components/core/form/fieldset/column/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["column"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/fieldset/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/fieldset/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/fieldset/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"Nf6bE9Xo",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[18,2,null],[1,"\\n"]],[]]]]]],["@className","&default"],false,["foundations/fieldset","config","yield"]]',moduleName:"gds/components/core/form/fieldset/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/debug","gds/components/core/form/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,a.createTemplateFactory)({id:"3iHgbPGX",block:'[[[8,[39,0],[[17,1],[4,[38,2],["keypress",[30,0,["handleFormKeypressEvent"]]],null],[4,[38,3],["submit",[30,5]],null]],[["@action","@className","@dir","@method"],[[30,2],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4]]],[["default"],[[[[1,"\\n\\t"],[18,6,null],[1,"\\n"]],[]]]]]],["&attrs","@action","@className","@method","@onSubmit","&default"],false,["foundations/form","config","on","on-optional","yield"]]',moduleName:"gds/components/core/form/index.hbs",isStrictMode:!1})
let c=e.default=(o=class extends r.default{get dir(){const e=this.args.dir
if(e)return e}get submitOnEnter(){return this.args.submitOnEnter??!1}handleFormKeypressEvent(e){this.submitOnEnter||"Enter"!==e.key||"TEXTAREA"===e.target.nodeName||e.preventDefault()}},u=o.prototype,d="handleFormKeypressEvent",h=[i.action],p=Object.getOwnPropertyDescriptor(o.prototype,"handleFormKeypressEvent"),f=o.prototype,m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=h.slice().reverse().reduce((function(e,t){return t(u,d,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,d,m),o)
var u,d,h,p,f,m;(0,t.setComponentTemplate)(l,c)})),define("gds/components/core/form/input/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},types:{default:18,options:["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"]}}})),define("gds/components/core/form/input/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/input/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"HtK8Y3lK",block:'[[[8,[39,0],[[17,1]],[["@ariaLabel","@dataTestSelector","@dir","@disabled","@id","@maxLength","@placeholder","@tabIndex","@title","@type","@value"],[[30,2],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,0,["type"]],[30,10]]],null],[41,[30,0,["isClearButtonVisible"]],[[[8,[39,3],null,[["@dir","@onClick","@size","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,11],"small","close"]],null]],[]],null]],["&attrs","@ariaLabel","@dataTestSelector","@disabled","@id","@maxLength","@placeholder","@tabIndex","@title","@value","@onClear"],false,["foundations/input","config","if","core/button/icon-button"]]',moduleName:"gds/components/core/form/input/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get isClearButtonVisible(){return!this.args.disabled&&this.args.onClear&&this.hasValue}get type(){const e=this.args.type??n.default.types.options[n.default.types.default]
return e}get hasValue(){return Boolean(this.args.value)}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/instruction/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/instruction/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/instruction/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"i9GEmGAU",block:'[[[8,[39,0],null,[["@className","@dir"],["instruction",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/small","config"]]',moduleName:"gds/components/core/form/instruction/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/label/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/label/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/label/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"2/fXWJi1",block:'[[[8,[39,0],null,[["@className","@dir"],["label",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/em","config"]]',moduleName:"gds/components/core/form/label/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/radio/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={defaultValues:{checked:"on"},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:0,options:["left","right"],values:{left:{className:"left"},right:{className:"right"}}}}})),define("gds/components/core/form/radio/index",["exports","@ember/component","gds/components/core/button/index","@ember/object","tracked-toolbox","ember-ref-bucket","@ember/debug","gds/components/core/form/radio/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d,h,p
function f(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,l.createTemplateFactory)({id:"es/elMpF",block:'[[[8,[39,0],[[16,"checked",[30,0,["isChecked"]]],[4,[38,2],["input"],[["debugName","bucket"],["create-ref",[30,0]]]],[4,[38,3],["change",[30,0,["handleChange"]]],null]],[["@dir","@disabled","@hidden","@title","@type","@id"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],true,[30,2],"radio",[30,3]]],null],[1,"\\n"],[8,[39,4],[[17,4],[4,[38,6],["blur",[30,8]],null],[4,[38,6],["focus",[30,9]],null]],[["@accessKey","@active","@ariaChecked","@className","@dir","@disabled","@error","@loading","@onClick","@role","@tabIndex","@title"],[[30,5],[30,0,["isChecked"]],[52,[30,0,["isChecked"]],"true","false"],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["isLoading"]],[30,0,["handleClick"]],"radio",[30,6],[30,7]]],[["default"],[[[[1,"\\n\\t"],[8,[39,7],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n"]],[]]]]]],["@disabled","@text","@id","&attrs","@accessKey","@tabIndex","@title","@onBlur","@onFocus"],false,["foundations/input","config","create-ref","on","core/button","if","on-optional","foundations/span"]]',moduleName:"gds/components/core/form/radio/index.hbs",isStrictMode:!1})
let b=e.default=(c=(0,n.localCopy)("args.value",o.default.defaultValues.unchecked),u=(0,s.ref)("input"),d=class extends r.default{constructor(...e){super(...e),f(this,"value",h,this),f(this,"input",p,this)}get checkedValue(){return String(this.args.checkedValue??o.default.defaultValues.checked)}get isChecked(){return this.value===this.checkedValue}get elementClassName(){const e=["radiobutton"]
return this.className&&e.push(this.className),this.isError&&e.push("error"),this.placement&&o.default.placement.values[this.placement].className&&e.push(o.default.placement.values[this.placement].className),e.join(" ")}get dir(){const e=this.args.dir
if(e)return e}get isError(){return this.args.error??!1}get placement(){const e=this.args.placement??o.default.placement.options[o.default.placement.default]
return e}handleChange(e){const t=this.args.onChange,r=e.target.checked
if(this.value=r?this.checkedValue:this.uncheckedValue,this.input.value=this.value,t)return t(e)}handleClick(e){this.isChecked||(this.input.checked=!0,this.input.dispatchEvent(new Event("change")))}},h=m(d.prototype,"value",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(d.prototype,"input",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(d.prototype,"handleChange",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleChange"),d.prototype),m(d.prototype,"handleClick",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleClick"),d.prototype),d);(0,t.setComponentTemplate)(g,b)}))
define("gds/components/core/form/select/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/select/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/debug","ember-ref-bucket","tracked-toolbox","gds/components/core/form/select/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l,c){"use strict"
var u,d,h,p
function f(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,c.createTemplateFactory)({id:"8F3HtL7e",block:'[[[8,[39,0],null,[["@closeOnInsideClick","@dir","@onClickOutside","@onOpen","@triggerId"],[false,[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["handleOverallBlurEvent"]],[30,0,["resetHighlightedOption"]],[30,1]]],[["trigger","content"],[[[[44,[[28,[37,3],[[30,2],[28,[37,4],null,[["active","blurHandler","className","focusHandler","keydownHandler","selectedOptions"],[[30,3],[28,[37,5],[[30,0,["handleTriggerBlurEvent"]],[30,2,["isVisible"]]],null],[30,0,["elementClassName"]],[30,0,["handleTriggerFocusEvent"]],[28,[37,5],[[30,0,["handleKeydownEvent"]],[30,2,["isVisible"]],[30,2,["visible"]],[30,2,["close"]]],null],[30,0,["selectedOptions"]]]]]],null]],[[[41,[48,[30,19]],[[[18,19,[[30,4]]]],[]],[[[8,[39,9],[[17,5],[4,[38,10],["blur",[30,4,["blurHandler"]]],null],[4,[38,10],["focus",[30,4,["focusHandler"]]],null],[4,[38,10],["keydown",[30,4,["keydownHandler"]]],null]],[["@active","@className","@dataTestSelector","@dir","@disabled","@id","@onClick","@tabIndex","@title"],[[30,3],[30,0,["elementClassName"]],[30,6],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,7],[30,2,["triggerId"]],[30,2,["toggle"]],[30,8],[30,9]]],[["default"],[[[[42,[28,[37,12],[[28,[37,12],[[30,0,["selectedOptions"]]],null]],null],null,[[[41,[48,[30,20]],[[[18,20,[[30,10],[50,"core/list/item/text-box",0,null,null]]]],[]],[[[41,[48,[30,21]],[[[18,21,[[30,10],[50,"core/list/item/text-box",0,null,null]]]],[]],[[[41,[48,[30,22]],[[[18,22,[[30,10],[50,"core/list/item/text-box",0,null,null]]]],[]],[[[8,[39,14],null,[["@caption","@text","@title"],[[30,10,["caption"]],[30,10,["text"]],[30,10,["title"]]]],null]],[]]]],[]]]],[]]]],[10]],[[[1,[30,11]]],[]]],[41,[30,12],[[[8,[39,15],null,[["@ariaLabel","@className","@dir","@name"],["Loading","loading",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"spinner"]],null]],[]],[[[8,[39,15],null,[["@className","@dir","@name"],["last",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[52,[30,2,["isVisible"]],"chevron_up","chevron_down"]]],null]],[]]]],[]]]]]],[]]]],[4]]]],[2]],[[[1,"\\n\\t\\t"],[8,[39,16],null,null,[["default"],[[[[42,[28,[37,12],[[28,[37,12],[[30,0,["options"]]],null]],null],"value",[[[41,[28,[37,17],[[30,15,["type"]],"divider"],null],[[[1,"\\t\\t\\t\\t\\t"],[8,[39,18],null,null,[["default"],[[[[1,"\\n\\t\\t\\t\\t\\t\\t"],[8,[39,19],null,null,null],[1,"\\n\\t\\t\\t\\t\\t"]],[]]]]],[1,"\\n"]],[]],[[[1,"\\t\\t\\t\\t\\t"],[8,[30,14,["buttonItem"]],[[4,[38,22],[[28,[37,23],["option",[30,16]],null]],[["debugName","bucket"],["create-ref",[30,0]]]],[4,[38,10],["keydown",[28,[37,5],[[30,0,["handleKeydownEvent"]],[30,13,["isVisible"]],[30,13,["visible"]],[30,13,["close"]]],null]],null]],[["@active","@onClick"],[[28,[37,20],[[28,[37,21],[[30,0,["values"]],[30,15,["value"]]],null],[28,[37,17],[[30,0,["highlightedIndex"]],[30,16]],null]],null],[28,[37,5],[[30,0,["selectOption"]],[30,16],[30,13,["close"]]],null]]],[["default"],[[[[41,[30,0,["isMultiple"]],[[[8,[39,24],null,[["@tabIndex","@value"],[-1,[52,[28,[37,21],[[30,0,["values"]],[30,15,["value"]]],null],"on",""]]],null]],[]],null],[41,[48,[30,21]],[[[18,21,[[30,15],[30,17,["textBox"]]]]],[]],[[[41,[48,[30,22]],[[[18,22,[[30,15],[30,17,["textBox"]]]]],[]],[[[8,[30,17,["textBox"]],null,[["@caption","@text","@title"],[[28,[37,25],[[30,15,["caption"]],[30,18]],null],[28,[37,25],[[30,15,["text"]],[30,18]],null],[28,[37,25],[[30,15,["title"]],[30,18]],null]]],null]],[]]]],[]]]],[17]]]]],[1,"\\n"]],[]]]],[15,16]],null]],[14]]]]],[1,"\\n\\t"]],[13]]]]]],["@id","dt","@active","select","&attrs","@dataTestSelector","@disabled","@tabIndex","@title","option","@placeholder","@loading","dc","l","option","index","i","@highlight","&trigger","&selected","&option","&default"],false,["core/drop-down","config","let","merge","hash","fn","if","has-block","yield","core/button","on","each","-track-array","component","core/list/item/text-box","core/icon","core/list","eq","foundations/li","core/divider","or","in-array","create-ref","concat","core/form/checkbox","highlighter"]]',moduleName:"gds/components/core/form/select/index.hbs",isStrictMode:!1})
let b=e.default=(u=(0,o.localCopy)("args.value"),d=class extends r.default{constructor(...e){super(...e),f(this,"highlightedIndex",h,this),f(this,"value",p,this)}get elementClassName(){const e=["select"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isMultiple(){return Boolean(this.args.multiple)}get options(){let e=[]
return this.args.options?this.args.options.map(((e,t)=>({...e,value:String(e.value),index:t}))):e}get selectedOptions(){const e=[]
for(const t of this.values){const r=this.options.find((e=>e.value===t))
r&&e.push(r)}return e}get values(){let e=this.value
return Array.isArray(e)?e:[e]}setValue(e){const t=this.args.onChange
this.value=e,t&&t(e)}handleKeydownEvent(e,t,r,i){i.key
const n="ArrowDown",s="ArrowUp",o=" ",l="Enter",c="Escape"
if(!e)return void([s,n,o].includes(i.key)&&(t(),i.preventDefault()))
if([s,n,o,l,c,"Tab"].includes(i.key)&&i.preventDefault(),i.key===c)return void r()
let u,d=this.highlightedIndex
if([o,l].includes(i.key))return void this.selectOption(d,r)
i.key===n&&(u=1),i.key===s&&(u=-1)
do{d+=u}while("divider"===this.options[d]?.type)
d=Math.max(0,Math.min(d,this.options.length-1)),this.highlightedIndex=d
const h=(0,a.nodeFor)(this,`option${d}`)
h&&h.scrollIntoView({block:"nearest"})}handleOverallBlurEvent(e){const t=this.args.onBlur
t&&t(e)}handleTriggerBlurEvent(e,t){const r=this.args.onBlur
r&&!e&&r(t)}handleTriggerFocusEvent(e){const t=this.args.onFocus
t&&t(e)}resetHighlightedOption(){let e=this.options.findIndex((e=>this.values.includes(e.value)))
e=e<0?0:e,this.highlightedIndex=e}selectOption(e,t){const r=this.options[e]
if(this.isMultiple){let e=this.values
e=this.values.includes(r.value)?e.filter((e=>e!==r.value)):[...e,r.value],this.setValue(e)}else{this.setValue(r.value),t()
const e=this.args.onBlur
e&&e()}this.highlightedIndex=e}},h=m(d.prototype,"highlightedIndex",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=m(d.prototype,"value",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(d.prototype,"handleKeydownEvent",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleKeydownEvent"),d.prototype),m(d.prototype,"handleOverallBlurEvent",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleOverallBlurEvent"),d.prototype),m(d.prototype,"handleTriggerBlurEvent",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleTriggerBlurEvent"),d.prototype),m(d.prototype,"handleTriggerFocusEvent",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleTriggerFocusEvent"),d.prototype),m(d.prototype,"resetHighlightedOption",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"resetHighlightedOption"),d.prototype),m(d.prototype,"selectOption",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"selectOption"),d.prototype),d);(0,t.setComponentTemplate)(g,b)})),define("gds/components/core/form/switch/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={defaultValues:{on:"on",off:""},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:1,options:["left","right"],values:{left:{className:"left"},right:{className:"right"}}}}})),define("gds/components/core/form/switch/index",["exports","@ember/component","gds/components/core/button/index","@ember/object","tracked-toolbox","ember-ref-bucket","@ember/debug","gds/components/core/form/switch/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d,h,p
function f(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,l.createTemplateFactory)({id:"hnwnAltv",block:'[[[8,[39,0],[[16,"checked",[30,0,["isOn"]]],[4,[38,2],["input"],[["debugName","bucket"],["create-ref",[30,0]]]],[4,[38,3],[[30,0,["computeIndeterminate"]]],null],[4,[38,4],[[30,0,["computeIndeterminate"]],[30,0,["value"]]],null],[4,[38,5],["change",[30,0,["handleChange"]]],null]],[["@dir","@disabled","@hidden","@id","@title","@type"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],true,[30,2],[30,3],"checkbox"]],null],[1,"\\n"],[8,[39,6],[[17,4],[4,[38,8],["blur",[30,8]],null],[4,[38,8],["focus",[30,9]],null]],[["@accessKey","@active","@ariaChecked","@className","@dir","@disabled","@error","@loading","@onClick","@role","@tabIndex","@title"],[[30,5],[30,0,["isOn"]],[52,[30,0,["isOn"]],"true","false"],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["isError"]],[30,0,["isLoading"]],[30,0,["handleClick"]],"switch",[30,6],[30,7]]],[["default"],[[[[1,"\\n\\t"],[8,[39,9],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,3]]],[]]]]],[1,"\\n"]],[]]]]]],["@disabled","@id","@text","&attrs","@accessKey","@tabIndex","@title","@onBlur","@onFocus"],false,["foundations/input","config","create-ref","did-insert","did-update","on","core/button","if","on-optional","foundations/span"]]',moduleName:"gds/components/core/form/switch/index.hbs",isStrictMode:!1})
let b=e.default=(c=(0,n.localCopy)("args.value",o.default.defaultValues.off),u=(0,s.ref)("input"),d=class extends r.default{constructor(...e){super(...e),f(this,"value",h,this),f(this,"input",p,this)}get elementClassName(){const e=["switch"]
return this.className&&e.push(this.className),this.isError&&e.push("error"),this.placement&&o.default.placement.values[this.placement].className&&e.push(o.default.placement.values[this.placement].className),e.join(" ")}get dir(){const e=this.args.dir
if(e)return e}get isError(){return this.args.error??!1}get offValue(){return String(this.args.offValue??o.default.defaultValues.off)}get onValue(){return String(this.args.onValue??o.default.defaultValues.on)}get isOn(){return this.value===this.onValue}get placement(){const e=this.args.placement??o.default.placement.options[o.default.placement.default]
return e}computeIndeterminate(){const e=this.value===this.onValue,t=this.value===this.offValue,r=!e&&!t
this.input.indeterminate=r}handleChange(e){const t=this.args.onChange,r=e.target.checked
if(this.value=r?this.onValue:this.offValue,this.input.value=this.value,t)return t(e)}handleClick(e){this.input.checked=!this.isOn,this.input.dispatchEvent(new Event("change"))}},h=m(d.prototype,"value",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(d.prototype,"input",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(d.prototype,"computeIndeterminate",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"computeIndeterminate"),d.prototype),m(d.prototype,"handleChange",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleChange"),d.prototype),m(d.prototype,"handleClick",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleClick"),d.prototype),d);(0,t.setComponentTemplate)(g,b)})),define("gds/components/core/form/text-area/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/text-area/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/text-area/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"oFGgnKuk",block:'[[[8,[39,0],[[17,1]],[["@cols","@dataTestSelector","@dir","@disabled","@id","@maxlength","@placeholder","@rows","@tabIndex","@title","@value"],[[30,2],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11]]],null]],["&attrs","@cols","@dataTestSelector","@disabled","@id","@maxLength","@placeholder","@rows","@tabIndex","@title","@value"],false,["foundations/text-area","config"]]',moduleName:"gds/components/core/form/text-area/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/form/text/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/form/text/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/form/text/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"VAqaRP0O",block:'[[[8,[39,0],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/small","config"]]',moduleName:"gds/components/core/form/text/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"reIRNREn",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@className","@dir"],[[29,[[28,[37,3],null,null]," inside"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t"],[8,[39,2],null,[["@className","@dir"],[[30,0,["elementLeftClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,1,null],[1,"\\n\\t\\t"]],[]]]]],[1,"\\n\\t\\t"],[8,[39,2],null,[["@className","@dir"],[[30,0,["elementCenterClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,2,null],[1,"\\n\\t\\t"]],[]]]]],[1,"\\n\\t\\t"],[8,[39,2],null,[["@className","@dir"],[[30,0,["elementRightClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,3,null],[1,"\\n\\t\\t"]],[]]]]],[1,"\\n\\t"]],[]]]]],[1,"\\n"]],[]]]]]],["&left","&center","&right"],false,["foundations/header","config","core/col","grid","yield"]]',moduleName:"gds/components/core/header/index.hbs",isStrictMode:!1})
class o extends r.default{get elementCenterClassName(){const e=["center"]
return this.centerClassName&&e.push(this.centerClassName),e.join(" ")}get centerClassName(){return this.args.centerClassName??""}get elementClassName(){const e=["headerapp"]
return this.className&&e.push(this.className),this.isSticky&&e.push("sticky"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get elementLeftClassName(){const e=["left"]
return this.leftClassName&&e.push(this.leftClassName),e.join(" ")}get leftClassName(){return this.args.leftClassName??""}get elementRightClassName(){const e=["right"]
return this.rightClassName&&e.push(this.rightClassName),e.join(" ")}get rightClassName(){return this.args.rightClassName??""}get isSticky(){return this.args.sticky??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/icon/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/icon/index",["exports","@ember/component","@glimmer/component","ember-get-config","@ember/debug","gds/components/core/icon/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"Ig9/2Ifg",block:'[[[8,[39,0],[[17,1]],[["@ariaLabel","@className","@dir","@id","@role"],[[30,0,["ariaLabel"]],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2],"img"]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@dir","@url"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["path"]]]],null],[1,"\\n"]],[]]]]]],["&attrs","@id"],false,["foundations/span","config","foundations/svg"]]',moduleName:"gds/components/core/icon/index.hbs",isStrictMode:!1})
class l extends r.default{get ariaLabel(){return this.args.ariaLabel??"icon"}get elementClassName(){const e=["icon"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get path(){const{name:e}=this.args,{rootURL:t}=i.default
return t+"assets/icons-58d46b1efc546e721e2b7231ff93e7c3.svg#"+e}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/image/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/image/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@ember/runloop","@glimmer/tracking","@ember/debug","gds/components/core/image/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l,c){"use strict"
var u,d,h,p,f
function m(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function g(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,c.createTemplateFactory)({id:"NzUfmMi0",block:'[[[44,[[50,"foundations/img",0,null,[["alt","dir","height","src","srcset","title","width"],[[30,1],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["height"]],[30,0,["src"]],[30,2],[30,3],[30,0,["width"]]]]]],[[[41,[30,5],[[[8,[39,4],null,[["@className","@dir"],[[30,6],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n      "],[8,[30,4],[[16,"dir",[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]],[4,[38,5],["load",[30,0,["setDimensions"]]],null]],null,null],[1,"\\n    "]],[]]]]]],[]],[[[8,[30,4],[[16,"dir",[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]],[4,[38,5],["load",[30,0,["setDimensions"]]],null]],null,null]],[]]]],[4]]]],["@alt","@srcSet","@title","Img","@container","@className"],false,["let","component","config","if","foundations/figure","on"]]',moduleName:"gds/components/core/image/index.hbs",isStrictMode:!1})
let y=e.default=(u=class extends r.default{constructor(...e){super(...e),m(this,"gdsConfig",d,this),m(this,"isLoaded",h,this),m(this,"srcHeight",p,this),m(this,"srcWidth",f,this)}get dir(){const e=this.args.dir
if(e)return e}get height(){return this.args.height?this.args.height:this.args.width&&this.isLoaded?Math.round(this.srcHeight*this.args.width/this.srcWidth):this.srcWidth?this.srcHeight:null}get src(){const[e,t]=this.args.src.split("?"),r=new URLSearchParams(t)
return this.args.width&&r.set(this.gdsConfig.get("images.sizeQueryParams.width"),this.args.width),this.args.height&&r.set(this.gdsConfig.get("images.sizeQueryParams.height"),this.args.height),`${e}?${r}`}get width(){return this.args.width?this.args.width:this.args.height&&this.isLoaded?Math.round(this.srcWidth*this.args.height/this.srcHeight):this.srcWidth?this.srcWidth:null}setDimensions(){const e=new Image
this.isLoaded=!1,e.onload=()=>{(0,s.run)((()=>{this.isLoaded=!0,this.srcHeight=e.height,this.srcWidth=e.width}))},e.src=this.src}},d=g(u.prototype,"gdsConfig",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=g(u.prototype,"isLoaded",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=g(u.prototype,"srcHeight",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=g(u.prototype,"srcWidth",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),g(u.prototype,"setDimensions",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"setDimensions"),u.prototype),u);(0,t.setComponentTemplate)(b,y)})),define("gds/components/core/initials/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/initials/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/initials/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"i1c+WBkI",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["className"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[30,0,["initials"]]],[1,"\\n"]],[]]]]]],[],false,["foundations/span","config"]]',moduleName:"gds/components/core/initials/index.hbs",isStrictMode:!1})
class o extends r.default{get className(){return`initials ${(this.words[0]??"").charAt(0).toLowerCase()}`}get typoComponent(){const e=this.args.component??n.default.components.options[n.default.components.default]
return n.default.components.values[e].component}get initials(){return this.words.reduce(((e,t="")=>e+t.charAt(0).toUpperCase()),"")}get words(){return this.args.words??[]}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/link-to/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},style:{default:1,options:["default","link","primary","secondary"],values:{default:{className:"default"},link:{className:"link"},primary:{className:"contained"},secondary:{className:"outline"}}}}})),define("gds/components/core/link-to/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@ember/debug","gds/components/core/link-to/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c
function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,o.createTemplateFactory)({id:"tXwC0HKA",block:'[[[8,[39,0],[[17,1],[4,[38,2],["click",[30,0,["handleClick"]]],null]],[["@accessKey","@className","@dataTestSelector","@dir","@href","@id","@role","@tabIndex","@target","@title"],[[30,2],[30,0,["elementClassName"]],[30,0,["dataTestSelector"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["href"]],[30,3],[30,4],[30,5],[30,6],[30,7]]],[["default"],[[[[41,[48,[30,9]],[[[18,9,[[28,[37,6],null,[["href","isActive"],[[30,0,["href"]],[30,0,["isActive"]]]]]]]],[]],[[[1,[30,8]]],[]]]],[]]]]]],["&attrs","@accessKey","@id","@role","@tabIndex","@target","@title","@text","&default"],false,["foundations/a","config","on","if","has-block","yield","hash"]]',moduleName:"gds/components/core/link-to/index.hbs",isStrictMode:!1})
let h=e.default=(l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="router",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get isActive(){const e=this.args.active
if(void 0!==e)return Boolean(e)
return!!this.args.route&&this.router.isActive(...this.routeParams)}get elementClassName(){const e=[a.default.style.values[this.style].className]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),e.join(" ")}get className(){return this.args.className??""}get dataTestSelector(){return this.args.dataTestSelector??`qa-${this.className.replace(/\s+/,"-")}-link-to`}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get href(){return this.args.href??this.hasPoundRoute?"#":this.router.urlFor(...this.routeParams)}get models(){return this.args.models?this.args.models:this.args.model?[this.args.model]:[]}get routeParams(){const e=[this.args.route??this.router.currentRouteName,...this.models]
return this.query&&e.push({queryParams:{...this.query}}),e}get hasPoundRoute(){return"#"===this.args.route}get style(){const e=this.args.style??a.default.style.options[a.default.style.default]
return e}handleClick(e){if(this.isDisabled)return
const t=this.args.onClick
t&&t(e)
const r=Boolean(this.args.href),i=0===e.button&&(e.ctrlKey||e.metaKey)
r||this.hasPoundRoute||i||(e.preventDefault(),this.args.replace?this.router.replaceWith(...this.routeParams):this.router.transitionTo(...this.routeParams))}},c=u(l.prototype,"router",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"handleClick",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"handleClick"),l.prototype),l);(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/list/button-item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/button-item/index",["exports","@ember/component","gds/components/core/list/item","@ember/debug","gds/components/core/list/button-item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"lzyguk8/",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@id"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@accessKey","@active","@className","@dir","@disabled","@id","@loading","@onClick","@role","@tabIndex","@title"],[[30,3],[30,0,["isActive"]],"item",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,4],[30,0,["isLoading"]],[30,5],"button",[30,6],[30,7]]],[["default"],[[[[41,[48,[30,16]],[[[18,16,[[28,[37,6],null,[["textBox"],[[50,"core/list/item/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,8],null,[["@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame"],[[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null]],[]]]],[]]]]],[1,"\\n  "],[18,17,null],[1,"\\n"]],[]]]]]],["&attrs","@id","@accessKey","@idButton","@onClick","@tabIndex","@titleButton","@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","&default","&last"],false,["foundations/li","config","core/button","if","has-block","yield","hash","component","core/list/item/text-box"]]',moduleName:"gds/components/core/list/button-item/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"4LfS59tX",block:'[[[44,[[50,[30,0,["baseComponent"]],0,null,null]],[[[8,[30,1],[[17,2]],[["@ariaHidden","@className","@dir"],[[30,3],[30,0,["elementClassName"]],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n    "],[18,4,[[28,[37,4],null,[["buttonItem","item","linkToItem"],[[50,"core/list/button-item",0,null,[["dir"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/list/item",0,null,[["dir"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/list/link-to-item",0,null,[["dir"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n  "]],[]]]]]],[1]]]],["List","&attrs","@ariaHidden","&default"],false,["let","component","config","yield","hash"]]',moduleName:"gds/components/core/list/index.hbs",isStrictMode:!1})
class o extends r.default{get baseComponent(){return this.isOrdered?"foundations/ol":"foundations/ul"}get elementClassName(){const e=["listcontainer"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isOrdered(){return this.args.ordered??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"kxEezbqC",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@id"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],[["default"],[[[[41,[48,[30,11]],[[[18,11,[[28,[37,5],null,[["textBox"],[[50,"core/list/item/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,7],null,[["@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10]]],null]],[]]],[18,12,null],[1,"\\n"]],[]]]]]],["&attrs","@id","@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","&default","&last"],false,["foundations/li","config","if","has-block","yield","hash","component","core/list/item/text-box"]]',moduleName:"gds/components/core/list/item/index.hbs",isStrictMode:!1})
class o extends r.default{get isActive(){return this.args.active??!1}get elementClassName(){const e=["listitem"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.isLoading&&e.push("loading"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isLoading(){return this.args.loading??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/item/text-box/caption/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/text-box/caption/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/text-box/caption/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"mMf/R7Rd",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/small","config"]]',moduleName:"gds/components/core/list/item/text-box/caption/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["lcaption"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/item/text-box/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/text-box/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/text-box/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"7uXrBZ33",block:'[[[8,[39,0],null,[["@className","@dir"],["inside",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,10]],[[[18,10,[[28,[37,5],null,[["title","caption","text","timeFrame"],[[50,"core/list/item/text-box/title",0,null,[["className","dir"],[[28,[37,7],[[30,1]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/list/item/text-box/caption",0,null,[["className","dir"],[[28,[37,7],[[30,2]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/list/item/text-box/text",0,null,[["className","dir"],[[28,[37,7],[[30,3]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/list/item/text-box/time-frame",0,null,[["className","dir"],[[28,[37,7],[[30,4]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[41,[30,5],[[[8,[39,8],null,[["@className","@dir","@text"],[[28,[37,7],[[30,1]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5]]],null]],[]],null],[41,[30,6],[[[8,[39,9],null,[["@className","@dir","@text"],[[28,[37,7],[[30,2]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,6]]],null]],[]],null],[41,[30,7],[[[8,[39,10],null,[["@className","@dir","@text"],[[28,[37,7],[[30,3]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,7]]],null]],[]],null],[41,[30,8],[[[8,[39,11],null,[["@className","@dateTime","@dir","@text"],[[28,[37,7],[[30,4]],null],[30,9],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,8]]],null]],[]],null]],[]]]],[]]]]]],["@lineClampTitle","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@title","@caption","@text","@timeFrame","@dateTime","&default"],false,["foundations/span","config","if","has-block","yield","hash","component","lineclamp-class","core/list/item/text-box/title","core/list/item/text-box/caption","core/list/item/text-box/text","core/list/item/text-box/time-frame"]]',moduleName:"gds/components/core/list/item/text-box/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/item/text-box/text/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/text-box/text/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/text-box/text/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"wkPK3pjO",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/em","config"]]',moduleName:"gds/components/core/list/item/text-box/text/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["ltext"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)}))
define("gds/components/core/list/item/text-box/time-frame/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/text-box/time-frame/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/text-box/time-frame/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"Qx4H6Wq1",block:'[[[8,[39,0],null,[["@className","@dateTime","@dir"],[[30,0,["elementClassName"]],[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[30,2]],[1,"\\n"]],[]]]]]],["@dateTime","@text"],false,["foundations/time","config"]]',moduleName:"gds/components/core/list/item/text-box/time-frame/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["ltimeframe"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/item/text-box/title/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/item/text-box/title/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/list/item/text-box/title/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"VmpigK5G",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/strong","config"]]',moduleName:"gds/components/core/list/item/text-box/title/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["ltitle"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/list/link-to-item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/list/link-to-item/index",["exports","@ember/component","gds/components/core/list/item","@ember/object/internals","@ember/debug","gds/components/core/list/link-to-item/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"CsW8vNi5",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@id"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],[["default"],[[[[1,"\\n  "],[8,[39,2],[[16,"aria-label",[30,0,["ariaLabel"]]]],[["@accessKey","@active","@className","@dir","@disabled","@href","@id","@loading","@models","@query","@role","@route","@tabindex","@title"],[[30,3],[30,4],"item",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,5],[30,6],[30,0,["isLoading"]],[30,0,["models"]],[30,7],"link",[30,8],[30,9],[30,10]]],[["default"],[[[[41,[48,[30,19]],[[[18,19,[[28,[37,6],null,[["textBox"],[[50,"core/list/item/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,8],null,[["@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame"],[[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18]]],null]],[]]]],[]]]]],[1,"\\n  "],[18,20,null],[1,"\\n"]],[]]]]]],["&attrs","@id","@accessKey","@active","@href","@idLink","@query","@route","@tabIndex","@titleLink","@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","&default","&last"],false,["foundations/li","config","core/link-to","if","has-block","yield","hash","component","core/list/item/text-box"]]',moduleName:"gds/components/core/list/link-to-item/index.hbs",isStrictMode:!1})
class l extends r.default{get ariaLabel(){return this.args.ariaLabel??`link-${(0,i.guidFor)(this)}`}get dir(){const e=this.args.dir
if(e)return e}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/loading/index",["exports","gds/components/core/progress-bar/index"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get ariaLabel(){return"loading"}get shape(){return"circular"}}e.default=r})),define("gds/components/core/modal/actions/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/modal/actions/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/modal/actions/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"JWbxtAhJ",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","config","yield"]]',moduleName:"gds/components/core/modal/actions/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["actions"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return this.isForm?"blank":"ol"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/modal/body/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/modal/body/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/modal/body/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"I9sSQtrj",block:'[[[8,[39,0],[[24,"tabindex","0"]],[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,3],null,[["@dir","@size"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"small"]],null]],[]],[[[18,1,null]],[]]]],[]]]]]],["&default"],false,["core/col","config","if","core/loading","yield"]]',moduleName:"gds/components/core/modal/body/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["mbody"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return"div"}get dir(){const e=this.args.dir
if(e)return e}get isLoading(){return this.args.loading??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/modal/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:0,options:["left","media","right"]}}})),define("gds/components/core/modal/container/index",["exports","@ember/component","@glimmer/component","@ember/service","@ember/template-factory"],(function(e,t,r,i,n){"use strict"
var s,a,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,n.createTemplateFactory)({id:"XVjHo23U",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["items"]]],null]],null],"id",[[[44,[[50,[30,1,["component"]],0,null,null]],[[[8,[30,2],null,[["@modal","@onClose"],[[30,1],[30,1,["close"]]]],null]],[2]]]],[1]],null]],["item","modal"],false,["each","-track-array","let","component"]]',moduleName:"gds/components/core/modal/container/index.hbs",isStrictMode:!1})
let c=e.default=(s=(0,i.inject)("modal"),a=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="modalService",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get items(){return this.modalService.items}},u=a.prototype,d="modalService",h=[s],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=h.slice().reverse().reduce((function(e,t){return t(u,d,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),o=void 0===m.initializer?(Object.defineProperty(u,d,m),null):m,a)
var u,d,h,p,f,m;(0,t.setComponentTemplate)(l,c)})),define("gds/components/core/modal/footer/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/modal/footer/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/modal/footer/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"2zScmrUn",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@form"],[[30,1]]],[["default"],[[[[1,"\\n    "],[18,2,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["@form","&default"],false,["core/col","config","core/modal/actions","yield"]]',moduleName:"gds/components/core/modal/footer/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["mfooter"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return this.isForm?"fieldset":"div"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/modal/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/modal/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/modal/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"lBjrIAtn",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementClassName"]],[30,0,["component"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementLeftClassName"]],[30,0,["leftComponent"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,1],[[[44,[[50,[30,0,["containerComponent"]],0,null,null]],[[[41,[30,3],[[[8,[30,2],null,null,[["control"],[[[[1,"\\n              "],[8,[39,5],null,[["@dir","@id","@onClick","@style","@text","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4,["id"]],[30,5],[30,0,["extraStyle"]],[30,1],[30,6]]],null],[1,"\\n            "]],[4]]]]]],[]],[[[8,[30,2],null,null,[["default"],[[[[1,"\\n            "],[8,[39,5],null,[["@dir","@onClick","@style","@text","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5],[30,0,["extraStyle"]],[30,1],[30,6]]],null],[1,"\\n          "]],[]]]]]],[]]]],[2]]]],[]],null],[41,[30,7],[[[8,[39,6],null,[["@className","@dir"],[[28,[37,7],[[30,8]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[1,[30,7]],[41,[30,9],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,7],[[30,10]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,9]]],[]]]]]],[]],null]],[]]]]]],[]],null]],[]]]]],[41,[30,11],[[[8,[39,0],null,[["@className","@component","@dir"],[[30,0,["elementRightClassName"]],[30,0,["rightComponent"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n      "],[8,[39,9],null,[["@dir","@form"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3]]],[["default"],[[[[1,"\\n        "],[18,12,null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]]],[]],null]],[]]]]]],["@extraText","Container","@form","c","@onExtraClick","@extraTitle","@title","@lineClampTitle","@caption","@lineClampCaption","@placement","&default"],false,["core/col","config","if","let","component","core/button/icon-button","foundations/h2","lineclamp-class","foundations/small","core/modal/actions","yield"]]',moduleName:"gds/components/core/modal/header/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["mheader"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get component(){return"div"}get containerComponent(){return this.isForm?"core/form/field-button":"foundations/blank"}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}get elementLeftClassName(){const e=["left"]
return this.leftClassName&&e.push(this.leftClassName),e.join(" ")}get leftClassName(){return this.args.leftClassName??""}get leftComponent(){return this.isForm?"fieldset":"div"}get elementRightClassName(){const e=["right"]
return this.rightClassName&&e.push(this.rightClassName),e.join(" ")}get rightClassName(){return this.args.rightClassName??""}get rightComponent(){return this.isForm?"fieldset":"div"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/modal/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","ember-ref-bucket","@ember/debug","gds/components/core/modal/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d,h,p
function f(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function m(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,l.createTemplateFactory)({id:"oR3FHH02",block:'[[[8,[39,0],[[17,1],[4,[38,1],["click",[30,0,["handleBackdropClick"]]],null]],[["@active"],[[30,0,["isOpen"]]]],null],[1,"\\n"],[8,[39,2],[[16,"data-placement",[30,2]],[4,[38,4],["dialog"],[["debugName","bucket"],["create-ref",[30,0]]]],[4,[38,5],[[30,0,["setup"]]],null],[4,[38,6],[[30,0,["updateVisibility"]],[30,0,["isOpen"]]],null],[4,[38,7],[[30,0,["teardown"]]],null]],[["@ariaLabel","@className","@dir","@role"],[[30,0,["role"]],[30,0,["elementClassName"]],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["role"]]]],[["default"],[[[[44,[[50,[30,0,["baseComponent"]],0,null,null]],[[[8,[30,3],null,[["@dir","@method","@onSubmit","@submitOnEnter"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],"dialog",[30,4],[30,5]]],[["default"],[[[[1,"\\n      "],[8,[39,10],null,[["@caption","@dir","@extraId","@extraStyle","@extraText","@extraTitle","@form","@lineClampCaption","@lineClampTitle","@onExtraClick","@placement","@title"],[[30,6],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,2],[30,15]]],[["default"],[[[[41,[30,2],[[[18,17,null]],[]],null]],[]]]]],[41,[48,[30,18]],[[[8,[39,14],null,[["@dir","@loading"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],[30,16]]],[["default"],[[[[1,"\\n          "],[18,18,null],[1,"\\n        "]],[]]]]]],[]],null],[41,[51,[30,2]],[[[8,[39,16],null,[["@dir","@form"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],[30,11]]],[["default"],[[[[1,"\\n          "],[18,17,null],[1,"\\n        "]],[]]]]]],[]],null]],[]]]]]],[3]]]],[]]]]]],["&attrs","@placement","Modal","@onSubmit","@submitOnEnter","@caption","@extraId","@extraStyle","@extraText","@extraTitle","@form","@lineClampCaption","@lineClampTitle","@onExtraClick","@title","@loading","&actions","&body"],false,["core/backdrop","on","foundations/dialog","config","create-ref","did-insert","did-update","will-destroy","let","component","core/modal/header","if","yield","has-block","core/modal/body","unless","core/modal/footer"]]',moduleName:"gds/components/core/modal/index.hbs",isStrictMode:!1})
let b=e.default=(c=(0,n.inject)("component-stack"),u=(0,s.ref)("dialog"),d=class extends r.default{constructor(...e){super(...e),f(this,"componentStackService",h,this),f(this,"dialog",p,this)}get baseComponent(){return this.isForm?"core/form":"foundations/blank"}get elementClassName(){const e=["modal"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isForm(){return this.args.form??!1}get isLoading(){return this.args.loading??!1}get isOpen(){return Boolean(this.args.open)}get placement(){const e=this.args.placement
return e}get role(){return this.args.role??"dialog"}handleBackdropClick(e){const t=this.args.onClose,r=this.args.backdropClose??!0,i=this.args.onBackdropClick
return i?i(e):r&&t?t(e):void 0}setup(e){this.updateVisibility(e),this.componentStackService.add("esc-key",this),this.escapeHandler=e=>{const t=this.args.escapeClose??!0,r="Escape"===e.key,i=this.isOpen,n=this.componentStackService.isTop("esc-key",this)
t&&r&&i&&n&&(e.stopImmediatePropagation(),this.args.onClose(e))},window.document.addEventListener("keydown",this.escapeHandler)}teardown(e){this.componentStackService.remove("esc-key",this),window.document.removeEventListener("keydown",this.escapeHandler)}updateVisibility(e){this.isOpen?e.show():e.close()}},h=m(d.prototype,"componentStackService",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(d.prototype,"dialog",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(d.prototype,"handleBackdropClick",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"handleBackdropClick"),d.prototype),m(d.prototype,"setup",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"setup"),d.prototype),m(d.prototype,"teardown",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"teardown"),d.prototype),m(d.prototype,"updateVisibility",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"updateVisibility"),d.prototype),d);(0,t.setComponentTemplate)(g,b)})),define("gds/components/core/navigation-bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/navigation-bar/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/navigation-bar/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"zeIP1Op4",block:'[[[8,[39,0],[[17,1]],[["@ariaLabel","@className","@component","@dir"],["Navigation App",[30,0,["elementClassName"]],"nav",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,2],[[[8,[39,3],null,[["@className","@dir"],["header",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n      "],[18,3,null],[1,"\\n    "]],[]]]]]],[]],null],[41,[48,[30,4]],[[[8,[39,3],[[24,"tabindex","0"]],[["@className","@dir"],["body",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n      "],[18,4,null],[1,"\\n    "]],[]]]]]],[]],null],[41,[48,[30,5]],[[[8,[39,3],null,[["@className","@dir"],["footer",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n      "],[18,5,null],[1,"\\n    "]],[]]]]]],[]],null]],[]]]]]],["&attrs","@hasHeader","&header","&body","&footer"],false,["core/col","config","if","foundations/div","yield","has-block"]]',moduleName:"gds/components/core/navigation-bar/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["navigationbar"]
return this.className&&e.push(this.className),this.isSticky&&e.push("sticky"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isSticky(){return this.args.sticky??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/caption/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/pagination/caption/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/pagination/caption/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"DKmQ3Dmc",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,1],[[[1,"    "],[1,[30,1]],[1,"\\n"]],[]],null],[41,[30,2],[[[1,"    "],[1,[30,2]],[1,"\\n"]],[]],null],[41,[30,3],[[[1,"    - "],[1,[30,3]],[1,"\\n"]],[]],null],[41,[30,4],[[[1,"    "],[1,[30,4]],[1,"\\n"]],[]],null],[41,[30,5],[[[1,"    "],[1,[30,5]],[1,"\\n"]],[]],null]],[]]]]]],["@caption","@number","@start","@text","@end"],false,["foundations/p","config","if"]]',moduleName:"gds/components/core/pagination/caption/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["caption"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/pagination/icon/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/pagination/icon/index",["exports","@ember/component","gds/components/core/button/icon-button/index","@ember/debug","gds/components/core/pagination/icon/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"utLpnt8i",block:'[[[8,[39,0],[[17,1]],[["@active","@dir","@disabled","@onClick","@size","@style","@tabIndex","@text","@title"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,4],"small",[52,[30,0,["isFirst"]],"firstpage","lastpage"],[30,5],[30,6],[30,7]]],null]],["&attrs","@active","@disabled","@onClick","@tabIndex","@text","@title"],false,["core/button/icon-button","config","if"]]',moduleName:"gds/components/core/pagination/icon/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get isFirst(){return this.args.first??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/pagination/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"oxFbiGyF",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,1,[[28,[37,3],null,[["caption","firstPageButton","lastPageButton","navigationButtons","pageButton","text"],[[50,"core/pagination/caption",0,null,null],[50,"core/pagination/icon",0,null,[["first"],[true]]],[50,"core/pagination/icon",0,null,null],[50,"core/pagination/navigation",0,null,null],[50,"core/pagination/number",0,null,null],[50,"core/pagination/text",0,null,null]]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["foundations/div","config","yield","hash","component"]]',moduleName:"gds/components/core/pagination/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["pagination"]
return this.className&&e.push(this.className),this.style&&n.default.style.values[this.style].className&&e.push(n.default.style.values[this.style].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/navigation/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/template-factory"],(function(e,t,r,i,n){"use strict"
var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,n.createTemplateFactory)({id:"KNybCy+5",block:'[[[8,[39,0],null,[["@animation"],["none"]],[["default"],[[[[42,[28,[37,2],[[28,[37,2],[[30,0,["items"]]],null]],null],null,[[[41,[28,[37,4],[[30,1],"first"],null],[[[8,[39,5],null,[["@first","@onClick"],[true,[28,[37,6],[[30,2],1],null]]],null]],[]],[[[41,[28,[37,4],[[30,1],"last"],null],[[[8,[39,5],null,[["@onClick"],[[28,[37,6],[[30,2],[30,0,["totalPages"]]],null]]],null]],[]],[[[41,[28,[37,7],[[28,[37,4],[[30,1],"start-ellipsis"],null],[28,[37,4],[[30,1],"end-ellipsis"],null]],null],[[[8,[39,8],null,[["@className"],["ellipsis"]],[["default"],[[[[1,"..."]],[]]]]]],[]],[[[8,[39,9],null,[["@active","@number","@onClick"],[[28,[37,4],[[30,0,["page"]],[30,1]],null],[30,1],[28,[37,6],[[30,0,["handlePageSelect"]],[30,1]],null]]],null]],[]]]],[]]]],[]]]],[1]],null]],[]]]]]],["item","@onSelect"],false,["core/container-area","each","-track-array","if","eq","core/pagination/icon","fn","or","foundations/span","core/pagination/number"]]',moduleName:"gds/components/core/pagination/navigation/index.hbs",isStrictMode:!1})
let o=e.default=(s=class extends r.default{get boundaryCount(){return Number(this.args.boundaryCount??1)}get items(){const e=this.boundaryCount,t=this.totalPages,r=this.siblingCount,i=this.page,n=this.range(1,Math.min(e,t)),s=this.range(Math.max(t-e+1,e+1),t),a=Math.max(Math.min(i-r,t-e-2*r-1),e+2),o=Math.min(Math.max(i+r,e+2*r+2),s.length>0?s[0]-2:t-1),l=[]
return this.showFirstButton&&l.push("first"),l.push(...n),a>e+2?l.push("start-ellipsis"):e+1<t-e&&l.push(e+1),l.push(...this.range(a,o)),o<t-e-1?l.push("end-ellipsis"):t-e>e&&l.push(t-e),l.push(...s),this.showLastButton&&l.push("last"),l}get page(){return Number(this.args.page??1)}get showFirstButton(){return this.args.showFirstButton??!0}get showLastButton(){return this.args.showLastButton??!0}get siblingCount(){return Number(this.args.siblingCount??1)}get totalPages(){return Number(this.args.totalPages??1)}range(e,t){return Array.from({length:t-e+1},((t,r)=>e+r))}handlePageSelect(e,t){const r=this.args.onSelect
r&&r(e,t)}},l=s.prototype,c="handlePageSelect",u=[i.action],d=Object.getOwnPropertyDescriptor(s.prototype,"handlePageSelect"),h=s.prototype,p={},Object.keys(d).forEach((function(e){p[e]=d[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,c,e)||e}),p),h&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(h):void 0,p.initializer=void 0),void 0===p.initializer&&Object.defineProperty(l,c,p),s)
var l,c,u,d,h,p;(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/number/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/pagination/number/index",["exports","@ember/component","gds/components/core/button/index","@ember/debug","gds/components/core/pagination/number/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"h3wbfhRq",block:'[[[8,[39,0],[[17,1]],[["@accessKey","@active","@className","@dir","@disabled","@id","@onClick","@tabIndex","@title"],[[30,2],[30,0,["isActive"]],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3],[30,4],[30,5],[30,6]]],[["default"],[[[[1,"\\n  "],[1,[30,7]],[1,"\\n"]],[]]]]]],["&attrs","@accessKey","@id","@onClick","@tabIndex","@title","@number"],false,["core/button","config"]]',moduleName:"gds/components/core/pagination/number/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["number"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/pagination/text/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}}))
define("gds/components/core/pagination/text/index",["exports","@ember/component","gds/components/core/button/index","@ember/debug","gds/components/core/pagination/text/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"MSYqS9ZJ",block:'[[[8,[39,0],[[17,1]],[["@accessKey","@active","@className","@dir","@disabled","@id","@onClick","@tabIndex","@title"],[[30,2],[30,0,["isActive"]],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3],[30,4],[30,5],[30,6]]],[["default"],[[[[1,"\\n  "],[1,[30,7]],[1,"\\n\\t"],[8,[39,2],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"chevron_down"]],null],[1,"\\n"]],[]]]]]],["&attrs","@accessKey","@id","@onClick","@tabIndex","@title","@text"],false,["core/button","config","core/icon"]]',moduleName:"gds/components/core/pagination/text/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["text"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/placeholder/avatar/index",["exports","gds/components/core/placeholder/index"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),r(this,"shape","round")}}e.default=i})),define("gds/components/core/placeholder/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},shape:{default:0,options:["line","round","square"],values:{line:{className:"line"},round:{className:"round"},square:{className:"square"}}},size:{default:1,options:["large","medium","small","xlarge","xsmall","xxlarge"],values:{large:{className:"l",height:64,width:64},medium:{className:"m",height:36,width:36},small:{className:"s",height:32,width:32},xlarge:{className:"xl",height:80,width:80},xsmall:{className:"xs",height:24,width:24},xxlarge:{className:"xxl",height:100,width:100}}}}})),define("gds/components/core/placeholder/icon/index",["exports","gds/components/core/placeholder/index"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),r(this,"shape","square")}}e.default=i})),define("gds/components/core/placeholder/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/placeholder/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"F3gVSEy3",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[1,[30,1]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/span","config"]]',moduleName:"gds/components/core/placeholder/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["placeholder"]
return this.className&&e.push(this.className),this.shape&&n.default.shape.values[this.shape].className&&e.push(n.default.shape.values[this.shape].className),this.size&&n.default.size.values[this.size].className&&e.push(n.default.size.values[this.size].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get shape(){const e=this.args.shape??n.default.shape.options[n.default.shape.default]
return e}get size(){const e=this.args.size??n.default.size.options[n.default.size.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/placeholder/text/index",["exports","gds/components/core/placeholder/index"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),r(this,"shape","line")}}e.default=i})),define("gds/components/core/popup/index",["exports","gds/components/core/tooltip/index","@ember/object","@ember/runloop"],(function(e,t,r,i){"use strict"
var n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a((n=class extends t.default{constructor(...e){super(...e),s(this,"boundHandleOutsideClick",null),s(this,"boundToggleHandler",null),s(this,"tooltipElement",null)}get isTooltip(){return this.args.tooltip??!1}setup(e){super.setup(e),this.tooltipElement=e}teardown(){super.teardown(),this.tooltipElement=null}bindTriggerEvents(){this.boundToggleHandler=(0,i.bind)(this,this.toggle),this.boundHandleOutsideClick=(0,i.bind)(this,this.handleOutsideClick),this.referenceElement.addEventListener("click",this.boundToggleHandler,!1),document.addEventListener("click",this.boundHandleOutsideClick,!1)}handleOutsideClick({target:e}){const t=this.tooltipElement.contains(e),r=this.referenceElement.contains(e)
t||r||this.hide()}resolveReferenceElement(e){return this.args.for instanceof Node?this.args.for:this.args.for?document.querySelector(`#${this.args.for}`):e.nextElementSibling}setAriaAttrs(){super.setAriaAttrs(),this.referenceElement.setAttribute("aria-pressed",String(this.isActive))}toggle(){this.isActive?this.hide():this.show()}unbindTriggerEvents(){this.referenceElement.removeEventListener("click",this.boundToggleHandler),document.removeEventListener("click",this.boundHandleOutsideClick),this.boundToggleHandler=null,this.boundHandleOutsideClick=null}}).prototype,"setup",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"setup"),n.prototype),a(n.prototype,"teardown",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"teardown"),n.prototype),n)})),define("gds/components/core/progress-bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},shape:{default:0,options:["circular","lineal"],values:{circular:{className:"circular"},lineal:{className:"lineal"}}},size:{default:2,options:["large","medium","small","xlarge","xxlarge"],values:{large:{className:"l"},medium:{className:"m"},small:{className:"s"},xlarge:{className:"xl"},xxlarge:{className:"xxl"}}}}})),define("gds/components/core/progress-bar/index",["exports","@ember/component","@glimmer/component","@ember/debug","@ember/utils","gds/components/core/progress-bar/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"s7Kz96tD",block:'[[[8,[39,0],null,[["@ariaLabel","@className","@dir","@role"],[[30,0,["ariaLabel"]],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"progressbar"]],[["default"],[[[[41,[30,1],[[[8,[39,3],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,1]]],[]]]]]],[]],null],[8,[39,0],null,[["@className","@dir"],[[30,0,["elementInsideClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n    "],[8,[39,0],[[16,"aria-valuemax",[30,0,["end"]]],[16,"aria-valuemin",[30,0,["start"]]],[16,"aria-valuenow",[30,0,["value"]]]],[["@ariaLabel","@dir","@role"],[[30,0,["ariaLabel"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"progressbar"]],[["default"],[[[[41,[30,0,["isCircular"]],[[[41,[30,0,["isDeterminated"]],[[[8,[39,4],null,[["@className","@dir"],["value",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n            "],[1,[30,0,["value"]]],[1,"%\\n          "]],[]]]]]],[]],null],[8,[39,4],null,[["@className","@dir"],["slice",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n          "],[8,[39,4],null,[["@className","@dir"],["bar",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n            "],[1,[30,0,["value"]]],[1,"%\\n          "]],[]]]]],[1,"\\n          "],[8,[39,4],null,[["@className","@dir"],["fill",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n            "],[1,[30,0,["value"]]],[1,"%\\n          "]],[]]]]],[1,"\\n        "]],[]]]]]],[]],[[[1,[30,1]]],[]]]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/div","config","if","foundations/p","foundations/span"]]',moduleName:"gds/components/core/progress-bar/index.hbs",isStrictMode:!1})
class l extends r.default{get ariaLabel(){return"progressbar"}get elementClassName(){const e=["progressbar"]
return this.className&&e.push(this.className),this.shape&&s.default.shape.values[this.shape].className&&e.push(s.default.shape.values[this.shape].className),this.size&&s.default.size.values[this.size].className&&e.push(s.default.size.values[this.size].className),e.join(" ")}get className(){return this.args.className??""}get isDeterminated(){return"number"===(0,n.typeOf)(this.args.value)}get dir(){const e=this.args.dir
if(e)return e}get end(){return this.isDeterminated?100:null}get elementInsideClassName(){const e=["inside"]
return this.className&&e.push(this.className),e.join(" ")}get isCircular(){return"circular"===this.shape}get shape(){const e=this.args.shape??s.default.shape.options[s.default.shape.default]
return e}get size(){const e=this.args.size??s.default.size.options[s.default.size.default]
return e}get start(){return this.isDeterminated?0:null}get value(){if(!this.isDeterminated)return null
const e=this.args.value
return Math.floor(100*e)}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/stepper/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/stepper/index",["exports","@ember/component","@glimmer/component","@ember/debug","@ember/object","@glimmer/tracking","gds/components/core/stepper/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l,c
function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,o.createTemplateFactory)({id:"G+WXpfMD",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[18,1,[[28,[37,3],null,[["step"],[[50,"core/stepper/step",0,null,[["steps","focusedStep","onInsert","onDestroy"],[[30,0,["steps"]],[30,0,["focusedStep"]],[30,0,["registerStep"]],[30,0,["unregisterStep"]]]]]]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["foundations/ol","config","yield","hash","component"]]',moduleName:"gds/components/core/stepper/index.hbs",isStrictMode:!1})
let h=e.default=(l=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="steps",n=this,(i=c)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get elementClassName(){const e=["stepper"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get focusedStep(){const e=Number(this.args.step??0)
return this.steps[Math.min(e,this.steps.length)-1]}registerStep(e){this.steps=[...this.steps,e]}unregisterStep(e){this.steps=this.steps.filter((t=>t!==e))}},c=u(l.prototype,"steps",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u(l.prototype,"registerStep",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"registerStep"),l.prototype),u(l.prototype,"unregisterStep",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"unregisterStep"),l.prototype),l);(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/stepper/step/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={position:{default:0,options:["center","first","last"],values:{center:{className:"center"},first:{className:"first"},last:{className:"last"}}}}})),define("gds/components/core/stepper/step/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/debug","gds/components/core/stepper/step/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l
function c(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,o.createTemplateFactory)({id:"gxCMu07O",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["handleInsert"]]],null],[4,[38,3],[[30,0,["handleDestroy"]]],null]],[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,4],null,null,[["default"],[[[[1,[30,1]]],[]]]]],[1,"\\n"]],[]]]]]],["@text"],false,["foundations/li","config","did-insert","will-destroy","foundations/small"]]',moduleName:"gds/components/core/stepper/step/index.hbs",isStrictMode:!1})
let d=e.default=(c((l=class extends r.default{get isActive(){return this.args.active??(this.next&&(this.next.isFocus||this.next.isActive))}get elementClassName(){const e=["step"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isFocus&&e.push("focus"),this.position&&a.default.position.values[this.position].className&&e.push(a.default.position.values[this.position].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isFirst(){return this.steps.length&&0===this.steps.indexOf(this)}get isFocus(){return this.args.focus??this.args.focusedStep===this}get isLast(){return this.steps.length&&!this.next}get next(){return this.steps[this.steps.indexOf(this)+1]}get position(){let e=this.args.position
return e||(e=this.isFirst?"first":this.isLast?"last":a.default.position.options[a.default.position.default]),e}get steps(){return this.args.steps??[]}handleDestroy(){const e=this.args.onDestroy
e&&e(this)}handleInsert(){const e=this.args.onInsert
e&&e(this)}}).prototype,"handleDestroy",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"handleDestroy"),l.prototype),c(l.prototype,"handleInsert",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"handleInsert"),l.prototype),l);(0,t.setComponentTemplate)(u,d)})),define("gds/components/core/table/button-to-td/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},textalign:{default:1,options:["center","left","right"],values:{center:{className:"tacenter"},left:{className:"taleft"},right:{className:"taright"}}}}})),define("gds/components/core/table/button-to-td/index",["exports","@ember/component","gds/components/core/table/tr","@ember/object/internals","@ember/debug","gds/components/core/table/button-to-td/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"kbut7w6W",block:'[[[8,[39,0],[[17,1]],[["@active","@className","@colspan","@dir","@disabled","@onClick"],[[30,2],[30,0,["elementClassName"]],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,4]]],[["default"],[[[[41,[30,5],[[[18,17,null]],[]],[[[8,[39,4],[[17,1]],[["@accessKey","@active","@className","@dir","@disabled","@onClick","@tabindex","@title"],[[30,6],[30,2],"button",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,4],[30,7],[30,8]]],[["default"],[[[[41,[48,[30,17]],[[[18,17,[[28,[37,6],null,[["textBox"],[[50,"core/table/td/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,8],null,[["@caption","@dir","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","@title"],[[30,9],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],null]],[]]]],[]]]]]],[]]],[18,18,null],[1,"\\n"]],[]]]]]],["&attrs","@active","@colspan","@onClick","@actions","@accessKey","@tabIndex","@titleButton","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","@title","&default","&last"],false,["foundations/td","config","if","yield","core/button","has-block","hash","component","core/table/td/text-box"]]',moduleName:"gds/components/core/table/button-to-td/index.hbs",isStrictMode:!1})
class l extends r.default{get isActions(){return this.args.actions??!1}get ariaLabel(){return this.args.ariaLabel??`table-button-${(0,i.guidFor)(this)}`}get elementClassName(){const e=["td"]
return this.className&&e.push(this.className),this.isActions&&e.push("actions"),this.textalign&&s.default.textalign.values[this.textalign].className&&e.push(s.default.textalign.values[this.textalign].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get textalign(){const e=this.args.textalign??s.default.textalign.options[s.default.textalign.default]
return e}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/table/button-to-tr/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/table/button-to-tr/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/table/button-to-tr/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"ILdXnLsz",block:'[[[8,[39,0],[[17,1]],[["@active","@className","@dir","@disabled","@id","@onClick"],[[30,2],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3],[30,4]]],[["default"],[[[[1,"\\n  "],[18,5,[[28,[37,3],null,[["td"],[[50,"core/table/button-to-td",0,null,[["active","dir","disabled","onClick"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,4]]]]]]]]],[1,"\\n"]],[]]]]]],["&attrs","@active","@id","@onClick","&default"],false,["foundations/tr","config","yield","hash","component"]]',moduleName:"gds/components/core/table/button-to-tr/index.hbs",isStrictMode:!1})
class l extends r.default{get isActive(){return this.args.active??!1}get ariaLabel(){return this.args.ariaLabel??`table-button-${(0,i.guidFor)(this)}`}get elementClassName(){const e=["tr withbutton"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.isLoading&&e.push("loading"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isLoading(){return this.args.loading??!1}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/table/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/table/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/table/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"nZqrHEMu",block:'[[[44,[[50,[30,0,["wrapperComponentName"]],0,null,null]],[[[8,[30,1],null,[["@className"],[[30,0,["wrapperClassName"]]]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[17,2]],[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,3]],[[[8,[39,6],null,[["@className","@dir"],["thead",[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n          "],[8,[39,7],null,null,[["default"],[[[[18,3,[[28,[37,9],null,[["th"],[[50,"core/table/th",0,null,[["dir"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]]]]],[1,"\\n        "]],[]]]]]],[]],null],[41,[48,[30,4]],[[[8,[39,10],null,[["@className","@dir"],["tbody",[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n          "],[18,4,[[28,[37,9],null,[["buttonToTr","tr","linkToTr"],[[50,"core/table/button-to-tr",0,null,[["dir"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/table/tr",0,null,[["dir"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/table/link-to-tr",0,null,[["dir"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n        "]],[]]]]]],[]],null],[41,[48,[30,5]],[[[8,[39,11],null,[["@className","@dir"],["tfoot",[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n          "],[8,[39,7],null,null,[["default"],[[[[18,5,[[28,[37,9],null,[["td"],[[50,"core/table/td",0,null,[["dir"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]]]]],[1,"\\n        "]],[]]]]]],[]],null]],[]]]]],[1,"\\n  "]],[]]]]]],[1]]]],["wrapperComponent","&attrs","&header","&body","&footer"],false,["let","component","foundations/table","config","if","has-block","foundations/thead","core/table/tr","yield","hash","foundations/tbody","foundations/tfoot"]]',moduleName:"gds/components/core/table/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["table"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get wrapperClassName(){const e=[]
return this.isResponsive&&e.push("responsive-table"),this.isStickyBody&&e.push("sticky-body"),this.isStickyHeader&&e.push("sticky-header"),e.join(" ")}get dir(){const e=this.args.dir
if(e)return e}get isResponsive(){return this.args.responsive??!1}get isStickyHeader(){return this.args.stickyHeader??!1}get wrapperComponentName(){return this.isResponsive||this.isStickyHeader||this.isStickyBody?"foundations/div":"foundations/blank"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/table/link-to-td/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},textalign:{default:1,options:["center","left","right"],values:{center:{className:"tacenter"},left:{className:"taleft"},right:{className:"taright"}}}}})),define("gds/components/core/table/link-to-td/index",["exports","@ember/component","gds/components/core/table/tr","@ember/object/internals","@ember/debug","gds/components/core/table/link-to-td/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"hvBOhlzk",block:'[[[8,[39,0],[[17,1]],[["@active","@className","@colspan","@dir","@disabled","@models","@query","@route"],[[30,2],[30,0,["elementClassName"]],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["models"]],[30,4],[30,5]]],[["default"],[[[[41,[30,6],[[[18,19,null]],[]],[[[8,[39,4],[[16,"aria-label",[30,0,["ariaLabel"]]],[17,1]],[["@accessKey","@active","@className","@dir","@disabled","@models","@query","@role","@route","@tabindex","@title"],[[30,7],[30,2],[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,0,["models"]],[30,4],"link",[30,5],[30,9],[30,10]]],[["default"],[[[[41,[48,[30,19]],[[[18,19,[[28,[37,6],null,[["textBox"],[[50,"core/table/td/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,8],null,[["@caption","@dir","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","@title"],[[30,11],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18]]],null]],[]]]],[]]]]]],[]]],[18,20,null],[1,"\\n"]],[]]]]]],["&attrs","@active","@colspan","@query","@route","@actions","@accessKey","@className","@tabIndex","@titleLink","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","@title","&default","&last"],false,["foundations/td","config","if","yield","core/link-to","has-block","hash","component","core/table/td/text-box"]]',moduleName:"gds/components/core/table/link-to-td/index.hbs",isStrictMode:!1})
class l extends r.default{get isActions(){return this.args.actions??!1}get ariaLabel(){return this.args.ariaLabel??`table-link-${(0,i.guidFor)(this)}`}get elementClassName(){const e=["td"]
return this.className&&e.push(this.className),this.isActions&&e.push("actions"),this.textalign&&s.default.textalign.values[this.textalign].className&&e.push(s.default.textalign.values[this.textalign].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}get textalign(){const e=this.args.textalign??s.default.textalign.options[s.default.textalign.default]
return e}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/table/link-to-tr/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/table/link-to-tr/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/core/table/link-to-tr/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"b9OVAeBI",block:'[[[8,[39,0],[[17,1]],[["@active","@className","@dir","@disabled","@id"],[[30,2],[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isDisabled"]],[30,3]]],[["default"],[[[[1,"\\n  "],[18,6,[[28,[37,3],null,[["td"],[[50,"core/table/link-to-td",0,null,[["dir","models","query","route"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["models"]],[30,4],[30,5]]]]]]]]],[1,"\\n"]],[]]]]]],["&attrs","@active","@id","@query","@route","&default"],false,["foundations/tr","config","yield","hash","component"]]',moduleName:"gds/components/core/table/link-to-tr/index.hbs",isStrictMode:!1})
class l extends r.default{get isActive(){return this.args.active??!1}get ariaLabel(){return this.args.ariaLabel??`table-link-${(0,i.guidFor)(this)}`}get elementClassName(){const e=["tr withlink"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.isLoading&&e.push("loading"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isLoading(){return this.args.loading??!1}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/core/table/td/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},textalign:{default:1,options:["center","left","right"],values:{center:{className:"tacenter"},left:{className:"taleft"},right:{className:"taright"}}}}})),define("gds/components/core/table/td/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/table/td/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"WwurwxI3",block:'[[[8,[39,0],[[17,1]],[["@className","@colspan","@dir","@sticky"],[[30,0,["elementClassName"]],[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3]]],[["default"],[[[[41,[48,[30,12]],[[[18,12,[[28,[37,5],null,[["textBox"],[[50,"core/table/td/text-box",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]]],[]],[[[8,[39,7],null,[["@dir","@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11]]],null]],[]]]],[]]]]]],["&attrs","@colspan","@sticky","@title","@caption","@lineClampCaption","@lineClampText","@lineClampTimeFrame","@lineClampTitle","@text","@timeFrame","&default"],false,["foundations/td","config","if","has-block","yield","hash","component","core/table/td/text-box"]]',moduleName:"gds/components/core/table/td/index.hbs",isStrictMode:!1})
class o extends r.default{get isActions(){return this.args.actions??!1}get elementClassName(){const e=["td"]
return this.className&&e.push(this.className),this.isActions&&e.push("actions"),this.isSticky&&e.push("sticky"),this.textalign&&n.default.textalign.values[this.textalign].className&&e.push(n.default.textalign.values[this.textalign].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isSticky(){return this.args.sticky??!1}get textalign(){const e=this.args.textalign??n.default.textalign.options[n.default.textalign.default]
return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/table/td/text-box/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/table/td/text-box/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/table/td/text-box/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"Cl61Skiv",block:'[[[8,[39,0],null,[["@className","@dir"],["inside",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,10]],[[[8,[39,4],null,[["@className","@dir"],[[28,[37,5],[[30,1]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[18,10,null]],[]]]]]],[]],[[[41,[30,2],[[[8,[39,4],null,[["@className","@dir"],[[28,[37,5],[[30,1]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,2]]],[]]]]]],[]],null]],[]]],[41,[48,[30,11]],[[[8,[39,7],null,[["@className","@dir"],[[28,[37,5],[[30,3]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[18,11,null]],[]]]]]],[]],[[[41,[30,4],[[[8,[39,7],null,[["@className","@dir"],[[28,[37,5],[[30,3]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,4]]],[]]]]]],[]],null]],[]]],[41,[48,[30,12]],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,5],[[30,5]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[18,12,null]],[]]]]]],[]],[[[41,[30,6],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,5],[[30,5]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,6]]],[]]]]]],[]],null]],[]]],[41,[48,[30,13]],[[[8,[39,9],null,[["@className","@dateTime","@dir"],[[28,[37,5],[[30,7]],null],[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[18,13,null]],[]]]]]],[]],[[[41,[30,9],[[[8,[39,9],null,[["@className","@dateTime","@dir"],[[28,[37,5],[[30,7]],null],[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,9]]],[]]]]]],[]],null]],[]]]],[]]]]]],["@lineClampTitle","@title","@lineClampCaption","@caption","@lineClampText","@text","@lineClampTimeFrame","@dateTime","@timeFrame","&title","&caption","&text","&timeFrame"],false,["foundations/span","config","if","has-block","foundations/strong","lineclamp-class","yield","foundations/small","foundations/em","foundations/time"]]',moduleName:"gds/components/core/table/td/text-box/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/table/th/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},textalign:{default:1,options:["center","left","right"],values:{center:{className:"tacenter"},left:{className:"taleft"},right:{className:"taright"}}}}})),define("gds/components/core/table/th/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/object/internals","@ember/debug","gds/components/core/table/th/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,o.createTemplateFactory)({id:"AAk7hx3B",block:'[[[8,[39,0],[[17,1]],[["@className","@colspan","@dir"],[[30,0,["elementClassName"]],[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,6]],[[[18,6,null]],[]],[[[1,[30,3]]],[]]],[41,[30,4],[[[8,[39,5],null,[["@active","@dir","@disabled","@id","@size","@style","@text","@title"],[false,[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],false,[30,0,["uniqueID"]],"small","help","Text","Title"]],null],[1,"\\n\\t\\t"],[8,[39,6],null,[["@dir","@for","@placement","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["uniqueID"]],"bottom",[30,4]]],null]],[]],null],[41,[30,0,["isSortable"]],[[[8,[39,5],null,[["@active","@dir","@disabled","@onClick","@size","@style","@text","@title"],[[30,0,["isSorted"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5],[30,0,["handleSortRequest"]],"smedium",[30,0,["sortDirectionIcon"]],"Text","Title"]],null]],[]],null]],[]]]]]],["&attrs","@colspan","@text","@help","@disable","&default"],false,["foundations/th","config","if","has-block","yield","core/button/icon-button","core/popup"]]',moduleName:"gds/components/core/table/th/index.hbs",isStrictMode:!1})
let u=e.default=(l=class extends r.default{get isActions(){return this.args.actions??!1}get elementClassName(){const e=["th"]
return this.className&&e.push(this.className),this.isActions&&e.push("actions"),this.isSortable&&e.push("sortable"),this.textalign&&a.default.textalign.values[this.textalign].className&&e.push(a.default.textalign.values[this.textalign].className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isSortable(){return this.args.sortable??Boolean(this.args.onSort)??!1}get sortDirectionIcon(){return this.isSorted&&"desc"===this.args.sortDirection?"orderdown":"orderup"}get isSorted(){return this.args.sorted??!1}get textalign(){const e=this.args.textalign??a.default.textalign.options[a.default.textalign.default]
return e}get uniqueID(){return this.args.id??`table-popup-${(0,n.guidFor)(this)}`}handleSortRequest(e){(0,this.args.onSort)(this.isSorted&&"desc"!==this.args.sortDirection?"desc":"asc",e)}},d=l.prototype,h="handleSortRequest",p=[i.action],f=Object.getOwnPropertyDescriptor(l.prototype,"handleSortRequest"),m=l.prototype,g={},Object.keys(f).forEach((function(e){g[e]=f[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=p.slice().reverse().reduce((function(e,t){return t(d,h,e)||e}),g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),void 0===g.initializer&&Object.defineProperty(d,h,g),l)
var d,h,p,f,m,g;(0,t.setComponentTemplate)(c,u)})),define("gds/components/core/table/tr/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}}))
define("gds/components/core/table/tr/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/table/tr/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"sUD/711T",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@id"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],[["default"],[[[[1,"\\n  "],[18,3,[[28,[37,3],null,[["linkToTd","td","th"],[[50,"core/table/link-to-td",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/table/td",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]],[50,"core/table/th",0,null,[["dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n"]],[]]]]]],["&attrs","@id","&default"],false,["foundations/tr","config","yield","hash","component"]]',moduleName:"gds/components/core/table/tr/index.hbs",isStrictMode:!1})
class o extends r.default{get isActive(){return this.args.active??!1}get elementClassName(){const e=["tr"]
return this.className&&e.push(this.className),this.isActive&&e.push("active"),this.isDisabled&&e.push("disable"),this.isLoading&&e.push("loading"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isDisabled(){return this.args.disabled??!1}get isLoading(){return this.args.loading??!1}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/tabs/bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/tabs/bar/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/tabs/bar/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"OzE9MGsd",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassNameBar"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[18,3,[[28,[37,3],null,[["tab"],[[50,"core/tabs/tab",0,null,[["activeTabId","dir","onTabClick"],[[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]]]]]]]],[1,"\\n"]],[]]]]]],["@activeTabId","@onTabClick","&default"],false,["foundations/ol","config","yield","hash","component"]]',moduleName:"gds/components/core/tabs/bar/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassNameBar(){const e=["tabs"]
return this.classNameBar&&e.push(this.classNameBar),e.join(" ")}get classNameBar(){return this.args.classNameBar??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/tabs/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/tabs/index",["exports","@ember/component","@glimmer/component","@ember/object","tracked-toolbox","@glimmer/tracking","@ember/debug","gds/components/core/tabs/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c,u,d,h
function p(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function f(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,l.createTemplateFactory)({id:"g/JrQHOm",block:'[[[41,[48,[30,4]],[[[18,4,[[28,[37,3],null,[["activeTabId","dir","tabBar","tabs"],[[30,0,["activeTabId"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[50,"core/tabs/bar",0,null,[["activeTabId","dir","onTabClick"],[[30,0,["activeTabId"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["activateTab"]]]]],[30,0,["tabs"]]]]]]]],[]],[[[41,[30,0,["isAutoTabBarVisible"]],[[[8,[39,6],null,[["@activeTabId","@dir"],[[30,0,["activeTabId"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[42,[28,[37,8],[[28,[37,8],[[30,0,["tabs"]]],null]],null],null,[[[8,[30,1,["tab"]],null,[["@accessKey","@active","@dir","@disabled","@icon","@onClick","@tabIndex","@text","@title"],[[30,2,["accessKey"]],[28,[37,9],[[30,0,["activeTabId"]],[30,2,["id"]]],null],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2,["disabled"]],[30,2,["icon"]],[28,[37,10],[[30,0,["activateTab"]],[30,2,["id"]]],null],[30,2,["tabIndex"]],[30,2,["name"]],[30,2,["title"]]]],null]],[2]],null]],[1]]]]]],[]],null]],[]]],[44,[[28,[37,3],null,[["activeTabId","dir","pane","tabs"],[[30,0,["activeTabId"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[50,"core/tabs/pane",0,null,[["activeTabId","dir","onInsert","onDestroy"],[[30,0,["activeTabId"]],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["registerTab"]],[30,0,["unregisterTab"]]]]],[30,0,["tabs"]]]]]],[[[18,5,[[30,3]]],[1,"\\n\\t"],[18,6,[[30,3]]]],[3]]]],["b","tab","contentsYield","&tabs","&contents","&default"],false,["if","has-block","yield","hash","config","component","core/tabs/bar","each","-track-array","eq","fn","let"]]',moduleName:"gds/components/core/tabs/index.hbs",isStrictMode:!1})
let g=e.default=(c=(0,n.localCopy)("args.activeTabId",null),u=class extends r.default{constructor(...e){super(...e),p(this,"tabs",d,this),p(this,"activeTabId",h,this)}get dir(){const e=this.args.dir
if(e)return e}get isAutoTabBarVisible(){const e=Boolean(this.args.alwaysShowTabs),t=this.tabs.length
return t>0&&e||t>1}activateTab(e){const t=this.args.onTabChange
this.activeTabId=e,t&&t(e)}registerTab(e){const t=[...this.tabs,e]
this.activeTabId||1!==t.length||(this.activeTabId=e.id),this.tabs=t}unregisterTab(e){const t=this.tabs.filter((t=>t.id!==e))
this.activeTabId===e&&t.length?this.activeTabId=t[0].id:0===t.length&&(this.activeTabId=null),this.tabs=t}},d=f(u.prototype,"tabs",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=f(u.prototype,"activeTabId",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(u.prototype,"activateTab",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"activateTab"),u.prototype),f(u.prototype,"registerTab",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"registerTab"),u.prototype),f(u.prototype,"unregisterTab",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"unregisterTab"),u.prototype),u);(0,t.setComponentTemplate)(m,g)})),define("gds/components/core/tabs/pane/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/tabs/pane/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/object/internals","@ember/runloop","@ember/debug","gds/components/core/tabs/pane/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o,l){"use strict"
var c
function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,l.createTemplateFactory)({id:"ybR7cmcT",block:'[[[1,[28,[35,0],[[30,0,["register"]]],null]],[1,"\\n"],[1,[28,[35,1],[[30,0,["unregister"]]],null]],[41,[30,0,["isActive"]],[[[8,[39,3],null,[["@dir","@visible"],[[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isActive"]]]],[["default"],[[[[41,[30,0,["isLoading"]],[[[8,[39,5],null,[["@size","@text"],["large",[30,1]]],null]],[]],[[[18,2,null]],[]]]],[]]]]]],[]],null]],["@loadingText","&default"],false,["did-insert","will-destroy","if","core/container-area","config","core/loading","yield"]]',moduleName:"gds/components/core/tabs/pane/index.hbs",isStrictMode:!1})
let h=e.default=(u((c=class extends r.default{get isActive(){return this.args.active||this.args.activeTabId===this.tabId}get dir(){const e=this.args.dir
if(e)return e}get isLoading(){return this.args.loading??!1}get tabId(){return this.args.id||(0,n.guidFor)(this)}register(){const e=this.args.onInsert
e&&(0,s.scheduleOnce)("afterRender",this,(()=>{e({accessKey:this.args.accessKey,disabled:this.args.disabled,icon:this.args.icon,id:this.tabId,name:this.args.name,tabIndex:this.args.tabIndex})}))}unregister(){const e=this.args.onDestroy
e&&e(this.tabId)}}).prototype,"register",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"register"),c.prototype),u(c.prototype,"unregister",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"unregister"),c.prototype),c);(0,t.setComponentTemplate)(d,h)})),define("gds/components/core/tabs/tab/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/tabs/tab/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/debug","gds/components/core/tabs/tab/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,a.createTemplateFactory)({id:"7pEVTtDa",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n\\t"],[8,[39,1],[[17,1]],[["@accessKey","@active","@className","@dir","@disabled","@onClick","@role","@tabindex","@title"],[[30,2],[30,3],[30,0,["elementClassName"]],[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,0,["onClick"]],"button",[30,5],[30,6]]],[["default"],[[[[41,[30,7],[[[8,[39,4],null,[["@dir","@name"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]],[30,7]]],null]],[]],null],[41,[30,8],[[[1,[30,8]]],[]],[[[18,9,null]],[]]]],[]]]]],[1,"\\n"]],[]]]]]],["&attrs","@accessKey","@active","@disabled","@tabIndex","@title","@icon","@text","&default"],false,["foundations/li","core/button","config","if","core/icon","yield"]]',moduleName:"gds/components/core/tabs/tab/index.hbs",isStrictMode:!1})
let c=e.default=(o=class extends r.default{get elementClassName(){const e=["tabsitem"]
return this.className&&e.push(this.className),e.join(" ")}get dir(){const e=this.args.dir
if(e)return e}onClick(e){const t=this.args.onClick
if(t)return t(e)
const r=this.args.onTabClick
return r?r(this.args.paneId):void 0}},u=o.prototype,d="onClick",h=[i.action],p=Object.getOwnPropertyDescriptor(o.prototype,"onClick"),f=o.prototype,m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=h.slice().reverse().reduce((function(e,t){return t(u,d,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,d,m),o)
var u,d,h,p,f,m;(0,t.setComponentTemplate)(l,c)})),define("gds/components/core/tag/index",["exports","gds/components/core/badge/index"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get shape(){return"square"}}e.default=r})),define("gds/components/core/title-bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/title-bar/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/title-bar/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"Es6jMVCE",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,9]],[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementLeftClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,9,null],[1,"\\n\\t\\t"]],[]]]]]],[]],[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementLeftClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[30,0,["isExtraButtonVisible"]],[[[8,[39,5],null,[["@dir","@id","@onClick","@style","@text","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],[30,2],[30,0,["extraStyle"]],[30,3],[30,4]]],null]],[]],null],[8,[39,6],null,[["@className","@dir"],[[28,[37,7],[[30,5]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[1,[30,6]],[1,"\\n\\t\\t\\t\\t"],[18,10,null],[41,[30,7],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,7],[[30,8]],null],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,7]]],[]]]]]],[]],null]],[]]]]],[1,"\\n\\t\\t"]],[]]]]]],[]]],[41,[48,[30,11]],[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementRightClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,11,null],[1,"\\n\\t\\t"]],[]]]]]],[]],[[[41,[48,[30,12]],[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementRightClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[8,[39,0],null,[["@className","@component","@dir"],["actions","ol",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,12,[[28,[37,9],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir","id"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["id"]]]]]]]]]],[1,"\\n\\t\\t\\t"]],[]]]]],[1,"\\n\\t\\t"]],[]]]]]],[]],null]],[]]]],[]]]]]],["@id","@onExtraClick","@extraText","@extraTitle","@lineClampTitle","@title","@caption","@lineClampCaption","&left","&badge","&right","&actions"],false,["core/col","config","if","has-block","yield","core/button/icon-button","foundations/h2","lineclamp-class","foundations/small","hash","component"]]',moduleName:"gds/components/core/title-bar/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["titlebar"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get isExtraButtonVisible(){return this.args.extraText}get extraStyle(){return this.args.extraStyle??"close"}get item(){return"foundations/li"}get elementLeftClassName(){const e=["left"]
return this.leftClassName&&e.push(this.leftClassName),e.join(" ")}get leftClassName(){return this.args.leftClassName??""}get elementRightClassName(){const e=["right"]
return this.rightClassName&&e.push(this.rightClassName),e.join(" ")}get rightClassName(){return this.args.rightClassName??""}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/tooltip/base/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},placement:{default:3,options:["bottom","left","right","top"]}}})),define("gds/components/core/tooltip/base/index",["exports","@ember/component","@glimmer/component","@ember/object","gds/modifiers/position-relative-to","@ember/debug","gds/components/core/tooltip/base/config","@ember/template-factory"],(function(e,t,r,i,n,s,a,o){"use strict"
var l
function c(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,o.createTemplateFactory)({id:"UJCBaYTn",block:'[[[44,[[50,[30,0,["baseComponent"]],0,null,null]],[[[8,[30,1],[[17,2],[4,[38,4],[[30,0,["setup"]]],null],[4,[38,5],[[30,0,["teardown"]]],null]],[["@ariaHidden","@className","@dir","@role"],[[52,[30,0,["isActive"]],"false","true"],[30,0,["elementClassName"]],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],"tooltip"]],[["default"],[[[[41,[48,[30,5]],[[[41,[30,0,["isTooltip"]],[[[18,5,null]],[]],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,9],[[30,3]],null],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[18,5,null]],[]]]]]],[]]]],[]],[[[41,[30,0,["isTooltip"]],[[[1,[30,4]]],[]],[[[8,[39,8],null,[["@className","@dir"],[[28,[37,9],[[30,3]],null],[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,4]]],[]]]]]],[]]]],[]]],[41,[30,0,["isTooltip"]],[[[8,[39,10],[[24,"data-popper-arrow",""]],[["@dir","@role"],[[28,[37,3],["dir"],[["value"],[[30,0,["dir"]]]]],"presentation"]],[["default"],[[[[1,"Arrow"]],[]]]]]],[]],null]],[]]]]]],[1]]]],["BaseComponent","&attrs","@lineClamp","@text","&default"],false,["let","component","if","config","did-insert","will-destroy","has-block","yield","foundations/p","lineclamp-class","foundations/span"]]',moduleName:"gds/components/core/tooltip/base/index.hbs",isStrictMode:!1})
let d=e.default=(c((l=class extends r.default{get isActive(){return this.args.active??!1}get baseComponent(){return this.isTooltip?"foundations/span":"foundations/div"}get elementClassName(){const e=[]
return e.push(this.isTooltip?"tooltip":"popup"),this.className&&e.push(this.className),this.isActive&&e.push("active"),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get placement(){const e=this.args.placement??a.default.placement.options[a.default.placement.default]
return e}get referenceElement(){let e
return e="string"==typeof this.args.relativeTo?document.querySelector(`#${this.args.relativeTo}`):this.args.relativeTo,e}get isTooltip(){return this.args.tooltip??!1}setup(e){this.positionerInstance=(0,n.createPositioner)(this.referenceElement,e,{placement:this.placement})}teardown(){(0,n.destroyPositioner)(this.positionerInstance),this.positionerInstance=null}}).prototype,"setup",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"setup"),l.prototype),c(l.prototype,"teardown",[i.action],Object.getOwnPropertyDescriptor(l.prototype,"teardown"),l.prototype),l);(0,t.setComponentTemplate)(u,d)})),define("gds/components/core/tooltip/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/runloop","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
var o,l,c
function u(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,a.createTemplateFactory)({id:"TxcVZzZX",block:'[[[8,[39,0],[[4,[38,1],[[30,0,["setup"]]],null],[4,[38,2],[[30,0,["teardown"]]],null]],[["@active","@@lineClamp","@relativeTo","@placement","@tooltip"],[[30,0,["isActive"]],[30,1],[30,0,["referenceElement"]],[30,2],[30,0,["isTooltip"]]]],[["default"],[[[[41,[48,[30,5]],[[[18,5,[[30,3]]]],[]],[[[41,[30,0,["isTooltip"]],[[[1,[30,4]]],[]],[[[1,[30,4]]],[]]]],[]]]],[3]]]]]],["@lineClamp","@placement","t","@text","&default"],false,["core/tooltip/base","did-insert","will-destroy","if","has-block","yield"]]',moduleName:"gds/components/core/tooltip/index.hbs",isStrictMode:!1})
let f=e.default=(o=class extends r.default{constructor(...e){super(...e),u(this,"referenceElement",l,this),u(this,"isActive",c,this),d(this,"boundHideHandler",null),d(this,"boundShowHandler",null)}get isTooltip(){return this.args.tooltip??!0}setup(e){this.referenceElement=this.resolveReferenceElement(e),this.setAriaAttrs(),this.bindTriggerEvents()}teardown(){this.unbindTriggerEvents(),this.referenceElement=null}bindTriggerEvents(){this.boundShowHandler=(0,n.bind)(this,this.show),this.boundHideHandler=(0,n.bind)(this,this.hide),this.referenceElement.addEventListener("mouseenter",this.boundShowHandler,!1),this.referenceElement.addEventListener("focus",this.boundShowHandler,!1),this.referenceElement.addEventListener("mouseleave",this.boundHideHandler,!1),this.referenceElement.addEventListener("blur",this.boundHideHandler,!1)}hide(){this.isActive=!1,this.setAriaAttrs()}resolveReferenceElement(e){return this.args.for instanceof Node?this.args.for:this.args.for?document.querySelector(`#${this.args.for}`):e.parentNode}setAriaAttrs(){this.referenceElement.setAttribute("aria-expanded",String(this.isActive))}show(){this.isActive=!0,this.setAriaAttrs()}unbindTriggerEvents(){this.referenceElement.removeEventListener("mouseenter",this.boundShowHandler),this.referenceElement.removeEventListener("focus",this.boundShowHandler),this.referenceElement.removeEventListener("mouseleave",this.boundHideHandler),this.referenceElement.removeEventListener("blur",this.boundHideHandler),this.boundShowHandler=null,this.boundHideHandler=null}},l=h(o.prototype,"referenceElement",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=h(o.prototype,"isActive",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h(o.prototype,"setup",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"setup"),o.prototype),h(o.prototype,"teardown",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"teardown"),o.prototype),o);(0,t.setComponentTemplate)(p,f)})),define("gds/components/core/typography/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={components:{default:9,options:["button","em","h1","h2","h3","h4","h5","h6","legend","p","small","span","strong","time"],values:{button:{component:"foundations/button"},em:{component:"foundations/em"},h1:{component:"foundations/h1"},h2:{component:"foundations/h2"},h3:{component:"foundations/h3"},h4:{component:"foundations/h4"},h5:{component:"foundations/h5"},h6:{component:"foundations/h6"},legend:{component:"foundations/legend"},p:{component:"foundations/p"},small:{component:"foundations/small"},span:{component:"foundations/span"},strong:{component:"foundations/strong"},time:{component:"foundations/time"}}},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},style:{className:{body:"typobody",button:"typobutton",caption:"typocaption",display:"typodisplay",header:"typoheader",headline:"typoheadline",specials:"typospecials",title1:"typotitle1",title2:"typotitle2"},default:0,options:["body","button","caption","display","header","headline","specials","title1","title2"]}}})),define("gds/components/core/typography/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/typography/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"Y3s3vzMP",block:'[[[44,[[50,[30,0,["typoComponent"]],0,null,null]],[[[8,[30,1],[[17,2]],[["@className","@component","@dir"],[[28,[37,2],[[30,0,["elementClassName"]],[28,[37,3],[[30,3]],null]],null],[30,4],[28,[37,4],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[41,[48,[30,6]],[[[18,6,null]],[]],[[[1,[30,5]]],[]]]],[]]]]]],[1]]]],["TypoComponent","&attrs","@lineClamp","@component","@text","&default"],false,["let","component","join-classnames","lineclamp-class","config","if","has-block","yield"]]',moduleName:"gds/components/core/typography/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=[n.default.style.className[this.style]]
return super.className&&e.push(super.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}get style(){const e=this.args.style??n.default.style.options[n.default.style.default]
return e}get typoComponent(){const e=this.args.component??n.default.components.options[n.default.components.default]
return n.default.components.values[e].component}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/core/wrapper/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/core/wrapper/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/core/wrapper/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"DFm2fDcV",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@part"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2]]],[["default"],[[[[1,"\\n\\t"],[18,3,null],[1,"\\n"]],[]]]]],[1,"\\n"]],["&attrs","@part","&default"],false,["foundations/main","config","yield"]]',moduleName:"gds/components/core/wrapper/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["wrapper"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/foundations/a/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"pNUgNivv",block:'[[[11,3],[16,"accesskey",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,6,[30,4]],[16,1,[30,5]],[16,"inert",[30,6]],[16,"part",[30,7]],[16,"role",[30,8]],[16,"tabindex",[30,9]],[16,"target",[30,10]],[16,"title",[30,11]],[17,12],[12],[18,13,null],[13]],["@accessKey","@className","@dir","@href","@id","@inert","@part","@role","@tabIndex","@target","@title","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/a/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/abbr/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"bMx/rbgB",block:'[[[11,"abbr"],[16,0,[30,1]],[16,"dir",[30,2]],[16,1,[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[16,"role",[30,6]],[16,"title",[30,7]],[17,8],[12],[18,9,null],[13]],["@className","@dir","@id","@inert","@part","@role","@title","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/abbr/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/address/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"uNSPy6S1",block:'[[[11,"address"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/address/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/article/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"evtb+Pfs",block:'[[[11,"article"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/article/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/aside/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"9SPa/b2/",block:'[[[11,"aside"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","complementary"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/aside/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/blank/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"OA0G9bJG",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"gds/components/foundations/blank/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/button/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"bYDTOFnV",block:'[[[11,"button"],[16,"accesskey",[30,1]],[16,"aria-checked",[30,2]],[16,"aria-expanded",[30,3]],[16,"aria-pressed",[30,4]],[16,0,[30,5]],[16,"dir",[30,6]],[16,"disabled",[30,7]],[16,1,[30,8]],[16,"inert",[30,9]],[16,"part",[30,10]],[16,"role",[30,11]],[16,"tabindex",[30,12]],[16,"title",[30,13]],[16,4,[30,14]],[17,15],[12],[18,16,null],[13]],["@accessKey","@ariaChecked","@ariaExpanded","@ariaPressed","@className","@dir","@disabled","@id","@inert","@part","@role","@tabIndex","@title","@type","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/button/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/caption/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"uaB40fc1",block:'[[[11,"caption"],[16,"className",[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/caption/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/details/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"1aCGQ0Y9",block:'[[[11,"details"],[16,0,[30,1]],[16,"dir",[30,2]],[16,1,[30,3]],[16,"inert",[30,4]],[16,"open",[30,5]],[16,"part",[30,6]],[17,7],[12],[18,8,null],[13]],["@className","@dir","@id","@inert","@open","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/details/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/dialog/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"GGZzALBG",block:'[[[11,"dialog"],[16,"aria-label",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,1,[30,4]],[16,"open",[30,5]],[16,"role",[30,6]],[17,7],[12],[1,"\\n\\t"],[18,8,null],[1,"\\n"],[13]],["@ariaLabel","@className","@dir","@id","@open","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/dialog/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/div/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ZPomSoDj",block:'[[[11,0],[16,"aria-hidden",[30,1]],[16,"aria-label",[30,2]],[16,"aria-labelledby",[30,3]],[16,0,[30,4]],[16,"dir",[30,5]],[16,"inert",[30,6]],[16,"role",[30,7]],[16,"part",[30,8]],[17,9],[12],[18,10,null],[13]],["@ariaHidden","@ariaLabel","@ariaLabelledby","@className","@dir","@inert","@role","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/div/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)}))
define("gds/components/foundations/em/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"YidBw0xF",block:'[[[11,"em"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/em/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/fieldset/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"0wI3swqK",block:'[[[11,"fieldset"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/fieldset/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/figure/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"GDpoPYXb",block:'[[[11,"figure"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","figure"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/figure/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/footer/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"WWY6bLfx",block:'[[[11,"footer"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/footer/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/form/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ayLQlay4",block:'[[[11,"form"],[16,"action",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"method",[30,5]],[16,"part",[30,6]],[16,"role",[30,7]],[17,8],[12],[18,9,null],[13]],["@action","@className","@dir","@inert","@method","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/form/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h1/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"XbHkHwQX",block:'[[[11,"h1"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h1/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h2/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"qloSWplA",block:'[[[11,"h2"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h2/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h3/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"4HOAxo9S",block:'[[[11,"h3"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"part",[30,3]],[16,"role",[30,4]],[17,5],[12],[18,6,null],[13]],["@className","@dir","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h3/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h4/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"zBngxpmr",block:'[[[11,"h4"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h4/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h5/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"I9FLApI2",block:'[[[11,"h5"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h5/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/h6/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"pm3ZA0Yd",block:'[[[11,"h6"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/h6/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/header/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ftrzewHw",block:'[[[11,"header"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/header/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/hr/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"IaRC13FZ",block:'[[[10,"hr"],[15,0,[30,1]],[15,"dir",[30,2]],[15,"inert",[30,3]],[15,"part",[30,4]],[15,"role",[30,5]],[12],[13]],["@className","@dir","@inert","@part","@role"],false,[]]',moduleName:"gds/components/foundations/hr/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/img/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"TwEQGyxc",block:'[[[11,"img"],[16,"alt",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"height",[30,4]],[16,"inert",[30,5]],[16,"part",[30,6]],[24,"role","img"],[16,"src",[30,7]],[16,"title",[30,8]],[16,"width",[30,9]],[17,10],[12],[13]],["@alt","@className","@dir","@height","@inert","@part","@src","@title","@width","&attrs"],false,[]]',moduleName:"gds/components/foundations/img/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/input/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"6Qt2q3aB",block:'[[[11,"input"],[16,"aria-label",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"disabled",[30,4]],[16,"hidden",[30,5]],[16,1,[30,6]],[16,"inert",[30,7]],[16,"maxlength",[30,8]],[16,"part",[30,9]],[16,"placeholder",[30,10]],[16,"role",[30,11]],[16,"tabindex",[30,12]],[16,"title",[30,13]],[16,4,[30,14]],[16,2,[30,15]],[17,16],[12],[13]],["@ariaLabel","@className","@dir","@disabled","@hidden","@id","@inert","@maxLength","@part","@placeholder","@role","@tabIndex","@title","@type","@value","&attrs"],false,[]]',moduleName:"gds/components/foundations/input/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/label/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"QVJjC9ST",block:'[[[11,"label"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"for",[30,3]],[16,1,[30,4]],[16,"inert",[30,5]],[16,"part",[30,6]],[16,"role",[30,7]],[17,8],[12],[18,9,null],[13]],["@className","@dir","@for","@id","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/label/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/legend/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"2/gnDzkM",block:'[[[11,"legend"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/legend/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/li/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"1t3yIQXl",block:'[[[11,"li"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","listitem"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/li/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/main/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"iXlfGWcy",block:'[[[11,"main"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","main"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/main/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/mark/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"R1lOOY11",block:'[[[11,"mark"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"hidden",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","marquee"],[17,6],[12],[18,7,null],[13]],["@className","@dir","@hidden","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/mark/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/nav/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"1EP8u2h0",block:'[[[11,"nav"],[16,"aria-label",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[16,"role",[30,6]],[17,7],[12],[18,8,null],[13]],["@ariaLabel","@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/nav/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/ol/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Fi8Zk3UF",block:'[[[11,"ol"],[16,"aria-hidden",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","list"],[17,6],[12],[18,7,null],[13]],["@ariaHidden","@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/ol/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/p/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ghUQXBPA",block:'[[[11,2],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/p/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/picture/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"xSSziUdq",block:'[[[11,"picture"],[16,0,[30,1]],[16,1,[30,2]],[16,"role",[30,3]],[17,4],[12],[1,"\\n\\t"],[18,5,null],[1,"\\n"],[13]],["@className","@id","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/picture/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/progress/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"69E8Jd7X",block:'[[[11,"progress"],[16,0,[30,1]],[16,"dir",[30,2]],[16,1,[30,3]],[16,"inert",[30,4]],[16,"max",[30,5]],[16,"part",[30,6]],[24,"role","progressbar"],[16,"title",[30,7]],[16,2,[30,8]],[17,9],[12],[18,10,null],[13]],["@className","@dir","@id","@inert","@max","@part","@title","@value","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/progress/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/section/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"LxWwaB9B",block:'[[[11,"section"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/section/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/small/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"eLPwguwB",block:'[[[11,"small"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/small/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/source/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ocxhmdsv",block:'[[[11,"source"],[16,0,[30,1]],[16,1,[30,2]],[16,"media",[30,3]],[16,"role",[30,4]],[16,"size",[30,5]],[16,"src",[30,6]],[16,"srcset",[30,7]],[16,4,[30,8]],[17,9],[12],[13]],["@className","@id","@media","@role","@size","@src","@srcset","@type","&attrs"],false,[]]',moduleName:"gds/components/foundations/source/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/span/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"PyZeI3zj",block:'[[[11,1],[16,"aria-label",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,1,[30,4]],[16,"inert",[30,5]],[16,"part",[30,6]],[16,"role",[30,7]],[17,8],[12],[18,9,null],[13]],["@ariaLabel","@className","@dir","@id","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/span/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/strong/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"wzsMmnea",block:'[[[11,"strong"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[16,"role",[30,5]],[17,6],[12],[18,7,null],[13]],["@className","@dir","@inert","@part","@role","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/strong/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)}))
define("gds/components/foundations/summary/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"gaJFQ6Ov",block:'[[[11,"summary"],[16,"accesskey",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,1,[30,4]],[16,"inert",[30,5]],[16,"part",[30,6]],[16,"tabindex",[30,7]],[17,8],[12],[18,9,null],[13]],["@accessKey","@className","@dir","@id","@inert","@part","@tabIndex","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/summary/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/svg/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"G5xE5PsJ",block:'[[[11,"svg"],[16,"aria-label",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[16,"role",[30,6]],[17,7],[12],[10,"use"],[15,6,[29,[[30,8]]]],[12],[13],[13]],["@ariaLabel","@className","@dir","@inert","@part","@role","&attrs","@url"],false,[]]',moduleName:"gds/components/foundations/svg/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/table/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"HpizM5Zc",block:'[[[11,"table"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","table"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/table/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/tbody/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"v/EM2xRN",block:'[[[11,"tbody"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","rowgroup"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/tbody/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/td/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"kLrmEBZ5",block:'[[[11,"td"],[16,0,[30,1]],[16,"colspan",[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","cell"],[17,6],[12],[18,7,null],[13]],["@className","@colspan","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/td/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/text-area/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ZSOeMJhI",block:'[[[11,"textarea"],[16,0,[30,1]],[16,"cols",[30,2]],[16,"dir",[30,3]],[16,"disabled",[30,4]],[16,1,[30,5]],[16,"inert",[30,6]],[16,"maxlength",[30,7]],[16,"part",[30,8]],[16,"placeholder",[30,9]],[16,"role",[30,10]],[16,"rows",[30,11]],[16,"tabindex",[30,12]],[16,"title",[30,13]],[16,2,[30,14]],[17,15],[12],[1,[30,14]],[13]],["@className","@cols","@dir","@disabled","@id","@inert","@maxlength","@part","@placeholder","@role","@rows","@tabIndex","@title","@value","&attrs"],false,[]]',moduleName:"gds/components/foundations/text-area/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/tfoot/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"o31ua7pi",block:'[[[11,"tfoot"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","rowgroup"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/tfoot/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/th/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Yp3IfZ0D",block:'[[[11,"th"],[16,0,[30,1]],[16,"colspan",[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","cell"],[17,6],[12],[18,7,null],[13]],["@className","@colspan","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/th/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/thead/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"KlE6eMpu",block:'[[[11,"thead"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","rowgroup"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/thead/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/time/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"8xtJ+yzQ",block:'[[[11,"time"],[16,0,[30,1]],[16,"datatime",[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","timer"],[17,6],[12],[18,7,null],[13]],["@className","@dateTime","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/time/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/tr/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"SfrCvQeS",block:'[[[11,"tr"],[16,0,[30,1]],[16,"dir",[30,2]],[16,"inert",[30,3]],[16,"part",[30,4]],[24,"role","row"],[17,5],[12],[18,6,null],[13]],["@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/tr/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/foundations/ul/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"4CApAXTC",block:'[[[11,"ul"],[16,"aria-hidden",[30,1]],[16,0,[30,2]],[16,"dir",[30,3]],[16,"inert",[30,4]],[16,"part",[30,5]],[24,"role","list"],[17,6],[12],[18,7,null],[13]],["@ariaHidden","@className","@dir","@inert","@part","&attrs","&default"],false,["yield"]]',moduleName:"gds/components/foundations/ul/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/avatar/icon/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"4EjWd82P",block:'[[[8,[39,0],null,[["@className","@shape","@size"],[[30,0,["elementClassName"]],"square",[30,1]]],[["default"],[[[[1,"\\n  "],[8,[30,2,["icon"]],null,[["@name"],[[30,0,["icon"]]]],null],[1,"\\n"]],[2]]]]]],["@size","a"],false,["core/avatar"]]',moduleName:"gds/components/platform/avatar/icon/index.hbs",isStrictMode:!1})
class s extends r.default{get background(){return this.args.background??"bgdefault"}get elementClassName(){const e=[]
return this.background&&e.push(this.background),this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get icon(){return this.args.icon.replace("igospace","s")}}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/avatar/user/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"SuXPnxYX",block:'[[[8,[39,0],null,[["@shape","@size"],["round",[30,1]]],[["default"],[[[[41,[30,3],[[[8,[30,2,["image"]],null,[["@alt","@src","@srcSet","@title"],[[30,4],[30,3],[30,5],[29,[[30,6]," ",[30,7]]]]],null]],[]],[[[8,[30,2,["initials"]],null,[["@words"],[[28,[37,2],[[30,0,["firstName"]],[30,0,["lastName"]]],null]]],null]],[]]]],[2]]]]]],["@size","a","@image","@alt","@imageSet","@firstName","@lastName"],false,["core/avatar","if","array"]]',moduleName:"gds/components/platform/avatar/user/index.hbs",isStrictMode:!1})
class s extends r.default{get firstName(){return this.args.firstName??""}get lastName(){return this.args.lastName??""}}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/badge/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={shape:{className:{round:"round",square:"square"},default:0,options:["round","square"]},size:{className:{large:"l",medium:"m",small:"s"},default:1,options:["large","medium","small"]},style:{default:1,options:["away","default","disable","error","info","notifications","offline","online","success","warning"],values:{away:{background:null,className:"away"},default:{background:null,className:"default"},disable:{background:null,className:"disable"},error:{background:null,className:"error"},info:{background:null,className:"info"},notifications:{background:null,className:"notifications"},offline:{background:null,className:"offline"},online:{background:null,className:"online"},success:{background:null,className:"success"},warning:{background:null,className:"warning"}}}}})),define("gds/components/platform/badge/index",["exports","gds/components/core/badge/index","@ember/debug","gds/components/platform/badge/config"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get className(){const e=[i.default.style.values[this.style].className]
return super.className&&e.push(super.className),e.join(" ")}get style(){const e=this.args.style??i.default.style.options[i.default.style.default]
return e}}e.default=n})),define("gds/components/platform/button/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={style:{default:0,options:["default","primary","secondary"],values:{default:{className:"default"},primary:{className:"contained"},secondary:{className:"outline"}}}}})),define("gds/components/platform/button/index",["exports","gds/components/core/button/index","@ember/debug","gds/components/platform/button/config"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get className(){const e=[i.default.style.values[this.style].className]
return super.className&&e.push(super.className),e.join(" ")}get style(){const e=this.args.style??i.default.style.options[i.default.style.default]
return e}}e.default=n})),define("gds/components/platform/button/primary/index",["exports","gds/components/platform/button/index"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),r(this,"style","primary")}}e.default=i})),define("gds/components/platform/button/secondary/index",["exports","gds/components/platform/button/index"],(function(e,t){"use strict"
function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),r(this,"style","secondary")}}e.default=i})),define("gds/components/platform/cards/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"YKH9DLtN",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@style"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3]]],[["default"],[[[[1,"\\n  "],[18,4,null],[1,"\\n"]],[]]]]]],["&attrs","@className","@style","&default"],false,["core/cards","config","yield"]]',moduleName:"gds/components/platform/cards/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/navigation/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/navigation/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/navigation/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/navigation/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"66wt3yAR",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@component","@dir","@style"],["h2",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"title1"]],[["default"],[[[[41,[30,3],[[[8,[39,4],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3]]],null]],[]],null],[1,[30,4]],[1,"\\n\\t"]],[]]]]],[41,[48,[30,5]],[[[8,[39,6],null,null,[["default"],[[[[1,"\\n      "],[18,5,[[28,[37,8],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n    "]],[]]]]]],[]],null]],[]]]]]],["&attrs","@className","@icon","@text","&actions"],false,["core/cards/header","config","core/typography","if","core/icon","has-block","core/cards/actions","yield","hash","component"]]',moduleName:"gds/components/platform/cards/navigation/header/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get item(){return"foundations/li"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/navigation/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/navigation/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"ZlUez8l/",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],["navigation",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[18,2,null],[1,"\\n"]],[]]]]]],["&attrs","&default"],false,["platform/cards","config","yield"]]',moduleName:"gds/components/platform/cards/navigation/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/sign-up/body/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/sign-up/body/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/sign-up/body/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"RfKLS4G2",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@form"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true]],[["default"],[[[[1,"\\n  "],[18,3,null],[1,"\\n"]],[]]]]]],["&attrs","@className","&default"],false,["core/cards/body","config","yield"]]',moduleName:"gds/components/platform/cards/sign-up/body/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/sign-up/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/sign-up/footer/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}}))
define("gds/components/platform/cards/sign-up/footer/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/sign-up/footer/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"rHySIyvv",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@form"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true]],[["default"],[[[[1,"\\n  "],[18,3,null],[1,"\\n"]],[]]]]]],["&attrs","@className","&default"],false,["core/cards/footer","config","yield"]]',moduleName:"gds/components/platform/cards/sign-up/footer/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/sign-up/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/cards/sign-up/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/sign-up/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"91rl/Cih",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@form"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true]],[["default"],[[[[1,"\\n"],[41,[30,3],[[[1,"    "],[8,[39,3],null,[["@dir","@height","@src","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],44,[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,4],null,[["@component","@dir","@style"],["h2",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"title1"]],[["default"],[[[[41,[30,5],[[[8,[39,5],null,[["@name"],[[30,5]]],null]],[]],null],[1,[30,6]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]]],["&attrs","@className","@image","@imageTitle","@icon","@text"],false,["core/cards/header","config","if","core/image","core/typography","core/icon"]]',moduleName:"gds/components/platform/cards/sign-up/header/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/cards/sign-up/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/cards/sign-up/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"CjZyg5ak",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],["signup",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@dir","@form","@onSubmit","@submitOnEnter"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true,[30,2],[30,3]]],[["default"],[[[[1,"\\n\\t\\t"],[8,[39,3],null,[["@image","@imageTitle","@icon","@text"],[[30,5],[30,6],[30,7],[30,8]]],null],[41,[48,[30,9]],[[[8,[30,4,["body"]],null,null,[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,9,null],[1,"\\n\\t\\t\\t"]],[]]]]]],[]],null],[41,[48,[30,10]],[[[8,[30,4,["footer"]],null,null,[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,10,null],[1,"\\n\\t\\t\\t"]],[]]]]]],[]],null]],[4]]]]],[1,"\\n"]],[]]]]]],["&attrs","@onSubmit","@submitOnEnter","i","@image","@imageTitle","@icon","@title","&body","&footer"],false,["platform/cards","config","core/cards/inside","platform/cards/sign-up/header","if","has-block","yield"]]',moduleName:"gds/components/platform/cards/sign-up/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/drop-down/profile-item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/drop-down/profile-item/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/drop-down/profile-item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"boGkx74t",block:'[[[8,[39,0],null,[["@className","@dir"],[[30,0,["elementClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@alt","@dir","@firstName","@image","@imageSet","@lastName","@size"],[[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,2],[30,3],[30,4],[30,5],"xlarge"]],null],[1,"\\n  "],[8,[39,3],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,2]],[1," "],[1,[30,5]]],[]]]]],[41,[30,6],[[[8,[39,5],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,6]]],[]]]]]],[]],null]],[]]]]]],["@alt","@firstName","@image","@imageSet","@lastName","@position"],false,["foundations/div","config","platform/avatar/user","foundations/em","if","foundations/small"]]',moduleName:"gds/components/platform/drop-down/profile-item/index.hbs",isStrictMode:!1})
class o extends r.default{get elementClassName(){const e=["profileitem"]
return this.className&&e.push(this.className),e.join(" ")}get className(){return this.args.className??""}get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/form/auto-suggest/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
var a,o,l
function c(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,s.createTemplateFactory)({id:"sDvWFkdC",block:'[[[1,[28,[35,0],[[30,0,["handleValueUpdate"]],[30,1]],null]],[1,"\\n"],[8,[39,1],null,[["@className","@disabled","@error","@focus","@label","@loading","@tag"],["autosuggest",[30,2],[30,0,["isErrorState"]],[30,0,["isFocused"]],[30,3],[30,4],[30,5]]],[["popup","icon","control","instruction","count","error"],[[[[1,"\\n\\t\\t"],[18,23,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,24]],[[[18,24,null]],[]],[[[41,[30,6],[[[8,[39,5],null,[["@className","@name"],[[30,0,["iconClassName"]],[30,6]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[8,[30,7,["autosuggest"]],[[17,8]],[["@ariaLabel","@disabled","@highlight","@loading","@multiple","@onBlur","@onChange","@onFocus","@onSearch","@options","@placeholder","@tabIndex","@title","@value"],[[30,9],[30,2],[30,10],[30,4],[30,11],[30,0,["handleInputBlurEvent"]],[30,0,["handleInputInputEvent"]],[30,0,["handleInputFocusEvent"]],[30,12],[30,13],[30,14],[30,15],[30,16],[30,1]]],[["option"],[[[[41,[48,[30,25]],[[[18,25,[[30,17],[30,18]]]],[]],[[[41,[48,[30,26]],[[[18,26,[[30,17],[30,18]]]],[]],[[[8,[30,18],null,[["@caption","@text","@title"],[[28,[37,6],[[30,17,["caption"]],[30,10]],null],[28,[37,6],[[30,17,["text"]],[30,10]],null],[28,[37,6],[[30,17,["title"]],[30,10]],null]]],null]],[]]]],[]]]],[17,18]]]]],[41,[28,[37,7],[[30,11],[30,0,["selectedOptions"]]],null],[[[42,[28,[37,9],[[28,[37,9],[[30,0,["selectedOptions"]]],null]],null],null,[[[8,[39,10],null,[["@onClick","@removable","@text"],[[28,[37,11],[[30,0,["remove"]],[30,19,["value"]]],null],[28,[37,12],[[30,2]],null],[30,19,["text"]]]],null]],[19]],null]],[]],null]],[7]],[[[41,[48,[30,27]],[[[18,27,null]],[]],[[[41,[30,20],[[[8,[39,13],null,[["@text"],[[30,20]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,28]],[[[18,28,[[28,[37,14],null,[["count"],[[30,0,["valueLength"]]]]]]]],[]],[[[41,[30,21],[[[8,[39,15],null,[["@maximum","@start"],[[30,21],[30,0,["valueLength"]]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,29]],[[[18,29,null]],[]],[[[8,[39,16],null,[["@text"],[[30,22]]],null]],[]]]],[]]]]]],["@value","@disabled","@label","@loading","@tag","@icon","c","&attrs","@ariaLabel","@highlight","@multiple","@onSearch","@options","@placeholder","@tabIndex","@title","option","textBox","option","@instruction","@maxLength","@error","&popup","&icon","&option","&default","&instruction","&count","&error"],false,["did-update","core/form/field","yield","if","has-block","core/icon","highlighter","and","each","-track-array","core/chip","fn","not","core/form/instruction","hash","core/form/count","core/form/error"]]',moduleName:"gds/components/platform/form/auto-suggest/index.hbs",isStrictMode:!1})
let h=e.default=(a=class extends r.default{constructor(...e){super(...e),c(this,"isFocused",o,this),c(this,"selectedOptions",l,this)}get className(){return this.args.className??""}get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}get iconClassName(){const e=["first"]
return this.className&&e.push(this.className),e.join(" ")}handleInputBlurEvent(e){this.isFocused=!1,this.args.onBlur&&this.args.onBlur(e)}handleInputFocusEvent(e){this.isFocused=!0,this.args.onFocus&&this.args.onFocus(e)}handleInputInputEvent(e){this.selectedOptions=this.args.options.filter((t=>e.includes(t.value))),this.args.onChange&&this.args.onChange(e)}handleValueUpdate([e]){this.args.multiple&&(this.selectedOptions=this.selectedOptions.filter((t=>e.includes(t.value))))}remove(e){const t=this.args.value.filter((t=>t!=e))
this.args.onChange&&this.args.onChange(t)}},o=u(a.prototype,"isFocused",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=u(a.prototype,"selectedOptions",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u(a.prototype,"handleInputBlurEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputBlurEvent"),a.prototype),u(a.prototype,"handleInputFocusEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputFocusEvent"),a.prototype),u(a.prototype,"handleInputInputEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputInputEvent"),a.prototype),u(a.prototype,"handleValueUpdate",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleValueUpdate"),a.prototype),u(a.prototype,"remove",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"remove"),a.prototype),a);(0,t.setComponentTemplate)(d,h)})),define("gds/components/platform/form/checkbox/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ZjcgMBlM",block:'[[[8,[39,0],null,[["@disabled","@error","@label","@text"],[[30,1],[30,0,["isErrorState"]],[30,2],[30,3]]],[["control","text","link","error"],[[[[1,"\\n\\t\\t"],[8,[30,4,["checkbox"]],[[17,5]],[["@checkedValue","@onBlur","@onChange","@onFocus","@uncheckedValue","@text","@value"],[[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12]]],null],[1,"\\n\\t"]],[4]],[[[41,[48,[30,15]],[[[18,15,null]],[]],[[[41,[30,13],[[[8,[39,4],null,[["@text"],[[30,13]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[18,16,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,15]],[[[18,15,null]],[]],[[[41,[30,14],[[[8,[39,5],null,[["@text"],[[30,14]]],null]],[]],null]],[]]]],[]]]]]],["@disabled","@label","@instruction","c","&attrs","@checkedValue","@onBlur","@onChange","@onFocus","@uncheckedValue","@state","@value","@text","@error","&error","&link"],false,["core/form/field-button","if","has-block","yield","core/form/text","core/form/error"]]',moduleName:"gds/components/platform/form/checkbox/index.hbs",isStrictMode:!1})
class s extends r.default{get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/form/date-picker/date-range-picker/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"JdaL9CiA",block:'[[[8,[39,0],null,[["@applyLabel","@cancelLabel","@customRangeLabel","@dateFormat","@daysLabels","@endDate","@extraAttrs","@maxDate","@minDate","@monthsLabels","@ranges","@startDate","@tagName"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[28,[37,1],null,[["tabindex","type"],[[30,7],"button"]]],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13]]],[["default"],[[[[1,"\\n\\t"],[1,[30,14]],[1,"\\n"]],[]]]]]],["@applyLabel","@cancelLabel","@label","@dateFormat","@daysLabels","@endDate","@tabIndex","@maxDate","@minDate","@monthsLabels","@ranges","@startDate","@component","@placeholder"],false,["core/form/date-picker/date-range-picker","hash"]]',moduleName:"gds/components/platform/form/date-picker/date-range-picker/index.hbs",isStrictMode:!1})
class o extends r.default{}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/form/date-picker/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"FkPTmZWr",block:'[[[8,[39,0],[[17,1]],[["@className","@dayAriaLabel","@dayLabel","@dayPlaceholder","@dayTabIndex","@dayTitle","@disabled","@error","@focus","@format","@label","@monthAriaLabel","@monthLabel","@monthPlaceholder","@monthTabIndex","@monthTitle","@onBlur","@onChange","@onFocus","@value","@yearAriaLabel","@yearLabel","@yearPlaceholder","@yearTabIndex","@yearTitle"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25],[30,26]]],[["popup","instruction","error"],[[[[1,"\\n\\t\\t"],[18,28,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,29]],[[[18,29,null]],[]],[[[41,[30,27],[[[8,[39,4],null,[["@text"],[[30,27]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,30]],[[[18,30,null]],[]],[[[8,[39,5],null,[["@text"],[[30,9]]],null]],[]]]],[]]]]]],["&attrs","@className","@dayAriaLabel","@dayLabel","@dayPlaceholder","@dayTabIndex","@dayTitle","@disabled","@error","@focus","@format","@label","@monthAriaLabel","@monthLabel","@monthPlaceholder","@monthTabIndex","@monthTitle","@onBlur","@onChange","@onFocus","@value","@yearAriaLabel","@yearLabel","@yearPlaceholder","@yearTabIndex","@yearTitle","@instruction","&popup","&instruction","&error"],false,["core/form/date-picker","yield","if","has-block","core/form/instruction","core/form/error"]]',moduleName:"gds/components/platform/form/date-picker/index.hbs",isStrictMode:!1})
class o extends r.default{}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/form/index",["exports","@ember/component","@glimmer/component","@ember/object","@ember/template-factory"],(function(e,t,r,i,n){"use strict"
var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,n.createTemplateFactory)({id:"l1bY+qat",block:'[[[8,[39,0],[[17,1]],[["@className","@submitOnEnter","@onSubmit"],[[30,2],[30,3],[30,0,["handleSubmitEvent"]]]],[["default"],[[[[1,"\\n\\t"],[18,4,null],[1,"\\n"]],[]]]]]],["&attrs","@className","@submitOnEnter","&default"],false,["core/form","yield"]]',moduleName:"gds/components/platform/form/index.hbs",isStrictMode:!1})
let o=e.default=(s=class extends r.default{handleSubmitEvent(e){e.preventDefault(),this.args.onSubmit&&this.args.onSubmit(e)}},l=s.prototype,c="handleSubmitEvent",u=[i.action],d=Object.getOwnPropertyDescriptor(s.prototype,"handleSubmitEvent"),h=s.prototype,p={},Object.keys(d).forEach((function(e){p[e]=d[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,c,e)||e}),p),h&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(h):void 0,p.initializer=void 0),void 0===p.initializer&&Object.defineProperty(l,c,p),s)
var l,c,u,d,h,p;(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/form/input/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
var a,o
function l(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,s.createTemplateFactory)({id:"+bbPvyCS",block:'[[[8,[39,0],null,[["@disabled","@error","@focus","@label","@tag"],[[30,1],[30,0,["isErrorState"]],[30,0,["isFocused"]],[30,2],[30,3]]],[["popup","icon","control","instruction","count","error"],[[[[1,"\\n\\t\\t"],[18,18,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,19]],[[[18,19,null]],[]],[[[41,[30,4],[[[8,[39,4],null,[["@className","@name"],[[30,5],[30,4]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[8,[30,6,["input"]],[[17,7],[4,[38,5],["blur",[30,0,["handleInputBlurEvent"]]],null],[4,[38,5],["focus",[30,0,["handleInputFocusEvent"]]],null],[4,[38,5],["input",[30,0,["handleInputInputEvent"]]],null]],[["@ariaLabel","@disabled","@maxLength","@onClear","@placeholder","@tabIndex","@title","@type","@value"],[[30,8],[30,1],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n\\t"]],[6]],[[[41,[48,[30,20]],[[[18,20,null]],[]],[[[41,[30,16],[[[8,[39,6],null,[["@text"],[[30,16]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,21]],[[[18,21,[[28,[37,7],null,[["count"],[[30,0,["valueLength"]]]]]]]],[]],[[[41,[30,9],[[[8,[39,8],null,[["@maximum","@start"],[[30,9],[30,0,["valueLength"]]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,22]],[[[18,22,null]],[]],[[[41,[30,17],[[[8,[39,9],null,[["@text"],[[30,17]]],null]],[]],null]],[]]]],[]]]]]],["@disabled","@label","@tag","@icon","@iconClassName","c","&attrs","@ariaLabel","@maxLength","@onClear","@placeholder","@tabIndex","@title","@type","@value","@instruction","@error","&popup","&icon","&instruction","&count","&error"],false,["core/form/field","yield","if","has-block","core/icon","on","core/form/instruction","hash","core/form/count","core/form/error"]]',moduleName:"gds/components/platform/form/input/index.hbs",isStrictMode:!1})
let u=e.default=(a=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isFocused",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}get valueLength(){return this.args.value?.length||0}handleInputBlurEvent(e){this.isFocused=!1,this.args.onBlur&&this.args.onBlur(e)}handleInputFocusEvent(e){this.isFocused=!0,this.args.onFocus&&this.args.onFocus(e)}handleInputInputEvent(e){this.args.onChange&&this.args.onChange(e,e.target.value)}},o=l(a.prototype,"isFocused",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l(a.prototype,"handleInputBlurEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputBlurEvent"),a.prototype),l(a.prototype,"handleInputFocusEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputFocusEvent"),a.prototype),l(a.prototype,"handleInputInputEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputInputEvent"),a.prototype),a);(0,t.setComponentTemplate)(c,u)})),define("gds/components/platform/form/radio/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"lq+ivZ5o",block:'[[[8,[39,0],null,[["@disabled","@error","@label","@text"],[[30,1],[30,0,["isErrorState"]],[30,2],[30,3]]],[["control","text","link","error"],[[[[1,"\\n\\t\\t"],[8,[30,4,["radio"]],[[17,5]],[["@checkedValue","@value","@onChange","@onBlur","@onFocus","@text"],[[30,6],[30,7],[30,8],[30,9],[30,10],[30,11]]],null],[1,"\\n\\t"]],[4]],[[[41,[48,[30,14]],[[[18,14,null]],[]],[[[41,[30,12],[[[8,[39,4],null,[["@text"],[[30,12]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[18,15,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,14]],[[[18,14,null]],[]],[[[41,[30,13],[[[8,[39,5],null,[["@text"],[[30,13]]],null]],[]],null]],[]]]],[]]]]],[1,"\\n"]],["@disabled","@label","@instruction","c","&attrs","@checkedValue","@value","@onChange","@onBlur","@onFocus","@state","@text","@error","&error","&link"],false,["core/form/field-button","if","has-block","yield","core/form/text","core/form/error"]]',moduleName:"gds/components/platform/form/radio/index.hbs",isStrictMode:!1})
class s extends r.default{get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/form/search/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"mAp6ptp6",block:'[[[8,[39,0],null,[["@className","@submitOnEnter","@onSubmit"],["search",true,[30,1]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,null,[["default"],[[[[1,"\\n\\t\\t"],[8,[39,2],[[17,2]],[["@ariaLabel","@icon","@iconClassName","@disabled","@error","@onChange","@onClear","@placeholder","@title","@value"],["search","search","first",[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],null],[1,"\\n\\t"]],[]]]]],[1,"\\n"]],[]]]]]],["@onSubmit","&attrs","@disabled","@error","@onChange","@onClear","@placeholder","@title","@value"],false,["platform/form","core/form/fieldset","platform/form/input"]]',moduleName:"gds/components/platform/form/search/index.hbs",isStrictMode:!1})
class s extends r.default{}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/form/select/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
var a,o
function l(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,s.createTemplateFactory)({id:"wR9F/JvE",block:'[[[8,[39,0],null,[["@disabled","@error","@focus","@label","@loading"],[[30,1],[30,0,["isErrorState"]],[30,0,["isFocused"]],[30,2],[30,3]]],[["popup","icon","control","instruction","count","error"],[[[[1,"\\n\\t\\t"],[18,22,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,23]],[[[18,23,null]],[]],[[[41,[30,4],[[[8,[39,4],null,[["@className","@name"],[[30,5],[30,4]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[8,[30,6,["select"]],[[17,7]],[["@ariaLabel","@disabled","@loading","@multiple","@onBlur","@onChange","@onFocus","@options","@placeholder","@tabIndex","@title","@value"],[[30,8],[30,1],[30,3],[30,9],[30,0,["handleInputBlurEvent"]],[30,0,["handleInputInputEvent"]],[30,0,["handleInputFocusEvent"]],[30,10],[30,11],[30,12],[30,13],[30,14]]],[["selected","option"],[[[[41,[48,[30,24]],[[[18,24,[[30,15],[30,16]]]],[]],[[[41,[48,[30,25]],[[[18,25,[[30,15],[30,16]]]],[]],[[[41,[48,[30,26]],[[[18,26,[[30,15],[30,16]]]],[]],[[[8,[30,16],null,[["@caption","@text","@title"],[[30,15,["caption"]],[30,15,["text"]],[30,15,["title"]]]],null]],[]]]],[]]]],[]]]],[15,16]],[[[41,[48,[30,25]],[[[18,25,[[30,17],[30,18]]]],[]],[[[41,[48,[30,26]],[[[18,26,[[30,17],[30,18]]]],[]],[[[8,[30,18],null,[["@caption","@text","@title"],[[30,17,["caption"]],[30,17,["text"]],[30,17,["title"]]]],null]],[]]]],[]]]],[17,18]]]]],[1,"\\n\\t"]],[6]],[[[41,[48,[30,27]],[[[18,27,null]],[]],[[[41,[30,19],[[[8,[39,5],null,[["@text"],[[30,19]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,28]],[[[18,28,[[28,[37,6],null,[["count"],[[30,0,["valueLength"]]]]]]]],[]],[[[41,[30,20],[[[8,[39,7],null,[["@maximum","@start"],[[30,20],[30,0,["valueLength"]]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,29]],[[[18,29,null]],[]],[[[41,[30,21],[[[8,[39,8],null,[["@text"],[[30,21]]],null]],[]],null]],[]]]],[]]]]]],["@disabled","@label","@loading","@icon","@iconClassName","c","&attrs","@ariaLabel","@multiple","@options","@placeholder","@tabIndex","@title","@value","option","textBox","option","textBox","@instruction","@maxLength","@error","&popup","&icon","&selected","&option","&default","&instruction","&count","&error"],false,["core/form/field","yield","if","has-block","core/icon","core/form/instruction","hash","core/form/count","core/form/error"]]',moduleName:"gds/components/platform/form/select/index.hbs",isStrictMode:!1})
let u=e.default=(a=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isFocused",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}handleInputBlurEvent(e){this.isFocused=!1,this.args.onBlur&&this.args.onBlur(e)}handleInputFocusEvent(e){this.isFocused=!0,this.args.onFocus&&this.args.onFocus(e)}handleInputInputEvent(e){this.args.onChange&&this.args.onChange(e)}},o=l(a.prototype,"isFocused",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l(a.prototype,"handleInputBlurEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputBlurEvent"),a.prototype),l(a.prototype,"handleInputFocusEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputFocusEvent"),a.prototype),l(a.prototype,"handleInputInputEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputInputEvent"),a.prototype),a);(0,t.setComponentTemplate)(c,u)})),define("gds/components/platform/form/switch/index",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"sgQ54ArG",block:'[[[8,[39,0],null,[["@disabled","@error","@label","@text"],[[30,1],[30,0,["isErrorState"]],[30,2],[30,3]]],[["control","text","link","error"],[[[[1,"\\n\\t\\t"],[8,[30,4,["switch"]],[[17,5]],[["@offValue","@onBlur","@onChange","@onFocus","@onValue","@text","@value"],[[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12]]],null],[1,"\\n\\t"]],[4]],[[[41,[48,[30,15]],[[[18,15,null]],[]],[[[41,[30,13],[[[8,[39,4],null,[["@text"],[[30,13]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[18,16,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,15]],[[[18,15,null]],[]],[[[41,[30,14],[[[8,[39,5],null,[["@text"],[[30,14]]],null]],[]],null]],[]]]],[]]]]]],["@disabled","@label","@instruction","c","&attrs","@offValue","@onBlur","@onChange","@onFocus","@onValue","@state","@value","@text","@error","&error","&link"],false,["core/form/field-button","if","has-block","yield","core/form/text","core/form/error"]]',moduleName:"gds/components/platform/form/switch/index.hbs",isStrictMode:!1})
class s extends r.default{get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}}e.default=s,(0,t.setComponentTemplate)(n,s)})),define("gds/components/platform/form/text-area/index",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
var a,o
function l(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,s.createTemplateFactory)({id:"HsTzpYxx",block:'[[[8,[39,0],null,[["@disabled","@error","@focus","@label"],[[30,1],[30,0,["isErrorState"]],[30,0,["isFocused"]],[30,2]]],[["popup","icon","control","instruction","count","error"],[[[[1,"\\n\\t\\t"],[18,18,null],[1,"\\n\\t"]],[]],[[[41,[48,[30,19]],[[[18,19,null]],[]],[[[41,[30,3],[[[8,[39,4],null,[["@className","@name"],[[30,4],[30,3]]],null]],[]],null]],[]]]],[]],[[[1,"\\n\\t\\t"],[8,[30,5,["textArea"]],[[17,6],[4,[38,5],["blur",[30,0,["handleInputBlurEvent"]]],null],[4,[38,5],["focus",[30,0,["handleInputFocusEvent"]]],null],[4,[38,5],["input",[30,0,["handleInputInputEvent"]]],null]],[["@ariaLabel","@cols","@disabled","@maxLength","@onClear","@placeholder","@rows","@tabIndex","@title","@value"],[[30,7],[30,8],[30,1],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n\\t"]],[5]],[[[41,[48,[30,20]],[[[18,20,null]],[]],[[[41,[30,16],[[[8,[39,6],null,[["@text"],[[30,16]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,21]],[[[18,21,[[28,[37,7],null,[["count"],[[30,0,["valueLength"]]]]]]]],[]],[[[41,[30,9],[[[8,[39,8],null,[["@maximum","@start"],[[30,9],[30,0,["valueLength"]]]],null]],[]],null]],[]]]],[]],[[[41,[48,[30,22]],[[[18,22,null]],[]],[[[41,[30,17],[[[8,[39,9],null,[["@text"],[[30,17]]],null]],[]],null]],[]]]],[]]]]]],["@disabled","@label","@icon","@iconClassName","c","&attrs","@ariaLabel","@cols","@maxLength","@onClear","@placeholder","@rows","@tabIndex","@title","@value","@instruction","@error","&popup","&icon","&instruction","&count","&error"],false,["core/form/field","yield","if","has-block","core/icon","on","core/form/instruction","hash","core/form/count","core/form/error"]]',moduleName:"gds/components/platform/form/text-area/index.hbs",isStrictMode:!1})
let u=e.default=(a=class extends r.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="isFocused",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get isErrorState(){return this.args.hasError??Boolean(this.args.error)??!1}get valueLength(){return this.args.value?.length||0}handleInputBlurEvent(e){this.isFocused=!1,this.args.onBlur&&this.args.onBlur(e)}handleInputFocusEvent(e){this.isFocused=!0,this.args.onFocus&&this.args.onFocus(e)}handleInputInputEvent(e){const t=e.target.value
this.args.onChange&&this.args.onChange(t)}},o=l(a.prototype,"isFocused",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l(a.prototype,"handleInputBlurEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputBlurEvent"),a.prototype),l(a.prototype,"handleInputFocusEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputFocusEvent"),a.prototype),l(a.prototype,"handleInputInputEvent",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleInputInputEvent"),a.prototype),a);(0,t.setComponentTemplate)(c,u)})),define("gds/components/platform/header/actions/divider/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/actions/divider/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/actions/divider/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"s/c3HHUi",block:'[[[8,[39,0],null,[["@className","@dir"],["divider",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],null],[1,"\\n"]],[]]]]]],[],false,["foundations/li","config","core/divider"]]',moduleName:"gds/components/platform/header/actions/divider/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/actions/drop-down/item/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/actions/drop-down/item/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/actions/drop-down/item/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"jLrIIZow",block:'[[[8,[39,0],null,[["@className","@dir"],["actions",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@closeOnInsideClick","@dir","@placement"],[[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"bottom-end"]],[["trigger","content"],[[[[41,[30,3],[[[8,[39,4],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],"round","medium",[30,5],[30,3]]],null]],[]],null],[8,[30,2,["iconButton"]],[[17,6]],[["@accessKey","@active","@dir","@disable","@size","@style","@text","@title"],[[30,7],[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,9],"smedium",[30,10],[30,11],[30,12]]],null],[1,"\\n\\t\\t"]],[2]],[[[1,"\\n\\t\\t\\t"],[8,[39,5],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,14,[[30,13]]],[1,"\\n\\t\\t\\t"]],[]]]]],[1,"\\n\\t\\t"]],[13]]]]],[1,"\\n"]],[]]]]]],["@closeOnInsideClick","dt","@status","@badgeTextHidden","@badgeText","&attrs","@accessKey","@active","@disable","@style","@text","@title","dc","&default"],false,["foundations/li","config","core/drop-down","if","platform/badge","core/list","yield"]]',moduleName:"gds/components/platform/header/actions/drop-down/item/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/actions/drop-down/profile/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/actions/drop-down/profile/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/actions/drop-down/profile/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"KmYidbBR",block:'[[[8,[39,0],null,[["@className","@dir"],["actions",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@closeOnInsideClick","@dir","@placement"],[[30,1],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"bottom-end"]],[["trigger","content"],[[[[1,"\\n\\t\\t\\t"],[8,[30,2,["button"]],[[17,3]],[["@accessKey","@active","@dir","@disable","@status"],[[30,4],[30,5],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,6],[30,7]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[8,[39,3],null,[["@alt","@dir","@firstName","@image","@imageSet","@lastName","@size"],[[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,9],[30,10],[30,11],[30,12],"small"]],null],[41,[30,7],[[[8,[39,5],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true,"round","xsmall",[30,7],[30,7]]],null]],[]],null]],[]]]]],[1,"\\n\\t\\t"]],[2]],[[[1,"\\n\\t\\t\\t"],[8,[39,6],null,[["@alt","@dir","@firstName","@image","@imageSet","@lastName","@position"],[[30,8],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,9],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n\\t\\t\\t"],[8,[39,7],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,15,null],[1,"\\n\\t\\t\\t"]],[14]]]]],[1,"\\n\\t\\t"]],[]]]]],[1,"\\n"]],[]]]]]],["@closeOnInsideClick","dt","&attrs","@accessKey","@active","@disable","@status","@alt","@firstName","@image","@imageSet","@lastName","@position","dc","&default"],false,["foundations/li","config","core/drop-down","platform/avatar/user","if","platform/badge","platform/drop-down/profile-item","core/list","yield"]]',moduleName:"gds/components/platform/header/actions/drop-down/profile/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/actions/icon-button/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/actions/icon-button/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/actions/icon-button/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"+w/6wFva",block:'[[[8,[39,0],null,[["@className","@dir"],["actions",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@accessKey","@active","@dir","@disabled","@onClick","@size","@style","@text","@title"],[[30,1],[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,4],"smedium",[30,5],[30,6],[30,7]]],null],[41,[30,8],[[[8,[39,4],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true,"round","xsmall",[30,8],[30,8]]],null]],[]],null]],[]]]]]],["@accessKey","@active","@disabled","@onClick","@style","@text","@title","@status"],false,["foundations/li","config","core/button/icon-button","if","platform/badge"]]',moduleName:"gds/components/platform/header/actions/icon-button/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/actions/link-to/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/actions/link-to/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/actions/link-to/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"41oDDhAJ",block:'[[[8,[39,0],null,[["@className","@dir"],["actions",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@accessKey","@active","@className","@dir","@disabled","@href","@id","@query","@route","@title"],[[30,1],[30,2],"ibtn",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,4],[30,0,["uniqueID"]],[30,5],[30,6],[30,7]]],[["default"],[[[[1,"\\n\\t\\t"],[8,[39,3],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,8]]],null],[1,"\\n\\t\\t"],[1,[30,9]],[1,"\\n\\t"]],[]]]]],[41,[30,10],[[[8,[39,5],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true,"round","xsmall",[30,10],[30,10]]],null]],[]],null]],[]]]]]],["@accessKey","@active","@disabled","@href","@query","@route","@title","@icon","@text","@status"],false,["foundations/li","config","core/link-to","core/icon","if","platform/badge"]]',moduleName:"gds/components/platform/header/actions/link-to/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/brand/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/brand/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/brand/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"HeRzybhf",block:'[[[8,[39,0],null,[["@className","@dir"],["brand",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@active","@dir","@href","@model","@models","@query","@route"],[false,[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],[30,2],[30,3],[30,4],[30,5]]],[["default"],[[[[41,[30,6],[[[8,[39,4],null,[["@dir","@height","@src","@srcSet","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],44,[30,6],[30,7],[30,8]]],null],[41,[51,[30,0,["isHidden"]]],[[[8,[39,6],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,8]]],[]]]]]],[]],null]],[]],[[[41,[30,0,["isIcon"]],[[[8,[39,7],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"go"]],null]],[]],null],[8,[39,6],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,8]]],[]]]]]],[]]]],[]]]]],[1,"\\n"]],[]]]]]],["@href","@model","@models","@query","@route","@image","@imageSet","@text"],false,["foundations/h1","config","core/link-to","if","core/image","unless","foundations/em","core/icon"]]',moduleName:"gds/components/platform/header/brand/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get isHidden(){return this.args.hidden??!0}get isIcon(){return this.args.icon??!0}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/button-experience/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}}))
define("gds/components/platform/header/button-experience/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/platform/header/button-experience/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"LjFrwRUX",block:'[[[8,[39,0],null,[["@className","@dir"],["experience",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],null,[["@accessKey","@active","@dir","@disabled","@id","@onClick","@title"],[[30,1],[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,0,["uniqueID"]],[30,4],[30,5]]],[["default"],[[[[1,"\\n\\t\\t"],[8,[39,3],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,6]]],null],[1,"\\n\\t\\t"],[1,[30,7]],[1,"\\n\\t"]],[]]]]],[41,[30,8],[[[8,[39,5],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,9],"round","medium",[30,10],[30,8]]],null]],[]],null],[41,[30,11],[[[8,[39,6],null,[["@dir","@for","@placement","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["uniqueID"]],"bottom",[30,11]]],null]],[]],null]],[]]]]]],["@accessKey","@active","@disabled","@onClick","@title","@icon","@text","@status","@badgeTextHidden","@badgeText","@description"],false,["foundations/li","config","core/button","core/icon","if","platform/badge","core/tooltip"]]',moduleName:"gds/components/platform/header/button-experience/index.hbs",isStrictMode:!1})
class l extends r.default{get dir(){const e=this.args.dir
if(e)return e}get uniqueID(){return this.args.id??`experiences-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/platform/header/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/experience-bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/experience-bar/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/platform/header/experience-bar/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"Jx1Wxb60",block:'[[[8,[39,0],null,[["@className","@component","@dir"],[[29,[[28,[37,1],null,[["col","s","xs","sm","m","xm","sl","l","xl"],[12,12,12,12,12,12,12,12,12]]]," experiencebar sticky"]],"div",[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,3],null,[["@dir"],[[28,[37,2],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t"],[18,1,null],[1,"\\n\\t"]],[]]]]],[1,"\\n"]],[]]]]]],["&default"],false,["core/col","grid-col","config","foundations/ol","yield"]]',moduleName:"gds/components/platform/header/experience-bar/index.hbs",isStrictMode:!1})
class l extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/platform/header/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/header/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"YyXHkugg",block:'[[[8,[39,0],null,[["@centerClassName","@dir","@leftClassName","@rightClassName","@sticky"],[[30,0,["isCenterClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["isLeftClassName"]],[30,0,["isRightClassName"]],true]],[["left","center","right"],[[[[41,[30,0,["isExtraButtonVisible"]],[[[8,[39,3],null,[["@dir","@onClick","@style","@text","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,1],[30,0,["extraStyle"]],[30,2],[30,3]]],null]],[]],null],[41,[30,0,["isMenuButtonVisible"]],[[[8,[39,3],null,[["@dir","@onClick","@style","@text","@title"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],"menu",[30,5],[30,6]]],null]],[]],null],[8,[39,4],null,[["@dir","@hidden","@icon","@image","@imageSet","@query","@model","@models","@route","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n\\t"]],[]],[[[41,[48,[30,16]],[[[8,[39,6],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,16,null],[1,"\\n\\t\\t\\t"]],[]]]]]],[]],null]],[]],[[[41,[48,[30,17]],[[[8,[39,6],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t\\t"],[18,17,null],[1,"\\n\\t\\t\\t"]],[]]]]]],[]],null]],[]]]]],[41,[48,[30,16]],[[[41,[28,[37,8],null,[["lt"],["tabletXl"]]],[[[8,[39,9],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t\\t\\t"],[18,16,null],[1,"\\n\\t\\t"]],[]]]]]],[]],null]],[]],null]],["@onExtraClick","@extraText","@extraTitle","@onMenuClick","@menuText","@menuTitle","@hidden","@icon","@image","@imageSet","@query","@model","@models","@route","@text","&experiences","&actions"],false,["core/header","config","if","core/button/icon-button","platform/header/brand","has-block","foundations/ol","yield","in-breakpoint","platform/header/experience-bar"]]',moduleName:"gds/components/platform/header/index.hbs",isStrictMode:!1})
class o extends r.default{get isCenterClassName(){return this.args.centerClassName??"col-0 s-0 xs-0 sm-0 m-0 xm-6 sl-4 l-6 xl-6"}get isLeftClassName(){return this.args.leftClassName??"col-6 s-6 xs-6 sm-6 m-6 xm-3 sl-4 l-3 xl-3"}get isRightClassName(){return this.args.rightClassName??"col-6 s-6 xs-6 sm-6 m-6 xm-3 sl-4 l-3 xl-3"}get dir(){const e=this.args.dir
if(e)return e}get isExtraButtonVisible(){return this.args.extraText}get extraStyle(){return this.args.extraStyle??"back"}get isMenuButtonVisible(){return this.args.menuText}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/header/link-to-experience/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/header/link-to-experience/index",["exports","@ember/component","@glimmer/component","@ember/object/internals","@ember/debug","gds/components/platform/header/link-to-experience/config","@ember/template-factory"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,a.createTemplateFactory)({id:"j3075+c7",block:'[[[8,[39,0],null,[["@className","@dir"],["experience",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,2],[[17,1]],[["@accessKey","@active","@dir","@disabled","@href","@id","@query","@route","@title"],[[30,2],[30,3],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,4],[30,5],[30,0,["uniqueID"]],[30,6],[30,7],[30,8]]],[["default"],[[[[1,"\\n\\t\\t"],[8,[39,3],null,[["@dir","@name"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,9]]],null],[1,"\\n\\t\\t"],[1,[30,10]],[1,"\\n\\t"]],[]]]]],[41,[30,11],[[[8,[39,5],null,[["@dir","@hidden","@shape","@size","@text","@style"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,12],"round","medium",[30,13],[30,11]]],null]],[]],null],[41,[30,14],[[[8,[39,6],null,[["@dir","@for","@placement","@text"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,0,["uniqueID"]],"bottom",[30,14]]],null]],[]],null]],[]]]]]],["&attrs","@accessKey","@active","@disabled","@href","@query","@route","@title","@icon","@text","@status","@badgeTextHidden","@badgeText","@description"],false,["foundations/li","config","core/link-to","core/icon","if","platform/badge","core/tooltip"]]',moduleName:"gds/components/platform/header/link-to-experience/index.hbs",isStrictMode:!1})
class l extends r.default{get dir(){const e=this.args.dir
if(e)return e}get uniqueID(){return this.args.id??`experiences-${(0,i.guidFor)(this)}`}}e.default=l,(0,t.setComponentTemplate)(o,l)})),define("gds/components/platform/icon/country/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={country:{default:5,options:["ar","br","cl","co","cr","dfn","do","ec","es","gt","hn","mx","ni","pa","pe","pt","py","sv","us","uy","ve"],values:{ar:{name:"ar"},br:{name:"br"},cl:{name:"cl"},co:{name:"co"},cr:{name:"cr"},dfn:{name:"dfn"},do:{name:"do"},ec:{name:"ec"},es:{name:"es"},gt:{name:"gt"},hn:{name:"hn"},mx:{name:"mx"},ni:{name:"ni"},pa:{name:"pa"},pe:{name:"pe"},pt:{name:"pt"},py:{name:"py"},sv:{name:"sv"},us:{name:"us"},uy:{name:"uy"},ve:{name:"ve"}}},dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/icon/country/index",["exports","gds/components/core/icon/index","ember-get-config","@ember/debug","gds/components/platform/icon/country/config"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{get path(){const e=this.args.name??n.default.country.options[n.default.country.default],{rootURL:t}=r.default
return n.default.country.options.includes(e)?t+"assets/icons-58d46b1efc546e721e2b7231ff93e7c3.svg#"+e:t+"assets/icons-58d46b1efc546e721e2b7231ff93e7c3.svg#dfn"}}e.default=s})),define("gds/components/platform/icon/image/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}},image:{default:2,options:["confetti_left","confetti_right","image_default","medal","medalflag"],values:{confetti_left:{name:"confetti_left"},confetti_right:{name:"confetti_right"},image_default:{name:"image_default"},medal:{name:"medal"},medalflag:{name:"medalflag"}}}}})),define("gds/components/platform/icon/image/index",["exports","gds/components/core/icon/index","ember-get-config","@ember/debug","gds/components/platform/icon/image/config"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{get path(){const e=this.args.name??n.default.image.options[n.default.image.default],{rootURL:t}=r.default
return n.default.image.options.includes(e)?t+"assets/icons-58d46b1efc546e721e2b7231ff93e7c3.svg#"+e:t+"assets/icons-58d46b1efc546e721e2b7231ff93e7c3.svg#image_default"}}e.default=s})),define("gds/components/platform/modal/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/modal/form/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/modal/form/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/modal/form/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"2thjHxJF",block:'[[[8,[39,0],[[17,1]],[["@backdropClose","@className","@caption","@dir","@escapeClose","@extraId","@extraStyle","@extraText","@extraTitle","@for","@form","@lineClampCaption","@lineClampTitle","@open","@onBackdropClick","@onClose","@onExtraClick","@onSubmit","@placement","@submitOnEnter","@title"],[[30,2],[30,3],[30,4],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],true,[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20]]],[["actions","body"],[[[[1,"\\n    "],[18,21,[[28,[37,3],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,22,null],[1,"\\n  "]],[]]]]]],["&attrs","@backdropClose","@className","@caption","@escapeClose","@extraId","@extraStyle","@extraText","@extraTitle","@for","@lineClampCaption","@lineClampTitle","@open","@onBackdropClick","@onClose","@onExtraClick","@onSubmit","@placement","@submitOnEnter","@title","&actions","&body"],false,["core/modal","config","yield","hash","component"]]',moduleName:"gds/components/platform/modal/form/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get item(){return"core/form/field-button"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/modal/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/modal/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"lflzJKeV",block:'[[[8,[39,0],[[17,1]],[["@backdropClose","@className","@caption","@dir","@escapeClose","@extraId","@extraStyle","@extraText","@extraTitle","@lineClampCaption","@lineClampTitle","@loading","@onClose","@onBackdropClick","@onExtraClick","@open","@placement","@title"],[[30,2],[30,3],[30,4],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18]]],[["actions","body"],[[[[1,"\\n    "],[18,19,[[28,[37,3],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,20,null],[1,"\\n  "]],[]]]]]],["&attrs","@backdropClose","@className","@caption","@escapeClose","@extraId","@extraStyle","@extraText","@extraTitle","@lineClampCaption","@lineClampTitle","@loading","@onClose","@onBackdropClick","@onExtraClick","@open","@placement","@title","&actions","&body"],false,["core/modal","config","yield","hash","component"]]',moduleName:"gds/components/platform/modal/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get item(){return this.isForm?"core/form/field-button":"foundations/li"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/modal/media/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/modal/media/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/modal/media/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"ganbmjZ4",block:'[[[8,[39,0],[[17,1]],[["@backdropClose","@dir","@escapeClose","@extraStyle","@extraText","@extraTitle","@for","@lineClampCaption","@lineClampTitle","@open","@onBackdropClick","@onClose","@onExtraClick","@placement","@title"],[[30,2],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],"close",[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],"media",[30,13]]],[["actions","body"],[[[[1,"\\n    "],[18,14,[[28,[37,3],null,[["action"],[[50,[30,0,["item"]],0,null,[["className","dir"],["action",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]]]]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,15,null],[1,"\\n  "]],[]]]]]],["&attrs","@backdropClose","@escapeClose","@extraText","@extraTitle","@for","@lineClampCaption","@lineClampTitle","@open","@onBackdropClick","@onClose","@onExtraClick","@title","&actions","&body"],false,["core/modal","config","yield","hash","component"]]',moduleName:"gds/components/platform/modal/media/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}get item(){return"foundations/li"}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/navigation-bar/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/navigation-bar/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/navigation-bar/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)(
/*
    <Core::NavigationBar
  	@className={{this.isClassName}}
    @dir={{config "dir" value=this.dir}}
    @hasHeader={{or (has-block "header") (has-block "search")}}
  	@sticky={{true}}
  	...attributes
  >
  	<:header>
      {{yield to="header"}}
      {{yield to="search"}}
    </:header>
  	<:body>
      {{yield to="body"}}
    </:body>
  	<:footer>
  		{{~#if this.hasFooterButtons~}}
        <Core::List
          @dir={{config "dir" value=this.dir}}
          @ordered={{true}}
          as |l|
        >
          {{~#if this.isPrivacyButtonVisible~}}
            <l.buttonItem
              @dir={{config "dir" value=this.dir}}
              @onClick={{@onPrivacyClick}}
              @text={{@privacyText}}
              @titleButton={{@privacyTitle}}
            />
          {{~/if~}}
          {{~#if this.isTermsButtonVisible~}}
            <l.buttonItem
              @dir={{config "dir" value=this.dir}}
              @onClick={{@onTermsClick}}
              @text={{@termsText}}
              @titleButton={{@termsTitle}}
            />
          {{~/if~}}
        </Core::List>
      {{~/if~}}
      {{~#if @copyright~}}
        <Foundations::P
          @dir={{config "dir" value=this.dir}}
        >{{@copyright}}</Foundations::P>
      {{~/if~}}
    </:footer>
  </Core::NavigationBar>
  */
{id:"cJC6TUzj",block:'[[[8,[39,0],[[17,1]],[["@className","@dir","@hasHeader","@sticky"],[[30,0,["isClassName"]],[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[28,[37,2],[[48,[30,10]],[48,[30,11]]],null],true]],[["header","body","footer"],[[[[1,"\\n    "],[18,10,null],[1,"\\n    "],[18,11,null],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,12,null],[1,"\\n  "]],[]],[[[41,[30,0,["hasFooterButtons"]],[[[8,[39,6],null,[["@dir","@ordered"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],true]],[["default"],[[[[41,[30,0,["isPrivacyButtonVisible"]],[[[8,[30,2,["buttonItem"]],null,[["@dir","@onClick","@text","@titleButton"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,3],[30,4],[30,5]]],null]],[]],null],[41,[30,0,["isTermsButtonVisible"]],[[[8,[30,2,["buttonItem"]],null,[["@dir","@onClick","@text","@titleButton"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],[30,6],[30,7],[30,8]]],null]],[]],null]],[2]]]]]],[]],null],[41,[30,9],[[[8,[39,7],null,[["@dir"],[[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,[30,9]]],[]]]]]],[]],null]],[]]]]]],["&attrs","l","@onPrivacyClick","@privacyText","@privacyTitle","@onTermsClick","@termsText","@termsTitle","@copyright","&header","&search","&body"],false,["core/navigation-bar","config","or","has-block","yield","if","core/list","foundations/p"]]',moduleName:"gds/components/platform/navigation-bar/index.hbs",isStrictMode:!1})

;/**
   * Navigation Bar component
   *
   * @class PlatformNavigationBarComponent
   *
   * @param {String} [className="col-11 s-11 xs-11 sm-11 m-11 xm-3 sl-3 l-3 xl-2 offset-xl-1"] Class name to apply to the element.
   * @param {String} [copyright] Copyright text.
   * @param {String} [dir=left] Specifies the text direction of the element's content: ltr | rtl | auto.
   * @param {Function} [onTermsClick] Action to trigger on when clicking the terms button.
   * @param {Function} [onPrivacyClick] Action to trigger on when clicking the privacy button.
   * @param {String} [privacyText] Privacy button text.
   * @param {String} [privacyTitle] Privacy button title.
   * @param {String} [termsText] Terms button text.
   * @param {String} [termsTitle] Terms button title.
   *
   * @example Usage as block component.
   *     <Platform::NavigationBar
   *       @copyright="GDS © 2021"
   *       @onTermsClick={{this.openTermsModal}}
   *       @onPrivacyClick={{this.openPrivacyModal}}
   *       @privacyText="Privacy"
   *       @termsText="Terms & Conditions"
   *     >
   *       <:search>
   *         <Platform::Form::Search
   *           @onChange={{this.updateSearchTerm}}
   *           @onSubmit={{this.search}}
   *           @placeholder="Search"
   *           @title="Search"
   *           @value={{this.searchTerm}}
   *         />
   *       </:search>
   *       <:body>
   *         Body
   *       </:body>
   *     </Platform::NavigationBar>
   */class o extends r.default{get isClassName(){return this.args.className??"col-11 s-11 xs-11 sm-11 m-11 xm-3 sl-3 l-3 xl-2 offset-xl-1"}get dir(){const e=this.args.dir
if(e)return e}get hasFooterButtons(){return this.isTermsButtonVisible||this.isPrivacyButtonVisible}get isPrivacyButtonVisible(){return this.args.privacyText&&this.args.onPrivacyClick}get isTermsButtonVisible(){return this.args.termsText&&this.args.onTermsClick}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/navigation-bar/title/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:{default:0,options:["ltr","rtl"],values:{ltr:{dir:"ltr"},rtl:{dir:"rtl"}}}}})),define("gds/components/platform/navigation-bar/title/index",["exports","@ember/component","@glimmer/component","@ember/debug","gds/components/platform/navigation-bar/title/config","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,s.createTemplateFactory)({id:"wlcBnJvr",block:'[[[8,[39,0],[[17,1]],[["@className","@dir"],["title",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@component","@dir","@style","@text"],["h2",[28,[37,1],["dir"],[["value"],[[30,0,["dir"]]]]],"title1",[30,2]]],null],[1,"\\n  "],[18,3,null],[1,"\\n"]],[]]]]]],["&attrs","@text","&last"],false,["core/col","config","core/typography","yield"]]',moduleName:"gds/components/platform/navigation-bar/title/index.hbs",isStrictMode:!1})
class o extends r.default{get dir(){const e=this.args.dir
if(e)return e}}e.default=o,(0,t.setComponentTemplate)(a,o)})),define("gds/components/platform/tag/config",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={size:{className:{large:"l",medium:"m",small:"s"},default:1,options:["large","medium","small"]},style:{default:0,options:["default","disable","error","info","success","warning"],values:{default:{background:null,className:"default"},disable:{background:null,className:"disable"},error:{background:null,className:"error"},info:{background:null,className:"info"},success:{background:null,className:"success"},warning:{background:null,className:"warning"}}}}})),define("gds/components/platform/tag/index",["exports","gds/components/core/tag/index","@ember/debug","gds/components/platform/tag/config"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get background(){const e=this.args.background??i.default.style.values[this.style].background
return e}get className(){const e=[i.default.style.values[this.style].className]
return super.className&&e.push(super.className),e.join(" ")}get style(){const e=this.args.style??i.default.style.options[i.default.style.default]
return e}}e.default=n})),define("gds/config/global",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={dir:"ltr",images:{sizeQueryParams:{height:"height",width:"width"}},forms:{datepicker:{months:["January","February","March","April","May","June","July","August","September","October","November","December"]}}}})),define("gds/helpers/config",["exports","@ember/component/helper","@ember/service"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="gdsConfig",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}compute([e],{value:t}={}){return t??this.gdsConfig.get(e)}},s=i.prototype,a="gdsConfig",o=[r.inject],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("gds/helpers/form-error",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,t],{requireTouched:r=!0}={}){if(!r||e.touched[t])return e.error(t)}))})),define("gds/helpers/form-get",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,t],{latest:r}={}){return e.get(t,{latest:r})}))})),define("gds/helpers/form-set",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,t,r],{touch:i,skipValidation:n}={}){return function(s){const a=r??s?.target?.value??s
return e.set(t,a,{touch:i,skipValidation:n})}}))})),define("gds/helpers/form-touch",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,t],r={}){return function(){e.touch(t,r)}}))})),define("gds/helpers/grid-col",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i={col:"col-",s:"s-",xs:"xs-",sm:"sm-",m:"m-",xm:"xm-",sl:"sl-",l:"l-",xl:"xl-"},n={offset:"offset-",offsetS:"offset-s-",offsetXs:"offset-xs-",offsetSm:"offset-sm-",offsetM:"offset-m-",offsetXm:"offset-xm-",offsetSl:"offset-sl-",offsetL:"offset-l-",offsetXl:"offset-xl-"}
e.default=(0,t.helper)((function(e,t){const r=[],s=[]
return Object.entries(t).forEach((([e,t])=>{if(i[e]){const n=i[e]
r.push(`${n}${t}`)}if(n[e]){const r=n[e]
s.push(`${r}${t}`)}})),r.concat(s).join(" ")}))}))
define("gds/helpers/grid",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function(e,t){const r=["grid"]
return t.layout&&(r.push("layout"),t.center&&r.push("center")),r.join(" ")}))})),define("gds/helpers/highlighter",["exports","@ember/component/helper","@ember/template","@ember/service"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},s=/[&<>"'`=]/g
class a extends t.default{compute([e="",t=""],{wrap:i='<em class="highlight">%</em>'}={}){if(!e)return""
if(!t)return e
let a=e.replace(s,(e=>n[e]))
t=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")
const o=new RegExp(`(${t})`,"gi")
return a=a.split(o).filter(Boolean).map((e=>({text:e,highlight:Boolean(e.match(o))}))).map((e=>e.highlight?i.replace("%",e.text):e.text)).join(""),(0,r.htmlSafe)(a)}}e.default=a})),define("gds/helpers/in-array",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,...t],{some:r=!1,values:i}){return(i||t)[r?"some":"every"]((t=>e.includes(t)))}))})),define("gds/helpers/in-breakpoint",["exports","@ember/component/helper","@ember/service","@ember/debug"],(function(e,t,r,i){"use strict"
var n,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="viewport",n=this,(i=s)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}compute(e,{gt:t,gte:r,lt:i,lte:n}){const s=this.viewport.breakpoints[t||r],a=this.viewport.breakpoints[i||n],o=this.viewport.width
let l=!0
return!i||o<a||(l=!1),!n||o<=a||(l=!1),!t||o>s||(l=!1),!r||o>=s||(l=!1),l}},a=n.prototype,o="viewport",l=[r.inject],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(c).forEach((function(e){d[e]=c[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),s=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,n)
var a,o,l,c,u,d})),define("gds/helpers/is-route-active",["exports","@ember/component/helper","@ember/service","@ember/array"],(function(e,t,r,i){"use strict"
var n,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="router",n=this,(i=s)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}compute(e,{models:t=[]}={}){let r=[]
return r=(0,i.isArray)(e[0])?e[0]:e,this.router.currentURL,this.router.currentRouteName,r.some((e=>this.router.isActive(e,...t)))}},a=n.prototype,o="router",l=[r.inject],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(c).forEach((function(e){d[e]=c[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),s=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,n)
var a,o,l,c,u,d})),define("gds/helpers/join-classnames",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function(e){return e.flat().filter(Boolean).join(" ")}))})),define("gds/helpers/lineclamp-class",["exports","@ember/component/helper","@ember/debug"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e]){if(e>=1)return`lineclamp-${e}`}))})),define("gds/helpers/merge",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function(e=[],t={}){return Object.assign({},...e,t)}))})),define("gds/helpers/modal-open",["exports","@ember/component/helper","@ember/service"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="modal",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}compute([e],t={}){return()=>this.modal.open(e,t)}},s=i.prototype,a="modal",o=[r.inject],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("gds/instance-initializers/dayjs",["exports"],(function(e){"use strict"
function t(e){const t=e.lookup("service:dayjs")
t.extend("localeData"),t.extend("localizedFormat"),t.extend("isoWeek"),t.extend("arraySupport"),t.extend("badMutable")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=t
e.default={initialize:t}})),define("gds/modifiers/on-optional",["exports","ember-modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.modifier)((function(e,[t,r]){return r?(e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}):()=>{}}),{eager:!1})})),define("gds/modifiers/position-relative-to",["exports","ember-modifier","@popperjs/core","@ember/runloop"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.updateAll=e.instances=e.destroyPositioner=e.default=e.createPositioner=void 0
const n=e.instances=[],s=()=>{for(const e of n)e.instance.update()}
e.updateAll=s
const a=e=>{e.some((e=>!n.find((t=>t.element===e.target))))&&s()}
new MutationObserver((e=>(0,i.debounce)(void 0,a,e,10))).observe(document.body,{attributes:!0,childList:!0,subtree:!0})
const o=new ResizeObserver((e=>(0,i.debounce)(void 0,a,e,10))),l=function(e,t,{placement:i="left",skidding:s=0,distance:a=4,flip:l=!0}){const c=(0,r.createPopper)(e,t,{placement:i,modifiers:[{name:"offset",options:{offset:[s,a]}},{name:"flip",enabled:l}]})
return n.push({instance:c,reference:e,element:t}),o.observe(e),c}
e.createPositioner=l
const c=function(e){const t=n.findIndex((t=>e))
t>-1&&(o.unobserve(n[t].reference),n.splice(t,1)),e.destroy()}
e.destroyPositioner=c
e.default=(0,t.modifier)((function(e,[t],r){"string"==typeof t&&(t=document.querySelector(t))
let i=l(t,e,r)
return()=>{c(i),i=null}}),{eager:!1})})),define("gds/services/alert",["exports","@ember/service","@glimmer/tracking","@ember/runloop","gds/components/core/alert/config","gds/components/core/alert/container/config"],(function(e,t,r,i,n,s){"use strict"
var a,o
function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=n.default.style.options[n.default.style.default],u=s.default.placement.options[s.default.placement.default]
e.default=(a=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="items",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),l(this,"id",0)}remove(e){this.items=this.items.filter((t=>t.id!==e&&t!==e))}push({text:e,style:t=c,placement:r=u,button:n=!1,component:s="core/alert",duration:a=5e3,icon:o}={}){const l=++this.id,d=()=>this.remove(l),h={id:this.id,button:n&&{text:n.text,title:n.title,action:()=>n.action?n.action(d):d()},close:d,text:e,style:t,placement:r,component:s,icon:o}
return a&&(0,i.later)(this,d,a),this.items=[h,...this.items],h}show(e,t={}){return this.push({text:e,...t})}error(e,t={}){return this.push({text:e,style:"error",icon:"alert",...t})}file(e,t={}){return this.push({text:e,style:"file",icon:"file",...t})}image(e,t={}){return this.push({text:e,style:"image",icon:"image",...t})}info(e,t={}){return this.push({text:e,style:"info",icon:"info",...t})}success(e,t={}){return this.push({text:e,style:"success",icon:"check_circle",...t})}system(e,t={}){return this.push({text:e,placement:"left-end",...t})}video(e,t={}){return this.push({text:e,style:"video",icon:"video",...t})}warning(e,t={}){return this.push({text:e,style:"warning",icon:"alert_warning",...t})}},d=a.prototype,h="items",p=[r.tracked],f={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}},g={},Object.keys(f).forEach((function(e){g[e]=f[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=p.slice().reverse().reduce((function(e,t){return t(d,h,e)||e}),g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),o=void 0===g.initializer?(Object.defineProperty(d,h,g),null):g,a)
var d,h,p,f,m,g})),define("gds/services/component-stack",["exports","@ember/service","@glimmer/tracking"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="stacks",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}add(e,t){const r=this.stacks[e]?[t,...this.stacks[e]]:[t]
this.updateStack(e,r)}remove(e,t){const r=this.stacks[e]?this.stacks[e].filter((e=>e!==t)):[]
this.updateStack(e,r)}isTop(e,t){const r=this.stacks[e]
return Boolean(r&&0===r.indexOf(t))}updateStack(e,t){this.stacks={...this.stacks,[e]:t}}},s=i.prototype,a="stacks",o=[r.tracked],l={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("gds/services/gds-config",["exports","@ember/service","@glimmer/tracking","@ember/object","@ember/utils","gds/config/global"],(function(e,t,r,i,n,s){"use strict"
var a,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=function(e,t){const r=Object.assign({},e)
return"object"===(0,n.typeOf)(e)&&"object"===(0,n.typeOf)(t)&&Object.keys(t).forEach((i=>{"object"===(0,n.typeOf)(t[i])?i in e?r[i]=l(e[i],t[i]):Object.assign(r,{[i]:t[i]}):Object.assign(r,{[i]:t[i]})})),r}
e.default=(a=class extends t.default{constructor(...e){var t,r,i,n
super(...e),t=this,r="data",n=this,(i=o)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}set(e,t){return"object"==typeof e?this.data=l(this.data,e):((0,i.set)(this.data,e,t),this.data=this.data),this}get(e,t=void 0){return(0,i.get)(this.data,e)??t}},c=a.prototype,u="data",d=[r.tracked],h={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return s.default}},f={},Object.keys(h).forEach((function(e){f[e]=h[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=d.slice().reverse().reduce((function(e,t){return t(c,u,e)||e}),f),p&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(p):void 0,f.initializer=void 0),o=void 0===f.initializer?(Object.defineProperty(c,u,f),null):f,a)
var c,u,d,h,p,f})),define("gds/services/modal",["exports","@ember/service","@glimmer/tracking"],(function(e,t,r){"use strict"
var i,n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,a
super(...e),t=this,r="items",a=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(a):void 0}),s(this,"id",0)}push({component:e,close:t,...r}={}){const i=++this.id,n=()=>this.close(i),s={...r,id:this.id,close:t?()=>t(n):n,component:e}
return this.items=[...this.items,s],s}open(e,t={}){return this.push({...t,component:e})}close(e){this.items=this.items.filter((t=>t.id!==e&&t!==e))}},a=i.prototype,o="items",l=[r.tracked],c={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}},d={},Object.keys(c).forEach((function(e){d[e]=c[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),n=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,l,c,u,d})),define("gds/services/viewport",["exports","@ember/service","@ember/runloop","@glimmer/tracking","gds/utils/design-tokens"],(function(e,t,r,i,n){"use strict"
var s,a,o
function l(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends t.default{constructor(){super(...arguments),c(this,"resizeDebounceTime",50),c(this,"breakpoints",Object.entries(n).filter((([e])=>e.match(/^breakpoint.+/))).reduce(((e,[t,r])=>(e[t.replace(/^breakpoint(.)/,((e,t)=>t.toLowerCase()))]=r,e)),{})),l(this,"width",a,this),l(this,"height",o,this),this.computeSize(),window.addEventListener("resize",(e=>{(0,r.debounce)(this,this.handleResizeEvent,e,this.resizeDebounceTime)}),{passive:!0})}handleResizeEvent(e){this.computeSize()}computeSize(){this.width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),this.height=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},a=u(s.prototype,"width",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=u(s.prototype,"height",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)})),define("gds/templates/head",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"qW/d5nHj",block:'[[[10,"title"],[12],[1,[31,0,["title"]]],[13],[1,"\\n"]],[],false,["model"]]',moduleName:"gds/templates/head.hbs",isStrictMode:!1})})),define("gds/utils/design-tokens",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.breakpointTabletXxs=e.breakpointTabletXxl=e.breakpointTabletXs=e.breakpointTabletXl=e.breakpointTabletS=e.breakpointTabletM=e.breakpointTabletL=e.breakpointMobileXxs=e.breakpointMobileXxl=e.breakpointMobileXs=e.breakpointMobileXl=e.breakpointMobileS=e.breakpointMobileM=e.breakpointMobileL=e.breakpointDesktopS=e.breakpointDesktopM=e.breakpointDesktopL=void 0
e.breakpointDesktopL=1920,e.breakpointDesktopM=1366,e.breakpointDesktopS=1280,e.breakpointMobileL=640,e.breakpointMobileM=600,e.breakpointMobileS=480,e.breakpointMobileXl=667,e.breakpointMobileXxl=720,e.breakpointMobileXs=375,e.breakpointMobileXxs=360,e.breakpointTabletL=960,e.breakpointTabletM=900,e.breakpointTabletS=854,e.breakpointTabletXl=1024,e.breakpointTabletXxl=1200,e.breakpointTabletXs=800,e.breakpointTabletXxs=768})),define("gds/utils/form",["exports","@glimmer/tracking"],(function(e,t){"use strict"
var r,i,n,s,a,o
function l(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormData=void 0
let d=e.FormData=(i=u((r=class{get isValidating(){return Object.values(this.validating).some((e=>e))}get isValid(){return!this.isValidating&&0===this.errorsArray.length}get isInvalid(){return!this.isValid}get isPristine(){return 0===Object.values(this.changes).length}get isDirty(){return!this.isPristine}get errorsArray(){return Object.entries(this.errors).map((([e,t])=>({key:e,message:t})))}get keys(){return[...Object.keys(this.changes),...Object.keys(this.validations)].filter(((e,t,r)=>r.indexOf(e)===t))}constructor(e={},t={},{skipValidate:r=!1}={}){l(this,"data",i,this),l(this,"changes",n,this),l(this,"errors",s,this),l(this,"touched",a,this),l(this,"validating",o,this),c(this,"keyValidationCheck",{}),this.data={...e},this.validations=t}add(e,t,{validations:r=[]}={},{skipValidation:i=!0}={}){this.validations[e]=r,this.set(e,t,{skipValidation:i})}remove(e){delete this.changes[e],this.changes={...this.changes},delete this.validations[e],this.validations={...this.validations}}get(e,{latest:t=!0}={}){const r=this.changes[e]
let i=this.data[e]
return t&&void 0!==r&&(i=r),i}error(e){return this.errors[e]}async set(e,t,{touch:r=!1,skipValidation:i=!1}={}){if(this.changes={...this.changes,[e]:t},r&&this.touch(e),!i)return await this.validateOne(e)}touch(e,{validate:t=!0}={}){this.touched={...this.touched,[e]:!0},t&&this.validateOne(e)}async validateOne(e,{touchError:t=!1}={}){let r=this.validations[e]??[]
Array.isArray(r)||(r=[r]),delete this.errors[e],this.errors={...this.errors},this.validating={...this.validating,[e]:!0}
const i=this.keyValidationCheck[e]=(this.keyValidationCheck[e]??0)+1,n=await(async(e,{key:t,newValue:r,oldValue:i,context:n,changes:s,content:a})=>{if(0===e.length)return!0
let o=!0
for(const l of e){const e=await l(r,i,n,s,a)
if(e){o=e
break}}return o})(r,{key:e,newValue:this.get(e),oldValue:this.get(e),context:{...this.data,...this.changes},changes:this.changes,content:this.data})
if(i===this.keyValidationCheck[e])return!0!==n&&(this.errors={...this.errors,[e]:n},t&&this.touch(e)),this.validating={...this.validating,[e]:!1},n}async validate(e=this.keys,{touchError:t=!1}={}){const r=e.map((async e=>({key:e,message:await this.validateOne(e)}))),i=await Promise.all(r)
return t&&e.forEach((e=>{this.error(e)&&this.touch(e)})),i}reset(){this.changes={}}apply(){this.data={...this.changes},this.changes={}}}).prototype,"data",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),n=u(r.prototype,"changes",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=u(r.prototype,"errors",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),a=u(r.prototype,"touched",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),o=u(r.prototype,"validating",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),r)
e.default=d})),define("gds/utils/underscore-object-keys",["exports","@ember/string"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=e=>Object.entries(e).reduce(((e,[r,i])=>(e[(0,t.underscore)(r)]=i,e)),{})})),define("gds/validators/custom",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e}})),define("gds/validators/is-email",["exports","validator/es/lib/isEmail"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Must be a valid email"}={}){return function(r){if(!(0,t.default)(`${r??""}`))return e}}})),define("gds/validators/is-equal",["exports","validator/es/lib/equals"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Value must match",value:r,field:i,fields:n=[]}={}){return function(s,a,o){const l=`${s??""}`
if(i){console.log(">>>>",arguments)
const r=o[i]??""
if(!(0,t.default)(l,r))return e}else if(n.length)for(const r of n){const i=o[r]??""
if(!(0,t.default)(l,i))return e}else if(void 0!==r&&!(0,t.default)(l,r))return e}}})),define("gds/validators/is-float",["exports","@ember/utils","validator/es/lib/isFloat"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Field must be a number",...i}={}){return function(n){if(!(0,t.isEmpty)(n)&&!(0,r.default)(`${n??""}`,{...i}))return e}}})),define("gds/validators/is-int",["exports","validator/es/lib/isInt"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Field must be an integer",allowLeadingZeroes:r=!0,...i}={}){return function(n){if(!(0,t.default)(`${n??""}`,{allow_leading_zeroes:r,...i}))return e}}})),define("gds/validators/is-length",["exports","validator/es/lib/isLength"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Wrong length",is:r,min:i=0,max:n}={}){return function(s){if(!(0,t.default)(`${s??""}`,{min:r??i,max:r??n}))return e}}})),define("gds/validators/is-numeric",["exports","validator/es/lib/isNumeric"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Field must be a number",allowLeadingZeroes:r=!0,...i}={}){return function(n){const s=n??""
if(!(0,t.default)(s,{allow_leading_zeroes:r,...i}))return e}}})),define("gds/validators/is-required",["exports","validator/es/lib/isEmpty"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Field is required",ignoreWhitespace:r=!1}={}){return function(i){if((0,t.default)(`${i??""}`,{ignore_whitespace:r}))return e}}})),define("gds/validators/is-strong-password",["exports","validator/es/lib/isStrongPassword"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Field must be a strong password",minLength:r=8,minLowercase:i=1,minUppercase:n=1,minNumbers:s=1,minSymbols:a=1}={}){return function(o){if(!(0,t.default)(`${o??""}`,{minLength:r,minLowercase:i,minUppercase:n,minNumbers:s,minSymbols:a}))return e}}}))
define("gds/validators/is-url",["exports","validator/es/lib/isURL","gds/utils/underscore-object-keys"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({message:e="Invalid URL",...i}={}){return function(n){if(!(0,t.default)(`${n??""}`,(0,r.default)(i)))return e}}})),define("go-form-2/components/go-checkbox/component",["exports","@ember/object/computed","@ember/component","go-form-2/components/go-checkbox/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(n.default,{layout:i.default,tagName:"",isChecked:(0,t.reads)("is-checked"),isDisabled:(0,t.reads)("disabled"),actions:{handleClick(e){const t=this.get("isChecked")
this.get("isDisabled")||this.invoke("on-change",!t,e)}}})})),define("go-form-2/components/go-checkbox/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tZp6IC4Q",block:'[[[10,"input"],[14,"hidden",""],[14,3,""],[15,1,[29,[[30,0,["id"]]]]],[15,"onchange",[28,[37,0],[[30,0],"handleClick"],null]],[14,4,"checkbox"],[12],[13],[1,"\\n"],[10,3],[15,0,[29,["checkboxbutton",[52,[30,0,["isChecked"]]," active"],[52,[30,0,["disabled"]]," inactive"]]]],[15,"title",[29,[[30,0,["title"]]]]],[12],[41,[30,0,["icon"]],[[[1,[30,0,["icon"]]]],[]],[[[8,[39,2],null,[["@tagName","@text"],["span",[30,0,["label"]]]],null]],[]]],[13],[1,"\\n"]],[],false,["action","if","go-label"]]',moduleName:"go-form-2/components/go-checkbox/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-date/component",["exports","@ember/object/computed","jquery","@ember/component","@ember/object","go-form-2/components/go-date/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend(a.default,{layout:s.default,tagName:"",isDisabled:(0,n.computed)("disabled",(function(){return this.get("disabled")??!1})),dayPlaceholder:(0,t.reads)("day-placeholder"),monthPlaceholder:(0,t.reads)("month-placeholder"),yearPlaceholder:(0,t.reads)("year-placeholder"),dayTabindex:(0,t.reads)("day-tabindex"),monthTabindex:(0,t.reads)("month-tabindex"),yearTabindex:(0,t.reads)("year-tabindex"),monthLabels:(0,t.reads)("month-labels"),format:null,formatRegEx:(0,n.computed)("format",(function(){return this.get("format").replace(/(day|month|year)/g,"(\\d*)")})),hasDay:(0,n.computed)("format",(function(){return this.get("format").indexOf("day")>=0})),hasMonth:(0,n.computed)("format",(function(){return this.get("format").indexOf("month")>=0})),hasYear:(0,n.computed)("format",(function(){return this.get("format").indexOf("year")>=0})),monthOptions:(0,n.computed)("monthPlaceholder","monthLabels",(function(){const e=this.get("monthLabels")??{january:"Enero",february:"Febrero",march:"Marzo",april:"Abril",may:"Mayo",june:"Junio",july:"Julio",august:"Agosto",september:"Septiembre",october:"Octubre",november:"Noviembre",december:"Diciembre"}
return[{label:this.get("monthPlaceholder"),value:""},{label:e.january,value:"1"},{label:e.february,value:"2"},{label:e.march,value:"3"},{label:e.april,value:"4"},{label:e.may,value:"5"},{label:e.june,value:"6"},{label:e.july,value:"7"},{label:e.august,value:"8"},{label:e.september,value:"9"},{label:e.october,value:"10"},{label:e.november,value:"11"},{label:e.december,value:"12"}]})),explodeDate(e){const t=this.get("formatRegEx"),r=this.get("format")
let i,n={day:"",month:"",year:""}
if(!e)return n
if(i=e.match(t),!i)return n
var s=r.split("/")
return i.shift(),s.forEach(((e,t)=>{n[e]=i[t]})),n},implodeDate(e,t,r){return this.get("format").replace("day",e).replace("month",t).replace("year",r)},didReceiveAttrs(){const{value:e,format:t}=this.getProperties("value","format")
t||this.set("format","day/month/year")
const r=this.explodeDate(e)
this.setProperties(r)},buildNewValue(e,t,r){if(!e&&!t&&!r)return void this.invoke("on-change",null)
let i=this.implodeDate(e,t,r)
this.invoke("on-change",i)},actions:{handleDayChange(e){const{month:t,year:r}=this.getProperties("month","year")
this.buildNewValue(e,t,r)},handleMonthChange(e){const{day:t,year:r}=this.getProperties("day","year")
this.buildNewValue(t,e,r)},handleYearChange(e){const{day:t,month:r}=this.getProperties("day","month")
this.buildNewValue(t,r,Math.abs(Number(e))||0)},handleFocusIn(e){this.invoke("on-focus-in",e)},handleFocusOut(e){const t=(0,r.default)(e.target);(0,r.default)(e.relatedTarget).siblings().is(t)||this.invoke("on-focus-out",e)}}})})),define("go-form-2/components/go-date/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"drMISFJv",block:'[[[41,[30,0,["hasDay"]],[[[8,[39,1],null,[["@value","@type","@placeholder","@disabled","@tabindex","@on-change","@on-focus-in","@on-focus-out"],[[30,0,["day"]],"number",[30,0,["dayPlaceholder"]],[30,0,["isDisabled"]],[30,0,["dayTabindex"]],[28,[37,2],[[30,0],"handleDayChange"],null],[28,[37,2],[[30,0],"handleFocusIn"],null],[28,[37,2],[[30,0],"handleFocusOut"],null]]],null],[1,"\\n"]],[]],null],[41,[30,0,["hasMonth"]],[[[8,[39,3],null,[["@value","@tabindex","@disabled","@on-select","@on-focus-in","@on-focus-out","@icon"],[[30,0,["month"]],[30,0,["monthTabindex"]],[30,0,["isDisabled"]],[28,[37,2],[[30,0],"handleMonthChange"],null],[28,[37,2],[[30,0],"handleFocusIn"],null],[28,[37,2],[[30,0],"handleFocusOut"],null],[30,0,["icon"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["monthOptions"]]],null]],null],null,[[[1,"\\t"],[8,[30,1,["xOption"]],null,[["@label","@value"],[[30,2,["label"]],[30,2,["value"]]]],null],[1,"\\n"]],[2]],null]],[1]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorComponent"]],[[[1,"  "],[1,[30,0,["errorComponent"]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasYear"]],[[[8,[39,1],null,[["@value","@type","@tabindex","@placeholder","@disabled","@on-change","@on-focus-in","@on-focus-out"],[[30,0,["year"]],"number",[30,0,["yearTabindex"]],[30,0,["yearPlaceholder"]],[30,0,["isDisabled"]],[28,[37,2],[[30,0],"handleYearChange"],null],[28,[37,2],[[30,0],"handleFocusIn"],null],[28,[37,2],[[30,0],"handleFocusOut"],null]]],null],[1,"\\n"]],[]],null]],["s","monthOption"],false,["if","go-input","action","go-select","each","-track-array"]]',moduleName:"go-form-2/components/go-date/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-errors/component",["exports","@ember/component","@ember/object","@ember/array","go-form-2/components/go-errors/template"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=t.default.extend({layout:n.default,tagName:"",reverse:!1,errors:null,max:1,visibleErrors:(0,r.computed)("max","errors","reverse",(function(){const{max:e,errors:t,reverse:r}=this.getProperties("max","errors","reverse")
let n=t
return t?((0,i.isArray)(t)||(n=[t]),r&&(n=n.slice().reverse()),e?n.slice(0,e):n):[]}))})
s.reopenClass({positionalParams:["errors"]})
e.default=s})),define("go-form-2/components/go-errors/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"PIS7UNy5",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["visibleErrors"]]],null]],null],null,[[[10,"strong"],[12],[1,[30,1]],[13],[1,"\\n"]],[1]],null]],["error"],false,["each","-track-array"]]',moduleName:"go-form-2/components/go-errors/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-filter-select/component",["exports","jquery","@ember/component","@ember/object","@ember/runloop","go-form-2/components/go-filter-select/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",isOpen:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")})),selectedLabel:null,selectedValue:null,didReceiveAttrs(){this.set("selectedValue",this.get("value"))},actions:{handleButtonFocus(e){this.invoke("on-focus-in",e)},handleButtonBlur(e){(0,n.later)((()=>{this.get("isDestroyed")||this.get("isDestroying")||(this.send("closeOptions"),this.invoke("on-focus-out",e))}),250)},handleButtonKeyDown(e){const r=38,i=40,n=27,s=13,a=e.which,o=(0,t.default)(e.target)
if(this.invoke("on-key-down",e),[r,i,n,s].indexOf(a)>=0&&e.preventDefault(),a!==n){if([i,r].indexOf(a)>=0){const e=o.siblings(".dotmenu").find("li:has(a.active)")
let t
a===i?(t=e.length?e.next():o.siblings(".dotmenu").find("li:eq(0)"),t.length||(t=e.siblings(":first"))):a===r&&(t=e.prev(),t.length||(t=e.siblings(":last"))),this.set("selectedValue",t.data("value"))
var l=t.parent("ol"),c=l.outerHeight(),u=t.outerHeight(),d=l.scrollTop(),h=t.position().top+d
d+c<h+u?l.scrollTop(h-c+u):h<d&&l.scrollTop(h)}[9,s].indexOf(a)>=0&&(this.send("handleOptionSelection",this.get("selectedValue")),this.send("closeOptions"))}else o.trigger("blur")},toggleOptions(){this.toggleProperty("isOpen")},closeOptions(){this.set("isOpen",!1),this.set("selectedValue",this.get("value"))},updateSelectedLabel(e,t){this.set("selectedLabel",t)},handleOptionSelection(e){this.set("selectedValue",e),this.invoke("on-select",e),this.send("toggleOptions")}}})})),define("go-form-2/components/go-filter-select/go-option/component",["exports","@ember/component","@ember/runloop","go-form-2/components/go-filter-select/go-option/template","go-form-2/mixins/invocable-action","jquery"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{layout:i.default,tagName:"li",value:null,isSelected:!1,didReceiveAttrs(){const{selectedValue:e,value:t,label:i}=this.getProperties("selectedValue","value","label")
e===t?(this.set("isSelected",!0),(0,r.schedule)("afterRender",(()=>{this.invoke("on-selection-aware",t,i)}))):this.set("isSelected",!1)},didInsertElement(){(0,s.default)(this.element).data("value",this.get("value"))},actions:{handleSelect(){const{value:e,label:t}=this.getProperties("value","label")
return this.invoke("on-selection-aware",e,t),this.invoke("on-select",e)}}})})),define("go-form-2/components/go-filter-select/go-option/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"X2aEHdfi",block:'[[[11,3],[16,0,[29,[[52,[30,0,["isSelected"]],"active"]]]],[4,[38,1],[[30,0],"handleSelect"],null],[12],[1,[30,0,["label"]]],[13],[1,"\\n"]],[],false,["if","action"]]',moduleName:"go-form-2/components/go-filter-select/go-option/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-filter-select/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"p4rES8kc",block:'[[[8,[39,0],null,[["@type","@hidden","@value"],["hidden",true,[30,0,["selectedValue"]]]],null],[1,"\\n"],[11,"button"],[24,0,"ghost"],[16,"disabled",[30,0,["isDisabled"]]],[16,"onfocus",[28,[37,1],[[30,0],"handleButtonFocus"],null]],[16,"onblur",[28,[37,1],[[30,0],"handleButtonBlur"],null]],[16,"onkeydown",[28,[37,1],[[30,0],"handleButtonKeyDown"],null]],[16,"tabindex",[29,[[30,0,["tabindex"]]]]],[24,4,"button"],[4,[38,1],[[30,0],"toggleOptions"],null],[12],[1,"\\n\\t"],[1,[52,[30,0,["selectedLabel"]],[30,0,["selectedLabel"]],[30,0,["placeholder"]]]],[1,"\\n"],[41,[30,0,["icon"]],[[[1,"\\t\\t"],[46,[30,0,["icon"]],null,null,null],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,"ol"],[15,0,[29,["dotmenu",[52,[30,0,["isOpen"]]," active"]]]],[12],[1,"\\n\\t"],[18,1,[[28,[37,5],null,[["xOption"],[[50,"go-select/go-option",0,null,[["selectedValue","on-selection-aware","on-select"],[[30,0,["selectedValue"]],[28,[37,1],[[30,0],"updateSelectedLabel"],null],[28,[37,1],[[30,0],"handleOptionSelection"],null]]]]]]]]],[1,"\\n"],[13],[1,"\\n"]],["&default"],false,["go-input","action","if","component","yield","hash"]]',moduleName:"go-form-2/components/go-filter-select/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/component",["exports","@ember/component","go-form-2/components/go-form/template"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({layout:r.default,tagName:"form",attributeBindings:["novalidate"],submit(e){const t=this.get("onSubmit")
this._super(...arguments),e.preventDefault(),t&&t(e)}})})),define("go-form-2/components/go-form/go-errors/component",["exports","@ember/component","go-form-2/components/go-form/go-errors/template"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({layout:r.default,tagName:"",form:null,property:null,errors:null,max:1,invalidHandler:null,validHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",[])}))})},unsubscribeFormEvents(){const{form:e,invalidHandler:t,validHandler:r}=this.getProperties("form","invalidHandler","validHandler")
e.off(t),e.off(r)},init(){this._super(...arguments),this.set("errors",[])},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()}})})),define("go-form-2/components/go-form/go-errors/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"CvsnZViC",block:'[[[1,[28,[35,0],[[30,0,["errors"]]],[["max"],[[30,0,["max"]]]]]],[1,"\\n"]],[],false,["go-errors"]]',moduleName:"go-form-2/components/go-form/go-errors/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/component",["exports","@ember/component","go-form-2/components/go-form/go-field/template"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({layout:r.default,tagName:"label",attributeBindings:["for"],classNameBindings:["isActive:active","isFocused:focused","isDisabled:inactive","isLoading:load","hasErrors:reject"],form:null,property:null})})),define("go-form-2/components/go-form/go-field/go-checkbox/component",["exports","@ember/object/computed","@ember/component","@ember/object","go-form-2/components/go-form/go-field/go-checkbox/template","@ember/object/internals"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({layout:n.default,tagName:"",inputId:(0,i.computed)((function(){return`${(0,s.guidFor)(this)}-input`})),isChecked:(0,i.computed)("value","checkedValue","uncheckedValue",(function(){const{value:e,checkedValue:t}=this.getProperties("value","checkedValue")
return e===t})),hasErrors:(0,t.notEmpty)("errors"),"checked-value":!0,"unchecked-value":!1,checkedValue:(0,t.reads)("checked-value"),uncheckedValue:(0,t.reads)("unchecked-value"),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},actions:{handleChange(e){const{form:t,property:r,checkedValue:i,uncheckedValue:n}=this.getProperties("form","property","checkedValue","uncheckedValue")
let s=e?i:n
this.set("value",s),t.set(r,s),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-checkbox/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"e+BzBto4",block:'[[[8,[39,0],null,[["@class","@isActive","@--isFocused","@--isDisabled","@hasErrors","@for","@helpText"],[[30,0,["class"]],false,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@id","@type","@is-checked","@disabled","@title","@on-change","@label","@icon"],[[30,0,["inputId"]],[30,0,["type"]],[30,0,["isChecked"]],[30,0,["isDisabled"]],[30,0,["title"]],[28,[37,2],[[30,0],"handleChange"],null],[30,0,["label"]],[30,0,["icon"]]]],null],[1,"\\n\\t"],[18,1,null],[1,"\\n\\t"],[8,[39,4],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["&default"],false,["go-form/go-field","go-checkbox","action","yield","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-checkbox/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-date/component",["exports","@ember/object/computed","@ember/component","@ember/object","go-form-2/components/go-form/go-field/go-date/template"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({layout:n.default,tagName:"",form:null,property:null,class:"date",format:"day/month/year",isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){this.set("isFocused",!1)},handleChange(e){const t=this.get("on-change"),{form:r,property:i}=(this.get("validationEventName"),this.getProperties("form","property"))
this.set("value",e),r.set(i,e),t&&t(),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-date/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"7wM2CVBl",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n\\t"],[8,[39,2],null,[["@value","@day-placeholder","@month-placeholder","@year-placeholder","@day-tabindex","@month-tabindex","@year-tabindex","@month-labels","@format","@disabled","@on-change","@on-focus-in","@on-focus-out","@errorComponent","@icon"],[[30,0,["value"]],[30,0,["day-placeholder"]],[30,0,["month-placeholder"]],[30,0,["year-placeholder"]],[30,0,["day-tabindex"]],[30,0,["month-tabindex"]],[30,0,["year-tabindex"]],[30,0,["month-labels"]],[30,0,["format"]],[30,0,["isDisabled"]],[28,[37,3],[[30,0],"handleChange"],null],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[50,"go-form/go-errors",0,null,[["form","property"],[[30,0,["form"]],[30,0,["property"]]]]],[30,0,["icon"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],[],false,["go-form/go-field","go-label","go-date","action","component"]]',moduleName:"go-form-2/components/go-form/go-field/go-date/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-filter-select/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-filter-select/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-input`})),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){this.set("isFocused",!1)},handleSelect(e){const{form:t,property:r}=this.getProperties("form","property")
this.set("value",e),t.set(r,e),this.invoke("on-select",e),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-filter-select/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"DUJ5M2je",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n\\t"],[8,[39,2],null,[["@id","@value","@tabindex","@placeholder","@disabled","@on-select","@on-focus-in","@on-focus-out","@icon"],[[30,0,["inputId"]],[30,0,["value"]],[30,0,["tabindex"]],[30,0,["placeholder"]],[30,0,["isDisabled"]],[28,[37,3],[[30,0],"handleSelect"],null],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[30,0,["icon"]]]],[["default"],[[[[1,"\\n\\t\\t"],[18,2,[[28,[37,5],null,[["xOption"],[[30,1,["xOption"]]]]]]],[1,"\\n\\t"]],[1]]]]],[1,"\\n\\t"],[8,[39,6],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["s","&default"],false,["go-form/go-field","go-label","go-filter-select","action","yield","hash","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-filter-select/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-input/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-input/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isActive:(0,t.or)("isFocused","hasValue","placeholder"),isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-input`})),hasLabel:(0,i.computed)("label",(function(){const e=this.get("label")
return""!==e&&null!=e&&!this.get("composable")})),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,validationEventName:"focus-out",subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,property:t,valueChangeHandler:r,handleReset:i,invalidHandler:n,validHandler:s}=this.getProperties("form","property","valueChangeHandler","handleReset","invalidHandler","validHandler")
e.off(r),e.off(n),e.off(s)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){const e=this.get("on-focus-out"),t=this.get("validationEventName")
this.set("isFocused",!1),e&&e(),"focus-out"===t&&(this.set("validationEventName","change"),this.validate())},handleChange(e){const t=this.get("on-change"),r=this.get("validationEventName"),{form:i,property:n}=this.getProperties("form","property")
this.set("value",e),i.set(n,e),t&&t(),"change"===r&&this.validate()},handleEnterPress(){this.invoke("on-enter-press",...arguments)},handleKeyPress(){this.invoke("on-key-press",...arguments)},handleEscapePress(){this.invoke("on-escape-press",...arguments)}}})})),define("go-form-2/components/go-form/go-field/go-input/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"XwpuLW0j",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@for","@helpText"],[[30,0,["class"]],[30,0,["isActive"]],[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasLabel"]],[[[1,"\\t\\t"],[8,[39,2],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["composable"]],[[[1,"\\t\\t"],[18,1,[[28,[37,4],null,[["label","input","accessory"],[[50,"go-label",0,null,null],[50,"go-input",0,null,[["id","type","value","disabled","autofocus","placeholder","maxlength","tabindex","on-change","on-focus-in","on-focus-out","on-key-press","on-enter-press","on-escape-press"],[[30,0,["inputId"]],[30,0,["type"]],[30,0,["value"]],[30,0,["isDisabled"]],[30,0,["autofocus"]],[30,0,["placeholder"]],[30,0,["maxlength"]],[30,0,["tabindex"]],[28,[37,6],[[30,0],"handleChange"],null],[28,[37,6],[[30,0],"handleFocusIn"],null],[28,[37,6],[[30,0],"handleFocusOut"],null],[28,[37,6],[[30,0],"handleKeyPress"],null],[28,[37,6],[[30,0],"handleEnterPress"],null],[28,[37,6],[[30,0],"handleEscapePress"],null]]]],[50,"wrapper-component",0,null,null]]]]]],[1,"\\n"]],[]],[[[1,"\\t\\t"],[8,[39,7],null,[["@id","@type","@value","@disabled","@autofocus","@placeholder","@maxlength","@tabindex","@on-change","@on-focus-in","@on-focus-out","@on-key-press","@on-enter-press","@on-escape-press"],[[30,0,["inputId"]],[30,0,["type"]],[30,0,["value"]],[30,0,["isDisabled"]],[30,0,["autofocus"]],[30,0,["placeholder"]],[30,0,["maxlength"]],[30,0,["tabindex"]],[28,[37,6],[[30,0],"handleChange"],null],[28,[37,6],[[30,0],"handleFocusIn"],null],[28,[37,6],[[30,0],"handleFocusOut"],null],[28,[37,6],[[30,0],"handleKeyPress"],null],[28,[37,6],[[30,0],"handleEnterPress"],null],[28,[37,6],[[30,0],"handleEscapePress"],null]]],null],[1,"\\n"]],[]]],[1,"\\t"],[8,[39,8],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["&default"],false,["go-form/go-field","if","go-label","yield","hash","component","action","go-input","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-input/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-radio/component",["exports","@ember/object/computed","@ember/component","go-form-2/components/go-form/go-field/go-radio/template","@ember/object","@ember/object/internals"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({layout:i.default,tagName:"",checkedValue:!1,inactive:!1,isSelected:(0,n.computed)("value","selectedValue",(function(){const{checkedValue:e,selectedValue:t,value:r}=this.getProperties("checkedValue","selectedValue","value")
return e===t||e===r})),inputId:(0,n.computed)((function(){return`${(0,s.guidFor)(this)}-input`})),hasErrors:(0,t.notEmpty)("errors"),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.isDestroyed||this.isDestroying||(this.set("selectedValue",e),this.set("value",e))})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.isDestroyed||this.isDestroying||this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.isDestroyed||this.isDestroying||this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t}=this.getProperties("form","valueChangeHandler")
e.off(t)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},actions:{handleChange(e){const{form:t,property:r}=this.getProperties("form","property")
void 0!==e&&(t.set(r,this.get("checkedValue")),this.validate())}}})})),define("go-form-2/components/go-form/go-field/go-radio/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"eNgjD5NA",block:'[[[8,[39,0],null,[["@class","@isActive","@--isFocused","@--isDisabled","@hasErrors","@for","@helpText"],[[52,[30,0,["inactive"]],[28,[37,2],["inactive ",[30,0,["class"]]],null],[30,0,["class"]]],false,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,3],null,[["@id","@is-selected","@disabled","@title","@on-change","@label","@inactive"],[[30,0,["inputId"]],[30,0,["isSelected"]],[30,0,["isDisabled"]],[30,0,["title"]],[28,[37,4],[[30,0],"handleChange"],null],[30,0,["label"]],[30,0,["inactive"]]]],null],[1,"\\n\\t"],[18,1,null],[1,"\\n\\t"],[8,[39,6],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["&default"],false,["go-form/go-field","if","concat","go-radio","action","yield","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-radio/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-select-autocomplete/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-select-autocomplete/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-input`})),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,hasLabel:(0,i.computed)("label",(function(){const e=this.get("label")
return""!==e&&null!=e&&!this.get("composable")})),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){this.set("isFocused",!1)},handleSelect(e){const{form:t,property:r}=this.getProperties("form","property")
this.set("value",e),t.set(r,e),this.invoke("on-select",e),this.validate()},handleInputChange(e){this.invoke("on-input-change",e)}}})})),define("go-form-2/components/go-form/go-field/go-select-autocomplete/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"dG/6yjMF",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["label"]],[[[1,"\\t  "],[8,[39,2],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["composable"]],[[[1,"\\t\\t"],[18,2,[[28,[37,4],null,[["label"],[[50,"go-label",0,null,null]]]]]],[1,"\\n"]],[]],null],[1,"\\t"],[8,[39,6],null,[["@id","@value","@placeholder","@disabled","@isLoading","@isEmpty","@icon","@emptyText","@onLoadMore","@loadingText","@searchOnFocus","@clearOnBlur","@on-select","@on-focus-in","@on-focus-out","@on-input-change"],[[30,0,["inputId"]],[30,0,["value"]],[30,0,["placeholder"]],[30,0,["isDisabled"]],[30,0,["isLoading"]],[30,0,["isEmpty"]],[30,0,["icon"]],[30,0,["emptyText"]],[30,0,["onLoadMore"]],[30,0,["loadingText"]],[30,0,["searchOnFocus"]],[30,0,["clearOnBlur"]],[28,[37,7],[[30,0],"handleSelect"],null],[28,[37,7],[[30,0],"handleFocusIn"],null],[28,[37,7],[[30,0],"handleFocusOut"],null],[28,[37,7],[[30,0],"handleInputChange"],null]]],[["default"],[[[[1,"\\n\\t\\t"],[18,2,[[28,[37,4],null,[["xOption"],[[30,1,["xOption"]]]]]]],[1,"\\n\\t"]],[1]]]]],[1,"\\n\\t"],[8,[39,8],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["s","&default"],false,["go-form/go-field","if","go-label","yield","hash","component","go-select-autocomplete","action","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-select-autocomplete/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-select-create/component",["exports","@ember/object/computed","@ember/component","go-form-2/mixins/invocable-action","go-form-2/components/go-form/go-field/go-select-create/template"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(i.default,{layout:n.default,tagName:"",isFocused:!1,form:null,property:null,errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,hasErrors:(0,t.notEmpty)("errors"),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{validate(){const{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){this.set("isFocused",!1)},handleCreate(e){return this.invoke("on-create",e)},handleSelect(e){const{form:t,property:r}=this.getProperties("form","property")
this.set("value",e),t.set(r,e),this.invoke("on-select",e),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-select-create/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"El7uq3Kp",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n\\t"],[8,[39,2],null,[["@value","@placeholder","@tabindex","@options","@optionValueKey","@disabled","@icon","@create-label","@create-maxlength","@create-start-label","@create-start-title","@create-complete-label","@create-complete-title","@create-error","@on-focus-in","@on-focus-out","@loading","@loader","@on-select","@on-create"],[[30,0,["value"]],[30,0,["placeholder"]],[30,0,["tabindex"]],[30,0,["options"]],[30,0,["optionValueKey"]],[30,0,["isDisabled"]],[30,0,["icon"]],[30,0,["create-label"]],[30,0,["create-maxlength"]],[30,0,["create-start-label"]],[30,0,["create-start-title"]],[30,0,["create-complete-label"]],[30,0,["create-complete-title"]],[30,0,["create-error"]],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[30,0,["loading"]],[30,0,["loader"]],[28,[37,3],[[30,0],"handleSelect"],null],[28,[37,3],[[30,0],"handleCreate"],null]]],[["default"],[[[[1,"\\n\\t\\t"],[18,2,[[28,[37,5],null,[["xOption"],[[30,1,["xOption"]]]]]]],[1,"\\n\\t"]],[1]]]]],[1,"\\n\\t"],[8,[39,6],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]]],["s","&default"],false,["go-form/go-field","go-label","go-select-create","action","yield","hash","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-select-create/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-select-multiple/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-select-multiple/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-input`})),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0),this.invoke("on-focus-in")},handleFocusOut(){this.get("isDestroyed")||this.get("isDestroying")||(this.set("isFocused",!1),this.invoke("on-focus-out"))},handleSelect(e){const{form:t,property:r}=this.getProperties("form","property")
this.set("value",e),t.set(r,e),this.invoke("on-select",e),this.validate()}}})}))
define("go-form-2/components/go-form/go-field/go-select-multiple/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tBx8gZyz",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n\\t"],[8,[39,2],null,[["@id","@value","@field-label","@tabindex","@placeholder","@disabled","@on-select","@on-focus-in","@on-focus-out","@inputClassName","@icon"],[[30,0,["inputId"]],[30,0,["value"]],[30,0,["label"]],[30,0,["tabindex"]],[30,0,["placeholder"]],[30,0,["isDisabled"]],[28,[37,3],[[30,0],"handleSelect"],null],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[30,0,["inputClassNames"]],[30,0,["icon"]]]],[["default"],[[[[1,"\\n\\t\\t"],[18,2,[[28,[37,5],null,[["xOption"],[[30,1,["xOption"]]]]]]],[1,"\\n\\t"]],[1]]]]],[1,"\\n\\t"],[8,[39,6],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["s","&default"],false,["go-form/go-field","go-label","go-select-multiple","action","yield","hash","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-select-multiple/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-select/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-select/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-input`})),errors:null,valueChangeHandler:null,invalidHandler:null,validHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0),this.invoke("on-focus-in")},handleFocusOut(){this.set("isFocused",!1),this.invoke("on-focus-out")},handleSelect(e){const{form:t,property:r}=this.getProperties("form","property")
this.set("value",e),t.set(r,e),this.invoke("on-select",e),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-select/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Csu0bMqo",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@isLoading","@hasErrors","@--for","@helpText"],[[30,0,["class"]],true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["isLoading"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n\\t"],[8,[39,2],null,[["@id","@value","@tabindex","@placeholder","@disabled","@on-select","@on-focus-in","@on-focus-out","@icon","@loaderIcon","@optionsClass"],[[30,0,["inputId"]],[30,0,["value"]],[30,0,["tabindex"]],[30,0,["placeholder"]],[30,0,["isDisabled"]],[28,[37,3],[[30,0],"handleSelect"],null],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[30,0,["icon"]],[30,0,["loaderIcon"]],[30,1]]],[["default"],[[[[1,"\\n\\t\\t"],[18,3,[[28,[37,5],null,[["xOption"],[[30,2,["xOption"]]]]]]],[1,"\\n\\t"]],[2]]]]],[1,"\\n\\t"],[8,[39,6],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],["@optionsClass","s","&default"],false,["go-form/go-field","go-label","go-select","action","yield","hash","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-select/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-suggestion/component",["exports","@ember/component","go-form-2/components/go-form/go-field/go-suggestion/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(i.default,{layout:r.default,tagName:""})})),define("go-form-2/components/go-form/go-field/go-suggestion/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3zTZR0ln",block:'[[[8,[39,0],null,[["@--for","@class","@isActive","@isFocused","@isDisabled","@hasErrors","@helpText"],[[30,0,["inputId"]],"suggest",true,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@id","@value","@options","@tabindex","@placeholder","@disabled","@icon","@onChange","@onSelect","@onFetch","@isLoading","@emptyText","@loadingText","@resultWrapper","@overrideListClassName"],[[30,0,["inputId"]],[30,0,["value"]],[30,0,["options"]],[30,0,["tabindex"]],[30,0,["placeholder"]],[30,0,["isDisabled"]],[30,0,["icon"]],[30,0,["onChange"]],[30,0,["onSelect"]],[30,0,["onFetch"]],[30,0,["isLoading"]],[30,0,["emptyText"]],[30,0,["loadingText"]],[30,0,["resultWrapper"]],[30,0,["overrideListClassName"]]]],null],[1,"\\n  "],[8,[39,2],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],[],false,["go-form/go-field","go-suggestion","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-suggestion/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-switch/component",["exports","@ember/object/computed","@ember/component","@ember/object","go-form-2/components/go-form/go-field/go-switch/template"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({layout:n.default,tagName:"",isOn:(0,i.computed)("value","onValue","offValue",(function(){const{value:e,onValue:t}=this.getProperties("value","onValue")
return e===t})),hasErrors:(0,t.notEmpty)("errors"),"on-value":!0,"off-value":!1,onValue:(0,t.reads)("on-value"),offValue:(0,t.reads)("off-value"),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t,invalidHandler:r,validHandler:i}=this.getProperties("form","valueChangeHandler","invalidHandler","validHandler")
e.off(t),e.off(r),e.off(i)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},actions:{handleChange(e){const{form:t,property:r,onValue:i,offValue:n}=this.getProperties("form","property","onValue","offValue")
let s=e?i:n
this.set("value",s),t.set(r,s),this.validate()}}})})),define("go-form-2/components/go-form/go-field/go-switch/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"xC2G6Vbd",block:'[[[8,[39,0],null,[["@class","@isActive","@--isFocused","@--isDisabled","@hasErrors","@for","@helpText"],[[30,0,["class"]],false,[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["inputId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n\\t"],[8,[39,1],null,[["@tagName","@text"],["",[30,0,["label"]]]],null],[1,"\\n\\t"],[41,[30,0,["description"]],[[[10,"small"],[12],[1,[30,0,["description"]]],[13]],[]],null],[1,"\\n\\t"],[8,[39,3],null,[["@id","@type","@is-on","@disabled","@on-change"],[[30,0,["inputId"]],[30,0,["type"]],[30,0,["isOn"]],[30,0,["isDisabled"]],[28,[37,4],[[30,0],"handleChange"],null]]],null],[1,"\\n\\t"],[8,[39,5],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],[],false,["go-form/go-field","go-label","if","go-switch","action","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-switch/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/go-textarea/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","go-form-2/components/go-form/go-field/go-textarea/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",form:null,property:null,isActive:(0,t.or)("isFocused","hasValue","placeholder"),isFocused:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),hasValue:(0,t.bool)("value"),hasErrors:(0,t.notEmpty)("errors"),inputId:(0,i.computed)((function(){return`${(0,n.guidFor)(this)}-textarea`})),errors:null,valueChangeHandler:null,handleReset:null,invalidHandler:null,validHandler:null,validationEventName:"focus-out",characterCounter:(0,i.computed)("value",(function(){return this.get("value")?this.get("value").toString().length:0})),subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)})),handleReset:e.fields[t].on(`VALUE_RESET.${t}`,(e=>{this.set("value",e)})),invalidHandler:e.on(`INVALID.${t}`,(e=>{this.set("errors",e)})),validHandler:e.on(`VALID.${t}`,(()=>{this.set("errors",null)}))})},unsubscribeFormEvents(){const{form:e,property:t,valueChangeHandler:r,handleReset:i,invalidHandler:n,validHandler:s}=this.getProperties("form","property","valueChangeHandler","handleReset","invalidHandler","validHandler")
e.off(r),e.fields[t].off(i),e.off(n),e.off(s)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){const{property:e,form:t}=this.getProperties("property","form"),r=t.get(e)
this.set("value",r),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusIn(){this.set("isFocused",!0)},handleFocusOut(){const e=this.get("on-focus-out"),t=this.get("validationEventName")
this.set("isFocused",!1),e&&e(),"focus-out"===t&&(this.set("validationEventName","change"),this.validate())},handleChange(e){const t=this.get("on-change"),r=this.get("validationEventName"),{form:i,property:n}=this.getProperties("form","property"),s=this.get("maxlength")?Number(this.get("maxlength")):null
s&&e.toString().length>s||(this.set("value",e),i.set(n,e),t&&t(),"change"===r&&this.validate())},handleEnterPress(){this.invoke("on-enter-press",...arguments)},handleKeyPress(){this.invoke("on-key-press",...arguments)}}})})),define("go-form-2/components/go-form/go-field/go-textarea/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"u/2Kka5R",block:'[[[8,[39,0],null,[["@class","@isActive","@isFocused","@isDisabled","@hasErrors","@for","@helpText"],[[30,0,["class"]],[30,0,["isActive"]],[30,0,["isFocused"]],[30,0,["isDisabled"]],[30,0,["hasErrors"]],[30,0,["textareaId"]],[30,0,["help-text"]]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@text"],[[30,0,["label"]]]],null],[1,"\\n  "],[8,[39,2],null,[["@id","@type","@value","@tabindex","@rows","@cols","@disabled","@placeholder","@maxlength","@on-change","@on-focus-in","@on-focus-out","@on-key-press","@on-enter-press"],[[30,0,["textareaId"]],[30,0,["type"]],[30,0,["value"]],[30,0,["tabindex"]],[30,0,["rows"]],[30,0,["cols"]],[30,0,["isDisabled"]],[30,0,["placeholder"]],[30,0,["maxlength"]],[28,[37,3],[[30,0],"handleChange"],null],[28,[37,3],[[30,0],"handleFocusIn"],null],[28,[37,3],[[30,0],"handleFocusOut"],null],[28,[37,3],[[30,0],"handleKeyPress"],null],[28,[37,3],[[30,0],"handleEnterPress"],null]]],null],[1,"\\n"],[41,[30,0,["helpText"]],[[[1,"    "],[10,"small"],[12],[1,[30,0,["helpText"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCounter"]],[[[1,"    "],[10,1],[12],[1,[30,0,["characterCounter"]]],[1," / "],[1,[30,0,["maxlength"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[8,[39,5],null,[["@form","@property"],[[30,0,["form"]],[30,0,["property"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n"]],[],false,["go-form/go-field","go-label","go-textarea","action","if","go-form/go-errors"]]',moduleName:"go-form-2/components/go-form/go-field/go-textarea/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-field/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6xFH1pdc",block:'[[[18,1,null],[1,"\\n"],[41,[30,0,["helpText"]],[[[10,1],[12],[2,[30,0,["helpText"]]],[13],[1,"\\n"]],[]],null]],["&default"],false,["yield","if"]]',moduleName:"go-form-2/components/go-form/go-field/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/go-input/component",["exports","@ember/component","go-form-2/components/go-form/go-input/template"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=t.default.extend({layout:r.default,tagName:"",form:null,property:null,value:null,validationEventName:null,valueChangeHandler:null,subscribeFormEvents(){const{form:e,property:t}=this.getProperties("form","property")
this.setProperties({valueChangeHandler:e.on(`VALUE_CHANGE.${t}`,(e=>{this.set("value",e)}))})},unsubscribeFormEvents(){const{form:e,valueChangeHandler:t}=this.getProperties("form","valueChangeHandler")
e.off(t)},validate(){var{form:e,property:t}=this.getProperties("form","property")
e.validateSingle(t).catch((function(){}))},setFormValue(){var{form:e,property:t,value:r}=this.getProperties("form","property","value")
e.set(t,r)},didUpdateAttrs(){this.unsubscribeFormEvents()},didReceiveAttrs(){var{form:e,property:t}=this.getProperties("form","property"),r=e.get(t)
this.set("value",r),this.set("validationEventName",r?"change":"focus-out"),this.subscribeFormEvents()},willDestroyElement(){this.unsubscribeFormEvents()},actions:{handleFocusOut(){const e=this.get("on-focus-out"),t=this.get("validationEventName")
e&&e(),"focus-out"===t&&(this.set("validationEventName","change"),this.validate())},handleChange(e){const t=this.get("on-change"),r=this.get("validationEventName")
this.set("value",e),this.setFormValue(),t&&t(),"change"===r&&this.validate()}}})
i.reopenClass({positionalParams:["property","form"]})
e.default=i})),define("go-form-2/components/go-form/go-input/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"CkNKQw7v",block:'[[[8,[39,0],null,[["@type","@value","@placeholder","@tabindex","@maxlength","@disabled","@readonly","@autofocus","@on-mount","@on-change","@on-focus-in","@on-focus-out"],[[30,0,["type"]],[30,0,["value"]],[30,0,["placeholder"]],[30,0,["tabindex"]],[30,0,["maxlength"]],[30,0,["disabled"]],[30,0,["readonly"]],[30,0,["autofocus"]],[30,0,["on-mount"]],[28,[37,1],[[30,0],"handleChange"],null],[30,0,["on-focus-in"]],[28,[37,1],[[30,0],"handleFocusOut"],null]]],null],[1,"\\n"]],[],false,["go-input","action"]]',moduleName:"go-form-2/components/go-form/go-input/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-form/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Chi6At56",block:'[[[18,1,[[28,[37,1],null,[["xField"],[[28,[37,1],null,[["xInput","xSelect","xSelectCreate","xSelectAutocomplete","xSelectMultiple","xSwitch","xCheckbox","xRadio","xTextarea","xDate","xFilterSelect","xSuggestion"],[[50,"go-form/go-field/go-input",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-select",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-select-create",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-select-autocomplete",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-select-multiple",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-switch",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-checkbox",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-radio",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-textarea",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-date",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-filter-select",0,null,[["form"],[[30,0,["form"]]]]],[50,"go-form/go-field/go-suggestion",0,null,[["form"],[[30,0,["form"]]]]]]]]]]]]],[1,"\\n"]],["&default"],false,["yield","hash","component"]]',moduleName:"go-form-2/components/go-form/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-input/component",["exports","@ember/component","@ember/runloop","jquery"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({tagName:"input",attributeBindings:["type","value","placeholder","tabindex","maxlength","disabled","readonly","autofocus","autocomplete","hidden","accept"],type:"text",value:null,placeholder:null,tabindex:null,maxlength:null,autocomplete:null,disabled:!1,readonly:null,autofocus:!1,hidden:null,accept:null,didInsertElement(){(0,i.default)(this.element).on("input",(e=>this.triggerCallback("change",e.target.value))).on("keyup",(e=>{const{which:t,target:{value:r}}=e
return 13===t?this.triggerCallback("enter-press",e,r):27===t?this.triggerCallback("escape-press",e,r):this.triggerCallback("key-up",e)})).on("keypress",(e=>this.triggerCallback("key-press",e))).on("keydown",(e=>this.triggerCallback("key-down",e))).on("focus",(e=>this.triggerCallback("focus-in",e))).on("blur",(e=>this.triggerCallback("focus-out",e))).on("click",(e=>this.triggerCallback("click",e)))},willDestroyElement(){(0,i.default)(this.element).off("input").off("keyup").off("keypress").off("keydown").off("focus").off("blur").off("click")},triggerCallback(e,...t){const i=this.get(`on-${e}`)
if(i)return(0,r.run)((()=>i(...t)))},actions:{handleEvent(e,...t){this.get(e)(...t)}}})})),define("go-form-2/components/go-input/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Fc66WFLR",block:"[[],[],false,[]]",moduleName:"go-form-2/components/go-input/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-label/component",["exports","@ember/component","go-form-2/components/go-label/template"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=t.default.extend({layout:r.default,tagName:"em",text:null})
i.reopenClass({positionalParams:["text"]})
e.default=i})),define("go-form-2/components/go-label/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"fedwMX9E",block:'[[[41,[48,[30,1]],[[[18,1,null]],[]],[[[1,[30,0,["text"]]]],[]]]],["&default"],false,["if","has-block","yield"]]',moduleName:"go-form-2/components/go-label/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-radio/component",["exports","@ember/object/computed","@ember/component","go-form-2/components/go-radio/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(n.default,{layout:i.default,tagName:"",isSelected:(0,t.reads)("is-selected"),inactive:!1,actions:{handleChange(e){const t=this.get("isSelected")
this.invoke("on-change",!t,e)}}})})),define("go-form-2/components/go-radio/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"V7tlpU8M",block:'[[[10,"input"],[14,"hidden",""],[14,3,""],[15,1,[29,[[30,0,["id"]]]]],[15,"onchange",[28,[37,0],[[30,0],"handleChange"],null]],[15,"checked",[30,0,["isSelected"]]],[14,4,"radio"],[12],[13],[1,"\\n"],[10,3],[15,0,[29,["radiobutton",[52,[30,0,["isSelected"]]," active"]," ",[52,[30,0,["inactive"]]," inactive"]]]],[15,"title",[29,[[30,0,["label"]]]]],[12],[1,"\\n\\t"],[8,[39,2],null,[["@tagName","@text"],["span",[30,0,["label"]]]],null],[1,"\\n"],[13],[1,"\\n"],[1,[30,0,["label"]]],[1,"\\n"]],[],false,["action","if","go-label"]]',moduleName:"go-form-2/components/go-radio/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select-autocomplete/component",["exports","jquery","@ember/component","@ember/object","@ember/runloop","go-form-2/components/go-select-autocomplete/template","go-form-2/mixins/invocable-action","@ember/object/evented"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",isOpen:!1,isDisabled:(0,i.computed)("disabled",(function(){return void 0===this.disabled?void 0:this.disabled})),selectedLabel:null,selectedValue:null,clearValueOnBlur:!0,didReceiveAttrs(){this.set("selectedValue",this.value),this.set("clearValueOnBlur",this.clearOnBlur||void 0===this.clearOnBlur)},didUpdateAttrs(){this._super(...arguments)
""===this.value&&(this.set("selectedValue",null),this.set("selectedLabel",null))},selectedLabelDidChange:(0,o.on)("init",(0,i.observer)("selectedLabel",(function(){this.set("inputValue",this.get("selectedLabel"))}))),actions:{handleInputFocus(e){(0,t.default)(e.target).select(),this.invoke("on-focus-in",e),this.searchOnFocus&&this.send("handleChangeInput",this.inputValue)},handleInputBlur(e){(0,n.later)((()=>{this.get("isDestroyed")||this.get("isDestroying")||(this.send("closeOptions"),this.invoke("on-focus-out",e))}),250)},handleInputKeyDown(e){const r=38,i=40,n=27,s=13,a=e.which,o=(0,t.default)(e.target)
if(this.invoke("on-key-down",e),[r,i,n,s].indexOf(a)>=0&&e.preventDefault(),a!==n){if([i,r].indexOf(a)>=0&&this.get("isOpen")){let e,t=o.siblings(".autosuggest").find("li:has(a.active)")
0===t.length&&(t=o.siblings(".autosuggest").find("li:first-child")),a===i?(e=t.next(),e.length||(e=t.siblings(":first"))):a===r&&(e=t.prev(),e.length||(e=t.siblings(":last"))),this.set("selectedValue",e.data("value"))
var l=e.parent("ol"),c=l.outerHeight(),u=e.outerHeight(),d=l.scrollTop(),h=e.position().top+d
d+c<h+u?l.scrollTop(h-c+u):h<d&&l.scrollTop(h)}[9,s].indexOf(a)>=0&&(this.send("handleOptionSelection",this.get("selectedValue")),this.send("closeOptions"),o.trigger("blur"))}else o.trigger("blur")},toggleOptions(){this.toggleProperty("isOpen")},closeOptions(){this.set("isOpen",!1),this.clearValueOnBlur?(this.set("selectedValue",null),this.value?this.set("inputValue",this.selectedLabel):this.set("inputValue",null)):this.invoke("on-select",this.inputValue)},openOptions(){this.set("isOpen",!0)},updateSelectedLabel(e,t){this.set("selectedLabel",t)},handleOptionSelection(e){this.set("selectedValue",e),this.invoke("on-select",e)},handleChangeInput(e){this.set("inputValue",e),this.invoke("on-input-change",e),""!==e?this.send("openOptions"):this.send("handleOptionSelection",null)}}})})),define("go-form-2/components/go-select-autocomplete/go-option-autocomplete/component",["exports","@ember/component","@ember/runloop","go-form-2/components/go-select-autocomplete/go-option-autocomplete/template","go-form-2/mixins/invocable-action","jquery"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{layout:i.default,tagName:"li",value:null,isSelected:!1,didReceiveAttrs(){const{selectedValue:e,value:t,label:i}=this.getProperties("selectedValue","value","label")
e===t?(this.set("isSelected",!0),(0,r.schedule)("afterRender",(()=>{this.invoke("on-selection-aware",t,i)}))):this.set("isSelected",!1)},didInsertElement(){(0,s.default)(this.element).data("value",this.get("value"))},actions:{handleSelect(){const{value:e,label:t}=this.getProperties("value","label")
return this.invoke("on-selection-aware",e,t),this.invoke("on-select",e)}}})})),define("go-form-2/components/go-select-autocomplete/go-option-autocomplete/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UEhCuuVf",block:'[[[11,3],[16,0,[29,[[52,[30,0,["isSelected"]],"active"]]]],[4,[38,1],[[30,0],"handleSelect"],null],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["if","action","yield"]]',moduleName:"go-form-2/components/go-select-autocomplete/go-option-autocomplete/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select-autocomplete/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"g3kAk/mY",block:'[[[41,[30,0,["icon"]],[[[1,"  "],[10,1],[14,0,"icon"],[12],[1,"\\n    "],[46,[30,0,["icon"]],null,null,null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[8,[39,2],null,[["@value","@disabled","@on-focus-in","@on-focus-out","@on-key-down","@on-change","@tabindex","@placeholder","@autocomplete"],[[30,0,["inputValue"]],[30,0,["isDisabled"]],[28,[37,3],[[30,0],"handleInputFocus"],null],[28,[37,3],[[30,0],"handleInputBlur"],null],[28,[37,3],[[30,0],"handleInputKeyDown"],null],[28,[37,3],[[30,0],"handleChangeInput"],null],[30,0,["tabindex"]],[30,0,["placeholder"]],"off"]],null],[1,"\\n"],[41,[30,0,["isLoading"]],[[[1,"  "],[10,"ol"],[14,0,"autosuggest active"],[12],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[10,0],[14,0,"overlayloading active"],[12],[1,"\\n        "],[10,0],[14,0,"loading small"],[12],[1,"\\n          "],[10,0],[14,0,"insides"],[12],[1,"\\n            "],[10,0],[14,0,"left"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"center"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"right"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isEmpty"]],[[[41,[30,0,["emptyText"]],[[[1,"      "],[10,"ol"],[15,0,[29,["autosuggest",[52,[30,0,["isOpen"]]," active"]]]],[12],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[10,3],[14,6,"#"],[12],[1,"\\n            "],[10,1],[12],[1,[30,0,["emptyText"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["onLoadMore"]],[[[1,"        "],[8,[39,4],null,[["@onClickOutside"],[[30,0,["closeOptions"]]]],[["default"],[[[[1,"\\n          "],[8,[39,5],null,[["@percent","@onLoadMore"],["90",[30,0,["onLoadMore"]]]],[["default"],[[[[1,"\\n            "],[11,"ol"],[16,0,[29,["autosuggest",[52,[30,0,["isOpen"]]," active"]]]],[4,[38,6],[[30,1,["setElement"]]],null],[12],[1,"\\n              "],[18,2,[[28,[37,8],null,[["xOption"],[[50,"go-select-autocomplete/go-option-autocomplete",0,null,[["selectedValue","on-selection-aware","on-select"],[[30,0,["selectedValue"]],[28,[37,3],[[30,0],"updateSelectedLabel"],null],[28,[37,3],[[30,0],"handleOptionSelection"],null]]]]]]]]],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["loadingText"]],[30,1,["isLoading"]]],null],[[[1,"              "],[10,"li"],[12],[1,"\\n                "],[10,3],[14,"title",""],[12],[1,"\\n                  "],[10,1],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[28,[37,10],[[30,0,["loadingText"]]],null],[30,1,["isLoading"]]],null],[[[1,"              "],[10,"li"],[12],[1,"\\n                "],[10,0],[14,0,"overlayloading active"],[12],[1,"\\n                  "],[10,0],[14,0,"loading small"],[12],[1,"\\n                    "],[10,0],[14,0,"insides"],[12],[1,"\\n                      "],[10,0],[14,0,"left"],[12],[1,"\\n                        "],[10,0],[14,0,"circle"],[12],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"center"],[12],[1,"\\n                        "],[10,0],[14,0,"circle"],[12],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"right"],[12],[1,"\\n                        "],[10,0],[14,0,"circle"],[12],[13],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "]],[1]]]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[10,"ol"],[15,0,[29,["autosuggest",[52,[30,0,["isOpen"]]," active"]]]],[12],[1,"\\n        "],[18,2,[[28,[37,8],null,[["xOption"],[[50,"go-select-autocomplete/go-option-autocomplete",0,null,[["selectedValue","on-selection-aware","on-select"],[[30,0,["selectedValue"]],[28,[37,3],[[30,0],"updateSelectedLabel"],null],[28,[37,3],[[30,0],"handleOptionSelection"],null]]]]]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],["scroller","&default"],false,["if","component","go-input","action","click-outside","infinite-scroller","did-insert","yield","hash","and","not"]]',moduleName:"go-form-2/components/go-select-autocomplete/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select-create/component",["exports","@ember/object/computed","@ember/component","@ember/object","@ember/object/internals","@ember/runloop","jquery","go-form-2/mixins/invocable-action","go-form-2/components/go-select-create/template"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(o.default,{layout:l.default,tagName:"",activeMenu:!1,isCreating:!1,createValue:"",selectedLabel:null,selectedValue:null,options:null,optionValueKey:null,guid:null,ignoreCreateError:!1,createLabel:(0,t.reads)("create-label"),createMaxlength:(0,t.reads)("create-maxlength"),createStartLabel:(0,t.reads)("create-start-label"),createStartTitle:(0,t.reads)("create-start-title"),createButtonLabel:(0,t.reads)("create-complete-label"),createButtonTitle:(0,t.reads)("create-complete-title"),isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")??!1})),isLoading:(0,i.computed)("loading",(function(){return this.get("loading")??!1})),createError:(0,i.computed)("create-error","ignoreCreateError",(function(){const e=this.get("create-error")
return this.get("ignoreCreateError")||!e?[]:[e]})),validSelectedOption:(0,i.computed)("options.@each","selectedValue","optionValueKey",(function(){const e=this.get("options")
return!e||(!this.get("selectedValue")||e.any((e=>(0,i.get)(e,this.get("optionValueKey")||"id")===this.get("selectedValue"))))})),displayedLabel:(0,i.computed)("selectedLabel","placeholder","validSelectedOption",(function(){return this.get("validSelectedOption")&&this.get("selectedLabel")||this.get("placeholder")})),activeMenuObserver:(0,i.observer)("activeMenu",(function(){this.get("activeMenu")?((0,a.default)("body").on(`click.${this.get("guid")}`,(e=>{if(!this.get("isDestroyed")&&!this.get("isDestroying")){let t=(0,a.default)(`#menu${this.get("guid")}`)
t.is(e.target)||0!==t.has(e.target).length||this.closeSelect()}})),(0,a.default)("body").on(`keydown.${this.get("guid")}`,this.navigate.bind(this)),(0,a.default)("body").on(`keyup.${this.get("guid")}`,(e=>{if(27===e.keyCode)return e.stopPropagation(),void this.closeSelect()}))):((0,a.default)("body").off(`click.${this.get("guid")}`),(0,a.default)("body").off(`keyup.${this.get("guid")}`),(0,a.default)("body").off(`keydown.${this.get("guid")}`))})),isCreatingObserver:(0,i.observer)("isCreating",(function(){this.get("isCreating")&&(0,a.default)("body").off(`keydown.${this.get("guid")}`)})),navigableElements(){return(0,a.default)(`#options${this.get("guid")} li a, #createStart${this.get("guid")}`)},setElementActive(e,t=!0){t?e.addClass("active").attr("data-navigation-active","navigated")[0].scrollIntoView({behaviour:"smooth"}):e.removeClass("active").removeAttr("data-navigation-active","navigated")},unsetNavigationActive(){this.setElementActive(this.navigableElements(),!1)},navigate(e){const{keyCode:t}=e,r=38===t,i=40===t,n=13===t,s=this.navigableElements()
let a,o
if(!this.get("isCreating")){if(e.preventDefault(),e.stopPropagation(),!r&&!i&&!n)return
if(a=s.filter(".active").first(),!a.length)return void this.setElementActive(r?s.last():s.first())
if(n)return void a.trigger("click")
const t=s.index(a)
if(this.setElementActive(s.filter(".active"),!1),r){const e=t-1
let r=-1===e?s.last():s.eq(e)
o=r.length?r:a,o.position().top<=0&&o.parent().scrollTop(o.parent().scrollTop()+o.position().top)}else{let e=t+1>s.length-1?s.first():s.eq(t+1)
o=e.length?e:a,o.position().top+o.outerHeight()>=a.parent().outerHeight()&&o.parent().scrollTop(o.parent().scrollTop()+o.outerHeight())}this.setElementActive(o)}},init(){this._super(...arguments),this.set("guid",(0,n.guidFor)(this)),this.addObserver("validSelectedOption",(function(){this.get("validSelectedOption")||(0,s.next)((()=>{this.set("selectedLabel",null),this.set("selectedValue",null),this.invoke("on-select",null)}))}))},didReceiveAttrs(){this.set("selectedValue",this.get("value"))},closeSelect(){this.unsetNavigationActive(),this.set("activeMenu",!1)},actions:{handleButtonFocus(e){this.invoke("on-focus-in",e)},handleButtonBlur(e){this.invoke("on-blur",e)},preventEnterSubmit(e){13===e.which&&e.preventDefault()},create(){const e=e=>(this.set("selectedValue",e.value),this.set("selectedLabel",e.label),this.invoke("on-select",e.value),this.set("activeMenu",!1),this.set("createValue",""),this.set("isCreating",!1),e),t=this.invoke("on-create",this.get("createValue"))
return this.get("createValue")?(this.set("ignoreCreateError",!1),this.get("createError")||this.set("isCreating",!1),t?"function"==typeof t.then?t.then((t=>t?e(t):t)):e(t):t):null},createChange(e){this.set("createValue",e),this.set("ignoreCreateError",!0)},toggleShowOptions(){this.toggleProperty("activeMenu")},toggleCreating(){this.unsetNavigationActive(),this.get("isCreating")?this.set("isCreating",!1):(this.set("isCreating",!0),(0,s.next)((()=>{const e=(0,a.default)(`#menu${this.get("guid")}`);(0,a.default)(`#inputCreate${this.get("guid")}`).focus(),e.scrollTop(e[0].scrollHeight)})))},updateSelectedLabel(e,t){this.set("selectedLabel",t)},handleOptionSelection(e){this.set("selectedValue",e),this.invoke("on-select",e),this.set("activeMenu",!1)}}})})),define("go-form-2/components/go-select-create/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"BJn3UVde",block:'[[[8,[39,0],null,[["@type","@hidden","@value"],["hidden",true,[30,0,["selectedValue"]]]],null],[1,"\\n\\n"],[11,"button"],[16,1,[29,[[30,0,["guid"]]]]],[16,"tabindex",[30,0,["tabindex"]]],[16,"onfocus",[28,[37,1],[[30,0],"handleButtonFocus"],null]],[16,"onblur",[28,[37,1],[[30,0],"handleButtonBlur"],null]],[16,0,[29,["select",[52,[30,0,["isDisabled"]]," inactive",""]]]],[16,"disabled",[30,0,["isDisabled"]]],[24,4,"button"],[4,[38,1],[[30,0],"toggleShowOptions"],null],[12],[1,"\\n\\t"],[46,[30,0,["icon"]],null,null,null],[1,"\\n\\t"],[1,[30,0,["displayedLabel"]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["dotmenu",[52,[30,0,["activeMenu"]]," active"]]]],[15,1,[28,[37,4],["menu",[30,0,["guid"]]],null]],[14,5,"max-height: 400px;"],[12],[1,"\\n\\t"],[10,"ol"],[14,0,"ps-child"],[15,1,[28,[37,4],["options",[30,0,["guid"]]],null]],[12],[1,"\\n\\t\\t"],[18,1,[[28,[37,6],null,[["xOption"],[[50,"go-select/go-option",0,null,[["selectedValue","on-selection-aware","on-select"],[[30,0,["selectedValue"]],[28,[37,1],[[30,0],"updateSelectedLabel"],null],[28,[37,1],[[30,0],"handleOptionSelection"],null]]]]]]]]],[1,"\\n\\t"],[13],[1,"\\n\\n\\n\\t"],[11,3],[16,1,[28,[37,4],["createStart",[30,0,["guid"]]],null]],[16,0,[29,["plus",[52,[30,0,["activeCreate"]]," off",""]]]],[16,"title",[30,0,["createStartTitle"]]],[4,[38,1],[[30,0],"toggleCreating"],null],[12],[1,"\\n\\t\\t"],[1,[30,0,["createStartLabel"]]],[1,"\\n\\t"],[13],[1,"\\n\\n"],[41,[30,0,["isCreating"]],[[[1,"\\t\\t"],[10,"fieldset"],[15,0,[29,[[52,[30,0,["isCreating"]]," active",""]]]],[12],[1,"\\n\\t\\t\\t"],[10,"label"],[14,"for",""],[15,0,[29,["active",[52,[30,0,["createError","length"]]," reject",""]]]],[12],[1,"\\n\\t\\t\\t\\t"],[8,[39,7],null,[["@text"],[[30,0,["createLabel"]]]],null],[1,"\\n\\t\\t\\t\\t"],[8,[39,0],null,[["@id","@on-change","@on-key-press","@on-enter-press","@value","@maxlength"],[[28,[37,4],["inputCreate",[30,0,["guid"]]],null],[28,[37,1],[[30,0],"createChange"],null],[28,[37,1],[[30,0],"preventEnterSubmit"],null],[28,[37,1],[[30,0],"create"],null],[30,0,["createValue"]],[30,0,["createMaxlength"]]]],null],[1,"\\n\\t\\t\\t\\t"],[8,[39,8],null,[["@errors"],[[30,0,["createError"]]]],null],[1,"\\n\\t\\t\\t"],[13],[1,"\\n\\t\\t\\t"],[10,"label"],[14,0,"last"],[14,"for",""],[12],[1,"\\n\\t\\t\\t\\t"],[11,"button"],[24,0,"primary"],[16,"title",[30,0,["createButtonTitle"]]],[24,4,"button"],[4,[38,1],[[30,0],"create"],null],[12],[1,"\\n\\t\\t\\t\\t\\t"],[1,[30,0,["createButtonLabel"]]],[1,"\\n\\t\\t\\t\\t"],[13],[1,"\\n\\t\\t\\t"],[13],[1,"\\n\\t\\t"],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["loading"]],[[[1,"\\t\\t"],[46,[30,0,["loader"]],null,null,null],[1,"\\n"]],[]],null],[13]],["&default"],false,["go-input","action","if","component","concat","yield","hash","go-label","go-errors"]]',moduleName:"go-form-2/components/go-select-create/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select-multiple/component",["exports","jquery","lodash-es","@ember/object/internals","@ember/component","@ember/object","@ember/runloop","go-form-2/components/go-select-multiple/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{layout:o.default,tagName:"",isOpen:!1,guid:null,value:null,isDisabled:(0,s.computed)("disabled",(function(){return this.get("disabled")})),selectedLabel:(0,s.computed)("value",(function(){return this.get("value")?this.get("value").map((({label:e})=>e)).join(", "):null})),optionsListId:(0,s.computed)("guid",(function(){return`options-select-multiple-${this.get("guid")}`})),inputValue:(0,s.computed)("value",(function(){return this.get("value")?this.get("value").map((e=>JSON.stringify(e))):null})),inputClassNames:(0,s.computed)("inputClassName",(function(){const e=this.get("inputClassName")
return e?`hidden ${e}`:"hidden"})),activeMenuObserver:(0,s.observer)("isOpen",(function(){if(!this.get("isDestroyed")&&!this.get("isDestroying")&&this.get("isOpen")){const e=27;(0,t.default)("body").on("click",(e=>{if(!this.get("isDestroyed")&&!this.get("isDestroying")){const r=(0,t.default)(e.target),i=e=>!!r.attr("class")&&-1!==r.attr("class").indexOf(e),n=r.attr("id")&&r.attr("id")===this.get("guid"),s=i("meta-class-select-multiple-option-checkbox-el"),a=-1!==r.parent("checkboxbutton.meta-class-select-multiple-option-checkbox-el").length,o=i("meta-class-select-multiple-option-list-item"),l=i("meta-class-select-multiple-option-text"),c=r.attr("id")&&-1!==r.attr("id").indexOf(this.get("optionsListId")),u=0!==r.parent(".select.meta-class-select-multiple-button").length;(0!==r.parents(`#${this.get("optionsListId")}`).length||n||u)&&(u||s||o||n||c||l||a)||this.set("isOpen",!1)}})),(0,t.default)("body").on("keyup",(t=>{t.keyCode===e&&this.set("isOpen",!1)}))}})),init(){this._super(...arguments),this.set("guid",`go-select-multiple-${(0,i.guidFor)(this)}`),this.get("value")||this.set("value",[])},actions:{handleButtonFocus(e){this.invoke("on-focus-in",e)},handleButtonBlur(e){(0,a.later)((()=>{this.invoke("on-focus-out",e)}),250)},handleButtonKeyDown(e){if(!this.get("isDestroyed")&&!this.get("isDestroying")&&this.get("isOpen")){const r=38,i=40,n=13,s=32,a=9,o=e.which,l=(0,t.default)(`#${this.get("optionsListId")}`),c=l.children().find("a:nth-child(2).active"),u=l.children().find("a:nth-child(2).active").parent()
if(this.invoke("on-key-down",e),[r,i,n,s].indexOf(o)>=0&&e.preventDefault(),[i,r].indexOf(o)>=0){const e=o===i?u.index()+1:u.index()-1,t=Boolean(l.children()[e]),r=l.children()
0===c.length?r[0]&&r[0].children[1].classList.add("active"):t?(r[u.index()].children[1].classList.remove("active"),r[e].children[1].classList.add("active")):(r[u.index()].children[1].classList.remove("active"),r[0].children[1].classList.add("active"))}[s].indexOf(o)>=0&&c.siblings()[0]&&c.siblings()[0].click(),[n].indexOf(o)>=0&&this.send("handleOptionSelection",this.get("selectedValue")),[a].indexOf(o)>=0&&this.set("isOpen",!1)}},handleButtonClick(){this.get("isDestroyed")||this.get("isDestroying")||(this.get("isOpen")?this.set("isOpen",!1):this.set("isOpen",!0))},closeOptions(){this.get("isDestroyed")||this.get("isDestroying")||this.set("isOpen",!1)},handleOptionSelection(e,t){null===this.get("value")&&this.set("value",[])
let i=[...this.get("value")]
if(this.get("value").find((r=>r.label===t&&r.value===e))){const n=(0,r.findIndex)(this.get("value"),(r=>r.label===t&&r.value===e))
i.splice(n,1),this.set("value",i)}else i.push({value:e,label:t,parentLabel:this.get("field-label")}),this.set("value",i)
this.invoke("on-select",i)}}})})),define("go-form-2/components/go-select-multiple/go-option/component",["exports","@ember/component","jquery","@ember/object","@ember/object/internals","go-form-2/components/go-select-multiple/go-option/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(a.default,{layout:s.default,tagName:"",value:null,xOptionID:(0,i.computed)((function(){return(0,n.guidFor)(this)})),isSelected:(0,i.computed)("selectedItems",(function(){return!!this.get("selectedItems")&&this.get("selectedItems").find((({label:e,value:t})=>e===this.get("label")&&t===this.get("value")))})),didInsertElement(){(0,r.default)(`#${this.get("xOptionID")}`).data("value",this.get("value"))},actions:{handleSelect(){const{value:e,label:t}=this.getProperties("value","label")
return this.invoke("on-select",e,t)}}})})),define("go-form-2/components/go-select-multiple/go-option/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"EjmZWi19",block:'[[[11,"li"],[16,1,[30,0,["xOptionID"]]],[24,0,"meta-class-select-multiple-option-list-item"],[4,[38,0],[[30,0],"handleSelect"],null],[12],[1,"\\n\\t"],[10,3],[15,0,[29,["checkboxbutton meta-class-select-multiple-option-checkbox-el",[52,[30,0,["isSelected"]]," active",""]]]],[14,"title","Desactiva la casilla"],[12],[1,"\\n\\t\\t"],[46,"x-svg/x-icon",["check"],null,null],[1,"\\n\\t"],[13],[1,"\\n\\t"],[10,3],[14,"title","Selecciona un grupo"],[14,0,"meta-class-select-multiple-option-text"],[12],[1,[30,0,["label"]]],[13],[1,"\\n"],[13],[1,"\\n"]],[],false,["action","if","component"]]',moduleName:"go-form-2/components/go-select-multiple/go-option/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select-multiple/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"18YXsaAD",block:'[[[8,[39,0],null,[["@type","@hidden","@value","@class"],["hidden",true,[30,0,["inputValue"]],[30,0,["inputClassNames"]]]],null],[1,"\\n"],[11,"button"],[16,1,[30,0,["guid"]]],[24,0,"select meta-class-select-multiple-button"],[16,"disabled",[30,0,["isDisabled"]]],[16,"onfocus",[28,[37,1],[[30,0],"handleButtonFocus"],null]],[16,"onblur",[28,[37,1],[[30,0],"handleButtonBlur"],null]],[16,"onkeydown",[28,[37,1],[[30,0],"handleButtonKeyDown"],null]],[16,"tabindex",[29,[[30,0,["tabindex"]]]]],[24,4,"button"],[4,[38,1],[[30,0],"handleButtonClick"],null],[12],[1,"\\n"],[41,[30,0,["icon"]],[[[1,"\\t\\t"],[46,[30,0,["icon"]],null,null,null],[1,"\\n"]],[]],null],[1,"\\t"],[1,[52,[30,0,["selectedLabel"]],[30,0,["selectedLabel"]],[30,0,["placeholder"]]]],[1,"\\n"],[13],[1,"\\n"],[8,[39,4],null,[["@onClickOutside","@exceptSelector"],[[30,0,["closeOptions"]],[28,[37,5],["#",[30,0,["guid"]]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["isOpen"]],[[[1,"\\t\\t"],[10,"ol"],[15,0,[29,["dotmenu",[52,[30,0,["isOpen"]]," active",""]]]],[15,1,[30,0,["optionsListId"]]],[12],[1,"\\n\\t\\t"],[18,1,[[28,[37,7],null,[["xOption"],[[50,"go-select-multiple/go-option",0,null,[["selectedItems","on-select"],[[30,0,["value"]],[28,[37,1],[[30,0],"handleOptionSelection"],null]]]]]]]]],[1,"\\n\\t"],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n"]],["&default"],false,["go-input","action","if","component","click-outside","concat","yield","hash"]]',moduleName:"go-form-2/components/go-select-multiple/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select/component",["exports","jquery","@ember/component","@ember/object","@ember/runloop","go-form-2/components/go-select/template","go-form-2/mixins/invocable-action","@ember/object/internals"],(function(e,t,r,i,n,s,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(a.default,{layout:s.default,tagName:"",isOpen:!1,isDisabled:(0,i.computed)("disabled",(function(){return this.get("disabled")})),selectBtnUniqueID:(0,i.computed)((function(){return`${(0,o.guidFor)(this)}-select-menu`})),selectedLabel:null,selectedValue:null,didReceiveAttrs(){this.set("selectedValue",this.get("value"))},actions:{handleButtonFocus(e){this.invoke("on-focus-in",e)},handleButtonBlur(e){(0,n.later)((()=>{this.get("isDestroyed")||this.get("isDestroying")||(this.send("closeOptions"),this.invoke("on-focus-out",e))}),250)},handleButtonKeyDown(e){const r=38,i=40,n=27,s=13,a=e.which,o=(0,t.default)(e.target)
if(this.invoke("on-key-down",e),[r,i,n,s].indexOf(a)>=0&&e.preventDefault(),a!==n){if([i,r].indexOf(a)>=0){const e=o.siblings(".dotmenu").find("li:has(a.active)")
let t
a===i?(t=e.length?e.next():o.siblings(".dotmenu").find("li:eq(0)"),t.length||(t=e.siblings(":first"))):a===r&&(t=e.prev(),t.length||(t=e.siblings(":last"))),this.set("selectedValue",t.data("value"))
var l=t.parent("ol"),c=l.outerHeight(),u=t.outerHeight(),d=l.scrollTop(),h=t.position().top+d
d+c<h+u?l.scrollTop(h-c+u):h<d&&l.scrollTop(h)}[9,s].indexOf(a)>=0&&(this.send("handleOptionSelection",this.get("selectedValue")),this.send("closeOptions"))}else o.trigger("blur")},toggleOptions(){this.toggleProperty("isOpen")},closeOptions(){this.get("isDestroyed")||this.get("isDestroying")||(this.set("isOpen",!1),this.set("selectedValue",this.get("value")))},updateSelectedLabel(e,t){this.set("selectedLabel",t)},handleOptionSelection(e){this.set("selectedValue",e),this.invoke("on-select",e),this.send("toggleOptions")}}})}))
define("go-form-2/components/go-select/go-option/component",["exports","@ember/component","@ember/object","@ember/runloop","go-form-2/components/go-select/go-option/template","go-form-2/mixins/invocable-action","jquery"],(function(e,t,r,i,n,s,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(s.default,{layout:n.default,tagName:"li",value:null,isSelected:!1,className:(0,r.computed)("isSelected","disabled",(function(){return this.get("isSelected")?"active":this.get("disabled")?"inactive":void 0})),didReceiveAttrs(){const{selectedValue:e,value:t,label:r}=this.getProperties("selectedValue","value","label")
e===t?(this.set("isSelected",!0),(0,i.schedule)("afterRender",(()=>{this.invoke("on-selection-aware",t,r)}))):this.set("isSelected",!1)},didInsertElement(){(0,a.default)(this.element).data("value",this.get("value"))},actions:{handleSelect(){const{value:e,label:t}=this.getProperties("value","label")
return this.invoke("on-selection-aware",e,t),this.invoke("on-select",e)}}})})),define("go-form-2/components/go-select/go-option/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4epeyG5Z",block:'[[[11,3],[16,0,[29,[[30,0,["className"]]]]],[4,[38,0],[[30,0],"handleSelect"],null],[12],[1,"\\n"],[41,[28,[37,2],[[48,[30,1]],[30,0,["useBlock"]]],null],[[[1,"    "],[18,1,null],[1,"\\n"]],[]],[[[1,"    "],[1,[30,0,["label"]]],[1,"\\n"]],[]]],[13],[1,"\\n"]],["&default"],false,["action","if","and","has-block","yield"]]',moduleName:"go-form-2/components/go-select/go-option/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-select/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"j4iWsmHK",block:'[[[8,[39,0],null,[["@type","@hidden","@value"],["hidden",true,[30,0,["selectedValue"]]]],null],[1,"\\n"],[11,"button"],[24,0,"select"],[16,1,[29,[[30,0,["selectBtnUniqueID"]]]]],[16,"disabled",[30,0,["isDisabled"]]],[16,"onfocus",[28,[37,1],[[30,0],"handleButtonFocus"],null]],[16,"onblur",[28,[37,1],[[30,0],"handleButtonBlur"],null]],[16,"onkeydown",[28,[37,1],[[30,0],"handleButtonKeyDown"],null]],[16,"tabindex",[29,[[30,0,["tabindex"]]]]],[24,4,"button"],[4,[38,1],[[30,0],"toggleOptions"],null],[12],[1,"\\n"],[41,[30,0,["icon"]],[[[1,"        "],[46,[30,0,["icon"]],null,null,null],[1,"\\n"]],[]],null],[1,"    "],[1,[52,[30,0,["selectedLabel"]],[30,0,["selectedLabel"]],[30,0,["placeholder"]]]],[1,"\\n"],[41,[30,0,["loaderIcon"]],[[[1,"        "],[46,[30,0,["loaderIcon"]],null,null,null],[1,"\\n"]],[]],null],[13],[1,"\\n"],[8,[39,4],null,[["@onClickOutside","@exceptSelector"],[[30,0,["closeOptions"]],[28,[37,5],["#",[30,0,["selectBtnUniqueID"]]],null]]],[["default"],[[[[1,"\\n"],[10,"ol"],[15,0,[29,["dotmenu",[52,[30,0,["isOpen"]]," active"]," ",[30,1]]]],[12],[1,"\\n    "],[18,2,[[28,[37,7],null,[["xOption"],[[50,"go-select/go-option",0,null,[["disabled","selectedValue","on-select","on-selection-aware"],[[30,0,["disabled"]],[30,0,["selectedValue"]],[28,[37,1],[[30,0],"handleOptionSelection"],null],[28,[37,1],[[30,0],"updateSelectedLabel"],null]]]]]]]]],[1,"\\n"],[13],[1,"\\n"]],[]]]]],[1,"\\n"]],["@optionsClass","&default"],false,["go-input","action","if","component","click-outside","concat","yield","hash"]]',moduleName:"go-form-2/components/go-select/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-suggestion/component",["exports","@ember/component","go-form-2/components/go-suggestion/template","go-form-2/mixins/invocable-action","@ember/object","@ember/object/internals"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(i.default,{tagName:"",layout:r.default,currentValue:"",isFocused:!1,listClassName:(0,n.computed)("overrideListClassName",(function(){const e=this.get("overrideListClassName")
return e||"autosuggest active"})),inputId:(0,n.computed)((function(){return`go-suggestion-${(0,s.guidFor)(this)}`})),isInputEmpty:(0,n.computed)("currentValue",(function(){return""===this.get("currentValue")})),hasOptions:(0,n.computed)("options","options.[]",(function(){return this.get("options")&&this.get("options.length")})),isOpen:(0,n.computed)("isInputEmpty","hasOptions",(function(){return this.get("hasOptions")&&document.activeElement===document.getElementById(this.get("inputId"))})),isEmpty:(0,n.computed)("hasOptions","isInputEmpty",(function(){return!this.get("hasOptions")&&!this.get("isInputEmpty")})),actions:{handleOptionClick(e){this.get("onSelect")&&this.get("onSelect")(e),this.set("options",null),this.set("currentValue","")},handleChange(e){this.set("currentValue",e),this.get("onChange")&&this.get("onChange")(e)},handleKeyPress(e){13===e.which&&e.preventDefault()},handleEnterPress(e){e.preventDefault()},handleLoadMore(){const e=this.get("onFetch")
e&&e()}}})})),define("go-form-2/components/go-suggestion/go-option/component",["exports","@ember/component","@ember/runloop","go-form-2/components/go-suggestion/go-option/template","go-form-2/mixins/invocable-action","jquery"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{layout:i.default,tagName:"li",value:null,isSelected:!1,didReceiveAttrs(){const{selectedValue:e,value:t,label:i}=this.getProperties("selectedValue","value","label")
e===t?(this.set("isSelected",!0),(0,r.schedule)("afterRender",(()=>{this.invoke("on-selection-aware",t,i)}))):this.set("isSelected",!1)},didInsertElement(){(0,s.default)(this.element).data("value",this.get("value"))},actions:{handleSelect(){const{value:e,label:t}=this.getProperties("value","label")
return this.invoke("on-selection-aware",e,t),this.invoke("on-select",{label:t,value:e})}}})})),define("go-form-2/components/go-suggestion/go-option/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lZpajGck",block:'[[[11,3],[16,0,[29,[[52,[30,0,["isSelected"]],"active"]]]],[24,6,"#"],[4,[38,1],[[30,0],"handleSelect"],null],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["if","action","yield"]]',moduleName:"go-form-2/components/go-suggestion/go-option/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-suggestion/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"pmdVb2n1",block:'[[[41,[30,0,["icon"]],[[[1,"  "],[46,[30,0,["icon"]],null,null,null],[1,"\\n"]],[]],null],[8,[39,2],null,[["@id","@title","@name","@type","@value","@autocomplete","@placeholder","@on-change","@on-key-press","@on-enter-press"],[[30,0,["inputId"]],[30,0,["title"]],[30,0,["property"]],"search",[30,0,["currentValue"]],"off",[30,0,["placeholder"]],[28,[37,3],[[30,0],"handleChange"],null],[28,[37,3],[[30,0],"handleKeyPress"],null],[28,[37,3],[[30,0],"handleEnterPress"],null]]],null],[1,"\\n"],[41,[30,0,["isLoading"]],[[[1,"  "],[10,"ol"],[14,0,"autosuggest active"],[12],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[10,0],[14,0,"overlayloading active"],[12],[1,"\\n        "],[10,0],[14,0,"loading small"],[12],[1,"\\n          "],[10,0],[14,0,"insides"],[12],[1,"\\n            "],[10,0],[14,0,"left"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"center"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"right"],[12],[1,"\\n              "],[10,0],[14,0,"circle"],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isEmpty"]],[[[1,"    "],[10,"ol"],[14,0,"autosuggest active"],[12],[1,"\\n      "],[10,"li"],[12],[1,"\\n        "],[10,3],[14,6,"#"],[12],[1,"\\n          "],[10,1],[12],[1,[30,0,["emptyText"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isOpen"]],[[[1,"      "],[8,[39,4],null,[["@percent","@onLoadMore"],["90",[28,[37,3],[[30,0],"handleLoadMore"],null]]],[["default"],[[[[1,"\\n      "],[11,"ol"],[16,0,[30,0,["listClassName"]]],[4,[38,5],[[30,1,["setElement"]]],null],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["options"]]],null]],null],null,[[[1,"          "],[46,[30,0,["resultWrapper"]],null,[["data","onClick"],[[30,2],[28,[37,3],[[30,0],"handleOptionClick"],null]]],null],[1,"\\n"]],[2]],null],[41,[28,[37,8],[[30,0,["loadingText"]],[30,1,["isLoading"]]],null],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[10,3],[14,"data-test-selector","qa-item-options-btn"],[15,"title",[30,0,["loadingTitle"]]],[12],[1,"\\n                "],[10,1],[12],[1,[30,0,["loadingText"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "]],[1]]]]],[1,"\\n"]],[]],null]],[]]]],[]]]],["scroller","option"],false,["if","component","go-input","action","infinite-scroller","did-insert","each","-track-array","and"]]',moduleName:"go-form-2/components/go-suggestion/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-switch/component",["exports","@ember/object/computed","@ember/component","go-form-2/components/go-switch/template","go-form-2/mixins/invocable-action"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend(n.default,{layout:i.default,tagName:"",isOn:(0,t.reads)("is-on"),isDisabled:(0,t.reads)("disabled"),actions:{handleClick(e){const t=this.get("isOn")
this.invoke("on-change",!t,e)}}})})),define("go-form-2/components/go-switch/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"5P89vKB9",block:'[[[11,3],[16,0,[29,["switch",[52,[30,0,["isOn"]]," active"],[52,[30,0,["isDisabled"]]," inactive"]]]],[24,"title","Switch"],[4,[38,1],[[30,0],"handleClick"],null],[12],[1,"\\n\\t"],[10,1],[12],[1,[52,[30,0,["isOn"]],"On","Off"]],[13],[1,"\\n"],[13],[1,"\\n"]],[],false,["if","action"]]',moduleName:"go-form-2/components/go-switch/template.hbs",isStrictMode:!1})})),define("go-form-2/components/go-test",["exports","@ember/component","go-form-2/templates/components/go-test"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({layout:r.default})})),define("go-form-2/components/go-textarea/component",["exports","@ember/component","@ember/runloop","jquery"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({tagName:"textarea",attributeBindings:["value","placeholder","rows","cols","tabindex","maxlength","disabled","readonly","autofocus","autocomplete","hidden"],value:null,placeholder:null,rows:null,cols:null,tabindex:null,maxlength:null,autocomplete:null,disabled:!1,readonly:null,autofocus:!1,hidden:null,didInsertElement(){(0,i.default)(this.element).on("input",(e=>this.triggerCallback("change",e.target.value))).on("keyup",(e=>{const{which:t,target:{value:r}}=e
return 13===t?this.triggerCallback("enter-press",e,r):27===t?this.triggerCallback("escape-press",e,r):this.triggerCallback("key-up",e)})).on("keypress",(e=>this.triggerCallback("key-press",e))).on("keydown",(e=>this.triggerCallback("key-down",e))).on("focus",(e=>this.triggerCallback("focus-in",e))).on("blur",(e=>this.triggerCallback("focus-out",e))).on("click",(e=>this.triggerCallback("click",e)))},willDestroyElement(){(0,i.default)(this.element).off("input").off("keyup").off("keypress").off("keydown").off("focus").off("blur").off("click")},triggerCallback(e,...t){const i=this.get(`on-${e}`)
if(i)return(0,r.run)((()=>i(...t)))},actions:{handleEvent(e,...t){this.get(e)(...t)}}})})),define("go-form-2/components/go-textarea/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"mL56mgz5",block:"[[],[],false,[]]",moduleName:"go-form-2/components/go-textarea/template.hbs",isStrictMode:!1})})),define("go-form-2/components/wrapper-component/component",["exports","@ember/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({tagName:""})})),define("go-form-2/components/wrapper-component/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"beE6ONxB",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"go-form-2/components/wrapper-component/template.hbs",isStrictMode:!1})})),define("go-form-2/initializers/form",["exports","rsvp","validate.js","go-form-2/utils/form","go-form-2/utils/field","go-form-2/validators/email","go-form-2/validators/date","go-form-2/validators/length","go-form-2/validators/url"],(function(e,t,r,i,n,s,a,o,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=e.default=void 0
const c=function(){i.default.Promise=t.Promise,n.default.Promise=t.Promise,r.default.Promise=t.Promise,i.default.addCustomValidator("custom",(function(e,t){return t}))}
e.initialize=c
e.default={initialize:c}})),define("go-form-2/mixins/invocable-action",["exports","@ember/object/mixin"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({invoke(e,...t){const r=this.get(e)
if(r)return r(...t)}})})),define("go-form-2/templates/components/go-test",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"wOW8qyYi",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"go-form-2/templates/components/go-test.hbs",isStrictMode:!1})})),define("go-form-2/utils/field",["exports","lodash-es","validate.js","go-form-2/utils/pubsub"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=function({name:e,value:t,validator:r}){this.name=e,this.value=t,this.initialValue=t,this.validator=r,this.meta={},this.isValidating=!1,this.isValid=!1,this.isValidated=!1,this.errors=[],this.added=!1,this.pubsub=new i.default}
n.prototype.set=function(e){this.value=e},n.prototype.reset=function(){this.value=this.initialValue,this.trigger(`VALUE_RESET.${this.name}`,this.initialValue)},n.prototype.get=function(){return this.value},n.prototype.isDirty=function(){return this.value!==this.initialValue},n.prototype.setMeta=function(e,t){this.meta[e]=t},n.prototype.getMeta=function(e){return this.meta[e]},n.prototype.validate=function(e={}){return this.trigger("VALIDATION_START"),this.isValidating=!0,this.errors=[],new n.Promise(((i,n)=>{const s=(0,t.mapValues)(e,((e,t)=>t===this.name?this.validator:{}))
r.default.async(e,s,{fullMessages:!1}).then((()=>{this.isValid=!0,this.isValidating=!1,this.isValidated=!0,this.trigger("VALID",this.get()),this.trigger("VALIDATION_END"),i(this.get())})).catch((e=>{const t=e[this.name]
this.setErrors(t),this.trigger("VALIDATION_END"),n(t)}))}))},n.prototype.setErrors=function(e=[]){this.errors=e,this.isValid=!1,this.isValidating=!1,this.isValidated=!0,this.trigger("INVALID",this.errors,this.get())},n.prototype.on=function(e,t){return this.pubsub.subscribe(e,((e,r)=>{t(...r)}))},n.prototype.off=function(e){return this.pubsub.unsubscribe(e)},n.prototype.trigger=function(e,...t){return this.pubsub.publish(e,t)}
e.default=n})),define("go-form-2/utils/form",["exports","lodash-es","validate.js","go-form-2/utils/pubsub","go-form-2/utils/field"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=function(e){this.fields={},this.pubsub=new i.default,(0,t.forIn)(e,((e,t)=>{this.addField({name:t,value:e.value},e.validator)}))}
s.addCustomValidator=function(e,t){r.default.validators[e]=function(){return s.Promise.resolve(t(...arguments))}},s.prototype.set=function(e,t){return this.fields[e].set(t),this.fields[e].validated=!1,this.trigger("VALUE_CHANGE",e,t,this.getValues()),this.trigger(`VALUE_CHANGE.${e}`,t,this.getValues()),this},s.prototype.addField=function({name:e,value:r},i){if(!e)throw new Error("Invalid field name.")
if(void 0!==this.fields[e])throw new Error(`A field with name: "${e}" already exists in the form.`)
return this.fields[e]=new n.default({name:e,value:(0,t.clone)(r),validator:i}),this.fields[e].added=!0,this.fields[e].on(`VALUE_RESET.${e}`,(t=>{this.set(e,t)})),this.trigger("ADD_FIELD",e,i),this.trigger(`ADD_FIELD.${e}`,e,i),this.fields[e]},s.prototype.removeField=function(e){if(void 0===this.fields[e])throw new Error(`A field with name: "${e}" doesn't exists in the current form.`)
delete this.fields[e],this.trigger("REMOVE_FIELD",e),this.trigger(`REMOVE_FIELD.${e}`,e)},s.prototype.isDirty=function(){return Object.keys(this.fields).some((e=>this.fields[e].isDirty()))},s.prototype.reset=function(){this.trigger("FORM_RESET_INIT"),Object.keys(this.fields).forEach((e=>{this.fields[e].reset()})),this.trigger("FORM_RESET_END")},s.prototype.overrideInitialValues=function(e){Object.keys(this.fields).forEach((t=>{t in e&&(this.fields[t].initialValue=e[t])}))},s.prototype.get=function(e){return this.fields[e].get()},s.prototype.setMeta=function(e,t,r){this.fields[e].setMeta(t,r)},s.prototype.getMeta=function(e,t){return this.fields[e].getMeta(t)},s.prototype.getValues=function(){return(0,t.mapValues)(this.fields,(e=>e.get()))},s.prototype.validate=function(){var e=[]
return(0,t.forIn)(this.fields,((t,r)=>{e.push(this.validateSingle(r))})),this.trigger("VALIDATION_START"),new s.Promise(((t,r)=>{s.Promise.all(e).then((()=>{const e=this.getValues()
this.trigger("VALIDATION_END"),this.trigger("VALID",e),t(e)})).catch((()=>{const e=this.getErrors()
this.trigger("VALIDATION_END"),this.trigger("INVALID",e),r(e)}))}))},s.prototype.validateSingle=function(e){return this.trigger(`VALIDATION_START.${e}`,this.get(e)),this.fields[e].validate(this.getValues()).then((()=>(this.trigger(`VALIDATION_END.${e}`,this.get(e)),this.trigger(`VALID.${e}`,this.get(e)),[]))).catch((t=>(this.trigger(`VALIDATION_END.${e}`,this.get(e)),this.trigger(`INVALID.${e}`,t,this.get(e)),s.Promise.reject(t))))},s.prototype.getErrors=function(){return(0,t.omitBy)((0,t.mapValues)(this.fields,(e=>(0,t.isEmpty)(e.errors)?void 0:e.errors)),t.isUndefined)},s.prototype.setErrors=function(e={}){this.trigger("INVALID",e),(0,t.forEach)(e,((e,t)=>{const r=this.fields[t]
r&&(r.setErrors(e),this.trigger(`INVALID.${t}`,e,this.get(t)))})),this.trigger("INVALID",e)},s.prototype.on=function(e,t){return this.pubsub.subscribe(e,((e,r)=>{t(...r)}))},s.prototype.off=function(e){return this.pubsub.unsubscribe(e)},s.prototype.trigger=function(e,...t){return this.pubsub.publish(e,t)}
e.default=s})),define("go-form-2/utils/pubsub",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const t=function(){this.topics={},this.subUid=-1}
t.prototype.publish=function(e,t){let r,i
if(!this.topics[e])return!1
for(r=this.topics[e],i=r?r.length:0;i--;)r[i].func(e,t)
return!0},t.prototype.subscribe=function(e,t){let r
return this.topics[e]||(this.topics[e]=[]),this.subUid+=1,r=this.subUid.toString(),this.topics[e].push({token:r,func:t}),r},t.prototype.unsubscribe=function(e){let t,r,i
for(t in this.topics)if(this.topics[t])for(r=0,i=this.topics[t].length;r<i;r++)if(this.topics[t][r].token===e)return this.topics[t].splice(r,1),e
return!1}
e.default=t})),define("go-form-2/validators/date",["exports","go-form-2/utils/form","moment"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=function(e,t){return(0,r.default)(e,t,!0).isValid()}
t.default.addCustomValidator("date",(function(e,{format:t,message:n="invalid date",earliest:s=null,latest:a=null}){const o=i(e,t)
let l
return e?(o&&s&&!(0,r.default)(e,t,!0).isAfter(s.value)&&(l=s.message),o&&a&&!(0,r.default)(e,t,!0).isBefore(a.value)&&(l=a.message),o?l||null:n):null}))
e.default=i})),define("go-form-2/validators/email",["exports","go-form-2/utils/form","validate.js"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.default.validators.original_email=r.default.validators.email
const i=function(e){return!r.default.single(e,{original_email:!0})}
t.default.addCustomValidator("email",(function(e,{message:t="invalid email"}){const r=i(e)
return e?r?null:t:null}))
e.default=i})),define("go-form-2/validators/length",["exports","go-form-2/utils/form","validate.js"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.default.validators.original_length=r.default.validators.length
const i=function(e,t){return r.default.single(e,{original_length:t})}
t.default.addCustomValidator("length",(function(e,t){const r=i(e,t)
return e&&r||null}))
e.default=i})),define("go-form-2/validators/url",["exports","go-form-2/utils/form","validate.js"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.default.validators.original_url=r.default.validators.url
const i=function(e,t){return r.default.single(e,{original_url:t})}
t.default.addCustomValidator("url",(function(e,t){const r=i(e,t)
return e&&r||null}))
e.default=i})),define("go5-ember-core/authenticators/oauth2-2fa",["exports","go5-ember-core/authenticators/oauth2","rsvp","@ember/runloop","@ember/utils"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{authenticate(e,t,s,a,o={}){return new r.default.Promise(((r,l)=>{const c={grant_type:"password",hostname:t,"2fa_oob_code":e,username:s,password:a},u=this.serverTokenEndpoint
this.makeRequest(u,c,o).then((e=>{(0,i.run)((()=>{const{expires_in:t,refresh_token:i}=e,s=this._absolutizeExpirationTime(t)
this._scheduleAccessTokenRefresh(t,s,i),(0,n.isEmpty)(s)||(e={...e,expires_at:s}),r(e)}))}),(e=>{(0,i.run)(null,l,e)}))}))}}e.default=s})),define("go5-ember-core/authenticators/oauth2-sso",["exports","go5-ember-core/authenticators/oauth2","rsvp","@ember/runloop","@ember/utils"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{authenticate(e,t){return new r.default.Promise(((r,s)=>{const a={grant_type:"authorization_code",redirect_uri:t,code:e},o=this.serverTokenEndpoint
this.makeRequest(o,a).then((e=>{(0,i.run)((()=>{const{expires_in:t,refresh_token:i}=e,s=this._absolutizeExpirationTime(t)
this._scheduleAccessTokenRefresh(t,s,i),(0,n.isEmpty)(s)||(e={...e,expires_at:s}),r(e)}))}),(e=>{(0,i.run)(null,s,e)}))}))}}e.default=s})),define("go5-ember-core/authenticators/oauth2",["exports","ember-simple-auth/authenticators/oauth2-password-grant","@ember/service","@ember/application","rsvp","@ember/runloop"],(function(e,t,r,i,n,s){"use strict"
var a,o,l,c
function u(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=(0,r.inject)("session"),o=class extends t.default{get hostname(){return"development"===this.config.environment?this.config.oauth.host:window.location.hostname}get headers(){return{AppVersion:this.config.APP.version.split("+")[0],AppName:this.config.appName,AppType:this.config.appType}}get currentPlatformService(){return(0,i.getOwner)(this).lookup("service:current-platform")}makeRequest(e,t,r){let i={...t,client_id:this.clientId,client_secret:this.clientSecret,hostname:this.hostname},n={...r,...this.headers}
return super.makeRequest(e,i,n)}constructor(){super(...arguments),u(this,"masterTab",l,this),u(this,"sessionService",c,this),d(this,"refreshAccessTokens",!0),d(this,"config",(0,i.getOwner)(this).resolveRegistration("config:environment")),d(this,"serverTokenEndpoint",this.config.apiHostname+this.config.oauth.serverTokenEndpoint),d(this,"clientId",this.config.oauth.clientId),d(this,"clientSecret",this.config.oauth.clientSecret)
window.addEventListener("storage",(()=>{if("true"===window.localStorage.getItem("refreshTokenEmberSimpleAuth")&&!(window.isRefreshingToken||window.refreshToken&&refreshToken!==window.refreshToken)&&(this.masterTab.isMasterTab||!this.masterTab.initialized)){const e=this.sessionService.data.authenticated.expires_in,t=this.sessionService.data.authenticated.refresh_token
this._refreshAccessToken(e,t)}}))}_refreshAccessToken(e,t){if(console.log("attemp refresh, is master",this.masterTab.isMasterTab),!(window.isRefreshingToken||window.refreshToken&&t!==window.refreshToken)){const r=this.sessionService.store.key||this.sessionService.store.localStorageKey
window.isRefreshingToken=!0,window.refreshPromise=new n.default.Promise(((i,n)=>{if(console.log("isMasterTab",this.masterTab.isMasterTab),console.log("isMasterTabInitialized",this.masterTab.initialized),this.masterTab.isMasterTab||!this.masterTab.initialized){const r={grant_type:"refresh_token",refresh_token:t},a=this.serverTokenEndpoint
this.makeRequest(a,r).then((r=>{(0,s.run)((()=>{e=r.expires_in||e,t=r.refresh_token||t,window.refreshToken=t
const n=this._absolutizeExpirationTime(e),s={...r,expires_in:e,expires_at:n,refresh_token:t}
this._scheduleAccessTokenRefresh(e,null,t),this.trigger("sessionDataUpdated",s),window.localStorage.setItem("refreshTokenEmberSimpleAuth",!1),i(s)}))}),(e=>{e&&console.error(`Access token could not be refreshed - server responded with ${e.status}, ${e.statusText}.`,!1,{id:"ember-simple-auth.failedOAuth2TokenRefresh"}),n(e)}))}else{const e=t=>{if(t.key===r){const r=JSON.parse(t.newValue)
this.set("currentTime",t.newValue),this._scheduleAccessTokenRefresh(r.authenticated.expires_in,r.authenticated.expires_at,r.authenticated.refresh_token),window.localStorage.setItem("refreshTokenEmberSimpleAuth",!1),i(r.authenticated),window.removeEventListener("storage",e)}}
window.addEventListener("storage",e),window.localStorage.setItem("refreshTokenEmberSimpleAuth",!0)}})).catch((e=>{if(400===e.status){if("10108"===e?.responseJSON?.errors[0]?.code){let e=this.currentPlatformService?.instance?.logoutUrl
e&&(0,s.next)((()=>this.sessionService.invalidate().then((()=>{let t=encodeURIComponent(window.location.href)
window.location.href=`${e}?returnTo=${t}`}))))}this.sessionService.invalidate()}e&&console.error(`Access token could not be refreshed - server responded with ${e?.status}, ${e?.statusText}.`,!1,{id:"ember-simple-auth.failedOAuth2TokenRefresh"}),this.sessionService.invalidate(),reject(e)})).finally((()=>{window.localStorage.setItem("refreshTokenEmberSimpleAuth",!1),window.isRefreshingToken=!1}))}return window.refreshPromise}},l=h(o.prototype,"masterTab",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(o.prototype,"sessionService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)})),define("go5-ember-core/components/go-modal/component",["exports","@ember/component","@ember/object","go5-ember-core/components/go-modal/template"],(function(e,t,r,i){"use strict"
var n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let a=(n=class extends t.default{constructor(...e){super(...e),s(this,"tagName",""),s(this,"layout",i.default)}handleEsc(e,t){const r=this.get("onEsc")
r&&r(e,t)}},o=n.prototype,l="handleEsc",c=[r.action],u=Object.getOwnPropertyDescriptor(n.prototype,"handleEsc"),d=n.prototype,h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),void 0===h.initializer&&Object.defineProperty(o,l,h),n)
var o,l,c,u,d,h
e.default=a})),define("go5-ember-core/components/go-modal/components/x-footer/component",["exports","@ember/component","go5-ember-core/components/go-modal/components/x-footer/template"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"tagName","div"),i(this,"layout",r.default),i(this,"classNames",["footer"])}}e.default=n})),define("go5-ember-core/components/go-modal/components/x-footer/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"pxlQtQqm",block:'[[[18,1,null],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"go5-ember-core/components/go-modal/components/x-footer/template.hbs",isStrictMode:!1})}))
define("go5-ember-core/components/go-modal/components/x-header/component",["exports","@ember/component","go5-ember-core/components/go-modal/components/x-header/template"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"tagName","div"),i(this,"layout",r.default),i(this,"classNames",["header"])}}e.default=n})),define("go5-ember-core/components/go-modal/components/x-header/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"jgZNcs9/",block:'[[[41,[30,0,["title"]],[[[1,"  "],[10,"h2"],[15,"title",[29,[[30,0,["title"]]]]],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","yield"]]',moduleName:"go5-ember-core/components/go-modal/components/x-header/template.hbs",isStrictMode:!1})})),define("go5-ember-core/components/go-modal/components/x-inside/component",["exports","@ember/component","go5-ember-core/components/go-modal/components/x-inside/template"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"tagName",""),i(this,"layout",r.default)}}e.default=n})),define("go5-ember-core/components/go-modal/components/x-inside/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"laf8zsp5",block:'[[[10,0],[15,0,[29,["inside",[52,[30,0,["class"]],[28,[37,1],[" ",[30,0,["class"]]],null]]]]],[12],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["if","concat","yield"]]',moduleName:"go5-ember-core/components/go-modal/components/x-inside/template.hbs",isStrictMode:!1})})),define("go5-ember-core/components/go-modal/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4l+Qn2JT",block:'[[[11,0],[16,0,[29,["modal",[52,[30,0,["isActive"]]," active",""],[52,[30,0,["class"]],[28,[37,1],[" ",[30,0,["class"]]],null]]]]],[16,5,[30,0,["style"]]],[4,[38,2],[[28,[37,3],[[30,0],"handleEsc"],null]],null],[12],[1,"\\n  "],[18,1,[[28,[37,5],null,[["header","inside","footer"],[[50,"go-modal/components/x-header/component",0,null,[["tagName"],[[52,[30,0,["isForm"]],"fieldset","div"]]]],[50,"go-modal/components/x-inside/component",0,null,null],[50,"go-modal/components/x-footer/component",0,null,[["tagName"],[[52,[30,0,["isForm"]],"fieldset","div"]]]]]]]]],[1,"\\n"],[13],[1,"\\n"]],["&default"],false,["if","concat","esc-key-press","action","yield","hash","component"]]',moduleName:"go5-ember-core/components/go-modal/template.hbs",isStrictMode:!1})})),define("go5-ember-core/components/go-overlay/component",["exports","@ember/component","go5-ember-core/components/go-overlay/template","@ember/object"],(function(e,t,r,i){"use strict"
var n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let a=(n=class extends t.default{constructor(...e){super(...e),s(this,"tagName",""),s(this,"layout",r.default)}handleClick(e){const t=this.get("onClick")
t&&t(e)}},o=n.prototype,l="handleClick",c=[i.action],u=Object.getOwnPropertyDescriptor(n.prototype,"handleClick"),d=n.prototype,h={},Object.keys(u).forEach((function(e){h[e]=u[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=c.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),h),d&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(d):void 0,h.initializer=void 0),void 0===h.initializer&&Object.defineProperty(o,l,h),n)
var o,l,c,u,d,h
e.default=a})),define("go5-ember-core/components/go-overlay/template",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+randXMt",block:'[[[11,0],[16,0,[29,["overlay",[52,[30,0,["isActive"]]," active"],[52,[30,0,["class"]],[28,[37,1],[" ",[30,0,["class"]]],null]]]]],[4,[38,2],["click",[30,0,["handleClick"]]],null],[12],[13]],[],false,["if","concat","on"]]',moduleName:"go5-ember-core/components/go-overlay/template.hbs",isStrictMode:!1})})),define("go5-ember-core/components/go-preview-pdf/index",["exports","@ember/component","@ember/object","@glimmer/component","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,i,n,s){"use strict"
var a,o,l,c
function u(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,s.createTemplateFactory)({id:"V8GZky3i",block:'[[[10,0],[14,0,"pdfpreview"],[12],[1,"\\n  "],[10,0],[15,0,[29,["overlayloading old",[52,[30,0,["pageRendering"]]," active"]]]],[12],[1,"\\n    "],[10,0],[14,0,"loading old small"],[12],[1,"\\n      "],[10,0],[14,0,"insides"],[12],[1,"\\n        "],[10,0],[14,0,"left"],[12],[1,"\\n          "],[10,0],[14,0,"circle"],[12],[1,[30,1]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"center"],[12],[1,"\\n          "],[10,0],[14,0,"circle"],[12],[1,[30,1]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"right"],[12],[1,"\\n          "],[10,0],[14,0,"circle"],[12],[1,[30,1]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,"h2"],[14,0,"title"],[12],[18,10,null],[1,[30,0,["fileNameWithoutExtension"]]],[13],[1,"\\n  "],[10,"ol"],[14,0,"actions"],[12],[1,"\\n    "],[11,"button"],[24,0,"iconbutton m chevronleft"],[24,"data-test-selector","qa-button-first"],[16,"title",[30,2]],[24,4,"button"],[4,[38,2],["click",[30,0,["onPrevPage"]]],null],[12],[1,"\\n      "],[18,11,null],[1,"\\n      "],[1,[30,3]],[1,"\\n    "],[13],[1,"\\n    "],[11,"button"],[24,0,"iconbutton m chevronright"],[24,"data-test-selector","qa-button-first"],[16,"title",[30,4]],[24,4,"button"],[4,[38,2],["click",[30,0,["onNextPage"]]],null],[12],[1,"\\n      "],[18,12,null],[1,"\\n      "],[1,[30,5]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"band"],[12],[1,"\\n    "],[10,2],[12],[1,[30,0,["pageNum"]]],[1," / "],[1,[30,0,["pageCount"]]],[13],[1,"\\n    "],[11,"button"],[24,0,"iconbutton m maximize"],[24,"data-test-selector","qa-maximize-btn"],[16,"title",[30,6]],[24,4,"button"],[4,[38,2],["click",[30,0,["openNewWindow"]]],null],[12],[1,"\\n      "],[18,13,null],[1,"\\n      "],[1,[30,7]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n    "],[11,"canvas"],[16,"width",[30,8]],[16,"height",[30,9]],[4,[38,3],[[30,0,["initPreview"]]],null],[12],[13],[1,"\\n"],[13],[1,"\\n"]],["@loadingText","@previousTitle","@previousText","@nextTitle","@nextText","@fullScreenTitle","@fullScreenText","@previewMaxWidth","@previewMaxHeight","&header","&prevButton","&nextButton","&maxButton"],false,["if","yield","on","did-insert"]]',moduleName:"go5-ember-core/components/go-preview-pdf/index.hbs",isStrictMode:!1})
let f=e.default=(a=class extends i.default{constructor(){super(...arguments),d(this,"pdfDoc",null),u(this,"pageRendering",o,this),d(this,"pageNumPending",null),d(this,"scale",null),d(this,"canvas",null),d(this,"ctx",null),u(this,"pageNum",l,this),u(this,"pageCount",c,this),this.scale=this.args.scale||1}get fileNameWithoutExtension(){if(this.args.fileName){let e=this.args.fileName.lastIndexOf(".")
return e>-1?this.args.fileName.substr(0,e):this.args.fileName}return""}initPreview(e){const t=this.args.url
pdfjsLib.GlobalWorkerOptions.workerSrc="/pdf.worker.js",this.canvas=e,this.ctx=this.canvas.getContext("2d"),Object.defineProperty(Array.prototype,"_super",{enumerable:!1})
let r=pdfjsLib.getDocument(t).promise
window.pdfDocumentPromises?window.pdfDocumentPromises.push(r):window.pdfDocumentPromises=[r],r.then((e=>{this.pdfDoc=e,this.pageCount=this.pdfDoc.numPages,this.renderPage(this.pageNum),window.pdfDocumentPromises.pop(),0===window.pdfDocumentPromises.length&&Object.defineProperty(Array.prototype,"_super",{enumerable:!0})}))}renderPage(e){this.pageRendering=!0,this.pdfDoc.getPage(e).then((e=>{let t=1
t=e.getViewport({scale:1}).height>=e.getViewport({scale:1}).width?this.canvas.height/e.getViewport({scale:1}).height:this.canvas.width/e.getViewport({scale:1}).width
let r=e.getViewport({scale:t})
this.canvas.height=this.args.height||r.height,this.canvas.width=this.args.width||r.width
let i={canvasContext:this.ctx,viewport:r}
e.render(i).promise.then((()=>{this.pageRendering=!1,null!==this.pageNumPending&&(this.renderPage(this.pageNumPending),this.pageNumPending=null)}))}))}queueRenderPage(e){this.pageRendering?this.pageNumPending=e:this.renderPage(e)}onPrevPage(){this.pageNum<=1||(this.pageNum--,this.queueRenderPage(this.pageNum))}onNextPage(){this.pageNum>=this.pdfDoc.numPages||(this.pageNum++,this.queueRenderPage(this.pageNum))}openNewWindow(){this.args.onFullScreen?this.args.onFullScreen():window.open(this.args.url,"_blank")}},o=h(a.prototype,"pageRendering",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=h(a.prototype,"pageNum",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),c=h(a.prototype,"pageCount",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h(a.prototype,"initPreview",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"initPreview"),a.prototype),h(a.prototype,"onPrevPage",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"onPrevPage"),a.prototype),h(a.prototype,"onNextPage",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"onNextPage"),a.prototype),h(a.prototype,"openNewWindow",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"openNewWindow"),a.prototype),a);(0,t.setComponentTemplate)(p,f)})),define("go5-ember-core/helpers/date-decompose",["exports","@ember/component/helper","@ember/service","moment-timezone"],(function(e,t,r,i){"use strict"
var n,s,a,o
function l(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function c(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,r.inject)("current-user"),s=class extends t.default{constructor(...e){super(...e),l(this,"currentUserService",a,this),l(this,"intl",o,this)}get timezone(){return this.currentUserService.get("instance.preference.timezone")}get dayNames(){return[this.intl.t("intl.commons.days.sunday"),this.intl.t("intl.commons.days.monday"),this.intl.t("intl.commons.days.tuesday"),this.intl.t("intl.commons.days.wednesday"),this.intl.t("intl.commons.days.thursday"),this.intl.t("intl.commons.days.friday"),this.intl.t("intl.commons.days.saturday")]}get monthNames(){return[this.intl.t("intl.commons.month.january"),this.intl.t("intl.commons.month.february"),this.intl.t("intl.commons.month.march"),this.intl.t("intl.commons.month.april"),this.intl.t("intl.commons.month.may"),this.intl.t("intl.commons.month.june"),this.intl.t("intl.commons.month.july"),this.intl.t("intl.commons.month.august"),this.intl.t("intl.commons.month.september"),this.intl.t("intl.commons.month.october"),this.intl.t("intl.commons.month.november"),this.intl.t("intl.commons.month.december")]}compute([e],{timeFormat:t="h:mm A",timezone:r}={}){const n=r??this.timezone,s=n.split("/").slice(-2).join(", ").replace("_"," "),a=(0,i.default)(e).tz(n),o=Number(a.format("M")),l=Number(a.format("YYYY")),c=a.format("Z")
return{time:a.format(t),day:Number(a.format("D")),dayName:this.dayNames[Number(a.format("d"))],month:o,monthName:this.monthNames[o-1],year:l,timezone:s,timezoneFull:`${s} GMT ${c}`,offset:c}}},a=c(s.prototype,"currentUserService",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=c(s.prototype,"intl",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)})),define("go5-ember-core/models/app",["exports","ember-data/model","ember-data/attr","ember-data/relationships","go5-ember-core/models/factories/product"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,n.default)(t.default.extend({name:(0,r.default)("string"),position:(0,r.default)("number"),landing:(0,r.default)("boolean"),"landing-path":(0,r.default)("string"),installations:(0,i.hasMany)("go-installation",{polymorphic:!0,async:!1,inverse:null})}),"id")})),define("go5-ember-core/models/factories/product",["exports","@ember/object","@ember/object/computed"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i="driver"){return e.extend({installation:(0,t.computed)("installations",(function(){return this.installations.at(0)})),isInstalled:(0,r.gt)("installations.length",0),requiresPreprocessing:(0,t.computed)(i,(function(){switch(this.get(i)){case"bnf":case"tpr":return!1}return!0})),nameApp:(0,t.computed)(i,(function(){switch(this.get(i)){case"flx":return"goflex"
case"rec":case"rnc":return"gorecognitions"
case"tpr":return"score"
case"bnf":return"gobenefits"
case"goc":case"soc":return"goconnection"
case"rew":return"gorewards"
case"inc":return"goincentives"}return""})),icon:(0,t.computed)(i,(function(){switch(this.get(i)){case"goc":case"soc":return"goconnection"
case"flx":return"goflex"
case"rec":case"rnc":return"gorecognition"
case"tpr":return"goscore"
case"bnf":return"gobenefits"
case"rew":return"gorewards"
case"inc":return"goincentives"}return""})),textIcon:(0,t.computed)("icon",(function(){return this.icon+"text"}))})}})),define("go5-ember-core/models/feature",["exports","@ember-data/model"],(function(e,t){"use strict"
var r,i,n,s,a,o,l,c,u,d,h,p,f
function m(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function g(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,t.attr)("string"),i=(0,t.attr)("string"),n=(0,t.attr)("string"),s=(0,t.attr)("string"),a=(0,t.attr)("string"),o=(0,t.attr)("string"),l=class extends t.default{constructor(...e){super(...e),m(this,"key",c,this),m(this,"label",u,this),m(this,"labelI18n",d,this),m(this,"description",h,this),m(this,"descriptionI18n",p,this),m(this,"status",f,this)}get isEnabled(){return"enabled"===this.status}get isDisabled(){return"disabled"===this.status}get isRestricted(){return"restricted"===this.status}},c=g(l.prototype,"key",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=g(l.prototype,"label",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=g(l.prototype,"labelI18n",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=g(l.prototype,"description",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=g(l.prototype,"descriptionI18n",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=g(l.prototype,"status",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)})),define("go5-ember-core/models/go-installation",["exports","ember-data/model","ember-data/attr","ember-data/relationships"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({position:(0,r.default)("number"),status:(0,r.default)("string",{defaultValue:"disabled"}),access:(0,r.default)("boolean",{defaultValue:!0}),driver:(0,r.default)("string"),product:(0,i.belongsTo)("product",{async:!0,inverse:null})})})),define("go5-ember-core/models/go2-installation",["exports","go5-ember-core/models/go-installation","ember-data/attr"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({type:"go2-installation",go2Token:(0,r.default)("string"),logoutUrl:(0,r.default)("string"),"landing-access":(0,r.default)("boolean")})})),define("go5-ember-core/models/go5-installation",["exports","go5-ember-core/models/go-installation","@ember-data/model"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({type:"go5-installation",uriPath:(0,r.attr)("string"),mobileAndroidAppId:(0,r.attr)("string"),mobileIosAppId:(0,r.attr)("string"),mobileAppName:(0,r.attr)("string"),"landing-access":(0,r.attr)("boolean")})})),define("go5-ember-core/models/go5saml-installation",["exports","go5-ember-core/models/go-installation","@ember-data/model"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({type:"go5saml-installation",createdAt:(0,r.attr)("date"),updatedAt:(0,r.attr)("date"),status:(0,r.attr)("string"),link:(0,r.attr)("string"),name:(0,r.attr)("string"),description:(0,r.attr)("string"),entityId:(0,r.attr)("string"),acsUrl:(0,r.attr)("string"),nameidFormat:(0,r.attr)("string"),nameidAttribute:(0,r.attr)("string"),userAttributesMapping:(0,r.attr)("string"),go5authIdpPath:(0,r.attr)("string"),idpLoginPath:(0,r.attr)("string"),idpSsoPath:(0,r.attr)("string"),idpQueryParams:(0,r.attr)("string"),icon:(0,r.belongsTo)("file",{async:!1,inverse:null}),get idpQueryParamsJSON(){return this.idpQueryParams?JSON.parse(this.idpQueryParams):null}})})),define("go5-ember-core/models/product",["exports","@ember/object","@ember-data/model","ember-data/relationships","go5-ember-core/models/factories/product"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,n.default)(r.default.extend({driver:(0,r.attr)("string"),provider:(0,r.attr)("string"),name:(0,r.attr)("string"),summary:(0,r.attr)("string"),description:(0,r.attr)("string"),installations:(0,r.hasMany)("go-installation",{polymorphic:!0,async:!1,inverse:null}),subProduct:(0,i.belongsTo)("product",{async:!0,inverse:null}),position:(0,t.computed)("installations.@each.position",(function(){return this.installations&&this.installations.at(0)&&this.installations.at(0).get("position")}))}))})),define("go5-ember-core/models/visma-installation",["exports","go5-ember-core/models/go-installation","@ember-data/model"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({type:"visma-installation",provider:(0,r.attr)("string"),link:(0,r.attr)("string"),country:(0,r.attr)("string"),enabledForUser:(0,r.attr)("boolean"),createdAt:(0,r.attr)("date"),updatedAt:(0,r.attr)("date"),user:(0,r.attr)("string"),password:(0,r.attr)("string"),description:(0,r.attr)("string"),"landing-access":(0,r.attr)("boolean")})})),define("go5-ember-core/modifiers/autofocus",["exports","ember-modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.modifier)(((e,[t=!0])=>{t&&e.focus()}),{eager:!1})})),define("go5-ember-core/modifiers/drag-and-drop",["exports","ember-modifier","@ember/object","@ember/destroyable"],(function(e,t,r,i){"use strict"
var n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a((n=class extends t.default{constructor(...e){super(...e),s(this,"data",null),s(this,"options",{}),s(this,"element",null)}modify(e,t=[],r){this.data=t[0],this.options=r,e.draggable=!0,e.classList.add("draggable"),e.classList.add("deactivated"),e.addEventListener("drop",this.onDrop,!0),e.addEventListener("dragstart",this.onDragStart,!0),e.addEventListener("dragend",this.onDagEnd,!0),e.addEventListener("dragleave",this.onDragLeave,!0),e.addEventListener("dragover",this.onDragOver,!0),this.element=e,(0,i.registerDestructor)(this,(()=>{this.element.removeEventListener("drop",this.onDrop,!0),this.element.removeEventListener("dragstart",this.onDragStart,!0),this.element.removeEventListener("dragend",this.onDagEnd,!0),this.element.removeEventListener("dragleave",this.onDragLeave,!0),this.element.removeEventListener("dragover",this.onDragOver,!0)}))}onDrop(e){let t
e.preventDefault(),e.stopPropagation()
if(t=parseFloat(e.dataTransfer.getData("text"),10),this.element.classList.add("deactivated"),this.element.classList.remove("dragunder"),this.element.classList.remove("dragdrop"),this.data&&(isNaN(t)||t===this.data)||!this.data&&e.dataTransfer.items.length>0&&"file"!==e.dataTransfer.items[0].kind)return!1
!this.data&&e.dataTransfer.items.length&&(t=e.dataTransfer.files),this.options.onDrop&&this.options.onDrop(this.data,t)}onDragStart(e){e.stopPropagation(),this.element.classList.add("activated"),e.dataTransfer.setData("text",this.data.toString()),this.options.onDragStart&&this.options.onDragStart(e)}onDagEnd(e){this.element.classList.remove("activated"),this.options.onDragEnd&&this.options.onDragEnd(e)}onDragLeave(e){e.preventDefault(),this.element.classList.remove("dragunder"),this.element.classList.remove("dragdrop"),this.element.classList.add("deactivated")}onDragOver(e){e.preventDefault(),this.element.classList.remove("deactivated"),this.element.classList.add("dragunder"),this.element.classList.add("dragdrop")}}).prototype,"onDrop",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"onDrop"),n.prototype),a(n.prototype,"onDragStart",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"onDragStart"),n.prototype),a(n.prototype,"onDagEnd",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"onDagEnd"),n.prototype),a(n.prototype,"onDragLeave",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"onDragLeave"),n.prototype),a(n.prototype,"onDragOver",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"onDragOver"),n.prototype),n)})),define("go5-ember-core/modifiers/esc-key-press",["exports","ember-modifier","@ember/destroyable"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"handler",null)}modify(e,t=[]){const i=t[0]
i&&(this.handler=t=>{27===t.keyCode&&i(t,e)},document.addEventListener("keyup",this.handler),(0,r.registerDestructor)(this,(()=>{document.removeEventListener("keyup",this.handler)})))}}e.default=n})),define("go5-ember-core/modifiers/image-crop",["exports","ember-modifier","cropperjs","@ember/destroyable"],(function(e,t,r,i){"use strict"
function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{constructor(...e){super(...e),n(this,"cropInstance",null),n(this,"options",{})}modify(e,t=[]){t.forEach((e=>{"function"==typeof e?this.options.onCrop=e:this.options={...this.options,...e}})),this.options&&(this.options.maxHeight&&(e.height=this.options.maxHeight),this.options.maxWidth&&(e.width=this.options.maxWidth))
let n={...this.options,viewMode:1,zoomable:!1}
n.crop=e=>this.options.onCrop?this.options.onCrop(e):()=>{},n.cropmove=e=>{if(!this.options.cropBoxSize)return e
{const{minHeight:t,minWidth:r,maxHeight:i,maxWidth:n}=this.options.cropBoxSize,s=this.cropInstance,a=s.getData()
r&&a.width<r&&(e.preventDefault(),a.width=r,s.setData(a)),t&&a.height<t&&(e.preventDefault(),a.height=t,s.setData(a)),i&&a.height>i&&(e.preventDefault(),a.height=i,s.setData(a)),n&&a.width>n&&(e.preventDefault(),a.width=n,s.setData(a))}},this.cropInstance=new r.default(e,n),(0,i.registerDestructor)(this,(()=>{this.cropInstance.destroy(),this.cropInstance=null}))}}e.default=s})),define("go5-ember-core/modifiers/on-drop-file",["exports","ember-modifier","dropzone","@ember/destroyable"],(function(e,t,r,i){"use strict"
function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s="addedfile",a="addedfiles",o="drop",l="dragstart",c="dragend",u="dragenter",d="dragover",h="dragleave",p="INVALIDMIMETYPE"
class f extends t.default{constructor(...e){super(...e),n(this,"dpzone",null)}modify(e,t=[],{onAddedFiles:n,onDrop:f,onDragStart:m,onDragEnd:g,onDragEnter:b,onDragOver:y,onDragLeave:v}){const[w,x,_={}]=t
this.dpzone=new r.default(`#${e.id}`,{..._,url:"THIS VALUE IS HARDCODED FOR API USAGE LIMITATIONS",paramName:"file",acceptedFiles:_.mimetypes&&_.mimetypes.join(","),autoProcessQueue:!1,createImageThumbnails:!1,previewTemplate:"<span hidden>empty</span>",clickable:!!_.clickable&&`#${e.id}`,uploadMultiple:!1}),this.dpzone.on(s,(function(e){-1!==_.mimetypes.indexOf(e.type)?w(e):x(e,p)})),n&&this.dpzone.on(a,(e=>{n(e)})),f&&this.dpzone.on(o,(e=>{f(e)})),m&&this.dpzone.on(l,(e=>{m(e)})),g&&this.dpzone.on(c,(e=>{g(e)})),b&&this.dpzone.on(u,(e=>{b(e)})),y&&this.dpzone.on(d,(e=>{y(e)})),v&&this.dpzone.on(h,(e=>{v(e)})),(0,i.registerDestructor)(this,(()=>{this.dpzone.destroy(),this.dpzone=null}))}}e.default=f})),define("go5-ember-core/modifiers/scroll-top",["exports","ember-modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.modifier)(((e,[t])=>{let r=e
t&&(r=document.querySelector(t)),r.scrollTop=0}),{eager:!1})})),define("go5-ember-core/services/app-event",["exports","@ember/service","@ember/object/evented","@ember/runloop","@ember/object/observers","@ember/object"],(function(e,t,r,i,n,s){"use strict"
var a,o,l,c
function u(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let p=(a=(0,t.inject)("socket-io"),o=class extends t.default{constructor(...e){super(...e),u(this,"socketIOService",l,this),u(this,"session",c,this),d(this,"apiVersion",1),d(this,"transports",["websocket","polling"]),d(this,"reconnectionAttempts",1/0),d(this,"reconnectionDelay",1e3),d(this,"reconnectionDelayMax",6e5),d(this,"randomizationFactor",.5),d(this,"socketUrl",null),d(this,"socket",null),d(this,"subscriptions",[]),d(this,"isReconnecting",!1),d(this,"reconnectionAttemptCount",0)}initialize(e={}){const t="https:"===window.location.protocol?"wss:":"ws:"
this.socketUrl=`${t}//api-pusher.${e.domain}`,this.subscriptions=e.channels,e.version&&(this.apiVersion=e.version),this.connect(),(0,n.addObserver)(this,"session.data.authenticated.access_token",(()=>{const e=this.session.get("data.authenticated.access_token");(0,s.set)(this.socket,"socket.io.opts.query.token",e)}))}subscribe(e){this.subscriptions.push(e),this.socket.emit("subscribe",e)}unsubscribe(e){this.subscriptions.removeObject(e),this.socket.emit("unsubscribe",e)}handleMessage(e){e&&e.event&&(0,i.run)((()=>{this.trigger(e.event,e)}))}handleConnect(){this.reconnectionAttemptCount=0,this.subscriptions.forEach((e=>{this.subscribe(e)}))}getNextReconnectionDelay(){let e=this.reconnectionDelay*Math.pow(2,this.reconnectionAttemptCount)
const t=Math.random(),r=Math.floor(t*this.randomizationFactor*e)
return e=t<=.5?e-r:e+r,Math.min(e,this.reconnectionDelayMax)}reconnect(){if(this.reconnectionAttempt>=this.reconnectionAttempts)return
if(this.isReconnecting)return
this.isReconnecting=!0,this.closeConnection()
const e=this.getNextReconnectionDelay();(0,i.later)((()=>{this.isReconnecting=!1,this.reconnectionAttemptCount++,this.connect()}),e)}connect(){try{const e=this.createConnection()
this.socket=e,e.on("message",(e=>{this.handleMessage(e)})),e.on("connect",(()=>{this.handleConnect()})),e.on("disconnect",(()=>{this.reconnect()})),e.on("close",(()=>{this.reconnect()})),e.on("error",(()=>{this.reconnect()}))}catch(e){this.reconnect()}}createConnection(){const e=this.session.get("data.authenticated.access_token")
return this.socketIOService.socketFor(this.socketUrl,{transports:this.transports,query:{token:e,version:this.apiVersion},reconnection:!1})}closeConnection(){this.socketIOService.closeSocketFor(this.socketUrl),this.socket=null}},l=h(o.prototype,"socketIOService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(o.prototype,"session",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)
e.default=p.extend(r.default)})),define("go5-ember-core/services/app",["exports","@ember/object/computed","@ember/object","@ember/array","@ember/object/evented","@ember/service"],(function(e,t,r,i,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=s.default.extend(n.default,{storeService:(0,s.inject)("store"),appEventService:(0,s.inject)("core/app-event"),_calculateDropPosition(e,t,r,i="position"){const n=t>r,s=e.find((e=>e.get(i)===t)),a=e.indexOf(s),o=e.at(a+(n?1:-1))
let l
return l=o?(t+o.get(i))/2:n?t+.5:e.at(0).get(i)/2,l},apps:(0,i.A)(),isFetching:!1,sorted:(0,r.computed)("apps.@each.position",(function(){return this.apps.slice().sort(((e,t)=>e.position-t.position))})),landing:(0,t.filterBy)("sorted","landing"),login:(0,r.computed)("landing",(function(){return this.landing[0]})),async bootstrap(){await this.load(),this.registerListeners()},async load(){if(!this.isFetching){this.set("isFetching",!0)
try{this.set("apps",await this.storeService.query("app",{include:"installations,installations.icon",filter:{"with-spr":1}})),this.set("isFetching",!1)}catch(e){throw this.set("isFetching",!1),e}}},async setLoginApp(e){const t=this._calculateDropPosition(this.apps,e.get("position"),this.login.position,"position"),r=this.login
r.set("position",t),await r.save()},registerListeners(){const e=this.appEventService
e&&(e.on("installation.updated",this.load.bind(this)),e.on("program.updated",this.load.bind(this)))}})})),define("go5-ember-core/services/browser-detector",["exports","@ember/object/computed","@ember/service"],(function(e,t,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i="iExplorer10",n="iExplorer11",s="macChrome",a="macFirefox",o="linuxChrome",l="linuxFirefox",c="winChrome",u="winFirefox"
e.default=r.default.extend({browserName:null,isIE10:(0,t.equal)("browserName",i),isIE11:(0,t.equal)("browserName",n),isIE:(0,t.or)("isIE10","isIE11"),isMacChrome:(0,t.equal)("browserName",s),isMacFirefox:(0,t.equal)("browserName",a),isLinuxChrome:(0,t.equal)("browserName",o),isLinuxFirefox:(0,t.equal)("browserName",l),isWinChrome:(0,t.equal)("browserName",c),isWinFirefox:(0,t.equal)("browserName",u),_getBrowserData(e){let t=e.toLowerCase(),r=/(chrome)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i={browser:r[1]||"",version:r[2]||"0"},n={}
return i.browser&&(n[i.browser]=!0,n.version=i.version),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0),n},_getBrowser(){let e=this.__userAgent_test__||navigator.userAgent,t=this._getBrowserData(e)
return t.msie&&"10.0"===t.version?i:Boolean(e.match(/Trident\/7\./))&&"11.0"===t.version?n:e.indexOf("Mac")>0&&e.indexOf("Chrome")>0?s:e.indexOf("Mac")>0&&e.indexOf("Firefox")>0?a:e.indexOf("Mac")>0&&e.indexOf("Safari")>0?"macSafari":e.indexOf("Linux")>0&&e.indexOf("Chrome")>0?o:e.indexOf("Linux")>0&&e.indexOf("Firefox")>0?l:e.indexOf("Win")>0&&e.indexOf("Chrome")>0?c:e.indexOf("Win")>0&&e.indexOf("Firefox")>0?u:""},init(){this.set("browserName",this._getBrowser()),this._super(...arguments)}})})),define("go5-ember-core/services/browser-notification",["exports","@ember/service","rsvp"],(function(e,t,r){"use strict"
function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(...e){super(...e),i(this,"PERMISSIONS",{denied:"denied",granted:"granted",default:"default"})}get browserSupportsNotification(){return"Notification"in window}get hasPermission(){return Notification.permission===this.PERMISSIONS.granted}get canRequestPermission(){return Notification.permission!==this.PERMISSIONS.denied}createNotification(e={},t={}){const{title:r="",...i}=e,n=new Notification(r,i)
Object.entries(t).forEach((([e,t])=>{n.addEventListener(e,(function(e){t(e)}))}))}checkPromise(){try{Notification.requestPermission().then()}catch(e){return!1}return!0}handlePermission(e){"permission"in Notification||(Notification.permission=e)}askPermission(){return new r.Promise(((e,t)=>{this.browserSupportsNotification?this.checkPromise()?Notification.requestPermission().then((t=>{this.handlePermission(t),e(t)})):Notification.requestPermission((function(t){this.handlePermission(t),e(t)})):t()}))}notify(e={},t={}){this.browserSupportsNotification&&(this.hasPermission?this.createNotification(e,t):this.canRequestPermission&&this.askPermission().then((r=>{r===this.PERMISSIONS.granted&&this.createNotification(e,t)})))}}e.default=n})),define("go5-ember-core/services/domain",["exports","@ember/service"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({config:null,bootstrap(e){this.set("config",e)},getSubdomain(e){return("development"===this.config.environment?this.config.oauth.host:e).split(".").shift()},getCurrentHostname(){return"development"===this.config.environment?this.config.oauth.host:window.location.hostname}})})),define("go5-ember-core/services/feature",["exports","@ember/service","@glimmer/tracking","@ember/object"],(function(e,t,r,i){"use strict"
var n,s,a,o,l,c,u,d,h,p,f,m,g,b
function y(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r,i,n){var s={}
return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer?(Object.defineProperty(e,t,s),null):s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const x="soc-spaces",_="soc-widgets",S="bnf-discounts",k="rcn-programs",A="fnd-wallets",C="platform-surveys",P="soc-messages",O="platform-apps_shortcuts",E="platform-time_off"
e.default=(n=(0,t.inject)("core/app-event"),s=(0,i.computed)("features.@each.status"),a=(0,i.computed)("features.@each.status"),o=(0,i.computed)("features.@each.status"),l=(0,i.computed)("features.@each.status"),c=(0,i.computed)("features.@each.status"),u=(0,i.computed)("features.@each.status"),d=(0,i.computed)("features.@each.status"),h=(0,i.computed)("features.@each.status"),p=(0,i.computed)("features.@each.status"),f=class extends t.default{constructor(...e){super(...e),v(this,"modelName","feature"),y(this,"store",m,this),y(this,"appEventService",g,this),y(this,"features",b,this)}async bootstrap(){return this.appEventService.on("feature.updated",this,this.fetchFeatures),this.fetchFeatures()}async fetchFeatures(){const e=await this.store.findAll(this.modelName)
return this.features=e,e}findByKey(e){return this.features.find((t=>t.key===e))}get isSpacesEnabled(){const e=this.findByKey(x)
return e?.isEnabled}get isWidgetsEnabled(){const e=this.findByKey(_)
return e?.isEnabled}get isDiscountsEnabled(){const e=this.findByKey(S)
return e?.isEnabled}get isRecognitionProgramsEnabled(){const e=this.findByKey(k)
return e?.isEnabled}get isWalletsEnabled(){const e=this.findByKey(A)
return e?.isEnabled}get isPulseSurveysEnabled(){const e=this.findByKey(C)
return e?.isEnabled}get isMessagesEnabled(){const e=this.findByKey(P)
return e?.isEnabled}get isAppsShortcutsEnabled(){const e=this.findByKey(O)
return e?.isEnabled}get isLeavePoliciesEnabled(){const e=this.findByKey(E)
return e?.isEnabled}enableFeatureByKey(e){const t=this.findByKey(e)
return t?(t.status="enabled",t.save()):Promise.reject("Missing feature key")}disabledFeatureByKey(e){const t=this.findByKey(e)
return t?(t.status="disabled",t.save()):Promise.reject("Missing feature key")}},m=w(f.prototype,"store",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=w(f.prototype,"appEventService",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(f.prototype,"features",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w(f.prototype,"isSpacesEnabled",[s],Object.getOwnPropertyDescriptor(f.prototype,"isSpacesEnabled"),f.prototype),w(f.prototype,"isWidgetsEnabled",[a],Object.getOwnPropertyDescriptor(f.prototype,"isWidgetsEnabled"),f.prototype),w(f.prototype,"isDiscountsEnabled",[o],Object.getOwnPropertyDescriptor(f.prototype,"isDiscountsEnabled"),f.prototype),w(f.prototype,"isRecognitionProgramsEnabled",[l],Object.getOwnPropertyDescriptor(f.prototype,"isRecognitionProgramsEnabled"),f.prototype),w(f.prototype,"isWalletsEnabled",[c],Object.getOwnPropertyDescriptor(f.prototype,"isWalletsEnabled"),f.prototype),w(f.prototype,"isPulseSurveysEnabled",[u],Object.getOwnPropertyDescriptor(f.prototype,"isPulseSurveysEnabled"),f.prototype),w(f.prototype,"isMessagesEnabled",[d],Object.getOwnPropertyDescriptor(f.prototype,"isMessagesEnabled"),f.prototype),w(f.prototype,"isAppsShortcutsEnabled",[h],Object.getOwnPropertyDescriptor(f.prototype,"isAppsShortcutsEnabled"),f.prototype),w(f.prototype,"isLeavePoliciesEnabled",[p],Object.getOwnPropertyDescriptor(f.prototype,"isLeavePoliciesEnabled"),f.prototype),f)}))
define("go5-ember-core/services/intercom",["exports","@ember/service","@glimmer/tracking"],(function(e,t,r){"use strict"
var i,n
function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var r=e[Symbol.toPrimitive]
if(void 0!==r){var i=r.call(e,t||"default")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,a
super(...e),s(this,"user",{}),s(this,"appId",void 0),s(this,"hideDefaultLauncher",!0),t=this,r="isBooted",a=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(a):void 0}),s(this,"initialized",!1)}initialize(){window.intercomSettings={app_id:this.appId,hide_default_launcher:this.hideDefaultLauncher}
const e=this.appId;(function(){var t=window,r=t.Intercom
if("function"==typeof r)r("reattach_activator"),r("update",t.intercomSettings)
else{var i=document,n=function(){n.c(arguments)}
n.q=[],n.c=function(e){n.q.push(e)},t.Intercom=n
var s=function(){var t=i.createElement("script")
t.type="text/javascript",t.async=!0,t.src="https://widget.intercom.io/widget/"+e
var r=i.getElementsByTagName("script")[0]
r.parentNode.insertBefore(t,r)}
"complete"===document.readyState?s():t.attachEvent?t.attachEvent("onload",s):t.addEventListener("load",s,!1)}})(),this.initialized=!0}boot(){this.initialized||this.initialize(),window.Intercom("boot",{app_id:this.appId,...this.user}),this.isBooted=!0}trackEvent(){window.Intercom("trackEvent",...arguments)}shutdown(){this.initialized||this.initialize(),window.Intercom("shutdown")}},a=i.prototype,o="isBooted",l=[r.tracked],c={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},d={},Object.keys(c).forEach((function(e){d[e]=c[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),n=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,l,c,u,d})),define("go5-ember-core/services/platform-initilialize",["exports","@ember/service"],(function(e,t){"use strict"
var r,i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,t.inject)("store"),i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="store",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}async bootstrap(){const e={...window.go5_bootstrap_platform}
e&&this.store.pushPayload("platform",e)}getPlatformMeta(){const e=window.go5_bootstrap_platform
if(e)return e.meta}},s=i.prototype,a="store",o=[r],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("go5-ember-core/services/product",["exports","@ember/object/computed","@ember/object","@ember/array","@ember/service"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({storeService:(0,n.inject)("store"),appEventService:(0,n.inject)("core/app-event"),products:(0,i.A)(),sorted:(0,r.computed)("products.@each.position",(function(){return this.products.slice().sort(((e,t)=>e.position-t.position))})),enabled:(0,t.filter)("sorted",(function(e){return"enabled"===e.get("installation.status")})),installed:(0,t.filter)("sorted",(function(e){return e.get("isInstalled")})),async bootstrap(){await this.load(),this.registerListeners()},async load(){this.set("products",await this.storeService.query("product",{include:["installations"].join(","),filter:{"with-spr":1}}))},async install(e,t){var r,i=this.installed.lastObject,n=i?i.get("installation.position")+1:1
t?(r=this.storeService.createRecord("go2-installation")).setProperties({go2Token:t,position:n,product:e}):(r=this.storeService.createRecord("go5-installation")).setProperties({position:n,product:e})
try{await r.save()}catch(s){throw r.deleteRecord(),s}},async activate(e){const t=e.get("installation")
t.set("status","enabled"),await t.save()},async deactivate(e){const t=e.get("installation")
t.set("status","disabled"),await t.save()},async updatePosition(e,t){const r=e.get("installation")
r.set("position",t),await r.save()},registerListeners(){const e=this.appEventService
e&&e.on("installation.updated",this.load.bind(this))}})})),define("go5-ember-core/services/request-authenticator-prepare",["exports","@ember/service","@ember/utils"],(function(e,t,r){"use strict"
var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,r,i,s
super(...e),t=this,r="session",s=this,(i=n)&&Object.defineProperty(t,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}prepare(){let e=this.session.data.authenticated,t=e.expires_at,i=(new Date).getTime()
if(window.isRefreshingToken)return window.refreshPromise.then((()=>this.prepare()))
if(!(0,r.isEmpty)(t)&&t<i){const t=this.session.session,r=t.authenticator,i=t._lookupAuthenticator(r)
if(i)return i.restore(e)}return Promise.resolve()}},s=i.prototype,a="session",o=[t.inject],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=o.slice().reverse().reduce((function(e,t){return t(s,a,e)||e}),u),c&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),n=void 0===u.initializer?(Object.defineProperty(s,a,u),null):u,i)
var s,a,o,l,c,u})),define("go5-ember-core/services/tracking",["exports","@ember/object/computed","@ember/object","@ember/service"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({segmentService:(0,i.inject)("segment"),currentPlatformService:(0,i.inject)("current-platform"),currentUserService:(0,i.inject)("current-user"),session:(0,i.inject)(),enabled:!1,app:r.default.create({name:null,version:null}),user:(0,t.alias)("currentUserService.instance"),platform:(0,t.alias)("currentPlatformService.instance"),_setUserIdInAnalytics(){if(window.analytics&&window.analytics.user){window.analytics.user().id(this.get("user.id"))}},bootstrap(e,t,r=!0){this.set("app.name",e),this.set("app.version",t),this.set("enabled",r)},trackPage(e,t={},r={}){this.enabled&&(this._setUserIdInAnalytics(),r.context=this.app,this.segmentService.trackPageView(e,t,r))},trackEvent(e,t={},r={},i=null){this.enabled&&(this._setUserIdInAnalytics(),t.platform_id=this.get("platform.id"),t.platform_name=this.get("platform.name"),t.user_id=this.get("user.id"),r.context=this.app,this.segmentService.trackEvent(e,t,r,i))},identify(){let e=!0
this.enabled&&(("admin"!==this.get("user.role.key")||/\+|@gointegro/.test(this.get("user.email")))&&(e=!1),this._setUserIdInAnalytics(),this.segmentService.identifyUser(this.get("user.id"),{platform_id:this.get("platform.id"),platform_name:this.get("platform.name"),name:this.get("user.name")+" "+this.get("user.lastName"),role:this.get("user.role.name"),email:this.get("user.email"),company:{id:this.get("platform.id")},app_name:this.get("app.name"),app_version:this.get("app.version")},{context:this.app,integrations:{Intercom:!!e&&{user_hash:this.get("session.data.authenticated.user_intercom_keys.web")}}}))}})})),define("go5-ember-core/services/url",["exports","@ember/object","@ember/service","go5-ember-core/utils/url"],(function(e,t,r,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({url:null,params:(0,t.computed)("url.search",(function(){return t.default.create((0,i.parseUrlSearchParams)(this.url.search))})),init(){this._super(...arguments),this.set("url",(0,i.parseUrl)())}})})),define("go5-ember-core/services/version-checker",["exports","@ember/service","@ember/runloop","@ember/object/evented","fetch"],(function(e,t,r,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(i.default,{newVersionAvailable:!1,config:null,version:null,bootstrap(e){this.set("config",e),this.set("version",e.APP.version.split("+")[0])},checkVersion(e){const t=(new Date).getTime();(0,r.later)(this,(function(){(e||n.default)(this.config.rootURL+"version.json?t="+t).then((e=>e.json())).then((t=>{this.version===t.version||this.newVersionAvailable?this.checkVersion(e):(this.set("newVersionAvailable",!0),this.trigger("new-version-available"))})).catch((()=>{(0,r.bind)(this,this.checkVersion,e)}))}),this.config.APP.update_interval)}})})),define("go5-ember-core/transforms/json-string",["exports","@ember-data/serializer/transform"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({deserialize:e=>e?JSON.parse(e):null,serialize:e=>e?JSON.stringify(e):null})})),define("go5-ember-core/utils/url",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.parseUrl=function(e=window.location.href,t=!1){if("function"==typeof URL&&!t)return new URL(e)
const r=e.match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/)
return r&&{href:e,protocol:r[1],host:r[2],hostname:r[3],port:r[4],pathname:r[5],search:r[6],hash:r[7]}},e.parseUrlSearchParams=function(e,t=!1){if("function"==typeof URLSearchParams&&!t)return[...new URLSearchParams(e).entries()].reduce(((e,[t,r])=>(e[t]=r,e)),{})
"?"===e[0]&&(e=e.slice(1))
return e.split("&").map((e=>e.split("="))).reduce(((e,[t,r])=>(e[decodeURIComponent(t)]=decodeURIComponent(r),e)),{})}}))
