@tuongaz/seeflow 0.1.8 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7833,7 +7833,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7833
7833
|
`,...a.current()});return/^[\t ]/.test(l)&&(l=My(l.charCodeAt(0))+l.slice(1)),l=l?o+" "+l:o,n.options.closeAtx&&(l+=" "+o),c(),s(),l}f0e.peek=Zje;function f0e(e){return e.value||""}function Zje(){return"<"}p0e.peek=Xje;function p0e(e,t,n,r){const i=wZ(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),o(),l}function Xje(){return"!"}y0e.peek=Yje;function y0e(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!l||l!==d?c+=s.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Yje(){return"!"}g0e.peek=Jje;function g0e(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let c;if(o.atBreak)for(;c=s.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return i+r+i}function Jje(){return"`"}function m0e(e,t){const n=hZ(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}v0e.peek=Qje;function v0e(e,t,n,r){const i=wZ(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,c;if(m0e(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),s(),n.stack=u,d}s=n.enter("link"),c=n.enter("label");let l=o.move("[");return l+=o.move(n.containerPhrasing(e,{before:l,after:"](",...o.current()})),l+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(c=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(")"),s(),l}function Qje(e,t,n){return m0e(e,n)?"<":"["}k0e.peek=eTe;function k0e(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!l||l!==d?c+=s.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function eTe(){return"["}function bZ(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tTe(e){const t=bZ(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nTe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function x0e(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rTe(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?nTe(n):bZ(n);const s=e.ordered?o==="."?")":".":tTe(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),x0e(n)===o&&u){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;const l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function iTe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function aTe(e,t,n,r){const i=iTe(n);let a=n.bulletCurrent||bZ(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(d,f,h){return f?(h?"":" ".repeat(o))+d:(h?a:a+" ".repeat(o-a.length))+d}}function oTe(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const sTe=_q(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cTe(e,t,n,r){return(e.children.some(function(o){return sTe(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lTe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}w0e.peek=uTe;function w0e(e,t,n,r){const i=lTe(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=c.charCodeAt(0),u=pD(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=My(l)+c.slice(1));const d=c.charCodeAt(c.length-1),f=pD(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+My(d));const h=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+h}function uTe(e,t,n){return n.options.strong||"*"}function dTe(e,t,n,r){return n.safe(e.value,r)}function hTe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fTe(e,t,n){const r=(x0e(n)+(n.options.ruleSpaces?" ":"")).repeat(hTe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const b0e={blockquote:Dje,break:ite,code:Hje,definition:Uje,emphasis:h0e,hardBreak:ite,heading:Kje,html:f0e,image:p0e,imageReference:y0e,inlineCode:g0e,link:v0e,linkReference:k0e,list:rTe,listItem:aTe,paragraph:oTe,root:cTe,strong:w0e,text:dTe,thematicBreak:fTe};function pTe(){return{enter:{table:yTe,tableData:ate,tableHeader:ate,tableRow:mTe},exit:{codeText:vTe,table:gTe,tableData:TO,tableHeader:TO,tableRow:TO}}}function yTe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gTe(e){this.exit(e),this.data.inTable=void 0}function mTe(e){this.enter({type:"tableRow",children:[]},e)}function TO(e){this.exit(e)}function ate(e){this.enter({type:"tableCell",children:[]},e)}function vTe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,kTe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function kTe(e,t){return t==="|"?t:e}function xTe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
7834
7834
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(h,y,v,k){return l(u(h,v,k),h.align)}function s(h,y,v,k){const g=d(h,v,k),S=l([g]);return S.slice(0,S.indexOf(`
|
|
7835
7835
|
`))}function c(h,y,v,k){const g=v.enter("tableCell"),S=v.enter("phrasing"),w=v.containerPhrasing(h,{...k,before:a,after:a});return S(),g(),w}function l(h,y){return jje(h,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function u(h,y,v){const k=h.children;let g=-1;const S=[],w=y.enter("table");for(;++g<k.length;)S[g]=d(k[g],y,v);return w(),S}function d(h,y,v){const k=h.children;let g=-1;const S=[],w=y.enter("tableRow");for(;++g<k.length;)S[g]=c(k[g],h,y,v);return w(),S}function f(h,y,v){let k=b0e.inlineCode(h,y,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function wTe(){return{exit:{taskListCheckValueChecked:ote,taskListCheckValueUnchecked:ote,paragraph:MTe}}}function bTe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:STe}}}function ote(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function MTe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function STe(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let c=b0e.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(u){return u+o}}function CTe(){return[rje(),Sje(),Aje(),pTe(),wTe()]}function LTe(e){return{extensions:[ije(),Cje(e),_je(),xTe(e),bTe()]}}const ITe={tokenize:RTe,partial:!0},M0e={tokenize:jTe,partial:!0},S0e={tokenize:TTe,partial:!0},C0e={tokenize:DTe,partial:!0},ATe={tokenize:qTe,partial:!0},L0e={name:"wwwAutolink",tokenize:PTe,previous:A0e},I0e={name:"protocolAutolink",tokenize:NTe,previous:_0e},cc={name:"emailAutolink",tokenize:ETe,previous:E0e},Ms={};function _Te(){return{text:Ms}}let Rl=48;for(;Rl<123;)Ms[Rl]=cc,Rl++,Rl===58?Rl=65:Rl===91&&(Rl=97);Ms[43]=cc;Ms[45]=cc;Ms[46]=cc;Ms[95]=cc;Ms[72]=[cc,I0e];Ms[104]=[cc,I0e];Ms[87]=[cc,L0e];Ms[119]=[cc,L0e];function ETe(e,t,n){const r=this;let i,a;return o;function o(d){return!GW(d)||!E0e.call(r,r.previous)||MZ(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return GW(d)?(e.consume(d),s):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check(ATe,u,l)(d):d===45||d===95||Ni(d)?(a=!0,e.consume(d),c):u(d)}function l(d){return e.consume(d),i=!0,c}function u(d){return a&&i&&Wi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function PTe(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!A0e.call(r,r.previous)||MZ(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ITe,e.attempt(M0e,e.attempt(S0e,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function NTe(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&_0e.call(r,r.previous)&&!MZ(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Wi(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),a?l:(a=!0,c)):n(d)}function l(d){return d===null||dD(d)||Pn(d)||jh(d)||Lq(d)?n(d):e.attempt(M0e,e.attempt(S0e,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function RTe(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function jTe(e,t,n){let r,i,a;return o;function o(l){return l===46||l===95?e.check(C0e,c,s)(l):l===null||Pn(l)||jh(l)||l!==45&&Lq(l)?c(l):(a=!0,e.consume(l),o)}function s(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),o}function c(l){return i||r||!a?n(l):t(l)}}function TTe(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(C0e,t,a)(o):o===null||Pn(o)||jh(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function DTe(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Pn(s)||jh(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Pn(s)||jh(s)?t(s):r(s)}function a(s){return Wi(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Wi(s)?(e.consume(s),o):n(s)}}function qTe(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Ni(a)?n(a):t(a)}}function A0e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Pn(e)}function _0e(e){return!Wi(e)}function E0e(e){return!(e===47||GW(e))}function GW(e){return e===43||e===45||e===46||e===95||Ni(e)}function MZ(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const zTe={tokenize:WTe,partial:!0};function OTe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VTe,continuation:{tokenize:UTe},exit:$Te}},text:{91:{name:"gfmFootnoteCall",tokenize:HTe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FTe,resolveTo:BTe}}}}function FTe(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!o||!o._balanced)return n(c);const l=To(r.sliceSerialize({start:o.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function BTe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function HTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!o||d===null||d===91||Pn(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(To(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Pn(d)||(o=!0),a++,e.consume(d),d===92?u:l}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function VTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return c;function c(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(y)}function u(y){if(o>999||y===93&&!s||y===null||y===91||Pn(y))return n(y);if(y===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=To(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Pn(y)||(s=!0),o++,e.consume(y),y===92?d:u}function d(y){return y===91||y===92||y===93?(e.consume(y),o++,u):u(y)}function f(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(a)||i.push(a),ln(e,h,"gfmFootnoteDefinitionWhitespace")):n(y)}function h(y){return t(y)}}function UTe(e,t,n){return e.check(ag,t,e.attempt(zTe,t,n))}function $Te(e){e.exit("gfmFootnoteDefinition")}function WTe(e,t,n){const r=this;return ln(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function GTe(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let l=c;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[c][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[c][1].end)},d={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",u,s],["enter",o[l][1],s],["exit",o[l][1],s],["enter",d,s]],h=s.parser.constructs.insideSpan.null;h&&Fa(f,f.length,0,Iq(h,o.slice(l+1,c),s)),Fa(f,f.length,0,[["exit",d,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",u,s]]),Fa(o,l-1,c-l+3,f),c=l+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,s,c){const l=this.previous,u=this.events;let d=0;return f;function f(y){return l===126&&u[u.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),h(y))}function h(y){const v=Nf(l);if(y===126)return d>1?c(y):(o.consume(y),d++,h);if(d<2&&!n)return c(y);const k=o.exit("strikethroughSequenceTemporary"),g=Nf(y);return k._open=!g||g===2&&!!v,k._close=!v||v===2&&!!g,s(y)}}}class KTe{constructor(){this.map=[]}add(t,n,r){ZTe(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function ZTe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function XTe(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function YTe(){return{flow:{null:{name:"table",tokenize:JTe,resolveAll:QTe}}}}function JTe(e,t,n){const r=this;let i=0,a=0,o;return s;function s(D){let I=r.events.length-1;for(;I>-1;){const q=r.events[I][1].type;if(q==="lineEnding"||q==="linePrefix")I--;else break}const R=I>-1?r.events[I][1].type:null,U=R==="tableHead"||R==="tableRow"?A:c;return U===A&&r.parser.lazy[r.now().line]?n(D):U(D)}function c(D){return e.enter("tableHead"),e.enter("tableRow"),l(D)}function l(D){return D===124||(o=!0,a+=1),u(D)}function u(D){return D===null?n(D):Rt(D)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),h):n(D):Qt(D)?ln(e,u,"whitespace")(D):(a+=1,o&&(o=!1,i+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(D)))}function d(D){return D===null||D===124||Pn(D)?(e.exit("data"),u(D)):(e.consume(D),D===92?f:d)}function f(D){return D===92||D===124?(e.consume(D),d):d(D)}function h(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(D):(e.enter("tableDelimiterRow"),o=!1,Qt(D)?ln(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):y(D))}function y(D){return D===45||D===58?k(D):D===124?(o=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),v):_(D)}function v(D){return Qt(D)?ln(e,k,"whitespace")(D):k(D)}function k(D){return D===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),g):D===45?(a+=1,g(D)):D===null||Rt(D)?C(D):_(D)}function g(D){return D===45?(e.enter("tableDelimiterFiller"),S(D)):_(D)}function S(D){return D===45?(e.consume(D),S):D===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(D))}function w(D){return Qt(D)?ln(e,C,"whitespace")(D):C(D)}function C(D){return D===124?y(D):D===null||Rt(D)?!o||i!==a?_(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):_(D)}function _(D){return n(D)}function A(D){return e.enter("tableRow"),j(D)}function j(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),j):D===null||Rt(D)?(e.exit("tableRow"),t(D)):Qt(D)?ln(e,j,"whitespace")(D):(e.enter("data"),O(D))}function O(D){return D===null||D===124||Pn(D)?(e.exit("data"),j(D)):(e.consume(D),D===92?T:O)}function T(D){return D===92||D===124?(e.consume(D),O):O(D)}}function QTe(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d;const f=new KTe;for(;++n<e.length;){const h=e[n],y=h[1];h[0]==="enter"?y.type==="tableHead"?(s=!1,c!==0&&(ste(f,t,c,l,u),u=void 0,c=0),l={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},f.add(n,0,[["enter",l,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},f.add(n,0,[["enter",u,t]])),i=y.type==="tableDelimiterRow"?2:u?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=wm(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=wm(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):y.type==="tableHead"?(s=!0,c=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],d=wm(f,t,a,i,n,d)):o[1]!==0&&(d=wm(f,t,o,i,n,d)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&ste(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=XTe(t.events,n))}return e}function wm(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},M2(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=M2(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=M2(t.events,n[2]),u=M2(t.events,n[3]),d={type:s,start:Object.assign({},l),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,v=n[3]-n[2]-1;e.add(y,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},M2(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ste(e,t,n,r,i){const a=[],o=M2(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function M2(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const eDe={name:"tasklistCheck",tokenize:nDe};function tDe(){return{text:{91:eDe}}}function nDe(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return Pn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return Rt(c)?t(c):Qt(c)?e.check({tokenize:rDe},t,n)(c):n(c)}}function rDe(e,t,n){return ln(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function iDe(e){return Ffe([_Te(),OTe(),GTe(e),YTe(),tDe()])}const aDe={};function oDe(e){const t=this,n=e||aDe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(iDe(n)),a.push(CTe()),o.push(LTe(n))}function sDe({demoId:e,node:t,connector:n,onNameChange:r,onDescriptionChange:i,onDetailChange:a,statusReport:o,onClose:s}){const c=(t==null?void 0:t.type)==="shapeNode"&&t.data.shape==="text",l=(t==null?void 0:t.type)==="shapeNode"?t.data.shape:void 0,u=l==="ellipse"||l==="sticky",d=c?null:t,f=d!==null||n!==null,h=d&&"name"in d.data?d.data.name??"":"",y=(d==null?void 0:d.data.description)??"",v=(d==null?void 0:d.data.detail)??"",k=d!==null&&!u,[g,S]=M.useState(()=>h_e()),w=_=>{_.preventDefault(),p_e(g,_.clientX,{onWidth:S,onCommit:f_e})},C={"--detail-panel-w":`${g}px`};return x.jsx(l_e,{open:f,modal:!1,onOpenChange:_=>{_||s()},children:x.jsxs(Sfe,{side:"right",className:"overflow-y-auto sm:!w-[var(--detail-panel-w)] sm:!max-w-[var(--detail-panel-w)]",style:C,"data-testid":"detail-panel",onEscapeKeyDown:_=>{var j;const A=document.activeElement;(j=A==null?void 0:A.getAttribute("data-testid"))!=null&&j.endsWith("-editor")&&_.preventDefault()},onInteractOutside:_=>{var O;const A=document.activeElement;(O=A==null?void 0:A.getAttribute("data-testid"))!=null&&O.endsWith("-editor")&&A.blur();const j=_.target;j!=null&&j.closest(".react-flow__resize-control")&&_.preventDefault(),j!=null&&j.closest("[data-radix-popper-content-wrapper]")&&_.preventDefault(),j!=null&&j.closest('[data-testid="canvas-style-strip"]')&&_.preventDefault(),j!=null&&j.closest(".react-flow__node")&&_.preventDefault(),j!=null&&j.closest(".react-flow__edge")&&_.preventDefault()},children:[x.jsx("div",{"aria-label":"Resize detail panel",onPointerDown:w,"data-testid":"detail-panel-resize-handle",className:"absolute inset-y-0 left-0 z-10 hidden w-1.5 cursor-col-resize bg-transparent transition-colors hover:bg-border sm:block"}),d?x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("div",{className:"flex flex-col gap-1",children:[k?x.jsx(cT,{"data-testid":"detail-panel-title",children:x.jsx(DO,{nodeId:d.id,value:h,placeholder:"Name",multiline:!1,ariaLabel:"Name",testIdBase:"detail-panel-name",onSave:r,textClassName:"text-base font-semibold"})}):x.jsx(cT,{"data-testid":"detail-panel-title",className:"sr-only",children:d.id}),x.jsxs(NW,{className:"sr-only",children:[d.id," · ",d.type]})]}),x.jsxs("div",{className:"mt-0 flex flex-col gap-3",children:[o?x.jsx(dDe,{report:o}):null,x.jsx(DO,{nodeId:d.id,value:y,placeholder:"Short description shown on the node body",multiline:!0,ariaLabel:"Description",testIdBase:"detail-panel-description",onSave:i,textClassName:"font-medium text-muted-foreground"}),x.jsx(DO,{nodeId:d.id,value:v,placeholder:"Long-form notes, context, anything…",multiline:!0,ariaLabel:"Detail",testIdBase:"detail-panel-detail",onSave:a,markdown:!0}),d.type==="htmlNode"&&e?x.jsx(cDe,{projectId:e,htmlPath:d.data.htmlPath}):null]})]}):n?x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("div",{className:"flex flex-col gap-1",children:[x.jsx(cT,{"data-testid":"detail-panel-title",children:n.label??"Connector"}),x.jsxs(NW,{className:"sr-only",children:[n.id," · ",n.kind]})]}),x.jsx("div",{className:"mt-0 flex flex-col gap-3",children:x.jsx(hDe,{connector:n})})]}):null]})})}function DO({nodeId:e,value:t,placeholder:n,multiline:r,ariaLabel:i,testIdBase:a,onSave:o,textClassName:s,markdown:c=!1}){const[l,u]=M.useState(!1),d=M.useRef(null),f=M.useRef(!1);M.useEffect(()=>{if(!l)return;const _=d.current;if(!_)return;_.textContent=t,_.focus();const A=window.getSelection();if(A){const j=document.createRange();j.selectNodeContents(_),j.collapse(!1),A.removeAllRanges(),A.addRange(j)}},[l,t]);const h=t==="";if(!o)return x.jsx("div",{"data-testid":a,"aria-label":i,className:Ze("w-full rounded-md px-2 py-1.5 text-sm",h?"italic text-muted-foreground/50":"text-foreground",!c&&"whitespace-pre-wrap break-words",s),children:h?n:c?x.jsx(cte,{value:t}):t});const y=()=>{var A;const _=((A=d.current)==null?void 0:A.textContent)??t;o(e,_),u(!1)},v=()=>{u(!1)},k=_=>{if(_.stopPropagation(),_.nativeEvent.stopPropagation(),_.key==="Escape"){_.preventDefault(),f.current=!0,v();return}if(_.key==="Enter"){if(_.preventDefault(),_.shiftKey||!r){y();return}document.execCommand("insertText",!1,`
|
|
7836
|
-
`)}},g=_=>{_.preventDefault();const A=_.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},S=_=>{},w=()=>{if(f.current){f.current=!1;return}y()},C=()=>{l||u(!0)};return x.jsx("div",{className:"relative","data-testid":a,"data-editing":l?"true":"false",children:l?x.jsx("div",{ref:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,spellCheck:!1,tabIndex:0,onKeyDown:k,onPaste:g,onInput:S,onBlur:w,"data-testid":`${a}-editor`,className:Ze("block w-full whitespace-pre-wrap break-words rounded-md px-2 py-1.5 text-sm outline-none",s),role:"textbox","aria-multiline":r?"true":"false","aria-label":i}):x.jsx("button",{type:"button",onClick:C,"aria-label":`Edit ${i.toLowerCase()}`,className:Ze("block w-full cursor-text rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted/50",h?"italic text-muted-foreground/50":"text-foreground",!c&&"whitespace-pre-wrap break-words",s),children:h?n:c?x.jsx(cte,{value:t}):t})})}function cDe({projectId:e,htmlPath:t}){const[n,r]=M.useState({kind:"idle"}),i=async(o,s)=>{try{await navigator.clipboard.writeText(o),r({kind:"copied",message:s}),setTimeout(()=>r({kind:"idle"}),1200)}catch(c){r({kind:"error",message:c instanceof Error?c.message:"Clipboard write failed"})}},a=async o=>{r({kind:"pending"});try{const s=o==="open"?await K4e(e,t):await Z4e(e,t);if(s.ok){r({kind:"idle"});return}const c=o==="open"?"Copied path — paste into your editor":"Copied path to clipboard";await i(s.absPath,c)}catch(s){r({kind:"error",message:s instanceof Error?s.message:String(s)})}};return x.jsxs("div",{className:"flex flex-col gap-2 rounded-md border bg-card px-3 py-2 text-xs","data-testid":"detail-panel-html-node",children:[x.jsxs("div",{className:"flex flex-col gap-1",children:[x.jsx("span",{className:"font-medium tracking-wide text-[10px] text-muted-foreground",children:"Path"}),x.jsx("code",{"data-testid":"detail-panel-html-path",className:"block break-all rounded bg-muted/40 px-2 py-1 font-mono text-[11px]",children:t})]}),x.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x.jsxs(oi,{type:"button",size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2",onClick:()=>{a("open")},disabled:n.kind==="pending","data-testid":"detail-panel-html-open","aria-label":"Open in editor",children:[x.jsx(xp,{className:"h-3.5 w-3.5"}),"Open in editor"]}),x.jsxs(oi,{type:"button",size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2",onClick:()=>{a("reveal")},disabled:n.kind==="pending","data-testid":"detail-panel-html-reveal","aria-label":"Reveal in Finder/Explorer",children:[x.jsx(fp,{className:"h-3.5 w-3.5"}),"Reveal"]})]}),n.kind==="copied"||n.kind==="error"?x.jsx("div",{"data-testid":"detail-panel-html-status","data-status":n.kind,className:Ze("text-[11px]",n.kind==="copied"?"text-muted-foreground":"text-destructive"),children:n.message??""}):null]})}function lDe(e,t){const n=Math.max(0,t-e);if(n<1e3)return"just now";const r=Math.floor(n/1e3);if(r<60)return`${r}s ago`;const i=Math.floor(r/60);if(i<60)return`${i}m ago`;const a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function uDe(e){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function dDe({report:e,now:t=Date.now()}){const n=e.data?Object.entries(e.data):[];return x.jsxs("section",{className:"flex flex-col gap-2 rounded-md border bg-card px-3 py-2 text-xs","data-testid":"detail-panel-status","data-state":e.state,children:[x.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x.jsx(Khe,{state:e.state,summary:e.summary,"data-testid":"detail-panel-status-badge"}),x.jsx("span",{className:"shrink-0 text-[10px] text-muted-foreground","data-testid":"detail-panel-status-relative-time",children:`Last updated: ${lDe(e.ts,t)}`})]}),e.detail?x.jsx("div",{"data-testid":"detail-panel-status-detail",className:"whitespace-pre-wrap break-words rounded bg-muted/40 px-2 py-1 text-[11px] text-foreground",children:e.detail}):null,n.length>0?x.jsx("dl",{"data-testid":"detail-panel-status-data",className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[11px]",children:n.map(([r,i])=>x.jsxs("div",{className:"contents","data-testid":"detail-panel-status-data-row",children:[x.jsx("dt",{className:"truncate font-medium text-muted-foreground",children:r}),x.jsx("dd",{className:"break-all font-mono text-foreground",children:uDe(i)})]},r))}):null]})}function cte({value:e}){return x.jsx(GRe,{remarkPlugins:[oDe],components:{h1:({children:t})=>x.jsx("h1",{className:"mb-1 text-base font-bold leading-snug",children:t}),h2:({children:t})=>x.jsx("h2",{className:"mb-1 text-sm font-semibold leading-snug",children:t}),h3:({children:t})=>x.jsx("h3",{className:"mb-0.5 text-sm font-medium leading-snug",children:t}),p:({children:t})=>x.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>x.jsx("ul",{className:"mb-2 list-disc pl-4 last:mb-0",children:t}),ol:({children:t})=>x.jsx("ol",{className:"mb-2 list-decimal pl-4 last:mb-0",children:t}),li:({children:t})=>x.jsx("li",{className:"mb-0.5",children:t}),code:({children:t,className:n})=>(n==null?void 0:n.includes("language-"))?x.jsx("code",{className:"block overflow-x-auto rounded bg-muted/60 px-2 py-1 font-mono text-xs",children:t}):x.jsx("code",{className:"rounded bg-muted/60 px-1 py-0.5 font-mono text-xs",children:t}),pre:({children:t})=>x.jsx("pre",{className:"mb-2 last:mb-0",children:t}),blockquote:({children:t})=>x.jsx("blockquote",{className:"mb-2 border-l-2 border-muted-foreground/30 pl-3 italic text-muted-foreground last:mb-0",children:t}),a:({href:t,children:n})=>x.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"text-primary underline underline-offset-2",children:n}),strong:({children:t})=>x.jsx("strong",{className:"font-semibold",children:t}),em:({children:t})=>x.jsx("em",{className:"italic",children:t}),hr:()=>x.jsx("hr",{className:"my-2 border-border"}),table:({children:t})=>x.jsx("div",{className:"mb-2 overflow-x-auto last:mb-0",children:x.jsx("table",{className:"w-full border-collapse text-xs",children:t})}),th:({children:t})=>x.jsx("th",{className:"border border-border bg-muted/40 px-2 py-1 text-left font-medium",children:t}),td:({children:t})=>x.jsx("td",{className:"border border-border px-2 py-1",children:t})},children:e})}function hDe({connector:e}){return x.jsx("div",{className:"rounded-md border bg-card px-3 py-2 text-xs",children:x.jsxs("dl",{className:"divide-y",children:[x.jsx(Jo,{label:"Source",value:e.source}),x.jsx(Jo,{label:"Target",value:e.target}),x.jsx(Jo,{label:"Kind",value:e.kind}),e.label?x.jsx(Jo,{label:"Label",value:e.label}):null,e.style?x.jsx(Jo,{label:"Style",value:e.style}):null,e.color?x.jsx(Jo,{label:"Color",value:e.color}):null,e.direction?x.jsx(Jo,{label:"Direction",value:e.direction}):null,e.kind==="http"&&e.url?x.jsx(Jo,{label:"URL",value:`${e.method??"GET"} ${e.url}`}):null,e.kind==="event"?x.jsx(Jo,{label:"Event",value:e.eventName}):null,e.kind==="queue"?x.jsx(Jo,{label:"Queue",value:e.queueName}):null]})})}function Jo({label:e,value:t}){return x.jsxs("div",{className:"flex items-start gap-3 py-2 first:pt-0 last:pb-0",children:[x.jsx("dt",{className:"w-20 shrink-0 font-medium text-muted-foreground",children:e}),x.jsx("dd",{className:"flex-1 break-all font-mono",children:t})]})}var ji=Uint8Array,qa=Uint16Array,SZ=Int32Array,CZ=new ji([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),LZ=new ji([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),lte=new ji([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),P0e=function(e,t){for(var n=new qa(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new SZ(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},N0e=P0e(CZ,2),fDe=N0e.b,KW=N0e.r;fDe[28]=258,KW[258]=28;var pDe=P0e(LZ,0),ute=pDe.r,ZW=new qa(32768);for(var Kn=0;Kn<32768;++Kn){var _c=(Kn&43690)>>1|(Kn&21845)<<1;_c=(_c&52428)>>2|(_c&13107)<<2,_c=(_c&61680)>>4|(_c&3855)<<4,ZW[Kn]=((_c&65280)>>8|(_c&255)<<8)>>1}var Hp=function(e,t,n){for(var r=e.length,i=0,a=new qa(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new qa(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new qa(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[ZW[d]>>c]=l}else for(s=new qa(r),i=0;i<r;++i)e[i]&&(s[i]=ZW[o[e[i]-1]++]>>15-e[i]);return s},Th=new ji(288);for(var Kn=0;Kn<144;++Kn)Th[Kn]=8;for(var Kn=144;Kn<256;++Kn)Th[Kn]=9;for(var Kn=256;Kn<280;++Kn)Th[Kn]=7;for(var Kn=280;Kn<288;++Kn)Th[Kn]=8;var yD=new ji(32);for(var Kn=0;Kn<32;++Kn)yD[Kn]=5;var yDe=Hp(Th,9,0),gDe=Hp(yD,5,0),R0e=function(e){return(e+7)/8|0},j0e=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new ji(e.subarray(t,n))},mDe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pq=function(e,t,n){var r=new Error(t||mDe[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Pq),!n)throw r;return r},Os=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},T0=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},qO=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:D0e,l:0};if(i==1){var o=new ji(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(_,A){return _.f-A.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var h=new qa(f+1),y=XW(n[u-1],h,0);if(y>t){var r=0,v=0,k=y-t,g=1<<k;for(a.sort(function(A,j){return h[j.s]-h[A.s]||A.f-j.f});r<i;++r){var S=a[r].s;if(h[S]>t)v+=g-(1<<y-h[S]),h[S]=t;else break}for(v>>=k;v>0;){var w=a[r].s;h[w]<t?v-=1<<t-h[w]++-1:++r}for(;r>=0&&v;--r){var C=a[r].s;h[C]==t&&(--h[C],++v)}y=t}return{t:new ji(h),l:y}},XW=function(e,t,n){return e.s==-1?Math.max(XW(e.l,t,n+1),XW(e.r,t,n+1)):t[e.s]=n},dte=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new qa(++t),r=0,i=e[0],a=1,o=function(c){n[r++]=c},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},D0=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},T0e=function(e,t,n){var r=n.length,i=R0e(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},hte=function(e,t,n,r,i,a,o,s,c,l,u){Os(t,u++,n),++i[256];for(var d=qO(i,15),f=d.t,h=d.l,y=qO(a,15),v=y.t,k=y.l,g=dte(f),S=g.c,w=g.n,C=dte(v),_=C.c,A=C.n,j=new qa(19),O=0;O<S.length;++O)++j[S[O]&31];for(var O=0;O<_.length;++O)++j[_[O]&31];for(var T=qO(j,7),D=T.t,I=T.l,R=19;R>4&&!D[lte[R-1]];--R);var U=l+5<<3,q=D0(i,Th)+D0(a,yD)+o,K=D0(i,f)+D0(a,v)+o+14+3*R+D0(j,D)+2*j[16]+3*j[17]+7*j[18];if(c>=0&&U<=q&&U<=K)return T0e(t,u,e.subarray(c,c+l));var Z,$,B,V;if(Os(t,u,1+(K<q)),u+=2,K<q){Z=Hp(f,h,0),$=f,B=Hp(v,k,0),V=v;var F=Hp(D,I,0);Os(t,u,w-257),Os(t,u+5,A-1),Os(t,u+10,R-4),u+=14;for(var O=0;O<R;++O)Os(t,u+3*O,D[lte[O]]);u+=3*R;for(var ie=[S,_],N=0;N<2;++N)for(var P=ie[N],O=0;O<P.length;++O){var G=P[O]&31;Os(t,u,F[G]),u+=D[G],G>15&&(Os(t,u,P[O]>>5&127),u+=P[O]>>12)}}else Z=yDe,$=Th,B=gDe,V=yD;for(var O=0;O<s;++O){var J=r[O];if(J>255){var G=J>>18&31;T0(t,u,Z[G+257]),u+=$[G+257],G>7&&(Os(t,u,J>>23&31),u+=CZ[G]);var X=J&31;T0(t,u,B[X]),u+=V[X],X>3&&(T0(t,u,J>>5&8191),u+=LZ[X])}else T0(t,u,Z[J]),u+=$[J]}return T0(t,u,Z[256]),u+$[256]},vDe=new SZ([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D0e=new ji(0),kDe=function(e,t,n,r,i,a){var o=a.z||e.length,s=new ji(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=vDe[t-1],f=d>>13,h=d&8191,y=(1<<n)-1,v=a.p||new qa(32768),k=a.h||new qa(y+1),g=Math.ceil(n/3),S=2*g,w=function($e){return(e[$e]^e[$e+1]<<g^e[$e+2]<<S)&y},C=new SZ(25e3),_=new qa(288),A=new qa(32),j=0,O=0,T=a.i||0,D=0,I=a.w||0,R=0;T+2<o;++T){var U=w(T),q=T&32767,K=k[U];if(v[q]=K,k[U]=q,I<=T){var Z=o-T;if((j>7e3||D>24576)&&(Z>423||!l)){u=hte(e,c,0,C,_,A,O,D,R,T-R,u),D=j=O=0,R=T;for(var $=0;$<286;++$)_[$]=0;for(var $=0;$<30;++$)A[$]=0}var B=2,V=0,F=h,ie=q-K&32767;if(Z>2&&U==w(T-ie))for(var N=Math.min(f,Z)-1,P=Math.min(32767,T),G=Math.min(258,Z);ie<=P&&--F&&q!=K;){if(e[T+B]==e[T+B-ie]){for(var J=0;J<G&&e[T+J]==e[T+J-ie];++J);if(J>B){if(B=J,V=ie,J>N)break;for(var X=Math.min(ie,J-2),ae=0,$=0;$<X;++$){var re=T-ie+$&32767,fe=v[re],ke=re-fe&32767;ke>ae&&(ae=ke,K=re)}}}q=K,K=v[q],ie+=q-K&32767}if(V){C[D++]=268435456|KW[B]<<18|ute[V];var Ne=KW[B]&31,je=ute[V]&31;O+=CZ[Ne]+LZ[je],++_[257+Ne],++A[je],I=T+B,++j}else C[D++]=e[T],++_[e[T]]}}for(T=Math.max(T,I);T<o;++T)C[D++]=e[T],++_[e[T]];u=hte(e,c,l,C,_,A,O,D,R,T-R,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=k,a.p=v,a.i=T,a.w=I)}else{for(var T=a.w||0;T<o+l;T+=65535){var Re=T+65535;Re>=o&&(c[u/8|0]=l,Re=o),u=T0e(c,u+1,e.subarray(T,Re))}a.i=o}return j0e(s,0,r+R0e(u)+i)},xDe=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e}(),wDe=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=xDe[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},q0e=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},z0e=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new ji(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return kDe(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},O0e=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Xr=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},bDe=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=q0e();i.p(t.dictionary),Xr(e,2,i.d())}};function MDe(e,t){return z0e(e,t||{},0,0)}function YW(e,t){t||(t={});var n=q0e();n.p(e);var r=z0e(e,t,t.dictionary?6:2,4);return bDe(r,t),Xr(r,r.length-4,n.d()),r}var F0e=function(e,t,n,r){for(var i in e){var a=e[i],o=t+i,s=r;Array.isArray(a)&&(s=O0e(r,a[1]),a=a[0]),a instanceof ji?n[o]=[a,s]:(n[o+="/"]=[new ji(0),s],F0e(a,o,n,r))}},fte=typeof TextEncoder<"u"&&new TextEncoder,SDe=typeof TextDecoder<"u"&&new TextDecoder,CDe=0;try{SDe.decode(D0e,{stream:!0}),CDe=1}catch{}function JW(e,t){var n;if(fte)return fte.encode(e);for(var r=e.length,i=new ji(e.length+(e.length>>1)),a=0,o=function(l){i[a++]=l},n=0;n<r;++n){if(a+5>i.length){var s=new ji(a+8+(r-n<<1));s.set(i),i=s}var c=e.charCodeAt(n);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++n)&1023,o(240|c>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|c&63)):(o(224|c>>12),o(128|c>>6&63),o(128|c&63))}return j0e(i,0,a)}var QW=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Pq(9),t+=r+4}return t},pte=function(e,t,n,r,i,a,o,s){var c=r.length,l=n.extra,u=s&&s.length,d=QW(l);Xr(e,t,o!=null?33639248:67324752),t+=4,o!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(a<0&&8),e[t++]=i&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var f=new Date(n.mtime==null?Date.now():n.mtime),h=f.getFullYear()-1980;if((h<0||h>119)&&Pq(10),Xr(e,t,h<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,a!=-1&&(Xr(e,t,n.crc),Xr(e,t+4,a<0?-a-2:a),Xr(e,t+8,n.size)),Xr(e,t+12,c),Xr(e,t+14,d),t+=16,o!=null&&(Xr(e,t,u),Xr(e,t+6,n.attrs),Xr(e,t+10,o),t+=14),e.set(r,t),t+=c,d)for(var y in l){var v=l[y],k=v.length;Xr(e,t,+y),Xr(e,t+2,k),e.set(v,t+4),t+=4+k}return u&&(e.set(s,t),t+=u),t},LDe=function(e,t,n,r,i){Xr(e,t,101010256),Xr(e,t+8,n),Xr(e,t+10,n),Xr(e,t+12,r),Xr(e,t+16,i)};function IDe(e,t){t||(t={});var n={},r=[];F0e(e,"",n,t);var i=0,a=0;for(var o in n){var s=n[o],c=s[0],l=s[1],u=l.level==0?0:8,d=JW(o),f=d.length,h=l.comment,y=h&&JW(h),v=y&&y.length,k=QW(l.extra);f>65535&&Pq(11);var g=u?MDe(c,l):c,S=g.length,w=wDe();w.p(c),r.push(O0e(l,{size:c.length,crc:w.d(),c:g,f:d,m:y,u:f!=o.length||y&&h.length!=v,o:i,compression:u})),i+=30+f+k+S,a+=76+2*(f+k)+(v||0)+S}for(var C=new ji(a+22),_=i,A=a-i,j=0;j<r.length;++j){var d=r[j];pte(C,d.o,d,d.f,d.u,d.c.length);var O=30+d.f.length+QW(d.extra);C.set(d.c,d.o+O),pte(C,i,d,d.f,d.u,d.c.length,d.o,d.m),i+=16+O+(d.m?d.m.length:0)}return LDe(C,i,r.length,A,_),C}const ADe="https://seeflow.dev/api";async function _De(e,t,n,r,i){const a=await Hue(e);if(!a.demo)throw new Error("Demo has no data");const o=a.demo,s=new Set,c=[];for(const y of o.nodes)y.type==="imageNode"&&y.data.path&&!s.has(y.data.path)?(s.add(y.data.path),c.push(y.data.path)):y.type==="htmlNode"&&y.data.htmlPath&&!s.has(y.data.htmlPath)&&(s.add(y.data.htmlPath),c.push(y.data.htmlPath));const u={[r==="link"?"seeflow.private.json":"seeflow.json"]:JW(JSON.stringify(o))};if(i){const y=i.split(",")[1];y&&(u["preview.png"]=Uint8Array.from(atob(y),v=>v.charCodeAt(0)))}for(const y of c){const v=await fetch(`/api/projects/${encodeURIComponent(e)}/files/${y}`);v.ok&&(u[`files/${y}`]=new Uint8Array(await v.arrayBuffer()))}const d=IDe(u),f=await fetch(`${ADe}/flows?email=${encodeURIComponent(t)}&name=${encodeURIComponent(n)}`,{method:"POST",headers:{"content-type":"application/zip"},body:d.buffer});if(!f.ok)throw new Error(`Export failed with status ${f.status}`);const h=await f.json();if(typeof h.url!="string")throw new Error("Invalid response from cloud API: missing url");return{shareUrl:h.url}}function EDe(e){return M.useCallback((t,n,r,i)=>_De(e,t,n,r,i),[e])}const yte="seeflow.export.email",gte="seeflow.export.name",mte="seeflow.export.visibility";function PDe({open:e,onOpenChange:t,projectId:n,onCapturePreview:r}){const[i,a]=M.useState(""),[o,s]=M.useState(""),[c,l]=M.useState("public"),[u,d]=M.useState({kind:"idle"}),[f,h]=M.useState(!1),y=EDe(n);M.useEffect(()=>{e&&(a(localStorage.getItem(yte)??""),s(localStorage.getItem(gte)??""),l(localStorage.getItem(mte)??"public"),d({kind:"idle"}),h(!1))},[e]);const v=M.useCallback(async()=>{d({kind:"loading"});try{const w=await(r==null?void 0:r()),{shareUrl:C}=await y(i.trim(),o.trim(),c,w);localStorage.setItem(yte,i.trim()),localStorage.setItem(gte,o.trim()),localStorage.setItem(mte,c),d({kind:"done",shareUrl:C})}catch(w){d({kind:"error",message:w instanceof Error?w.message:String(w)})}},[y,i,o,c,r]),k=M.useCallback(()=>{u.kind==="done"&&navigator.clipboard.writeText(u.shareUrl).then(()=>{h(!0),setTimeout(()=>h(!1),2e3)})},[u]),g=u.kind==="loading",S=i.trim().length>0&&o.trim().length>0;return x.jsx(hK,{open:e,onOpenChange:t,children:x.jsxs(ZD,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:w=>{w.preventDefault();const C=document.querySelector('[data-testid="export-email-input"]');C==null||C.focus()},children:[x.jsxs(XD,{children:[x.jsx(YD,{children:"Export to seeflow.dev"}),x.jsx(JD,{children:"Upload this diagram to the cloud and get a shareable link."})]}),u.kind!=="done"?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Email"}),x.jsx("input",{type:"email",required:!0,autoComplete:"email",value:i,onChange:w=>a(w.target.value),disabled:g,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),x.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Name"}),x.jsx("input",{type:"text",required:!0,value:o,onChange:w=>s(w.target.value),disabled:g,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Visibility"}),x.jsxs("select",{value:c,onChange:w=>l(w.target.value),disabled:g,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[x.jsx("option",{value:"public",children:"Public — anyone can discover it"}),x.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),u.kind==="error"?x.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:u.message}):null]}),x.jsx(sy,{children:u.kind==="error"?x.jsxs(x.Fragment,{children:[x.jsx(oi,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),x.jsx(oi,{type:"button",onClick:()=>d({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):x.jsxs(x.Fragment,{children:[x.jsx(oi,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:g,"data-testid":"export-cancel",children:"Cancel"}),x.jsx(oi,{type:"button",onClick:v,disabled:g||!S,"data-testid":"export-submit",children:g?x.jsxs(x.Fragment,{children:[x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),x.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx("input",{type:"text",readOnly:!0,value:u.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-none"}),x.jsx(oi,{type:"button",variant:"outline",size:"icon",onClick:k,"aria-label":"Copy link","data-testid":"export-copy",children:f?x.jsx(Jc,{className:"h-4 w-4","aria-hidden":"true"}):x.jsx(Y2,{className:"h-4 w-4","aria-hidden":"true"})}),x.jsx(oi,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(u.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:x.jsx(dp,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),x.jsx(sy,{children:x.jsx(oi,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}function NDe({onRestartDemo:e}){const[t,n]=M.useState(!1),r=M.useCallback(()=>{t||(n(!0),Promise.resolve(e()).finally(()=>{n(!1)}))},[e,t]);return x.jsxs(Oy,{children:[x.jsx(Fy,{asChild:!0,children:x.jsx(oi,{"data-testid":"header-restart-demo",type:"button",variant:"ghost",size:"icon","aria-label":"Restart demo",title:"Restart demo",disabled:t,onClick:r,className:"h-8 w-8",children:t?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(Mp,{className:"h-4 w-4","aria-hidden":"true"})})}),x.jsx($f,{side:"bottom",children:"Restart demo"})]})}var Nq="DropdownMenu",[RDe]=xs(Nq,[bq]),Yi=bq(),[jDe,B0e]=RDe(Nq),H0e=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Yi(t),l=M.useRef(null),[u,d]=Of({prop:i,defaultProp:a??!1,onChange:o,caller:Nq});return x.jsx(jDe,{scope:t,triggerId:da(),triggerRef:l,contentId:da(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(f=>!f),[d]),modal:s,children:x.jsx(G2e,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};H0e.displayName=Nq;var V0e="DropdownMenuTrigger",U0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=B0e(V0e,n),o=Yi(n);return x.jsx(K2e,{asChild:!0,...o,children:x.jsx(Jt.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:ms(t,a.triggerRef),onPointerDown:St(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:St(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});U0e.displayName=V0e;var TDe="DropdownMenuPortal",$0e=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Yi(t);return x.jsx(Z2e,{...r,...n})};$0e.displayName=TDe;var W0e="DropdownMenuContent",G0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=B0e(W0e,n),a=Yi(n),o=M.useRef(!1);return x.jsx(X2e,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:St(e.onCloseAutoFocus,s=>{var c;o.current||(c=i.triggerRef.current)==null||c.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:St(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!i.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G0e.displayName=W0e;var DDe="DropdownMenuGroup",qDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(Y2e,{...i,...r,ref:t})});qDe.displayName=DDe;var zDe="DropdownMenuLabel",ODe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(J2e,{...i,...r,ref:t})});ODe.displayName=zDe;var FDe="DropdownMenuItem",K0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(Q2e,{...i,...r,ref:t})});K0e.displayName=FDe;var BDe="DropdownMenuCheckboxItem",HDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(efe,{...i,...r,ref:t})});HDe.displayName=BDe;var VDe="DropdownMenuRadioGroup",UDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(tfe,{...i,...r,ref:t})});UDe.displayName=VDe;var $De="DropdownMenuRadioItem",WDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(nfe,{...i,...r,ref:t})});WDe.displayName=$De;var GDe="DropdownMenuItemIndicator",KDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(rfe,{...i,...r,ref:t})});KDe.displayName=GDe;var ZDe="DropdownMenuSeparator",Z0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(ife,{...i,...r,ref:t})});Z0e.displayName=ZDe;var XDe="DropdownMenuArrow",YDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(afe,{...i,...r,ref:t})});YDe.displayName=XDe;var JDe="DropdownMenuSubTrigger",QDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(ofe,{...i,...r,ref:t})});QDe.displayName=JDe;var eqe="DropdownMenuSubContent",tqe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(sfe,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tqe.displayName=eqe;var nqe=H0e,rqe=U0e,iqe=$0e,X0e=G0e,Y0e=K0e,J0e=Z0e;const aqe=nqe,oqe=rqe,Q0e=M.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(iqe,{children:x.jsx(X0e,{ref:r,sideOffset:t,className:Ze("z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Q0e.displayName=X0e.displayName;const dT=M.forwardRef(({className:e,...t},n)=>x.jsx(Y0e,{ref:n,className:Ze("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50",e),...t}));dT.displayName=Y0e.displayName;const sqe=M.forwardRef(({className:e,...t},n)=>x.jsx(J0e,{ref:n,className:Ze("-mx-1 my-1 h-px bg-border",e),...t}));sqe.displayName=J0e.displayName;const vte="Share / download",cqe="Download PDF",lqe="Download PNG",uqe="Export to seeflow.dev";function dqe({onDownloadPdf:e,onDownloadPng:t,onExportToCloud:n}){const[r,i]=M.useState(!1),[a,o]=M.useState(!1),s=M.useCallback(()=>{!e||r||(i(!0),Promise.resolve(e()).finally(()=>i(!1)))},[e,r]),c=M.useCallback(()=>{!t||a||(o(!0),Promise.resolve(t()).finally(()=>o(!1)))},[t,a]);return!e&&!t&&!n?null:x.jsxs(aqe,{children:[x.jsx(oqe,{asChild:!0,children:x.jsx("button",{type:"button","data-testid":"share-menu-trigger","aria-label":vte,title:vte,className:Ze("inline-flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background/95 text-muted-foreground shadow-md backdrop-blur transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:x.jsx(Ip,{className:"h-4 w-4","aria-hidden":"true"})})}),x.jsxs(Q0e,{align:"end","data-testid":"share-menu-content",onCloseAutoFocus:l=>{l.preventDefault()},children:[e?x.jsxs(dT,{"data-testid":"share-menu-pdf",disabled:r,onSelect:l=>{l.preventDefault(),s()},children:[r?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(hp,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:cqe})]}):null,t?x.jsxs(dT,{"data-testid":"share-menu-png",disabled:a,onSelect:l=>{l.preventDefault(),c()},children:[a?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(pp,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:lqe})]}):null,n?x.jsxs(dT,{"data-testid":"share-menu-export-cloud",onSelect:()=>{n()},children:[x.jsx(Np,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:uqe})]}):null]})]})}const hqe=(e,t)=>{if(e.has(t))return e;const n=new Set(e);return n.add(t),n},fqe=(e,t)=>{if(t.length===0)return e;let n=!1;const r=new Set(e);for(const i of t)r.has(i)||(r.add(i),n=!0);return n?r:e},pqe=(e,t)=>{if(!e.has(t))return e;const n=new Set(e);return n.delete(t),n},yqe=(e,t)=>{if(t.length===0)return e;let n=!1;const r=new Set(e);for(const i of t)r.has(i)&&(r.delete(i),n=!0);return n?r:e},gqe=(e,t)=>{if(e.size===0)return e;const n=new Set(t.map(a=>a.id));let r=!1;const i=new Set(e);for(const a of i)n.has(a)||(i.delete(a),r=!0);return r?i:e},kte=()=>{const[e,t]=M.useState(()=>new Set),n=M.useCallback(c=>{t(l=>hqe(l,c))},[]),r=M.useCallback(c=>{t(l=>fqe(l,c))},[]),i=M.useCallback(c=>{t(l=>pqe(l,c))},[]),a=M.useCallback(c=>{t(l=>yqe(l,c))},[]),o=M.useCallback(c=>{t(l=>gqe(l,c))},[]),s=M.useCallback(()=>t(new Set),[]);return{ids:e,mark:n,markMany:r,unmark:i,unmarkMany:a,pruneAgainst:o,reset:s}},mqe=(e,t)=>e===t?!0:e==null||t==null||typeof e!=typeof t||typeof e!="object"?!1:JSON.stringify(e)===JSON.stringify(t),vqe=(e,t,n)=>({...e,[t]:{...e[t],...n}}),kqe=(e,t)=>{if(!(t in e))return e;const n={...e};return delete n[t],n},xqe=(e,t)=>{const n=Object.entries(e);if(n.length===0)return e;const r=new Map(t.map(o=>[o.id,o]));let i=!1;const a={...e};for(const[o,s]of n){const c=r.get(o);if(!c)continue;const l={};let u=!1;for(const d of Object.keys(s))mqe(s[d],c[d])?i=!0:(l[d]=s[d],u=!0);u?a[o]=l:(i=!0,delete a[o])}return i?a:e},xte=()=>{const[e,t]=M.useState({}),n=M.useCallback((o,s)=>{t(c=>vqe(c,o,s))},[]),r=M.useCallback(o=>{t(s=>kqe(s,o))},[]),i=M.useCallback(o=>{t(s=>xqe(s,o))},[]),a=M.useCallback(()=>t({}),[]);return{overrides:e,setOverride:n,dropOverride:r,pruneAgainst:i,reset:a}},wqe=500,bqe=500,Mqe={stack:[],cursor:0},Sqe=(e,t,n)=>{const r=Date.now(),i=wqe,a=bqe,{stack:o,cursor:s}=e;if(t.coalesceKey&&s>0){const u=o[s-1];if(u&&u.coalesceKey===t.coalesceKey&&r-u.capturedAt<=a){const d=o.slice(0,s);return d[s-1]={...u,do:t.do,capturedAt:r},{stack:d,cursor:s}}}const c=o.slice(0,s);c.push({...t,capturedAt:r});let l=s+1;for(;c.length>i;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},Cqe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},Lqe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iqe=()=>({stack:[],cursor:0}),Aqe=e=>{if(e.cursor===0)return e;const t=e.stack.slice();return t.splice(e.cursor-1,1),{stack:t,cursor:e.cursor-1}},_qe=(e,t)=>t.state,Eqe=()=>{const[e,t]=M.useReducer(_qe,Mqe),n=M.useRef(e);n.current=e;const r=M.useRef(Promise.resolve()),i=M.useRef(0),a=M.useCallback(h=>{h!==n.current&&(n.current=h,t({type:"replace",state:h}))},[]),o=M.useCallback(h=>{const y={do:h.do,undo:h.undo,coalesceKey:h.coalesceKey,capturedAt:h.capturedAt??Date.now()};a(Sqe(n.current,y))},[a]),s=M.useCallback(()=>{i.current=Date.now();const h=r.current.then(()=>{const y=Cqe(n.current);if(y.entry)return a(y.state),{entry:y.entry}});return r.current=h.then(()=>{},()=>{}),h},[a]),c=M.useCallback(()=>{i.current=Date.now();const h=r.current.then(()=>{const y=Lqe(n.current);if(y.entry)return a(y.state),{entry:y.entry}});return r.current=h.then(()=>{},()=>{}),h},[a]),l=M.useCallback(()=>{a(Iqe())},[a]),u=M.useCallback(()=>{a(Aqe(n.current))},[a]),d=M.useCallback(()=>{i.current=Date.now()},[]),f=M.useCallback(()=>i.current,[]);return{push:o,undo:s,redo:c,clear:l,dropTop:u,canUndo:e.cursor>0,canRedo:e.cursor<e.stack.length,markMutation:d,lastMutationAt:f}};function IZ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zO,wte;function Pqe(){if(wte)return zO;wte=1;function e(){this.__data__=[],this.size=0}return zO=e,zO}var OO,bte;function Jf(){if(bte)return OO;bte=1;function e(t,n){return t===n||t!==t&&n!==n}return OO=e,OO}var FO,Mte;function Rq(){if(Mte)return FO;Mte=1;var e=Jf();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return FO=t,FO}var BO,Ste;function Nqe(){if(Ste)return BO;Ste=1;var e=Rq(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return BO=r,BO}var HO,Cte;function Rqe(){if(Cte)return HO;Cte=1;var e=Rq();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return HO=t,HO}var VO,Lte;function jqe(){if(Lte)return VO;Lte=1;var e=Rq();function t(n){return e(this.__data__,n)>-1}return VO=t,VO}var UO,Ite;function Tqe(){if(Ite)return UO;Ite=1;var e=Rq();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return UO=t,UO}var $O,Ate;function jq(){if(Ate)return $O;Ate=1;var e=Pqe(),t=Nqe(),n=Rqe(),r=jqe(),i=Tqe();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,$O=a,$O}var WO,_te;function Dqe(){if(_te)return WO;_te=1;var e=jq();function t(){this.__data__=new e,this.size=0}return WO=t,WO}var GO,Ete;function qqe(){if(Ete)return GO;Ete=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return GO=e,GO}var KO,Pte;function zqe(){if(Pte)return KO;Pte=1;function e(t){return this.__data__.get(t)}return KO=e,KO}var ZO,Nte;function Oqe(){if(Nte)return ZO;Nte=1;function e(t){return this.__data__.has(t)}return ZO=e,ZO}var XO,Rte;function epe(){if(Rte)return XO;Rte=1;var e=typeof Fc=="object"&&Fc&&Fc.Object===Object&&Fc;return XO=e,XO}var YO,jte;function Bo(){if(jte)return YO;jte=1;var e=epe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return YO=n,YO}var JO,Tte;function Qf(){if(Tte)return JO;Tte=1;var e=Bo(),t=e.Symbol;return JO=t,JO}var QO,Dte;function Fqe(){if(Dte)return QO;Dte=1;var e=Qf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=n.call(o,i),c=o[i];try{o[i]=void 0;var l=!0}catch{}var u=r.call(o);return l&&(s?o[i]=c:delete o[i]),u}return QO=a,QO}var eF,qte;function Bqe(){if(qte)return eF;qte=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return eF=n,eF}var tF,zte;function Uh(){if(zte)return tF;zte=1;var e=Qf(),t=Fqe(),n=Bqe(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:a&&a in Object(s)?t(s):n(s)}return tF=o,tF}var nF,Ote;function uo(){if(Ote)return nF;Ote=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return nF=e,nF}var rF,Fte;function sg(){if(Fte)return rF;Fte=1;var e=Uh(),t=uo(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==r||c==i||c==n||c==a}return rF=o,rF}var iF,Bte;function Hqe(){if(Bte)return iF;Bte=1;var e=Bo(),t=e["__core-js_shared__"];return iF=t,iF}var aF,Hte;function Vqe(){if(Hte)return aF;Hte=1;var e=Hqe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return aF=n,aF}var oF,Vte;function tpe(){if(Vte)return oF;Vte=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return oF=n,oF}var sF,Ute;function Uqe(){if(Ute)return sF;Ute=1;var e=sg(),t=Vqe(),n=uo(),r=tpe(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=RegExp("^"+c.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||t(f))return!1;var h=e(f)?u:a;return h.test(r(f))}return sF=d,sF}var cF,$te;function $qe(){if($te)return cF;$te=1;function e(t,n){return t==null?void 0:t[n]}return cF=e,cF}var lF,Wte;function $h(){if(Wte)return lF;Wte=1;var e=Uqe(),t=$qe();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return lF=n,lF}var uF,Gte;function AZ(){if(Gte)return uF;Gte=1;var e=$h(),t=Bo(),n=e(t,"Map");return uF=n,uF}var dF,Kte;function Tq(){if(Kte)return dF;Kte=1;var e=$h(),t=e(Object,"create");return dF=t,dF}var hF,Zte;function Wqe(){if(Zte)return hF;Zte=1;var e=Tq();function t(){this.__data__=e?e(null):{},this.size=0}return hF=t,hF}var fF,Xte;function Gqe(){if(Xte)return fF;Xte=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return fF=e,fF}var pF,Yte;function Kqe(){if(Yte)return pF;Yte=1;var e=Tq(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return r.call(o,a)?o[a]:void 0}return pF=i,pF}var yF,Jte;function Zqe(){if(Jte)return yF;Jte=1;var e=Tq(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return yF=r,yF}var gF,Qte;function Xqe(){if(Qte)return gF;Qte=1;var e=Tq(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return gF=n,gF}var mF,ene;function Yqe(){if(ene)return mF;ene=1;var e=Wqe(),t=Gqe(),n=Kqe(),r=Zqe(),i=Xqe();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,mF=a,mF}var vF,tne;function Jqe(){if(tne)return vF;tne=1;var e=Yqe(),t=jq(),n=AZ();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return vF=r,vF}var kF,nne;function Qqe(){if(nne)return kF;nne=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return kF=e,kF}var xF,rne;function Dq(){if(rne)return xF;rne=1;var e=Qqe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return xF=t,xF}var wF,ine;function eze(){if(ine)return wF;ine=1;var e=Dq();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return wF=t,wF}var bF,ane;function tze(){if(ane)return bF;ane=1;var e=Dq();function t(n){return e(this,n).get(n)}return bF=t,bF}var MF,one;function nze(){if(one)return MF;one=1;var e=Dq();function t(n){return e(this,n).has(n)}return MF=t,MF}var SF,sne;function rze(){if(sne)return SF;sne=1;var e=Dq();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return SF=t,SF}var CF,cne;function _Z(){if(cne)return CF;cne=1;var e=Jqe(),t=eze(),n=tze(),r=nze(),i=rze();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,CF=a,CF}var LF,lne;function ize(){if(lne)return LF;lne=1;var e=jq(),t=AZ(),n=_Z(),r=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(a,o),this.size=s.size,this}return LF=i,LF}var IF,une;function qq(){if(une)return IF;une=1;var e=jq(),t=Dqe(),n=qqe(),r=zqe(),i=Oqe(),a=ize();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,IF=o,IF}var AF,dne;function EZ(){if(dne)return AF;dne=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return AF=e,AF}var _F,hne;function npe(){if(hne)return _F;hne=1;var e=$h(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return _F=t,_F}var EF,fne;function zq(){if(fne)return EF;fne=1;var e=npe();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return EF=t,EF}var PF,pne;function Oq(){if(pne)return PF;pne=1;var e=zq(),t=Jf(),n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s){var c=a[o];(!(r.call(a,o)&&t(c,s))||s===void 0&&!(o in a))&&e(a,o,s)}return PF=i,PF}var NF,yne;function cg(){if(yne)return NF;yne=1;var e=Oq(),t=zq();function n(r,i,a,o){var s=!a;a||(a={});for(var c=-1,l=i.length;++c<l;){var u=i[c],d=o?o(a[u],r[u],u,a,r):void 0;d===void 0&&(d=r[u]),s?t(a,u,d):e(a,u,d)}return a}return NF=n,NF}var RF,gne;function aze(){if(gne)return RF;gne=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return RF=e,RF}var jF,mne;function Ss(){if(mne)return jF;mne=1;function e(t){return t!=null&&typeof t=="object"}return jF=e,jF}var TF,vne;function oze(){if(vne)return TF;vne=1;var e=Uh(),t=Ss(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return TF=r,TF}var DF,kne;function lg(){if(kne)return DF;kne=1;var e=oze(),t=Ss(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return DF=a,DF}var qF,xne;function $r(){if(xne)return qF;xne=1;var e=Array.isArray;return qF=e,qF}var $0={exports:{}},zF,wne;function sze(){if(wne)return zF;wne=1;function e(){return!1}return zF=e,zF}$0.exports;var bne;function e0(){return bne||(bne=1,function(e,t){var n=Bo(),r=sze(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l}($0,$0.exports)),$0.exports}var OF,Mne;function Fq(){if(Mne)return OF;Mne=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return OF=n,OF}var FF,Sne;function PZ(){if(Sne)return FF;Sne=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return FF=t,FF}var BF,Cne;function cze(){if(Cne)return BF;Cne=1;var e=Uh(),t=PZ(),n=Ss(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",k="[object ArrayBuffer]",g="[object DataView]",S="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",j="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",I={};I[S]=I[w]=I[C]=I[_]=I[A]=I[j]=I[O]=I[T]=I[D]=!0,I[r]=I[i]=I[k]=I[a]=I[g]=I[o]=I[s]=I[c]=I[l]=I[u]=I[d]=I[f]=I[h]=I[y]=I[v]=!1;function R(U){return n(U)&&t(U.length)&&!!I[e(U)]}return BF=R,BF}var HF,Lne;function Bq(){if(Lne)return HF;Lne=1;function e(t){return function(n){return t(n)}}return HF=e,HF}var W0={exports:{}};W0.exports;var Ine;function NZ(){return Ine||(Ine=1,function(e,t){var n=epe(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(W0,W0.exports)),W0.exports}var VF,Ane;function ug(){if(Ane)return VF;Ane=1;var e=cze(),t=Bq(),n=NZ(),r=n&&n.isTypedArray,i=r?t(r):e;return VF=i,VF}var UF,_ne;function rpe(){if(_ne)return UF;_ne=1;var e=aze(),t=lg(),n=$r(),r=e0(),i=Fq(),a=ug(),o=Object.prototype,s=o.hasOwnProperty;function c(l,u){var d=n(l),f=!d&&t(l),h=!d&&!f&&r(l),y=!d&&!f&&!h&&a(l),v=d||f||h||y,k=v?e(l.length,String):[],g=k.length;for(var S in l)(u||s.call(l,S))&&!(v&&(S=="length"||h&&(S=="offset"||S=="parent")||y&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,g)))&&k.push(S);return k}return UF=c,UF}var $F,Ene;function Hq(){if(Ene)return $F;Ene=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return $F=t,$F}var WF,Pne;function ipe(){if(Pne)return WF;Pne=1;function e(t,n){return function(r){return t(n(r))}}return WF=e,WF}var GF,Nne;function lze(){if(Nne)return GF;Nne=1;var e=ipe(),t=e(Object.keys,Object);return GF=t,GF}var KF,Rne;function RZ(){if(Rne)return KF;Rne=1;var e=Hq(),t=lze(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return KF=i,KF}var ZF,jne;function lc(){if(jne)return ZF;jne=1;var e=sg(),t=PZ();function n(r){return r!=null&&t(r.length)&&!e(r)}return ZF=n,ZF}var XF,Tne;function gl(){if(Tne)return XF;Tne=1;var e=rpe(),t=RZ(),n=lc();function r(i){return n(i)?e(i):t(i)}return XF=r,XF}var YF,Dne;function uze(){if(Dne)return YF;Dne=1;var e=cg(),t=gl();function n(r,i){return r&&e(i,t(i),r)}return YF=n,YF}var JF,qne;function dze(){if(qne)return JF;qne=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return JF=e,JF}var QF,zne;function hze(){if(zne)return QF;zne=1;var e=uo(),t=Hq(),n=dze(),r=Object.prototype,i=r.hasOwnProperty;function a(o){if(!e(o))return n(o);var s=t(o),c=[];for(var l in o)l=="constructor"&&(s||!i.call(o,l))||c.push(l);return c}return QF=a,QF}var eB,One;function Wh(){if(One)return eB;One=1;var e=rpe(),t=hze(),n=lc();function r(i){return n(i)?e(i,!0):t(i)}return eB=r,eB}var tB,Fne;function fze(){if(Fne)return tB;Fne=1;var e=cg(),t=Wh();function n(r,i){return r&&e(i,t(i),r)}return tB=n,tB}var G0={exports:{}};G0.exports;var Bne;function ape(){return Bne||(Bne=1,function(e,t){var n=Bo(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c}(G0,G0.exports)),G0.exports}var nB,Hne;function ope(){if(Hne)return nB;Hne=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return nB=e,nB}var rB,Vne;function spe(){if(Vne)return rB;Vne=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var s=t[r];n(s,r,t)&&(o[a++]=s)}return o}return rB=e,rB}var iB,Une;function cpe(){if(Une)return iB;Une=1;function e(){return[]}return iB=e,iB}var aB,$ne;function jZ(){if($ne)return aB;$ne=1;var e=spe(),t=cpe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return r.call(o,s)}))}:t;return aB=a,aB}var oB,Wne;function pze(){if(Wne)return oB;Wne=1;var e=cg(),t=jZ();function n(r,i){return e(r,t(r),i)}return oB=n,oB}var sB,Gne;function TZ(){if(Gne)return sB;Gne=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return sB=e,sB}var cB,Kne;function Vq(){if(Kne)return cB;Kne=1;var e=ipe(),t=e(Object.getPrototypeOf,Object);return cB=t,cB}var lB,Zne;function lpe(){if(Zne)return lB;Zne=1;var e=TZ(),t=Vq(),n=jZ(),r=cpe(),i=Object.getOwnPropertySymbols,a=i?function(o){for(var s=[];o;)e(s,n(o)),o=t(o);return s}:r;return lB=a,lB}var uB,Xne;function yze(){if(Xne)return uB;Xne=1;var e=cg(),t=lpe();function n(r,i){return e(r,t(r),i)}return uB=n,uB}var dB,Yne;function upe(){if(Yne)return dB;Yne=1;var e=TZ(),t=$r();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return dB=n,dB}var hB,Jne;function dpe(){if(Jne)return hB;Jne=1;var e=upe(),t=jZ(),n=gl();function r(i){return e(i,n,t)}return hB=r,hB}var fB,Qne;function gze(){if(Qne)return fB;Qne=1;var e=upe(),t=lpe(),n=Wh();function r(i){return e(i,n,t)}return fB=r,fB}var pB,ere;function mze(){if(ere)return pB;ere=1;var e=$h(),t=Bo(),n=e(t,"DataView");return pB=n,pB}var yB,tre;function vze(){if(tre)return yB;tre=1;var e=$h(),t=Bo(),n=e(t,"Promise");return yB=n,yB}var gB,nre;function hpe(){if(nre)return gB;nre=1;var e=$h(),t=Bo(),n=e(t,"Set");return gB=n,gB}var mB,rre;function kze(){if(rre)return mB;rre=1;var e=$h(),t=Bo(),n=e(t,"WeakMap");return mB=n,mB}var vB,ire;function t0(){if(ire)return vB;ire=1;var e=mze(),t=AZ(),n=vze(),r=hpe(),i=kze(),a=Uh(),o=tpe(),s="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",h=o(e),y=o(t),v=o(n),k=o(r),g=o(i),S=a;return(e&&S(new e(new ArrayBuffer(1)))!=f||t&&S(new t)!=s||n&&S(n.resolve())!=l||r&&S(new r)!=u||i&&S(new i)!=d)&&(S=function(w){var C=a(w),_=C==c?w.constructor:void 0,A=_?o(_):"";if(A)switch(A){case h:return f;case y:return s;case v:return l;case k:return u;case g:return d}return C}),vB=S,vB}var kB,are;function xze(){if(are)return kB;are=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,a=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(a.index=r.index,a.input=r.input),a}return kB=n,kB}var xB,ore;function fpe(){if(ore)return xB;ore=1;var e=Bo(),t=e.Uint8Array;return xB=t,xB}var wB,sre;function DZ(){if(sre)return wB;sre=1;var e=fpe();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return wB=t,wB}var bB,cre;function wze(){if(cre)return bB;cre=1;var e=DZ();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return bB=t,bB}var MB,lre;function bze(){if(lre)return MB;lre=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return MB=t,MB}var SB,ure;function Mze(){if(ure)return SB;ure=1;var e=Qf(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return SB=r,SB}var CB,dre;function ppe(){if(dre)return CB;dre=1;var e=DZ();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return CB=t,CB}var LB,hre;function Sze(){if(hre)return LB;hre=1;var e=DZ(),t=wze(),n=bze(),r=Mze(),i=ppe(),a="[object Boolean]",o="[object Date]",s="[object Map]",c="[object Number]",l="[object RegExp]",u="[object Set]",d="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",y="[object DataView]",v="[object Float32Array]",k="[object Float64Array]",g="[object Int8Array]",S="[object Int16Array]",w="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",A="[object Uint16Array]",j="[object Uint32Array]";function O(T,D,I){var R=T.constructor;switch(D){case h:return e(T);case a:case o:return new R(+T);case y:return t(T,I);case v:case k:case g:case S:case w:case C:case _:case A:case j:return i(T,I);case s:return new R;case c:case d:return new R(T);case l:return n(T);case u:return new R;case f:return r(T)}}return LB=O,LB}var IB,fre;function ype(){if(fre)return IB;fre=1;var e=uo(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return IB=n,IB}var AB,pre;function gpe(){if(pre)return AB;pre=1;var e=ype(),t=Vq(),n=Hq();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return AB=r,AB}var _B,yre;function Cze(){if(yre)return _B;yre=1;var e=t0(),t=Ss(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return _B=r,_B}var EB,gre;function Lze(){if(gre)return EB;gre=1;var e=Cze(),t=Bq(),n=NZ(),r=n&&n.isMap,i=r?t(r):e;return EB=i,EB}var PB,mre;function Ize(){if(mre)return PB;mre=1;var e=t0(),t=Ss(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return PB=r,PB}var NB,vre;function Aze(){if(vre)return NB;vre=1;var e=Ize(),t=Bq(),n=NZ(),r=n&&n.isSet,i=r?t(r):e;return NB=i,NB}var RB,kre;function mpe(){if(kre)return RB;kre=1;var e=qq(),t=EZ(),n=Oq(),r=uze(),i=fze(),a=ape(),o=ope(),s=pze(),c=yze(),l=dpe(),u=gze(),d=t0(),f=xze(),h=Sze(),y=gpe(),v=$r(),k=e0(),g=Lze(),S=uo(),w=Aze(),C=gl(),_=Wh(),A=1,j=2,O=4,T="[object Arguments]",D="[object Array]",I="[object Boolean]",R="[object Date]",U="[object Error]",q="[object Function]",K="[object GeneratorFunction]",Z="[object Map]",$="[object Number]",B="[object Object]",V="[object RegExp]",F="[object Set]",ie="[object String]",N="[object Symbol]",P="[object WeakMap]",G="[object ArrayBuffer]",J="[object DataView]",X="[object Float32Array]",ae="[object Float64Array]",re="[object Int8Array]",fe="[object Int16Array]",ke="[object Int32Array]",Ne="[object Uint8Array]",je="[object Uint8ClampedArray]",Re="[object Uint16Array]",$e="[object Uint32Array]",ee={};ee[T]=ee[D]=ee[G]=ee[J]=ee[I]=ee[R]=ee[X]=ee[ae]=ee[re]=ee[fe]=ee[ke]=ee[Z]=ee[$]=ee[B]=ee[V]=ee[F]=ee[ie]=ee[N]=ee[Ne]=ee[je]=ee[Re]=ee[$e]=!0,ee[U]=ee[q]=ee[P]=!1;function qe(Ke,_e,Se,ot,Qe,Pe){var Ie,ye=_e&A,wt=_e&j,Me=_e&O;if(Se&&(Ie=Qe?Se(Ke,ot,Qe,Pe):Se(Ke)),Ie!==void 0)return Ie;if(!S(Ke))return Ke;var Ce=v(Ke);if(Ce){if(Ie=f(Ke),!ye)return o(Ke,Ie)}else{var De=d(Ke),Ve=De==q||De==K;if(k(Ke))return a(Ke,ye);if(De==B||De==T||Ve&&!Qe){if(Ie=wt||Ve?{}:y(Ke),!ye)return wt?c(Ke,i(Ie,Ke)):s(Ke,r(Ie,Ke))}else{if(!ee[De])return Qe?Ke:{};Ie=h(Ke,De,ye)}}Pe||(Pe=new e);var nt=Pe.get(Ke);if(nt)return nt;Pe.set(Ke,Ie),w(Ke)?Ke.forEach(function(it){Ie.add(qe(it,_e,Se,it,Ke,Pe))}):g(Ke)&&Ke.forEach(function(it,at){Ie.set(at,qe(it,_e,Se,at,Ke,Pe))});var rt=Me?wt?u:l:wt?_:C,Pt=Ce?void 0:rt(Ke);return t(Pt||Ke,function(it,at){Pt&&(at=it,it=Ke[at]),n(Ie,at,qe(it,_e,Se,at,Ke,Pe))}),Ie}return RB=qe,RB}var jB,xre;function _ze(){if(xre)return jB;xre=1;var e=mpe(),t=4;function n(r){return e(r,t)}return jB=n,jB}var TB,wre;function qZ(){if(wre)return TB;wre=1;function e(t){return function(){return t}}return TB=e,TB}var DB,bre;function Eze(){if(bre)return DB;bre=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),s=i(n),c=s.length;c--;){var l=s[t?c:++a];if(r(o[l],l,o)===!1)break}return n}}return DB=e,DB}var qB,Mre;function zZ(){if(Mre)return qB;Mre=1;var e=Eze(),t=e();return qB=t,qB}var zB,Sre;function OZ(){if(Sre)return zB;Sre=1;var e=zZ(),t=gl();function n(r,i){return r&&e(r,i,t)}return zB=n,zB}var OB,Cre;function Pze(){if(Cre)return OB;Cre=1;var e=lc();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,s=r?o:-1,c=Object(i);(r?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return OB=t,OB}var FB,Lre;function Uq(){if(Lre)return FB;Lre=1;var e=OZ(),t=Pze(),n=t(e);return FB=n,FB}var BB,Ire;function Gh(){if(Ire)return BB;Ire=1;function e(t){return t}return BB=e,BB}var HB,Are;function vpe(){if(Are)return HB;Are=1;var e=Gh();function t(n){return typeof n=="function"?n:e}return HB=t,HB}var VB,_re;function kpe(){if(_re)return VB;_re=1;var e=EZ(),t=Uq(),n=vpe(),r=$r();function i(a,o){var s=r(a)?e:t;return s(a,n(o))}return VB=i,VB}var UB,Ere;function xpe(){return Ere||(Ere=1,UB=kpe()),UB}var $B,Pre;function Nze(){if(Pre)return $B;Pre=1;var e=Uq();function t(n,r){var i=[];return e(n,function(a,o,s){r(a,o,s)&&i.push(a)}),i}return $B=t,$B}var WB,Nre;function Rze(){if(Nre)return WB;Nre=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return WB=t,WB}var GB,Rre;function jze(){if(Rre)return GB;Rre=1;function e(t){return this.__data__.has(t)}return GB=e,GB}var KB,jre;function wpe(){if(jre)return KB;jre=1;var e=_Z(),t=Rze(),n=jze();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,KB=r,KB}var ZB,Tre;function Tze(){if(Tre)return ZB;Tre=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return ZB=e,ZB}var XB,Dre;function bpe(){if(Dre)return XB;Dre=1;function e(t,n){return t.has(n)}return XB=e,XB}var YB,qre;function Mpe(){if(qre)return YB;qre=1;var e=wpe(),t=Tze(),n=bpe(),r=1,i=2;function a(o,s,c,l,u,d){var f=c&r,h=o.length,y=s.length;if(h!=y&&!(f&&y>h))return!1;var v=d.get(o),k=d.get(s);if(v&&k)return v==s&&k==o;var g=-1,S=!0,w=c&i?new e:void 0;for(d.set(o,s),d.set(s,o);++g<h;){var C=o[g],_=s[g];if(l)var A=f?l(_,C,g,s,o,d):l(C,_,g,o,s,d);if(A!==void 0){if(A)continue;S=!1;break}if(w){if(!t(s,function(j,O){if(!n(w,O)&&(C===j||u(C,j,c,l,d)))return w.push(O)})){S=!1;break}}else if(!(C===_||u(C,_,c,l,d))){S=!1;break}}return d.delete(o),d.delete(s),S}return YB=a,YB}var JB,zre;function Dze(){if(zre)return JB;zre=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return JB=e,JB}var QB,Ore;function FZ(){if(Ore)return QB;Ore=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return QB=e,QB}var eH,Fre;function qze(){if(Fre)return eH;Fre=1;var e=Qf(),t=fpe(),n=Jf(),r=Mpe(),i=Dze(),a=FZ(),o=1,s=2,c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",k="[object Symbol]",g="[object ArrayBuffer]",S="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function _(A,j,O,T,D,I,R){switch(O){case S:if(A.byteLength!=j.byteLength||A.byteOffset!=j.byteOffset)return!1;A=A.buffer,j=j.buffer;case g:return!(A.byteLength!=j.byteLength||!I(new t(A),new t(j)));case c:case l:case f:return n(+A,+j);case u:return A.name==j.name&&A.message==j.message;case h:case v:return A==j+"";case d:var U=i;case y:var q=T&o;if(U||(U=a),A.size!=j.size&&!q)return!1;var K=R.get(A);if(K)return K==j;T|=s,R.set(A,j);var Z=r(U(A),U(j),T,D,I,R);return R.delete(A),Z;case k:if(C)return C.call(A)==C.call(j)}return!1}return eH=_,eH}var tH,Bre;function zze(){if(Bre)return tH;Bre=1;var e=dpe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,c,l,u){var d=s&t,f=e(a),h=f.length,y=e(o),v=y.length;if(h!=v&&!d)return!1;for(var k=h;k--;){var g=f[k];if(!(d?g in o:r.call(o,g)))return!1}var S=u.get(a),w=u.get(o);if(S&&w)return S==o&&w==a;var C=!0;u.set(a,o),u.set(o,a);for(var _=d;++k<h;){g=f[k];var A=a[g],j=o[g];if(c)var O=d?c(j,A,g,o,a,u):c(A,j,g,a,o,u);if(!(O===void 0?A===j||l(A,j,s,c,u):O)){C=!1;break}_||(_=g=="constructor")}if(C&&!_){var T=a.constructor,D=o.constructor;T!=D&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof D=="function"&&D instanceof D)&&(C=!1)}return u.delete(a),u.delete(o),C}return tH=i,tH}var nH,Hre;function Oze(){if(Hre)return nH;Hre=1;var e=qq(),t=Mpe(),n=qze(),r=zze(),i=t0(),a=$r(),o=e0(),s=ug(),c=1,l="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,h=f.hasOwnProperty;function y(v,k,g,S,w,C){var _=a(v),A=a(k),j=_?u:i(v),O=A?u:i(k);j=j==l?d:j,O=O==l?d:O;var T=j==d,D=O==d,I=j==O;if(I&&o(v)){if(!o(k))return!1;_=!0,T=!1}if(I&&!T)return C||(C=new e),_||s(v)?t(v,k,g,S,w,C):n(v,k,j,g,S,w,C);if(!(g&c)){var R=T&&h.call(v,"__wrapped__"),U=D&&h.call(k,"__wrapped__");if(R||U){var q=R?v.value():v,K=U?k.value():k;return C||(C=new e),w(q,K,g,S,C)}}return I?(C||(C=new e),r(v,k,g,S,w,C)):!1}return nH=y,nH}var rH,Vre;function Spe(){if(Vre)return rH;Vre=1;var e=Oze(),t=Ss();function n(r,i,a,o,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,s)}return rH=n,rH}var iH,Ure;function Fze(){if(Ure)return iH;Ure=1;var e=qq(),t=Spe(),n=1,r=2;function i(a,o,s,c){var l=s.length,u=l,d=!c;if(a==null)return!u;for(a=Object(a);l--;){var f=s[l];if(d&&f[2]?f[1]!==a[f[0]]:!(f[0]in a))return!1}for(;++l<u;){f=s[l];var h=f[0],y=a[h],v=f[1];if(d&&f[2]){if(y===void 0&&!(h in a))return!1}else{var k=new e;if(c)var g=c(y,v,h,a,o,k);if(!(g===void 0?t(v,y,n|r,c,k):g))return!1}}return!0}return iH=i,iH}var aH,$re;function Cpe(){if($re)return aH;$re=1;var e=uo();function t(n){return n===n&&!e(n)}return aH=t,aH}var oH,Wre;function Bze(){if(Wre)return oH;Wre=1;var e=Cpe(),t=gl();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],s=r[o];i[a]=[o,s,e(s)]}return i}return oH=n,oH}var sH,Gre;function Lpe(){if(Gre)return sH;Gre=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return sH=e,sH}var cH,Kre;function Hze(){if(Kre)return cH;Kre=1;var e=Fze(),t=Bze(),n=Lpe();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return cH=r,cH}var lH,Zre;function n0(){if(Zre)return lH;Zre=1;var e=Uh(),t=Ss(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return lH=r,lH}var uH,Xre;function BZ(){if(Xre)return uH;Xre=1;var e=$r(),t=n0(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return uH=i,uH}var dH,Yre;function Vze(){if(Yre)return dH;Yre=1;var e=_Z(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var l=r.apply(this,o);return a.cache=c.set(s,l)||c,l};return a.cache=new(n.Cache||e),a}return n.Cache=e,dH=n,dH}var hH,Jre;function Uze(){if(Jre)return hH;Jre=1;var e=Vze(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return hH=n,hH}var fH,Qre;function $ze(){if(Qre)return fH;Qre=1;var e=Uze(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,l){a.push(c?l.replace(n,"$1"):s||o)}),a});return fH=r,fH}var pH,eie;function $q(){if(eie)return pH;eie=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return pH=e,pH}var yH,tie;function Wze(){if(tie)return yH;tie=1;var e=Qf(),t=$q(),n=$r(),r=n0(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(n(s))return t(s,o)+"";if(r(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return yH=o,yH}var gH,nie;function Ipe(){if(nie)return gH;nie=1;var e=Wze();function t(n){return n==null?"":e(n)}return gH=t,gH}var mH,rie;function Wq(){if(rie)return mH;rie=1;var e=$r(),t=BZ(),n=$ze(),r=Ipe();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return mH=i,mH}var vH,iie;function dg(){if(iie)return vH;iie=1;var e=n0();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return vH=t,vH}var kH,aie;function Gq(){if(aie)return kH;aie=1;var e=Wq(),t=dg();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return kH=n,kH}var xH,oie;function Gze(){if(oie)return xH;oie=1;var e=Gq();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return xH=t,xH}var wH,sie;function Kze(){if(sie)return wH;sie=1;function e(t,n){return t!=null&&n in Object(t)}return wH=e,wH}var bH,cie;function Ape(){if(cie)return bH;cie=1;var e=Wq(),t=lg(),n=$r(),r=Fq(),i=PZ(),a=dg();function o(s,c,l){c=e(c,s);for(var u=-1,d=c.length,f=!1;++u<d;){var h=a(c[u]);if(!(f=s!=null&&l(s,h)))break;s=s[h]}return f||++u!=d?f:(d=s==null?0:s.length,!!d&&i(d)&&r(h,d)&&(n(s)||t(s)))}return bH=o,bH}var MH,lie;function _pe(){if(lie)return MH;lie=1;var e=Kze(),t=Ape();function n(r,i){return r!=null&&t(r,i,e)}return MH=n,MH}var SH,uie;function Zze(){if(uie)return SH;uie=1;var e=Spe(),t=Gze(),n=_pe(),r=BZ(),i=Cpe(),a=Lpe(),o=dg(),s=1,c=2;function l(u,d){return r(u)&&i(d)?a(o(u),d):function(f){var h=t(f,u);return h===void 0&&h===d?n(f,u):e(d,h,s|c)}}return SH=l,SH}var CH,die;function Epe(){if(die)return CH;die=1;function e(t){return function(n){return n==null?void 0:n[t]}}return CH=e,CH}var LH,hie;function Xze(){if(hie)return LH;hie=1;var e=Gq();function t(n){return function(r){return e(r,n)}}return LH=t,LH}var IH,fie;function Yze(){if(fie)return IH;fie=1;var e=Epe(),t=Xze(),n=BZ(),r=dg();function i(a){return n(a)?e(r(a)):t(a)}return IH=i,IH}var AH,pie;function uc(){if(pie)return AH;pie=1;var e=Hze(),t=Zze(),n=Gh(),r=$r(),i=Yze();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return AH=a,AH}var _H,yie;function Ppe(){if(yie)return _H;yie=1;var e=spe(),t=Nze(),n=uc(),r=$r();function i(a,o){var s=r(a)?e:t;return s(a,n(o,3))}return _H=i,_H}var EH,gie;function Jze(){if(gie)return EH;gie=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,i){return r!=null&&t.call(r,i)}return EH=n,EH}var PH,mie;function Npe(){if(mie)return PH;mie=1;var e=Jze(),t=Ape();function n(r,i){return r!=null&&t(r,i,e)}return PH=n,PH}var NH,vie;function Qze(){if(vie)return NH;vie=1;var e=RZ(),t=t0(),n=lg(),r=$r(),i=lc(),a=e0(),o=Hq(),s=ug(),c="[object Map]",l="[object Set]",u=Object.prototype,d=u.hasOwnProperty;function f(h){if(h==null)return!0;if(i(h)&&(r(h)||typeof h=="string"||typeof h.splice=="function"||a(h)||s(h)||n(h)))return!h.length;var y=t(h);if(y==c||y==l)return!h.size;if(o(h))return!e(h).length;for(var v in h)if(d.call(h,v))return!1;return!0}return NH=f,NH}var RH,kie;function Rpe(){if(kie)return RH;kie=1;function e(t){return t===void 0}return RH=e,RH}var jH,xie;function jpe(){if(xie)return jH;xie=1;var e=Uq(),t=lc();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(s,c,l){o[++a]=i(s,c,l)}),o}return jH=n,jH}var TH,wie;function Tpe(){if(wie)return TH;wie=1;var e=$q(),t=uc(),n=jpe(),r=$r();function i(a,o){var s=r(a)?e:n;return s(a,t(o,3))}return TH=i,TH}var DH,bie;function eOe(){if(bie)return DH;bie=1;function e(t,n,r,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(r=t[++a]);++a<o;)r=n(r,t[a],a,t);return r}return DH=e,DH}var qH,Mie;function tOe(){if(Mie)return qH;Mie=1;function e(t,n,r,i,a){return a(t,function(o,s,c){r=i?(i=!1,o):n(r,o,s,c)}),r}return qH=e,qH}var zH,Sie;function Dpe(){if(Sie)return zH;Sie=1;var e=eOe(),t=Uq(),n=uc(),r=tOe(),i=$r();function a(o,s,c){var l=i(o)?e:r,u=arguments.length<3;return l(o,n(s,4),c,u,t)}return zH=a,zH}var OH,Cie;function nOe(){if(Cie)return OH;Cie=1;var e=Uh(),t=$r(),n=Ss(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return OH=i,OH}var FH,Lie;function rOe(){if(Lie)return FH;Lie=1;var e=Epe(),t=e("length");return FH=t,FH}var BH,Iie;function iOe(){if(Iie)return BH;Iie=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(l){return s.test(l)}return BH=c,BH}var HH,Aie;function aOe(){if(Aie)return HH;Aie=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=l+"?",v="["+a+"]?",k="(?:"+h+"(?:"+[u,d,f].join("|")+")"+v+y+")*",g=v+y+k,S="(?:"+[u+s+"?",s,d,f,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+S+g,"g");function C(_){for(var A=w.lastIndex=0;w.test(_);)++A;return A}return HH=C,HH}var VH,_ie;function oOe(){if(_ie)return VH;_ie=1;var e=rOe(),t=iOe(),n=aOe();function r(i){return t(i)?n(i):e(i)}return VH=r,VH}var UH,Eie;function sOe(){if(Eie)return UH;Eie=1;var e=RZ(),t=t0(),n=lc(),r=nOe(),i=oOe(),a="[object Map]",o="[object Set]";function s(c){if(c==null)return 0;if(n(c))return r(c)?i(c):c.length;var l=t(c);return l==a||l==o?c.size:e(c).length}return UH=s,UH}var $H,Pie;function cOe(){if(Pie)return $H;Pie=1;var e=EZ(),t=ype(),n=OZ(),r=uc(),i=Vq(),a=$r(),o=e0(),s=sg(),c=uo(),l=ug();function u(d,f,h){var y=a(d),v=y||o(d)||l(d);if(f=r(f,4),h==null){var k=d&&d.constructor;v?h=y?new k:[]:c(d)?h=s(k)?t(i(d)):{}:h={}}return(v?e:n)(d,function(g,S,w){return f(h,g,S,w)}),h}return $H=u,$H}var WH,Nie;function lOe(){if(Nie)return WH;Nie=1;var e=Qf(),t=lg(),n=$r(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return WH=i,WH}var GH,Rie;function HZ(){if(Rie)return GH;Rie=1;var e=TZ(),t=lOe();function n(r,i,a,o,s){var c=-1,l=r.length;for(a||(a=t),s||(s=[]);++c<l;){var u=r[c];i>0&&a(u)?i>1?n(u,i-1,a,o,s):e(s,u):o||(s[s.length]=u)}return s}return GH=n,GH}var KH,jie;function uOe(){if(jie)return KH;jie=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return KH=e,KH}var ZH,Tie;function qpe(){if(Tie)return ZH;Tie=1;var e=uOe(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),l=Array(c);++s<c;)l[s]=o[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=o[s];return u[i]=a(l),e(r,this,u)}}return ZH=n,ZH}var XH,Die;function dOe(){if(Die)return XH;Die=1;var e=qZ(),t=npe(),n=Gh(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return XH=r,XH}var YH,qie;function hOe(){if(qie)return YH;qie=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var s=n(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return YH=r,YH}var JH,zie;function zpe(){if(zie)return JH;zie=1;var e=dOe(),t=hOe(),n=t(e);return JH=n,JH}var QH,Oie;function Kq(){if(Oie)return QH;Oie=1;var e=Gh(),t=qpe(),n=zpe();function r(i,a){return n(t(i,a,e),i+"")}return QH=r,QH}var eV,Fie;function Ope(){if(Fie)return eV;Fie=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return eV=e,eV}var tV,Bie;function fOe(){if(Bie)return tV;Bie=1;function e(t){return t!==t}return tV=e,tV}var nV,Hie;function pOe(){if(Hie)return nV;Hie=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return nV=e,nV}var rV,Vie;function yOe(){if(Vie)return rV;Vie=1;var e=Ope(),t=fOe(),n=pOe();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return rV=r,rV}var iV,Uie;function gOe(){if(Uie)return iV;Uie=1;var e=yOe();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return iV=t,iV}var aV,$ie;function mOe(){if($ie)return aV;$ie=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return aV=e,aV}var oV,Wie;function vOe(){if(Wie)return oV;Wie=1;function e(){}return oV=e,oV}var sV,Gie;function kOe(){if(Gie)return sV;Gie=1;var e=hpe(),t=vOe(),n=FZ(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return sV=i,sV}var cV,Kie;function xOe(){if(Kie)return cV;Kie=1;var e=wpe(),t=gOe(),n=mOe(),r=bpe(),i=kOe(),a=FZ(),o=200;function s(c,l,u){var d=-1,f=t,h=c.length,y=!0,v=[],k=v;if(u)y=!1,f=n;else if(h>=o){var g=l?null:i(c);if(g)return a(g);y=!1,f=r,k=new e}else k=l?[]:v;e:for(;++d<h;){var S=c[d],w=l?l(S):S;if(S=u||S!==0?S:0,y&&w===w){for(var C=k.length;C--;)if(k[C]===w)continue e;l&&k.push(w),v.push(S)}else f(k,w,u)||(k!==v&&k.push(w),v.push(S))}return v}return cV=s,cV}var lV,Zie;function Fpe(){if(Zie)return lV;Zie=1;var e=lc(),t=Ss();function n(r){return t(r)&&e(r)}return lV=n,lV}var uV,Xie;function wOe(){if(Xie)return uV;Xie=1;var e=HZ(),t=Kq(),n=xOe(),r=Fpe(),i=t(function(a){return n(e(a,1,r,!0))});return uV=i,uV}var dV,Yie;function bOe(){if(Yie)return dV;Yie=1;var e=$q();function t(n,r){return e(r,function(i){return n[i]})}return dV=t,dV}var hV,Jie;function Bpe(){if(Jie)return hV;Jie=1;var e=bOe(),t=gl();function n(r){return r==null?[]:e(r,t(r))}return hV=n,hV}var fV,Qie;function ho(){if(Qie)return fV;Qie=1;var e;if(typeof IZ=="function")try{e={clone:_ze(),constant:qZ(),each:xpe(),filter:Ppe(),has:Npe(),isArray:$r(),isEmpty:Qze(),isFunction:sg(),isUndefined:Rpe(),keys:gl(),map:Tpe(),reduce:Dpe(),size:sOe(),transform:cOe(),union:wOe(),values:Bpe()}}catch{}return e||(e=window._),fV=e,fV}var pV,eae;function VZ(){if(eae)return pV;eae=1;var e=ho();pV=i;var t="\0",n="\0",r="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._in[d])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._out[d])})},i.prototype.setNodes=function(u,d){var f=arguments,h=this;return e.each(u,function(y){f.length>1?h.setNode(y,d):h.setNode(y)}),this},i.prototype.setNode=function(u,d){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=d),this):(this._nodes[u]=arguments.length>1?d:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=n,this._children[u]={},this._children[n][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var d=this;if(e.has(this._nodes,u)){var f=function(h){d.removeEdge(d._edgeObjs[h])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(h){d.setParent(h)}),delete this._children[u]),e.each(e.keys(this._in[u]),f),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,d){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(d))d=n;else{d+="";for(var f=d;!e.isUndefined(f);f=this.parent(f))if(f===u)throw new Error("Setting "+d+" as parent of "+u+" would create a cycle");this.setNode(d)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=d,this._children[d][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var d=this._parent[u];if(d!==n)return d}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=n),this._isCompound){var d=this._children[u];if(d)return e.keys(d)}else{if(u===n)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var d=this._preds[u];if(d)return e.keys(d)},i.prototype.successors=function(u){var d=this._sucs[u];if(d)return e.keys(d)},i.prototype.neighbors=function(u){var d=this.predecessors(u);if(d)return e.union(d,this.successors(u))},i.prototype.isLeaf=function(u){var d;return this.isDirected()?d=this.successors(u):d=this.neighbors(u),d.length===0},i.prototype.filterNodes=function(u){var d=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});d.setGraph(this.graph());var f=this;e.each(this._nodes,function(v,k){u(k)&&d.setNode(k,v)}),e.each(this._edgeObjs,function(v){d.hasNode(v.v)&&d.hasNode(v.w)&&d.setEdge(v,f.edge(v))});var h={};function y(v){var k=f.parent(v);return k===void 0||d.hasNode(k)?(h[v]=k,k):k in h?h[k]:y(k)}return this._isCompound&&e.each(d.nodes(),function(v){d.setParent(v,y(v))}),d},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,d){var f=this,h=arguments;return e.reduce(u,function(y,v){return h.length>1?f.setEdge(y,v,d):f.setEdge(y,v),v}),this},i.prototype.setEdge=function(){var u,d,f,h,y=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(u=v.v,d=v.w,f=v.name,arguments.length===2&&(h=arguments[1],y=!0)):(u=v,d=arguments[1],f=arguments[3],arguments.length>2&&(h=arguments[2],y=!0)),u=""+u,d=""+d,e.isUndefined(f)||(f=""+f);var k=s(this._isDirected,u,d,f);if(e.has(this._edgeLabels,k))return y&&(this._edgeLabels[k]=h),this;if(!e.isUndefined(f)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(d),this._edgeLabels[k]=y?h:this._defaultEdgeLabelFn(u,d,f);var g=c(this._isDirected,u,d,f);return u=g.v,d=g.w,Object.freeze(g),this._edgeObjs[k]=g,a(this._preds[d],u),a(this._sucs[u],d),this._in[d][k]=g,this._out[u][k]=g,this._edgeCount++,this},i.prototype.edge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f);return this._edgeLabels[h]},i.prototype.hasEdge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f);return e.has(this._edgeLabels,h)},i.prototype.removeEdge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f),y=this._edgeObjs[h];return y&&(u=y.v,d=y.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[d],u),o(this._sucs[u],d),delete this._in[d][h],delete this._out[u][h],this._edgeCount--),this},i.prototype.inEdges=function(u,d){var f=this._in[u];if(f){var h=e.values(f);return d?e.filter(h,function(y){return y.v===d}):h}},i.prototype.outEdges=function(u,d){var f=this._out[u];if(f){var h=e.values(f);return d?e.filter(h,function(y){return y.w===d}):h}},i.prototype.nodeEdges=function(u,d){var f=this.inEdges(u,d);if(f)return f.concat(this.outEdges(u,d))};function a(u,d){u[d]?u[d]++:u[d]=1}function o(u,d){--u[d]||delete u[d]}function s(u,d,f,h){var y=""+d,v=""+f;if(!u&&y>v){var k=y;y=v,v=k}return y+r+v+r+(e.isUndefined(h)?t:h)}function c(u,d,f,h){var y=""+d,v=""+f;if(!u&&y>v){var k=y;y=v,v=k}var g={v:y,w:v};return h&&(g.name=h),g}function l(u,d){return s(u,d.v,d.w,d.name)}return pV}var yV,tae;function MOe(){return tae||(tae=1,yV="2.1.8"),yV}var gV,nae;function SOe(){return nae||(nae=1,gV={Graph:VZ(),version:MOe()}),gV}var mV,rae;function COe(){if(rae)return mV;rae=1;var e=ho(),t=VZ();mV={write:n,read:a};function n(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:r(o),edges:i(o)};return e.isUndefined(o.graph())||(s.value=e.clone(o.graph())),s}function r(o){return e.map(o.nodes(),function(s){var c=o.node(s),l=o.parent(s),u={v:s};return e.isUndefined(c)||(u.value=c),e.isUndefined(l)||(u.parent=l),u})}function i(o){return e.map(o.edges(),function(s){var c=o.edge(s),l={v:s.v,w:s.w};return e.isUndefined(s.name)||(l.name=s.name),e.isUndefined(c)||(l.value=c),l})}function a(o){var s=new t(o.options).setGraph(o.value);return e.each(o.nodes,function(c){s.setNode(c.v,c.value),c.parent&&s.setParent(c.v,c.parent)}),e.each(o.edges,function(c){s.setEdge({v:c.v,w:c.w,name:c.name},c.value)}),s}return mV}var vV,iae;function LOe(){if(iae)return vV;iae=1;var e=ho();vV=t;function t(n){var r={},i=[],a;function o(s){e.has(r,s)||(r[s]=!0,a.push(s),e.each(n.successors(s),o),e.each(n.predecessors(s),o))}return e.each(n.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return vV}var kV,aae;function Hpe(){if(aae)return kV;aae=1;var e=ho();kV=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var i=this._keyIndices;if(n=String(n),!e.has(i,n)){var a=this._arr,o=a.length;return i[n]=o,a.push({key:n,priority:r}),this._decrease(o),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)},t.prototype._heapify=function(n){var r=this._arr,i=2*n,a=i+1,o=n;i<r.length&&(o=r[i].priority<r[o].priority?i:o,a<r.length&&(o=r[a].priority<r[o].priority?a:o),o!==n&&(this._swap(n,o),this._heapify(o)))},t.prototype._decrease=function(n){for(var r=this._arr,i=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<i));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var i=this._arr,a=this._keyIndices,o=i[n],s=i[r];i[n]=s,i[r]=o,a[s.key]=n,a[o.key]=r},kV}var xV,oae;function Vpe(){if(oae)return xV;oae=1;var e=ho(),t=Hpe();xV=r;var n=e.constant(1);function r(a,o,s,c){return i(a,String(o),s||n,c||function(l){return a.outEdges(l)})}function i(a,o,s,c){var l={},u=new t,d,f,h=function(y){var v=y.v!==d?y.v:y.w,k=l[v],g=s(y),S=f.distance+g;if(g<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+y+" Weight: "+g);S<k.distance&&(k.distance=S,k.predecessor=d,u.decrease(v,S))};for(a.nodes().forEach(function(y){var v=y===o?0:Number.POSITIVE_INFINITY;l[y]={distance:v},u.add(y,v)});u.size()>0&&(d=u.removeMin(),f=l[d],f.distance!==Number.POSITIVE_INFINITY);)c(d).forEach(h);return l}return xV}var wV,sae;function IOe(){if(sae)return wV;sae=1;var e=Vpe(),t=ho();wV=n;function n(r,i,a){return t.transform(r.nodes(),function(o,s){o[s]=e(r,s,i,a)},{})}return wV}var bV,cae;function Upe(){if(cae)return bV;cae=1;var e=ho();bV=t;function t(n){var r=0,i=[],a={},o=[];function s(c){var l=a[c]={onStack:!0,lowlink:r,index:r++};if(i.push(c),n.successors(c).forEach(function(f){e.has(a,f)?a[f].onStack&&(l.lowlink=Math.min(l.lowlink,a[f].index)):(s(f),l.lowlink=Math.min(l.lowlink,a[f].lowlink))}),l.lowlink===l.index){var u=[],d;do d=i.pop(),a[d].onStack=!1,u.push(d);while(c!==d);o.push(u)}}return n.nodes().forEach(function(c){e.has(a,c)||s(c)}),o}return bV}var MV,lae;function AOe(){if(lae)return MV;lae=1;var e=ho(),t=Upe();MV=n;function n(r){return e.filter(t(r),function(i){return i.length>1||i.length===1&&r.hasEdge(i[0],i[0])})}return MV}var SV,uae;function _Oe(){if(uae)return SV;uae=1;var e=ho();SV=n;var t=e.constant(1);function n(i,a,o){return r(i,a||t,o||function(s){return i.outEdges(s)})}function r(i,a,o){var s={},c=i.nodes();return c.forEach(function(l){s[l]={},s[l][l]={distance:0},c.forEach(function(u){l!==u&&(s[l][u]={distance:Number.POSITIVE_INFINITY})}),o(l).forEach(function(u){var d=u.v===l?u.w:u.v,f=a(u);s[l][d]={distance:f,predecessor:l}})}),c.forEach(function(l){var u=s[l];c.forEach(function(d){var f=s[d];c.forEach(function(h){var y=f[l],v=u[h],k=f[h],g=y.distance+v.distance;g<k.distance&&(k.distance=g,k.predecessor=v.predecessor)})})}),s}return SV}var CV,dae;function $pe(){if(dae)return CV;dae=1;var e=ho();CV=t,t.CycleException=n;function t(r){var i={},a={},o=[];function s(c){if(e.has(a,c))throw new n;e.has(i,c)||(a[c]=!0,i[c]=!0,e.each(r.predecessors(c),s),delete a[c],o.push(c))}if(e.each(r.sinks(),s),e.size(i)!==r.nodeCount())throw new n;return o}function n(){}return n.prototype=new Error,CV}var LV,hae;function EOe(){if(hae)return LV;hae=1;var e=$pe();LV=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return LV}var IV,fae;function Wpe(){if(fae)return IV;fae=1;var e=ho();IV=t;function t(r,i,a){e.isArray(i)||(i=[i]);var o=(r.isDirected()?r.successors:r.neighbors).bind(r),s=[],c={};return e.each(i,function(l){if(!r.hasNode(l))throw new Error("Graph does not have node: "+l);n(r,l,a==="post",c,o,s)}),s}function n(r,i,a,o,s,c){e.has(o,i)||(o[i]=!0,a||c.push(i),e.each(s(i),function(l){n(r,l,a,o,s,c)}),a&&c.push(i))}return IV}var AV,pae;function POe(){if(pae)return AV;pae=1;var e=Wpe();AV=t;function t(n,r){return e(n,r,"post")}return AV}var _V,yae;function NOe(){if(yae)return _V;yae=1;var e=Wpe();_V=t;function t(n,r){return e(n,r,"pre")}return _V}var EV,gae;function ROe(){if(gae)return EV;gae=1;var e=ho(),t=VZ(),n=Hpe();EV=r;function r(i,a){var o=new t,s={},c=new n,l;function u(f){var h=f.v===l?f.w:f.v,y=c.priority(h);if(y!==void 0){var v=a(f);v<y&&(s[h]=l,c.decrease(h,v))}}if(i.nodeCount()===0)return o;e.each(i.nodes(),function(f){c.add(f,Number.POSITIVE_INFINITY),o.setNode(f)}),c.decrease(i.nodes()[0],0);for(var d=!1;c.size()>0;){if(l=c.removeMin(),e.has(s,l))o.setEdge(l,s[l]);else{if(d)throw new Error("Input graph is not connected: "+i);d=!0}i.nodeEdges(l).forEach(u)}return o}return EV}var PV,mae;function jOe(){return mae||(mae=1,PV={components:LOe(),dijkstra:Vpe(),dijkstraAll:IOe(),findCycles:AOe(),floydWarshall:_Oe(),isAcyclic:EOe(),postorder:POe(),preorder:NOe(),prim:ROe(),tarjan:Upe(),topsort:$pe()}),PV}var NV,vae;function TOe(){if(vae)return NV;vae=1;var e=SOe();return NV={Graph:e.Graph,json:COe(),alg:jOe(),version:e.version},NV}var gD;if(typeof IZ=="function")try{gD=TOe()}catch{}gD||(gD=window.graphlib);var Ho=gD,RV,kae;function DOe(){if(kae)return RV;kae=1;var e=mpe(),t=1,n=4;function r(i){return e(i,t|n)}return RV=r,RV}var jV,xae;function Zq(){if(xae)return jV;xae=1;var e=Jf(),t=lc(),n=Fq(),r=uo();function i(a,o,s){if(!r(s))return!1;var c=typeof o;return(c=="number"?t(s)&&n(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return jV=i,jV}var TV,wae;function qOe(){if(wae)return TV;wae=1;var e=Kq(),t=Jf(),n=Zq(),r=Wh(),i=Object.prototype,a=i.hasOwnProperty,o=e(function(s,c){s=Object(s);var l=-1,u=c.length,d=u>2?c[2]:void 0;for(d&&n(c[0],c[1],d)&&(u=1);++l<u;)for(var f=c[l],h=r(f),y=-1,v=h.length;++y<v;){var k=h[y],g=s[k];(g===void 0||t(g,i[k])&&!a.call(s,k))&&(s[k]=f[k])}return s});return TV=o,TV}var DV,bae;function zOe(){if(bae)return DV;bae=1;var e=uc(),t=lc(),n=gl();function r(i){return function(a,o,s){var c=Object(a);if(!t(a)){var l=e(o,3);a=n(a),o=function(d){return l(c[d],d,c)}}var u=i(a,o,s);return u>-1?c[l?a[u]:u]:void 0}}return DV=r,DV}var qV,Mae;function OOe(){if(Mae)return qV;Mae=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return qV=t,qV}var zV,Sae;function FOe(){if(Sae)return zV;Sae=1;var e=OOe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zV=n,zV}var OV,Cae;function BOe(){if(Cae)return OV;Cae=1;var e=FOe(),t=uo(),n=n0(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return OV=c,OV}var FV,Lae;function Gpe(){if(Lae)return FV;Lae=1;var e=BOe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return FV=r,FV}var BV,Iae;function HOe(){if(Iae)return BV;Iae=1;var e=Gpe();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return BV=t,BV}var HV,Aae;function VOe(){if(Aae)return HV;Aae=1;var e=Ope(),t=uc(),n=HOe(),r=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var l=s==null?0:n(s);return l<0&&(l=r(c+l,0)),e(a,t(o,3),l)}return HV=i,HV}var VV,_ae;function UOe(){if(_ae)return VV;_ae=1;var e=zOe(),t=VOe(),n=e(t);return VV=n,VV}var UV,Eae;function Kpe(){if(Eae)return UV;Eae=1;var e=HZ();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return UV=t,UV}var $V,Pae;function $Oe(){if(Pae)return $V;Pae=1;var e=zZ(),t=vpe(),n=Wh();function r(i,a){return i==null?i:e(i,t(a),n)}return $V=r,$V}var WV,Nae;function WOe(){if(Nae)return WV;Nae=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return WV=e,WV}var GV,Rae;function GOe(){if(Rae)return GV;Rae=1;var e=zq(),t=OZ(),n=uc();function r(i,a){var o={};return a=n(a,3),t(i,function(s,c,l){e(o,c,a(s,c,l))}),o}return GV=r,GV}var KV,jae;function UZ(){if(jae)return KV;jae=1;var e=n0();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var s=n[a],c=r(s);if(c!=null&&(l===void 0?c===c&&!e(c):i(c,l)))var l=c,u=s}return u}return KV=t,KV}var ZV,Tae;function KOe(){if(Tae)return ZV;Tae=1;function e(t,n){return t>n}return ZV=e,ZV}var XV,Dae;function ZOe(){if(Dae)return XV;Dae=1;var e=UZ(),t=KOe(),n=Gh();function r(i){return i&&i.length?e(i,n,t):void 0}return XV=r,XV}var YV,qae;function Zpe(){if(qae)return YV;qae=1;var e=zq(),t=Jf();function n(r,i,a){(a!==void 0&&!t(r[i],a)||a===void 0&&!(i in r))&&e(r,i,a)}return YV=n,YV}var JV,zae;function XOe(){if(zae)return JV;zae=1;var e=Uh(),t=Vq(),n=Ss(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function l(u){if(!n(u)||e(u)!=r)return!1;var d=t(u);if(d===null)return!0;var f=s.call(d,"constructor")&&d.constructor;return typeof f=="function"&&f instanceof f&&o.call(f)==c}return JV=l,JV}var QV,Oae;function Xpe(){if(Oae)return QV;Oae=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return QV=e,QV}var eU,Fae;function YOe(){if(Fae)return eU;Fae=1;var e=cg(),t=Wh();function n(r){return e(r,t(r))}return eU=n,eU}var tU,Bae;function JOe(){if(Bae)return tU;Bae=1;var e=Zpe(),t=ape(),n=ppe(),r=ope(),i=gpe(),a=lg(),o=$r(),s=Fpe(),c=e0(),l=sg(),u=uo(),d=XOe(),f=ug(),h=Xpe(),y=YOe();function v(k,g,S,w,C,_,A){var j=h(k,S),O=h(g,S),T=A.get(O);if(T){e(k,S,T);return}var D=_?_(j,O,S+"",k,g,A):void 0,I=D===void 0;if(I){var R=o(O),U=!R&&c(O),q=!R&&!U&&f(O);D=O,R||U||q?o(j)?D=j:s(j)?D=r(j):U?(I=!1,D=t(O,!0)):q?(I=!1,D=n(O,!0)):D=[]:d(O)||a(O)?(D=j,a(j)?D=y(j):(!u(j)||l(j))&&(D=i(O))):I=!1}I&&(A.set(O,D),C(D,O,w,_,A),A.delete(O)),e(k,S,D)}return tU=v,tU}var nU,Hae;function QOe(){if(Hae)return nU;Hae=1;var e=qq(),t=Zpe(),n=zZ(),r=JOe(),i=uo(),a=Wh(),o=Xpe();function s(c,l,u,d,f){c!==l&&n(l,function(h,y){if(f||(f=new e),i(h))r(c,l,y,u,s,d,f);else{var v=d?d(o(c,y),h,y+"",c,l,f):void 0;v===void 0&&(v=h),t(c,y,v)}},a)}return nU=s,nU}var rU,Vae;function eFe(){if(Vae)return rU;Vae=1;var e=Kq(),t=Zq();function n(r){return e(function(i,a){var o=-1,s=a.length,c=s>1?a[s-1]:void 0,l=s>2?a[2]:void 0;for(c=r.length>3&&typeof c=="function"?(s--,c):void 0,l&&t(a[0],a[1],l)&&(c=s<3?void 0:c,s=1),i=Object(i);++o<s;){var u=a[o];u&&r(i,u,o,c)}return i})}return rU=n,rU}var iU,Uae;function tFe(){if(Uae)return iU;Uae=1;var e=QOe(),t=eFe(),n=t(function(r,i,a){e(r,i,a)});return iU=n,iU}var aU,$ae;function Ype(){if($ae)return aU;$ae=1;function e(t,n){return t<n}return aU=e,aU}var oU,Wae;function nFe(){if(Wae)return oU;Wae=1;var e=UZ(),t=Ype(),n=Gh();function r(i){return i&&i.length?e(i,n,t):void 0}return oU=r,oU}var sU,Gae;function rFe(){if(Gae)return sU;Gae=1;var e=UZ(),t=uc(),n=Ype();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return sU=r,sU}var cU,Kae;function iFe(){if(Kae)return cU;Kae=1;var e=Bo(),t=function(){return e.Date.now()};return cU=t,cU}var lU,Zae;function aFe(){if(Zae)return lU;Zae=1;var e=Oq(),t=Wq(),n=Fq(),r=uo(),i=dg();function a(o,s,c,l){if(!r(o))return o;s=t(s,o);for(var u=-1,d=s.length,f=d-1,h=o;h!=null&&++u<d;){var y=i(s[u]),v=c;if(y==="__proto__"||y==="constructor"||y==="prototype")return o;if(u!=f){var k=h[y];v=l?l(k,y,h):void 0,v===void 0&&(v=r(k)?k:n(s[u+1])?[]:{})}e(h,y,v),h=h[y]}return o}return lU=a,lU}var uU,Xae;function oFe(){if(Xae)return uU;Xae=1;var e=Gq(),t=aFe(),n=Wq();function r(i,a,o){for(var s=-1,c=a.length,l={};++s<c;){var u=a[s],d=e(i,u);o(d,u)&&t(l,n(u,i),d)}return l}return uU=r,uU}var dU,Yae;function sFe(){if(Yae)return dU;Yae=1;var e=oFe(),t=_pe();function n(r,i){return e(r,i,function(a,o){return t(r,o)})}return dU=n,dU}var hU,Jae;function cFe(){if(Jae)return hU;Jae=1;var e=Kpe(),t=qpe(),n=zpe();function r(i){return n(t(i,void 0,e),i+"")}return hU=r,hU}var fU,Qae;function lFe(){if(Qae)return fU;Qae=1;var e=sFe(),t=cFe(),n=t(function(r,i){return r==null?{}:e(r,i)});return fU=n,fU}var pU,eoe;function uFe(){if(eoe)return pU;eoe=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var s=-1,c=t(e((i-r)/(a||1)),0),l=Array(c);c--;)l[o?c:++s]=r,r+=a;return l}return pU=n,pU}var yU,toe;function dFe(){if(toe)return yU;toe=1;var e=uFe(),t=Zq(),n=Gpe();function r(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),s=s===void 0?a<o?1:-1:n(s),e(a,o,s,i)}}return yU=r,yU}var gU,noe;function hFe(){if(noe)return gU;noe=1;var e=dFe(),t=e();return gU=t,gU}var mU,roe;function fFe(){if(roe)return mU;roe=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return mU=e,mU}var vU,ioe;function pFe(){if(ioe)return vU;ioe=1;var e=n0();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,s=e(n),c=r!==void 0,l=r===null,u=r===r,d=e(r);if(!l&&!d&&!s&&n>r||s&&c&&u&&!l&&!d||a&&c&&u||!i&&u||!o)return 1;if(!a&&!s&&!d&&n<r||d&&i&&o&&!a&&!s||l&&i&&o||!c&&o||!u)return-1}return 0}return vU=t,vU}var kU,aoe;function yFe(){if(aoe)return kU;aoe=1;var e=pFe();function t(n,r,i){for(var a=-1,o=n.criteria,s=r.criteria,c=o.length,l=i.length;++a<c;){var u=e(o[a],s[a]);if(u){if(a>=l)return u;var d=i[a];return u*(d=="desc"?-1:1)}}return n.index-r.index}return kU=t,kU}var xU,ooe;function gFe(){if(ooe)return xU;ooe=1;var e=$q(),t=Gq(),n=uc(),r=jpe(),i=fFe(),a=Bq(),o=yFe(),s=Gh(),c=$r();function l(u,d,f){d.length?d=e(d,function(v){return c(v)?function(k){return t(k,v.length===1?v[0]:v)}:v}):d=[s];var h=-1;d=e(d,a(n));var y=r(u,function(v,k,g){var S=e(d,function(w){return w(v)});return{criteria:S,index:++h,value:v}});return i(y,function(v,k){return o(v,k,f)})}return xU=l,xU}var wU,soe;function mFe(){if(soe)return wU;soe=1;var e=HZ(),t=gFe(),n=Kq(),r=Zq(),i=n(function(a,o){if(a==null)return[];var s=o.length;return s>1&&r(a,o[0],o[1])?o=[]:s>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return wU=i,wU}var bU,coe;function vFe(){if(coe)return bU;coe=1;var e=Ipe(),t=0;function n(r){var i=++t;return e(r)+i}return bU=n,bU}var MU,loe;function kFe(){if(loe)return MU;loe=1;function e(t,n,r){for(var i=-1,a=t.length,o=n.length,s={};++i<a;){var c=i<o?n[i]:void 0;r(s,t[i],c)}return s}return MU=e,MU}var SU,uoe;function xFe(){if(uoe)return SU;uoe=1;var e=Oq(),t=kFe();function n(r,i){return t(r||[],i||[],e)}return SU=n,SU}var mD;if(typeof IZ=="function")try{mD={cloneDeep:DOe(),constant:qZ(),defaults:qOe(),each:xpe(),filter:Ppe(),find:UOe(),flatten:Kpe(),forEach:kpe(),forIn:$Oe(),has:Npe(),isUndefined:Rpe(),last:WOe(),map:Tpe(),mapValues:GOe(),max:ZOe(),merge:tFe(),min:nFe(),minBy:rFe(),now:iFe(),pick:lFe(),range:hFe(),reduce:Dpe(),sortBy:mFe(),uniqueId:vFe(),values:Bpe(),zipObject:xFe()}}catch{}mD||(mD=window._);var nr=mD,wFe=Xq;function Xq(){var e={};e._next=e._prev=e,this._sentinel=e}Xq.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return Jpe(t),t};Xq.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&Jpe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t};Xq.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,bFe)),n=n._prev;return"["+e.join(", ")+"]"};function Jpe(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function bFe(e,t){if(e!=="_next"&&e!=="_prev")return t}var Ks=nr,MFe=Ho.Graph,SFe=wFe,CFe=IFe,LFe=Ks.constant(1);function IFe(e,t){if(e.nodeCount()<=1)return[];var n=_Fe(e,t||LFe),r=AFe(n.graph,n.buckets,n.zeroIdx);return Ks.flatten(Ks.map(r,function(i){return e.outEdges(i.v,i.w)}),!0)}function AFe(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)CU(e,t,n,o);for(;o=i.dequeue();)CU(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(CU(e,t,n,o,!0));break}}}return r}function CU(e,t,n,r,i){var a=i?[]:void 0;return Ks.forEach(e.inEdges(r.v),function(o){var s=e.edge(o),c=e.node(o.v);i&&a.push({v:o.v,w:o.w}),c.out-=s,eG(t,n,c)}),Ks.forEach(e.outEdges(r.v),function(o){var s=e.edge(o),c=o.w,l=e.node(c);l.in-=s,eG(t,n,l)}),e.removeNode(r.v),a}function _Fe(e,t){var n=new MFe,r=0,i=0;Ks.forEach(e.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),Ks.forEach(e.edges(),function(s){var c=n.edge(s.v,s.w)||0,l=t(s),u=c+l;n.setEdge(s.v,s.w,u),i=Math.max(i,n.node(s.v).out+=l),r=Math.max(r,n.node(s.w).in+=l)});var a=Ks.range(i+r+3).map(function(){return new SFe}),o=r+1;return Ks.forEach(n.nodes(),function(s){eG(a,o,n.node(s))}),{graph:n,buckets:a,zeroIdx:o}}function eG(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var gh=nr,EFe=CFe,PFe={run:NFe,undo:jFe};function NFe(e){var t=e.graph().acyclicer==="greedy"?EFe(e,n(e)):RFe(e);gh.forEach(t,function(r){var i=e.edge(r);e.removeEdge(r),i.forwardName=r.name,i.reversed=!0,e.setEdge(r.w,r.v,i,gh.uniqueId("rev"))});function n(r){return function(i){return r.edge(i).weight}}}function RFe(e){var t=[],n={},r={};function i(a){gh.has(r,a)||(r[a]=!0,n[a]=!0,gh.forEach(e.outEdges(a),function(o){gh.has(n,o.w)?t.push(o):i(o.w)}),delete n[a])}return gh.forEach(e.nodes(),i),t}function jFe(e){gh.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var fn=nr,Qpe=Ho.Graph,fa={addDummyNode:eye,simplify:TFe,asNonCompoundGraph:DFe,successorWeights:qFe,predecessorWeights:zFe,intersectRect:OFe,buildLayerMatrix:FFe,normalizeRanks:BFe,removeEmptyRanks:HFe,addBorderNode:VFe,maxRank:tye,partition:UFe,time:$Fe,notime:WFe};function eye(e,t,n,r){var i;do i=fn.uniqueId(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function TFe(e){var t=new Qpe().setGraph(e.graph());return fn.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),fn.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function DFe(e){var t=new Qpe({multigraph:e.isMultigraph()}).setGraph(e.graph());return fn.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),fn.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function qFe(e){var t=fn.map(e.nodes(),function(n){var r={};return fn.forEach(e.outEdges(n),function(i){r[i.w]=(r[i.w]||0)+e.edge(i).weight}),r});return fn.zipObject(e.nodes(),t)}function zFe(e){var t=fn.map(e.nodes(),function(n){var r={};return fn.forEach(e.inEdges(n),function(i){r[i.v]=(r[i.v]||0)+e.edge(i).weight}),r});return fn.zipObject(e.nodes(),t)}function OFe(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function FFe(e){var t=fn.map(fn.range(tye(e)+1),function(){return[]});return fn.forEach(e.nodes(),function(n){var r=e.node(n),i=r.rank;fn.isUndefined(i)||(t[i][r.order]=n)}),t}function BFe(e){var t=fn.min(fn.map(e.nodes(),function(n){return e.node(n).rank}));fn.forEach(e.nodes(),function(n){var r=e.node(n);fn.has(r,"rank")&&(r.rank-=t)})}function HFe(e){var t=fn.min(fn.map(e.nodes(),function(a){return e.node(a).rank})),n=[];fn.forEach(e.nodes(),function(a){var o=e.node(a).rank-t;n[o]||(n[o]=[]),n[o].push(a)});var r=0,i=e.graph().nodeRankFactor;fn.forEach(n,function(a,o){fn.isUndefined(a)&&o%i!==0?--r:r&&fn.forEach(a,function(s){e.node(s).rank+=r})})}function VFe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),eye(e,"border",i,t)}function tye(e){return fn.max(fn.map(e.nodes(),function(t){var n=e.node(t).rank;if(!fn.isUndefined(n))return n}))}function UFe(e,t){var n={lhs:[],rhs:[]};return fn.forEach(e,function(r){t(r)?n.lhs.push(r):n.rhs.push(r)}),n}function $Fe(e,t){var n=fn.now();try{return t()}finally{console.log(e+" time: "+(fn.now()-n)+"ms")}}function WFe(e,t){return t()}var nye=nr,GFe=fa,KFe={run:ZFe,undo:YFe};function ZFe(e){e.graph().dummyChains=[],nye.forEach(e.edges(),function(t){XFe(e,t)})}function XFe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},l=GFe.addDummyNode(e,"edge",u,"_d"),r===c&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),e.setEdge(n,l,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(l),n=l;e.setEdge(n,i,{weight:s.weight},o)}}function YFe(e){nye.forEach(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}var bm=nr,Yq={longestPath:JFe,slack:QFe};function JFe(e){var t={};function n(r){var i=e.node(r);if(bm.has(t,r))return i.rank;t[r]=!0;var a=bm.min(bm.map(e.outEdges(r),function(o){return n(o.w)-e.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}bm.forEach(e.sources(),n)}function QFe(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var vD=nr,eBe=Ho.Graph,kD=Yq.slack,rye=tBe;function tBe(e){var t=new eBe({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;nBe(t,e)<r;)i=rBe(t,e),a=t.hasNode(i.v)?kD(e,i):-kD(e,i),iBe(t,e,a);return t}function nBe(e,t){function n(r){vD.forEach(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!kD(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return vD.forEach(e.nodes(),n),e.nodeCount()}function rBe(e,t){return vD.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return kD(t,n)})}function iBe(e,t,n){vD.forEach(e.nodes(),function(r){t.node(r).rank+=n})}var ic=nr,aBe=rye,oBe=Yq.slack,sBe=Yq.longestPath,cBe=Ho.alg.preorder,lBe=Ho.alg.postorder,uBe=fa.simplify,dBe=Kh;Kh.initLowLimValues=WZ;Kh.initCutValues=$Z;Kh.calcCutValue=iye;Kh.leaveEdge=oye;Kh.enterEdge=sye;Kh.exchangeEdges=cye;function Kh(e){e=uBe(e),sBe(e);var t=aBe(e);WZ(t),$Z(t,e);for(var n,r;n=oye(t);)r=sye(t,e,n),cye(t,e,n,r)}function $Z(e,t){var n=lBe(e,e.nodes());n=n.slice(0,n.length-1),ic.forEach(n,function(r){hBe(e,t,r)})}function hBe(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=iye(e,t,n)}function iye(e,t,n){var r=e.node(n),i=r.parent,a=!0,o=t.edge(n,i),s=0;return o||(a=!1,o=t.edge(i,n)),s=o.weight,ic.forEach(t.nodeEdges(n),function(c){var l=c.v===n,u=l?c.w:c.v;if(u!==i){var d=l===a,f=t.edge(c).weight;if(s+=d?f:-f,pBe(e,n,u)){var h=e.edge(n,u).cutvalue;s+=d?-h:h}}}),s}function WZ(e,t){arguments.length<2&&(t=e.nodes()[0]),aye(e,{},1,t)}function aye(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,ic.forEach(e.neighbors(r),function(s){ic.has(t,s)||(n=aye(e,t,n,s,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function oye(e){return ic.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function sye(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;a.lim>o.lim&&(s=o,c=!0);var l=ic.filter(t.edges(),function(u){return c===doe(e,e.node(u.v),s)&&c!==doe(e,e.node(u.w),s)});return ic.minBy(l,function(u){return oBe(t,u)})}function cye(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),WZ(e),$Z(e,t),fBe(e,t)}function fBe(e,t){var n=ic.find(e.nodes(),function(i){return!t.node(i).parent}),r=cBe(e,n);r=r.slice(1),ic.forEach(r,function(i){var a=e.node(i).parent,o=t.edge(i,a),s=!1;o||(o=t.edge(a,i),s=!0),t.node(i).rank=t.node(a).rank+(s?o.minlen:-o.minlen)})}function pBe(e,t,n){return e.hasEdge(t,n)}function doe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var yBe=Yq,lye=yBe.longestPath,gBe=rye,mBe=dBe,vBe=kBe;function kBe(e){switch(e.graph().ranker){case"network-simplex":hoe(e);break;case"tight-tree":wBe(e);break;case"longest-path":xBe(e);break;default:hoe(e)}}var xBe=lye;function wBe(e){lye(e),gBe(e)}function hoe(e){mBe(e)}var tG=nr,bBe=MBe;function MBe(e){var t=CBe(e);tG.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=SBe(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function SBe(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c,l;c=n;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function CBe(e){var t={},n=0;function r(i){var a=n;tG.forEach(e.children(i),r),t[i]={low:a,lim:n++}}return tG.forEach(e.children(),r),t}var Zs=nr,nG=fa,LBe={run:IBe,cleanup:EBe};function IBe(e){var t=nG.addDummyNode(e,"root",{},"_root"),n=ABe(e),r=Zs.max(Zs.values(n))-1,i=2*r+1;e.graph().nestingRoot=t,Zs.forEach(e.edges(),function(o){e.edge(o).minlen*=i});var a=_Be(e)+1;Zs.forEach(e.children(),function(o){uye(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function uye(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=nG.addBorderNode(e,"_bt"),l=nG.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,Zs.forEach(s,function(d){uye(e,t,n,r,i,a,d);var f=e.node(d),h=f.borderTop?f.borderTop:d,y=f.borderBottom?f.borderBottom:d,v=f.borderTop?r:2*r,k=h!==y?1:i-a[o]+1;e.setEdge(c,h,{weight:v,minlen:k,nestingEdge:!0}),e.setEdge(y,l,{weight:v,minlen:k,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function ABe(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&Zs.forEach(a,function(o){n(o,i+1)}),t[r]=i}return Zs.forEach(e.children(),function(r){n(r,1)}),t}function _Be(e){return Zs.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function EBe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zs.forEach(e.edges(),function(n){var r=e.edge(n);r.nestingEdge&&e.removeEdge(n)})}var LU=nr,PBe=fa,NBe=RBe;function RBe(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&LU.forEach(r,t),LU.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)foe(e,"borderLeft","_bl",n,i,a),foe(e,"borderRight","_br",n,i,a)}}LU.forEach(e.children(),t)}function foe(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=PBe.addDummyNode(e,"border",o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}var ds=nr,jBe={adjust:TBe,undo:DBe};function TBe(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&dye(e)}function DBe(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&qBe(e),(t==="lr"||t==="rl")&&(zBe(e),dye(e))}function dye(e){ds.forEach(e.nodes(),function(t){poe(e.node(t))}),ds.forEach(e.edges(),function(t){poe(e.edge(t))})}function poe(e){var t=e.width;e.width=e.height,e.height=t}function qBe(e){ds.forEach(e.nodes(),function(t){IU(e.node(t))}),ds.forEach(e.edges(),function(t){var n=e.edge(t);ds.forEach(n.points,IU),ds.has(n,"y")&&IU(n)})}function IU(e){e.y=-e.y}function zBe(e){ds.forEach(e.nodes(),function(t){AU(e.node(t))}),ds.forEach(e.edges(),function(t){var n=e.edge(t);ds.forEach(n.points,AU),ds.has(n,"x")&&AU(n)})}function AU(e){var t=e.x;e.x=e.y,e.y=t}var Fs=nr,OBe=FBe;function FBe(e){var t={},n=Fs.filter(e.nodes(),function(s){return!e.children(s).length}),r=Fs.max(Fs.map(n,function(s){return e.node(s).rank})),i=Fs.map(Fs.range(r+1),function(){return[]});function a(s){if(!Fs.has(t,s)){t[s]=!0;var c=e.node(s);i[c.rank].push(s),Fs.forEach(e.successors(s),a)}}var o=Fs.sortBy(n,function(s){return e.node(s).rank});return Fs.forEach(o,a),i}var Ec=nr,BBe=HBe;function HBe(e,t){for(var n=0,r=1;r<t.length;++r)n+=VBe(e,t[r-1],t[r]);return n}function VBe(e,t,n){for(var r=Ec.zipObject(n,Ec.map(n,function(l,u){return u})),i=Ec.flatten(Ec.map(t,function(l){return Ec.sortBy(Ec.map(e.outEdges(l),function(u){return{pos:r[u.w],weight:e.edge(u).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var o=2*a-1;a-=1;var s=Ec.map(new Array(o),function(){return 0}),c=0;return Ec.forEach(i.forEach(function(l){var u=l.pos+a;s[u]+=l.weight;for(var d=0;u>0;)u%2&&(d+=s[u+1]),u=u-1>>1,s[u]+=l.weight;c+=l.weight*d})),c}var yoe=nr,UBe=$Be;function $Be(e,t){return yoe.map(t,function(n){var r=e.inEdges(n);if(r.length){var i=yoe.reduce(r,function(a,o){var s=e.edge(o),c=e.node(o.v);return{sum:a.sum+s.weight*c.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}var Ra=nr,WBe=GBe;function GBe(e,t){var n={};Ra.forEach(e,function(i,a){var o=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};Ra.isUndefined(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),Ra.forEach(t.edges(),function(i){var a=n[i.v],o=n[i.w];!Ra.isUndefined(a)&&!Ra.isUndefined(o)&&(o.indegree++,a.out.push(n[i.w]))});var r=Ra.filter(n,function(i){return!i.indegree});return KBe(r)}function KBe(e){var t=[];function n(a){return function(o){o.merged||(Ra.isUndefined(o.barycenter)||Ra.isUndefined(a.barycenter)||o.barycenter>=a.barycenter)&&ZBe(a,o)}}function r(a){return function(o){o.in.push(a),--o.indegree===0&&e.push(o)}}for(;e.length;){var i=e.pop();t.push(i),Ra.forEach(i.in.reverse(),n(i)),Ra.forEach(i.out,r(i))}return Ra.map(Ra.filter(t,function(a){return!a.merged}),function(a){return Ra.pick(a,["vs","i","barycenter","weight"])})}function ZBe(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var K0=nr,XBe=fa,YBe=JBe;function JBe(e,t){var n=XBe.partition(e,function(u){return K0.has(u,"barycenter")}),r=n.lhs,i=K0.sortBy(n.rhs,function(u){return-u.i}),a=[],o=0,s=0,c=0;r.sort(QBe(!!t)),c=goe(a,i,c),K0.forEach(r,function(u){c+=u.vs.length,a.push(u.vs),o+=u.barycenter*u.weight,s+=u.weight,c=goe(a,i,c)});var l={vs:K0.flatten(a,!0)};return s&&(l.barycenter=o/s,l.weight=s),l}function goe(e,t,n){for(var r;t.length&&(r=K0.last(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function QBe(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}var Oc=nr,eHe=UBe,tHe=WBe,nHe=YBe,rHe=hye;function hye(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=Oc.filter(i,function(y){return y!==o&&y!==s}));var l=eHe(e,i);Oc.forEach(l,function(y){if(e.children(y.v).length){var v=hye(e,y.v,n,r);c[y.v]=v,Oc.has(v,"barycenter")&&aHe(y,v)}});var u=tHe(l,n);iHe(u,c);var d=nHe(u,r);if(o&&(d.vs=Oc.flatten([o,d.vs,s],!0),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),h=e.node(e.predecessors(s)[0]);Oc.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+h.order)/(d.weight+2),d.weight+=2}return d}function iHe(e,t){Oc.forEach(e,function(n){n.vs=Oc.flatten(n.vs.map(function(r){return t[r]?t[r].vs:r}),!0)})}function aHe(e,t){Oc.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var Z0=nr,oHe=Ho.Graph,sHe=cHe;function cHe(e,t,n){var r=lHe(e),i=new oHe({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(a){return e.node(a)});return Z0.forEach(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),Z0.forEach(e[n](a),function(c){var l=c.v===a?c.w:c.v,u=i.edge(l,a),d=Z0.isUndefined(u)?0:u.weight;i.setEdge(l,a,{weight:e.edge(c).weight+d})}),Z0.has(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function lHe(e){for(var t;e.hasNode(t=Z0.uniqueId("_root")););return t}var uHe=nr,dHe=hHe;function hHe(e,t,n){var r={},i;uHe.forEach(n,function(a){for(var o=e.parent(a),s,c;o;){if(s=e.parent(o),s?(c=r[s],r[s]=o):(c=i,i=o),c&&c!==o){t.setEdge(c,o);return}o=s}})}var el=nr,fHe=OBe,pHe=BBe,yHe=rHe,gHe=sHe,mHe=dHe,vHe=Ho.Graph,moe=fa,kHe=xHe;function xHe(e){var t=moe.maxRank(e),n=voe(e,el.range(1,t+1),"inEdges"),r=voe(e,el.range(t-1,-1,-1),"outEdges"),i=fHe(e);koe(e,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,c=0;c<4;++s,++c){wHe(s%2?n:r,s%4>=2),i=moe.buildLayerMatrix(e);var l=pHe(e,i);l<a&&(c=0,o=el.cloneDeep(i),a=l)}koe(e,o)}function voe(e,t,n){return el.map(t,function(r){return gHe(e,r,n)})}function wHe(e,t){var n=new vHe;el.forEach(e,function(r){var i=r.graph().root,a=yHe(r,i,n,t);el.forEach(a.vs,function(o,s){r.node(o).order=s}),mHe(r,n,a.vs)})}function koe(e,t){el.forEach(t,function(n){el.forEach(n,function(r,i){e.node(r).order=i})})}var Bt=nr,bHe=Ho.Graph,MHe=fa,SHe={positionX:THe};function CHe(e,t){var n={};function r(i,a){var o=0,s=0,c=i.length,l=Bt.last(a);return Bt.forEach(a,function(u,d){var f=IHe(e,u),h=f?e.node(f).order:c;(f||u===l)&&(Bt.forEach(a.slice(s,d+1),function(y){Bt.forEach(e.predecessors(y),function(v){var k=e.node(v),g=k.order;(g<o||h<g)&&!(k.dummy&&e.node(y).dummy)&&fye(n,v,y)})}),s=d+1,o=h)}),a}return Bt.reduce(t,r),n}function LHe(e,t){var n={};function r(a,o,s,c,l){var u;Bt.forEach(Bt.range(o,s),function(d){u=a[d],e.node(u).dummy&&Bt.forEach(e.predecessors(u),function(f){var h=e.node(f);h.dummy&&(h.order<c||h.order>l)&&fye(n,f,u)})})}function i(a,o){var s=-1,c,l=0;return Bt.forEach(o,function(u,d){if(e.node(u).dummy==="border"){var f=e.predecessors(u);f.length&&(c=e.node(f[0]).order,r(o,l,d,s,c),l=d,s=c)}r(o,l,o.length,c,a.length)}),o}return Bt.reduce(t,i),n}function IHe(e,t){if(e.node(t).dummy)return Bt.find(e.predecessors(t),function(n){return e.node(n).dummy})}function fye(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function AHe(e,t,n){if(t>n){var r=t;t=n,n=r}return Bt.has(e[t],n)}function _He(e,t,n,r){var i={},a={},o={};return Bt.forEach(t,function(s){Bt.forEach(s,function(c,l){i[c]=c,a[c]=c,o[c]=l})}),Bt.forEach(t,function(s){var c=-1;Bt.forEach(s,function(l){var u=r(l);if(u.length){u=Bt.sortBy(u,function(v){return o[v]});for(var d=(u.length-1)/2,f=Math.floor(d),h=Math.ceil(d);f<=h;++f){var y=u[f];a[l]===l&&c<o[y]&&!AHe(n,l,y)&&(a[y]=l,a[l]=i[l]=i[y],c=o[y])}}})}),{root:i,align:a}}function EHe(e,t,n,r,i){var a={},o=PHe(e,t,n,i),s=i?"borderLeft":"borderRight";function c(d,f){for(var h=o.nodes(),y=h.pop(),v={};y;)v[y]?d(y):(v[y]=!0,h.push(y),h=h.concat(f(y))),y=h.pop()}function l(d){a[d]=o.inEdges(d).reduce(function(f,h){return Math.max(f,a[h.v]+o.edge(h))},0)}function u(d){var f=o.outEdges(d).reduce(function(y,v){return Math.min(y,a[v.w]-o.edge(v))},Number.POSITIVE_INFINITY),h=e.node(d);f!==Number.POSITIVE_INFINITY&&h.borderType!==s&&(a[d]=Math.max(a[d],f))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),Bt.forEach(r,function(d){a[d]=a[n[d]]}),a}function PHe(e,t,n,r){var i=new bHe,a=e.graph(),o=DHe(a.nodesep,a.edgesep,r);return Bt.forEach(t,function(s){var c;Bt.forEach(s,function(l){var u=n[l];if(i.setNode(u),c){var d=n[c],f=i.edge(d,u);i.setEdge(d,u,Math.max(o(e,l,c),f||0))}c=l})}),i}function NHe(e,t){return Bt.minBy(Bt.values(t),function(n){var r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Bt.forIn(n,function(a,o){var s=qHe(e,o)/2;r=Math.max(a+s,r),i=Math.min(a-s,i)}),r-i})}function RHe(e,t){var n=Bt.values(t),r=Bt.min(n),i=Bt.max(n);Bt.forEach(["u","d"],function(a){Bt.forEach(["l","r"],function(o){var s=a+o,c=e[s],l;if(c!==t){var u=Bt.values(c);l=o==="l"?r-Bt.min(u):i-Bt.max(u),l&&(e[s]=Bt.mapValues(c,function(d){return d+l}))}})})}function jHe(e,t){return Bt.mapValues(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=Bt.sortBy(Bt.map(e,r));return(i[1]+i[2])/2})}function THe(e){var t=MHe.buildLayerMatrix(e),n=Bt.merge(CHe(e,t),LHe(e,t)),r={},i;Bt.forEach(["u","d"],function(o){i=o==="u"?t:Bt.values(t).reverse(),Bt.forEach(["l","r"],function(s){s==="r"&&(i=Bt.map(i,function(d){return Bt.values(d).reverse()}));var c=(o==="u"?e.predecessors:e.successors).bind(e),l=_He(e,i,n,c),u=EHe(e,i,l.root,l.align,s==="r");s==="r"&&(u=Bt.mapValues(u,function(d){return-d})),r[o+s]=u})});var a=NHe(e,r);return RHe(r,a),jHe(r,e.graph().align)}function DHe(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Bt.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":l=-o.width/2;break;case"r":l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Bt.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":l=s.width/2;break;case"r":l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function qHe(e,t){return e.node(t).width}var X0=nr,pye=fa,zHe=SHe.positionX,OHe=FHe;function FHe(e){e=pye.asNonCompoundGraph(e),BHe(e),X0.forEach(zHe(e),function(t,n){e.node(n).x=t})}function BHe(e){var t=pye.buildLayerMatrix(e),n=e.graph().ranksep,r=0;X0.forEach(t,function(i){var a=X0.max(X0.map(i,function(o){return e.node(o).height}));X0.forEach(i,function(o){e.node(o).y=r+a/2}),r+=a+n})}var Xt=nr,xoe=PFe,woe=KFe,HHe=vBe,VHe=fa.normalizeRanks,UHe=bBe,$He=fa.removeEmptyRanks,boe=LBe,WHe=NBe,Moe=jBe,GHe=kHe,KHe=OHe,ll=fa,ZHe=Ho.Graph,XHe=YHe;function YHe(e,t){var n=t&&t.debugTiming?ll.time:ll.notime;n("layout",function(){var r=n(" buildLayoutGraph",function(){return cVe(e)});n(" runLayout",function(){JHe(r,n)}),n(" updateInputGraph",function(){QHe(e,r)})})}function JHe(e,t){t(" makeSpaceForEdgeLabels",function(){lVe(e)}),t(" removeSelfEdges",function(){vVe(e)}),t(" acyclic",function(){xoe.run(e)}),t(" nestingGraph.run",function(){boe.run(e)}),t(" rank",function(){HHe(ll.asNonCompoundGraph(e))}),t(" injectEdgeLabelProxies",function(){uVe(e)}),t(" removeEmptyRanks",function(){$He(e)}),t(" nestingGraph.cleanup",function(){boe.cleanup(e)}),t(" normalizeRanks",function(){VHe(e)}),t(" assignRankMinMax",function(){dVe(e)}),t(" removeEdgeLabelProxies",function(){hVe(e)}),t(" normalize.run",function(){woe.run(e)}),t(" parentDummyChains",function(){UHe(e)}),t(" addBorderSegments",function(){WHe(e)}),t(" order",function(){GHe(e)}),t(" insertSelfEdges",function(){kVe(e)}),t(" adjustCoordinateSystem",function(){Moe.adjust(e)}),t(" position",function(){KHe(e)}),t(" positionSelfEdges",function(){xVe(e)}),t(" removeBorderNodes",function(){mVe(e)}),t(" normalize.undo",function(){woe.undo(e)}),t(" fixupEdgeLabelCoords",function(){yVe(e)}),t(" undoCoordinateSystem",function(){Moe.undo(e)}),t(" translateGraph",function(){fVe(e)}),t(" assignNodeIntersects",function(){pVe(e)}),t(" reversePoints",function(){gVe(e)}),t(" acyclic.undo",function(){xoe.undo(e)})}function QHe(e,t){Xt.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),Xt.forEach(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Xt.has(i,"x")&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var eVe=["nodesep","edgesep","ranksep","marginx","marginy"],tVe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nVe=["acyclicer","ranker","rankdir","align"],rVe=["width","height"],iVe={width:0,height:0},aVe=["minlen","weight","width","height","labeloffset"],oVe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},sVe=["labelpos"];function cVe(e){var t=new ZHe({multigraph:!0,compound:!0}),n=EU(e.graph());return t.setGraph(Xt.merge({},tVe,_U(n,eVe),Xt.pick(n,nVe))),Xt.forEach(e.nodes(),function(r){var i=EU(e.node(r));t.setNode(r,Xt.defaults(_U(i,rVe),iVe)),t.setParent(r,e.parent(r))}),Xt.forEach(e.edges(),function(r){var i=EU(e.edge(r));t.setEdge(r,Xt.merge({},oVe,_U(i,aVe),Xt.pick(i,sVe)))}),t}function lVe(e){var t=e.graph();t.ranksep/=2,Xt.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function uVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w),a={rank:(i.rank-r.rank)/2+r.rank,e:t};ll.addDummyNode(e,"edge-proxy",a,"_ep")}})}function dVe(e){var t=0;Xt.forEach(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Xt.max(t,r.maxRank))}),e.graph().maxRank=t}function hVe(e){Xt.forEach(e.nodes(),function(t){var n=e.node(t);n.dummy==="edge-proxy"&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function fVe(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(l){var u=l.x,d=l.y,f=l.width,h=l.height;t=Math.min(t,u-f/2),n=Math.max(n,u+f/2),r=Math.min(r,d-h/2),i=Math.max(i,d+h/2)}Xt.forEach(e.nodes(),function(l){c(e.node(l))}),Xt.forEach(e.edges(),function(l){var u=e.edge(l);Xt.has(u,"x")&&c(u)}),t-=o,r-=s,Xt.forEach(e.nodes(),function(l){var u=e.node(l);u.x-=t,u.y-=r}),Xt.forEach(e.edges(),function(l){var u=e.edge(l);Xt.forEach(u.points,function(d){d.x-=t,d.y-=r}),Xt.has(u,"x")&&(u.x-=t),Xt.has(u,"y")&&(u.y-=r)}),a.width=n-t+o,a.height=i-r+s}function pVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(ll.intersectRect(r,a)),n.points.push(ll.intersectRect(i,o))})}function yVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);if(Xt.has(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function gVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function mVe(e){Xt.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(Xt.last(n.borderLeft)),o=e.node(Xt.last(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),Xt.forEach(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function vVe(e){Xt.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function kVe(e){var t=ll.buildLayerMatrix(e);Xt.forEach(t,function(n){var r=0;Xt.forEach(n,function(i,a){var o=e.node(i);o.order=a+r,Xt.forEach(o.selfEdges,function(s){ll.addDummyNode(e,"selfedge",{width:s.label.width,height:s.label.height,rank:o.rank,order:a+ ++r,e:s.e,label:s.label},"_se")}),delete o.selfEdges})})}function xVe(e){Xt.forEach(e.nodes(),function(t){var n=e.node(t);if(n.dummy==="selfedge"){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function _U(e,t){return Xt.mapValues(Xt.pick(e,t),Number)}function EU(e){var t={};return Xt.forEach(e,function(n,r){t[r.toLowerCase()]=n}),t}var Mm=nr,wVe=fa,bVe=Ho.Graph,MVe={debugOrdering:SVe};function SVe(e){var t=wVe.buildLayerMatrix(e),n=new bVe({compound:!0,multigraph:!0}).setGraph({});return Mm.forEach(e.nodes(),function(r){n.setNode(r,{label:r}),n.setParent(r,"layer"+e.node(r).rank)}),Mm.forEach(e.edges(),function(r){n.setEdge(r.v,r.w,{},r.name)}),Mm.forEach(t,function(r,i){var a="layer"+i;n.setNode(a,{rank:"same"}),Mm.reduce(r,function(o,s){return n.setEdge(o,s,{style:"invis"}),s})}),n}var CVe="0.8.5",LVe={graphlib:Ho,layout:XHe,debug:MVe,util:{time:fa.time,notime:fa.notime},version:CVe};const Soe=Rf(LVe),PU={direction:"LR",nodesep:60,ranksep:140},IVe=(e,t,n)=>{const r=new Map;if(e.length===0)return r;if(e.length===1){const u=e[0];return u&&r.set(u.id,{x:u.position.x,y:u.position.y}),r}const i=PU.direction,a=PU.nodesep,o=PU.ranksep,s=new Soe.graphlib.Graph({multigraph:!0});s.setGraph({rankdir:i,nodesep:a,ranksep:o}),s.setDefaultEdgeLabel(()=>({}));const c=new Set;for(const u of e)s.setNode(u.id,{width:u.width,height:u.height}),c.add(u.id);let l=0;for(const u of t)!c.has(u.source)||!c.has(u.target)||s.setEdge(u.source,u.target,{},`e${l++}`);Soe.layout(s);for(const u of e){const d=s.node(u.id);d&&r.set(u.id,{x:d.x-u.width/2,y:d.y-u.height/2})}return r};function AVe({nodes:e,connectors:t,flowPos:n,nodeIdGen:r,connectorIdGen:i,defaultOffset:a={x:24,y:24}}){const o=new Map;for(const h of e)o.set(h.id,r(h.id));let s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;for(const h of e)h.position.x<s&&(s=h.position.x),h.position.y<c&&(c=h.position.y);Number.isFinite(s)||(s=0),Number.isFinite(c)||(c=0);const l=n?n.x-s:a.x,u=n?n.y-c:a.y,d=e.map(h=>{const y=o.get(h.id);if(y===void 0)throw new Error(`paste id missing for ${h.id}`);return{...h,id:y,position:{x:h.position.x+l,y:h.position.y+u}}}),f=t.map(h=>{const y=i(h.id);return{...h,id:y,source:o.get(h.source)??h.source,target:o.get(h.target)??h.target}});return{newNodes:d,newConnectors:f,idMap:o}}function _Ve(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const EVe=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function tl(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let y2=null;function yye(e={}){return y2||(e.includeStyleProperties?(y2=e.includeStyleProperties,y2):(y2=tl(window.getComputedStyle(document.documentElement)),y2))}function xD(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function PVe(e){const t=xD(e,"border-left-width"),n=xD(e,"border-right-width");return e.clientWidth+t+n}function NVe(e){const t=xD(e,"border-top-width"),n=xD(e,"border-bottom-width");return e.clientHeight+t+n}function gye(e,t={}){const n=t.width||PVe(e),r=t.height||NVe(e);return{width:n,height:r}}function RVe(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Aa=16384;function jVe(e){(e.width>Aa||e.height>Aa)&&(e.width>Aa&&e.height>Aa?e.width>e.height?(e.height*=Aa/e.width,e.width=Aa):(e.width*=Aa/e.height,e.height=Aa):e.width>Aa?(e.height*=Aa/e.width,e.width=Aa):(e.width*=Aa/e.height,e.height=Aa))}function wD(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function TVe(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function DVe(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),TVe(i)}const ha=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ha(n,t)};function qVe(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function zVe(e,t){return yye(t).map(n=>{const r=e.getPropertyValue(n),i=e.getPropertyPriority(n);return`${n}: ${r}${i?" !important":""};`}).join(" ")}function OVe(e,t,n,r){const i=`.${e}:${t}`,a=n.cssText?qVe(n):zVe(n,r);return document.createTextNode(`${i}{${a}}`)}function Coe(e,t,n,r){const i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;const o=EVe();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(OVe(o,n,i,r)),t.appendChild(s)}function FVe(e,t,n){Coe(e,t,":before",n),Coe(e,t,":after",n)}const Loe="application/font-woff",Ioe="image/jpeg",BVe={woff:Loe,woff2:Loe,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ioe,jpeg:Ioe,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function HVe(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function GZ(e){const t=HVe(e).toLowerCase();return BVe[t]||""}function VVe(e){return e.split(/,/)[1]}function rG(e){return e.search(/^(data:)/)!==-1}function UVe(e,t){return`data:${t};base64,${e}`}async function mye(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(n({res:r,result:s.result}))}catch(c){o(c)}},s.readAsDataURL(i)})}const NU={};function $Ve(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function KZ(e,t,n){const r=$Ve(e,t,n.includeQueryParams);if(NU[r]!=null)return NU[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await mye(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),VVe(s)));i=UVe(a,t)}catch(a){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return NU[r]=i,i}async function WVe(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):wD(t)}async function GVe(e,t){if(e.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,o==null||o.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return wD(s)}const n=e.poster,r=GZ(n),i=await KZ(n,r,t);return wD(i)}async function KVe(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await Jq(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function ZVe(e,t){return ha(e,HTMLCanvasElement)?WVe(e):ha(e,HTMLVideoElement)?GVe(e,t):ha(e,HTMLIFrameElement)?KVe(e,t):e.cloneNode(vye(e))}const XVe=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",vye=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function YVe(e,t,n){var r,i;if(vye(t))return t;let a=[];return XVe(e)&&e.assignedNodes?a=tl(e.assignedNodes()):ha(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=tl(e.contentDocument.body.childNodes):a=tl(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||ha(e,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Jq(s,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function JVe(e,t,n){const r=t.style;if(!r)return;const i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):yye(n).forEach(a=>{let o=i.getPropertyValue(a);a==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),ha(e,HTMLIFrameElement)&&a==="display"&&o==="inline"&&(o="block"),a==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(a,o,i.getPropertyPriority(a))})}function QVe(e,t){ha(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ha(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function eUe(e,t){if(ha(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function tUe(e,t,n){return ha(t,Element)&&(JVe(e,t,n),FVe(e,t,n),QVe(e,t),eUe(e,t)),t}async function nUe(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const s=n[a].getAttribute("xlink:href");if(s){const c=e.querySelector(s),l=document.querySelector(s);!c&&l&&!r[s]&&(r[s]=await Jq(l,t,!0))}}const i=Object.values(r);if(i.length){const a="http://www.w3.org/1999/xhtml",o=document.createElementNS(a,"svg");o.setAttribute("xmlns",a),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(a,"defs");o.appendChild(s);for(let c=0;c<i.length;c++)s.appendChild(i[c]);e.appendChild(o)}return e}async function Jq(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>ZVe(r,t)).then(r=>YVe(e,r,t)).then(r=>tUe(e,r,t)).then(r=>nUe(r,t))}const kye=/url\((['"]?)([^'"]+?)\1\)/g,rUe=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,iUe=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function aUe(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function oUe(e){const t=[];return e.replace(kye,(n,r,i)=>(t.push(i),n)),t.filter(n=>!rG(n))}async function sUe(e,t,n,r,i){try{const a=n?_Ve(t,n):t,o=GZ(t);let s;return i||(s=await KZ(a,o,r)),e.replace(aUe(t),`$1${s}$3`)}catch{}return e}function cUe(e,{preferredFontFormat:t}){return t?e.replace(iUe,n=>{for(;;){const[r,,i]=rUe.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function xye(e){return e.search(kye)!==-1}async function wye(e,t,n){if(!xye(e))return e;const r=cUe(e,n);return oUe(r).reduce((a,o)=>a.then(s=>sUe(s,o,t,n)),Promise.resolve(r))}async function g2(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await wye(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function lUe(e,t){await g2("background",e,t)||await g2("background-image",e,t),await g2("mask",e,t)||await g2("-webkit-mask",e,t)||await g2("mask-image",e,t)||await g2("-webkit-mask-image",e,t)}async function uUe(e,t){const n=ha(e,HTMLImageElement);if(!(n&&!rG(e.src))&&!(ha(e,SVGImageElement)&&!rG(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await KZ(r,GZ(r),t);await new Promise((a,o)=>{e.onload=a,e.onerror=t.onImageErrorHandler?(...c)=>{try{a(t.onImageErrorHandler(...c))}catch(l){o(l)}}:o;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function dUe(e,t){const r=tl(e.childNodes).map(i=>bye(i,t));await Promise.all(r).then(()=>e)}async function bye(e,t){ha(e,Element)&&(await lUe(e,t),await uUe(e,t),await dUe(e,t))}function hUe(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const Aoe={};async function _oe(e){let t=Aoe[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},Aoe[e]=t,t}async function Eoe(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),mye(s,t.fetchRequestInit,({result:c})=>(n=n.replace(o,`url(${c})`),[o,c]))});return Promise.all(a).then(()=>n)}function Poe(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=i.exec(r);if(c===null)break;t.push(c[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let c=a.exec(r);if(c===null){if(c=s.exec(r),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(c[0])}return t}async function fUe(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{tl(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const c=a.href,l=_oe(c).then(u=>Eoe(u,t)).then(u=>Poe(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(l)}})}catch(a){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&r.push(_oe(i.href).then(s=>Eoe(s,t)).then(s=>Poe(s).forEach(c=>{o.insertRule(c,o.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{tl(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function pUe(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>xye(t.style.getPropertyValue("src")))}async function yUe(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=tl(e.ownerDocument.styleSheets),r=await fUe(n,t);return pUe(r)}function Mye(e){return e.trim().replace(/["']/g,"")}function gUe(e){const t=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(a=>{t.add(Mye(a))}),Array.from(r.children).forEach(a=>{a instanceof HTMLElement&&n(a)})}return n(e),t}async function mUe(e,t){const n=await yUe(e,t),r=gUe(e);return(await Promise.all(n.filter(a=>r.has(Mye(a.style.fontFamily))).map(a=>{const o=a.parentStyleSheet?a.parentStyleSheet.href:null;return wye(a.cssText,o,t)}))).join(`
|
|
7836
|
+
`)}},g=_=>{_.preventDefault();const A=_.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},S=_=>{},w=()=>{if(f.current){f.current=!1;return}y()},C=()=>{l||u(!0)};return x.jsx("div",{className:"relative","data-testid":a,"data-editing":l?"true":"false",children:l?x.jsx("div",{ref:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,spellCheck:!1,tabIndex:0,onKeyDown:k,onPaste:g,onInput:S,onBlur:w,"data-testid":`${a}-editor`,className:Ze("block w-full whitespace-pre-wrap break-words rounded-md px-2 py-1.5 text-sm outline-none",s),role:"textbox","aria-multiline":r?"true":"false","aria-label":i}):x.jsx("button",{type:"button",onClick:C,"aria-label":`Edit ${i.toLowerCase()}`,className:Ze("block w-full cursor-text rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted/50",h?"italic text-muted-foreground/50":"text-foreground",!c&&"whitespace-pre-wrap break-words",s),children:h?n:c?x.jsx(cte,{value:t}):t})})}function cDe({projectId:e,htmlPath:t}){const[n,r]=M.useState({kind:"idle"}),i=async(o,s)=>{try{await navigator.clipboard.writeText(o),r({kind:"copied",message:s}),setTimeout(()=>r({kind:"idle"}),1200)}catch(c){r({kind:"error",message:c instanceof Error?c.message:"Clipboard write failed"})}},a=async o=>{r({kind:"pending"});try{const s=o==="open"?await K4e(e,t):await Z4e(e,t);if(s.ok){r({kind:"idle"});return}const c=o==="open"?"Copied path — paste into your editor":"Copied path to clipboard";await i(s.absPath,c)}catch(s){r({kind:"error",message:s instanceof Error?s.message:String(s)})}};return x.jsxs("div",{className:"flex flex-col gap-2 rounded-md border bg-card px-3 py-2 text-xs","data-testid":"detail-panel-html-node",children:[x.jsxs("div",{className:"flex flex-col gap-1",children:[x.jsx("span",{className:"font-medium tracking-wide text-[10px] text-muted-foreground",children:"Path"}),x.jsx("code",{"data-testid":"detail-panel-html-path",className:"block break-all rounded bg-muted/40 px-2 py-1 font-mono text-[11px]",children:t})]}),x.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x.jsxs(oi,{type:"button",size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2",onClick:()=>{a("open")},disabled:n.kind==="pending","data-testid":"detail-panel-html-open","aria-label":"Open in editor",children:[x.jsx(xp,{className:"h-3.5 w-3.5"}),"Open in editor"]}),x.jsxs(oi,{type:"button",size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2",onClick:()=>{a("reveal")},disabled:n.kind==="pending","data-testid":"detail-panel-html-reveal","aria-label":"Reveal in Finder/Explorer",children:[x.jsx(fp,{className:"h-3.5 w-3.5"}),"Reveal"]})]}),n.kind==="copied"||n.kind==="error"?x.jsx("div",{"data-testid":"detail-panel-html-status","data-status":n.kind,className:Ze("text-[11px]",n.kind==="copied"?"text-muted-foreground":"text-destructive"),children:n.message??""}):null]})}function lDe(e,t){const n=Math.max(0,t-e);if(n<1e3)return"just now";const r=Math.floor(n/1e3);if(r<60)return`${r}s ago`;const i=Math.floor(r/60);if(i<60)return`${i}m ago`;const a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function uDe(e){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function dDe({report:e,now:t=Date.now()}){const n=e.data?Object.entries(e.data):[];return x.jsxs("section",{className:"flex flex-col gap-2 rounded-md border bg-card px-3 py-2 text-xs","data-testid":"detail-panel-status","data-state":e.state,children:[x.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x.jsx(Khe,{state:e.state,summary:e.summary,"data-testid":"detail-panel-status-badge"}),x.jsx("span",{className:"shrink-0 text-[10px] text-muted-foreground","data-testid":"detail-panel-status-relative-time",children:`Last updated: ${lDe(e.ts,t)}`})]}),e.detail?x.jsx("div",{"data-testid":"detail-panel-status-detail",className:"whitespace-pre-wrap break-words rounded bg-muted/40 px-2 py-1 text-[11px] text-foreground",children:e.detail}):null,n.length>0?x.jsx("dl",{"data-testid":"detail-panel-status-data",className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[11px]",children:n.map(([r,i])=>x.jsxs("div",{className:"contents","data-testid":"detail-panel-status-data-row",children:[x.jsx("dt",{className:"truncate font-medium text-muted-foreground",children:r}),x.jsx("dd",{className:"break-all font-mono text-foreground",children:uDe(i)})]},r))}):null]})}function cte({value:e}){return x.jsx(GRe,{remarkPlugins:[oDe],components:{h1:({children:t})=>x.jsx("h1",{className:"mb-1 text-base font-bold leading-snug",children:t}),h2:({children:t})=>x.jsx("h2",{className:"mb-1 text-sm font-semibold leading-snug",children:t}),h3:({children:t})=>x.jsx("h3",{className:"mb-0.5 text-sm font-medium leading-snug",children:t}),p:({children:t})=>x.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>x.jsx("ul",{className:"mb-2 list-disc pl-4 last:mb-0",children:t}),ol:({children:t})=>x.jsx("ol",{className:"mb-2 list-decimal pl-4 last:mb-0",children:t}),li:({children:t})=>x.jsx("li",{className:"mb-0.5",children:t}),code:({children:t,className:n})=>(n==null?void 0:n.includes("language-"))?x.jsx("code",{className:"block overflow-x-auto rounded bg-muted/60 px-2 py-1 font-mono text-xs",children:t}):x.jsx("code",{className:"rounded bg-muted/60 px-1 py-0.5 font-mono text-xs",children:t}),pre:({children:t})=>x.jsx("pre",{className:"mb-2 last:mb-0",children:t}),blockquote:({children:t})=>x.jsx("blockquote",{className:"mb-2 border-l-2 border-muted-foreground/30 pl-3 italic text-muted-foreground last:mb-0",children:t}),a:({href:t,children:n})=>x.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"text-primary underline underline-offset-2",children:n}),strong:({children:t})=>x.jsx("strong",{className:"font-semibold",children:t}),em:({children:t})=>x.jsx("em",{className:"italic",children:t}),hr:()=>x.jsx("hr",{className:"my-2 border-border"}),table:({children:t})=>x.jsx("div",{className:"mb-2 overflow-x-auto last:mb-0",children:x.jsx("table",{className:"w-full border-collapse text-xs",children:t})}),th:({children:t})=>x.jsx("th",{className:"border border-border bg-muted/40 px-2 py-1 text-left font-medium",children:t}),td:({children:t})=>x.jsx("td",{className:"border border-border px-2 py-1",children:t})},children:e})}function hDe({connector:e}){return x.jsx("div",{className:"rounded-md border bg-card px-3 py-2 text-xs",children:x.jsxs("dl",{className:"divide-y",children:[x.jsx(Jo,{label:"Source",value:e.source}),x.jsx(Jo,{label:"Target",value:e.target}),x.jsx(Jo,{label:"Kind",value:e.kind}),e.label?x.jsx(Jo,{label:"Label",value:e.label}):null,e.style?x.jsx(Jo,{label:"Style",value:e.style}):null,e.color?x.jsx(Jo,{label:"Color",value:e.color}):null,e.direction?x.jsx(Jo,{label:"Direction",value:e.direction}):null,e.kind==="http"&&e.url?x.jsx(Jo,{label:"URL",value:`${e.method??"GET"} ${e.url}`}):null,e.kind==="event"?x.jsx(Jo,{label:"Event",value:e.eventName}):null,e.kind==="queue"?x.jsx(Jo,{label:"Queue",value:e.queueName}):null]})})}function Jo({label:e,value:t}){return x.jsxs("div",{className:"flex items-start gap-3 py-2 first:pt-0 last:pb-0",children:[x.jsx("dt",{className:"w-20 shrink-0 font-medium text-muted-foreground",children:e}),x.jsx("dd",{className:"flex-1 break-all font-mono",children:t})]})}var ji=Uint8Array,qa=Uint16Array,SZ=Int32Array,CZ=new ji([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),LZ=new ji([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),lte=new ji([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),P0e=function(e,t){for(var n=new qa(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new SZ(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},N0e=P0e(CZ,2),fDe=N0e.b,KW=N0e.r;fDe[28]=258,KW[258]=28;var pDe=P0e(LZ,0),ute=pDe.r,ZW=new qa(32768);for(var Kn=0;Kn<32768;++Kn){var _c=(Kn&43690)>>1|(Kn&21845)<<1;_c=(_c&52428)>>2|(_c&13107)<<2,_c=(_c&61680)>>4|(_c&3855)<<4,ZW[Kn]=((_c&65280)>>8|(_c&255)<<8)>>1}var Hp=function(e,t,n){for(var r=e.length,i=0,a=new qa(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new qa(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new qa(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[ZW[d]>>c]=l}else for(s=new qa(r),i=0;i<r;++i)e[i]&&(s[i]=ZW[o[e[i]-1]++]>>15-e[i]);return s},Th=new ji(288);for(var Kn=0;Kn<144;++Kn)Th[Kn]=8;for(var Kn=144;Kn<256;++Kn)Th[Kn]=9;for(var Kn=256;Kn<280;++Kn)Th[Kn]=7;for(var Kn=280;Kn<288;++Kn)Th[Kn]=8;var yD=new ji(32);for(var Kn=0;Kn<32;++Kn)yD[Kn]=5;var yDe=Hp(Th,9,0),gDe=Hp(yD,5,0),R0e=function(e){return(e+7)/8|0},j0e=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new ji(e.subarray(t,n))},mDe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pq=function(e,t,n){var r=new Error(t||mDe[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Pq),!n)throw r;return r},Os=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},T0=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},qO=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:D0e,l:0};if(i==1){var o=new ji(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(_,A){return _.f-A.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var h=new qa(f+1),y=XW(n[u-1],h,0);if(y>t){var r=0,v=0,k=y-t,g=1<<k;for(a.sort(function(A,j){return h[j.s]-h[A.s]||A.f-j.f});r<i;++r){var S=a[r].s;if(h[S]>t)v+=g-(1<<y-h[S]),h[S]=t;else break}for(v>>=k;v>0;){var w=a[r].s;h[w]<t?v-=1<<t-h[w]++-1:++r}for(;r>=0&&v;--r){var C=a[r].s;h[C]==t&&(--h[C],++v)}y=t}return{t:new ji(h),l:y}},XW=function(e,t,n){return e.s==-1?Math.max(XW(e.l,t,n+1),XW(e.r,t,n+1)):t[e.s]=n},dte=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new qa(++t),r=0,i=e[0],a=1,o=function(c){n[r++]=c},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},D0=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},T0e=function(e,t,n){var r=n.length,i=R0e(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},hte=function(e,t,n,r,i,a,o,s,c,l,u){Os(t,u++,n),++i[256];for(var d=qO(i,15),f=d.t,h=d.l,y=qO(a,15),v=y.t,k=y.l,g=dte(f),S=g.c,w=g.n,C=dte(v),_=C.c,A=C.n,j=new qa(19),O=0;O<S.length;++O)++j[S[O]&31];for(var O=0;O<_.length;++O)++j[_[O]&31];for(var T=qO(j,7),D=T.t,I=T.l,R=19;R>4&&!D[lte[R-1]];--R);var U=l+5<<3,q=D0(i,Th)+D0(a,yD)+o,K=D0(i,f)+D0(a,v)+o+14+3*R+D0(j,D)+2*j[16]+3*j[17]+7*j[18];if(c>=0&&U<=q&&U<=K)return T0e(t,u,e.subarray(c,c+l));var Z,$,B,V;if(Os(t,u,1+(K<q)),u+=2,K<q){Z=Hp(f,h,0),$=f,B=Hp(v,k,0),V=v;var F=Hp(D,I,0);Os(t,u,w-257),Os(t,u+5,A-1),Os(t,u+10,R-4),u+=14;for(var O=0;O<R;++O)Os(t,u+3*O,D[lte[O]]);u+=3*R;for(var ie=[S,_],N=0;N<2;++N)for(var P=ie[N],O=0;O<P.length;++O){var G=P[O]&31;Os(t,u,F[G]),u+=D[G],G>15&&(Os(t,u,P[O]>>5&127),u+=P[O]>>12)}}else Z=yDe,$=Th,B=gDe,V=yD;for(var O=0;O<s;++O){var J=r[O];if(J>255){var G=J>>18&31;T0(t,u,Z[G+257]),u+=$[G+257],G>7&&(Os(t,u,J>>23&31),u+=CZ[G]);var X=J&31;T0(t,u,B[X]),u+=V[X],X>3&&(T0(t,u,J>>5&8191),u+=LZ[X])}else T0(t,u,Z[J]),u+=$[J]}return T0(t,u,Z[256]),u+$[256]},vDe=new SZ([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D0e=new ji(0),kDe=function(e,t,n,r,i,a){var o=a.z||e.length,s=new ji(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=vDe[t-1],f=d>>13,h=d&8191,y=(1<<n)-1,v=a.p||new qa(32768),k=a.h||new qa(y+1),g=Math.ceil(n/3),S=2*g,w=function($e){return(e[$e]^e[$e+1]<<g^e[$e+2]<<S)&y},C=new SZ(25e3),_=new qa(288),A=new qa(32),j=0,O=0,T=a.i||0,D=0,I=a.w||0,R=0;T+2<o;++T){var U=w(T),q=T&32767,K=k[U];if(v[q]=K,k[U]=q,I<=T){var Z=o-T;if((j>7e3||D>24576)&&(Z>423||!l)){u=hte(e,c,0,C,_,A,O,D,R,T-R,u),D=j=O=0,R=T;for(var $=0;$<286;++$)_[$]=0;for(var $=0;$<30;++$)A[$]=0}var B=2,V=0,F=h,ie=q-K&32767;if(Z>2&&U==w(T-ie))for(var N=Math.min(f,Z)-1,P=Math.min(32767,T),G=Math.min(258,Z);ie<=P&&--F&&q!=K;){if(e[T+B]==e[T+B-ie]){for(var J=0;J<G&&e[T+J]==e[T+J-ie];++J);if(J>B){if(B=J,V=ie,J>N)break;for(var X=Math.min(ie,J-2),ae=0,$=0;$<X;++$){var re=T-ie+$&32767,fe=v[re],ke=re-fe&32767;ke>ae&&(ae=ke,K=re)}}}q=K,K=v[q],ie+=q-K&32767}if(V){C[D++]=268435456|KW[B]<<18|ute[V];var Ne=KW[B]&31,je=ute[V]&31;O+=CZ[Ne]+LZ[je],++_[257+Ne],++A[je],I=T+B,++j}else C[D++]=e[T],++_[e[T]]}}for(T=Math.max(T,I);T<o;++T)C[D++]=e[T],++_[e[T]];u=hte(e,c,l,C,_,A,O,D,R,T-R,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=k,a.p=v,a.i=T,a.w=I)}else{for(var T=a.w||0;T<o+l;T+=65535){var Re=T+65535;Re>=o&&(c[u/8|0]=l,Re=o),u=T0e(c,u+1,e.subarray(T,Re))}a.i=o}return j0e(s,0,r+R0e(u)+i)},xDe=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e}(),wDe=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=xDe[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},q0e=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},z0e=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new ji(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return kDe(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},O0e=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Xr=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},bDe=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=q0e();i.p(t.dictionary),Xr(e,2,i.d())}};function MDe(e,t){return z0e(e,t||{},0,0)}function YW(e,t){t||(t={});var n=q0e();n.p(e);var r=z0e(e,t,t.dictionary?6:2,4);return bDe(r,t),Xr(r,r.length-4,n.d()),r}var F0e=function(e,t,n,r){for(var i in e){var a=e[i],o=t+i,s=r;Array.isArray(a)&&(s=O0e(r,a[1]),a=a[0]),a instanceof ji?n[o]=[a,s]:(n[o+="/"]=[new ji(0),s],F0e(a,o,n,r))}},fte=typeof TextEncoder<"u"&&new TextEncoder,SDe=typeof TextDecoder<"u"&&new TextDecoder,CDe=0;try{SDe.decode(D0e,{stream:!0}),CDe=1}catch{}function JW(e,t){var n;if(fte)return fte.encode(e);for(var r=e.length,i=new ji(e.length+(e.length>>1)),a=0,o=function(l){i[a++]=l},n=0;n<r;++n){if(a+5>i.length){var s=new ji(a+8+(r-n<<1));s.set(i),i=s}var c=e.charCodeAt(n);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++n)&1023,o(240|c>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|c&63)):(o(224|c>>12),o(128|c>>6&63),o(128|c&63))}return j0e(i,0,a)}var QW=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Pq(9),t+=r+4}return t},pte=function(e,t,n,r,i,a,o,s){var c=r.length,l=n.extra,u=s&&s.length,d=QW(l);Xr(e,t,o!=null?33639248:67324752),t+=4,o!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(a<0&&8),e[t++]=i&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var f=new Date(n.mtime==null?Date.now():n.mtime),h=f.getFullYear()-1980;if((h<0||h>119)&&Pq(10),Xr(e,t,h<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,a!=-1&&(Xr(e,t,n.crc),Xr(e,t+4,a<0?-a-2:a),Xr(e,t+8,n.size)),Xr(e,t+12,c),Xr(e,t+14,d),t+=16,o!=null&&(Xr(e,t,u),Xr(e,t+6,n.attrs),Xr(e,t+10,o),t+=14),e.set(r,t),t+=c,d)for(var y in l){var v=l[y],k=v.length;Xr(e,t,+y),Xr(e,t+2,k),e.set(v,t+4),t+=4+k}return u&&(e.set(s,t),t+=u),t},LDe=function(e,t,n,r,i){Xr(e,t,101010256),Xr(e,t+8,n),Xr(e,t+10,n),Xr(e,t+12,r),Xr(e,t+16,i)};function IDe(e,t){t||(t={});var n={},r=[];F0e(e,"",n,t);var i=0,a=0;for(var o in n){var s=n[o],c=s[0],l=s[1],u=l.level==0?0:8,d=JW(o),f=d.length,h=l.comment,y=h&&JW(h),v=y&&y.length,k=QW(l.extra);f>65535&&Pq(11);var g=u?MDe(c,l):c,S=g.length,w=wDe();w.p(c),r.push(O0e(l,{size:c.length,crc:w.d(),c:g,f:d,m:y,u:f!=o.length||y&&h.length!=v,o:i,compression:u})),i+=30+f+k+S,a+=76+2*(f+k)+(v||0)+S}for(var C=new ji(a+22),_=i,A=a-i,j=0;j<r.length;++j){var d=r[j];pte(C,d.o,d,d.f,d.u,d.c.length);var O=30+d.f.length+QW(d.extra);C.set(d.c,d.o+O),pte(C,i,d,d.f,d.u,d.c.length,d.o,d.m),i+=16+O+(d.m?d.m.length:0)}return LDe(C,i,r.length,A,_),C}const ADe="https://seeflow.dev/api";async function _De(e,t,n,r,i){const a=await Hue(e);if(!a.demo)throw new Error("Demo has no data");const o=a.demo,s=new Set,c=[];for(const y of o.nodes)y.type==="imageNode"&&y.data.path&&!s.has(y.data.path)?(s.add(y.data.path),c.push(y.data.path)):y.type==="htmlNode"&&y.data.htmlPath&&!s.has(y.data.htmlPath)&&(s.add(y.data.htmlPath),c.push(y.data.htmlPath));const u={[r==="link"?"seeflow.private.json":"seeflow.json"]:JW(JSON.stringify(o))};if(i){const y=i.split(",")[1];y&&(u["preview.png"]=Uint8Array.from(atob(y),v=>v.charCodeAt(0)))}for(const y of c){const v=await fetch(`/api/projects/${encodeURIComponent(e)}/files/${y}`);v.ok&&(u[`files/${y}`]=new Uint8Array(await v.arrayBuffer()))}const d=IDe(u),f=await fetch(`${ADe}/flows?email=${encodeURIComponent(t)}&name=${encodeURIComponent(n)}`,{method:"POST",headers:{"content-type":"application/zip"},body:d.buffer});if(!f.ok)throw new Error(`Export failed with status ${f.status}`);const h=await f.json();if(typeof h.url!="string")throw new Error("Invalid response from cloud API: missing url");return{shareUrl:h.url}}function EDe(e){return M.useCallback((t,n,r,i)=>_De(e,t,n,r,i),[e])}const yte="seeflow.export.email",gte="seeflow.export.name",mte="seeflow.export.visibility";function PDe({open:e,onOpenChange:t,projectId:n,onCapturePreview:r}){const[i,a]=M.useState(""),[o,s]=M.useState(""),[c,l]=M.useState("public"),[u,d]=M.useState({kind:"idle"}),[f,h]=M.useState(!1),y=EDe(n);M.useEffect(()=>{e&&(a(localStorage.getItem(yte)??""),s(localStorage.getItem(gte)??""),l(localStorage.getItem(mte)??"public"),d({kind:"idle"}),h(!1))},[e]);const v=M.useCallback(async()=>{d({kind:"loading"});try{const w=await(r==null?void 0:r()),{shareUrl:C}=await y(i.trim(),o.trim(),c,w);localStorage.setItem(yte,i.trim()),localStorage.setItem(gte,o.trim()),localStorage.setItem(mte,c),d({kind:"done",shareUrl:C})}catch(w){d({kind:"error",message:w instanceof Error?w.message:String(w)})}},[y,i,o,c,r]),k=M.useCallback(async()=>{if(u.kind==="done")try{await navigator.clipboard.writeText(u.shareUrl),h(!0),setTimeout(()=>h(!1),2e3)}catch(w){console.error("Failed to copy to clipboard:",w)}},[u]),g=u.kind==="loading",S=i.trim().length>0&&o.trim().length>0;return x.jsx(hK,{open:e,onOpenChange:t,children:x.jsxs(ZD,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:w=>{w.preventDefault();const C=document.querySelector('[data-testid="export-email-input"]');C==null||C.focus()},children:[x.jsxs(XD,{children:[x.jsx(YD,{children:"Export to seeflow.dev"}),x.jsx(JD,{children:"Upload this diagram to the cloud and get a shareable link."})]}),u.kind!=="done"?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Email"}),x.jsx("input",{type:"email",required:!0,autoComplete:"email",value:i,onChange:w=>a(w.target.value),disabled:g,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),x.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Flow Name"}),x.jsx("input",{type:"text",required:!0,value:o,onChange:w=>s(w.target.value),disabled:g,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),x.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[x.jsx("span",{className:"font-medium",children:"Visibility"}),x.jsxs("select",{value:c,onChange:w=>l(w.target.value),disabled:g,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[x.jsx("option",{value:"public",children:"Public — anyone can discover it"}),x.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),u.kind==="error"?x.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:u.message}):null]}),x.jsx(sy,{children:u.kind==="error"?x.jsxs(x.Fragment,{children:[x.jsx(oi,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),x.jsx(oi,{type:"button",onClick:()=>d({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):x.jsxs(x.Fragment,{children:[x.jsx(oi,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:g,"data-testid":"export-cancel",children:"Cancel"}),x.jsx(oi,{type:"button",onClick:v,disabled:g||!S,"data-testid":"export-submit",children:g?x.jsxs(x.Fragment,{children:[x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),x.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx("input",{type:"text",readOnly:!0,value:u.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-none"}),x.jsx(oi,{type:"button",variant:"outline",size:"icon",onClick:k,"aria-label":"Copy link","data-testid":"export-copy",children:f?x.jsx(Jc,{className:"h-4 w-4","aria-hidden":"true"}):x.jsx(Y2,{className:"h-4 w-4","aria-hidden":"true"})}),x.jsx(oi,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(u.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:x.jsx(dp,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),x.jsx(sy,{children:x.jsx(oi,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}function NDe({onRestartDemo:e}){const[t,n]=M.useState(!1),r=M.useCallback(()=>{t||(n(!0),Promise.resolve(e()).finally(()=>{n(!1)}))},[e,t]);return x.jsxs(Oy,{children:[x.jsx(Fy,{asChild:!0,children:x.jsx(oi,{"data-testid":"header-restart-demo",type:"button",variant:"ghost",size:"icon","aria-label":"Restart demo",title:"Restart demo",disabled:t,onClick:r,className:"h-8 w-8",children:t?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(Mp,{className:"h-4 w-4","aria-hidden":"true"})})}),x.jsx($f,{side:"bottom",children:"Restart demo"})]})}var Nq="DropdownMenu",[RDe]=xs(Nq,[bq]),Yi=bq(),[jDe,B0e]=RDe(Nq),H0e=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Yi(t),l=M.useRef(null),[u,d]=Of({prop:i,defaultProp:a??!1,onChange:o,caller:Nq});return x.jsx(jDe,{scope:t,triggerId:da(),triggerRef:l,contentId:da(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(f=>!f),[d]),modal:s,children:x.jsx(G2e,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};H0e.displayName=Nq;var V0e="DropdownMenuTrigger",U0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=B0e(V0e,n),o=Yi(n);return x.jsx(K2e,{asChild:!0,...o,children:x.jsx(Jt.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:ms(t,a.triggerRef),onPointerDown:St(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:St(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});U0e.displayName=V0e;var TDe="DropdownMenuPortal",$0e=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Yi(t);return x.jsx(Z2e,{...r,...n})};$0e.displayName=TDe;var W0e="DropdownMenuContent",G0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=B0e(W0e,n),a=Yi(n),o=M.useRef(!1);return x.jsx(X2e,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:St(e.onCloseAutoFocus,s=>{var c;o.current||(c=i.triggerRef.current)==null||c.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:St(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!i.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G0e.displayName=W0e;var DDe="DropdownMenuGroup",qDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(Y2e,{...i,...r,ref:t})});qDe.displayName=DDe;var zDe="DropdownMenuLabel",ODe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(J2e,{...i,...r,ref:t})});ODe.displayName=zDe;var FDe="DropdownMenuItem",K0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(Q2e,{...i,...r,ref:t})});K0e.displayName=FDe;var BDe="DropdownMenuCheckboxItem",HDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(efe,{...i,...r,ref:t})});HDe.displayName=BDe;var VDe="DropdownMenuRadioGroup",UDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(tfe,{...i,...r,ref:t})});UDe.displayName=VDe;var $De="DropdownMenuRadioItem",WDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(nfe,{...i,...r,ref:t})});WDe.displayName=$De;var GDe="DropdownMenuItemIndicator",KDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(rfe,{...i,...r,ref:t})});KDe.displayName=GDe;var ZDe="DropdownMenuSeparator",Z0e=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(ife,{...i,...r,ref:t})});Z0e.displayName=ZDe;var XDe="DropdownMenuArrow",YDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(afe,{...i,...r,ref:t})});YDe.displayName=XDe;var JDe="DropdownMenuSubTrigger",QDe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(ofe,{...i,...r,ref:t})});QDe.displayName=JDe;var eqe="DropdownMenuSubContent",tqe=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Yi(n);return x.jsx(sfe,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tqe.displayName=eqe;var nqe=H0e,rqe=U0e,iqe=$0e,X0e=G0e,Y0e=K0e,J0e=Z0e;const aqe=nqe,oqe=rqe,Q0e=M.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(iqe,{children:x.jsx(X0e,{ref:r,sideOffset:t,className:Ze("z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Q0e.displayName=X0e.displayName;const dT=M.forwardRef(({className:e,...t},n)=>x.jsx(Y0e,{ref:n,className:Ze("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50",e),...t}));dT.displayName=Y0e.displayName;const sqe=M.forwardRef(({className:e,...t},n)=>x.jsx(J0e,{ref:n,className:Ze("-mx-1 my-1 h-px bg-border",e),...t}));sqe.displayName=J0e.displayName;const vte="Share / download",cqe="Download PDF",lqe="Download PNG",uqe="Export to seeflow.dev";function dqe({onDownloadPdf:e,onDownloadPng:t,onExportToCloud:n}){const[r,i]=M.useState(!1),[a,o]=M.useState(!1),s=M.useCallback(()=>{!e||r||(i(!0),Promise.resolve(e()).finally(()=>i(!1)))},[e,r]),c=M.useCallback(()=>{!t||a||(o(!0),Promise.resolve(t()).finally(()=>o(!1)))},[t,a]);return!e&&!t&&!n?null:x.jsxs(aqe,{children:[x.jsx(oqe,{asChild:!0,children:x.jsx("button",{type:"button","data-testid":"share-menu-trigger","aria-label":vte,title:vte,className:Ze("inline-flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background/95 text-muted-foreground shadow-md backdrop-blur transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:x.jsx(Ip,{className:"h-4 w-4","aria-hidden":"true"})})}),x.jsxs(Q0e,{align:"end","data-testid":"share-menu-content",onCloseAutoFocus:l=>{l.preventDefault()},children:[e?x.jsxs(dT,{"data-testid":"share-menu-pdf",disabled:r,onSelect:l=>{l.preventDefault(),s()},children:[r?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(hp,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:cqe})]}):null,t?x.jsxs(dT,{"data-testid":"share-menu-png",disabled:a,onSelect:l=>{l.preventDefault(),c()},children:[a?x.jsx(to,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):x.jsx(pp,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:lqe})]}):null,n?x.jsxs(dT,{"data-testid":"share-menu-export-cloud",onSelect:()=>{n()},children:[x.jsx(Np,{className:"h-4 w-4","aria-hidden":"true"}),x.jsx("span",{children:uqe})]}):null]})]})}const hqe=(e,t)=>{if(e.has(t))return e;const n=new Set(e);return n.add(t),n},fqe=(e,t)=>{if(t.length===0)return e;let n=!1;const r=new Set(e);for(const i of t)r.has(i)||(r.add(i),n=!0);return n?r:e},pqe=(e,t)=>{if(!e.has(t))return e;const n=new Set(e);return n.delete(t),n},yqe=(e,t)=>{if(t.length===0)return e;let n=!1;const r=new Set(e);for(const i of t)r.has(i)&&(r.delete(i),n=!0);return n?r:e},gqe=(e,t)=>{if(e.size===0)return e;const n=new Set(t.map(a=>a.id));let r=!1;const i=new Set(e);for(const a of i)n.has(a)||(i.delete(a),r=!0);return r?i:e},kte=()=>{const[e,t]=M.useState(()=>new Set),n=M.useCallback(c=>{t(l=>hqe(l,c))},[]),r=M.useCallback(c=>{t(l=>fqe(l,c))},[]),i=M.useCallback(c=>{t(l=>pqe(l,c))},[]),a=M.useCallback(c=>{t(l=>yqe(l,c))},[]),o=M.useCallback(c=>{t(l=>gqe(l,c))},[]),s=M.useCallback(()=>t(new Set),[]);return{ids:e,mark:n,markMany:r,unmark:i,unmarkMany:a,pruneAgainst:o,reset:s}},mqe=(e,t)=>e===t?!0:e==null||t==null||typeof e!=typeof t||typeof e!="object"?!1:JSON.stringify(e)===JSON.stringify(t),vqe=(e,t,n)=>({...e,[t]:{...e[t],...n}}),kqe=(e,t)=>{if(!(t in e))return e;const n={...e};return delete n[t],n},xqe=(e,t)=>{const n=Object.entries(e);if(n.length===0)return e;const r=new Map(t.map(o=>[o.id,o]));let i=!1;const a={...e};for(const[o,s]of n){const c=r.get(o);if(!c)continue;const l={};let u=!1;for(const d of Object.keys(s))mqe(s[d],c[d])?i=!0:(l[d]=s[d],u=!0);u?a[o]=l:(i=!0,delete a[o])}return i?a:e},xte=()=>{const[e,t]=M.useState({}),n=M.useCallback((o,s)=>{t(c=>vqe(c,o,s))},[]),r=M.useCallback(o=>{t(s=>kqe(s,o))},[]),i=M.useCallback(o=>{t(s=>xqe(s,o))},[]),a=M.useCallback(()=>t({}),[]);return{overrides:e,setOverride:n,dropOverride:r,pruneAgainst:i,reset:a}},wqe=500,bqe=500,Mqe={stack:[],cursor:0},Sqe=(e,t,n)=>{const r=Date.now(),i=wqe,a=bqe,{stack:o,cursor:s}=e;if(t.coalesceKey&&s>0){const u=o[s-1];if(u&&u.coalesceKey===t.coalesceKey&&r-u.capturedAt<=a){const d=o.slice(0,s);return d[s-1]={...u,do:t.do,capturedAt:r},{stack:d,cursor:s}}}const c=o.slice(0,s);c.push({...t,capturedAt:r});let l=s+1;for(;c.length>i;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},Cqe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},Lqe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iqe=()=>({stack:[],cursor:0}),Aqe=e=>{if(e.cursor===0)return e;const t=e.stack.slice();return t.splice(e.cursor-1,1),{stack:t,cursor:e.cursor-1}},_qe=(e,t)=>t.state,Eqe=()=>{const[e,t]=M.useReducer(_qe,Mqe),n=M.useRef(e);n.current=e;const r=M.useRef(Promise.resolve()),i=M.useRef(0),a=M.useCallback(h=>{h!==n.current&&(n.current=h,t({type:"replace",state:h}))},[]),o=M.useCallback(h=>{const y={do:h.do,undo:h.undo,coalesceKey:h.coalesceKey,capturedAt:h.capturedAt??Date.now()};a(Sqe(n.current,y))},[a]),s=M.useCallback(()=>{i.current=Date.now();const h=r.current.then(()=>{const y=Cqe(n.current);if(y.entry)return a(y.state),{entry:y.entry}});return r.current=h.then(()=>{},()=>{}),h},[a]),c=M.useCallback(()=>{i.current=Date.now();const h=r.current.then(()=>{const y=Lqe(n.current);if(y.entry)return a(y.state),{entry:y.entry}});return r.current=h.then(()=>{},()=>{}),h},[a]),l=M.useCallback(()=>{a(Iqe())},[a]),u=M.useCallback(()=>{a(Aqe(n.current))},[a]),d=M.useCallback(()=>{i.current=Date.now()},[]),f=M.useCallback(()=>i.current,[]);return{push:o,undo:s,redo:c,clear:l,dropTop:u,canUndo:e.cursor>0,canRedo:e.cursor<e.stack.length,markMutation:d,lastMutationAt:f}};function IZ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zO,wte;function Pqe(){if(wte)return zO;wte=1;function e(){this.__data__=[],this.size=0}return zO=e,zO}var OO,bte;function Jf(){if(bte)return OO;bte=1;function e(t,n){return t===n||t!==t&&n!==n}return OO=e,OO}var FO,Mte;function Rq(){if(Mte)return FO;Mte=1;var e=Jf();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return FO=t,FO}var BO,Ste;function Nqe(){if(Ste)return BO;Ste=1;var e=Rq(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return BO=r,BO}var HO,Cte;function Rqe(){if(Cte)return HO;Cte=1;var e=Rq();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return HO=t,HO}var VO,Lte;function jqe(){if(Lte)return VO;Lte=1;var e=Rq();function t(n){return e(this.__data__,n)>-1}return VO=t,VO}var UO,Ite;function Tqe(){if(Ite)return UO;Ite=1;var e=Rq();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return UO=t,UO}var $O,Ate;function jq(){if(Ate)return $O;Ate=1;var e=Pqe(),t=Nqe(),n=Rqe(),r=jqe(),i=Tqe();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,$O=a,$O}var WO,_te;function Dqe(){if(_te)return WO;_te=1;var e=jq();function t(){this.__data__=new e,this.size=0}return WO=t,WO}var GO,Ete;function qqe(){if(Ete)return GO;Ete=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return GO=e,GO}var KO,Pte;function zqe(){if(Pte)return KO;Pte=1;function e(t){return this.__data__.get(t)}return KO=e,KO}var ZO,Nte;function Oqe(){if(Nte)return ZO;Nte=1;function e(t){return this.__data__.has(t)}return ZO=e,ZO}var XO,Rte;function epe(){if(Rte)return XO;Rte=1;var e=typeof Fc=="object"&&Fc&&Fc.Object===Object&&Fc;return XO=e,XO}var YO,jte;function Bo(){if(jte)return YO;jte=1;var e=epe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return YO=n,YO}var JO,Tte;function Qf(){if(Tte)return JO;Tte=1;var e=Bo(),t=e.Symbol;return JO=t,JO}var QO,Dte;function Fqe(){if(Dte)return QO;Dte=1;var e=Qf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=n.call(o,i),c=o[i];try{o[i]=void 0;var l=!0}catch{}var u=r.call(o);return l&&(s?o[i]=c:delete o[i]),u}return QO=a,QO}var eF,qte;function Bqe(){if(qte)return eF;qte=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return eF=n,eF}var tF,zte;function Uh(){if(zte)return tF;zte=1;var e=Qf(),t=Fqe(),n=Bqe(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:a&&a in Object(s)?t(s):n(s)}return tF=o,tF}var nF,Ote;function uo(){if(Ote)return nF;Ote=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return nF=e,nF}var rF,Fte;function sg(){if(Fte)return rF;Fte=1;var e=Uh(),t=uo(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==r||c==i||c==n||c==a}return rF=o,rF}var iF,Bte;function Hqe(){if(Bte)return iF;Bte=1;var e=Bo(),t=e["__core-js_shared__"];return iF=t,iF}var aF,Hte;function Vqe(){if(Hte)return aF;Hte=1;var e=Hqe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return aF=n,aF}var oF,Vte;function tpe(){if(Vte)return oF;Vte=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return oF=n,oF}var sF,Ute;function Uqe(){if(Ute)return sF;Ute=1;var e=sg(),t=Vqe(),n=uo(),r=tpe(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=RegExp("^"+c.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||t(f))return!1;var h=e(f)?u:a;return h.test(r(f))}return sF=d,sF}var cF,$te;function $qe(){if($te)return cF;$te=1;function e(t,n){return t==null?void 0:t[n]}return cF=e,cF}var lF,Wte;function $h(){if(Wte)return lF;Wte=1;var e=Uqe(),t=$qe();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return lF=n,lF}var uF,Gte;function AZ(){if(Gte)return uF;Gte=1;var e=$h(),t=Bo(),n=e(t,"Map");return uF=n,uF}var dF,Kte;function Tq(){if(Kte)return dF;Kte=1;var e=$h(),t=e(Object,"create");return dF=t,dF}var hF,Zte;function Wqe(){if(Zte)return hF;Zte=1;var e=Tq();function t(){this.__data__=e?e(null):{},this.size=0}return hF=t,hF}var fF,Xte;function Gqe(){if(Xte)return fF;Xte=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return fF=e,fF}var pF,Yte;function Kqe(){if(Yte)return pF;Yte=1;var e=Tq(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return r.call(o,a)?o[a]:void 0}return pF=i,pF}var yF,Jte;function Zqe(){if(Jte)return yF;Jte=1;var e=Tq(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return yF=r,yF}var gF,Qte;function Xqe(){if(Qte)return gF;Qte=1;var e=Tq(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return gF=n,gF}var mF,ene;function Yqe(){if(ene)return mF;ene=1;var e=Wqe(),t=Gqe(),n=Kqe(),r=Zqe(),i=Xqe();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,mF=a,mF}var vF,tne;function Jqe(){if(tne)return vF;tne=1;var e=Yqe(),t=jq(),n=AZ();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return vF=r,vF}var kF,nne;function Qqe(){if(nne)return kF;nne=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return kF=e,kF}var xF,rne;function Dq(){if(rne)return xF;rne=1;var e=Qqe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return xF=t,xF}var wF,ine;function eze(){if(ine)return wF;ine=1;var e=Dq();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return wF=t,wF}var bF,ane;function tze(){if(ane)return bF;ane=1;var e=Dq();function t(n){return e(this,n).get(n)}return bF=t,bF}var MF,one;function nze(){if(one)return MF;one=1;var e=Dq();function t(n){return e(this,n).has(n)}return MF=t,MF}var SF,sne;function rze(){if(sne)return SF;sne=1;var e=Dq();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return SF=t,SF}var CF,cne;function _Z(){if(cne)return CF;cne=1;var e=Jqe(),t=eze(),n=tze(),r=nze(),i=rze();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,CF=a,CF}var LF,lne;function ize(){if(lne)return LF;lne=1;var e=jq(),t=AZ(),n=_Z(),r=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(a,o),this.size=s.size,this}return LF=i,LF}var IF,une;function qq(){if(une)return IF;une=1;var e=jq(),t=Dqe(),n=qqe(),r=zqe(),i=Oqe(),a=ize();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,IF=o,IF}var AF,dne;function EZ(){if(dne)return AF;dne=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return AF=e,AF}var _F,hne;function npe(){if(hne)return _F;hne=1;var e=$h(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return _F=t,_F}var EF,fne;function zq(){if(fne)return EF;fne=1;var e=npe();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return EF=t,EF}var PF,pne;function Oq(){if(pne)return PF;pne=1;var e=zq(),t=Jf(),n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s){var c=a[o];(!(r.call(a,o)&&t(c,s))||s===void 0&&!(o in a))&&e(a,o,s)}return PF=i,PF}var NF,yne;function cg(){if(yne)return NF;yne=1;var e=Oq(),t=zq();function n(r,i,a,o){var s=!a;a||(a={});for(var c=-1,l=i.length;++c<l;){var u=i[c],d=o?o(a[u],r[u],u,a,r):void 0;d===void 0&&(d=r[u]),s?t(a,u,d):e(a,u,d)}return a}return NF=n,NF}var RF,gne;function aze(){if(gne)return RF;gne=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return RF=e,RF}var jF,mne;function Ss(){if(mne)return jF;mne=1;function e(t){return t!=null&&typeof t=="object"}return jF=e,jF}var TF,vne;function oze(){if(vne)return TF;vne=1;var e=Uh(),t=Ss(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return TF=r,TF}var DF,kne;function lg(){if(kne)return DF;kne=1;var e=oze(),t=Ss(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return DF=a,DF}var qF,xne;function $r(){if(xne)return qF;xne=1;var e=Array.isArray;return qF=e,qF}var $0={exports:{}},zF,wne;function sze(){if(wne)return zF;wne=1;function e(){return!1}return zF=e,zF}$0.exports;var bne;function e0(){return bne||(bne=1,function(e,t){var n=Bo(),r=sze(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l}($0,$0.exports)),$0.exports}var OF,Mne;function Fq(){if(Mne)return OF;Mne=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return OF=n,OF}var FF,Sne;function PZ(){if(Sne)return FF;Sne=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return FF=t,FF}var BF,Cne;function cze(){if(Cne)return BF;Cne=1;var e=Uh(),t=PZ(),n=Ss(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",k="[object ArrayBuffer]",g="[object DataView]",S="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",j="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",I={};I[S]=I[w]=I[C]=I[_]=I[A]=I[j]=I[O]=I[T]=I[D]=!0,I[r]=I[i]=I[k]=I[a]=I[g]=I[o]=I[s]=I[c]=I[l]=I[u]=I[d]=I[f]=I[h]=I[y]=I[v]=!1;function R(U){return n(U)&&t(U.length)&&!!I[e(U)]}return BF=R,BF}var HF,Lne;function Bq(){if(Lne)return HF;Lne=1;function e(t){return function(n){return t(n)}}return HF=e,HF}var W0={exports:{}};W0.exports;var Ine;function NZ(){return Ine||(Ine=1,function(e,t){var n=epe(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(W0,W0.exports)),W0.exports}var VF,Ane;function ug(){if(Ane)return VF;Ane=1;var e=cze(),t=Bq(),n=NZ(),r=n&&n.isTypedArray,i=r?t(r):e;return VF=i,VF}var UF,_ne;function rpe(){if(_ne)return UF;_ne=1;var e=aze(),t=lg(),n=$r(),r=e0(),i=Fq(),a=ug(),o=Object.prototype,s=o.hasOwnProperty;function c(l,u){var d=n(l),f=!d&&t(l),h=!d&&!f&&r(l),y=!d&&!f&&!h&&a(l),v=d||f||h||y,k=v?e(l.length,String):[],g=k.length;for(var S in l)(u||s.call(l,S))&&!(v&&(S=="length"||h&&(S=="offset"||S=="parent")||y&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,g)))&&k.push(S);return k}return UF=c,UF}var $F,Ene;function Hq(){if(Ene)return $F;Ene=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return $F=t,$F}var WF,Pne;function ipe(){if(Pne)return WF;Pne=1;function e(t,n){return function(r){return t(n(r))}}return WF=e,WF}var GF,Nne;function lze(){if(Nne)return GF;Nne=1;var e=ipe(),t=e(Object.keys,Object);return GF=t,GF}var KF,Rne;function RZ(){if(Rne)return KF;Rne=1;var e=Hq(),t=lze(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return KF=i,KF}var ZF,jne;function lc(){if(jne)return ZF;jne=1;var e=sg(),t=PZ();function n(r){return r!=null&&t(r.length)&&!e(r)}return ZF=n,ZF}var XF,Tne;function gl(){if(Tne)return XF;Tne=1;var e=rpe(),t=RZ(),n=lc();function r(i){return n(i)?e(i):t(i)}return XF=r,XF}var YF,Dne;function uze(){if(Dne)return YF;Dne=1;var e=cg(),t=gl();function n(r,i){return r&&e(i,t(i),r)}return YF=n,YF}var JF,qne;function dze(){if(qne)return JF;qne=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return JF=e,JF}var QF,zne;function hze(){if(zne)return QF;zne=1;var e=uo(),t=Hq(),n=dze(),r=Object.prototype,i=r.hasOwnProperty;function a(o){if(!e(o))return n(o);var s=t(o),c=[];for(var l in o)l=="constructor"&&(s||!i.call(o,l))||c.push(l);return c}return QF=a,QF}var eB,One;function Wh(){if(One)return eB;One=1;var e=rpe(),t=hze(),n=lc();function r(i){return n(i)?e(i,!0):t(i)}return eB=r,eB}var tB,Fne;function fze(){if(Fne)return tB;Fne=1;var e=cg(),t=Wh();function n(r,i){return r&&e(i,t(i),r)}return tB=n,tB}var G0={exports:{}};G0.exports;var Bne;function ape(){return Bne||(Bne=1,function(e,t){var n=Bo(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c}(G0,G0.exports)),G0.exports}var nB,Hne;function ope(){if(Hne)return nB;Hne=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return nB=e,nB}var rB,Vne;function spe(){if(Vne)return rB;Vne=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var s=t[r];n(s,r,t)&&(o[a++]=s)}return o}return rB=e,rB}var iB,Une;function cpe(){if(Une)return iB;Une=1;function e(){return[]}return iB=e,iB}var aB,$ne;function jZ(){if($ne)return aB;$ne=1;var e=spe(),t=cpe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return r.call(o,s)}))}:t;return aB=a,aB}var oB,Wne;function pze(){if(Wne)return oB;Wne=1;var e=cg(),t=jZ();function n(r,i){return e(r,t(r),i)}return oB=n,oB}var sB,Gne;function TZ(){if(Gne)return sB;Gne=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return sB=e,sB}var cB,Kne;function Vq(){if(Kne)return cB;Kne=1;var e=ipe(),t=e(Object.getPrototypeOf,Object);return cB=t,cB}var lB,Zne;function lpe(){if(Zne)return lB;Zne=1;var e=TZ(),t=Vq(),n=jZ(),r=cpe(),i=Object.getOwnPropertySymbols,a=i?function(o){for(var s=[];o;)e(s,n(o)),o=t(o);return s}:r;return lB=a,lB}var uB,Xne;function yze(){if(Xne)return uB;Xne=1;var e=cg(),t=lpe();function n(r,i){return e(r,t(r),i)}return uB=n,uB}var dB,Yne;function upe(){if(Yne)return dB;Yne=1;var e=TZ(),t=$r();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return dB=n,dB}var hB,Jne;function dpe(){if(Jne)return hB;Jne=1;var e=upe(),t=jZ(),n=gl();function r(i){return e(i,n,t)}return hB=r,hB}var fB,Qne;function gze(){if(Qne)return fB;Qne=1;var e=upe(),t=lpe(),n=Wh();function r(i){return e(i,n,t)}return fB=r,fB}var pB,ere;function mze(){if(ere)return pB;ere=1;var e=$h(),t=Bo(),n=e(t,"DataView");return pB=n,pB}var yB,tre;function vze(){if(tre)return yB;tre=1;var e=$h(),t=Bo(),n=e(t,"Promise");return yB=n,yB}var gB,nre;function hpe(){if(nre)return gB;nre=1;var e=$h(),t=Bo(),n=e(t,"Set");return gB=n,gB}var mB,rre;function kze(){if(rre)return mB;rre=1;var e=$h(),t=Bo(),n=e(t,"WeakMap");return mB=n,mB}var vB,ire;function t0(){if(ire)return vB;ire=1;var e=mze(),t=AZ(),n=vze(),r=hpe(),i=kze(),a=Uh(),o=tpe(),s="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",h=o(e),y=o(t),v=o(n),k=o(r),g=o(i),S=a;return(e&&S(new e(new ArrayBuffer(1)))!=f||t&&S(new t)!=s||n&&S(n.resolve())!=l||r&&S(new r)!=u||i&&S(new i)!=d)&&(S=function(w){var C=a(w),_=C==c?w.constructor:void 0,A=_?o(_):"";if(A)switch(A){case h:return f;case y:return s;case v:return l;case k:return u;case g:return d}return C}),vB=S,vB}var kB,are;function xze(){if(are)return kB;are=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,a=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(a.index=r.index,a.input=r.input),a}return kB=n,kB}var xB,ore;function fpe(){if(ore)return xB;ore=1;var e=Bo(),t=e.Uint8Array;return xB=t,xB}var wB,sre;function DZ(){if(sre)return wB;sre=1;var e=fpe();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return wB=t,wB}var bB,cre;function wze(){if(cre)return bB;cre=1;var e=DZ();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return bB=t,bB}var MB,lre;function bze(){if(lre)return MB;lre=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return MB=t,MB}var SB,ure;function Mze(){if(ure)return SB;ure=1;var e=Qf(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return SB=r,SB}var CB,dre;function ppe(){if(dre)return CB;dre=1;var e=DZ();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return CB=t,CB}var LB,hre;function Sze(){if(hre)return LB;hre=1;var e=DZ(),t=wze(),n=bze(),r=Mze(),i=ppe(),a="[object Boolean]",o="[object Date]",s="[object Map]",c="[object Number]",l="[object RegExp]",u="[object Set]",d="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",y="[object DataView]",v="[object Float32Array]",k="[object Float64Array]",g="[object Int8Array]",S="[object Int16Array]",w="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",A="[object Uint16Array]",j="[object Uint32Array]";function O(T,D,I){var R=T.constructor;switch(D){case h:return e(T);case a:case o:return new R(+T);case y:return t(T,I);case v:case k:case g:case S:case w:case C:case _:case A:case j:return i(T,I);case s:return new R;case c:case d:return new R(T);case l:return n(T);case u:return new R;case f:return r(T)}}return LB=O,LB}var IB,fre;function ype(){if(fre)return IB;fre=1;var e=uo(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return IB=n,IB}var AB,pre;function gpe(){if(pre)return AB;pre=1;var e=ype(),t=Vq(),n=Hq();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return AB=r,AB}var _B,yre;function Cze(){if(yre)return _B;yre=1;var e=t0(),t=Ss(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return _B=r,_B}var EB,gre;function Lze(){if(gre)return EB;gre=1;var e=Cze(),t=Bq(),n=NZ(),r=n&&n.isMap,i=r?t(r):e;return EB=i,EB}var PB,mre;function Ize(){if(mre)return PB;mre=1;var e=t0(),t=Ss(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return PB=r,PB}var NB,vre;function Aze(){if(vre)return NB;vre=1;var e=Ize(),t=Bq(),n=NZ(),r=n&&n.isSet,i=r?t(r):e;return NB=i,NB}var RB,kre;function mpe(){if(kre)return RB;kre=1;var e=qq(),t=EZ(),n=Oq(),r=uze(),i=fze(),a=ape(),o=ope(),s=pze(),c=yze(),l=dpe(),u=gze(),d=t0(),f=xze(),h=Sze(),y=gpe(),v=$r(),k=e0(),g=Lze(),S=uo(),w=Aze(),C=gl(),_=Wh(),A=1,j=2,O=4,T="[object Arguments]",D="[object Array]",I="[object Boolean]",R="[object Date]",U="[object Error]",q="[object Function]",K="[object GeneratorFunction]",Z="[object Map]",$="[object Number]",B="[object Object]",V="[object RegExp]",F="[object Set]",ie="[object String]",N="[object Symbol]",P="[object WeakMap]",G="[object ArrayBuffer]",J="[object DataView]",X="[object Float32Array]",ae="[object Float64Array]",re="[object Int8Array]",fe="[object Int16Array]",ke="[object Int32Array]",Ne="[object Uint8Array]",je="[object Uint8ClampedArray]",Re="[object Uint16Array]",$e="[object Uint32Array]",ee={};ee[T]=ee[D]=ee[G]=ee[J]=ee[I]=ee[R]=ee[X]=ee[ae]=ee[re]=ee[fe]=ee[ke]=ee[Z]=ee[$]=ee[B]=ee[V]=ee[F]=ee[ie]=ee[N]=ee[Ne]=ee[je]=ee[Re]=ee[$e]=!0,ee[U]=ee[q]=ee[P]=!1;function qe(Ke,_e,Se,ot,Qe,Pe){var Ie,ye=_e&A,wt=_e&j,Me=_e&O;if(Se&&(Ie=Qe?Se(Ke,ot,Qe,Pe):Se(Ke)),Ie!==void 0)return Ie;if(!S(Ke))return Ke;var Ce=v(Ke);if(Ce){if(Ie=f(Ke),!ye)return o(Ke,Ie)}else{var De=d(Ke),Ve=De==q||De==K;if(k(Ke))return a(Ke,ye);if(De==B||De==T||Ve&&!Qe){if(Ie=wt||Ve?{}:y(Ke),!ye)return wt?c(Ke,i(Ie,Ke)):s(Ke,r(Ie,Ke))}else{if(!ee[De])return Qe?Ke:{};Ie=h(Ke,De,ye)}}Pe||(Pe=new e);var nt=Pe.get(Ke);if(nt)return nt;Pe.set(Ke,Ie),w(Ke)?Ke.forEach(function(it){Ie.add(qe(it,_e,Se,it,Ke,Pe))}):g(Ke)&&Ke.forEach(function(it,at){Ie.set(at,qe(it,_e,Se,at,Ke,Pe))});var rt=Me?wt?u:l:wt?_:C,Pt=Ce?void 0:rt(Ke);return t(Pt||Ke,function(it,at){Pt&&(at=it,it=Ke[at]),n(Ie,at,qe(it,_e,Se,at,Ke,Pe))}),Ie}return RB=qe,RB}var jB,xre;function _ze(){if(xre)return jB;xre=1;var e=mpe(),t=4;function n(r){return e(r,t)}return jB=n,jB}var TB,wre;function qZ(){if(wre)return TB;wre=1;function e(t){return function(){return t}}return TB=e,TB}var DB,bre;function Eze(){if(bre)return DB;bre=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),s=i(n),c=s.length;c--;){var l=s[t?c:++a];if(r(o[l],l,o)===!1)break}return n}}return DB=e,DB}var qB,Mre;function zZ(){if(Mre)return qB;Mre=1;var e=Eze(),t=e();return qB=t,qB}var zB,Sre;function OZ(){if(Sre)return zB;Sre=1;var e=zZ(),t=gl();function n(r,i){return r&&e(r,i,t)}return zB=n,zB}var OB,Cre;function Pze(){if(Cre)return OB;Cre=1;var e=lc();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,s=r?o:-1,c=Object(i);(r?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return OB=t,OB}var FB,Lre;function Uq(){if(Lre)return FB;Lre=1;var e=OZ(),t=Pze(),n=t(e);return FB=n,FB}var BB,Ire;function Gh(){if(Ire)return BB;Ire=1;function e(t){return t}return BB=e,BB}var HB,Are;function vpe(){if(Are)return HB;Are=1;var e=Gh();function t(n){return typeof n=="function"?n:e}return HB=t,HB}var VB,_re;function kpe(){if(_re)return VB;_re=1;var e=EZ(),t=Uq(),n=vpe(),r=$r();function i(a,o){var s=r(a)?e:t;return s(a,n(o))}return VB=i,VB}var UB,Ere;function xpe(){return Ere||(Ere=1,UB=kpe()),UB}var $B,Pre;function Nze(){if(Pre)return $B;Pre=1;var e=Uq();function t(n,r){var i=[];return e(n,function(a,o,s){r(a,o,s)&&i.push(a)}),i}return $B=t,$B}var WB,Nre;function Rze(){if(Nre)return WB;Nre=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return WB=t,WB}var GB,Rre;function jze(){if(Rre)return GB;Rre=1;function e(t){return this.__data__.has(t)}return GB=e,GB}var KB,jre;function wpe(){if(jre)return KB;jre=1;var e=_Z(),t=Rze(),n=jze();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,KB=r,KB}var ZB,Tre;function Tze(){if(Tre)return ZB;Tre=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return ZB=e,ZB}var XB,Dre;function bpe(){if(Dre)return XB;Dre=1;function e(t,n){return t.has(n)}return XB=e,XB}var YB,qre;function Mpe(){if(qre)return YB;qre=1;var e=wpe(),t=Tze(),n=bpe(),r=1,i=2;function a(o,s,c,l,u,d){var f=c&r,h=o.length,y=s.length;if(h!=y&&!(f&&y>h))return!1;var v=d.get(o),k=d.get(s);if(v&&k)return v==s&&k==o;var g=-1,S=!0,w=c&i?new e:void 0;for(d.set(o,s),d.set(s,o);++g<h;){var C=o[g],_=s[g];if(l)var A=f?l(_,C,g,s,o,d):l(C,_,g,o,s,d);if(A!==void 0){if(A)continue;S=!1;break}if(w){if(!t(s,function(j,O){if(!n(w,O)&&(C===j||u(C,j,c,l,d)))return w.push(O)})){S=!1;break}}else if(!(C===_||u(C,_,c,l,d))){S=!1;break}}return d.delete(o),d.delete(s),S}return YB=a,YB}var JB,zre;function Dze(){if(zre)return JB;zre=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return JB=e,JB}var QB,Ore;function FZ(){if(Ore)return QB;Ore=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return QB=e,QB}var eH,Fre;function qze(){if(Fre)return eH;Fre=1;var e=Qf(),t=fpe(),n=Jf(),r=Mpe(),i=Dze(),a=FZ(),o=1,s=2,c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",k="[object Symbol]",g="[object ArrayBuffer]",S="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function _(A,j,O,T,D,I,R){switch(O){case S:if(A.byteLength!=j.byteLength||A.byteOffset!=j.byteOffset)return!1;A=A.buffer,j=j.buffer;case g:return!(A.byteLength!=j.byteLength||!I(new t(A),new t(j)));case c:case l:case f:return n(+A,+j);case u:return A.name==j.name&&A.message==j.message;case h:case v:return A==j+"";case d:var U=i;case y:var q=T&o;if(U||(U=a),A.size!=j.size&&!q)return!1;var K=R.get(A);if(K)return K==j;T|=s,R.set(A,j);var Z=r(U(A),U(j),T,D,I,R);return R.delete(A),Z;case k:if(C)return C.call(A)==C.call(j)}return!1}return eH=_,eH}var tH,Bre;function zze(){if(Bre)return tH;Bre=1;var e=dpe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,c,l,u){var d=s&t,f=e(a),h=f.length,y=e(o),v=y.length;if(h!=v&&!d)return!1;for(var k=h;k--;){var g=f[k];if(!(d?g in o:r.call(o,g)))return!1}var S=u.get(a),w=u.get(o);if(S&&w)return S==o&&w==a;var C=!0;u.set(a,o),u.set(o,a);for(var _=d;++k<h;){g=f[k];var A=a[g],j=o[g];if(c)var O=d?c(j,A,g,o,a,u):c(A,j,g,a,o,u);if(!(O===void 0?A===j||l(A,j,s,c,u):O)){C=!1;break}_||(_=g=="constructor")}if(C&&!_){var T=a.constructor,D=o.constructor;T!=D&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof D=="function"&&D instanceof D)&&(C=!1)}return u.delete(a),u.delete(o),C}return tH=i,tH}var nH,Hre;function Oze(){if(Hre)return nH;Hre=1;var e=qq(),t=Mpe(),n=qze(),r=zze(),i=t0(),a=$r(),o=e0(),s=ug(),c=1,l="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,h=f.hasOwnProperty;function y(v,k,g,S,w,C){var _=a(v),A=a(k),j=_?u:i(v),O=A?u:i(k);j=j==l?d:j,O=O==l?d:O;var T=j==d,D=O==d,I=j==O;if(I&&o(v)){if(!o(k))return!1;_=!0,T=!1}if(I&&!T)return C||(C=new e),_||s(v)?t(v,k,g,S,w,C):n(v,k,j,g,S,w,C);if(!(g&c)){var R=T&&h.call(v,"__wrapped__"),U=D&&h.call(k,"__wrapped__");if(R||U){var q=R?v.value():v,K=U?k.value():k;return C||(C=new e),w(q,K,g,S,C)}}return I?(C||(C=new e),r(v,k,g,S,w,C)):!1}return nH=y,nH}var rH,Vre;function Spe(){if(Vre)return rH;Vre=1;var e=Oze(),t=Ss();function n(r,i,a,o,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,s)}return rH=n,rH}var iH,Ure;function Fze(){if(Ure)return iH;Ure=1;var e=qq(),t=Spe(),n=1,r=2;function i(a,o,s,c){var l=s.length,u=l,d=!c;if(a==null)return!u;for(a=Object(a);l--;){var f=s[l];if(d&&f[2]?f[1]!==a[f[0]]:!(f[0]in a))return!1}for(;++l<u;){f=s[l];var h=f[0],y=a[h],v=f[1];if(d&&f[2]){if(y===void 0&&!(h in a))return!1}else{var k=new e;if(c)var g=c(y,v,h,a,o,k);if(!(g===void 0?t(v,y,n|r,c,k):g))return!1}}return!0}return iH=i,iH}var aH,$re;function Cpe(){if($re)return aH;$re=1;var e=uo();function t(n){return n===n&&!e(n)}return aH=t,aH}var oH,Wre;function Bze(){if(Wre)return oH;Wre=1;var e=Cpe(),t=gl();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],s=r[o];i[a]=[o,s,e(s)]}return i}return oH=n,oH}var sH,Gre;function Lpe(){if(Gre)return sH;Gre=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return sH=e,sH}var cH,Kre;function Hze(){if(Kre)return cH;Kre=1;var e=Fze(),t=Bze(),n=Lpe();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return cH=r,cH}var lH,Zre;function n0(){if(Zre)return lH;Zre=1;var e=Uh(),t=Ss(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return lH=r,lH}var uH,Xre;function BZ(){if(Xre)return uH;Xre=1;var e=$r(),t=n0(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return uH=i,uH}var dH,Yre;function Vze(){if(Yre)return dH;Yre=1;var e=_Z(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var l=r.apply(this,o);return a.cache=c.set(s,l)||c,l};return a.cache=new(n.Cache||e),a}return n.Cache=e,dH=n,dH}var hH,Jre;function Uze(){if(Jre)return hH;Jre=1;var e=Vze(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return hH=n,hH}var fH,Qre;function $ze(){if(Qre)return fH;Qre=1;var e=Uze(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,l){a.push(c?l.replace(n,"$1"):s||o)}),a});return fH=r,fH}var pH,eie;function $q(){if(eie)return pH;eie=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return pH=e,pH}var yH,tie;function Wze(){if(tie)return yH;tie=1;var e=Qf(),t=$q(),n=$r(),r=n0(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(n(s))return t(s,o)+"";if(r(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return yH=o,yH}var gH,nie;function Ipe(){if(nie)return gH;nie=1;var e=Wze();function t(n){return n==null?"":e(n)}return gH=t,gH}var mH,rie;function Wq(){if(rie)return mH;rie=1;var e=$r(),t=BZ(),n=$ze(),r=Ipe();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return mH=i,mH}var vH,iie;function dg(){if(iie)return vH;iie=1;var e=n0();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return vH=t,vH}var kH,aie;function Gq(){if(aie)return kH;aie=1;var e=Wq(),t=dg();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return kH=n,kH}var xH,oie;function Gze(){if(oie)return xH;oie=1;var e=Gq();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return xH=t,xH}var wH,sie;function Kze(){if(sie)return wH;sie=1;function e(t,n){return t!=null&&n in Object(t)}return wH=e,wH}var bH,cie;function Ape(){if(cie)return bH;cie=1;var e=Wq(),t=lg(),n=$r(),r=Fq(),i=PZ(),a=dg();function o(s,c,l){c=e(c,s);for(var u=-1,d=c.length,f=!1;++u<d;){var h=a(c[u]);if(!(f=s!=null&&l(s,h)))break;s=s[h]}return f||++u!=d?f:(d=s==null?0:s.length,!!d&&i(d)&&r(h,d)&&(n(s)||t(s)))}return bH=o,bH}var MH,lie;function _pe(){if(lie)return MH;lie=1;var e=Kze(),t=Ape();function n(r,i){return r!=null&&t(r,i,e)}return MH=n,MH}var SH,uie;function Zze(){if(uie)return SH;uie=1;var e=Spe(),t=Gze(),n=_pe(),r=BZ(),i=Cpe(),a=Lpe(),o=dg(),s=1,c=2;function l(u,d){return r(u)&&i(d)?a(o(u),d):function(f){var h=t(f,u);return h===void 0&&h===d?n(f,u):e(d,h,s|c)}}return SH=l,SH}var CH,die;function Epe(){if(die)return CH;die=1;function e(t){return function(n){return n==null?void 0:n[t]}}return CH=e,CH}var LH,hie;function Xze(){if(hie)return LH;hie=1;var e=Gq();function t(n){return function(r){return e(r,n)}}return LH=t,LH}var IH,fie;function Yze(){if(fie)return IH;fie=1;var e=Epe(),t=Xze(),n=BZ(),r=dg();function i(a){return n(a)?e(r(a)):t(a)}return IH=i,IH}var AH,pie;function uc(){if(pie)return AH;pie=1;var e=Hze(),t=Zze(),n=Gh(),r=$r(),i=Yze();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return AH=a,AH}var _H,yie;function Ppe(){if(yie)return _H;yie=1;var e=spe(),t=Nze(),n=uc(),r=$r();function i(a,o){var s=r(a)?e:t;return s(a,n(o,3))}return _H=i,_H}var EH,gie;function Jze(){if(gie)return EH;gie=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,i){return r!=null&&t.call(r,i)}return EH=n,EH}var PH,mie;function Npe(){if(mie)return PH;mie=1;var e=Jze(),t=Ape();function n(r,i){return r!=null&&t(r,i,e)}return PH=n,PH}var NH,vie;function Qze(){if(vie)return NH;vie=1;var e=RZ(),t=t0(),n=lg(),r=$r(),i=lc(),a=e0(),o=Hq(),s=ug(),c="[object Map]",l="[object Set]",u=Object.prototype,d=u.hasOwnProperty;function f(h){if(h==null)return!0;if(i(h)&&(r(h)||typeof h=="string"||typeof h.splice=="function"||a(h)||s(h)||n(h)))return!h.length;var y=t(h);if(y==c||y==l)return!h.size;if(o(h))return!e(h).length;for(var v in h)if(d.call(h,v))return!1;return!0}return NH=f,NH}var RH,kie;function Rpe(){if(kie)return RH;kie=1;function e(t){return t===void 0}return RH=e,RH}var jH,xie;function jpe(){if(xie)return jH;xie=1;var e=Uq(),t=lc();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(s,c,l){o[++a]=i(s,c,l)}),o}return jH=n,jH}var TH,wie;function Tpe(){if(wie)return TH;wie=1;var e=$q(),t=uc(),n=jpe(),r=$r();function i(a,o){var s=r(a)?e:n;return s(a,t(o,3))}return TH=i,TH}var DH,bie;function eOe(){if(bie)return DH;bie=1;function e(t,n,r,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(r=t[++a]);++a<o;)r=n(r,t[a],a,t);return r}return DH=e,DH}var qH,Mie;function tOe(){if(Mie)return qH;Mie=1;function e(t,n,r,i,a){return a(t,function(o,s,c){r=i?(i=!1,o):n(r,o,s,c)}),r}return qH=e,qH}var zH,Sie;function Dpe(){if(Sie)return zH;Sie=1;var e=eOe(),t=Uq(),n=uc(),r=tOe(),i=$r();function a(o,s,c){var l=i(o)?e:r,u=arguments.length<3;return l(o,n(s,4),c,u,t)}return zH=a,zH}var OH,Cie;function nOe(){if(Cie)return OH;Cie=1;var e=Uh(),t=$r(),n=Ss(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return OH=i,OH}var FH,Lie;function rOe(){if(Lie)return FH;Lie=1;var e=Epe(),t=e("length");return FH=t,FH}var BH,Iie;function iOe(){if(Iie)return BH;Iie=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(l){return s.test(l)}return BH=c,BH}var HH,Aie;function aOe(){if(Aie)return HH;Aie=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=l+"?",v="["+a+"]?",k="(?:"+h+"(?:"+[u,d,f].join("|")+")"+v+y+")*",g=v+y+k,S="(?:"+[u+s+"?",s,d,f,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+S+g,"g");function C(_){for(var A=w.lastIndex=0;w.test(_);)++A;return A}return HH=C,HH}var VH,_ie;function oOe(){if(_ie)return VH;_ie=1;var e=rOe(),t=iOe(),n=aOe();function r(i){return t(i)?n(i):e(i)}return VH=r,VH}var UH,Eie;function sOe(){if(Eie)return UH;Eie=1;var e=RZ(),t=t0(),n=lc(),r=nOe(),i=oOe(),a="[object Map]",o="[object Set]";function s(c){if(c==null)return 0;if(n(c))return r(c)?i(c):c.length;var l=t(c);return l==a||l==o?c.size:e(c).length}return UH=s,UH}var $H,Pie;function cOe(){if(Pie)return $H;Pie=1;var e=EZ(),t=ype(),n=OZ(),r=uc(),i=Vq(),a=$r(),o=e0(),s=sg(),c=uo(),l=ug();function u(d,f,h){var y=a(d),v=y||o(d)||l(d);if(f=r(f,4),h==null){var k=d&&d.constructor;v?h=y?new k:[]:c(d)?h=s(k)?t(i(d)):{}:h={}}return(v?e:n)(d,function(g,S,w){return f(h,g,S,w)}),h}return $H=u,$H}var WH,Nie;function lOe(){if(Nie)return WH;Nie=1;var e=Qf(),t=lg(),n=$r(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return WH=i,WH}var GH,Rie;function HZ(){if(Rie)return GH;Rie=1;var e=TZ(),t=lOe();function n(r,i,a,o,s){var c=-1,l=r.length;for(a||(a=t),s||(s=[]);++c<l;){var u=r[c];i>0&&a(u)?i>1?n(u,i-1,a,o,s):e(s,u):o||(s[s.length]=u)}return s}return GH=n,GH}var KH,jie;function uOe(){if(jie)return KH;jie=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return KH=e,KH}var ZH,Tie;function qpe(){if(Tie)return ZH;Tie=1;var e=uOe(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),l=Array(c);++s<c;)l[s]=o[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=o[s];return u[i]=a(l),e(r,this,u)}}return ZH=n,ZH}var XH,Die;function dOe(){if(Die)return XH;Die=1;var e=qZ(),t=npe(),n=Gh(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return XH=r,XH}var YH,qie;function hOe(){if(qie)return YH;qie=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var s=n(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return YH=r,YH}var JH,zie;function zpe(){if(zie)return JH;zie=1;var e=dOe(),t=hOe(),n=t(e);return JH=n,JH}var QH,Oie;function Kq(){if(Oie)return QH;Oie=1;var e=Gh(),t=qpe(),n=zpe();function r(i,a){return n(t(i,a,e),i+"")}return QH=r,QH}var eV,Fie;function Ope(){if(Fie)return eV;Fie=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return eV=e,eV}var tV,Bie;function fOe(){if(Bie)return tV;Bie=1;function e(t){return t!==t}return tV=e,tV}var nV,Hie;function pOe(){if(Hie)return nV;Hie=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return nV=e,nV}var rV,Vie;function yOe(){if(Vie)return rV;Vie=1;var e=Ope(),t=fOe(),n=pOe();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return rV=r,rV}var iV,Uie;function gOe(){if(Uie)return iV;Uie=1;var e=yOe();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return iV=t,iV}var aV,$ie;function mOe(){if($ie)return aV;$ie=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return aV=e,aV}var oV,Wie;function vOe(){if(Wie)return oV;Wie=1;function e(){}return oV=e,oV}var sV,Gie;function kOe(){if(Gie)return sV;Gie=1;var e=hpe(),t=vOe(),n=FZ(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return sV=i,sV}var cV,Kie;function xOe(){if(Kie)return cV;Kie=1;var e=wpe(),t=gOe(),n=mOe(),r=bpe(),i=kOe(),a=FZ(),o=200;function s(c,l,u){var d=-1,f=t,h=c.length,y=!0,v=[],k=v;if(u)y=!1,f=n;else if(h>=o){var g=l?null:i(c);if(g)return a(g);y=!1,f=r,k=new e}else k=l?[]:v;e:for(;++d<h;){var S=c[d],w=l?l(S):S;if(S=u||S!==0?S:0,y&&w===w){for(var C=k.length;C--;)if(k[C]===w)continue e;l&&k.push(w),v.push(S)}else f(k,w,u)||(k!==v&&k.push(w),v.push(S))}return v}return cV=s,cV}var lV,Zie;function Fpe(){if(Zie)return lV;Zie=1;var e=lc(),t=Ss();function n(r){return t(r)&&e(r)}return lV=n,lV}var uV,Xie;function wOe(){if(Xie)return uV;Xie=1;var e=HZ(),t=Kq(),n=xOe(),r=Fpe(),i=t(function(a){return n(e(a,1,r,!0))});return uV=i,uV}var dV,Yie;function bOe(){if(Yie)return dV;Yie=1;var e=$q();function t(n,r){return e(r,function(i){return n[i]})}return dV=t,dV}var hV,Jie;function Bpe(){if(Jie)return hV;Jie=1;var e=bOe(),t=gl();function n(r){return r==null?[]:e(r,t(r))}return hV=n,hV}var fV,Qie;function ho(){if(Qie)return fV;Qie=1;var e;if(typeof IZ=="function")try{e={clone:_ze(),constant:qZ(),each:xpe(),filter:Ppe(),has:Npe(),isArray:$r(),isEmpty:Qze(),isFunction:sg(),isUndefined:Rpe(),keys:gl(),map:Tpe(),reduce:Dpe(),size:sOe(),transform:cOe(),union:wOe(),values:Bpe()}}catch{}return e||(e=window._),fV=e,fV}var pV,eae;function VZ(){if(eae)return pV;eae=1;var e=ho();pV=i;var t="\0",n="\0",r="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._in[d])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._out[d])})},i.prototype.setNodes=function(u,d){var f=arguments,h=this;return e.each(u,function(y){f.length>1?h.setNode(y,d):h.setNode(y)}),this},i.prototype.setNode=function(u,d){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=d),this):(this._nodes[u]=arguments.length>1?d:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=n,this._children[u]={},this._children[n][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var d=this;if(e.has(this._nodes,u)){var f=function(h){d.removeEdge(d._edgeObjs[h])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(h){d.setParent(h)}),delete this._children[u]),e.each(e.keys(this._in[u]),f),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,d){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(d))d=n;else{d+="";for(var f=d;!e.isUndefined(f);f=this.parent(f))if(f===u)throw new Error("Setting "+d+" as parent of "+u+" would create a cycle");this.setNode(d)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=d,this._children[d][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var d=this._parent[u];if(d!==n)return d}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=n),this._isCompound){var d=this._children[u];if(d)return e.keys(d)}else{if(u===n)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var d=this._preds[u];if(d)return e.keys(d)},i.prototype.successors=function(u){var d=this._sucs[u];if(d)return e.keys(d)},i.prototype.neighbors=function(u){var d=this.predecessors(u);if(d)return e.union(d,this.successors(u))},i.prototype.isLeaf=function(u){var d;return this.isDirected()?d=this.successors(u):d=this.neighbors(u),d.length===0},i.prototype.filterNodes=function(u){var d=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});d.setGraph(this.graph());var f=this;e.each(this._nodes,function(v,k){u(k)&&d.setNode(k,v)}),e.each(this._edgeObjs,function(v){d.hasNode(v.v)&&d.hasNode(v.w)&&d.setEdge(v,f.edge(v))});var h={};function y(v){var k=f.parent(v);return k===void 0||d.hasNode(k)?(h[v]=k,k):k in h?h[k]:y(k)}return this._isCompound&&e.each(d.nodes(),function(v){d.setParent(v,y(v))}),d},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,d){var f=this,h=arguments;return e.reduce(u,function(y,v){return h.length>1?f.setEdge(y,v,d):f.setEdge(y,v),v}),this},i.prototype.setEdge=function(){var u,d,f,h,y=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(u=v.v,d=v.w,f=v.name,arguments.length===2&&(h=arguments[1],y=!0)):(u=v,d=arguments[1],f=arguments[3],arguments.length>2&&(h=arguments[2],y=!0)),u=""+u,d=""+d,e.isUndefined(f)||(f=""+f);var k=s(this._isDirected,u,d,f);if(e.has(this._edgeLabels,k))return y&&(this._edgeLabels[k]=h),this;if(!e.isUndefined(f)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(d),this._edgeLabels[k]=y?h:this._defaultEdgeLabelFn(u,d,f);var g=c(this._isDirected,u,d,f);return u=g.v,d=g.w,Object.freeze(g),this._edgeObjs[k]=g,a(this._preds[d],u),a(this._sucs[u],d),this._in[d][k]=g,this._out[u][k]=g,this._edgeCount++,this},i.prototype.edge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f);return this._edgeLabels[h]},i.prototype.hasEdge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f);return e.has(this._edgeLabels,h)},i.prototype.removeEdge=function(u,d,f){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,u,d,f),y=this._edgeObjs[h];return y&&(u=y.v,d=y.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[d],u),o(this._sucs[u],d),delete this._in[d][h],delete this._out[u][h],this._edgeCount--),this},i.prototype.inEdges=function(u,d){var f=this._in[u];if(f){var h=e.values(f);return d?e.filter(h,function(y){return y.v===d}):h}},i.prototype.outEdges=function(u,d){var f=this._out[u];if(f){var h=e.values(f);return d?e.filter(h,function(y){return y.w===d}):h}},i.prototype.nodeEdges=function(u,d){var f=this.inEdges(u,d);if(f)return f.concat(this.outEdges(u,d))};function a(u,d){u[d]?u[d]++:u[d]=1}function o(u,d){--u[d]||delete u[d]}function s(u,d,f,h){var y=""+d,v=""+f;if(!u&&y>v){var k=y;y=v,v=k}return y+r+v+r+(e.isUndefined(h)?t:h)}function c(u,d,f,h){var y=""+d,v=""+f;if(!u&&y>v){var k=y;y=v,v=k}var g={v:y,w:v};return h&&(g.name=h),g}function l(u,d){return s(u,d.v,d.w,d.name)}return pV}var yV,tae;function MOe(){return tae||(tae=1,yV="2.1.8"),yV}var gV,nae;function SOe(){return nae||(nae=1,gV={Graph:VZ(),version:MOe()}),gV}var mV,rae;function COe(){if(rae)return mV;rae=1;var e=ho(),t=VZ();mV={write:n,read:a};function n(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:r(o),edges:i(o)};return e.isUndefined(o.graph())||(s.value=e.clone(o.graph())),s}function r(o){return e.map(o.nodes(),function(s){var c=o.node(s),l=o.parent(s),u={v:s};return e.isUndefined(c)||(u.value=c),e.isUndefined(l)||(u.parent=l),u})}function i(o){return e.map(o.edges(),function(s){var c=o.edge(s),l={v:s.v,w:s.w};return e.isUndefined(s.name)||(l.name=s.name),e.isUndefined(c)||(l.value=c),l})}function a(o){var s=new t(o.options).setGraph(o.value);return e.each(o.nodes,function(c){s.setNode(c.v,c.value),c.parent&&s.setParent(c.v,c.parent)}),e.each(o.edges,function(c){s.setEdge({v:c.v,w:c.w,name:c.name},c.value)}),s}return mV}var vV,iae;function LOe(){if(iae)return vV;iae=1;var e=ho();vV=t;function t(n){var r={},i=[],a;function o(s){e.has(r,s)||(r[s]=!0,a.push(s),e.each(n.successors(s),o),e.each(n.predecessors(s),o))}return e.each(n.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return vV}var kV,aae;function Hpe(){if(aae)return kV;aae=1;var e=ho();kV=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var i=this._keyIndices;if(n=String(n),!e.has(i,n)){var a=this._arr,o=a.length;return i[n]=o,a.push({key:n,priority:r}),this._decrease(o),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)},t.prototype._heapify=function(n){var r=this._arr,i=2*n,a=i+1,o=n;i<r.length&&(o=r[i].priority<r[o].priority?i:o,a<r.length&&(o=r[a].priority<r[o].priority?a:o),o!==n&&(this._swap(n,o),this._heapify(o)))},t.prototype._decrease=function(n){for(var r=this._arr,i=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<i));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var i=this._arr,a=this._keyIndices,o=i[n],s=i[r];i[n]=s,i[r]=o,a[s.key]=n,a[o.key]=r},kV}var xV,oae;function Vpe(){if(oae)return xV;oae=1;var e=ho(),t=Hpe();xV=r;var n=e.constant(1);function r(a,o,s,c){return i(a,String(o),s||n,c||function(l){return a.outEdges(l)})}function i(a,o,s,c){var l={},u=new t,d,f,h=function(y){var v=y.v!==d?y.v:y.w,k=l[v],g=s(y),S=f.distance+g;if(g<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+y+" Weight: "+g);S<k.distance&&(k.distance=S,k.predecessor=d,u.decrease(v,S))};for(a.nodes().forEach(function(y){var v=y===o?0:Number.POSITIVE_INFINITY;l[y]={distance:v},u.add(y,v)});u.size()>0&&(d=u.removeMin(),f=l[d],f.distance!==Number.POSITIVE_INFINITY);)c(d).forEach(h);return l}return xV}var wV,sae;function IOe(){if(sae)return wV;sae=1;var e=Vpe(),t=ho();wV=n;function n(r,i,a){return t.transform(r.nodes(),function(o,s){o[s]=e(r,s,i,a)},{})}return wV}var bV,cae;function Upe(){if(cae)return bV;cae=1;var e=ho();bV=t;function t(n){var r=0,i=[],a={},o=[];function s(c){var l=a[c]={onStack:!0,lowlink:r,index:r++};if(i.push(c),n.successors(c).forEach(function(f){e.has(a,f)?a[f].onStack&&(l.lowlink=Math.min(l.lowlink,a[f].index)):(s(f),l.lowlink=Math.min(l.lowlink,a[f].lowlink))}),l.lowlink===l.index){var u=[],d;do d=i.pop(),a[d].onStack=!1,u.push(d);while(c!==d);o.push(u)}}return n.nodes().forEach(function(c){e.has(a,c)||s(c)}),o}return bV}var MV,lae;function AOe(){if(lae)return MV;lae=1;var e=ho(),t=Upe();MV=n;function n(r){return e.filter(t(r),function(i){return i.length>1||i.length===1&&r.hasEdge(i[0],i[0])})}return MV}var SV,uae;function _Oe(){if(uae)return SV;uae=1;var e=ho();SV=n;var t=e.constant(1);function n(i,a,o){return r(i,a||t,o||function(s){return i.outEdges(s)})}function r(i,a,o){var s={},c=i.nodes();return c.forEach(function(l){s[l]={},s[l][l]={distance:0},c.forEach(function(u){l!==u&&(s[l][u]={distance:Number.POSITIVE_INFINITY})}),o(l).forEach(function(u){var d=u.v===l?u.w:u.v,f=a(u);s[l][d]={distance:f,predecessor:l}})}),c.forEach(function(l){var u=s[l];c.forEach(function(d){var f=s[d];c.forEach(function(h){var y=f[l],v=u[h],k=f[h],g=y.distance+v.distance;g<k.distance&&(k.distance=g,k.predecessor=v.predecessor)})})}),s}return SV}var CV,dae;function $pe(){if(dae)return CV;dae=1;var e=ho();CV=t,t.CycleException=n;function t(r){var i={},a={},o=[];function s(c){if(e.has(a,c))throw new n;e.has(i,c)||(a[c]=!0,i[c]=!0,e.each(r.predecessors(c),s),delete a[c],o.push(c))}if(e.each(r.sinks(),s),e.size(i)!==r.nodeCount())throw new n;return o}function n(){}return n.prototype=new Error,CV}var LV,hae;function EOe(){if(hae)return LV;hae=1;var e=$pe();LV=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return LV}var IV,fae;function Wpe(){if(fae)return IV;fae=1;var e=ho();IV=t;function t(r,i,a){e.isArray(i)||(i=[i]);var o=(r.isDirected()?r.successors:r.neighbors).bind(r),s=[],c={};return e.each(i,function(l){if(!r.hasNode(l))throw new Error("Graph does not have node: "+l);n(r,l,a==="post",c,o,s)}),s}function n(r,i,a,o,s,c){e.has(o,i)||(o[i]=!0,a||c.push(i),e.each(s(i),function(l){n(r,l,a,o,s,c)}),a&&c.push(i))}return IV}var AV,pae;function POe(){if(pae)return AV;pae=1;var e=Wpe();AV=t;function t(n,r){return e(n,r,"post")}return AV}var _V,yae;function NOe(){if(yae)return _V;yae=1;var e=Wpe();_V=t;function t(n,r){return e(n,r,"pre")}return _V}var EV,gae;function ROe(){if(gae)return EV;gae=1;var e=ho(),t=VZ(),n=Hpe();EV=r;function r(i,a){var o=new t,s={},c=new n,l;function u(f){var h=f.v===l?f.w:f.v,y=c.priority(h);if(y!==void 0){var v=a(f);v<y&&(s[h]=l,c.decrease(h,v))}}if(i.nodeCount()===0)return o;e.each(i.nodes(),function(f){c.add(f,Number.POSITIVE_INFINITY),o.setNode(f)}),c.decrease(i.nodes()[0],0);for(var d=!1;c.size()>0;){if(l=c.removeMin(),e.has(s,l))o.setEdge(l,s[l]);else{if(d)throw new Error("Input graph is not connected: "+i);d=!0}i.nodeEdges(l).forEach(u)}return o}return EV}var PV,mae;function jOe(){return mae||(mae=1,PV={components:LOe(),dijkstra:Vpe(),dijkstraAll:IOe(),findCycles:AOe(),floydWarshall:_Oe(),isAcyclic:EOe(),postorder:POe(),preorder:NOe(),prim:ROe(),tarjan:Upe(),topsort:$pe()}),PV}var NV,vae;function TOe(){if(vae)return NV;vae=1;var e=SOe();return NV={Graph:e.Graph,json:COe(),alg:jOe(),version:e.version},NV}var gD;if(typeof IZ=="function")try{gD=TOe()}catch{}gD||(gD=window.graphlib);var Ho=gD,RV,kae;function DOe(){if(kae)return RV;kae=1;var e=mpe(),t=1,n=4;function r(i){return e(i,t|n)}return RV=r,RV}var jV,xae;function Zq(){if(xae)return jV;xae=1;var e=Jf(),t=lc(),n=Fq(),r=uo();function i(a,o,s){if(!r(s))return!1;var c=typeof o;return(c=="number"?t(s)&&n(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return jV=i,jV}var TV,wae;function qOe(){if(wae)return TV;wae=1;var e=Kq(),t=Jf(),n=Zq(),r=Wh(),i=Object.prototype,a=i.hasOwnProperty,o=e(function(s,c){s=Object(s);var l=-1,u=c.length,d=u>2?c[2]:void 0;for(d&&n(c[0],c[1],d)&&(u=1);++l<u;)for(var f=c[l],h=r(f),y=-1,v=h.length;++y<v;){var k=h[y],g=s[k];(g===void 0||t(g,i[k])&&!a.call(s,k))&&(s[k]=f[k])}return s});return TV=o,TV}var DV,bae;function zOe(){if(bae)return DV;bae=1;var e=uc(),t=lc(),n=gl();function r(i){return function(a,o,s){var c=Object(a);if(!t(a)){var l=e(o,3);a=n(a),o=function(d){return l(c[d],d,c)}}var u=i(a,o,s);return u>-1?c[l?a[u]:u]:void 0}}return DV=r,DV}var qV,Mae;function OOe(){if(Mae)return qV;Mae=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return qV=t,qV}var zV,Sae;function FOe(){if(Sae)return zV;Sae=1;var e=OOe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zV=n,zV}var OV,Cae;function BOe(){if(Cae)return OV;Cae=1;var e=FOe(),t=uo(),n=n0(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return OV=c,OV}var FV,Lae;function Gpe(){if(Lae)return FV;Lae=1;var e=BOe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return FV=r,FV}var BV,Iae;function HOe(){if(Iae)return BV;Iae=1;var e=Gpe();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return BV=t,BV}var HV,Aae;function VOe(){if(Aae)return HV;Aae=1;var e=Ope(),t=uc(),n=HOe(),r=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var l=s==null?0:n(s);return l<0&&(l=r(c+l,0)),e(a,t(o,3),l)}return HV=i,HV}var VV,_ae;function UOe(){if(_ae)return VV;_ae=1;var e=zOe(),t=VOe(),n=e(t);return VV=n,VV}var UV,Eae;function Kpe(){if(Eae)return UV;Eae=1;var e=HZ();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return UV=t,UV}var $V,Pae;function $Oe(){if(Pae)return $V;Pae=1;var e=zZ(),t=vpe(),n=Wh();function r(i,a){return i==null?i:e(i,t(a),n)}return $V=r,$V}var WV,Nae;function WOe(){if(Nae)return WV;Nae=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return WV=e,WV}var GV,Rae;function GOe(){if(Rae)return GV;Rae=1;var e=zq(),t=OZ(),n=uc();function r(i,a){var o={};return a=n(a,3),t(i,function(s,c,l){e(o,c,a(s,c,l))}),o}return GV=r,GV}var KV,jae;function UZ(){if(jae)return KV;jae=1;var e=n0();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var s=n[a],c=r(s);if(c!=null&&(l===void 0?c===c&&!e(c):i(c,l)))var l=c,u=s}return u}return KV=t,KV}var ZV,Tae;function KOe(){if(Tae)return ZV;Tae=1;function e(t,n){return t>n}return ZV=e,ZV}var XV,Dae;function ZOe(){if(Dae)return XV;Dae=1;var e=UZ(),t=KOe(),n=Gh();function r(i){return i&&i.length?e(i,n,t):void 0}return XV=r,XV}var YV,qae;function Zpe(){if(qae)return YV;qae=1;var e=zq(),t=Jf();function n(r,i,a){(a!==void 0&&!t(r[i],a)||a===void 0&&!(i in r))&&e(r,i,a)}return YV=n,YV}var JV,zae;function XOe(){if(zae)return JV;zae=1;var e=Uh(),t=Vq(),n=Ss(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function l(u){if(!n(u)||e(u)!=r)return!1;var d=t(u);if(d===null)return!0;var f=s.call(d,"constructor")&&d.constructor;return typeof f=="function"&&f instanceof f&&o.call(f)==c}return JV=l,JV}var QV,Oae;function Xpe(){if(Oae)return QV;Oae=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return QV=e,QV}var eU,Fae;function YOe(){if(Fae)return eU;Fae=1;var e=cg(),t=Wh();function n(r){return e(r,t(r))}return eU=n,eU}var tU,Bae;function JOe(){if(Bae)return tU;Bae=1;var e=Zpe(),t=ape(),n=ppe(),r=ope(),i=gpe(),a=lg(),o=$r(),s=Fpe(),c=e0(),l=sg(),u=uo(),d=XOe(),f=ug(),h=Xpe(),y=YOe();function v(k,g,S,w,C,_,A){var j=h(k,S),O=h(g,S),T=A.get(O);if(T){e(k,S,T);return}var D=_?_(j,O,S+"",k,g,A):void 0,I=D===void 0;if(I){var R=o(O),U=!R&&c(O),q=!R&&!U&&f(O);D=O,R||U||q?o(j)?D=j:s(j)?D=r(j):U?(I=!1,D=t(O,!0)):q?(I=!1,D=n(O,!0)):D=[]:d(O)||a(O)?(D=j,a(j)?D=y(j):(!u(j)||l(j))&&(D=i(O))):I=!1}I&&(A.set(O,D),C(D,O,w,_,A),A.delete(O)),e(k,S,D)}return tU=v,tU}var nU,Hae;function QOe(){if(Hae)return nU;Hae=1;var e=qq(),t=Zpe(),n=zZ(),r=JOe(),i=uo(),a=Wh(),o=Xpe();function s(c,l,u,d,f){c!==l&&n(l,function(h,y){if(f||(f=new e),i(h))r(c,l,y,u,s,d,f);else{var v=d?d(o(c,y),h,y+"",c,l,f):void 0;v===void 0&&(v=h),t(c,y,v)}},a)}return nU=s,nU}var rU,Vae;function eFe(){if(Vae)return rU;Vae=1;var e=Kq(),t=Zq();function n(r){return e(function(i,a){var o=-1,s=a.length,c=s>1?a[s-1]:void 0,l=s>2?a[2]:void 0;for(c=r.length>3&&typeof c=="function"?(s--,c):void 0,l&&t(a[0],a[1],l)&&(c=s<3?void 0:c,s=1),i=Object(i);++o<s;){var u=a[o];u&&r(i,u,o,c)}return i})}return rU=n,rU}var iU,Uae;function tFe(){if(Uae)return iU;Uae=1;var e=QOe(),t=eFe(),n=t(function(r,i,a){e(r,i,a)});return iU=n,iU}var aU,$ae;function Ype(){if($ae)return aU;$ae=1;function e(t,n){return t<n}return aU=e,aU}var oU,Wae;function nFe(){if(Wae)return oU;Wae=1;var e=UZ(),t=Ype(),n=Gh();function r(i){return i&&i.length?e(i,n,t):void 0}return oU=r,oU}var sU,Gae;function rFe(){if(Gae)return sU;Gae=1;var e=UZ(),t=uc(),n=Ype();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return sU=r,sU}var cU,Kae;function iFe(){if(Kae)return cU;Kae=1;var e=Bo(),t=function(){return e.Date.now()};return cU=t,cU}var lU,Zae;function aFe(){if(Zae)return lU;Zae=1;var e=Oq(),t=Wq(),n=Fq(),r=uo(),i=dg();function a(o,s,c,l){if(!r(o))return o;s=t(s,o);for(var u=-1,d=s.length,f=d-1,h=o;h!=null&&++u<d;){var y=i(s[u]),v=c;if(y==="__proto__"||y==="constructor"||y==="prototype")return o;if(u!=f){var k=h[y];v=l?l(k,y,h):void 0,v===void 0&&(v=r(k)?k:n(s[u+1])?[]:{})}e(h,y,v),h=h[y]}return o}return lU=a,lU}var uU,Xae;function oFe(){if(Xae)return uU;Xae=1;var e=Gq(),t=aFe(),n=Wq();function r(i,a,o){for(var s=-1,c=a.length,l={};++s<c;){var u=a[s],d=e(i,u);o(d,u)&&t(l,n(u,i),d)}return l}return uU=r,uU}var dU,Yae;function sFe(){if(Yae)return dU;Yae=1;var e=oFe(),t=_pe();function n(r,i){return e(r,i,function(a,o){return t(r,o)})}return dU=n,dU}var hU,Jae;function cFe(){if(Jae)return hU;Jae=1;var e=Kpe(),t=qpe(),n=zpe();function r(i){return n(t(i,void 0,e),i+"")}return hU=r,hU}var fU,Qae;function lFe(){if(Qae)return fU;Qae=1;var e=sFe(),t=cFe(),n=t(function(r,i){return r==null?{}:e(r,i)});return fU=n,fU}var pU,eoe;function uFe(){if(eoe)return pU;eoe=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var s=-1,c=t(e((i-r)/(a||1)),0),l=Array(c);c--;)l[o?c:++s]=r,r+=a;return l}return pU=n,pU}var yU,toe;function dFe(){if(toe)return yU;toe=1;var e=uFe(),t=Zq(),n=Gpe();function r(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),s=s===void 0?a<o?1:-1:n(s),e(a,o,s,i)}}return yU=r,yU}var gU,noe;function hFe(){if(noe)return gU;noe=1;var e=dFe(),t=e();return gU=t,gU}var mU,roe;function fFe(){if(roe)return mU;roe=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return mU=e,mU}var vU,ioe;function pFe(){if(ioe)return vU;ioe=1;var e=n0();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,s=e(n),c=r!==void 0,l=r===null,u=r===r,d=e(r);if(!l&&!d&&!s&&n>r||s&&c&&u&&!l&&!d||a&&c&&u||!i&&u||!o)return 1;if(!a&&!s&&!d&&n<r||d&&i&&o&&!a&&!s||l&&i&&o||!c&&o||!u)return-1}return 0}return vU=t,vU}var kU,aoe;function yFe(){if(aoe)return kU;aoe=1;var e=pFe();function t(n,r,i){for(var a=-1,o=n.criteria,s=r.criteria,c=o.length,l=i.length;++a<c;){var u=e(o[a],s[a]);if(u){if(a>=l)return u;var d=i[a];return u*(d=="desc"?-1:1)}}return n.index-r.index}return kU=t,kU}var xU,ooe;function gFe(){if(ooe)return xU;ooe=1;var e=$q(),t=Gq(),n=uc(),r=jpe(),i=fFe(),a=Bq(),o=yFe(),s=Gh(),c=$r();function l(u,d,f){d.length?d=e(d,function(v){return c(v)?function(k){return t(k,v.length===1?v[0]:v)}:v}):d=[s];var h=-1;d=e(d,a(n));var y=r(u,function(v,k,g){var S=e(d,function(w){return w(v)});return{criteria:S,index:++h,value:v}});return i(y,function(v,k){return o(v,k,f)})}return xU=l,xU}var wU,soe;function mFe(){if(soe)return wU;soe=1;var e=HZ(),t=gFe(),n=Kq(),r=Zq(),i=n(function(a,o){if(a==null)return[];var s=o.length;return s>1&&r(a,o[0],o[1])?o=[]:s>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return wU=i,wU}var bU,coe;function vFe(){if(coe)return bU;coe=1;var e=Ipe(),t=0;function n(r){var i=++t;return e(r)+i}return bU=n,bU}var MU,loe;function kFe(){if(loe)return MU;loe=1;function e(t,n,r){for(var i=-1,a=t.length,o=n.length,s={};++i<a;){var c=i<o?n[i]:void 0;r(s,t[i],c)}return s}return MU=e,MU}var SU,uoe;function xFe(){if(uoe)return SU;uoe=1;var e=Oq(),t=kFe();function n(r,i){return t(r||[],i||[],e)}return SU=n,SU}var mD;if(typeof IZ=="function")try{mD={cloneDeep:DOe(),constant:qZ(),defaults:qOe(),each:xpe(),filter:Ppe(),find:UOe(),flatten:Kpe(),forEach:kpe(),forIn:$Oe(),has:Npe(),isUndefined:Rpe(),last:WOe(),map:Tpe(),mapValues:GOe(),max:ZOe(),merge:tFe(),min:nFe(),minBy:rFe(),now:iFe(),pick:lFe(),range:hFe(),reduce:Dpe(),sortBy:mFe(),uniqueId:vFe(),values:Bpe(),zipObject:xFe()}}catch{}mD||(mD=window._);var nr=mD,wFe=Xq;function Xq(){var e={};e._next=e._prev=e,this._sentinel=e}Xq.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return Jpe(t),t};Xq.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&Jpe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t};Xq.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,bFe)),n=n._prev;return"["+e.join(", ")+"]"};function Jpe(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function bFe(e,t){if(e!=="_next"&&e!=="_prev")return t}var Ks=nr,MFe=Ho.Graph,SFe=wFe,CFe=IFe,LFe=Ks.constant(1);function IFe(e,t){if(e.nodeCount()<=1)return[];var n=_Fe(e,t||LFe),r=AFe(n.graph,n.buckets,n.zeroIdx);return Ks.flatten(Ks.map(r,function(i){return e.outEdges(i.v,i.w)}),!0)}function AFe(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)CU(e,t,n,o);for(;o=i.dequeue();)CU(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(CU(e,t,n,o,!0));break}}}return r}function CU(e,t,n,r,i){var a=i?[]:void 0;return Ks.forEach(e.inEdges(r.v),function(o){var s=e.edge(o),c=e.node(o.v);i&&a.push({v:o.v,w:o.w}),c.out-=s,eG(t,n,c)}),Ks.forEach(e.outEdges(r.v),function(o){var s=e.edge(o),c=o.w,l=e.node(c);l.in-=s,eG(t,n,l)}),e.removeNode(r.v),a}function _Fe(e,t){var n=new MFe,r=0,i=0;Ks.forEach(e.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),Ks.forEach(e.edges(),function(s){var c=n.edge(s.v,s.w)||0,l=t(s),u=c+l;n.setEdge(s.v,s.w,u),i=Math.max(i,n.node(s.v).out+=l),r=Math.max(r,n.node(s.w).in+=l)});var a=Ks.range(i+r+3).map(function(){return new SFe}),o=r+1;return Ks.forEach(n.nodes(),function(s){eG(a,o,n.node(s))}),{graph:n,buckets:a,zeroIdx:o}}function eG(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var gh=nr,EFe=CFe,PFe={run:NFe,undo:jFe};function NFe(e){var t=e.graph().acyclicer==="greedy"?EFe(e,n(e)):RFe(e);gh.forEach(t,function(r){var i=e.edge(r);e.removeEdge(r),i.forwardName=r.name,i.reversed=!0,e.setEdge(r.w,r.v,i,gh.uniqueId("rev"))});function n(r){return function(i){return r.edge(i).weight}}}function RFe(e){var t=[],n={},r={};function i(a){gh.has(r,a)||(r[a]=!0,n[a]=!0,gh.forEach(e.outEdges(a),function(o){gh.has(n,o.w)?t.push(o):i(o.w)}),delete n[a])}return gh.forEach(e.nodes(),i),t}function jFe(e){gh.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var fn=nr,Qpe=Ho.Graph,fa={addDummyNode:eye,simplify:TFe,asNonCompoundGraph:DFe,successorWeights:qFe,predecessorWeights:zFe,intersectRect:OFe,buildLayerMatrix:FFe,normalizeRanks:BFe,removeEmptyRanks:HFe,addBorderNode:VFe,maxRank:tye,partition:UFe,time:$Fe,notime:WFe};function eye(e,t,n,r){var i;do i=fn.uniqueId(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function TFe(e){var t=new Qpe().setGraph(e.graph());return fn.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),fn.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function DFe(e){var t=new Qpe({multigraph:e.isMultigraph()}).setGraph(e.graph());return fn.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),fn.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function qFe(e){var t=fn.map(e.nodes(),function(n){var r={};return fn.forEach(e.outEdges(n),function(i){r[i.w]=(r[i.w]||0)+e.edge(i).weight}),r});return fn.zipObject(e.nodes(),t)}function zFe(e){var t=fn.map(e.nodes(),function(n){var r={};return fn.forEach(e.inEdges(n),function(i){r[i.v]=(r[i.v]||0)+e.edge(i).weight}),r});return fn.zipObject(e.nodes(),t)}function OFe(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function FFe(e){var t=fn.map(fn.range(tye(e)+1),function(){return[]});return fn.forEach(e.nodes(),function(n){var r=e.node(n),i=r.rank;fn.isUndefined(i)||(t[i][r.order]=n)}),t}function BFe(e){var t=fn.min(fn.map(e.nodes(),function(n){return e.node(n).rank}));fn.forEach(e.nodes(),function(n){var r=e.node(n);fn.has(r,"rank")&&(r.rank-=t)})}function HFe(e){var t=fn.min(fn.map(e.nodes(),function(a){return e.node(a).rank})),n=[];fn.forEach(e.nodes(),function(a){var o=e.node(a).rank-t;n[o]||(n[o]=[]),n[o].push(a)});var r=0,i=e.graph().nodeRankFactor;fn.forEach(n,function(a,o){fn.isUndefined(a)&&o%i!==0?--r:r&&fn.forEach(a,function(s){e.node(s).rank+=r})})}function VFe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),eye(e,"border",i,t)}function tye(e){return fn.max(fn.map(e.nodes(),function(t){var n=e.node(t).rank;if(!fn.isUndefined(n))return n}))}function UFe(e,t){var n={lhs:[],rhs:[]};return fn.forEach(e,function(r){t(r)?n.lhs.push(r):n.rhs.push(r)}),n}function $Fe(e,t){var n=fn.now();try{return t()}finally{console.log(e+" time: "+(fn.now()-n)+"ms")}}function WFe(e,t){return t()}var nye=nr,GFe=fa,KFe={run:ZFe,undo:YFe};function ZFe(e){e.graph().dummyChains=[],nye.forEach(e.edges(),function(t){XFe(e,t)})}function XFe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},l=GFe.addDummyNode(e,"edge",u,"_d"),r===c&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),e.setEdge(n,l,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(l),n=l;e.setEdge(n,i,{weight:s.weight},o)}}function YFe(e){nye.forEach(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}var bm=nr,Yq={longestPath:JFe,slack:QFe};function JFe(e){var t={};function n(r){var i=e.node(r);if(bm.has(t,r))return i.rank;t[r]=!0;var a=bm.min(bm.map(e.outEdges(r),function(o){return n(o.w)-e.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}bm.forEach(e.sources(),n)}function QFe(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var vD=nr,eBe=Ho.Graph,kD=Yq.slack,rye=tBe;function tBe(e){var t=new eBe({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;nBe(t,e)<r;)i=rBe(t,e),a=t.hasNode(i.v)?kD(e,i):-kD(e,i),iBe(t,e,a);return t}function nBe(e,t){function n(r){vD.forEach(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!kD(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return vD.forEach(e.nodes(),n),e.nodeCount()}function rBe(e,t){return vD.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return kD(t,n)})}function iBe(e,t,n){vD.forEach(e.nodes(),function(r){t.node(r).rank+=n})}var ic=nr,aBe=rye,oBe=Yq.slack,sBe=Yq.longestPath,cBe=Ho.alg.preorder,lBe=Ho.alg.postorder,uBe=fa.simplify,dBe=Kh;Kh.initLowLimValues=WZ;Kh.initCutValues=$Z;Kh.calcCutValue=iye;Kh.leaveEdge=oye;Kh.enterEdge=sye;Kh.exchangeEdges=cye;function Kh(e){e=uBe(e),sBe(e);var t=aBe(e);WZ(t),$Z(t,e);for(var n,r;n=oye(t);)r=sye(t,e,n),cye(t,e,n,r)}function $Z(e,t){var n=lBe(e,e.nodes());n=n.slice(0,n.length-1),ic.forEach(n,function(r){hBe(e,t,r)})}function hBe(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=iye(e,t,n)}function iye(e,t,n){var r=e.node(n),i=r.parent,a=!0,o=t.edge(n,i),s=0;return o||(a=!1,o=t.edge(i,n)),s=o.weight,ic.forEach(t.nodeEdges(n),function(c){var l=c.v===n,u=l?c.w:c.v;if(u!==i){var d=l===a,f=t.edge(c).weight;if(s+=d?f:-f,pBe(e,n,u)){var h=e.edge(n,u).cutvalue;s+=d?-h:h}}}),s}function WZ(e,t){arguments.length<2&&(t=e.nodes()[0]),aye(e,{},1,t)}function aye(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,ic.forEach(e.neighbors(r),function(s){ic.has(t,s)||(n=aye(e,t,n,s,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function oye(e){return ic.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function sye(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;a.lim>o.lim&&(s=o,c=!0);var l=ic.filter(t.edges(),function(u){return c===doe(e,e.node(u.v),s)&&c!==doe(e,e.node(u.w),s)});return ic.minBy(l,function(u){return oBe(t,u)})}function cye(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),WZ(e),$Z(e,t),fBe(e,t)}function fBe(e,t){var n=ic.find(e.nodes(),function(i){return!t.node(i).parent}),r=cBe(e,n);r=r.slice(1),ic.forEach(r,function(i){var a=e.node(i).parent,o=t.edge(i,a),s=!1;o||(o=t.edge(a,i),s=!0),t.node(i).rank=t.node(a).rank+(s?o.minlen:-o.minlen)})}function pBe(e,t,n){return e.hasEdge(t,n)}function doe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var yBe=Yq,lye=yBe.longestPath,gBe=rye,mBe=dBe,vBe=kBe;function kBe(e){switch(e.graph().ranker){case"network-simplex":hoe(e);break;case"tight-tree":wBe(e);break;case"longest-path":xBe(e);break;default:hoe(e)}}var xBe=lye;function wBe(e){lye(e),gBe(e)}function hoe(e){mBe(e)}var tG=nr,bBe=MBe;function MBe(e){var t=CBe(e);tG.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=SBe(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function SBe(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c,l;c=n;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function CBe(e){var t={},n=0;function r(i){var a=n;tG.forEach(e.children(i),r),t[i]={low:a,lim:n++}}return tG.forEach(e.children(),r),t}var Zs=nr,nG=fa,LBe={run:IBe,cleanup:EBe};function IBe(e){var t=nG.addDummyNode(e,"root",{},"_root"),n=ABe(e),r=Zs.max(Zs.values(n))-1,i=2*r+1;e.graph().nestingRoot=t,Zs.forEach(e.edges(),function(o){e.edge(o).minlen*=i});var a=_Be(e)+1;Zs.forEach(e.children(),function(o){uye(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function uye(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=nG.addBorderNode(e,"_bt"),l=nG.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,Zs.forEach(s,function(d){uye(e,t,n,r,i,a,d);var f=e.node(d),h=f.borderTop?f.borderTop:d,y=f.borderBottom?f.borderBottom:d,v=f.borderTop?r:2*r,k=h!==y?1:i-a[o]+1;e.setEdge(c,h,{weight:v,minlen:k,nestingEdge:!0}),e.setEdge(y,l,{weight:v,minlen:k,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function ABe(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&Zs.forEach(a,function(o){n(o,i+1)}),t[r]=i}return Zs.forEach(e.children(),function(r){n(r,1)}),t}function _Be(e){return Zs.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function EBe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zs.forEach(e.edges(),function(n){var r=e.edge(n);r.nestingEdge&&e.removeEdge(n)})}var LU=nr,PBe=fa,NBe=RBe;function RBe(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&LU.forEach(r,t),LU.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)foe(e,"borderLeft","_bl",n,i,a),foe(e,"borderRight","_br",n,i,a)}}LU.forEach(e.children(),t)}function foe(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=PBe.addDummyNode(e,"border",o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}var ds=nr,jBe={adjust:TBe,undo:DBe};function TBe(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&dye(e)}function DBe(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&qBe(e),(t==="lr"||t==="rl")&&(zBe(e),dye(e))}function dye(e){ds.forEach(e.nodes(),function(t){poe(e.node(t))}),ds.forEach(e.edges(),function(t){poe(e.edge(t))})}function poe(e){var t=e.width;e.width=e.height,e.height=t}function qBe(e){ds.forEach(e.nodes(),function(t){IU(e.node(t))}),ds.forEach(e.edges(),function(t){var n=e.edge(t);ds.forEach(n.points,IU),ds.has(n,"y")&&IU(n)})}function IU(e){e.y=-e.y}function zBe(e){ds.forEach(e.nodes(),function(t){AU(e.node(t))}),ds.forEach(e.edges(),function(t){var n=e.edge(t);ds.forEach(n.points,AU),ds.has(n,"x")&&AU(n)})}function AU(e){var t=e.x;e.x=e.y,e.y=t}var Fs=nr,OBe=FBe;function FBe(e){var t={},n=Fs.filter(e.nodes(),function(s){return!e.children(s).length}),r=Fs.max(Fs.map(n,function(s){return e.node(s).rank})),i=Fs.map(Fs.range(r+1),function(){return[]});function a(s){if(!Fs.has(t,s)){t[s]=!0;var c=e.node(s);i[c.rank].push(s),Fs.forEach(e.successors(s),a)}}var o=Fs.sortBy(n,function(s){return e.node(s).rank});return Fs.forEach(o,a),i}var Ec=nr,BBe=HBe;function HBe(e,t){for(var n=0,r=1;r<t.length;++r)n+=VBe(e,t[r-1],t[r]);return n}function VBe(e,t,n){for(var r=Ec.zipObject(n,Ec.map(n,function(l,u){return u})),i=Ec.flatten(Ec.map(t,function(l){return Ec.sortBy(Ec.map(e.outEdges(l),function(u){return{pos:r[u.w],weight:e.edge(u).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var o=2*a-1;a-=1;var s=Ec.map(new Array(o),function(){return 0}),c=0;return Ec.forEach(i.forEach(function(l){var u=l.pos+a;s[u]+=l.weight;for(var d=0;u>0;)u%2&&(d+=s[u+1]),u=u-1>>1,s[u]+=l.weight;c+=l.weight*d})),c}var yoe=nr,UBe=$Be;function $Be(e,t){return yoe.map(t,function(n){var r=e.inEdges(n);if(r.length){var i=yoe.reduce(r,function(a,o){var s=e.edge(o),c=e.node(o.v);return{sum:a.sum+s.weight*c.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}var Ra=nr,WBe=GBe;function GBe(e,t){var n={};Ra.forEach(e,function(i,a){var o=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};Ra.isUndefined(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),Ra.forEach(t.edges(),function(i){var a=n[i.v],o=n[i.w];!Ra.isUndefined(a)&&!Ra.isUndefined(o)&&(o.indegree++,a.out.push(n[i.w]))});var r=Ra.filter(n,function(i){return!i.indegree});return KBe(r)}function KBe(e){var t=[];function n(a){return function(o){o.merged||(Ra.isUndefined(o.barycenter)||Ra.isUndefined(a.barycenter)||o.barycenter>=a.barycenter)&&ZBe(a,o)}}function r(a){return function(o){o.in.push(a),--o.indegree===0&&e.push(o)}}for(;e.length;){var i=e.pop();t.push(i),Ra.forEach(i.in.reverse(),n(i)),Ra.forEach(i.out,r(i))}return Ra.map(Ra.filter(t,function(a){return!a.merged}),function(a){return Ra.pick(a,["vs","i","barycenter","weight"])})}function ZBe(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var K0=nr,XBe=fa,YBe=JBe;function JBe(e,t){var n=XBe.partition(e,function(u){return K0.has(u,"barycenter")}),r=n.lhs,i=K0.sortBy(n.rhs,function(u){return-u.i}),a=[],o=0,s=0,c=0;r.sort(QBe(!!t)),c=goe(a,i,c),K0.forEach(r,function(u){c+=u.vs.length,a.push(u.vs),o+=u.barycenter*u.weight,s+=u.weight,c=goe(a,i,c)});var l={vs:K0.flatten(a,!0)};return s&&(l.barycenter=o/s,l.weight=s),l}function goe(e,t,n){for(var r;t.length&&(r=K0.last(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function QBe(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}var Oc=nr,eHe=UBe,tHe=WBe,nHe=YBe,rHe=hye;function hye(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=Oc.filter(i,function(y){return y!==o&&y!==s}));var l=eHe(e,i);Oc.forEach(l,function(y){if(e.children(y.v).length){var v=hye(e,y.v,n,r);c[y.v]=v,Oc.has(v,"barycenter")&&aHe(y,v)}});var u=tHe(l,n);iHe(u,c);var d=nHe(u,r);if(o&&(d.vs=Oc.flatten([o,d.vs,s],!0),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),h=e.node(e.predecessors(s)[0]);Oc.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+h.order)/(d.weight+2),d.weight+=2}return d}function iHe(e,t){Oc.forEach(e,function(n){n.vs=Oc.flatten(n.vs.map(function(r){return t[r]?t[r].vs:r}),!0)})}function aHe(e,t){Oc.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var Z0=nr,oHe=Ho.Graph,sHe=cHe;function cHe(e,t,n){var r=lHe(e),i=new oHe({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(a){return e.node(a)});return Z0.forEach(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),Z0.forEach(e[n](a),function(c){var l=c.v===a?c.w:c.v,u=i.edge(l,a),d=Z0.isUndefined(u)?0:u.weight;i.setEdge(l,a,{weight:e.edge(c).weight+d})}),Z0.has(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function lHe(e){for(var t;e.hasNode(t=Z0.uniqueId("_root")););return t}var uHe=nr,dHe=hHe;function hHe(e,t,n){var r={},i;uHe.forEach(n,function(a){for(var o=e.parent(a),s,c;o;){if(s=e.parent(o),s?(c=r[s],r[s]=o):(c=i,i=o),c&&c!==o){t.setEdge(c,o);return}o=s}})}var el=nr,fHe=OBe,pHe=BBe,yHe=rHe,gHe=sHe,mHe=dHe,vHe=Ho.Graph,moe=fa,kHe=xHe;function xHe(e){var t=moe.maxRank(e),n=voe(e,el.range(1,t+1),"inEdges"),r=voe(e,el.range(t-1,-1,-1),"outEdges"),i=fHe(e);koe(e,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,c=0;c<4;++s,++c){wHe(s%2?n:r,s%4>=2),i=moe.buildLayerMatrix(e);var l=pHe(e,i);l<a&&(c=0,o=el.cloneDeep(i),a=l)}koe(e,o)}function voe(e,t,n){return el.map(t,function(r){return gHe(e,r,n)})}function wHe(e,t){var n=new vHe;el.forEach(e,function(r){var i=r.graph().root,a=yHe(r,i,n,t);el.forEach(a.vs,function(o,s){r.node(o).order=s}),mHe(r,n,a.vs)})}function koe(e,t){el.forEach(t,function(n){el.forEach(n,function(r,i){e.node(r).order=i})})}var Bt=nr,bHe=Ho.Graph,MHe=fa,SHe={positionX:THe};function CHe(e,t){var n={};function r(i,a){var o=0,s=0,c=i.length,l=Bt.last(a);return Bt.forEach(a,function(u,d){var f=IHe(e,u),h=f?e.node(f).order:c;(f||u===l)&&(Bt.forEach(a.slice(s,d+1),function(y){Bt.forEach(e.predecessors(y),function(v){var k=e.node(v),g=k.order;(g<o||h<g)&&!(k.dummy&&e.node(y).dummy)&&fye(n,v,y)})}),s=d+1,o=h)}),a}return Bt.reduce(t,r),n}function LHe(e,t){var n={};function r(a,o,s,c,l){var u;Bt.forEach(Bt.range(o,s),function(d){u=a[d],e.node(u).dummy&&Bt.forEach(e.predecessors(u),function(f){var h=e.node(f);h.dummy&&(h.order<c||h.order>l)&&fye(n,f,u)})})}function i(a,o){var s=-1,c,l=0;return Bt.forEach(o,function(u,d){if(e.node(u).dummy==="border"){var f=e.predecessors(u);f.length&&(c=e.node(f[0]).order,r(o,l,d,s,c),l=d,s=c)}r(o,l,o.length,c,a.length)}),o}return Bt.reduce(t,i),n}function IHe(e,t){if(e.node(t).dummy)return Bt.find(e.predecessors(t),function(n){return e.node(n).dummy})}function fye(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function AHe(e,t,n){if(t>n){var r=t;t=n,n=r}return Bt.has(e[t],n)}function _He(e,t,n,r){var i={},a={},o={};return Bt.forEach(t,function(s){Bt.forEach(s,function(c,l){i[c]=c,a[c]=c,o[c]=l})}),Bt.forEach(t,function(s){var c=-1;Bt.forEach(s,function(l){var u=r(l);if(u.length){u=Bt.sortBy(u,function(v){return o[v]});for(var d=(u.length-1)/2,f=Math.floor(d),h=Math.ceil(d);f<=h;++f){var y=u[f];a[l]===l&&c<o[y]&&!AHe(n,l,y)&&(a[y]=l,a[l]=i[l]=i[y],c=o[y])}}})}),{root:i,align:a}}function EHe(e,t,n,r,i){var a={},o=PHe(e,t,n,i),s=i?"borderLeft":"borderRight";function c(d,f){for(var h=o.nodes(),y=h.pop(),v={};y;)v[y]?d(y):(v[y]=!0,h.push(y),h=h.concat(f(y))),y=h.pop()}function l(d){a[d]=o.inEdges(d).reduce(function(f,h){return Math.max(f,a[h.v]+o.edge(h))},0)}function u(d){var f=o.outEdges(d).reduce(function(y,v){return Math.min(y,a[v.w]-o.edge(v))},Number.POSITIVE_INFINITY),h=e.node(d);f!==Number.POSITIVE_INFINITY&&h.borderType!==s&&(a[d]=Math.max(a[d],f))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),Bt.forEach(r,function(d){a[d]=a[n[d]]}),a}function PHe(e,t,n,r){var i=new bHe,a=e.graph(),o=DHe(a.nodesep,a.edgesep,r);return Bt.forEach(t,function(s){var c;Bt.forEach(s,function(l){var u=n[l];if(i.setNode(u),c){var d=n[c],f=i.edge(d,u);i.setEdge(d,u,Math.max(o(e,l,c),f||0))}c=l})}),i}function NHe(e,t){return Bt.minBy(Bt.values(t),function(n){var r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Bt.forIn(n,function(a,o){var s=qHe(e,o)/2;r=Math.max(a+s,r),i=Math.min(a-s,i)}),r-i})}function RHe(e,t){var n=Bt.values(t),r=Bt.min(n),i=Bt.max(n);Bt.forEach(["u","d"],function(a){Bt.forEach(["l","r"],function(o){var s=a+o,c=e[s],l;if(c!==t){var u=Bt.values(c);l=o==="l"?r-Bt.min(u):i-Bt.max(u),l&&(e[s]=Bt.mapValues(c,function(d){return d+l}))}})})}function jHe(e,t){return Bt.mapValues(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=Bt.sortBy(Bt.map(e,r));return(i[1]+i[2])/2})}function THe(e){var t=MHe.buildLayerMatrix(e),n=Bt.merge(CHe(e,t),LHe(e,t)),r={},i;Bt.forEach(["u","d"],function(o){i=o==="u"?t:Bt.values(t).reverse(),Bt.forEach(["l","r"],function(s){s==="r"&&(i=Bt.map(i,function(d){return Bt.values(d).reverse()}));var c=(o==="u"?e.predecessors:e.successors).bind(e),l=_He(e,i,n,c),u=EHe(e,i,l.root,l.align,s==="r");s==="r"&&(u=Bt.mapValues(u,function(d){return-d})),r[o+s]=u})});var a=NHe(e,r);return RHe(r,a),jHe(r,e.graph().align)}function DHe(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Bt.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":l=-o.width/2;break;case"r":l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Bt.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":l=s.width/2;break;case"r":l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function qHe(e,t){return e.node(t).width}var X0=nr,pye=fa,zHe=SHe.positionX,OHe=FHe;function FHe(e){e=pye.asNonCompoundGraph(e),BHe(e),X0.forEach(zHe(e),function(t,n){e.node(n).x=t})}function BHe(e){var t=pye.buildLayerMatrix(e),n=e.graph().ranksep,r=0;X0.forEach(t,function(i){var a=X0.max(X0.map(i,function(o){return e.node(o).height}));X0.forEach(i,function(o){e.node(o).y=r+a/2}),r+=a+n})}var Xt=nr,xoe=PFe,woe=KFe,HHe=vBe,VHe=fa.normalizeRanks,UHe=bBe,$He=fa.removeEmptyRanks,boe=LBe,WHe=NBe,Moe=jBe,GHe=kHe,KHe=OHe,ll=fa,ZHe=Ho.Graph,XHe=YHe;function YHe(e,t){var n=t&&t.debugTiming?ll.time:ll.notime;n("layout",function(){var r=n(" buildLayoutGraph",function(){return cVe(e)});n(" runLayout",function(){JHe(r,n)}),n(" updateInputGraph",function(){QHe(e,r)})})}function JHe(e,t){t(" makeSpaceForEdgeLabels",function(){lVe(e)}),t(" removeSelfEdges",function(){vVe(e)}),t(" acyclic",function(){xoe.run(e)}),t(" nestingGraph.run",function(){boe.run(e)}),t(" rank",function(){HHe(ll.asNonCompoundGraph(e))}),t(" injectEdgeLabelProxies",function(){uVe(e)}),t(" removeEmptyRanks",function(){$He(e)}),t(" nestingGraph.cleanup",function(){boe.cleanup(e)}),t(" normalizeRanks",function(){VHe(e)}),t(" assignRankMinMax",function(){dVe(e)}),t(" removeEdgeLabelProxies",function(){hVe(e)}),t(" normalize.run",function(){woe.run(e)}),t(" parentDummyChains",function(){UHe(e)}),t(" addBorderSegments",function(){WHe(e)}),t(" order",function(){GHe(e)}),t(" insertSelfEdges",function(){kVe(e)}),t(" adjustCoordinateSystem",function(){Moe.adjust(e)}),t(" position",function(){KHe(e)}),t(" positionSelfEdges",function(){xVe(e)}),t(" removeBorderNodes",function(){mVe(e)}),t(" normalize.undo",function(){woe.undo(e)}),t(" fixupEdgeLabelCoords",function(){yVe(e)}),t(" undoCoordinateSystem",function(){Moe.undo(e)}),t(" translateGraph",function(){fVe(e)}),t(" assignNodeIntersects",function(){pVe(e)}),t(" reversePoints",function(){gVe(e)}),t(" acyclic.undo",function(){xoe.undo(e)})}function QHe(e,t){Xt.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),Xt.forEach(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Xt.has(i,"x")&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var eVe=["nodesep","edgesep","ranksep","marginx","marginy"],tVe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nVe=["acyclicer","ranker","rankdir","align"],rVe=["width","height"],iVe={width:0,height:0},aVe=["minlen","weight","width","height","labeloffset"],oVe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},sVe=["labelpos"];function cVe(e){var t=new ZHe({multigraph:!0,compound:!0}),n=EU(e.graph());return t.setGraph(Xt.merge({},tVe,_U(n,eVe),Xt.pick(n,nVe))),Xt.forEach(e.nodes(),function(r){var i=EU(e.node(r));t.setNode(r,Xt.defaults(_U(i,rVe),iVe)),t.setParent(r,e.parent(r))}),Xt.forEach(e.edges(),function(r){var i=EU(e.edge(r));t.setEdge(r,Xt.merge({},oVe,_U(i,aVe),Xt.pick(i,sVe)))}),t}function lVe(e){var t=e.graph();t.ranksep/=2,Xt.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function uVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w),a={rank:(i.rank-r.rank)/2+r.rank,e:t};ll.addDummyNode(e,"edge-proxy",a,"_ep")}})}function dVe(e){var t=0;Xt.forEach(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Xt.max(t,r.maxRank))}),e.graph().maxRank=t}function hVe(e){Xt.forEach(e.nodes(),function(t){var n=e.node(t);n.dummy==="edge-proxy"&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function fVe(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(l){var u=l.x,d=l.y,f=l.width,h=l.height;t=Math.min(t,u-f/2),n=Math.max(n,u+f/2),r=Math.min(r,d-h/2),i=Math.max(i,d+h/2)}Xt.forEach(e.nodes(),function(l){c(e.node(l))}),Xt.forEach(e.edges(),function(l){var u=e.edge(l);Xt.has(u,"x")&&c(u)}),t-=o,r-=s,Xt.forEach(e.nodes(),function(l){var u=e.node(l);u.x-=t,u.y-=r}),Xt.forEach(e.edges(),function(l){var u=e.edge(l);Xt.forEach(u.points,function(d){d.x-=t,d.y-=r}),Xt.has(u,"x")&&(u.x-=t),Xt.has(u,"y")&&(u.y-=r)}),a.width=n-t+o,a.height=i-r+s}function pVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(ll.intersectRect(r,a)),n.points.push(ll.intersectRect(i,o))})}function yVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);if(Xt.has(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function gVe(e){Xt.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function mVe(e){Xt.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(Xt.last(n.borderLeft)),o=e.node(Xt.last(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),Xt.forEach(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function vVe(e){Xt.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function kVe(e){var t=ll.buildLayerMatrix(e);Xt.forEach(t,function(n){var r=0;Xt.forEach(n,function(i,a){var o=e.node(i);o.order=a+r,Xt.forEach(o.selfEdges,function(s){ll.addDummyNode(e,"selfedge",{width:s.label.width,height:s.label.height,rank:o.rank,order:a+ ++r,e:s.e,label:s.label},"_se")}),delete o.selfEdges})})}function xVe(e){Xt.forEach(e.nodes(),function(t){var n=e.node(t);if(n.dummy==="selfedge"){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function _U(e,t){return Xt.mapValues(Xt.pick(e,t),Number)}function EU(e){var t={};return Xt.forEach(e,function(n,r){t[r.toLowerCase()]=n}),t}var Mm=nr,wVe=fa,bVe=Ho.Graph,MVe={debugOrdering:SVe};function SVe(e){var t=wVe.buildLayerMatrix(e),n=new bVe({compound:!0,multigraph:!0}).setGraph({});return Mm.forEach(e.nodes(),function(r){n.setNode(r,{label:r}),n.setParent(r,"layer"+e.node(r).rank)}),Mm.forEach(e.edges(),function(r){n.setEdge(r.v,r.w,{},r.name)}),Mm.forEach(t,function(r,i){var a="layer"+i;n.setNode(a,{rank:"same"}),Mm.reduce(r,function(o,s){return n.setEdge(o,s,{style:"invis"}),s})}),n}var CVe="0.8.5",LVe={graphlib:Ho,layout:XHe,debug:MVe,util:{time:fa.time,notime:fa.notime},version:CVe};const Soe=Rf(LVe),PU={direction:"LR",nodesep:60,ranksep:140},IVe=(e,t,n)=>{const r=new Map;if(e.length===0)return r;if(e.length===1){const u=e[0];return u&&r.set(u.id,{x:u.position.x,y:u.position.y}),r}const i=PU.direction,a=PU.nodesep,o=PU.ranksep,s=new Soe.graphlib.Graph({multigraph:!0});s.setGraph({rankdir:i,nodesep:a,ranksep:o}),s.setDefaultEdgeLabel(()=>({}));const c=new Set;for(const u of e)s.setNode(u.id,{width:u.width,height:u.height}),c.add(u.id);let l=0;for(const u of t)!c.has(u.source)||!c.has(u.target)||s.setEdge(u.source,u.target,{},`e${l++}`);Soe.layout(s);for(const u of e){const d=s.node(u.id);d&&r.set(u.id,{x:d.x-u.width/2,y:d.y-u.height/2})}return r};function AVe({nodes:e,connectors:t,flowPos:n,nodeIdGen:r,connectorIdGen:i,defaultOffset:a={x:24,y:24}}){const o=new Map;for(const h of e)o.set(h.id,r(h.id));let s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;for(const h of e)h.position.x<s&&(s=h.position.x),h.position.y<c&&(c=h.position.y);Number.isFinite(s)||(s=0),Number.isFinite(c)||(c=0);const l=n?n.x-s:a.x,u=n?n.y-c:a.y,d=e.map(h=>{const y=o.get(h.id);if(y===void 0)throw new Error(`paste id missing for ${h.id}`);return{...h,id:y,position:{x:h.position.x+l,y:h.position.y+u}}}),f=t.map(h=>{const y=i(h.id);return{...h,id:y,source:o.get(h.source)??h.source,target:o.get(h.target)??h.target}});return{newNodes:d,newConnectors:f,idMap:o}}function _Ve(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const EVe=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function tl(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let y2=null;function yye(e={}){return y2||(e.includeStyleProperties?(y2=e.includeStyleProperties,y2):(y2=tl(window.getComputedStyle(document.documentElement)),y2))}function xD(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function PVe(e){const t=xD(e,"border-left-width"),n=xD(e,"border-right-width");return e.clientWidth+t+n}function NVe(e){const t=xD(e,"border-top-width"),n=xD(e,"border-bottom-width");return e.clientHeight+t+n}function gye(e,t={}){const n=t.width||PVe(e),r=t.height||NVe(e);return{width:n,height:r}}function RVe(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Aa=16384;function jVe(e){(e.width>Aa||e.height>Aa)&&(e.width>Aa&&e.height>Aa?e.width>e.height?(e.height*=Aa/e.width,e.width=Aa):(e.width*=Aa/e.height,e.height=Aa):e.width>Aa?(e.height*=Aa/e.width,e.width=Aa):(e.width*=Aa/e.height,e.height=Aa))}function wD(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function TVe(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function DVe(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),TVe(i)}const ha=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ha(n,t)};function qVe(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function zVe(e,t){return yye(t).map(n=>{const r=e.getPropertyValue(n),i=e.getPropertyPriority(n);return`${n}: ${r}${i?" !important":""};`}).join(" ")}function OVe(e,t,n,r){const i=`.${e}:${t}`,a=n.cssText?qVe(n):zVe(n,r);return document.createTextNode(`${i}{${a}}`)}function Coe(e,t,n,r){const i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;const o=EVe();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(OVe(o,n,i,r)),t.appendChild(s)}function FVe(e,t,n){Coe(e,t,":before",n),Coe(e,t,":after",n)}const Loe="application/font-woff",Ioe="image/jpeg",BVe={woff:Loe,woff2:Loe,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ioe,jpeg:Ioe,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function HVe(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function GZ(e){const t=HVe(e).toLowerCase();return BVe[t]||""}function VVe(e){return e.split(/,/)[1]}function rG(e){return e.search(/^(data:)/)!==-1}function UVe(e,t){return`data:${t};base64,${e}`}async function mye(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(n({res:r,result:s.result}))}catch(c){o(c)}},s.readAsDataURL(i)})}const NU={};function $Ve(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function KZ(e,t,n){const r=$Ve(e,t,n.includeQueryParams);if(NU[r]!=null)return NU[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await mye(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),VVe(s)));i=UVe(a,t)}catch(a){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return NU[r]=i,i}async function WVe(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):wD(t)}async function GVe(e,t){if(e.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,o==null||o.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return wD(s)}const n=e.poster,r=GZ(n),i=await KZ(n,r,t);return wD(i)}async function KVe(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await Jq(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function ZVe(e,t){return ha(e,HTMLCanvasElement)?WVe(e):ha(e,HTMLVideoElement)?GVe(e,t):ha(e,HTMLIFrameElement)?KVe(e,t):e.cloneNode(vye(e))}const XVe=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",vye=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function YVe(e,t,n){var r,i;if(vye(t))return t;let a=[];return XVe(e)&&e.assignedNodes?a=tl(e.assignedNodes()):ha(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=tl(e.contentDocument.body.childNodes):a=tl(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||ha(e,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Jq(s,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function JVe(e,t,n){const r=t.style;if(!r)return;const i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):yye(n).forEach(a=>{let o=i.getPropertyValue(a);a==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),ha(e,HTMLIFrameElement)&&a==="display"&&o==="inline"&&(o="block"),a==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(a,o,i.getPropertyPriority(a))})}function QVe(e,t){ha(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ha(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function eUe(e,t){if(ha(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function tUe(e,t,n){return ha(t,Element)&&(JVe(e,t,n),FVe(e,t,n),QVe(e,t),eUe(e,t)),t}async function nUe(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const s=n[a].getAttribute("xlink:href");if(s){const c=e.querySelector(s),l=document.querySelector(s);!c&&l&&!r[s]&&(r[s]=await Jq(l,t,!0))}}const i=Object.values(r);if(i.length){const a="http://www.w3.org/1999/xhtml",o=document.createElementNS(a,"svg");o.setAttribute("xmlns",a),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(a,"defs");o.appendChild(s);for(let c=0;c<i.length;c++)s.appendChild(i[c]);e.appendChild(o)}return e}async function Jq(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>ZVe(r,t)).then(r=>YVe(e,r,t)).then(r=>tUe(e,r,t)).then(r=>nUe(r,t))}const kye=/url\((['"]?)([^'"]+?)\1\)/g,rUe=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,iUe=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function aUe(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function oUe(e){const t=[];return e.replace(kye,(n,r,i)=>(t.push(i),n)),t.filter(n=>!rG(n))}async function sUe(e,t,n,r,i){try{const a=n?_Ve(t,n):t,o=GZ(t);let s;return i||(s=await KZ(a,o,r)),e.replace(aUe(t),`$1${s}$3`)}catch{}return e}function cUe(e,{preferredFontFormat:t}){return t?e.replace(iUe,n=>{for(;;){const[r,,i]=rUe.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function xye(e){return e.search(kye)!==-1}async function wye(e,t,n){if(!xye(e))return e;const r=cUe(e,n);return oUe(r).reduce((a,o)=>a.then(s=>sUe(s,o,t,n)),Promise.resolve(r))}async function g2(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await wye(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function lUe(e,t){await g2("background",e,t)||await g2("background-image",e,t),await g2("mask",e,t)||await g2("-webkit-mask",e,t)||await g2("mask-image",e,t)||await g2("-webkit-mask-image",e,t)}async function uUe(e,t){const n=ha(e,HTMLImageElement);if(!(n&&!rG(e.src))&&!(ha(e,SVGImageElement)&&!rG(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await KZ(r,GZ(r),t);await new Promise((a,o)=>{e.onload=a,e.onerror=t.onImageErrorHandler?(...c)=>{try{a(t.onImageErrorHandler(...c))}catch(l){o(l)}}:o;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function dUe(e,t){const r=tl(e.childNodes).map(i=>bye(i,t));await Promise.all(r).then(()=>e)}async function bye(e,t){ha(e,Element)&&(await lUe(e,t),await uUe(e,t),await dUe(e,t))}function hUe(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const Aoe={};async function _oe(e){let t=Aoe[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},Aoe[e]=t,t}async function Eoe(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),mye(s,t.fetchRequestInit,({result:c})=>(n=n.replace(o,`url(${c})`),[o,c]))});return Promise.all(a).then(()=>n)}function Poe(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=i.exec(r);if(c===null)break;t.push(c[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let c=a.exec(r);if(c===null){if(c=s.exec(r),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(c[0])}return t}async function fUe(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{tl(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const c=a.href,l=_oe(c).then(u=>Eoe(u,t)).then(u=>Poe(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(l)}})}catch(a){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&r.push(_oe(i.href).then(s=>Eoe(s,t)).then(s=>Poe(s).forEach(c=>{o.insertRule(c,o.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{tl(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function pUe(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>xye(t.style.getPropertyValue("src")))}async function yUe(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=tl(e.ownerDocument.styleSheets),r=await fUe(n,t);return pUe(r)}function Mye(e){return e.trim().replace(/["']/g,"")}function gUe(e){const t=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(a=>{t.add(Mye(a))}),Array.from(r.children).forEach(a=>{a instanceof HTMLElement&&n(a)})}return n(e),t}async function mUe(e,t){const n=await yUe(e,t),r=gUe(e);return(await Promise.all(n.filter(a=>r.has(Mye(a.style.fontFamily))).map(a=>{const o=a.parentStyleSheet?a.parentStyleSheet.href:null;return wye(a.cssText,o,t)}))).join(`
|
|
7837
7837
|
`)}async function vUe(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mUe(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function kUe(e,t={}){const{width:n,height:r}=gye(e,t),i=await Jq(e,t,!0);return await vUe(i,t),await bye(i,t),hUe(i,t),await DVe(i,n,r)}async function xUe(e,t={}){const{width:n,height:r}=gye(e,t),i=await kUe(e,t),a=await wD(i),o=document.createElement("canvas"),s=o.getContext("2d"),c=t.pixelRatio||RVe(),l=t.canvasWidth||n,u=t.canvasHeight||r;return o.width=l*c,o.height=u*c,t.skipAutoScale||jVe(o),o.style.width=`${l}`,o.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function wUe(e,t={}){return(await xUe(e,t)).toDataURL()}const bUe=e=>e instanceof Element?!(e.classList.contains("react-flow__minimap")||e.classList.contains("react-flow__controls")||e.classList.contains("react-flow__panel")):!0,MUe=async e=>{const t=await wUe(e,{cacheBust:!0,filter:bUe}),n=await new Promise((r,i)=>{const a=new Image;a.onload=()=>r({width:a.naturalWidth,height:a.naturalHeight}),a.onerror=()=>i(new Error("Failed to decode captured image")),a.src=t});return{dataUrl:t,...n}},SUe=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()};function CUe(e,t){const n=e.screenToFlowPosition({x:t.width/2,y:t.height/2});return{x:n.x-Pf.width/2,y:n.y-Pf.height/2}}const LUe=e=>({type:"imageNode",position:e.position,data:{path:"",alt:e.originalFilename,width:e.dims.width,height:e.dims.height,_uploading:!0}}),IUe=e=>({type:"imageNode",data:Sye(e)}),AUe=e=>({type:"imageNode",position:e.position,data:{path:"",alt:e.originalFilename,width:e.dims.width,height:e.dims.height,_uploadError:e.message}}),Sye=e=>({...WAe(e.path,e.dims,e.lastUsed),alt:e.originalFilename}),_Ue=async(e,t)=>{const{nodeId:n,demoId:r,file:i,originalFilename:a,position:o,dims:s,lastUsed:c}=e;t.rememberRetry(n,{file:i,originalFilename:a,position:o,dims:s}),t.setOverride(n,LUe({position:o,dims:s,originalFilename:a}));let l;try{l=(await t.upload(r,i,a)).path}catch(h){const y=h instanceof Error?h.message:String(h);throw t.setOverride(n,AUe({position:o,dims:s,originalFilename:a,message:y})),h}t.setOverride(n,IUe({path:l,dims:s,originalFilename:a,lastUsed:c}));const u=Sye({path:l,dims:s,originalFilename:a,lastUsed:c}),d={id:n,type:"imageNode",position:o,data:u},{id:f}=await t.createNode(r,d);t.forgetRetry(n),t.pushUndo&&t.pushUndo({do:async()=>{await t.createNode(r,{...d,id:f})},undo:async()=>{await t.deleteNode(r,f)}})},Cye="seeflow:last-used-style:v1",RU=()=>({node:{},connector:{}}),jU=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ZZ=()=>{var e;try{const t=(e=globalThis.localStorage)==null?void 0:e.getItem(Cye);if(!t)return RU();const n=JSON.parse(t);if(!jU(n))return RU();const r=jU(n.node)?n.node:{},i=jU(n.connector)?n.connector:{};return{node:r,connector:i}}catch{return RU()}},Lye=e=>{var t;try{(t=globalThis.localStorage)==null||t.setItem(Cye,JSON.stringify(e))}catch{}},Sm=()=>ZZ(),Noe=e=>{const{alt:t,...n}=e,r={...n};r.borderSize!==void 0&&r.borderWidth===void 0?r.borderWidth=r.borderSize:r.borderWidth!==void 0&&r.borderSize===void 0&&(r.borderSize=r.borderWidth);const i=ZZ();Lye({...i,node:{...i.node,...r}})},EUe=e=>{const t=ZZ();Lye({...t,connector:{...t.connector,...e}})},PUe="modulepreload",NUe=function(e){return"/"+e},Roe={},TU=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=NUe(c),c in Roe)return;Roe[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":PUe,l||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function RUe(e){if(Array.isArray(e))return e}function jUe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function joe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TUe(e,t){if(e){if(typeof e=="string")return joe(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?joe(e,t):void 0}}function DUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7838
7838
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Toe(e,t){return RUe(e)||jUe(e,t)||TUe(e,t)||DUe()}function Doe(e,t="utf8"){return new TextDecoder(t).decode(e)}const qUe=new TextEncoder;function zUe(e){return qUe.encode(e)}const OUe=1024*8,FUe=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),DU={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class XZ{constructor(t=OUe,n={}){vn(this,"buffer");vn(this,"byteLength");vn(this,"byteOffset");vn(this,"length");vn(this,"offset");vn(this,"lastWrittenByte");vn(this,"littleEndian");vn(this,"_data");vn(this,"_mark");vn(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,a=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof XZ)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=DU[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===FUe&&n!=="uint8"&&n!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+r));s.reverse();const c=new DU[n](s.buffer);return this.offset+=r,c.reverse(),c}const o=new DU[n](a);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return Doe(this.readBytes(t))}decodeText(t=1,n="utf8"){return Doe(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(zUe(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function r0(e){let t=e.length;for(;--t>=0;)e[t]=0}const BUe=3,HUe=258,Iye=29,VUe=256,UUe=VUe+1+Iye,Aye=30,$Ue=512,WUe=new Array((UUe+2)*2);r0(WUe);const GUe=new Array(Aye*2);r0(GUe);const KUe=new Array($Ue);r0(KUe);const ZUe=new Array(HUe-BUe+1);r0(ZUe);const XUe=new Array(Iye);r0(XUe);const YUe=new Array(Aye);r0(YUe);const JUe=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};var iG=JUe;const QUe=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},e$e=new Uint32Array(QUe()),t$e=(e,t,n,r)=>{const i=e$e,a=r+n;e^=-1;for(let o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Qo=t$e,aG={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_ye={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const n$e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r$e=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)n$e(n,r)&&(e[r]=n[r])}}return e},i$e=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,a=e.length;r<a;r++){let o=e[r];n.set(o,i),i+=o.length}return n},Eye={assign:r$e,flattenChunks:i$e};let Pye=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Pye=!1}const Sy=new Uint8Array(256);for(let e=0;e<256;e++)Sy[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Sy[254]=Sy[254]=1;var a$e=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};const o$e=(e,t)=>{if(t<65534&&e.subarray&&Pye)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var s$e=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const a=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){a[i++]=o;continue}let s=Sy[o];if(s>4){a[i++]=65533,r+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&r<n;)o=o<<6|e[r++]&63,s--;if(s>1){a[i++]=65533;continue}o<65536?a[i++]=o:(o-=65536,a[i++]=55296|o>>10&1023,a[i++]=56320|o&1023)}return o$e(a,i)},c$e=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Sy[e[n]]>t?n:t},oG={string2buf:a$e,buf2string:s$e,utf8border:c$e};function l$e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var u$e=l$e;const Cm=16209,d$e=16191;var h$e=function(t,n){let r,i,a,o,s,c,l,u,d,f,h,y,v,k,g,S,w,C,_,A,j,O,T,D;const I=t.state;r=t.next_in,T=t.input,i=r+(t.avail_in-5),a=t.next_out,D=t.output,o=a-(n-t.avail_out),s=a+(t.avail_out-257),c=I.dmax,l=I.wsize,u=I.whave,d=I.wnext,f=I.window,h=I.hold,y=I.bits,v=I.lencode,k=I.distcode,g=(1<<I.lenbits)-1,S=(1<<I.distbits)-1;e:do{y<15&&(h+=T[r++]<<y,y+=8,h+=T[r++]<<y,y+=8),w=v[h&g];t:for(;;){if(C=w>>>24,h>>>=C,y-=C,C=w>>>16&255,C===0)D[a++]=w&65535;else if(C&16){_=w&65535,C&=15,C&&(y<C&&(h+=T[r++]<<y,y+=8),_+=h&(1<<C)-1,h>>>=C,y-=C),y<15&&(h+=T[r++]<<y,y+=8,h+=T[r++]<<y,y+=8),w=k[h&S];n:for(;;){if(C=w>>>24,h>>>=C,y-=C,C=w>>>16&255,C&16){if(A=w&65535,C&=15,y<C&&(h+=T[r++]<<y,y+=8,y<C&&(h+=T[r++]<<y,y+=8)),A+=h&(1<<C)-1,A>c){t.msg="invalid distance too far back",I.mode=Cm;break e}if(h>>>=C,y-=C,C=a-o,A>C){if(C=A-C,C>u&&I.sane){t.msg="invalid distance too far back",I.mode=Cm;break e}if(j=0,O=f,d===0){if(j+=l-C,C<_){_-=C;do D[a++]=f[j++];while(--C);j=a-A,O=D}}else if(d<C){if(j+=l+d-C,C-=d,C<_){_-=C;do D[a++]=f[j++];while(--C);if(j=0,d<_){C=d,_-=C;do D[a++]=f[j++];while(--C);j=a-A,O=D}}}else if(j+=d-C,C<_){_-=C;do D[a++]=f[j++];while(--C);j=a-A,O=D}for(;_>2;)D[a++]=O[j++],D[a++]=O[j++],D[a++]=O[j++],_-=3;_&&(D[a++]=O[j++],_>1&&(D[a++]=O[j++]))}else{j=a-A;do D[a++]=D[j++],D[a++]=D[j++],D[a++]=D[j++],_-=3;while(_>2);_&&(D[a++]=D[j++],_>1&&(D[a++]=D[j++]))}}else if(C&64){t.msg="invalid distance code",I.mode=Cm;break e}else{w=k[(w&65535)+(h&(1<<C)-1)];continue n}break}}else if(C&64)if(C&32){I.mode=d$e;break e}else{t.msg="invalid literal/length code",I.mode=Cm;break e}else{w=v[(w&65535)+(h&(1<<C)-1)];continue t}break}}while(r<i&&a<s);_=y>>3,r-=_,y-=_<<3,h&=(1<<y)-1,t.next_in=r,t.next_out=a,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=a<s?257+(s-a):257-(a-s),I.hold=h,I.bits=y};const m2=15,qoe=852,zoe=592,Ooe=0,qU=1,Foe=2,f$e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),p$e=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),y$e=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),g$e=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),m$e=(e,t,n,r,i,a,o,s)=>{const c=s.bits;let l=0,u=0,d=0,f=0,h=0,y=0,v=0,k=0,g=0,S=0,w,C,_,A,j,O=null,T;const D=new Uint16Array(m2+1),I=new Uint16Array(m2+1);let R=null,U,q,K;for(l=0;l<=m2;l++)D[l]=0;for(u=0;u<r;u++)D[t[n+u]]++;for(h=c,f=m2;f>=1&&D[f]===0;f--);if(h>f&&(h=f),f===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<f&&D[d]===0;d++);for(h<d&&(h=d),k=1,l=1;l<=m2;l++)if(k<<=1,k-=D[l],k<0)return-1;if(k>0&&(e===Ooe||f!==1))return-1;for(I[1]=0,l=1;l<m2;l++)I[l+1]=I[l]+D[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[I[t[n+u]]++]=u);if(e===Ooe?(O=R=o,T=20):e===qU?(O=f$e,R=p$e,T=257):(O=y$e,R=g$e,T=0),S=0,u=0,l=d,j=a,y=h,v=0,_=-1,g=1<<h,A=g-1,e===qU&&g>qoe||e===Foe&&g>zoe)return 1;for(;;){U=l-v,o[u]+1<T?(q=0,K=o[u]):o[u]>=T?(q=R[o[u]-T],K=O[o[u]-T]):(q=96,K=0),w=1<<l-v,C=1<<y,d=C;do C-=w,i[j+(S>>v)+C]=U<<24|q<<16|K|0;while(C!==0);for(w=1<<l-1;S&w;)w>>=1;if(w!==0?(S&=w-1,S+=w):S=0,u++,--D[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>h&&(S&A)!==_){for(v===0&&(v=h),j+=d,y=l-v,k=1<<y;y+v<f&&(k-=D[y+v],!(k<=0));)y++,k<<=1;if(g+=1<<y,e===qU&&g>qoe||e===Foe&&g>zoe)return 1;_=S&A,i[_]=h<<24|y<<16|j-a|0}}return S!==0&&(i[j+S]=l-v<<24|64<<16|0),s.bits=h,0};var Vp=m$e;const v$e=0,Nye=1,Rye=2,{Z_FINISH:Boe,Z_BLOCK:k$e,Z_TREES:Lm,Z_OK:Dh,Z_STREAM_END:x$e,Z_NEED_DICT:w$e,Z_STREAM_ERROR:co,Z_DATA_ERROR:jye,Z_MEM_ERROR:Tye,Z_BUF_ERROR:b$e,Z_DEFLATED:Hoe}=_ye,Qq=16180,Voe=16181,Uoe=16182,$oe=16183,Woe=16184,Goe=16185,Koe=16186,Zoe=16187,Xoe=16188,Yoe=16189,bD=16190,Bs=16191,zU=16192,Joe=16193,OU=16194,Qoe=16195,ese=16196,tse=16197,nse=16198,Im=16199,Am=16200,rse=16201,ise=16202,ase=16203,ose=16204,sse=16205,FU=16206,cse=16207,lse=16208,er=16209,Dye=16210,qye=16211,M$e=852,S$e=592,C$e=15,L$e=C$e,use=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function I$e(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Zh=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Qq||t.mode>qye?1:0},zye=e=>{if(Zh(e))return co;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Qq,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(M$e),t.distcode=t.distdyn=new Int32Array(S$e),t.sane=1,t.back=-1,Dh},Oye=e=>{if(Zh(e))return co;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,zye(e)},Fye=(e,t)=>{let n;if(Zh(e))return co;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?co:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Oye(e))},Bye=(e,t)=>{if(!e)return co;const n=new I$e;e.state=n,n.strm=e,n.window=null,n.mode=Qq;const r=Fye(e,t);return r!==Dh&&(e.state=null),r},A$e=e=>Bye(e,L$e);let dse=!0,BU,HU;const _$e=e=>{if(dse){BU=new Int32Array(512),HU=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Vp(Nye,e.lens,0,288,BU,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Vp(Rye,e.lens,0,32,HU,0,e.work,{bits:5}),dse=!1}e.lencode=BU,e.lenbits=9,e.distcode=HU,e.distbits=5},Hye=(e,t,n,r)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},E$e=(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,h,y,v,k=0,g,S,w,C,_,A,j,O;const T=new Uint8Array(4);let D,I;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Zh(e)||!e.output||!e.input&&e.avail_in!==0)return co;n=e.state,n.mode===Bs&&(n.mode=zU),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,O=Dh;e:for(;;)switch(n.mode){case Qq:if(n.wrap===0){n.mode=zU;break}for(;u<16;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=Qo(n.check,T,2,0),l=0,u=0,n.mode=Voe;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=er;break}if((l&15)!==Hoe){e.msg="unknown compression method",n.mode=er;break}if(l>>>=4,u-=4,j=(l&15)+8,n.wbits===0&&(n.wbits=j),j>15||j>n.wbits){e.msg="invalid window size",n.mode=er;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?Yoe:Bs,l=0,u=0;break;case Voe:for(;u<16;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==Hoe){e.msg="unknown compression method",n.mode=er;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=er;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Qo(n.check,T,2,0)),l=0,u=0,n.mode=Uoe;case Uoe:for(;u<32;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=Qo(n.check,T,4,0)),l=0,u=0,n.mode=$oe;case $oe:for(;u<16;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Qo(n.check,T,2,0)),l=0,u=0,n.mode=Woe;case Woe:if(n.flags&1024){for(;u<16;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Qo(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=Goe;case Goe:if(n.flags&1024&&(h=n.length,h>s&&(h=s),h&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+h),j)),n.flags&512&&n.wrap&4&&(n.check=Qo(n.check,r,h,a)),s-=h,a+=h,n.length-=h),n.length))break e;n.length=0,n.mode=Koe;case Koe:if(n.flags&2048){if(s===0)break e;h=0;do j=r[a+h++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j));while(j&&h<s);if(n.flags&512&&n.wrap&4&&(n.check=Qo(n.check,r,h,a)),s-=h,a+=h,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Zoe;case Zoe:if(n.flags&4096){if(s===0)break e;h=0;do j=r[a+h++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j));while(j&&h<s);if(n.flags&512&&n.wrap&4&&(n.check=Qo(n.check,r,h,a)),s-=h,a+=h,j)break e}else n.head&&(n.head.comment=null);n.mode=Xoe;case Xoe:if(n.flags&512){for(;u<16;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg="header crc mismatch",n.mode=er;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Bs;break;case Yoe:for(;u<32;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=use(l),l=0,u=0,n.mode=bD;case bD:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,w$e;e.adler=n.check=1,n.mode=Bs;case Bs:if(t===k$e||t===Lm)break e;case zU:if(n.last){l>>>=u&7,u-=u&7,n.mode=FU;break}for(;u<3;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,u-=1,l&3){case 0:n.mode=Joe;break;case 1:if(_$e(n),n.mode=Im,t===Lm){l>>>=2,u-=2;break e}break;case 2:n.mode=ese;break;case 3:e.msg="invalid block type",n.mode=er}l>>>=2,u-=2;break;case Joe:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=er;break}if(n.length=l&65535,l=0,u=0,n.mode=OU,t===Lm)break e;case OU:n.mode=Qoe;case Qoe:if(h=n.length,h){if(h>s&&(h=s),h>c&&(h=c),h===0)break e;i.set(r.subarray(a,a+h),o),s-=h,a+=h,c-=h,o+=h,n.length-=h;break}n.mode=Bs;break;case ese:for(;u<14;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=er;break}n.have=0,n.mode=tse;case tse:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.lens[R[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},O=Vp(v$e,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid code lengths set",n.mode=er;break}n.have=0,n.mode=nse;case nse:for(;n.have<n.nlen+n.ndist;){for(;k=n.lencode[l&(1<<n.lenbits)-1],g=k>>>24,S=k>>>16&255,w=k&65535,!(g<=u);){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(w<16)l>>>=g,u-=g,n.lens[n.have++]=w;else{if(w===16){for(I=g+2;u<I;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(l>>>=g,u-=g,n.have===0){e.msg="invalid bit length repeat",n.mode=er;break}j=n.lens[n.have-1],h=3+(l&3),l>>>=2,u-=2}else if(w===17){for(I=g+3;u<I;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}l>>>=g,u-=g,j=0,h=3+(l&7),l>>>=3,u-=3}else{for(I=g+7;u<I;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}l>>>=g,u-=g,j=0,h=11+(l&127),l>>>=7,u-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=er;break}for(;h--;)n.lens[n.have++]=j}}if(n.mode===er)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=er;break}if(n.lenbits=9,D={bits:n.lenbits},O=Vp(Nye,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid literal/lengths set",n.mode=er;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},O=Vp(Rye,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,O){e.msg="invalid distances set",n.mode=er;break}if(n.mode=Im,t===Lm)break e;case Im:n.mode=Am;case Am:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,h$e(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===Bs&&(n.back=-1);break}for(n.back=0;k=n.lencode[l&(1<<n.lenbits)-1],g=k>>>24,S=k>>>16&255,w=k&65535,!(g<=u);){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(S&&!(S&240)){for(C=g,_=S,A=w;k=n.lencode[A+((l&(1<<C+_)-1)>>C)],g=k>>>24,S=k>>>16&255,w=k&65535,!(C+g<=u);){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}l>>>=C,u-=C,n.back+=C}if(l>>>=g,u-=g,n.back+=g,n.length=w,S===0){n.mode=sse;break}if(S&32){n.back=-1,n.mode=Bs;break}if(S&64){e.msg="invalid literal/length code",n.mode=er;break}n.extra=S&15,n.mode=rse;case rse:if(n.extra){for(I=n.extra;u<I;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ise;case ise:for(;k=n.distcode[l&(1<<n.distbits)-1],g=k>>>24,S=k>>>16&255,w=k&65535,!(g<=u);){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(!(S&240)){for(C=g,_=S,A=w;k=n.distcode[A+((l&(1<<C+_)-1)>>C)],g=k>>>24,S=k>>>16&255,w=k&65535,!(C+g<=u);){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}l>>>=C,u-=C,n.back+=C}if(l>>>=g,u-=g,n.back+=g,S&64){e.msg="invalid distance code",n.mode=er;break}n.offset=w,n.extra=S&15,n.mode=ase;case ase:if(n.extra){for(I=n.extra;u<I;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=er;break}n.mode=ose;case ose:if(c===0)break e;if(h=f-c,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=er;break}h>n.wnext?(h-=n.wnext,y=n.wsize-h):y=n.wnext-h,h>n.length&&(h=n.length),v=n.window}else v=i,y=o-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do i[o++]=v[y++];while(--h);n.length===0&&(n.mode=Am);break;case sse:if(c===0)break e;i[o++]=n.length,c--,n.mode=Am;break;case FU:if(n.wrap){for(;u<32;){if(s===0)break e;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Qo(n.check,i,f,o-f):iG(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:use(l))!==n.check){e.msg="incorrect data check",n.mode=er;break}l=0,u=0}n.mode=cse;case cse:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break e;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=er;break}l=0,u=0}n.mode=lse;case lse:O=x$e;break e;case er:O=jye;break e;case Dye:return Tye;case qye:default:return co}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<er&&(n.mode<FU||t!==Boe))&&Hye(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Qo(n.check,i,f,e.next_out-f):iG(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Bs?128:0)+(n.mode===Im||n.mode===OU?256:0),(d===0&&f===0||t===Boe)&&O===Dh&&(O=b$e),O},P$e=e=>{if(Zh(e))return co;let t=e.state;return t.window&&(t.window=null),e.state=null,Dh},N$e=(e,t)=>{if(Zh(e))return co;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Dh):co},R$e=(e,t)=>{const n=t.length;let r,i,a;return Zh(e)||(r=e.state,r.wrap!==0&&r.mode!==bD)?co:r.mode===bD&&(i=1,i=iG(i,t,n,0),i!==r.check)?jye:(a=Hye(e,t,n,n),a?(r.mode=Dye,Tye):(r.havedict=1,Dh))};var j$e=Oye,T$e=Fye,D$e=zye,q$e=A$e,z$e=Bye,O$e=E$e,F$e=P$e,B$e=N$e,H$e=R$e,V$e="pako inflate (from Nodeca project)",Us={inflateReset:j$e,inflateReset2:T$e,inflateResetKeep:D$e,inflateInit:q$e,inflateInit2:z$e,inflate:O$e,inflateEnd:F$e,inflateGetHeader:B$e,inflateSetDictionary:H$e,inflateInfo:V$e};function U$e(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var $$e=U$e;const Vye=Object.prototype.toString,{Z_NO_FLUSH:W$e,Z_FINISH:G$e,Z_OK:Cy,Z_STREAM_END:VU,Z_NEED_DICT:UU,Z_STREAM_ERROR:K$e,Z_DATA_ERROR:hse,Z_MEM_ERROR:Z$e}=_ye;function hg(e){this.options=Eye.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u$e,this.strm.avail_out=0;let n=Us.inflateInit2(this.strm,t.windowBits);if(n!==Cy)throw new Error(aG[n]);if(this.header=new $$e,Us.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=oG.string2buf(t.dictionary):Vye.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Us.inflateSetDictionary(this.strm,t.dictionary),n!==Cy)))throw new Error(aG[n])}hg.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?G$e:W$e,Vye.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Us.inflate(n,o),a===UU&&i&&(a=Us.inflateSetDictionary(n,i),a===Cy?a=Us.inflate(n,o):a===hse&&(a=UU));n.avail_in>0&&a===VU&&n.state.wrap>0&&e[n.next_in]!==0;)Us.inflateReset(n),a=Us.inflate(n,o);switch(a){case K$e:case hse:case UU:case Z$e:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===VU))if(this.options.to==="string"){let c=oG.utf8border(n.output,n.next_out),l=n.next_out-c,u=oG.buf2string(n.output,c);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(u)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Cy&&s===0)){if(a===VU)return a=Us.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};hg.prototype.onData=function(e){this.chunks.push(e)};hg.prototype.onEnd=function(e){e===Cy&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Eye.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function X$e(e,t){const n=new hg(t);if(n.push(e),n.err)throw n.msg||aG[n.err];return n.result}var Y$e=hg,J$e=X$e,Q$e={Inflate:Y$e,inflate:J$e};const{Inflate:eWe,inflate:tWe}=Q$e;var fse=eWe,nWe=tWe;const Uye=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;Uye[e]=t}const pse=4294967295;function rWe(e,t,n){let r=e;for(let i=0;i<n;i++)r=Uye[(r^t[i])&255]^r>>>8;return r}function iWe(e,t){return(rWe(pse,e,t)^pse)>>>0}function yse(e,t,n){const r=e.readUint32(),i=iWe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function $ye(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function Wye(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function Gye(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function Kye(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(n[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-i]+n[a]>>1)&255}}function Zye(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+n[a]&255;for(;a<r;a++)t[a]=e[a]+aWe(t[a-i],n[a],n[a-i])&255}}function aWe(e,t,n){const r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}function oWe(e,t,n,r,i,a){switch(e){case 0:$ye(t,n,i);break;case 1:Wye(t,n,i,a);break;case 2:Gye(t,n,r,i);break;case 3:Kye(t,n,r,i,a);break;case 4:Zye(t,n,r,i,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const sWe=new Uint16Array([255]),cWe=new Uint8Array(sWe.buffer),lWe=cWe[0]===255;function uWe(e){const{data:t,width:n,height:r,channels:i,depth:a}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,c=new Uint8Array(r*n*s);let l=0;for(let u=0;u<7;u++){const d=o[u],f=Math.ceil((n-d.x)/d.xStep),h=Math.ceil((r-d.y)/d.yStep);if(f<=0||h<=0)continue;const y=f*s,v=new Uint8Array(y);for(let k=0;k<h;k++){const g=t[l++],S=t.subarray(l,l+y);l+=y;const w=new Uint8Array(y);oWe(g,S,w,v,y,s),v.set(w);for(let C=0;C<f;C++){const _=d.x+C*d.xStep,A=d.y+k*d.yStep;if(!(_>=n||A>=r))for(let j=0;j<s;j++)c[(A*n+_)*s+j]=w[C*s+j]}}}if(a===16){const u=new Uint16Array(c.buffer);if(lWe)for(let d=0;d<u.length;d++)u[d]=dWe(u[d]);return u}else return c}function dWe(e){return(e&255)<<8|e>>8&255}const hWe=new Uint16Array([255]),fWe=new Uint8Array(hWe.buffer),pWe=fWe[0]===255,yWe=new Uint8Array(0);function gse(e){const{data:t,width:n,height:r,channels:i,depth:a}=e,o=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*n),c=new Uint8Array(r*s);let l=yWe,u=0,d,f;for(let h=0;h<r;h++){switch(d=t.subarray(u+1,u+1+s),f=c.subarray(h*s,(h+1)*s),t[u]){case 0:$ye(d,f,s);break;case 1:Wye(d,f,s,o);break;case 2:Gye(d,f,l,s);break;case 3:Kye(d,f,l,s,o);break;case 4:Zye(d,f,l,s,o);break;default:throw new Error(`Unsupported filter: ${t[u]}`)}l=f,u+=s+1}if(a===16){const h=new Uint16Array(c.buffer);if(pWe)for(let y=0;y<h.length;y++)h[y]=gWe(h[y]);return h}else return c}function gWe(e){return(e&255)<<8|e>>8&255}const hT=Uint8Array.of(137,80,78,71,13,10,26,10);function mse(e){if(!mWe(e.readBytes(hT.length)))throw new Error("wrong PNG signature")}function mWe(e){if(e.length<hT.length)return!1;for(let t=0;t<hT.length;t++)if(e[t]!==hT[t])return!1;return!0}const vWe="tEXt",kWe=0,Xye=new TextDecoder("latin1");function xWe(e){if(bWe(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const wWe=/^[\u0000-\u00FF]*$/;function bWe(e){if(!wWe.test(e))throw new Error("invalid latin1 text")}function MWe(e,t,n){const r=Yye(t);e[r]=SWe(t,n-r.length-1)}function Yye(e){for(e.mark();e.readByte()!==kWe;);const t=e.offset;e.reset();const n=Xye.decode(e.readBytes(t-e.offset-1));return e.skip(1),xWe(n),n}function SWe(e,t){return Xye.decode(e.readBytes(t))}const _a={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},$U={UNKNOWN:-1,DEFLATE:0},vse={UNKNOWN:-1,ADAPTIVE:0},WU={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},_m={NONE:0,BACKGROUND:1,PREVIOUS:2},GU={SOURCE:0,OVER:1};class CWe extends XZ{constructor(n,r={}){super(n);vn(this,"_checkCrc");vn(this,"_inflator");vn(this,"_png");vn(this,"_apng");vn(this,"_end");vn(this,"_hasPalette");vn(this,"_palette");vn(this,"_hasTransparency");vn(this,"_transparency");vn(this,"_compressionMethod");vn(this,"_filterMethod");vn(this,"_interlaceMethod");vn(this,"_colorType");vn(this,"_isAnimated");vn(this,"_numberOfFrames");vn(this,"_numberOfPlays");vn(this,"_frames");vn(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new fse,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=$U.UNKNOWN,this._filterMethod=vse.UNKNOWN,this._interlaceMethod=WU.UNKNOWN,this._colorType=_a.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(mse(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(mse(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case vWe:MWe(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?yse(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?yse(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=LWe(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case _a.GREYSCALE:i=1;break;case _a.TRUECOLOUR:i=3;break;case _a.INDEXED_COLOUR:i=1;break;case _a.GREYSCALE_ALPHA:i=2;break;case _a.TRUECOLOUR_ALPHA:i=4;break;case _a.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==$U.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let a=0;a<r;a++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case _a.GREYSCALE:case _a.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case _a.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case _a.UNKNOWN:case _a.GREYSCALE_ALPHA:case _a.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=Yye(this),i=this.readUint8();if(i!==$U.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const a=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:nWe(a)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=gse({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const a=this._apng.frames.at(n-1);this.disposeFrame(i,a,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case _m.NONE:break;case _m.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){const s=(a*n.width+o)*this._png.channels;for(let c=0;c<this._png.channels;c++)i.data[s+c]=0}break;case _m.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,a=(o,s)=>{const c=((o+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,l=(o*r.width+s)*this._png.channels;return{index:c,frameIndex:l}};switch(r.blendOp){case GU.SOURCE:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:c,frameIndex:l}=a(o,s);for(let u=0;u<this._png.channels;u++)n.data[c+u]=r.data[l+u]}break;case GU.OVER:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:c,frameIndex:l}=a(o,s);for(let u=0;u<this._png.channels;u++){const d=r.data[l+this._png.channels-1]/i,f=u%(this._png.channels-1)===0?1:r.data[l+u],h=Math.floor(d*f+(1-d)*n.data[c+u]);n.data[c+u]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==vse.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===WU.NO_INTERLACE)this._png.data=gse({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===WU.ADAM7)this._png.data=uWe({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:_m.NONE,blendOp:GU.SOURCE,data:n}),this._inflator=new fse,this._writingDataChunks=!1}}function LWe(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var kse;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(kse||(kse={}));function IWe(e,t){return new CWe(e,t).decode()}var Dt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function KU(){Dt.console&&typeof Dt.console.log=="function"&&Dt.console.log.apply(Dt.console,arguments)}var En={log:KU,warn:function(e){Dt.console&&(typeof Dt.console.warn=="function"?Dt.console.warn.apply(Dt.console,arguments):KU.call(null,arguments))},error:function(e){Dt.console&&(typeof Dt.console.error=="function"?Dt.console.error.apply(Dt.console,arguments):KU(e))}};function ZU(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){lh(r.response,t,n)},r.onerror=function(){En.error("could not download file")},r.send()}function xse(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Em(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var lh=Dt.saveAs||((typeof window>"u"?"undefined":kn(window))!=="object"||window!==Dt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=Dt.URL||Dt.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?xse(i.href)?ZU(e,t,n):Em(i,i.target="_blank"):Em(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Em(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(xse(e))ZU(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Em(r)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:kn(a)!=="object"&&(En.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return ZU(e,t,n);var i=e.type==="application/octet-stream",a=/constructor/i.test(Dt.HTMLElement)||Dt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":kn(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},s.readAsDataURL(e)}else{var c=Dt.URL||Dt.webkitURL,l=c.createObjectURL(e);r?r.location=l:location.href=l,r=null,setTimeout(function(){c.revokeObjectURL(l)},4e4)}});/**
|
|
7839
7839
|
* A class to parse color values
|
|
@@ -7973,7 +7973,7 @@ T* `):L.join(` Tj
|
|
|
7973
7973
|
endobj\r
|
|
7974
7974
|
`},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])}(At.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,a,o,s){var c,l=this.decode.DCT_DECODE,u=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,c=function(d){for(var f,h=256*d.charCodeAt(4)+d.charCodeAt(5),y=d.length,v={width:0,height:0,numcomponents:1},k=4;k<y;k+=2){if(k+=h,t.indexOf(d.charCodeAt(k+1))!==-1){f=256*d.charCodeAt(k+5)+d.charCodeAt(k+6),v={width:256*d.charCodeAt(k+7)+d.charCodeAt(k+8),height:f,numcomponents:d.charCodeAt(k+9)};break}h=256*d.charCodeAt(k+2)+d.charCodeAt(k+3)}return v}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),c.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:n,width:c.width,height:c.height,colorSpace:s,bitsPerComponent:8,filter:l,index:r,alias:i}}return u}}(At.API),At.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=IWe(e,{checkCrc:!0}),o=a.width,s=a.height,c=a.channels,l=a.palette,u=a.depth;i=l&&c===1?function(O){for(var T=O.width,D=O.height,I=O.data,R=O.palette,U=O.depth,q=!1,K=[],Z=[],$=void 0,B=!1,V=0,F=0;F<R.length;F++){var ie=Toe(R[F],4),N=ie[0],P=ie[1],G=ie[2],J=ie[3];K.push(N,P,G),J!=null&&(J===0?(V++,Z.length<1&&Z.push(F)):J<255&&(B=!0))}if(B||V>1){q=!0,Z=void 0;var X=T*D;$=new Uint8Array(X);for(var ae=new DataView(I.buffer),re=0;re<X;re++){var fe=e$(ae,re,U),ke=Toe(R[fe],4)[3];$[re]=ke}}else V===0&&(Z=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:I,alphaBytes:$,needSMask:q,palette:K,mask:Z}}(a):c===2||c===4?function(O){for(var T=O.data,D=O.width,I=O.height,R=O.channels,U=O.depth,q=R===2?"DeviceGray":"DeviceRGB",K=R-1,Z=D*I,$=K,B=Z*$,V=1*Z,F=Math.ceil(B*U/8),ie=Math.ceil(V*U/8),N=new Uint8Array(F),P=new Uint8Array(ie),G=new DataView(T.buffer),J=new DataView(N.buffer),X=new DataView(P.buffer),ae=!1,re=0;re<Z;re++){for(var fe=re*R,ke=0;ke<$;ke++)zse(J,e$(G,fe+ke,U),re*$+ke,U);var Ne=e$(G,fe+$,U);Ne<(1<<U)-1&&(ae=!0),zse(X,Ne,1*re,U)}return{colorSpace:q,colorsPerPixel:K,sMaskBitsPerComponent:ae?U:void 0,colorBytes:N,alphaBytes:P,needSMask:ae}}(a):function(O){var T=O.data,D=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:D,colorsPerPixel:D==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?function(I){for(var R=I.length,U=new Uint8Array(2*R),q=new DataView(U.buffer,U.byteOffset,U.byteLength),K=0;K<R;K++)q.setUint16(2*K,I[K],!1);return U}(T):T,needSMask:!1}}(a);var d,f,h,y=i,v=y.colorSpace,k=y.colorsPerPixel,g=y.sMaskBitsPerComponent,S=y.colorBytes,w=y.alphaBytes,C=y.needSMask,_=y.palette,A=y.mask,j=null;return r!==At.API.image_compression.NONE&&typeof YW=="function"?(j=function(O){var T;switch(O){case At.API.image_compression.FAST:T=11;break;case At.API.image_compression.MEDIUM:T=13;break;case At.API.image_compression.SLOW:T=14;break;default:T=12}return T}(r),d=this.decode.FLATE_DECODE,f="/Predictor ".concat(j," /Colors ").concat(k," /BitsPerComponent ").concat(u," /Columns ").concat(o),e=Rse(S,Math.ceil(o*k*u/8),k,u,r),C&&(h=Rse(w,Math.ceil(o*g/8),1,g,r))):(d=void 0,f=void 0,e=S,C&&(h=w)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:t,filter:d,decodeParameters:f,transparency:A,palette:_,sMask:h,predictor:j,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:g,colorSpace:v}}},function(e){e.processGIF89A=function(t,n,r,i){var a=new KWe(t),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:o,height:s},u=new t$(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(At.API),Mo.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mo.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){En.log("bit decode error:"+n)}},Mo.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},Mo.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,c=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[c],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},Mo.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},Mo.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,c=(a>>10&t)/t*255|0,l=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=e}},Mo.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,c=(o>>5&n)/n*255|0,l=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},Mo.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},Mo.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},Mo.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var a=new Mo(t,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new t$(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(At.API),Fse.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var a=new Fse(t),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new t$(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(At.API),At.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,l=0;l<i;l+=4){var u=r[l],d=r[l+1],f=r[l+2],h=r[l+3];a[s++]=u,a[s++]=d,a[s++]=f,o[c++]=h}var y=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:y,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},At.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},k2=At.API,Nm=k2.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,l=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,d=t.doKerning!==!1,f=0,h=e.length,y=0,v=s[0]||c,k=[];for(n=0;n<h;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?k.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(f=d&&kn(l[r])==="object"&&!isNaN(parseInt(l[r][y],10))?l[r][y]/u:0,k.push((s[r]||v)/c+f)),y=r;return k},Ese=k2.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return k2.processArabic&&(e=k2.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:Nm.apply(this,arguments).reduce(function(a,o){return a+o},0)},Pse=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var c=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(c,a)),s=0,c=a),s+=t[a],a++;return c!==a&&i.push(e.slice(c,a)),i},Nse=function(e,t,n){n||(n={});var r,i,a,o,s,c,l,u=[],d=[u],f=n.textIndent||0,h=0,y=0,v=e.split(" "),k=Nm.apply(this,[" ",n])[0];if(c=n.lineIndent===-1?v[0].length+2:n.lineIndent||0){var g=Array(c).join(" "),S=[];v.map(function(C){(C=C.split(/\s*\n/)).length>1?S=S.concat(C.map(function(_,A){return(A&&_.length?`
|
|
7975
7975
|
`:"")+_})):S.push(C[0])}),v=S,c=Ese.apply(this,[g,n])}for(a=0,o=v.length;a<o;a++){var w=0;if(r=v[a],c&&r[0]==`
|
|
7976
|
-
`&&(r=r.substr(1),w=1),f+h+(y=(i=Nm.apply(this,[r,n])).reduce(function(C,_){return C+_},0))>t||w){if(y>t){for(s=Pse.apply(this,[r,i,t-(f+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);y=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(C,_){return C+_},0)}else u=[r];d.push(u),f=y+c,h=k}else u.push(r),f+=h+y,h=k}return l=c?function(C,_){return(_?g:"")+C.join(" ")}:function(C){return C.join(" ")},d.map(l)},k2.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.fontStyle),f="Unicode";return d.metadata[f]?{widths:d.metadata[f].widths||{0:1},kerning:d.metadata[f].kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,c,l=[];for(s=0,c=r.length;s<c;s++)l=l.concat(Nse.apply(this,[r[s],o,a]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(f){return"0x"+parseInt(f,10).toString(16)},s=e.__fontmetrics__.compress=function(f){var h,y,v,k,g=["{"];for(var S in f){if(h=f[S],isNaN(parseInt(S,10))?y="'"+S+"'":(S=parseInt(S,10),y=(y=o(S).slice(2)).slice(0,-1)+i[y.slice(-1)]),typeof h=="number")h<0?(v=o(h).slice(3),k="-"):(v=o(h).slice(2),k=""),v=k+v.slice(0,-1)+i[v.slice(-1)];else{if(kn(h)!=="object")throw new Error("Don't know what to do with value type "+kn(h)+".");v=s(h)}g.push(y+v)}return g.push("}"),g.join("")},c=e.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,y,v,k,g={},S=1,w=g,C=[],_="",A="",j=f.length-1,O=1;O<j;O+=1)(k=f[O])=="'"?h?(v=h.join(""),h=void 0):h=[]:h?h.push(k):k=="{"?(C.push([w,v]),w={},v=void 0):k=="}"?((y=C.pop())[0][y[1]]=w,v=void 0,w=y[0]):k=="-"?S=-1:v===void 0?r.hasOwnProperty(k)?(_+=r[k],v=parseInt(_,16)*S,S=1,_=""):_+=k:r.hasOwnProperty(k)?(A+=r[k],w[v]=parseInt(A,16)*S,S=1,v=void 0,A=""):A+=k;return g},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(f){var h=f.font,y=d.Unicode[h.postScriptName];y&&(h.metadata.Unicode={},h.metadata.Unicode.widths=y.widths,h.metadata.Unicode.kerning=y.kerning);var v=u.Unicode[h.postScriptName];v&&(h.metadata.Unicode.encoding=v,h.encoding=v.codePages[0])}])}(At.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(fT(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(At),At.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw En.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw En.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var l=c.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(Dt.canvg?Promise.resolve(Dt.canvg):TU(()=>import("./index.es-D59Tya4_.js"),[])).catch(function(f){return Promise.reject(new Error("Could not load canvg: "+f))}).then(function(f){return f.default?f.default:f}).then(function(f){return f.fromString(l,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(f){return f.render(u)}).then(function(){d.addImage(c.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},At.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},At.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),c=[],l=0,u=0,d=0;function f(y,v){var k,g=!1;for(k=0;k<y.length;k+=1)y[k]===v&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(d=0;d<h;d+=1)n[s[d]].value=n[s[d]].defaultValue,n[s[d]].explicitSet=!1}if(kn(e)==="object"){for(i in e)if(a=e[i],f(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&f(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(l=0;l<a.length;l+=1)if(r=!0,a[l].length===1&&typeof a[l][0]=="number")c.push(String(a[l]-1));else if(a[l].length>1){for(u=0;u<a[l].length;u+=1)typeof a[l][u]!="number"&&(r=!1);r===!0&&c.push([a[l][0]-1,a[l][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,v=[];for(y in n)n[y].explicitSet===!0&&(n[y].type==="name"?v.push("/"+y+" /"+n[y].value):v.push("/"+y+" "+n[y].value));v.length!==0&&this.internal.write(`/ViewerPreferences
|
|
7976
|
+
`&&(r=r.substr(1),w=1),f+h+(y=(i=Nm.apply(this,[r,n])).reduce(function(C,_){return C+_},0))>t||w){if(y>t){for(s=Pse.apply(this,[r,i,t-(f+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);y=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(C,_){return C+_},0)}else u=[r];d.push(u),f=y+c,h=k}else u.push(r),f+=h+y,h=k}return l=c?function(C,_){return(_?g:"")+C.join(" ")}:function(C){return C.join(" ")},d.map(l)},k2.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.fontStyle),f="Unicode";return d.metadata[f]?{widths:d.metadata[f].widths||{0:1},kerning:d.metadata[f].kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,c,l=[];for(s=0,c=r.length;s<c;s++)l=l.concat(Nse.apply(this,[r[s],o,a]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(f){return"0x"+parseInt(f,10).toString(16)},s=e.__fontmetrics__.compress=function(f){var h,y,v,k,g=["{"];for(var S in f){if(h=f[S],isNaN(parseInt(S,10))?y="'"+S+"'":(S=parseInt(S,10),y=(y=o(S).slice(2)).slice(0,-1)+i[y.slice(-1)]),typeof h=="number")h<0?(v=o(h).slice(3),k="-"):(v=o(h).slice(2),k=""),v=k+v.slice(0,-1)+i[v.slice(-1)];else{if(kn(h)!=="object")throw new Error("Don't know what to do with value type "+kn(h)+".");v=s(h)}g.push(y+v)}return g.push("}"),g.join("")},c=e.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,y,v,k,g={},S=1,w=g,C=[],_="",A="",j=f.length-1,O=1;O<j;O+=1)(k=f[O])=="'"?h?(v=h.join(""),h=void 0):h=[]:h?h.push(k):k=="{"?(C.push([w,v]),w={},v=void 0):k=="}"?((y=C.pop())[0][y[1]]=w,v=void 0,w=y[0]):k=="-"?S=-1:v===void 0?r.hasOwnProperty(k)?(_+=r[k],v=parseInt(_,16)*S,S=1,_=""):_+=k:r.hasOwnProperty(k)?(A+=r[k],w[v]=parseInt(A,16)*S,S=1,v=void 0,A=""):A+=k;return g},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(f){var h=f.font,y=d.Unicode[h.postScriptName];y&&(h.metadata.Unicode={},h.metadata.Unicode.widths=y.widths,h.metadata.Unicode.kerning=y.kerning);var v=u.Unicode[h.postScriptName];v&&(h.metadata.Unicode.encoding=v,h.encoding=v.codePages[0])}])}(At.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(fT(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(At),At.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw En.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw En.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var l=c.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(Dt.canvg?Promise.resolve(Dt.canvg):TU(()=>import("./index.es-DWsOF_i7.js"),[])).catch(function(f){return Promise.reject(new Error("Could not load canvg: "+f))}).then(function(f){return f.default?f.default:f}).then(function(f){return f.fromString(l,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(f){return f.render(u)}).then(function(){d.addImage(c.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},At.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},At.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),c=[],l=0,u=0,d=0;function f(y,v){var k,g=!1;for(k=0;k<y.length;k+=1)y[k]===v&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(d=0;d<h;d+=1)n[s[d]].value=n[s[d]].defaultValue,n[s[d]].explicitSet=!1}if(kn(e)==="object"){for(i in e)if(a=e[i],f(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&f(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(l=0;l<a.length;l+=1)if(r=!0,a[l].length===1&&typeof a[l][0]=="number")c.push(String(a[l]-1));else if(a[l].length>1){for(u=0;u<a[l].length;u+=1)typeof a[l][u]!="number"&&(r=!1);r===!0&&c.push([a[l][0]-1,a[l][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,v=[];for(y in n)n[y].explicitSet===!0&&(n[y].type==="name"?v.push("/"+y+" /"+n[y].value):v.push("/"+y+" "+n[y].value));v.length!==0&&this.internal.write(`/ViewerPreferences
|
|
7977
7977
|
<<
|
|
7978
7978
|
`+v.join(`
|
|
7979
7979
|
`)+`
|