diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..42833e8 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,267 @@ +# Stellar Snap +adds stellar to metamask, by creating a non-custodial wallet built directly into metamask + +## Standard Useage + +### connecting + +calling this method will connect to metamask and automatically install the snap if it isn't already installed. +As well as generate the users wallet. +Calling this method or any subsequent methods does not requiring installing anything to a webpage, provided the the user +has metamask (flask) installed. + +```javascript +const result = await ethereum.request({ + method: 'wallet_requestSnaps', + params: { + [`npm:stellar-snap`]: {} + }, + }); +``` +### calling methods + +example method call +```javascript + const result = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {`npm:stellar-snap`, request:{ + method: `${methodName}`, + params:{ + paramName: `${paramValue}` + } + }} + }) +``` + +### specifying network +by default all methods are treated as mainnet, but any method can be issued to the testnet +by using the testnet param. + +example: +```javascript + const result = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + testnet: true + } + }} + }) +``` + +### current Methods + +#### + +#### 'getAddress' +returns the accounts address as a string +```javascript + const address = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getAddress`, + }} + }) +``` + +#### 'getAccountInfo' +grabs infomation related to the account +requires account to be funded +```typescript + const info = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getAccountInfo`, + params:{ + testnet?: true | false + } + }} + }) +``` + +#### 'getBalance' +gets the XLM balance of a wallet, returns 0 in unfunded wallets + +```typescript + const balance = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + testnet?: true | false + } + }} + }) +``` + +### 'transfer' +this method is used to transfer xlm and requires a funded account. +after being called the wallet will generate a transaction, then prompt a user to accept +if the user accepts the transaction it will be signed and broadcast to the network. +will return transaction infomation. And send a notification stating whether the transaction was +successful. +```typescript +const transactionInfomation = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + to: 'stellarAddress' //string + amount: '1000.45' //string represention of amount xlm to send + testnet?: true | false + } + }} + }) + +``` + +### 'fund' +this method funds the users wallet on the testnet +```javascript +const success = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, + request:{ + method: 'fund' + } + } + }) +``` +### 'signTransaction' +This method signs an Arbitary Transaction +```javascript + async function signTransaction(){ + const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); + // Add a payment operation to the transaction + console.log("transaction builder initilazed"); + await transaction.addOperation(StellarSdk.Operation.payment({ + destination: receiverPublicKey, + // The term native asset refers to lumens + asset: StellarSdk.Asset.native(), + // Specify 350.1234567 lumens. Lumens are divisible to seven digits past + // the decimal. They are represented in JS Stellar SDK in string format + // to avoid errors from the use of the JavaScript Number data structure. + amount: '350.1234567', + })); + console.log("operations added") + // Make this transaction valid for the next 30 seconds only + await transaction.setTimeout(30); + console.log("timeout set"); + // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) + // .addMemo(StellarSdk.Memo.text('Hello world!')) + const endTransaction = await transaction.build(); + const xdrTransaction = endTransaction.toXDR(); + console.log(xdrTransaction); + const response = await ethereum.request({ + method: 'wallet_invokeSnap', + params:{snapId:snapId, request:{ + method: 'signTransaction', + params:{ + transaction: xdrTransaction, + testnet: testnet + } + }} + }) + console.log(response); + } +``` +### 'Soroban' +The Wallet also supports sorroban, To sign a SorobanCall +futurenet must be set to true on the params object. +```javascript + async function callContract() { + console.log("here in callContract"); + const sourcePublicKey = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:snapId, request:{ + method: 'getAddress', + }} + }) + const server = new SorobanClient.Server('https://rpc-futurenet.stellar.org'); + + console.log("getting account") + const account = await server.getAccount(sourcePublicKey); + console.log("account is: ") + console.log(account); + + console.log(SorobanClient); + + const contract = new SorobanClient.Contract("CCNLUNUY66TU4MB6JK4Y4EHVQTAO6KDWXDUSASQD2BBURMQT22H2CQU7") + console.log(contract) + const arg = SorobanClient.nativeToScVal("world") + console.log("arg is: ") + console.log(arg) + let call_operation = contract.call('hello', arg); + console.log(call_operation) + + let transaction = new SorobanClient.TransactionBuilder(account, { fee: "150", networkPassphrase: SorobanClient.Networks.FUTURENET }) + .addOperation(call_operation) // <- funds and creates destinationA + .setTimeout(30) + .build(); + + console.log(transaction) + + + const preparedTransaction = await server.prepareTransaction(transaction, SorobanClient.Networks.FUTURENET); + console.log("prepairedTxn: "); + console.log(preparedTransaction); + const tx_XDR = preparedTransaction.toXDR(); + const signedXDR = await ethereum.request( + {method: 'wallet_invokeSnap', + params: { + snapId:snapId, + request:{ + method: 'signTransaction', + params:{ + transaction: tx_XDR, + futurenet: true + } + } + } + } + ) + console.log(signedXDR) + try{ + + const transactionResult = await server.sendTransaction(signedXDR); + console.log(JSON.stringify(transactionResult, null, 2)); + console.log('\nSuccess! View the transaction at: '); + console.log(transactionResult) + } catch (e) { + console.log('An error has occured:'); + console.log(e); + } +} + +``` +## building from Source + +```shell +foo@bar:~$ yarn +... + +foo@bar:~$ npx mm-snap build + +... +Build success: 'src\index.ts' bundled as 'dist\bundle.js'! +Eval Success: evaluated 'dist\bundle.js' in SES! + +foo@bar:npx mm-snap serve + +Starting server... +Server listening on: http://localhost:8080 +``` +and just like that you should be good to go. + +## Key Generation and Storeage +keys are generated on the fly, anytime a method is invoked. +This works by requesting private entropy from the metamask wallet inside +of the snaps secure execution enviroment, and using that entropy to generate +a users keys. This entropy is static, and based on the users ethereum account. +This means that we at no point store keys, and the fissile material is handled +by metamask. + +## Account Recovery +Because keys are handled in this way, when a user recovers their metamask account, they will also recover their stellar +account, which means that there isn't another mnemonic to save. \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..04dd4a7 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,22 @@ + + + + + Document + + + + + + +
+ + + + + diff --git a/package.json b/package.json index d77db5a..21a07d9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore", "serve": "mm-snap serve", "test": "echo 'TODO'", - "start": "mm-snap build && concurrently \"(mm-snap serve)\" \"yarn --cwd ./site/ && yarn --cwd ./site/ dev\"" + "start": "mm-snap build && concurrently \"(mm-snap serve)\" \"yarn --cwd ./site/ && yarn --cwd ./site/ dev --host\"" }, "devDependencies": { "@esbuild-plugins/node-globals-polyfill": "^0.2.3", diff --git a/postBuild.js b/postBuild.js index 4531de2..4cd9003 100644 --- a/postBuild.js +++ b/postBuild.js @@ -19,6 +19,11 @@ for = "/.well-known/*" Access-Control-Allow-Origin = "*" `; await fs.writeFile('./site_dist/netlify.toml', netlifyContent); + await fs.cp('./docs', './site_dist/docs', { recursive: true }, (err) => { + if (err) { + console.error(err); + } + }); console.log("post processing complete"); } diff --git a/site/src/App.svelte b/site/src/App.svelte index 895680a..d91c923 100644 --- a/site/src/App.svelte +++ b/site/src/App.svelte @@ -1,290 +1,9 @@ + - - - - -
- -

on Metamask

-
-
- - - - -
- - {#if funding} -
- -

Funding Your testnet and Futurenet Accounts. Please Wait.

-
- {/if} -
-
- {#if $connected} -
- - Testnet -
- - - Query Stellar -
- -

Get Address of Wallet

-
- -

display the address of the Wallet

-
- -

Get Balance of Wallet

-
- -

Get Account Info

-
- -

Get Account Assets

-
- -

create federation Account

-
- -

look up federation address (0xdfnsklf....)

-
- -

look up federation address (example*metastellar.io)

-
- -

get the federation name of the wallet

-
-
- -
- - Wallet Functions - - - - Signing Functions -
-
- -

TRANSFER XLM

-
-
-
- alert(await signTransaction()))(); -`} - codeView={true} - lockView={true} - testnet={$testnet}> -

Sign Transaction

-
-
-
-
-
- - Soroban - - - - Project Info - This project Utilizes Metamask snaps, This is code that runs inside of metamask secure execution enviroment, but is seemless from a user experence. - - - Transaction Maker - - - -
-
- {:else} - -
-
-

Unlock The Power of Stellar with Metamask

-

- Unlock Stellar to 30 Million Metamask Users -

- -
-
- - - {/if} - +
+ \ No newline at end of file diff --git a/site/src/Demo.svelte b/site/src/Demo.svelte new file mode 100644 index 0000000..a24239d --- /dev/null +++ b/site/src/Demo.svelte @@ -0,0 +1,263 @@ + + + + + + + + + + {#if isFunding} +
+ +

Funding Your testnet and Futurenet Accounts. Please Wait.

+
+ {/if} +
+
+ {#if $connected} +
+ + Testnet +
+ + + Query Stellar +
+ +

Get Address of Wallet

+
+ +

display the address of the Wallet

+
+ +

Get Balance of Wallet

+
+ +

Get Account Info

+
+ +

Get Account Assets

+
+ +

create federation Account

+
+ +

look up federation address (0xdfnsklf....)

+
+ +

look up federation address (example*metastellar.io)

+
+ +

get the federation name of the wallet

+
+
+ +
+ + Wallet Functions + + + + Signing Functions +
+
+ +

TRANSFER XLM

+
+
+
+ alert(await signTransaction()))(); + `} + codeView={true} + lockView={true} + testnet={$testnet}> +

Sign Transaction

+
+
+
+
+
+ + Soroban + + + + Project Info + This project Utilizes Metamask snaps, This is code that runs inside of metamask secure execution enviroment, but is seemless from a user experence. + + + Transaction Maker + + + +
+
+ {:else} + +
+
+

Unlock The Power of Stellar with Metamask

+

+ Unlock Stellar to 30 Million Metamask Users +

+ +
+
+ + + {/if} + + \ No newline at end of file diff --git a/site/src/Header.svelte b/site/src/Header.svelte new file mode 100644 index 0000000..9b8a4e7 --- /dev/null +++ b/site/src/Header.svelte @@ -0,0 +1,46 @@ + + + + + +
+ +

on Metamask

+
+
+ + + Demo + Docs + FAQ + Wallet + + + + +
diff --git a/site_dist/assets/index-030e4ac1.js b/site_dist/assets/index-03597ce1.js similarity index 87% rename from site_dist/assets/index-030e4ac1.js rename to site_dist/assets/index-03597ce1.js index a17f0d1..b6e983e 100644 --- a/site_dist/assets/index-030e4ac1.js +++ b/site_dist/assets/index-03597ce1.js @@ -1,28 +1,28 @@ -var Ar=Object.defineProperty;var Er=(l,r,m)=>r in l?Ar(l,r,{enumerable:!0,configurable:!0,writable:!0,value:m}):l[r]=m;var jn=(l,r,m)=>(Er(l,typeof r!="symbol"?r+"":r,m),m);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))g(v);new MutationObserver(v=>{for(const f of v)if(f.type==="childList")for(const a of f.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&g(a)}).observe(document,{childList:!0,subtree:!0});function m(v){const f={};return v.integrity&&(f.integrity=v.integrity),v.referrerPolicy&&(f.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?f.credentials="include":v.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function g(v){if(v.ep)return;v.ep=!0;const f=m(v);fetch(v.href,f)}})();const app="";function noop(){}const identity=l=>l;function assign(l,r){for(const m in r)l[m]=r[m];return l}function run(l){return l()}function blank_object(){return Object.create(null)}function run_all(l){l.forEach(run)}function is_function(l){return typeof l=="function"}function safe_not_equal(l,r){return l!=l?r==r:l!==r||l&&typeof l=="object"||typeof l=="function"}let src_url_equal_anchor;function src_url_equal(l,r){return l===r?!0:(src_url_equal_anchor||(src_url_equal_anchor=document.createElement("a")),src_url_equal_anchor.href=r,l===src_url_equal_anchor.href)}function is_empty(l){return Object.keys(l).length===0}function subscribe(l,...r){if(l==null){for(const g of r)g(void 0);return noop}const m=l.subscribe(...r);return m.unsubscribe?()=>m.unsubscribe():m}function component_subscribe(l,r,m){l.$$.on_destroy.push(subscribe(r,m))}function create_slot(l,r,m,g){if(l){const v=get_slot_context(l,r,m,g);return l[0](v)}}function get_slot_context(l,r,m,g){return l[1]&&g?assign(m.ctx.slice(),l[1](g(r))):m.ctx}function get_slot_changes(l,r,m,g){if(l[2]&&g){const v=l[2](g(m));if(r.dirty===void 0)return v;if(typeof v=="object"){const f=[],a=Math.max(r.dirty.length,v.length);for(let i=0;i32){const r=[],m=l.ctx.length/32;for(let g=0;gwindow.performance.now():()=>Date.now(),raf=is_client?l=>requestAnimationFrame(l):noop;const tasks=new Set;function run_tasks(l){tasks.forEach(r=>{r.c(l)||(tasks.delete(r),r.f())}),tasks.size!==0&&raf(run_tasks)}function loop(l){let r;return tasks.size===0&&raf(run_tasks),{promise:new Promise(m=>{tasks.add(r={c:l,f:m})}),abort(){tasks.delete(r)}}}function append(l,r){l.appendChild(r)}function get_root_for_style(l){if(!l)return document;const r=l.getRootNode?l.getRootNode():l.ownerDocument;return r&&r.host?r:l.ownerDocument}function append_empty_stylesheet(l){const r=element("style");return r.textContent="/* empty */",append_stylesheet(get_root_for_style(l),r),r.sheet}function append_stylesheet(l,r){return append(l.head||l,r),r.sheet}function insert(l,r,m){l.insertBefore(r,m||null)}function detach(l){l.parentNode&&l.parentNode.removeChild(l)}function destroy_each(l,r){for(let m=0;ml.removeEventListener(r,m,g)}function prevent_default(l){return function(r){return r.preventDefault(),l.call(this,r)}}function stop_propagation(l){return function(r){return r.stopPropagation(),l.call(this,r)}}function attr(l,r,m){m==null?l.removeAttribute(r):l.getAttribute(r)!==m&&l.setAttribute(r,m)}const always_set_through_set_attribute=["width","height"];function set_attributes(l,r){const m=Object.getOwnPropertyDescriptors(l.__proto__);for(const g in r)r[g]==null?l.removeAttribute(g):g==="style"?l.style.cssText=r[g]:g==="__value"?l.value=l[g]=r[g]:m[g]&&m[g].set&&always_set_through_set_attribute.indexOf(g)===-1?l[g]=r[g]:attr(l,g,r[g])}function set_svg_attributes(l,r){for(const m in r)attr(l,m,r[m])}function set_custom_element_data_map(l,r){Object.keys(r).forEach(m=>{set_custom_element_data(l,m,r[m])})}function set_custom_element_data(l,r,m){r in l?l[r]=typeof l[r]=="boolean"&&m===""?!0:m:attr(l,r,m)}function set_dynamic_element_data(l){return/-/.test(l)?set_custom_element_data_map:set_attributes}function children(l){return Array.from(l.childNodes)}function set_data(l,r){r=""+r,l.data!==r&&(l.data=r)}function set_input_value(l,r){l.value=r??""}function set_style(l,r,m,g){m==null?l.style.removeProperty(r):l.style.setProperty(r,m,g?"important":"")}function select_option(l,r,m){for(let g=0;g>>0}function create_style_information(l,r){const m={stylesheet:append_empty_stylesheet(r),rules:{}};return managed_styles.set(l,m),m}function create_rule(l,r,m,g,v,f,a,i=0){const t=16.666/g;let s=`{ -`;for(let p=0;p<=1;p+=t){const k=r+(m-r)*f(p);s+=p*100+`%{${a(k,1-k)}} -`}const o=s+`100% {${a(m,1-m)}} -}`,e=`__svelte_${hash(o)}_${i}`,c=get_root_for_style(l),{stylesheet:u,rules:h}=managed_styles.get(c)||create_style_information(c,l);h[e]||(h[e]=!0,u.insertRule(`@keyframes ${e} ${o}`,u.cssRules.length));const b=l.style.animation||"";return l.style.animation=`${b?`${b}, `:""}${e} ${g}ms linear ${v}ms 1 both`,active+=1,e}function delete_rule(l,r){const m=(l.style.animation||"").split(", "),g=m.filter(r?f=>f.indexOf(r)<0:f=>f.indexOf("__svelte")===-1),v=m.length-g.length;v&&(l.style.animation=g.join(", "),active-=v,active||clear_rules())}function clear_rules(){raf(()=>{active||(managed_styles.forEach(l=>{const{ownerNode:r}=l.stylesheet;r&&detach(r)}),managed_styles.clear())})}let current_component;function set_current_component(l){current_component=l}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function onMount(l){get_current_component().$$.on_mount.push(l)}function onDestroy(l){get_current_component().$$.on_destroy.push(l)}function createEventDispatcher(){const l=get_current_component();return(r,m,{cancelable:g=!1}={})=>{const v=l.$$.callbacks[r];if(v){const f=custom_event(r,m,{cancelable:g});return v.slice().forEach(a=>{a.call(l,f)}),!f.defaultPrevented}return!0}}function setContext(l,r){return get_current_component().$$.context.set(l,r),r}function getContext(l){return get_current_component().$$.context.get(l)}function bubble(l,r){const m=l.$$.callbacks[r.type];m&&m.slice().forEach(g=>g.call(this,r))}const dirty_components=[],binding_callbacks=[];let render_callbacks=[];const flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function tick(){return schedule_update(),resolved_promise}function add_render_callback(l){render_callbacks.push(l)}function add_flush_callback(l){flush_callbacks.push(l)}const seen_callbacks=new Set;let flushidx=0;function flush(){if(flushidx!==0)return;const l=current_component;do{try{for(;flushidxl.indexOf(g)===-1?r.push(g):m.push(g)),m.forEach(g=>g()),render_callbacks=r}let promise;function wait(){return promise||(promise=Promise.resolve(),promise.then(()=>{promise=null})),promise}function dispatch(l,r,m){l.dispatchEvent(custom_event(`${r?"intro":"outro"}${m}`))}const outroing=new Set;let outros;function group_outros(){outros={r:0,c:[],p:outros}}function check_outros(){outros.r||run_all(outros.c),outros=outros.p}function transition_in(l,r){l&&l.i&&(outroing.delete(l),l.i(r))}function transition_out(l,r,m,g){if(l&&l.o){if(outroing.has(l))return;outroing.add(l),outros.c.push(()=>{outroing.delete(l),g&&(m&&l.d(1),g())}),l.o(r)}else g&&g()}const null_transition={duration:0};function create_bidirectional_transition(l,r,m,g){let f=r(l,m,{direction:"both"}),a=g?0:1,i=null,t=null,s=null,o;function e(){s&&delete_rule(l,s)}function c(h,b){const p=h.b-a;return b*=Math.abs(p),{a,b:h.b,d:p,duration:b,start:h.start,end:h.start+b,group:h.group}}function u(h){const{delay:b=0,duration:p=300,easing:k=identity,tick:d=noop,css:w}=f||null_transition,y={start:now()+b,b:h};h||(y.group=outros,outros.r+=1),"inert"in l&&(h?o!==void 0&&(l.inert=o):(o=l.inert,l.inert=!0)),i||t?t=y:(w&&(e(),s=create_rule(l,a,h,p,b,k,w)),h&&d(0,1),i=c(y,p),add_render_callback(()=>dispatch(l,h,"start")),loop(_=>{if(t&&_>t.start&&(i=c(t,p),t=null,dispatch(l,i.b,"start"),w&&(e(),s=create_rule(l,a,i.b,i.duration,0,k,f.css))),i){if(_>=i.end)d(a=i.b,1-a),dispatch(l,i.b,"end"),t||(i.b?e():--i.group.r||run_all(i.group.c)),i=null;else if(_>=i.start){const x=_-i.start;a=i.a+i.d*k(x/i.duration),d(a,1-a)}}return!!(i||t)}))}return{run(h){is_function(f)?wait().then(()=>{f=f({direction:h?"in":"out"}),u(h)}):u(h)},end(){e(),i=t=null}}}function ensure_array_like(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}function outro_and_destroy_block(l,r){transition_out(l,1,1,()=>{r.delete(l.key)})}function update_keyed_each(l,r,m,g,v,f,a,i,t,s,o,e){let c=l.length,u=f.length,h=c;const b={};for(;h--;)b[l[h].key]=h;const p=[],k=new Map,d=new Map,w=[];for(h=u;h--;){const E=e(v,f,h),S=m(E);let C=a.get(S);C?g&&w.push(()=>C.p(E,r)):(C=s(S,E),C.c()),k.set(S,p[h]=C),S in b&&d.set(S,Math.abs(h-b[S]))}const y=new Set,_=new Set;function x(E){transition_in(E,1),E.m(i,o),a.set(E.key,E),o=E.first,u--}for(;c&&u;){const E=p[u-1],S=l[c-1],C=E.key,T=S.key;E===S?(o=E.first,c--,u--):k.has(T)?!a.has(C)||y.has(C)?x(E):_.has(T)?c--:d.get(C)>d.get(T)?(_.add(C),x(E)):(y.add(T),c--):(t(S,a),c--)}for(;c--;){const E=l[c];k.has(E.key)||t(E,a)}for(;u;)x(p[u-1]);return run_all(w),p}function get_spread_update(l,r){const m={},g={},v={$$scope:1};let f=l.length;for(;f--;){const a=l[f],i=r[f];if(i){for(const t in a)t in i||(g[t]=1);for(const t in i)v[t]||(m[t]=i[t],v[t]=1);l[f]=i}else for(const t in a)v[t]=1}for(const a in g)a in m||(m[a]=void 0);return m}function get_spread_object(l){return typeof l=="object"&&l!==null?l:{}}function bind(l,r,m){const g=l.$$.props[r];g!==void 0&&(l.$$.bound[g]=m,m(l.$$.ctx[g]))}function create_component(l){l&&l.c()}function mount_component(l,r,m){const{fragment:g,after_update:v}=l.$$;g&&g.m(r,m),add_render_callback(()=>{const f=l.$$.on_mount.map(run).filter(is_function);l.$$.on_destroy?l.$$.on_destroy.push(...f):run_all(f),l.$$.on_mount=[]}),v.forEach(add_render_callback)}function destroy_component(l,r){const m=l.$$;m.fragment!==null&&(flush_render_callbacks(m.after_update),run_all(m.on_destroy),m.fragment&&m.fragment.d(r),m.on_destroy=m.fragment=null,m.ctx=[])}function make_dirty(l,r){l.$$.dirty[0]===-1&&(dirty_components.push(l),schedule_update(),l.$$.dirty.fill(0)),l.$$.dirty[r/31|0]|=1<{const h=u.length?u[0]:c;return s.ctx&&v(s.ctx[e],s.ctx[e]=h)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](h),o&&make_dirty(l,e)),c}):[],s.update(),o=!0,run_all(s.before_update),s.fragment=g?g(s.ctx):!1,r.target){if(r.hydrate){const e=children(r.target);s.fragment&&s.fragment.l(e),e.forEach(detach)}else s.fragment&&s.fragment.c();r.intro&&transition_in(l.$$.fragment),mount_component(l,r.target,r.anchor),flush()}set_current_component(t)}class SvelteComponent{constructor(){jn(this,"$$");jn(this,"$$set")}$destroy(){destroy_component(this,1),this.$destroy=noop}$on(r,m){if(!is_function(m))return noop;const g=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return g.push(m),()=>{const v=g.indexOf(m);v!==-1&&g.splice(v,1)}}$set(r){this.$$set&&!is_empty(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const PUBLIC_VERSION="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(PUBLIC_VERSION);const snapId="npm:stellar-snap",subscriber_queue=[];function writable(l,r=noop){let m;const g=new Set;function v(i){if(safe_not_equal(l,i)&&(l=i,m)){const t=!subscriber_queue.length;for(const s of g)s[1](),subscriber_queue.push(s,l);if(t){for(let s=0;s{g.delete(s),g.size===0&&m&&(m(),m=null)}}return{set:v,update:f,subscribe:a}}function twJoin(){for(var l=0,r,m,g="";ll&&(r=0,g=m,m=new Map)}return{get:function(a){var i=m.get(a);if(i!==void 0)return i;if((i=g.get(a))!==void 0)return v(a,i),i},set:function(a,i){m.has(a)?m.set(a,i):v(a,i)}}}var IMPORTANT_MODIFIER="!";function createSplitModifiers(l){var r=l.separator||":",m=r.length===1,g=r[0],v=r.length;return function(a){for(var i=[],t=0,s=0,o,e=0;es?o-s:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:p}}}function sortModifiers(l){if(l.length<=1)return l;var r=[],m=[];return l.forEach(function(g){var v=g[0]==="[";v?(r.push.apply(r,m.sort().concat([g])),m=[]):m.push(g)}),r.push.apply(r,m.sort()),r}function createConfigUtils(l){return{cache:createLruCache(l.cacheSize),splitModifiers:createSplitModifiers(l),...createClassUtils(l)}}var SPLIT_CLASSES_REGEX=/\s+/;function mergeClassList(l,r){var m=r.splitModifiers,g=r.getClassGroupId,v=r.getConflictingClassGroupIds,f=new Set;return l.trim().split(SPLIT_CLASSES_REGEX).map(function(a){var i=m(a),t=i.modifiers,s=i.hasImportantModifier,o=i.baseClassName,e=i.maybePostfixModifierPosition,c=g(e?o.substring(0,e):o),u=!!e;if(!c){if(!e)return{isTailwindClass:!1,originalClassName:a};if(c=g(o),!c)return{isTailwindClass:!1,originalClassName:a};u=!1}var h=sortModifiers(t).join(":"),b=s?h+IMPORTANT_MODIFIER:h;return{isTailwindClass:!0,modifierId:b,classGroupId:c,originalClassName:a,hasPostfixModifier:u}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var i=a.modifierId,t=a.classGroupId,s=a.hasPostfixModifier,o=i+t;return f.has(o)?!1:(f.add(o),v(t,s).forEach(function(e){return f.add(i+e)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function createTailwindMerge(){for(var l=arguments.length,r=new Array(l),m=0;m{v&&(g||(g=create_bidirectional_transition(r,l[2],l[3],!0)),g.run(1))}),v=!0)},o(e){transition_out(t,e),e&&(g||(g=create_bidirectional_transition(r,l[2],l[3],!1)),g.run(0)),v=!1},d(e){e&&detach(r),t&&t.d(e),l[20](null),e&&g&&g.end(),f=!1,run_all(a)}}}function create_fragment$E(l){let r=l[1],m,g=!1,v,f=l[1]&&create_dynamic_element$3(l);return{c(){f&&f.c(),m=empty()},m(a,i){f&&f.m(a,i),insert(a,m,i),v=!0},p(a,[i]){a[1]?r?safe_not_equal(r,a[1])?(f.d(1),f=create_dynamic_element$3(a),r=a[1],f.c(),g&&(g=!1,transition_in(f)),f.m(m.parentNode,m)):(g&&(g=!1,transition_in(f)),f.p(a,i)):(f=create_dynamic_element$3(a),r=a[1],f.c(),transition_in(f),f.m(m.parentNode,m)):r&&(g=!0,group_outros(),transition_out(f,1,1,()=>{f=null,r=a[1],g=!1}),check_outros())},i(a){v||(transition_in(f,a),v=!0)},o(a){transition_out(f,a),v=!1},d(a){a&&detach(m),f&&f.d(a)}}}function instance$E(l,r,m){const g=["tag","color","rounded","border","shadow","transition","params","node","use","options","role"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=()=>({duration:0}),t=()=>{};setContext("background",!0);let{tag:s=v.href?"a":"div"}=r,{color:o="default"}=r,{rounded:e=!1}=r,{border:c=!1}=r,{shadow:u=!1}=r,{transition:h=i}=r,{params:b={}}=r,{node:p=void 0}=r,{use:k=t}=r,{options:d={}}=r,{role:w=void 0}=r;const y={gray:"bg-gray-50 dark:bg-gray-800",red:"bg-red-50 dark:bg-gray-800",yellow:"bg-yellow-50 dark:bg-gray-800 ",green:"bg-green-50 dark:bg-gray-800 ",indigo:"bg-indigo-50 dark:bg-gray-800 ",purple:"bg-purple-50 dark:bg-gray-800 ",pink:"bg-pink-50 dark:bg-gray-800 ",blue:"bg-blue-50 dark:bg-gray-800 ",light:"bg-gray-50 dark:bg-gray-700",dark:"bg-gray-50 dark:bg-gray-800",default:"bg-white dark:bg-gray-800",dropdown:"bg-white dark:bg-gray-700",navbar:"bg-white dark:bg-gray-900",navbarUl:"bg-gray-50 dark:bg-gray-800",form:"bg-gray-50 dark:bg-gray-700",primary:"bg-primary-50 dark:bg-gray-800 ",orange:"bg-orange-50 dark:bg-orange-800",none:""},_={gray:"text-gray-800 dark:text-gray-300",red:"text-red-800 dark:text-red-400",yellow:"text-yellow-800 dark:text-yellow-300",green:"text-green-800 dark:text-green-400",indigo:"text-indigo-800 dark:text-indigo-400",purple:"text-purple-800 dark:text-purple-400",pink:"text-pink-800 dark:text-pink-400",blue:"text-blue-800 dark:text-blue-400",light:"text-gray-700 dark:text-gray-300",dark:"text-gray-700 dark:text-gray-300",default:"text-gray-500 dark:text-gray-400",dropdown:"text-gray-700 dark:text-gray-200",navbar:"text-gray-700 dark:text-gray-200",navbarUl:"text-gray-700 dark:text-gray-400",form:"text-gray-900 dark:text-white",primary:"text-primary-800 dark:text-primary-400",orange:"text-orange-800 dark:text-orange-400",none:""},x={gray:"border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800",red:"border-red-300 dark:border-red-800 divide-red-300 dark:divide-red-800",yellow:"border-yellow-300 dark:border-yellow-800 divide-yellow-300 dark:divide-yellow-800",green:"border-green-300 dark:border-green-800 divide-green-300 dark:divide-green-800",indigo:"border-indigo-300 dark:border-indigo-800 divide-indigo-300 dark:divide-indigo-800",purple:"border-purple-300 dark:border-purple-800 divide-purple-300 dark:divide-purple-800",pink:"border-pink-300 dark:border-pink-800 divide-pink-300 dark:divide-pink-800",blue:"border-blue-300 dark:border-blue-800 divide-blue-300 dark:divide-blue-800",light:"border-gray-500 divide-gray-500",dark:"border-gray-500 divide-gray-500",default:"border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700",dropdown:"border-gray-100 dark:border-gray-600 divide-gray-100 dark:divide-gray-600",navbar:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",navbarUl:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",form:"border-gray-300 dark:border-gray-700 divide-gray-300 dark:divide-gray-700",primary:"border-primary-500 dark:border-primary-200 divide-primary-500 dark:divide-primary-200 ",orange:"border-orange-300 dark:border-orange-800 divide-orange-300 dark:divide-orange-800",none:""};let E;function S(L){bubble.call(this,l,L)}function C(L){bubble.call(this,l,L)}function T(L){bubble.call(this,l,L)}function R(L){bubble.call(this,l,L)}function W(L){bubble.call(this,l,L)}function j(L){binding_callbacks[L?"unshift":"push"](()=>{p=L,m(0,p)})}return l.$$set=L=>{m(26,r=assign(assign({},r),exclude_internal_props(L))),m(8,v=compute_rest_props(r,g)),"tag"in L&&m(1,s=L.tag),"color"in L&&m(9,o=L.color),"rounded"in L&&m(10,e=L.rounded),"border"in L&&m(11,c=L.border),"shadow"in L&&m(12,u=L.shadow),"transition"in L&&m(2,h=L.transition),"params"in L&&m(3,b=L.params),"node"in L&&m(0,p=L.node),"use"in L&&m(4,k=L.use),"options"in L&&m(5,d=L.options),"role"in L&&m(6,w=L.role),"$$scope"in L&&m(13,a=L.$$scope)},l.$$.update=()=>{l.$$.dirty&512&&m(9,o=o??"default"),l.$$.dirty&512&&setContext("color",o),m(7,E=twMerge(y[o],_[o],e&&"rounded-lg",c&&"border",x[o],u&&"shadow-md",r.class))},r=exclude_internal_props(r),[p,s,h,b,k,d,w,E,v,o,e,c,u,a,f,S,C,T,R,W,j]}class Frame extends SvelteComponent{constructor(r){super(),init(this,r,instance$E,create_fragment$E,safe_not_equal,{tag:1,color:9,rounded:10,border:11,shadow:12,transition:2,params:3,node:0,use:4,options:5,role:6})}}function create_default_slot$m(l){let r;const m=l[7].default,g=create_slot(m,l,l[8],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&256)&&update_slot_base(g,m,v,v[8],r?get_slot_changes(m,v[8],f,null):get_all_dirty_from_scope(v[8]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_fragment$D(l){let r,m;const g=[l[1],{class:l[0]},{color:"none"}];let v={$$slots:{default:[create_default_slot$m]},$$scope:{ctx:l}};for(let f=0;f{m(10,r=assign(assign({},r),exclude_internal_props(h))),m(1,v=compute_rest_props(r,g)),"multiple"in h&&m(2,i=h.multiple),"flush"in h&&m(3,t=h.flush),"activeClass"in h&&m(4,s=h.activeClass),"inactiveClass"in h&&m(5,o=h.inactiveClass),"defaultClass"in h&&m(6,e=h.defaultClass),"$$scope"in h&&m(8,a=h.$$scope)},l.$$.update=()=>{m(0,u=twMerge(e,r.class))},r=exclude_internal_props(r),[u,v,i,t,s,o,e,f,a]}class Accordion extends SvelteComponent{constructor(r){super(),init(this,r,instance$D,create_fragment$D,safe_not_equal,{multiple:2,flush:3,activeClass:4,inactiveClass:5,defaultClass:6})}}function cubicInOut(l){return l<.5?4*l*l*l:.5*Math.pow(2*l-2,3)+1}function cubicOut(l){const r=l-1;return r*r*r+1}function quintOut(l){return--l*l*l*l*l+1}function blur(l,{delay:r=0,duration:m=400,easing:g=cubicInOut,amount:v=5,opacity:f=0}={}){const a=getComputedStyle(l),i=+a.opacity,t=a.filter==="none"?"":a.filter,s=i*(1-f),[o,e]=split_css_unit(v);return{delay:r,duration:m,easing:g,css:(c,u)=>`opacity: ${i-s*u}; filter: ${t} blur(${u*o}${e});`}}function fade(l,{delay:r=0,duration:m=400,easing:g=identity}={}){const v=+getComputedStyle(l).opacity;return{delay:r,duration:m,easing:g,css:f=>`opacity: ${f*v}`}}function fly(l,{delay:r=0,duration:m=400,easing:g=cubicOut,x:v=0,y:f=0,opacity:a=0}={}){const i=getComputedStyle(l),t=+i.opacity,s=i.transform==="none"?"":i.transform,o=t*(1-a),[e,c]=split_css_unit(v),[u,h]=split_css_unit(f);return{delay:r,duration:m,easing:g,css:(b,p)=>` +var Ar=Object.defineProperty;var Er=(l,r,g)=>r in l?Ar(l,r,{enumerable:!0,configurable:!0,writable:!0,value:g}):l[r]=g;var jn=(l,r,g)=>(Er(l,typeof r!="symbol"?r+"":r,g),g);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))p(v);new MutationObserver(v=>{for(const f of v)if(f.type==="childList")for(const a of f.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&p(a)}).observe(document,{childList:!0,subtree:!0});function g(v){const f={};return v.integrity&&(f.integrity=v.integrity),v.referrerPolicy&&(f.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?f.credentials="include":v.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function p(v){if(v.ep)return;v.ep=!0;const f=g(v);fetch(v.href,f)}})();const app="";function noop(){}const identity=l=>l;function assign(l,r){for(const g in r)l[g]=r[g];return l}function run(l){return l()}function blank_object(){return Object.create(null)}function run_all(l){l.forEach(run)}function is_function(l){return typeof l=="function"}function safe_not_equal(l,r){return l!=l?r==r:l!==r||l&&typeof l=="object"||typeof l=="function"}let src_url_equal_anchor;function src_url_equal(l,r){return l===r?!0:(src_url_equal_anchor||(src_url_equal_anchor=document.createElement("a")),src_url_equal_anchor.href=r,l===src_url_equal_anchor.href)}function is_empty(l){return Object.keys(l).length===0}function subscribe(l,...r){if(l==null){for(const p of r)p(void 0);return noop}const g=l.subscribe(...r);return g.unsubscribe?()=>g.unsubscribe():g}function component_subscribe(l,r,g){l.$$.on_destroy.push(subscribe(r,g))}function create_slot(l,r,g,p){if(l){const v=get_slot_context(l,r,g,p);return l[0](v)}}function get_slot_context(l,r,g,p){return l[1]&&p?assign(g.ctx.slice(),l[1](p(r))):g.ctx}function get_slot_changes(l,r,g,p){if(l[2]&&p){const v=l[2](p(g));if(r.dirty===void 0)return v;if(typeof v=="object"){const f=[],a=Math.max(r.dirty.length,v.length);for(let i=0;i32){const r=[],g=l.ctx.length/32;for(let p=0;pwindow.performance.now():()=>Date.now(),raf=is_client?l=>requestAnimationFrame(l):noop;const tasks=new Set;function run_tasks(l){tasks.forEach(r=>{r.c(l)||(tasks.delete(r),r.f())}),tasks.size!==0&&raf(run_tasks)}function loop(l){let r;return tasks.size===0&&raf(run_tasks),{promise:new Promise(g=>{tasks.add(r={c:l,f:g})}),abort(){tasks.delete(r)}}}function append(l,r){l.appendChild(r)}function get_root_for_style(l){if(!l)return document;const r=l.getRootNode?l.getRootNode():l.ownerDocument;return r&&r.host?r:l.ownerDocument}function append_empty_stylesheet(l){const r=element("style");return r.textContent="/* empty */",append_stylesheet(get_root_for_style(l),r),r.sheet}function append_stylesheet(l,r){return append(l.head||l,r),r.sheet}function insert(l,r,g){l.insertBefore(r,g||null)}function detach(l){l.parentNode&&l.parentNode.removeChild(l)}function destroy_each(l,r){for(let g=0;gl.removeEventListener(r,g,p)}function prevent_default(l){return function(r){return r.preventDefault(),l.call(this,r)}}function stop_propagation(l){return function(r){return r.stopPropagation(),l.call(this,r)}}function attr(l,r,g){g==null?l.removeAttribute(r):l.getAttribute(r)!==g&&l.setAttribute(r,g)}const always_set_through_set_attribute=["width","height"];function set_attributes(l,r){const g=Object.getOwnPropertyDescriptors(l.__proto__);for(const p in r)r[p]==null?l.removeAttribute(p):p==="style"?l.style.cssText=r[p]:p==="__value"?l.value=l[p]=r[p]:g[p]&&g[p].set&&always_set_through_set_attribute.indexOf(p)===-1?l[p]=r[p]:attr(l,p,r[p])}function set_svg_attributes(l,r){for(const g in r)attr(l,g,r[g])}function set_custom_element_data_map(l,r){Object.keys(r).forEach(g=>{set_custom_element_data(l,g,r[g])})}function set_custom_element_data(l,r,g){r in l?l[r]=typeof l[r]=="boolean"&&g===""?!0:g:attr(l,r,g)}function set_dynamic_element_data(l){return/-/.test(l)?set_custom_element_data_map:set_attributes}function children(l){return Array.from(l.childNodes)}function set_data(l,r){r=""+r,l.data!==r&&(l.data=r)}function set_input_value(l,r){l.value=r??""}function set_style(l,r,g,p){g==null?l.style.removeProperty(r):l.style.setProperty(r,g,p?"important":"")}function select_option(l,r,g){for(let p=0;p>>0}function create_style_information(l,r){const g={stylesheet:append_empty_stylesheet(r),rules:{}};return managed_styles.set(l,g),g}function create_rule(l,r,g,p,v,f,a,i=0){const t=16.666/p;let s=`{ +`;for(let m=0;m<=1;m+=t){const k=r+(g-r)*f(m);s+=m*100+`%{${a(k,1-k)}} +`}const o=s+`100% {${a(g,1-g)}} +}`,e=`__svelte_${hash(o)}_${i}`,c=get_root_for_style(l),{stylesheet:u,rules:h}=managed_styles.get(c)||create_style_information(c,l);h[e]||(h[e]=!0,u.insertRule(`@keyframes ${e} ${o}`,u.cssRules.length));const b=l.style.animation||"";return l.style.animation=`${b?`${b}, `:""}${e} ${p}ms linear ${v}ms 1 both`,active+=1,e}function delete_rule(l,r){const g=(l.style.animation||"").split(", "),p=g.filter(r?f=>f.indexOf(r)<0:f=>f.indexOf("__svelte")===-1),v=g.length-p.length;v&&(l.style.animation=p.join(", "),active-=v,active||clear_rules())}function clear_rules(){raf(()=>{active||(managed_styles.forEach(l=>{const{ownerNode:r}=l.stylesheet;r&&detach(r)}),managed_styles.clear())})}let current_component;function set_current_component(l){current_component=l}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function onMount(l){get_current_component().$$.on_mount.push(l)}function onDestroy(l){get_current_component().$$.on_destroy.push(l)}function createEventDispatcher(){const l=get_current_component();return(r,g,{cancelable:p=!1}={})=>{const v=l.$$.callbacks[r];if(v){const f=custom_event(r,g,{cancelable:p});return v.slice().forEach(a=>{a.call(l,f)}),!f.defaultPrevented}return!0}}function setContext(l,r){return get_current_component().$$.context.set(l,r),r}function getContext(l){return get_current_component().$$.context.get(l)}function bubble(l,r){const g=l.$$.callbacks[r.type];g&&g.slice().forEach(p=>p.call(this,r))}const dirty_components=[],binding_callbacks=[];let render_callbacks=[];const flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function tick(){return schedule_update(),resolved_promise}function add_render_callback(l){render_callbacks.push(l)}function add_flush_callback(l){flush_callbacks.push(l)}const seen_callbacks=new Set;let flushidx=0;function flush(){if(flushidx!==0)return;const l=current_component;do{try{for(;flushidxl.indexOf(p)===-1?r.push(p):g.push(p)),g.forEach(p=>p()),render_callbacks=r}let promise;function wait(){return promise||(promise=Promise.resolve(),promise.then(()=>{promise=null})),promise}function dispatch(l,r,g){l.dispatchEvent(custom_event(`${r?"intro":"outro"}${g}`))}const outroing=new Set;let outros;function group_outros(){outros={r:0,c:[],p:outros}}function check_outros(){outros.r||run_all(outros.c),outros=outros.p}function transition_in(l,r){l&&l.i&&(outroing.delete(l),l.i(r))}function transition_out(l,r,g,p){if(l&&l.o){if(outroing.has(l))return;outroing.add(l),outros.c.push(()=>{outroing.delete(l),p&&(g&&l.d(1),p())}),l.o(r)}else p&&p()}const null_transition={duration:0};function create_bidirectional_transition(l,r,g,p){let f=r(l,g,{direction:"both"}),a=p?0:1,i=null,t=null,s=null,o;function e(){s&&delete_rule(l,s)}function c(h,b){const m=h.b-a;return b*=Math.abs(m),{a,b:h.b,d:m,duration:b,start:h.start,end:h.start+b,group:h.group}}function u(h){const{delay:b=0,duration:m=300,easing:k=identity,tick:d=noop,css:w}=f||null_transition,y={start:now()+b,b:h};h||(y.group=outros,outros.r+=1),"inert"in l&&(h?o!==void 0&&(l.inert=o):(o=l.inert,l.inert=!0)),i||t?t=y:(w&&(e(),s=create_rule(l,a,h,m,b,k,w)),h&&d(0,1),i=c(y,m),add_render_callback(()=>dispatch(l,h,"start")),loop(_=>{if(t&&_>t.start&&(i=c(t,m),t=null,dispatch(l,i.b,"start"),w&&(e(),s=create_rule(l,a,i.b,i.duration,0,k,f.css))),i){if(_>=i.end)d(a=i.b,1-a),dispatch(l,i.b,"end"),t||(i.b?e():--i.group.r||run_all(i.group.c)),i=null;else if(_>=i.start){const x=_-i.start;a=i.a+i.d*k(x/i.duration),d(a,1-a)}}return!!(i||t)}))}return{run(h){is_function(f)?wait().then(()=>{f=f({direction:h?"in":"out"}),u(h)}):u(h)},end(){e(),i=t=null}}}function ensure_array_like(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}function outro_and_destroy_block(l,r){transition_out(l,1,1,()=>{r.delete(l.key)})}function update_keyed_each(l,r,g,p,v,f,a,i,t,s,o,e){let c=l.length,u=f.length,h=c;const b={};for(;h--;)b[l[h].key]=h;const m=[],k=new Map,d=new Map,w=[];for(h=u;h--;){const E=e(v,f,h),S=g(E);let C=a.get(S);C?p&&w.push(()=>C.p(E,r)):(C=s(S,E),C.c()),k.set(S,m[h]=C),S in b&&d.set(S,Math.abs(h-b[S]))}const y=new Set,_=new Set;function x(E){transition_in(E,1),E.m(i,o),a.set(E.key,E),o=E.first,u--}for(;c&&u;){const E=m[u-1],S=l[c-1],C=E.key,T=S.key;E===S?(o=E.first,c--,u--):k.has(T)?!a.has(C)||y.has(C)?x(E):_.has(T)?c--:d.get(C)>d.get(T)?(_.add(C),x(E)):(y.add(T),c--):(t(S,a),c--)}for(;c--;){const E=l[c];k.has(E.key)||t(E,a)}for(;u;)x(m[u-1]);return run_all(w),m}function get_spread_update(l,r){const g={},p={},v={$$scope:1};let f=l.length;for(;f--;){const a=l[f],i=r[f];if(i){for(const t in a)t in i||(p[t]=1);for(const t in i)v[t]||(g[t]=i[t],v[t]=1);l[f]=i}else for(const t in a)v[t]=1}for(const a in p)a in g||(g[a]=void 0);return g}function get_spread_object(l){return typeof l=="object"&&l!==null?l:{}}function bind(l,r,g){const p=l.$$.props[r];p!==void 0&&(l.$$.bound[p]=g,g(l.$$.ctx[p]))}function create_component(l){l&&l.c()}function mount_component(l,r,g){const{fragment:p,after_update:v}=l.$$;p&&p.m(r,g),add_render_callback(()=>{const f=l.$$.on_mount.map(run).filter(is_function);l.$$.on_destroy?l.$$.on_destroy.push(...f):run_all(f),l.$$.on_mount=[]}),v.forEach(add_render_callback)}function destroy_component(l,r){const g=l.$$;g.fragment!==null&&(flush_render_callbacks(g.after_update),run_all(g.on_destroy),g.fragment&&g.fragment.d(r),g.on_destroy=g.fragment=null,g.ctx=[])}function make_dirty(l,r){l.$$.dirty[0]===-1&&(dirty_components.push(l),schedule_update(),l.$$.dirty.fill(0)),l.$$.dirty[r/31|0]|=1<{const h=u.length?u[0]:c;return s.ctx&&v(s.ctx[e],s.ctx[e]=h)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](h),o&&make_dirty(l,e)),c}):[],s.update(),o=!0,run_all(s.before_update),s.fragment=p?p(s.ctx):!1,r.target){if(r.hydrate){const e=children(r.target);s.fragment&&s.fragment.l(e),e.forEach(detach)}else s.fragment&&s.fragment.c();r.intro&&transition_in(l.$$.fragment),mount_component(l,r.target,r.anchor),flush()}set_current_component(t)}class SvelteComponent{constructor(){jn(this,"$$");jn(this,"$$set")}$destroy(){destroy_component(this,1),this.$destroy=noop}$on(r,g){if(!is_function(g))return noop;const p=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return p.push(g),()=>{const v=p.indexOf(g);v!==-1&&p.splice(v,1)}}$set(r){this.$$set&&!is_empty(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const PUBLIC_VERSION="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(PUBLIC_VERSION);const snapId="npm:stellar-snap",subscriber_queue=[];function writable(l,r=noop){let g;const p=new Set;function v(i){if(safe_not_equal(l,i)&&(l=i,g)){const t=!subscriber_queue.length;for(const s of p)s[1](),subscriber_queue.push(s,l);if(t){for(let s=0;s{p.delete(s),p.size===0&&g&&(g(),g=null)}}return{set:v,update:f,subscribe:a}}function twJoin(){for(var l=0,r,g,p="";ll&&(r=0,p=g,g=new Map)}return{get:function(a){var i=g.get(a);if(i!==void 0)return i;if((i=p.get(a))!==void 0)return v(a,i),i},set:function(a,i){g.has(a)?g.set(a,i):v(a,i)}}}var IMPORTANT_MODIFIER="!";function createSplitModifiers(l){var r=l.separator||":",g=r.length===1,p=r[0],v=r.length;return function(a){for(var i=[],t=0,s=0,o,e=0;es?o-s:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:m}}}function sortModifiers(l){if(l.length<=1)return l;var r=[],g=[];return l.forEach(function(p){var v=p[0]==="[";v?(r.push.apply(r,g.sort().concat([p])),g=[]):g.push(p)}),r.push.apply(r,g.sort()),r}function createConfigUtils(l){return{cache:createLruCache(l.cacheSize),splitModifiers:createSplitModifiers(l),...createClassUtils(l)}}var SPLIT_CLASSES_REGEX=/\s+/;function mergeClassList(l,r){var g=r.splitModifiers,p=r.getClassGroupId,v=r.getConflictingClassGroupIds,f=new Set;return l.trim().split(SPLIT_CLASSES_REGEX).map(function(a){var i=g(a),t=i.modifiers,s=i.hasImportantModifier,o=i.baseClassName,e=i.maybePostfixModifierPosition,c=p(e?o.substring(0,e):o),u=!!e;if(!c){if(!e)return{isTailwindClass:!1,originalClassName:a};if(c=p(o),!c)return{isTailwindClass:!1,originalClassName:a};u=!1}var h=sortModifiers(t).join(":"),b=s?h+IMPORTANT_MODIFIER:h;return{isTailwindClass:!0,modifierId:b,classGroupId:c,originalClassName:a,hasPostfixModifier:u}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var i=a.modifierId,t=a.classGroupId,s=a.hasPostfixModifier,o=i+t;return f.has(o)?!1:(f.add(o),v(t,s).forEach(function(e){return f.add(i+e)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function createTailwindMerge(){for(var l=arguments.length,r=new Array(l),g=0;g{v&&(p||(p=create_bidirectional_transition(r,l[2],l[3],!0)),p.run(1))}),v=!0)},o(e){transition_out(t,e),e&&(p||(p=create_bidirectional_transition(r,l[2],l[3],!1)),p.run(0)),v=!1},d(e){e&&detach(r),t&&t.d(e),l[20](null),e&&p&&p.end(),f=!1,run_all(a)}}}function create_fragment$G(l){let r=l[1],g,p=!1,v,f=l[1]&&create_dynamic_element$3(l);return{c(){f&&f.c(),g=empty()},m(a,i){f&&f.m(a,i),insert(a,g,i),v=!0},p(a,[i]){a[1]?r?safe_not_equal(r,a[1])?(f.d(1),f=create_dynamic_element$3(a),r=a[1],f.c(),p&&(p=!1,transition_in(f)),f.m(g.parentNode,g)):(p&&(p=!1,transition_in(f)),f.p(a,i)):(f=create_dynamic_element$3(a),r=a[1],f.c(),transition_in(f),f.m(g.parentNode,g)):r&&(p=!0,group_outros(),transition_out(f,1,1,()=>{f=null,r=a[1],p=!1}),check_outros())},i(a){v||(transition_in(f,a),v=!0)},o(a){transition_out(f,a),v=!1},d(a){a&&detach(g),f&&f.d(a)}}}function instance$G(l,r,g){const p=["tag","color","rounded","border","shadow","transition","params","node","use","options","role"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=()=>({duration:0}),t=()=>{};setContext("background",!0);let{tag:s=v.href?"a":"div"}=r,{color:o="default"}=r,{rounded:e=!1}=r,{border:c=!1}=r,{shadow:u=!1}=r,{transition:h=i}=r,{params:b={}}=r,{node:m=void 0}=r,{use:k=t}=r,{options:d={}}=r,{role:w=void 0}=r;const y={gray:"bg-gray-50 dark:bg-gray-800",red:"bg-red-50 dark:bg-gray-800",yellow:"bg-yellow-50 dark:bg-gray-800 ",green:"bg-green-50 dark:bg-gray-800 ",indigo:"bg-indigo-50 dark:bg-gray-800 ",purple:"bg-purple-50 dark:bg-gray-800 ",pink:"bg-pink-50 dark:bg-gray-800 ",blue:"bg-blue-50 dark:bg-gray-800 ",light:"bg-gray-50 dark:bg-gray-700",dark:"bg-gray-50 dark:bg-gray-800",default:"bg-white dark:bg-gray-800",dropdown:"bg-white dark:bg-gray-700",navbar:"bg-white dark:bg-gray-900",navbarUl:"bg-gray-50 dark:bg-gray-800",form:"bg-gray-50 dark:bg-gray-700",primary:"bg-primary-50 dark:bg-gray-800 ",orange:"bg-orange-50 dark:bg-orange-800",none:""},_={gray:"text-gray-800 dark:text-gray-300",red:"text-red-800 dark:text-red-400",yellow:"text-yellow-800 dark:text-yellow-300",green:"text-green-800 dark:text-green-400",indigo:"text-indigo-800 dark:text-indigo-400",purple:"text-purple-800 dark:text-purple-400",pink:"text-pink-800 dark:text-pink-400",blue:"text-blue-800 dark:text-blue-400",light:"text-gray-700 dark:text-gray-300",dark:"text-gray-700 dark:text-gray-300",default:"text-gray-500 dark:text-gray-400",dropdown:"text-gray-700 dark:text-gray-200",navbar:"text-gray-700 dark:text-gray-200",navbarUl:"text-gray-700 dark:text-gray-400",form:"text-gray-900 dark:text-white",primary:"text-primary-800 dark:text-primary-400",orange:"text-orange-800 dark:text-orange-400",none:""},x={gray:"border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800",red:"border-red-300 dark:border-red-800 divide-red-300 dark:divide-red-800",yellow:"border-yellow-300 dark:border-yellow-800 divide-yellow-300 dark:divide-yellow-800",green:"border-green-300 dark:border-green-800 divide-green-300 dark:divide-green-800",indigo:"border-indigo-300 dark:border-indigo-800 divide-indigo-300 dark:divide-indigo-800",purple:"border-purple-300 dark:border-purple-800 divide-purple-300 dark:divide-purple-800",pink:"border-pink-300 dark:border-pink-800 divide-pink-300 dark:divide-pink-800",blue:"border-blue-300 dark:border-blue-800 divide-blue-300 dark:divide-blue-800",light:"border-gray-500 divide-gray-500",dark:"border-gray-500 divide-gray-500",default:"border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700",dropdown:"border-gray-100 dark:border-gray-600 divide-gray-100 dark:divide-gray-600",navbar:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",navbarUl:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",form:"border-gray-300 dark:border-gray-700 divide-gray-300 dark:divide-gray-700",primary:"border-primary-500 dark:border-primary-200 divide-primary-500 dark:divide-primary-200 ",orange:"border-orange-300 dark:border-orange-800 divide-orange-300 dark:divide-orange-800",none:""};let E;function S(L){bubble.call(this,l,L)}function C(L){bubble.call(this,l,L)}function T(L){bubble.call(this,l,L)}function R(L){bubble.call(this,l,L)}function W(L){bubble.call(this,l,L)}function j(L){binding_callbacks[L?"unshift":"push"](()=>{m=L,g(0,m)})}return l.$$set=L=>{g(26,r=assign(assign({},r),exclude_internal_props(L))),g(8,v=compute_rest_props(r,p)),"tag"in L&&g(1,s=L.tag),"color"in L&&g(9,o=L.color),"rounded"in L&&g(10,e=L.rounded),"border"in L&&g(11,c=L.border),"shadow"in L&&g(12,u=L.shadow),"transition"in L&&g(2,h=L.transition),"params"in L&&g(3,b=L.params),"node"in L&&g(0,m=L.node),"use"in L&&g(4,k=L.use),"options"in L&&g(5,d=L.options),"role"in L&&g(6,w=L.role),"$$scope"in L&&g(13,a=L.$$scope)},l.$$.update=()=>{l.$$.dirty&512&&g(9,o=o??"default"),l.$$.dirty&512&&setContext("color",o),g(7,E=twMerge(y[o],_[o],e&&"rounded-lg",c&&"border",x[o],u&&"shadow-md",r.class))},r=exclude_internal_props(r),[m,s,h,b,k,d,w,E,v,o,e,c,u,a,f,S,C,T,R,W,j]}class Frame extends SvelteComponent{constructor(r){super(),init(this,r,instance$G,create_fragment$G,safe_not_equal,{tag:1,color:9,rounded:10,border:11,shadow:12,transition:2,params:3,node:0,use:4,options:5,role:6})}}function create_default_slot$n(l){let r;const g=l[7].default,p=create_slot(g,l,l[8],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&256)&&update_slot_base(p,g,v,v[8],r?get_slot_changes(g,v[8],f,null):get_all_dirty_from_scope(v[8]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_fragment$F(l){let r,g;const p=[l[1],{class:l[0]},{color:"none"}];let v={$$slots:{default:[create_default_slot$n]},$$scope:{ctx:l}};for(let f=0;f{g(10,r=assign(assign({},r),exclude_internal_props(h))),g(1,v=compute_rest_props(r,p)),"multiple"in h&&g(2,i=h.multiple),"flush"in h&&g(3,t=h.flush),"activeClass"in h&&g(4,s=h.activeClass),"inactiveClass"in h&&g(5,o=h.inactiveClass),"defaultClass"in h&&g(6,e=h.defaultClass),"$$scope"in h&&g(8,a=h.$$scope)},l.$$.update=()=>{g(0,u=twMerge(e,r.class))},r=exclude_internal_props(r),[u,v,i,t,s,o,e,f,a]}class Accordion extends SvelteComponent{constructor(r){super(),init(this,r,instance$F,create_fragment$F,safe_not_equal,{multiple:2,flush:3,activeClass:4,inactiveClass:5,defaultClass:6})}}function cubicInOut(l){return l<.5?4*l*l*l:.5*Math.pow(2*l-2,3)+1}function cubicOut(l){const r=l-1;return r*r*r+1}function quintOut(l){return--l*l*l*l*l+1}function blur(l,{delay:r=0,duration:g=400,easing:p=cubicInOut,amount:v=5,opacity:f=0}={}){const a=getComputedStyle(l),i=+a.opacity,t=a.filter==="none"?"":a.filter,s=i*(1-f),[o,e]=split_css_unit(v);return{delay:r,duration:g,easing:p,css:(c,u)=>`opacity: ${i-s*u}; filter: ${t} blur(${u*o}${e});`}}function fade(l,{delay:r=0,duration:g=400,easing:p=identity}={}){const v=+getComputedStyle(l).opacity;return{delay:r,duration:g,easing:p,css:f=>`opacity: ${f*v}`}}function fly(l,{delay:r=0,duration:g=400,easing:p=cubicOut,x:v=0,y:f=0,opacity:a=0}={}){const i=getComputedStyle(l),t=+i.opacity,s=i.transform==="none"?"":i.transform,o=t*(1-a),[e,c]=split_css_unit(v),[u,h]=split_css_unit(f);return{delay:r,duration:g,easing:p,css:(b,m)=>` transform: ${s} translate(${(1-b)*e}${c}, ${(1-b)*u}${h}); - opacity: ${t-o*p}`}}function slide(l,{delay:r=0,duration:m=400,easing:g=cubicOut,axis:v="y"}={}){const f=getComputedStyle(l),a=+f.opacity,i=v==="y"?"height":"width",t=parseFloat(f[i]),s=v==="y"?["top","bottom"]:["left","right"],o=s.map(k=>`${k[0].toUpperCase()}${k.slice(1)}`),e=parseFloat(f[`padding${o[0]}`]),c=parseFloat(f[`padding${o[1]}`]),u=parseFloat(f[`margin${o[0]}`]),h=parseFloat(f[`margin${o[1]}`]),b=parseFloat(f[`border${o[0]}Width`]),p=parseFloat(f[`border${o[1]}Width`]);return{delay:r,duration:m,easing:g,css:k=>`overflow: hidden;opacity: ${Math.min(k*20,1)*a};${i}: ${k*t}px;padding-${s[0]}: ${k*e}px;padding-${s[1]}: ${k*c}px;margin-${s[0]}: ${k*u}px;margin-${s[1]}: ${k*h}px;border-${s[0]}-width: ${k*b}px;border-${s[1]}-width: ${k*p}px;`}}const get_arrowdown_slot_changes=l=>({}),get_arrowdown_slot_context=l=>({}),get_arrowup_slot_changes=l=>({}),get_arrowup_slot_context=l=>({}),get_header_slot_changes$1=l=>({}),get_header_slot_context$1=l=>({});function create_else_block_1$2(l){let r;const m=l[22].arrowdown,g=create_slot(m,l,l[21],get_arrowdown_slot_context),v=g||fallback_block_1();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){g&&g.p&&(!r||a&2097152)&&update_slot_base(g,m,f,f[21],r?get_slot_changes(m,f[21],a,get_arrowdown_slot_changes):get_all_dirty_from_scope(f[21]),get_arrowdown_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function create_if_block_1$a(l){let r;const m=l[22].arrowup,g=create_slot(m,l,l[21],get_arrowup_slot_context),v=g||fallback_block$4();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){g&&g.p&&(!r||a&2097152)&&update_slot_base(g,m,f,f[21],r?get_slot_changes(m,f[21],a,get_arrowup_slot_changes):get_all_dirty_from_scope(f[21]),get_arrowup_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function fallback_block_1(l){let r,m;return{c(){r=svg_element("svg"),m=svg_element("path"),attr(m,"stroke","currentColor"),attr(m,"stroke-linecap","round"),attr(m,"stroke-linejoin","round"),attr(m,"stroke-width","2"),attr(m,"d","m1 1 4 4 4-4"),attr(r,"class","w-3 h-3 text-gray-800 dark:text-white"),attr(r,"aria-hidden","true"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"fill","none"),attr(r,"viewBox","0 0 10 6")},m(g,v){insert(g,r,v),append(r,m)},p:noop,d(g){g&&detach(r)}}}function fallback_block$4(l){let r,m;return{c(){r=svg_element("svg"),m=svg_element("path"),attr(m,"stroke","currentColor"),attr(m,"stroke-linecap","round"),attr(m,"stroke-linejoin","round"),attr(m,"stroke-width","2"),attr(m,"d","M9 5 5 1 1 5"),attr(r,"class","w-3 h-3 text-gray-800 dark:text-white"),attr(r,"aria-hidden","true"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"fill","none"),attr(r,"viewBox","0 0 10 6")},m(g,v){insert(g,r,v),append(r,m)},p:noop,d(g){g&&detach(r)}}}function create_else_block$e(l){let r,m,g;const v=l[22].default,f=create_slot(v,l,l[21],null);return{c(){r=element("div"),m=element("div"),f&&f.c(),attr(m,"class",l[3]),attr(r,"class","hidden")},m(a,i){insert(a,r,i),append(r,m),f&&f.m(m,null),g=!0},p(a,i){f&&f.p&&(!g||i&2097152)&&update_slot_base(f,v,a,a[21],g?get_slot_changes(v,a[21],i,null):get_all_dirty_from_scope(a[21]),null),(!g||i&8)&&attr(m,"class",a[3])},i(a){g||(transition_in(f,a),g=!0)},o(a){transition_out(f,a),g=!1},d(a){a&&detach(r),f&&f.d(a)}}}function create_if_block$m(l){let r,m,g,v;const f=l[22].default,a=create_slot(f,l,l[21],null);return{c(){r=element("div"),m=element("div"),a&&a.c(),attr(m,"class",l[3])},m(i,t){insert(i,r,t),append(r,m),a&&a.m(m,null),v=!0},p(i,t){l=i,a&&a.p&&(!v||t&2097152)&&update_slot_base(a,f,l,l[21],v?get_slot_changes(f,l[21],t,null):get_all_dirty_from_scope(l[21]),null),(!v||t&8)&&attr(m,"class",l[3])},i(i){v||(transition_in(a,i),i&&add_render_callback(()=>{v&&(g||(g=create_bidirectional_transition(r,l[4],l[1],!0)),g.run(1))}),v=!0)},o(i){transition_out(a,i),i&&(g||(g=create_bidirectional_transition(r,l[4],l[1],!1)),g.run(0)),v=!1},d(i){i&&detach(r),a&&a.d(i),i&&g&&g.end()}}}function create_fragment$C(l){let r,m,g,v,f,a,i,t,s,o,e,c;const u=l[22].header,h=create_slot(u,l,l[21],get_header_slot_context$1),b=[create_if_block_1$a,create_else_block_1$2],p=[];function k(_,x){return _[0]?0:1}v=k(l),f=p[v]=b[v](l);const d=[create_if_block$m,create_else_block$e],w=[];function y(_,x){return _[0]?0:1}return i=y(l),t=w[i]=d[i](l),{c(){r=element("h2"),m=element("button"),h&&h.c(),g=space(),f.c(),a=space(),t.c(),s=empty(),attr(m,"type","button"),attr(m,"class",l[2]),attr(m,"aria-expanded",l[0]),attr(r,"class","group")},m(_,x){insert(_,r,x),append(r,m),h&&h.m(m,null),append(m,g),p[v].m(m,null),insert(_,a,x),w[i].m(_,x),insert(_,s,x),o=!0,e||(c=listen(m,"click",l[6]),e=!0)},p(_,[x]){h&&h.p&&(!o||x&2097152)&&update_slot_base(h,u,_,_[21],o?get_slot_changes(u,_[21],x,get_header_slot_changes$1):get_all_dirty_from_scope(_[21]),get_header_slot_context$1);let E=v;v=k(_),v===E?p[v].p(_,x):(group_outros(),transition_out(p[E],1,1,()=>{p[E]=null}),check_outros(),f=p[v],f?f.p(_,x):(f=p[v]=b[v](_),f.c()),transition_in(f,1),f.m(m,null)),(!o||x&4)&&attr(m,"class",_[2]),(!o||x&1)&&attr(m,"aria-expanded",_[0]);let S=i;i=y(_),i===S?w[i].p(_,x):(group_outros(),transition_out(w[S],1,1,()=>{w[S]=null}),check_outros(),t=w[i],t?t.p(_,x):(t=w[i]=d[i](_),t.c()),transition_in(t,1),t.m(s.parentNode,s))},i(_){o||(transition_in(h,_),transition_in(f),transition_in(t),o=!0)},o(_){transition_out(h,_),transition_out(f),transition_out(t),o=!1},d(_){_&&(detach(r),detach(a),detach(s)),h&&h.d(_),p[v].d(),w[i].d(_),e=!1,c()}}}function instance$C(l,r,m){let g,v,{$$slots:f={},$$scope:a}=r,{open:i=!1}=r,{activeClass:t=void 0}=r,{inactiveClass:s=void 0}=r,{defaultClass:o="flex items-center justify-between w-full font-medium text-left group-first:rounded-t-xl border-gray-200 dark:border-gray-700"}=r,{transitionType:e="slide"}=r,{transitionParams:c={}}=r,{paddingFlush:u="py-5"}=r,{paddingDefault:h="p-5"}=r,{textFlushOpen:b="text-gray-900 dark:text-white"}=r,{textFlushDefault:p="text-gray-500 dark:text-gray-400"}=r,{borderClass:k="border-l border-r group-first:border-t"}=r,{borderOpenClass:d="border-l border-r"}=r,{borderBottomClass:w="border-b"}=r,{borderSharedClass:y="border-gray-200 dark:border-gray-700"}=r,{classActive:_=void 0}=r,{classInactive:x=void 0}=r,E=twMerge(t,_),S=twMerge(s,x);const C=(U,Z)=>{switch(e){case"blur":return blur(U,Z);case"fly":return fly(U,Z);case"fade":return fade(U,Z);default:return slide(U,Z)}},T=getContext("ctx")??{},R={},W=T.selected??writable();component_subscribe(l,W,U=>m(23,v=U));let j=i;i=!1,onMount(()=>(j&&set_store_value(W,v=R,v),W.subscribe(U=>m(0,i=U===R))));const L=U=>W.set(i?{}:R);let Q;return l.$$set=U=>{m(29,r=assign(assign({},r),exclude_internal_props(U))),"open"in U&&m(0,i=U.open),"activeClass"in U&&m(7,t=U.activeClass),"inactiveClass"in U&&m(8,s=U.inactiveClass),"defaultClass"in U&&m(9,o=U.defaultClass),"transitionType"in U&&m(10,e=U.transitionType),"transitionParams"in U&&m(1,c=U.transitionParams),"paddingFlush"in U&&m(11,u=U.paddingFlush),"paddingDefault"in U&&m(12,h=U.paddingDefault),"textFlushOpen"in U&&m(13,b=U.textFlushOpen),"textFlushDefault"in U&&m(14,p=U.textFlushDefault),"borderClass"in U&&m(15,k=U.borderClass),"borderOpenClass"in U&&m(16,d=U.borderOpenClass),"borderBottomClass"in U&&m(17,w=U.borderBottomClass),"borderSharedClass"in U&&m(18,y=U.borderSharedClass),"classActive"in U&&m(19,_=U.classActive),"classInactive"in U&&m(20,x=U.classInactive),"$$scope"in U&&m(21,a=U.$$scope)},l.$$.update=()=>{m(2,Q=twMerge([o,T.flush||k,w,y,T.flush?u:h,i&&(T.flush?b:E||T.activeClass),!i&&(T.flush?p:S||T.inactiveClass),r.class])),l.$$.dirty&464896&&m(3,g=twMerge([T.flush?u:h,T.flush?"":d,w,y]))},r=exclude_internal_props(r),[i,c,Q,g,C,W,L,t,s,o,e,u,h,b,p,k,d,w,y,_,x,a,f]}class AccordionItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$C,create_fragment$C,safe_not_equal,{open:0,activeClass:7,inactiveClass:8,defaultClass:9,transitionType:10,transitionParams:1,paddingFlush:11,paddingDefault:12,textFlushOpen:13,textFlushDefault:14,borderClass:15,borderOpenClass:16,borderBottomClass:17,borderSharedClass:18,classActive:19,classInactive:20})}}const get_default_slot_changes_1$2=l=>({svgSize:l&4}),get_default_slot_context_1$2=l=>({svgSize:l[5][l[2]]}),get_default_slot_changes$5=l=>({svgSize:l&4}),get_default_slot_context$5=l=>({svgSize:l[5][l[2]]});function create_else_block$d(l){let r,m,g,v,f,a,i=l[0]&&create_if_block_2$5(l);const t=l[9].default,s=create_slot(t,l,l[8],get_default_slot_context_1$2);let o=[{type:"button"},l[6],{class:l[4]},{"aria-label":g=l[1]??l[0]}],e={};for(let c=0;c{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$B(l,r,m){const g=["color","name","ariaLabel","size","href"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=getContext("background");let{color:t="default"}=r,{name:s=void 0}=r,{ariaLabel:o=void 0}=r,{size:e="md"}=r,{href:c=void 0}=r;const u={dark:"text-gray-500 hover:text-gray-900 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600",gray:"text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-gray-300",red:"text-red-500 focus:ring-red-400 hover:bg-red-200 dark:hover:bg-red-800 dark:hover:text-red-300",yellow:"text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-yellow-800 dark:hover:text-yellow-300",green:"text-green-500 focus:ring-green-400 hover:bg-green-200 dark:hover:bg-green-800 dark:hover:text-green-300",indigo:"text-indigo-500 focus:ring-indigo-400 hover:bg-indigo-200 dark:hover:bg-indigo-800 dark:hover:text-indigo-300",purple:"text-purple-500 focus:ring-purple-400 hover:bg-purple-200 dark:hover:bg-purple-800 dark:hover:text-purple-300",pink:"text-pink-500 focus:ring-pink-400 hover:bg-pink-200 dark:hover:bg-pink-800 dark:hover:text-pink-300",blue:"text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800 dark:hover:text-blue-300",primary:"text-primary-500 focus:ring-primary-400 hover:bg-primary-200 dark:hover:bg-primary-800 dark:hover:text-primary-300",default:"focus:ring-gray-400"},h={xs:"m-0.5 rounded-sm focus:ring-1 p-0.5",sm:"m-0.5 rounded focus:ring-1 p-0.5",md:"m-0.5 rounded-lg focus:ring-2 p-1.5",lg:"m-0.5 rounded-lg focus:ring-2 p-2.5"};let b;const p={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-5 h-5"};function k(d){bubble.call(this,l,d)}return l.$$set=d=>{m(14,r=assign(assign({},r),exclude_internal_props(d))),m(6,v=compute_rest_props(r,g)),"color"in d&&m(7,t=d.color),"name"in d&&m(0,s=d.name),"ariaLabel"in d&&m(1,o=d.ariaLabel),"size"in d&&m(2,e=d.size),"href"in d&&m(3,c=d.href),"$$scope"in d&&m(8,a=d.$$scope)},l.$$.update=()=>{m(4,b=twMerge("focus:outline-none whitespace-normal",h[e],u[t],t==="default"&&(i?"hover:bg-gray-100 dark:hover:bg-gray-600":"hover:bg-gray-100 dark:hover:bg-gray-700"),r.class))},r=exclude_internal_props(r),[s,o,e,c,b,p,v,t,a,f,k]}class ToolbarButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$B,create_fragment$B,safe_not_equal,{color:7,name:0,ariaLabel:1,size:2,href:3})}}function create_default_slot$l(l){let r,m,g;return{c(){r=svg_element("svg"),m=svg_element("path"),attr(m,"fill-rule","evenodd"),attr(m,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),attr(m,"clip-rule","evenodd"),attr(r,"class",g=l[4]),attr(r,"fill","currentColor"),attr(r,"viewBox","0 0 20 20"),attr(r,"xmlns","http://www.w3.org/2000/svg")},m(v,f){insert(v,r,f),append(r,m)},p(v,f){f&16&&g!==(g=v[4])&&attr(r,"class",g)},d(v){v&&detach(r)}}}function create_fragment$A(l){let r,m;const g=[{name:l[0]},l[1],{class:twMerge("ml-auto",l[2].class)}];let v={$$slots:{default:[create_default_slot$l,({svgSize:f})=>({4:f}),({svgSize:f})=>f?16:0]},$$scope:{ctx:l}};for(let f=0;f{m(2,r=assign(assign({},r),exclude_internal_props(i))),m(1,v=compute_rest_props(r,g)),"name"in i&&m(0,f=i.name)},r=exclude_internal_props(r),[f,v,r,a]}class CloseButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$A,create_fragment$A,safe_not_equal,{name:0})}}function create_dynamic_element$2(l){let r,m,g,v,f,a;const i=l[10].default,t=create_slot(i,l,l[9],null);let s=[{type:m=l[0]?void 0:l[1]},{href:l[0]},{role:g=l[0]?"link":"button"},l[3],{class:l[2]}],o={};for(let e=0;es||u==="alternative"||u==="light";let _;function x(Q){bubble.call(this,l,Q)}function E(Q){bubble.call(this,l,Q)}function S(Q){bubble.call(this,l,Q)}function C(Q){bubble.call(this,l,Q)}function T(Q){bubble.call(this,l,Q)}function R(Q){bubble.call(this,l,Q)}function W(Q){bubble.call(this,l,Q)}function j(Q){bubble.call(this,l,Q)}function L(Q){bubble.call(this,l,Q)}return l.$$set=Q=>{m(27,r=assign(assign({},r),exclude_internal_props(Q))),m(3,v=compute_rest_props(r,g)),"pill"in Q&&m(4,t=Q.pill),"outline"in Q&&m(5,s=Q.outline),"size"in Q&&m(6,o=Q.size),"href"in Q&&m(0,e=Q.href),"type"in Q&&m(1,c=Q.type),"color"in Q&&m(7,u=Q.color),"shadow"in Q&&m(8,h=Q.shadow),"$$scope"in Q&&m(9,a=Q.$$scope)},l.$$.update=()=>{m(2,_=twMerge("text-center font-medium",i?"focus:ring-2":"focus:ring-4",i&&"focus:z-10",i||"focus:outline-none","inline-flex items-center justify-center "+w[o],s?d[u]:b[u],u==="alternative"&&(i?"dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600":"dark:bg-transparent dark:border-gray-600 dark:hover:border-gray-700"),s&&u==="dark"&&(i?"dark:text-white dark:border-white":"dark:text-gray-400 dark:border-gray-700"),p[u],y()&&i&&"border-l-0 first:border-l",i?t&&"first:rounded-l-full last:rounded-r-full"||"first:rounded-l-lg last:rounded-r-lg":t&&"rounded-full"||"rounded-lg",h&&"shadow-lg",h&&k[u],r.disabled&&"cursor-not-allowed opacity-50",r.class))},r=exclude_internal_props(r),[e,c,_,v,t,s,o,u,h,a,f,x,E,S,C,T,R,W,j,L]}class Button extends SvelteComponent{constructor(r){super(),init(this,r,instance$z,create_fragment$z,safe_not_equal,{pill:4,outline:5,size:6,href:0,type:1,color:7,shadow:8})}}function create_else_block$c(l){let r;const m=l[10].default,g=create_slot(m,l,l[16],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&65536)&&update_slot_base(g,m,v,v[16],r?get_slot_changes(m,v[16],f,null):get_all_dirty_from_scope(v[16]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_if_block$k(l){let r,m,g,v,f;const a=l[10].default,i=create_slot(a,l,l[16],null);return{c(){r=element("img"),g=space(),v=element("div"),i&&i.c(),attr(r,"class",l[4]),src_url_equal(r.src,m=l[1])||attr(r,"src",m),attr(r,"alt",""),attr(v,"class",l[2])},m(t,s){insert(t,r,s),insert(t,g,s),insert(t,v,s),i&&i.m(v,null),f=!0},p(t,s){(!f||s&16)&&attr(r,"class",t[4]),(!f||s&2&&!src_url_equal(r.src,m=t[1]))&&attr(r,"src",m),i&&i.p&&(!f||s&65536)&&update_slot_base(i,a,t,t[16],f?get_slot_changes(a,t[16],s,null):get_all_dirty_from_scope(t[16]),null),(!f||s&4)&&attr(v,"class",t[2])},i(t){f||(transition_in(i,t),f=!0)},o(t){transition_out(i,t),f=!1},d(t){t&&(detach(r),detach(g),detach(v)),i&&i.d(t)}}}function create_default_slot$k(l){let r,m,g,v;const f=[create_if_block$k,create_else_block$c],a=[];function i(t,s){return t[1]?0:1}return r=i(l),m=a[r]=f[r](l),{c(){m.c(),g=empty()},m(t,s){a[r].m(t,s),insert(t,g,s),v=!0},p(t,s){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function create_fragment$y(l){let r,m;const g=[{tag:l[0]?"a":"div"},{rounded:!0},{shadow:!0},{border:!0},{href:l[0]},l[5],{class:l[3]}];let v={$$slots:{default:[create_default_slot$k]},$$scope:{ctx:l}};for(let f=0;f{m(20,r=assign(assign({},r),exclude_internal_props(E))),m(5,f=compute_rest_props(r,v)),"href"in E&&m(0,t=E.href),"horizontal"in E&&m(6,s=E.horizontal),"reverse"in E&&m(7,o=E.reverse),"img"in E&&m(1,e=E.img),"padding"in E&&m(8,c=E.padding),"size"in E&&m(9,u=E.size),"$$scope"in E&&m(16,i=E.$$scope)},l.$$.update=()=>{l.$$.dirty&256&&m(2,g=h[c]),m(3,p=twMerge("flex",b[u],o?"flex-col-reverse":"flex-col",s&&(o?"md:flex-row-reverse md:max-w-xl":"md:flex-row md:max-w-xl"),t&&"hover:bg-gray-100 dark:hover:bg-gray-700",!e&&g,r.class)),l.$$.dirty&192&&m(4,k=twMerge(o?"rounded-b-lg":"rounded-t-lg",s&&"object-cover w-full h-96 md:h-auto md:w-48 md:rounded-none",s&&(o?"md:rounded-r-lg":"md:rounded-l-lg")))},r=exclude_internal_props(r),[t,e,g,p,k,f,s,o,c,u,a,d,w,y,_,x,i]}class Card extends SvelteComponent{constructor(r){super(),init(this,r,instance$y,create_fragment$y,safe_not_equal,{href:0,horizontal:6,reverse:7,img:1,padding:8,size:9})}}function create_else_block$b(l){let r;const m=l[5].default,g=create_slot(m,l,l[4],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&16)&&update_slot_base(g,m,v,v[4],r?get_slot_changes(m,v[4],f,null):get_all_dirty_from_scope(v[4]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_if_block$j(l){let r=l[0],m,g,v=l[0]&&create_dynamic_element$1(l);return{c(){v&&v.c(),m=empty()},m(f,a){v&&v.m(f,a),insert(f,m,a),g=!0},p(f,a){f[0]?r?safe_not_equal(r,f[0])?(v.d(1),v=create_dynamic_element$1(f),r=f[0],v.c(),v.m(m.parentNode,m)):v.p(f,a):(v=create_dynamic_element$1(f),r=f[0],v.c(),v.m(m.parentNode,m)):r&&(v.d(1),v=null,r=f[0])},i(f){g||(transition_in(v,f),g=!0)},o(f){transition_out(v,f),g=!1},d(f){f&&detach(m),v&&v.d(f)}}}function create_dynamic_element$1(l){let r,m,g,v;const f=l[5].default,a=create_slot(f,l,l[4],null);let i=[l[3]],t={};for(let s=0;s{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$x(l,r,m){const g=["tag","show","use"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r,{tag:i="div"}=r,{show:t}=r,{use:s=()=>{}}=r;return l.$$set=o=>{r=assign(assign({},r),exclude_internal_props(o)),m(3,v=compute_rest_props(r,g)),"tag"in o&&m(0,i=o.tag),"show"in o&&m(1,t=o.show),"use"in o&&m(2,s=o.use),"$$scope"in o&&m(4,a=o.$$scope)},[i,t,s,v,a,f]}class Wrapper extends SvelteComponent{constructor(r){super(),init(this,r,instance$x,create_fragment$x,safe_not_equal,{tag:0,show:1,use:2})}}function create_else_block$a(l){let r;const m=l[7].default,g=create_slot(m,l,l[6],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&64)&&update_slot_base(g,m,v,v[6],r?get_slot_changes(m,v[6],f,null):get_all_dirty_from_scope(v[6]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_if_block$i(l){let r,m;const g=l[7].default,v=create_slot(g,l,l[6],null);let f=[l[3],{class:l[2]}],a={};for(let i=0;i{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$w(l,r,m){let g;const v=["color","defaultClass","show"];let f=compute_rest_props(r,v),{$$slots:a={},$$scope:i}=r,{color:t="gray"}=r,{defaultClass:s="text-sm font-medium block"}=r,{show:o=!0}=r,e;const c={gray:"text-gray-900 dark:text-gray-300",green:"text-green-700 dark:text-green-500",red:"text-red-700 dark:text-red-500",disabled:"text-gray-400 dark:text-gray-500"};function u(h){binding_callbacks[h?"unshift":"push"](()=>{e=h,m(1,e)})}return l.$$set=h=>{m(10,r=assign(assign({},r),exclude_internal_props(h))),m(3,f=compute_rest_props(r,v)),"color"in h&&m(4,t=h.color),"defaultClass"in h&&m(5,s=h.defaultClass),"show"in h&&m(0,o=h.show),"$$scope"in h&&m(6,i=h.$$scope)},l.$$.update=()=>{if(l.$$.dirty&18){const h=e==null?void 0:e.control;m(4,t=h!=null&&h.disabled?"disabled":t)}m(2,g=twMerge(s,c[t],r.class))},r=exclude_internal_props(r),[o,e,g,f,t,s,i,a,u]}class Label extends SvelteComponent{constructor(r){super(),init(this,r,instance$w,create_fragment$w,safe_not_equal,{color:4,defaultClass:5,show:0})}}const colorClasses={primary:"text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600",secondary:"text-secondary-600 focus:ring-secondary-500 dark:focus:ring-secondary-600",red:"text-red-600 focus:ring-red-500 dark:focus:ring-red-600",green:"text-green-600 focus:ring-green-500 dark:focus:ring-green-600",purple:"text-purple-600 focus:ring-purple-500 dark:focus:ring-purple-600",teal:"text-teal-600 focus:ring-teal-500 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-500 dark:focus:ring-yellow-600",orange:"text-orange-500 focus:ring-orange-500 dark:focus:ring-orange-600",blue:"text-blue-600 focus:ring-blue-500 dark:focus:ring-blue-600"},labelClass=(l,r)=>twMerge(l?"inline-flex":"flex","items-center",r);let spacing="mr-2";const inputClass=(l,r,m,g,v)=>twMerge("w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2",spacing,g?"dark:bg-gray-600 dark:border-gray-500":"dark:bg-gray-700 dark:border-gray-600",l&&"sr-only peer",m&&"rounded",colorClasses[r],v);function create_default_slot$j(l){let r,m,g,v,f,a,i,t=[{type:"checkbox"},{__value:l[5]},l[12],{class:m=twMerge(l[6],inputClass(l[3],l[2],!0,l[7],l[11].default||l[10].class))}],s={};for(let c=0;c=0),u?L<0&&(e.push(c),m(0,e)):L>=0&&(e.splice(L,1),m(0,e))}function d(L){bubble.call(this,l,L)}function w(L){bubble.call(this,l,L)}function y(L){bubble.call(this,l,L)}function _(L){bubble.call(this,l,L)}function x(L){bubble.call(this,l,L)}function E(L){bubble.call(this,l,L)}function S(L){bubble.call(this,l,L)}function C(L){bubble.call(this,l,L)}function T(L){bubble.call(this,l,L)}function R(L){bubble.call(this,l,L)}function W(L){bubble.call(this,l,L)}function j(){u=this.checked,m(1,u)}return l.$$set=L=>{m(10,r=assign(assign({},r),exclude_internal_props(L))),m(12,v=compute_rest_props(r,g)),"color"in L&&m(2,t=L.color),"custom"in L&&m(3,s=L.custom),"inline"in L&&m(4,o=L.inline),"group"in L&&m(0,e=L.group),"value"in L&&m(5,c=L.value),"checked"in L&&m(1,u=L.checked),"spacing"in L&&m(6,h=L.spacing),"$$scope"in L&&m(26,a=L.$$scope)},r=exclude_internal_props(r),[e,u,t,s,o,c,h,b,p,k,r,i,v,f,d,w,y,_,x,E,S,C,T,R,W,j,a]}class Checkbox extends SvelteComponent{constructor(r){super(),init(this,r,instance$v,create_fragment$v,safe_not_equal,{color:2,custom:3,inline:4,group:0,value:5,checked:1,spacing:6})}}const get_right_slot_changes=l=>({}),get_right_slot_context=l=>({}),get_default_slot_changes$4=l=>({props:l[0]&72}),get_default_slot_context$4=l=>({props:{...l[6],class:l[3]}}),get_left_slot_changes=l=>({}),get_left_slot_context=l=>({});function create_if_block_1$8(l){let r,m,g;const v=l[11].left,f=create_slot(v,l,l[26],get_left_slot_context);return{c(){r=element("div"),f&&f.c(),attr(r,"class",m=twMerge(l[2],l[4].classLeft)+" left-0 pl-2.5 pointer-events-none")},m(a,i){insert(a,r,i),f&&f.m(r,null),g=!0},p(a,i){f&&f.p&&(!g||i[0]&67108864)&&update_slot_base(f,v,a,a[26],g?get_slot_changes(v,a[26],i,get_left_slot_changes):get_all_dirty_from_scope(a[26]),get_left_slot_context),(!g||i[0]&20&&m!==(m=twMerge(a[2],a[4].classLeft)+" left-0 pl-2.5 pointer-events-none"))&&attr(r,"class",m)},i(a){g||(transition_in(f,a),g=!0)},o(a){transition_out(f,a),g=!1},d(a){a&&detach(r),f&&f.d(a)}}}function fallback_block$3(l){let r,m,g,v=[l[6],{type:l[1]},{class:l[3]}],f={};for(let a=0;a{f=null}),check_outros()),i?i.p&&(!v||e[0]&67108936)&&update_slot_base(i,a,o,o[26],v?get_slot_changes(a,o[26],e,get_default_slot_changes$4):get_all_dirty_from_scope(o[26]),get_default_slot_context$4):t&&t.p&&(!v||e[0]&75)&&t.p(o,v?e:[-1,-1]),o[5].right?s?(s.p(o,e),e[0]&32&&transition_in(s,1)):(s=create_if_block$h(o),s.c(),transition_in(s,1),s.m(g.parentNode,g)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros())},i(o){v||(transition_in(f),transition_in(t,o),transition_in(s),v=!0)},o(o){transition_out(f),transition_out(t,o),transition_out(s),v=!1},d(o){o&&(detach(r),detach(m),detach(g)),f&&f.d(o),t&&t.d(o),s&&s.d(o)}}}function create_fragment$u(l){let r,m;return r=new Wrapper({props:{class:"relative w-full",show:l[5].left||l[5].right,$$slots:{default:[create_default_slot$i]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v[0]&32&&(f.show=g[5].left||g[5].right),v[0]&67108991&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function clampSize(l){return l&&l==="xs"?"sm":l==="xl"?"lg":l}function instance$u(l,r,m){let g;const v=["type","value","size","defaultClass","color","floatClass"];let f=compute_rest_props(r,v),{$$slots:a={},$$scope:i}=r;const t=compute_slots(a);let{type:s="text"}=r,{value:o=void 0}=r,{size:e=void 0}=r,{defaultClass:c="block w-full disabled:cursor-not-allowed disabled:opacity-50"}=r,{color:u="base"}=r,{floatClass:h="flex absolute inset-y-0 items-center text-gray-500 dark:text-gray-400"}=r;const b={base:"border-gray-300 dark:border-gray-600",tinted:"border-gray-300 dark:border-gray-500",green:"border-green-500 dark:border-green-400",red:"border-red-500 dark:border-red-400"},p={base:"focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500",green:"focus:ring-green-500 focus:border-green-500 dark:focus:border-green-500 dark:focus:ring-green-500",red:"focus:ring-red-500 focus:border-red-500 dark:focus:ring-red-500 dark:focus:border-red-500"},k={base:"bg-gray-50 text-gray-900 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400",tinted:"bg-gray-50 text-gray-900 dark:bg-gray-600 dark:text-white dark:placeholder-gray-400",green:"bg-green-50 text-green-900 placeholder-green-700 dark:text-green-400 dark:placeholder-green-500 dark:bg-gray-700",red:"bg-red-50 text-red-900 placeholder-red-700 dark:text-red-500 dark:placeholder-red-500 dark:bg-gray-700"};let d=getContext("background"),w=getContext("group");const y={sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},_={sm:"pl-9",md:"pl-10",lg:"pl-11"},x={sm:"pr-9",md:"pr-10",lg:"pr-11"},E={sm:"p-2",md:"p-2.5",lg:"p-3"};let S;function C(O){bubble.call(this,l,O)}function T(O){bubble.call(this,l,O)}function R(O){bubble.call(this,l,O)}function W(O){bubble.call(this,l,O)}function j(O){bubble.call(this,l,O)}function L(O){bubble.call(this,l,O)}function Q(O){bubble.call(this,l,O)}function U(O){bubble.call(this,l,O)}function Z(O){bubble.call(this,l,O)}function se(O){bubble.call(this,l,O)}function te(O){bubble.call(this,l,O)}function $(O){bubble.call(this,l,O)}function P(O){bubble.call(this,l,O)}function A(){o=this.value,m(0,o)}return l.$$set=O=>{m(4,r=assign(assign({},r),exclude_internal_props(O))),m(6,f=compute_rest_props(r,v)),"type"in O&&m(1,s=O.type),"value"in O&&m(0,o=O.value),"size"in O&&m(7,e=O.size),"defaultClass"in O&&m(8,c=O.defaultClass),"color"in O&&m(9,u=O.color),"floatClass"in O&&m(2,h=O.floatClass),"$$scope"in O&&m(26,i=O.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&128&&m(10,g=e||clampSize(w==null?void 0:w.size)||"md");{const O=u==="base"&&d?"tinted":u;m(3,S=twMerge([c,t.left&&_[g]||t.right&&x[g]||E[g],p[u],k[O],b[O],y[g],w||"rounded-lg",w&&"first:rounded-l-lg last:rounded-r-lg",w&&"border-l-0 first:border-l last:border-r",r.class]))}},r=exclude_internal_props(r),[o,s,h,S,r,t,f,e,c,u,g,a,C,T,R,W,j,L,Q,U,Z,se,te,$,P,A,i]}class Input extends SvelteComponent{constructor(r){super(),init(this,r,instance$u,create_fragment$u,safe_not_equal,{type:1,value:0,size:7,defaultClass:8,color:9,floatClass:2},null,[-1,-1])}}let n=Date.now();function generateId(){return(++n).toString(36)}function create_left_slot(l){let r,m,g;return{c(){r=svg_element("svg"),m=svg_element("path"),attr(m,"fill-rule","evenodd"),attr(m,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),attr(m,"clip-rule","evenodd"),attr(r,"slot","left"),attr(r,"class",g=l[3][l[1]]),attr(r,"fill","currentColor"),attr(r,"viewBox","0 0 20 20"),attr(r,"xmlns","http://www.w3.org/2000/svg")},m(v,f){insert(v,r,f),append(r,m)},p(v,f){f&2&&g!==(g=v[3][v[1]])&&attr(r,"class",g)},d(v){v&&detach(r)}}}function create_if_block$g(l){let r,m;const g=l[7].default,v=create_slot(g,l,l[21],null);return{c(){r=element("div"),v&&v.c(),attr(r,"class","flex absolute inset-y-0 right-0 items-center text-gray-500 dark:text-gray-400")},m(f,a){insert(f,r,a),v&&v.m(r,null),m=!0},p(f,a){v&&v.p&&(!m||a&2097152)&&update_slot_base(v,g,f,f[21],m?get_slot_changes(g,f[21],a,null):get_all_dirty_from_scope(f[21]),null)},i(f){m||(transition_in(v,f),m=!0)},o(f){transition_out(v,f),m=!1},d(f){f&&detach(r),v&&v.d(f)}}}function create_default_slot$h(l){let r,m,g,v,f;const a=[{type:"search"},{placeholder:l[2]},{size:l[1]},l[5],{class:l[6].class}];function i(o){l[8](o)}let t={$$slots:{left:[create_left_slot]},$$scope:{ctx:l}};for(let o=0;obind(r,"value",i)),r.$on("blur",l[9]),r.$on("change",l[10]),r.$on("input",l[11]),r.$on("click",l[12]),r.$on("focus",l[13]),r.$on("keydown",l[14]),r.$on("keypress",l[15]),r.$on("keyup",l[16]),r.$on("mouseenter",l[17]),r.$on("mouseleave",l[18]),r.$on("mouseover",l[19]),r.$on("paste",l[20]);let s=l[4].default&&create_if_block$g(l);return{c(){create_component(r.$$.fragment),g=space(),s&&s.c(),v=empty()},m(o,e){mount_component(r,o,e),insert(o,g,e),s&&s.m(o,e),insert(o,v,e),f=!0},p(o,e){const c=e&102?get_spread_update(a,[a[0],e&4&&{placeholder:o[2]},e&2&&{size:o[1]},e&32&&get_spread_object(o[5]),e&64&&{class:o[6].class}]):{};e&2097154&&(c.$$scope={dirty:e,ctx:o}),!m&&e&1&&(m=!0,c.value=o[0],add_flush_callback(()=>m=!1)),r.$set(c),o[4].default?s?(s.p(o,e),e&16&&transition_in(s,1)):(s=create_if_block$g(o),s.c(),transition_in(s,1),s.m(v.parentNode,v)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros())},i(o){f||(transition_in(r.$$.fragment,o),transition_in(s),f=!0)},o(o){transition_out(r.$$.fragment,o),transition_out(s),f=!1},d(o){o&&(detach(g),detach(v)),destroy_component(r,o),s&&s.d(o)}}}function create_fragment$t(l){let r,m;return r=new Wrapper({props:{class:"relative w-full",show:l[4].default,$$slots:{default:[create_default_slot$h]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,[v]){const f={};v&16&&(f.show=g[4].default),v&2097271&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function instance$t(l,r,m){const g=["size","placeholder","value"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{size:t="lg"}=r,{placeholder:s="Search"}=r,{value:o=void 0}=r;const e={sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-6 h-6"};function c(C){o=C,m(0,o)}function u(C){bubble.call(this,l,C)}function h(C){bubble.call(this,l,C)}function b(C){bubble.call(this,l,C)}function p(C){bubble.call(this,l,C)}function k(C){bubble.call(this,l,C)}function d(C){bubble.call(this,l,C)}function w(C){bubble.call(this,l,C)}function y(C){bubble.call(this,l,C)}function _(C){bubble.call(this,l,C)}function x(C){bubble.call(this,l,C)}function E(C){bubble.call(this,l,C)}function S(C){bubble.call(this,l,C)}return l.$$set=C=>{m(6,r=assign(assign({},r),exclude_internal_props(C))),m(5,v=compute_rest_props(r,g)),"size"in C&&m(1,t=C.size),"placeholder"in C&&m(2,s=C.placeholder),"value"in C&&m(0,o=C.value),"$$scope"in C&&m(21,a=C.$$scope)},r=exclude_internal_props(r),[o,t,s,e,i,v,r,f,c,u,h,b,p,k,d,w,y,_,x,E,S,a]}class Search extends SvelteComponent{constructor(r){super(),init(this,r,instance$t,create_fragment$t,safe_not_equal,{size:1,placeholder:2,value:0})}}function get_each_context$7(l,r,m){const g=l.slice();return g[0]=r[m].value,g[17]=r[m].name,g}function create_if_block$f(l){let r,m;return{c(){r=element("option"),m=text(l[2]),r.disabled=!0,r.selected=!0,r.__value="",set_input_value(r,r.__value)},m(g,v){insert(g,r,v),append(r,m)},p(g,v){v&4&&set_data(m,g[2])},d(g){g&&detach(r)}}}function create_else_block$9(l){let r;const m=l[10].default,g=create_slot(m,l,l[9],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&512)&&update_slot_base(g,m,v,v[9],r?get_slot_changes(m,v[9],f,null):get_all_dirty_from_scope(v[9]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_each_block$7(l){let r,m=l[17]+"",g,v;return{c(){r=element("option"),g=text(m),r.__value=v=l[0],set_input_value(r,r.__value)},m(f,a){insert(f,r,a),append(r,g)},p(f,a){a&2&&m!==(m=f[17]+"")&&set_data(g,m),a&2&&v!==(v=f[0])&&(r.__value=v,set_input_value(r,r.__value))},d(f){f&&detach(r)}}}function create_fragment$s(l){let r,m,g,v,f=l[2]&&create_if_block$f(l),a=ensure_array_like(l[1]),i=[];for(let e=0;el[14].call(r))},m(e,c){insert(e,r,c),f&&f.m(r,null),append(r,m);for(let u=0;u{t=null}),check_outros()):(t=create_else_block$9(e),t.c(),transition_in(t,1),t.m(r,null))}set_attributes(r,o=get_spread_update(s,[c&16&&e[4],{class:e[3]}])),c&24&&"value"in o&&(o.multiple?select_options:select_option)(r,o.value),c&3&&select_option(r,e[0])},i:noop,o:noop,d(e){e&&detach(r),f&&f.d(),destroy_each(i,e),t&&t.d(),g=!1,run_all(v)}}}const common$1="block w-full";function instance$s(l,r,m){const g=["items","value","placeholder","underline","size","defaultClass","underlineClass"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r,{items:i=[]}=r,{value:t=void 0}=r,{placeholder:s="Choose option ..."}=r,{underline:o=!1}=r,{size:e="md"}=r,{defaultClass:c="text-gray-900 bg-gray-50 border border-gray-300 rounded-lg focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"}=r,{underlineClass:u="text-gray-500 bg-transparent border-0 border-b-2 border-gray-200 appearance-none dark:text-gray-400 dark:border-gray-700 focus:outline-none focus:ring-0 focus:border-gray-200 peer"}=r;const h={sm:"text-sm p-2",md:"text-sm p-2.5",lg:"text-base py-3 px-4"};let b;function p(y){bubble.call(this,l,y)}function k(y){bubble.call(this,l,y)}function d(y){bubble.call(this,l,y)}function w(){t=select_value(this),m(0,t),m(1,i)}return l.$$set=y=>{m(16,r=assign(assign({},r),exclude_internal_props(y))),m(4,v=compute_rest_props(r,g)),"items"in y&&m(1,i=y.items),"value"in y&&m(0,t=y.value),"placeholder"in y&&m(2,s=y.placeholder),"underline"in y&&m(5,o=y.underline),"size"in y&&m(6,e=y.size),"defaultClass"in y&&m(7,c=y.defaultClass),"underlineClass"in y&&m(8,u=y.underlineClass),"$$scope"in y&&m(9,a=y.$$scope)},l.$$.update=()=>{m(3,b=twMerge(common$1,o?u:c,h[e],o&&"!px-0",r.class))},r=exclude_internal_props(r),[t,i,s,b,v,o,e,c,u,a,f,p,k,d,w]}class Select extends SvelteComponent{constructor(r){super(),init(this,r,instance$s,create_fragment$s,safe_not_equal,{items:1,value:0,placeholder:2,underline:5,size:6,defaultClass:7,underlineClass:8})}}function create_default_slot$g(l){let r,m,g;const v=l[8].default,f=create_slot(v,l,l[13],null);return{c(){r=element("span"),m=space(),f&&f.c(),attr(r,"class",l[3])},m(a,i){insert(a,r,i),insert(a,m,i),f&&f.m(a,i),g=!0},p(a,i){(!g||i&8)&&attr(r,"class",a[3]),f&&f.p&&(!g||i&8192)&&update_slot_base(f,v,a,a[13],g?get_slot_changes(v,a[13],i,null):get_all_dirty_from_scope(a[13]),null)},i(a){g||(transition_in(f,a),g=!0)},o(a){transition_out(f,a),g=!1},d(a){a&&(detach(r),detach(m)),f&&f.d(a)}}}function create_fragment$r(l){let r,m,g,v;const f=[{custom:!0},l[5],{class:l[4].class},{value:l[2]}];function a(s){l[9](s)}function i(s){l[10](s)}let t={$$slots:{default:[create_default_slot$g]},$$scope:{ctx:l}};for(let s=0;sbind(r,"checked",a)),binding_callbacks.push(()=>bind(r,"group",i)),r.$on("click",l[11]),r.$on("change",l[12]),{c(){create_component(r.$$.fragment)},m(s,o){mount_component(r,s,o),v=!0},p(s,[o]){const e=o&52?get_spread_update(f,[f[0],o&32&&get_spread_object(s[5]),o&16&&{class:s[4].class},o&4&&{value:s[2]}]):{};o&8200&&(e.$$scope={dirty:o,ctx:s}),!m&&o&2&&(m=!0,e.checked=s[1],add_flush_callback(()=>m=!1)),!g&&o&1&&(g=!0,e.group=s[0],add_flush_callback(()=>g=!1)),r.$set(e)},i(s){v||(transition_in(r.$$.fragment,s),v=!0)},o(s){transition_out(r.$$.fragment,s),v=!1},d(s){destroy_component(r,s)}}}const common="mr-3 shrink-0 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all";function instance$r(l,r,m){const g=["size","group","value","checked","customSize"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r,{size:i="default"}=r,{group:t=[]}=r,{value:s=""}=r,{checked:o=void 0}=r,{customSize:e=""}=r,c=getContext("background");const u={primary:"peer-focus:ring-primary-300 dark:peer-focus:ring-primary-800 peer-checked:bg-primary-600",secondary:"peer-focus:ring-secondary-300 dark:peer-focus:ring-secondary-800 peer-checked:bg-secondary-600",red:"peer-focus:ring-red-300 dark:peer-focus:ring-red-800 peer-checked:bg-red-600",green:"peer-focus:ring-green-300 dark:peer-focus:ring-green-800 peer-checked:bg-green-600",purple:"peer-focus:ring-purple-300 dark:peer-focus:ring-purple-800 peer-checked:bg-purple-600",yellow:"peer-focus:ring-yellow-300 dark:peer-focus:ring-yellow-800 peer-checked:bg-yellow-400",teal:"peer-focus:ring-teal-300 dark:peer-focus:ring-teal-800 peer-checked:bg-teal-600",orange:"peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:bg-orange-500",blue:"peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 peer-checked:bg-blue-600"},h={small:"w-9 h-5 after:top-[2px] after:left-[2px] after:h-4 after:w-4",default:"w-11 h-6 after:top-0.5 after:left-[2px] after:h-5 after:w-5",large:"w-14 h-7 after:top-0.5 after:left-[4px] after:h-6 after:w-6",custom:e};let b;function p(y){o=y,m(1,o)}function k(y){t=y,m(0,t)}function d(y){bubble.call(this,l,y)}function w(y){bubble.call(this,l,y)}return l.$$set=y=>{m(4,r=assign(assign({},r),exclude_internal_props(y))),m(5,v=compute_rest_props(r,g)),"size"in y&&m(6,i=y.size),"group"in y&&m(0,t=y.group),"value"in y&&m(2,s=y.value),"checked"in y&&m(1,o=y.checked),"customSize"in y&&m(7,e=y.customSize),"$$scope"in y&&m(13,a=y.$$scope)},l.$$.update=()=>{m(3,b=twMerge(common,c?"dark:bg-gray-600 dark:border-gray-500":"dark:bg-gray-700 dark:border-gray-600",u[v.color??"primary"],h[i],"relative",r.classDiv))},r=exclude_internal_props(r),[t,o,s,b,r,v,i,e,f,p,k,d,w,a]}class Toggle extends SvelteComponent{constructor(r){super(),init(this,r,instance$r,create_fragment$r,safe_not_equal,{size:6,group:0,value:2,checked:1,customSize:7})}}const get_default_slot_changes_2$1=l=>({item:l[0]&32}),get_default_slot_context_2$1=l=>({item:l[5]}),get_default_slot_changes_1$1=l=>({item:l[0]&32}),get_default_slot_context_1$1=l=>({item:l[5]}),get_default_slot_changes$3=l=>({item:l[0]&32}),get_default_slot_context$3=l=>({item:l[5]});function create_else_block$8(l){let r,m,g,v,f;const a=l[14].default,i=create_slot(a,l,l[13],get_default_slot_context_2$1);return{c(){r=element("button"),i&&i.c(),attr(r,"type","button"),attr(r,"class",m="flex items-center text-left "+l[4]),r.disabled=l[2],attr(r,"aria-current",l[1])},m(t,s){insert(t,r,s),i&&i.m(r,null),g=!0,v||(f=[listen(r,"blur",l[25]),listen(r,"change",l[26]),listen(r,"click",l[27]),listen(r,"focus",l[28]),listen(r,"keydown",l[29]),listen(r,"keypress",l[30]),listen(r,"keyup",l[31]),listen(r,"mouseenter",l[32]),listen(r,"mouseleave",l[33]),listen(r,"mouseover",l[34])],v=!0)},p(t,s){i&&i.p&&(!g||s[0]&8224)&&update_slot_base(i,a,t,t[13],g?get_slot_changes(a,t[13],s,get_default_slot_changes_2$1):get_all_dirty_from_scope(t[13]),get_default_slot_context_2$1),(!g||s[0]&16&&m!==(m="flex items-center text-left "+t[4]))&&attr(r,"class",m),(!g||s[0]&4)&&(r.disabled=t[2]),(!g||s[0]&2)&&attr(r,"aria-current",t[1])},i(t){g||(transition_in(i,t),g=!0)},o(t){transition_out(i,t),g=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,run_all(f)}}}function create_if_block_1$7(l){let r,m,g,v,f;const a=l[14].default,i=create_slot(a,l,l[13],get_default_slot_context_1$1);return{c(){r=element("a"),i&&i.c(),attr(r,"href",l[3]),attr(r,"class",m="block "+l[4]),attr(r,"aria-current",l[1])},m(t,s){insert(t,r,s),i&&i.m(r,null),g=!0,v||(f=[listen(r,"blur",l[15]),listen(r,"change",l[16]),listen(r,"click",l[17]),listen(r,"focus",l[18]),listen(r,"keydown",l[19]),listen(r,"keypress",l[20]),listen(r,"keyup",l[21]),listen(r,"mouseenter",l[22]),listen(r,"mouseleave",l[23]),listen(r,"mouseover",l[24])],v=!0)},p(t,s){i&&i.p&&(!g||s[0]&8224)&&update_slot_base(i,a,t,t[13],g?get_slot_changes(a,t[13],s,get_default_slot_changes_1$1):get_all_dirty_from_scope(t[13]),get_default_slot_context_1$1),(!g||s[0]&8)&&attr(r,"href",t[3]),(!g||s[0]&16&&m!==(m="block "+t[4]))&&attr(r,"class",m),(!g||s[0]&2)&&attr(r,"aria-current",t[1])},i(t){g||(transition_in(i,t),g=!0)},o(t){transition_out(i,t),g=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,run_all(f)}}}function create_if_block$e(l){let r,m;const g=l[14].default,v=create_slot(g,l,l[13],get_default_slot_context$3);return{c(){r=element("li"),v&&v.c(),attr(r,"class",l[4])},m(f,a){insert(f,r,a),v&&v.m(r,null),m=!0},p(f,a){v&&v.p&&(!m||a[0]&8224)&&update_slot_base(v,g,f,f[13],m?get_slot_changes(g,f[13],a,get_default_slot_changes$3):get_all_dirty_from_scope(f[13]),get_default_slot_context$3),(!m||a[0]&16)&&attr(r,"class",f[4])},i(f){m||(transition_in(v,f),m=!0)},o(f){transition_out(v,f),m=!1},d(f){f&&detach(r),v&&v.d(f)}}}function create_fragment$q(l){let r,m,g,v;const f=[create_if_block$e,create_if_block_1$7,create_else_block$8],a=[];function i(t,s){return t[0]?t[3]?1:2:0}return r=i(l),m=a[r]=f[r](l),{c(){m.c(),g=empty()},m(t,s){a[r].m(t,s),insert(t,g,s),v=!0},p(t,s){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$q(l,r,m){let{$$slots:g={},$$scope:v}=r,{active:f=getContext("active")}=r,{current:a=!1}=r,{disabled:i=!1}=r,{href:t=""}=r,{currentClass:s="text-white bg-primary-700 dark:text-white dark:bg-gray-800"}=r,{normalClass:o=""}=r,{disabledClass:e="text-gray-900 bg-gray-100 dark:bg-gray-600 dark:text-gray-400"}=r,{focusClass:c="focus:z-40 focus:outline-none focus:ring-2 focus:ring-primary-700 focus:text-primary-700 dark:focus:ring-gray-500 dark:focus:text-white"}=r,{hoverClass:u="hover:bg-gray-100 hover:text-primary-700 dark:hover:bg-gray-600 dark:hover:text-white"}=r,{itemDefaultClass:h="py-2 px-4 w-full text-sm font-medium list-none first:rounded-t-lg last:rounded-b-lg"}=r;const b={current:s,normal:o,disabled:e};let p,k;function d(A){bubble.call(this,l,A)}function w(A){bubble.call(this,l,A)}function y(A){bubble.call(this,l,A)}function _(A){bubble.call(this,l,A)}function x(A){bubble.call(this,l,A)}function E(A){bubble.call(this,l,A)}function S(A){bubble.call(this,l,A)}function C(A){bubble.call(this,l,A)}function T(A){bubble.call(this,l,A)}function R(A){bubble.call(this,l,A)}function W(A){bubble.call(this,l,A)}function j(A){bubble.call(this,l,A)}function L(A){bubble.call(this,l,A)}function Q(A){bubble.call(this,l,A)}function U(A){bubble.call(this,l,A)}function Z(A){bubble.call(this,l,A)}function se(A){bubble.call(this,l,A)}function te(A){bubble.call(this,l,A)}function $(A){bubble.call(this,l,A)}function P(A){bubble.call(this,l,A)}return l.$$set=A=>{m(5,r=assign(assign({},r),exclude_internal_props(A))),"active"in A&&m(0,f=A.active),"current"in A&&m(1,a=A.current),"disabled"in A&&m(2,i=A.disabled),"href"in A&&m(3,t=A.href),"currentClass"in A&&m(6,s=A.currentClass),"normalClass"in A&&m(7,o=A.normalClass),"disabledClass"in A&&m(8,e=A.disabledClass),"focusClass"in A&&m(9,c=A.focusClass),"hoverClass"in A&&m(10,u=A.hoverClass),"itemDefaultClass"in A&&m(11,h=A.itemDefaultClass),"$$scope"in A&&m(13,v=A.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&6&&m(12,p=i?"disabled":a?"current":"normal"),m(4,k=twMerge(h,b[p],f&&p==="disabled"&&"cursor-not-allowed",f&&p==="normal"&&u,f&&p==="normal"&&c,r.class))},r=exclude_internal_props(r),[f,a,i,t,k,r,s,o,e,c,u,h,p,v,g,d,w,y,_,x,E,S,C,T,R,W,j,L,Q,U,Z,se,te,$,P]}class ListgroupItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$q,create_fragment$q,safe_not_equal,{active:0,current:1,disabled:2,href:3,currentClass:6,normalClass:7,disabledClass:8,focusClass:9,hoverClass:10,itemDefaultClass:11},null,[-1,-1])}}function get_each_context$6(l,r,m){const g=l.slice();return g[11]=r[m],g[13]=m,g}const get_default_slot_changes_2=l=>({item:l&1}),get_default_slot_context_2=l=>({item:l[0][0]}),get_default_slot_changes_1=l=>({item:l&1}),get_default_slot_context_1=l=>({item:l[11],index:l[13]}),get_default_slot_changes$2=l=>({item:l&1}),get_default_slot_context$2=l=>({item:l[11],index:l[13]});function create_else_block_1$1(l){let r;const m=l[6].default,g=create_slot(m,l,l[9],get_default_slot_context_2);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&513)&&update_slot_base(g,m,v,v[9],r?get_slot_changes(m,v[9],f,get_default_slot_changes_2):get_all_dirty_from_scope(v[9]),get_default_slot_context_2)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_else_block$7(l){let r,m;function g(){return l[8](l[11])}return r=new ListgroupItem({props:{active:l[1],index:l[13],$$slots:{default:[create_default_slot_2$5]},$$scope:{ctx:l}}}),r.$on("click",g),{c(){create_component(r.$$.fragment)},m(v,f){mount_component(r,v,f),m=!0},p(v,f){l=v;const a={};f&2&&(a.active=l[1]),f&513&&(a.$$scope={dirty:f,ctx:l}),r.$set(a)},i(v){m||(transition_in(r.$$.fragment,v),m=!0)},o(v){transition_out(r.$$.fragment,v),m=!1},d(v){destroy_component(r,v)}}}function create_if_block$d(l){let r,m;const g=[{active:l[1]},l[11],{index:l[13]}];function v(){return l[7](l[11])}let f={$$slots:{default:[create_default_slot_1$7]},$$scope:{ctx:l}};for(let a=0;a{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function create_default_slot$f(l){let r,m,g=ensure_array_like(l[0]),v=[];for(let i=0;itransition_out(v[i],1,1,()=>{v[i]=null});let a=null;return g.length||(a=create_else_block_1$1(l)),{c(){for(let i=0;i{a=null}),check_outros()):(a=create_else_block_1$1(i),a.c(),transition_in(a,1),a.m(r.parentNode,r))}},i(i){if(!m){for(let t=0;ti("click",h),u=h=>i("click",h);return l.$$set=h=>{m(10,r=assign(assign({},r),exclude_internal_props(h))),m(4,v=compute_rest_props(r,g)),"items"in h&&m(0,t=h.items),"active"in h&&m(1,s=h.active),"defaultClass"in h&&m(5,o=h.defaultClass),"$$scope"in h&&m(9,a=h.$$scope)},l.$$.update=()=>{l.$$.dirty&2&&setContext("active",s),m(2,e=twMerge(o,r.class))},r=exclude_internal_props(r),[t,s,e,i,v,o,f,c,u,a]}class Listgroup extends SvelteComponent{constructor(r){super(),init(this,r,instance$p,create_fragment$p,safe_not_equal,{items:0,active:1,defaultClass:5})}}const selectorTabbable=` + opacity: ${t-o*m}`}}function slide(l,{delay:r=0,duration:g=400,easing:p=cubicOut,axis:v="y"}={}){const f=getComputedStyle(l),a=+f.opacity,i=v==="y"?"height":"width",t=parseFloat(f[i]),s=v==="y"?["top","bottom"]:["left","right"],o=s.map(k=>`${k[0].toUpperCase()}${k.slice(1)}`),e=parseFloat(f[`padding${o[0]}`]),c=parseFloat(f[`padding${o[1]}`]),u=parseFloat(f[`margin${o[0]}`]),h=parseFloat(f[`margin${o[1]}`]),b=parseFloat(f[`border${o[0]}Width`]),m=parseFloat(f[`border${o[1]}Width`]);return{delay:r,duration:g,easing:p,css:k=>`overflow: hidden;opacity: ${Math.min(k*20,1)*a};${i}: ${k*t}px;padding-${s[0]}: ${k*e}px;padding-${s[1]}: ${k*c}px;margin-${s[0]}: ${k*u}px;margin-${s[1]}: ${k*h}px;border-${s[0]}-width: ${k*b}px;border-${s[1]}-width: ${k*m}px;`}}const get_arrowdown_slot_changes=l=>({}),get_arrowdown_slot_context=l=>({}),get_arrowup_slot_changes=l=>({}),get_arrowup_slot_context=l=>({}),get_header_slot_changes$1=l=>({}),get_header_slot_context$1=l=>({});function create_else_block_1$2(l){let r;const g=l[22].arrowdown,p=create_slot(g,l,l[21],get_arrowdown_slot_context),v=p||fallback_block_1();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){p&&p.p&&(!r||a&2097152)&&update_slot_base(p,g,f,f[21],r?get_slot_changes(g,f[21],a,get_arrowdown_slot_changes):get_all_dirty_from_scope(f[21]),get_arrowdown_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function create_if_block_1$a(l){let r;const g=l[22].arrowup,p=create_slot(g,l,l[21],get_arrowup_slot_context),v=p||fallback_block$4();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){p&&p.p&&(!r||a&2097152)&&update_slot_base(p,g,f,f[21],r?get_slot_changes(g,f[21],a,get_arrowup_slot_changes):get_all_dirty_from_scope(f[21]),get_arrowup_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function fallback_block_1(l){let r,g;return{c(){r=svg_element("svg"),g=svg_element("path"),attr(g,"stroke","currentColor"),attr(g,"stroke-linecap","round"),attr(g,"stroke-linejoin","round"),attr(g,"stroke-width","2"),attr(g,"d","m1 1 4 4 4-4"),attr(r,"class","w-3 h-3 text-gray-800 dark:text-white"),attr(r,"aria-hidden","true"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"fill","none"),attr(r,"viewBox","0 0 10 6")},m(p,v){insert(p,r,v),append(r,g)},p:noop,d(p){p&&detach(r)}}}function fallback_block$4(l){let r,g;return{c(){r=svg_element("svg"),g=svg_element("path"),attr(g,"stroke","currentColor"),attr(g,"stroke-linecap","round"),attr(g,"stroke-linejoin","round"),attr(g,"stroke-width","2"),attr(g,"d","M9 5 5 1 1 5"),attr(r,"class","w-3 h-3 text-gray-800 dark:text-white"),attr(r,"aria-hidden","true"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"fill","none"),attr(r,"viewBox","0 0 10 6")},m(p,v){insert(p,r,v),append(r,g)},p:noop,d(p){p&&detach(r)}}}function create_else_block$e(l){let r,g,p;const v=l[22].default,f=create_slot(v,l,l[21],null);return{c(){r=element("div"),g=element("div"),f&&f.c(),attr(g,"class",l[3]),attr(r,"class","hidden")},m(a,i){insert(a,r,i),append(r,g),f&&f.m(g,null),p=!0},p(a,i){f&&f.p&&(!p||i&2097152)&&update_slot_base(f,v,a,a[21],p?get_slot_changes(v,a[21],i,null):get_all_dirty_from_scope(a[21]),null),(!p||i&8)&&attr(g,"class",a[3])},i(a){p||(transition_in(f,a),p=!0)},o(a){transition_out(f,a),p=!1},d(a){a&&detach(r),f&&f.d(a)}}}function create_if_block$m(l){let r,g,p,v;const f=l[22].default,a=create_slot(f,l,l[21],null);return{c(){r=element("div"),g=element("div"),a&&a.c(),attr(g,"class",l[3])},m(i,t){insert(i,r,t),append(r,g),a&&a.m(g,null),v=!0},p(i,t){l=i,a&&a.p&&(!v||t&2097152)&&update_slot_base(a,f,l,l[21],v?get_slot_changes(f,l[21],t,null):get_all_dirty_from_scope(l[21]),null),(!v||t&8)&&attr(g,"class",l[3])},i(i){v||(transition_in(a,i),i&&add_render_callback(()=>{v&&(p||(p=create_bidirectional_transition(r,l[4],l[1],!0)),p.run(1))}),v=!0)},o(i){transition_out(a,i),i&&(p||(p=create_bidirectional_transition(r,l[4],l[1],!1)),p.run(0)),v=!1},d(i){i&&detach(r),a&&a.d(i),i&&p&&p.end()}}}function create_fragment$E(l){let r,g,p,v,f,a,i,t,s,o,e,c;const u=l[22].header,h=create_slot(u,l,l[21],get_header_slot_context$1),b=[create_if_block_1$a,create_else_block_1$2],m=[];function k(_,x){return _[0]?0:1}v=k(l),f=m[v]=b[v](l);const d=[create_if_block$m,create_else_block$e],w=[];function y(_,x){return _[0]?0:1}return i=y(l),t=w[i]=d[i](l),{c(){r=element("h2"),g=element("button"),h&&h.c(),p=space(),f.c(),a=space(),t.c(),s=empty(),attr(g,"type","button"),attr(g,"class",l[2]),attr(g,"aria-expanded",l[0]),attr(r,"class","group")},m(_,x){insert(_,r,x),append(r,g),h&&h.m(g,null),append(g,p),m[v].m(g,null),insert(_,a,x),w[i].m(_,x),insert(_,s,x),o=!0,e||(c=listen(g,"click",l[6]),e=!0)},p(_,[x]){h&&h.p&&(!o||x&2097152)&&update_slot_base(h,u,_,_[21],o?get_slot_changes(u,_[21],x,get_header_slot_changes$1):get_all_dirty_from_scope(_[21]),get_header_slot_context$1);let E=v;v=k(_),v===E?m[v].p(_,x):(group_outros(),transition_out(m[E],1,1,()=>{m[E]=null}),check_outros(),f=m[v],f?f.p(_,x):(f=m[v]=b[v](_),f.c()),transition_in(f,1),f.m(g,null)),(!o||x&4)&&attr(g,"class",_[2]),(!o||x&1)&&attr(g,"aria-expanded",_[0]);let S=i;i=y(_),i===S?w[i].p(_,x):(group_outros(),transition_out(w[S],1,1,()=>{w[S]=null}),check_outros(),t=w[i],t?t.p(_,x):(t=w[i]=d[i](_),t.c()),transition_in(t,1),t.m(s.parentNode,s))},i(_){o||(transition_in(h,_),transition_in(f),transition_in(t),o=!0)},o(_){transition_out(h,_),transition_out(f),transition_out(t),o=!1},d(_){_&&(detach(r),detach(a),detach(s)),h&&h.d(_),m[v].d(),w[i].d(_),e=!1,c()}}}function instance$E(l,r,g){let p,v,{$$slots:f={},$$scope:a}=r,{open:i=!1}=r,{activeClass:t=void 0}=r,{inactiveClass:s=void 0}=r,{defaultClass:o="flex items-center justify-between w-full font-medium text-left group-first:rounded-t-xl border-gray-200 dark:border-gray-700"}=r,{transitionType:e="slide"}=r,{transitionParams:c={}}=r,{paddingFlush:u="py-5"}=r,{paddingDefault:h="p-5"}=r,{textFlushOpen:b="text-gray-900 dark:text-white"}=r,{textFlushDefault:m="text-gray-500 dark:text-gray-400"}=r,{borderClass:k="border-l border-r group-first:border-t"}=r,{borderOpenClass:d="border-l border-r"}=r,{borderBottomClass:w="border-b"}=r,{borderSharedClass:y="border-gray-200 dark:border-gray-700"}=r,{classActive:_=void 0}=r,{classInactive:x=void 0}=r,E=twMerge(t,_),S=twMerge(s,x);const C=(U,Z)=>{switch(e){case"blur":return blur(U,Z);case"fly":return fly(U,Z);case"fade":return fade(U,Z);default:return slide(U,Z)}},T=getContext("ctx")??{},R={},W=T.selected??writable();component_subscribe(l,W,U=>g(23,v=U));let j=i;i=!1,onMount(()=>(j&&set_store_value(W,v=R,v),W.subscribe(U=>g(0,i=U===R))));const L=U=>W.set(i?{}:R);let Q;return l.$$set=U=>{g(29,r=assign(assign({},r),exclude_internal_props(U))),"open"in U&&g(0,i=U.open),"activeClass"in U&&g(7,t=U.activeClass),"inactiveClass"in U&&g(8,s=U.inactiveClass),"defaultClass"in U&&g(9,o=U.defaultClass),"transitionType"in U&&g(10,e=U.transitionType),"transitionParams"in U&&g(1,c=U.transitionParams),"paddingFlush"in U&&g(11,u=U.paddingFlush),"paddingDefault"in U&&g(12,h=U.paddingDefault),"textFlushOpen"in U&&g(13,b=U.textFlushOpen),"textFlushDefault"in U&&g(14,m=U.textFlushDefault),"borderClass"in U&&g(15,k=U.borderClass),"borderOpenClass"in U&&g(16,d=U.borderOpenClass),"borderBottomClass"in U&&g(17,w=U.borderBottomClass),"borderSharedClass"in U&&g(18,y=U.borderSharedClass),"classActive"in U&&g(19,_=U.classActive),"classInactive"in U&&g(20,x=U.classInactive),"$$scope"in U&&g(21,a=U.$$scope)},l.$$.update=()=>{g(2,Q=twMerge([o,T.flush||k,w,y,T.flush?u:h,i&&(T.flush?b:E||T.activeClass),!i&&(T.flush?m:S||T.inactiveClass),r.class])),l.$$.dirty&464896&&g(3,p=twMerge([T.flush?u:h,T.flush?"":d,w,y]))},r=exclude_internal_props(r),[i,c,Q,p,C,W,L,t,s,o,e,u,h,b,m,k,d,w,y,_,x,a,f]}class AccordionItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$E,create_fragment$E,safe_not_equal,{open:0,activeClass:7,inactiveClass:8,defaultClass:9,transitionType:10,transitionParams:1,paddingFlush:11,paddingDefault:12,textFlushOpen:13,textFlushDefault:14,borderClass:15,borderOpenClass:16,borderBottomClass:17,borderSharedClass:18,classActive:19,classInactive:20})}}const get_default_slot_changes_1$2=l=>({svgSize:l&4}),get_default_slot_context_1$2=l=>({svgSize:l[5][l[2]]}),get_default_slot_changes$5=l=>({svgSize:l&4}),get_default_slot_context$5=l=>({svgSize:l[5][l[2]]});function create_else_block$d(l){let r,g,p,v,f,a,i=l[0]&&create_if_block_2$5(l);const t=l[9].default,s=create_slot(t,l,l[8],get_default_slot_context_1$2);let o=[{type:"button"},l[6],{class:l[4]},{"aria-label":p=l[1]??l[0]}],e={};for(let c=0;c{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$D(l,r,g){const p=["color","name","ariaLabel","size","href"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=getContext("background");let{color:t="default"}=r,{name:s=void 0}=r,{ariaLabel:o=void 0}=r,{size:e="md"}=r,{href:c=void 0}=r;const u={dark:"text-gray-500 hover:text-gray-900 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600",gray:"text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-gray-300",red:"text-red-500 focus:ring-red-400 hover:bg-red-200 dark:hover:bg-red-800 dark:hover:text-red-300",yellow:"text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-yellow-800 dark:hover:text-yellow-300",green:"text-green-500 focus:ring-green-400 hover:bg-green-200 dark:hover:bg-green-800 dark:hover:text-green-300",indigo:"text-indigo-500 focus:ring-indigo-400 hover:bg-indigo-200 dark:hover:bg-indigo-800 dark:hover:text-indigo-300",purple:"text-purple-500 focus:ring-purple-400 hover:bg-purple-200 dark:hover:bg-purple-800 dark:hover:text-purple-300",pink:"text-pink-500 focus:ring-pink-400 hover:bg-pink-200 dark:hover:bg-pink-800 dark:hover:text-pink-300",blue:"text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800 dark:hover:text-blue-300",primary:"text-primary-500 focus:ring-primary-400 hover:bg-primary-200 dark:hover:bg-primary-800 dark:hover:text-primary-300",default:"focus:ring-gray-400"},h={xs:"m-0.5 rounded-sm focus:ring-1 p-0.5",sm:"m-0.5 rounded focus:ring-1 p-0.5",md:"m-0.5 rounded-lg focus:ring-2 p-1.5",lg:"m-0.5 rounded-lg focus:ring-2 p-2.5"};let b;const m={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-5 h-5"};function k(d){bubble.call(this,l,d)}return l.$$set=d=>{g(14,r=assign(assign({},r),exclude_internal_props(d))),g(6,v=compute_rest_props(r,p)),"color"in d&&g(7,t=d.color),"name"in d&&g(0,s=d.name),"ariaLabel"in d&&g(1,o=d.ariaLabel),"size"in d&&g(2,e=d.size),"href"in d&&g(3,c=d.href),"$$scope"in d&&g(8,a=d.$$scope)},l.$$.update=()=>{g(4,b=twMerge("focus:outline-none whitespace-normal",h[e],u[t],t==="default"&&(i?"hover:bg-gray-100 dark:hover:bg-gray-600":"hover:bg-gray-100 dark:hover:bg-gray-700"),r.class))},r=exclude_internal_props(r),[s,o,e,c,b,m,v,t,a,f,k]}class ToolbarButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$D,create_fragment$D,safe_not_equal,{color:7,name:0,ariaLabel:1,size:2,href:3})}}function create_default_slot$m(l){let r,g,p;return{c(){r=svg_element("svg"),g=svg_element("path"),attr(g,"fill-rule","evenodd"),attr(g,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),attr(g,"clip-rule","evenodd"),attr(r,"class",p=l[4]),attr(r,"fill","currentColor"),attr(r,"viewBox","0 0 20 20"),attr(r,"xmlns","http://www.w3.org/2000/svg")},m(v,f){insert(v,r,f),append(r,g)},p(v,f){f&16&&p!==(p=v[4])&&attr(r,"class",p)},d(v){v&&detach(r)}}}function create_fragment$C(l){let r,g;const p=[{name:l[0]},l[1],{class:twMerge("ml-auto",l[2].class)}];let v={$$slots:{default:[create_default_slot$m,({svgSize:f})=>({4:f}),({svgSize:f})=>f?16:0]},$$scope:{ctx:l}};for(let f=0;f{g(2,r=assign(assign({},r),exclude_internal_props(i))),g(1,v=compute_rest_props(r,p)),"name"in i&&g(0,f=i.name)},r=exclude_internal_props(r),[f,v,r,a]}class CloseButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$C,create_fragment$C,safe_not_equal,{name:0})}}function create_dynamic_element$2(l){let r,g,p,v,f,a;const i=l[10].default,t=create_slot(i,l,l[9],null);let s=[{type:g=l[0]?void 0:l[1]},{href:l[0]},{role:p=l[0]?"link":"button"},l[3],{class:l[2]}],o={};for(let e=0;es||u==="alternative"||u==="light";let _;function x(Q){bubble.call(this,l,Q)}function E(Q){bubble.call(this,l,Q)}function S(Q){bubble.call(this,l,Q)}function C(Q){bubble.call(this,l,Q)}function T(Q){bubble.call(this,l,Q)}function R(Q){bubble.call(this,l,Q)}function W(Q){bubble.call(this,l,Q)}function j(Q){bubble.call(this,l,Q)}function L(Q){bubble.call(this,l,Q)}return l.$$set=Q=>{g(27,r=assign(assign({},r),exclude_internal_props(Q))),g(3,v=compute_rest_props(r,p)),"pill"in Q&&g(4,t=Q.pill),"outline"in Q&&g(5,s=Q.outline),"size"in Q&&g(6,o=Q.size),"href"in Q&&g(0,e=Q.href),"type"in Q&&g(1,c=Q.type),"color"in Q&&g(7,u=Q.color),"shadow"in Q&&g(8,h=Q.shadow),"$$scope"in Q&&g(9,a=Q.$$scope)},l.$$.update=()=>{g(2,_=twMerge("text-center font-medium",i?"focus:ring-2":"focus:ring-4",i&&"focus:z-10",i||"focus:outline-none","inline-flex items-center justify-center "+w[o],s?d[u]:b[u],u==="alternative"&&(i?"dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600":"dark:bg-transparent dark:border-gray-600 dark:hover:border-gray-700"),s&&u==="dark"&&(i?"dark:text-white dark:border-white":"dark:text-gray-400 dark:border-gray-700"),m[u],y()&&i&&"border-l-0 first:border-l",i?t&&"first:rounded-l-full last:rounded-r-full"||"first:rounded-l-lg last:rounded-r-lg":t&&"rounded-full"||"rounded-lg",h&&"shadow-lg",h&&k[u],r.disabled&&"cursor-not-allowed opacity-50",r.class))},r=exclude_internal_props(r),[e,c,_,v,t,s,o,u,h,a,f,x,E,S,C,T,R,W,j,L]}class Button extends SvelteComponent{constructor(r){super(),init(this,r,instance$B,create_fragment$B,safe_not_equal,{pill:4,outline:5,size:6,href:0,type:1,color:7,shadow:8})}}function create_else_block$c(l){let r;const g=l[10].default,p=create_slot(g,l,l[16],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&65536)&&update_slot_base(p,g,v,v[16],r?get_slot_changes(g,v[16],f,null):get_all_dirty_from_scope(v[16]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_if_block$k(l){let r,g,p,v,f;const a=l[10].default,i=create_slot(a,l,l[16],null);return{c(){r=element("img"),p=space(),v=element("div"),i&&i.c(),attr(r,"class",l[4]),src_url_equal(r.src,g=l[1])||attr(r,"src",g),attr(r,"alt",""),attr(v,"class",l[2])},m(t,s){insert(t,r,s),insert(t,p,s),insert(t,v,s),i&&i.m(v,null),f=!0},p(t,s){(!f||s&16)&&attr(r,"class",t[4]),(!f||s&2&&!src_url_equal(r.src,g=t[1]))&&attr(r,"src",g),i&&i.p&&(!f||s&65536)&&update_slot_base(i,a,t,t[16],f?get_slot_changes(a,t[16],s,null):get_all_dirty_from_scope(t[16]),null),(!f||s&4)&&attr(v,"class",t[2])},i(t){f||(transition_in(i,t),f=!0)},o(t){transition_out(i,t),f=!1},d(t){t&&(detach(r),detach(p),detach(v)),i&&i.d(t)}}}function create_default_slot$l(l){let r,g,p,v;const f=[create_if_block$k,create_else_block$c],a=[];function i(t,s){return t[1]?0:1}return r=i(l),g=a[r]=f[r](l),{c(){g.c(),p=empty()},m(t,s){a[r].m(t,s),insert(t,p,s),v=!0},p(t,s){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function create_fragment$A(l){let r,g;const p=[{tag:l[0]?"a":"div"},{rounded:!0},{shadow:!0},{border:!0},{href:l[0]},l[5],{class:l[3]}];let v={$$slots:{default:[create_default_slot$l]},$$scope:{ctx:l}};for(let f=0;f{g(20,r=assign(assign({},r),exclude_internal_props(E))),g(5,f=compute_rest_props(r,v)),"href"in E&&g(0,t=E.href),"horizontal"in E&&g(6,s=E.horizontal),"reverse"in E&&g(7,o=E.reverse),"img"in E&&g(1,e=E.img),"padding"in E&&g(8,c=E.padding),"size"in E&&g(9,u=E.size),"$$scope"in E&&g(16,i=E.$$scope)},l.$$.update=()=>{l.$$.dirty&256&&g(2,p=h[c]),g(3,m=twMerge("flex",b[u],o?"flex-col-reverse":"flex-col",s&&(o?"md:flex-row-reverse md:max-w-xl":"md:flex-row md:max-w-xl"),t&&"hover:bg-gray-100 dark:hover:bg-gray-700",!e&&p,r.class)),l.$$.dirty&192&&g(4,k=twMerge(o?"rounded-b-lg":"rounded-t-lg",s&&"object-cover w-full h-96 md:h-auto md:w-48 md:rounded-none",s&&(o?"md:rounded-r-lg":"md:rounded-l-lg")))},r=exclude_internal_props(r),[t,e,p,m,k,f,s,o,c,u,a,d,w,y,_,x,i]}class Card extends SvelteComponent{constructor(r){super(),init(this,r,instance$A,create_fragment$A,safe_not_equal,{href:0,horizontal:6,reverse:7,img:1,padding:8,size:9})}}function create_else_block$b(l){let r;const g=l[5].default,p=create_slot(g,l,l[4],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&16)&&update_slot_base(p,g,v,v[4],r?get_slot_changes(g,v[4],f,null):get_all_dirty_from_scope(v[4]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_if_block$j(l){let r=l[0],g,p,v=l[0]&&create_dynamic_element$1(l);return{c(){v&&v.c(),g=empty()},m(f,a){v&&v.m(f,a),insert(f,g,a),p=!0},p(f,a){f[0]?r?safe_not_equal(r,f[0])?(v.d(1),v=create_dynamic_element$1(f),r=f[0],v.c(),v.m(g.parentNode,g)):v.p(f,a):(v=create_dynamic_element$1(f),r=f[0],v.c(),v.m(g.parentNode,g)):r&&(v.d(1),v=null,r=f[0])},i(f){p||(transition_in(v,f),p=!0)},o(f){transition_out(v,f),p=!1},d(f){f&&detach(g),v&&v.d(f)}}}function create_dynamic_element$1(l){let r,g,p,v;const f=l[5].default,a=create_slot(f,l,l[4],null);let i=[l[3]],t={};for(let s=0;s{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$z(l,r,g){const p=["tag","show","use"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r,{tag:i="div"}=r,{show:t}=r,{use:s=()=>{}}=r;return l.$$set=o=>{r=assign(assign({},r),exclude_internal_props(o)),g(3,v=compute_rest_props(r,p)),"tag"in o&&g(0,i=o.tag),"show"in o&&g(1,t=o.show),"use"in o&&g(2,s=o.use),"$$scope"in o&&g(4,a=o.$$scope)},[i,t,s,v,a,f]}class Wrapper extends SvelteComponent{constructor(r){super(),init(this,r,instance$z,create_fragment$z,safe_not_equal,{tag:0,show:1,use:2})}}function create_else_block$a(l){let r;const g=l[7].default,p=create_slot(g,l,l[6],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&64)&&update_slot_base(p,g,v,v[6],r?get_slot_changes(g,v[6],f,null):get_all_dirty_from_scope(v[6]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_if_block$i(l){let r,g;const p=l[7].default,v=create_slot(p,l,l[6],null);let f=[l[3],{class:l[2]}],a={};for(let i=0;i{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$y(l,r,g){let p;const v=["color","defaultClass","show"];let f=compute_rest_props(r,v),{$$slots:a={},$$scope:i}=r,{color:t="gray"}=r,{defaultClass:s="text-sm font-medium block"}=r,{show:o=!0}=r,e;const c={gray:"text-gray-900 dark:text-gray-300",green:"text-green-700 dark:text-green-500",red:"text-red-700 dark:text-red-500",disabled:"text-gray-400 dark:text-gray-500"};function u(h){binding_callbacks[h?"unshift":"push"](()=>{e=h,g(1,e)})}return l.$$set=h=>{g(10,r=assign(assign({},r),exclude_internal_props(h))),g(3,f=compute_rest_props(r,v)),"color"in h&&g(4,t=h.color),"defaultClass"in h&&g(5,s=h.defaultClass),"show"in h&&g(0,o=h.show),"$$scope"in h&&g(6,i=h.$$scope)},l.$$.update=()=>{if(l.$$.dirty&18){const h=e==null?void 0:e.control;g(4,t=h!=null&&h.disabled?"disabled":t)}g(2,p=twMerge(s,c[t],r.class))},r=exclude_internal_props(r),[o,e,p,f,t,s,i,a,u]}class Label extends SvelteComponent{constructor(r){super(),init(this,r,instance$y,create_fragment$y,safe_not_equal,{color:4,defaultClass:5,show:0})}}const colorClasses={primary:"text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600",secondary:"text-secondary-600 focus:ring-secondary-500 dark:focus:ring-secondary-600",red:"text-red-600 focus:ring-red-500 dark:focus:ring-red-600",green:"text-green-600 focus:ring-green-500 dark:focus:ring-green-600",purple:"text-purple-600 focus:ring-purple-500 dark:focus:ring-purple-600",teal:"text-teal-600 focus:ring-teal-500 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-500 dark:focus:ring-yellow-600",orange:"text-orange-500 focus:ring-orange-500 dark:focus:ring-orange-600",blue:"text-blue-600 focus:ring-blue-500 dark:focus:ring-blue-600"},labelClass=(l,r)=>twMerge(l?"inline-flex":"flex","items-center",r);let spacing="mr-2";const inputClass=(l,r,g,p,v)=>twMerge("w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2",spacing,p?"dark:bg-gray-600 dark:border-gray-500":"dark:bg-gray-700 dark:border-gray-600",l&&"sr-only peer",g&&"rounded",colorClasses[r],v);function create_default_slot$k(l){let r,g,p,v,f,a,i,t=[{type:"checkbox"},{__value:l[5]},l[12],{class:g=twMerge(l[6],inputClass(l[3],l[2],!0,l[7],l[11].default||l[10].class))}],s={};for(let c=0;c=0),u?L<0&&(e.push(c),g(0,e)):L>=0&&(e.splice(L,1),g(0,e))}function d(L){bubble.call(this,l,L)}function w(L){bubble.call(this,l,L)}function y(L){bubble.call(this,l,L)}function _(L){bubble.call(this,l,L)}function x(L){bubble.call(this,l,L)}function E(L){bubble.call(this,l,L)}function S(L){bubble.call(this,l,L)}function C(L){bubble.call(this,l,L)}function T(L){bubble.call(this,l,L)}function R(L){bubble.call(this,l,L)}function W(L){bubble.call(this,l,L)}function j(){u=this.checked,g(1,u)}return l.$$set=L=>{g(10,r=assign(assign({},r),exclude_internal_props(L))),g(12,v=compute_rest_props(r,p)),"color"in L&&g(2,t=L.color),"custom"in L&&g(3,s=L.custom),"inline"in L&&g(4,o=L.inline),"group"in L&&g(0,e=L.group),"value"in L&&g(5,c=L.value),"checked"in L&&g(1,u=L.checked),"spacing"in L&&g(6,h=L.spacing),"$$scope"in L&&g(26,a=L.$$scope)},r=exclude_internal_props(r),[e,u,t,s,o,c,h,b,m,k,r,i,v,f,d,w,y,_,x,E,S,C,T,R,W,j,a]}class Checkbox extends SvelteComponent{constructor(r){super(),init(this,r,instance$x,create_fragment$x,safe_not_equal,{color:2,custom:3,inline:4,group:0,value:5,checked:1,spacing:6})}}const get_right_slot_changes=l=>({}),get_right_slot_context=l=>({}),get_default_slot_changes$4=l=>({props:l[0]&72}),get_default_slot_context$4=l=>({props:{...l[6],class:l[3]}}),get_left_slot_changes=l=>({}),get_left_slot_context=l=>({});function create_if_block_1$8(l){let r,g,p;const v=l[11].left,f=create_slot(v,l,l[26],get_left_slot_context);return{c(){r=element("div"),f&&f.c(),attr(r,"class",g=twMerge(l[2],l[4].classLeft)+" left-0 pl-2.5 pointer-events-none")},m(a,i){insert(a,r,i),f&&f.m(r,null),p=!0},p(a,i){f&&f.p&&(!p||i[0]&67108864)&&update_slot_base(f,v,a,a[26],p?get_slot_changes(v,a[26],i,get_left_slot_changes):get_all_dirty_from_scope(a[26]),get_left_slot_context),(!p||i[0]&20&&g!==(g=twMerge(a[2],a[4].classLeft)+" left-0 pl-2.5 pointer-events-none"))&&attr(r,"class",g)},i(a){p||(transition_in(f,a),p=!0)},o(a){transition_out(f,a),p=!1},d(a){a&&detach(r),f&&f.d(a)}}}function fallback_block$3(l){let r,g,p,v=[l[6],{type:l[1]},{class:l[3]}],f={};for(let a=0;a{f=null}),check_outros()),i?i.p&&(!v||e[0]&67108936)&&update_slot_base(i,a,o,o[26],v?get_slot_changes(a,o[26],e,get_default_slot_changes$4):get_all_dirty_from_scope(o[26]),get_default_slot_context$4):t&&t.p&&(!v||e[0]&75)&&t.p(o,v?e:[-1,-1]),o[5].right?s?(s.p(o,e),e[0]&32&&transition_in(s,1)):(s=create_if_block$h(o),s.c(),transition_in(s,1),s.m(p.parentNode,p)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros())},i(o){v||(transition_in(f),transition_in(t,o),transition_in(s),v=!0)},o(o){transition_out(f),transition_out(t,o),transition_out(s),v=!1},d(o){o&&(detach(r),detach(g),detach(p)),f&&f.d(o),t&&t.d(o),s&&s.d(o)}}}function create_fragment$w(l){let r,g;return r=new Wrapper({props:{class:"relative w-full",show:l[5].left||l[5].right,$$slots:{default:[create_default_slot$j]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v[0]&32&&(f.show=p[5].left||p[5].right),v[0]&67108991&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function clampSize(l){return l&&l==="xs"?"sm":l==="xl"?"lg":l}function instance$w(l,r,g){let p;const v=["type","value","size","defaultClass","color","floatClass"];let f=compute_rest_props(r,v),{$$slots:a={},$$scope:i}=r;const t=compute_slots(a);let{type:s="text"}=r,{value:o=void 0}=r,{size:e=void 0}=r,{defaultClass:c="block w-full disabled:cursor-not-allowed disabled:opacity-50"}=r,{color:u="base"}=r,{floatClass:h="flex absolute inset-y-0 items-center text-gray-500 dark:text-gray-400"}=r;const b={base:"border-gray-300 dark:border-gray-600",tinted:"border-gray-300 dark:border-gray-500",green:"border-green-500 dark:border-green-400",red:"border-red-500 dark:border-red-400"},m={base:"focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500",green:"focus:ring-green-500 focus:border-green-500 dark:focus:border-green-500 dark:focus:ring-green-500",red:"focus:ring-red-500 focus:border-red-500 dark:focus:ring-red-500 dark:focus:border-red-500"},k={base:"bg-gray-50 text-gray-900 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400",tinted:"bg-gray-50 text-gray-900 dark:bg-gray-600 dark:text-white dark:placeholder-gray-400",green:"bg-green-50 text-green-900 placeholder-green-700 dark:text-green-400 dark:placeholder-green-500 dark:bg-gray-700",red:"bg-red-50 text-red-900 placeholder-red-700 dark:text-red-500 dark:placeholder-red-500 dark:bg-gray-700"};let d=getContext("background"),w=getContext("group");const y={sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},_={sm:"pl-9",md:"pl-10",lg:"pl-11"},x={sm:"pr-9",md:"pr-10",lg:"pr-11"},E={sm:"p-2",md:"p-2.5",lg:"p-3"};let S;function C(O){bubble.call(this,l,O)}function T(O){bubble.call(this,l,O)}function R(O){bubble.call(this,l,O)}function W(O){bubble.call(this,l,O)}function j(O){bubble.call(this,l,O)}function L(O){bubble.call(this,l,O)}function Q(O){bubble.call(this,l,O)}function U(O){bubble.call(this,l,O)}function Z(O){bubble.call(this,l,O)}function se(O){bubble.call(this,l,O)}function te(O){bubble.call(this,l,O)}function $(O){bubble.call(this,l,O)}function P(O){bubble.call(this,l,O)}function A(){o=this.value,g(0,o)}return l.$$set=O=>{g(4,r=assign(assign({},r),exclude_internal_props(O))),g(6,f=compute_rest_props(r,v)),"type"in O&&g(1,s=O.type),"value"in O&&g(0,o=O.value),"size"in O&&g(7,e=O.size),"defaultClass"in O&&g(8,c=O.defaultClass),"color"in O&&g(9,u=O.color),"floatClass"in O&&g(2,h=O.floatClass),"$$scope"in O&&g(26,i=O.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&128&&g(10,p=e||clampSize(w==null?void 0:w.size)||"md");{const O=u==="base"&&d?"tinted":u;g(3,S=twMerge([c,t.left&&_[p]||t.right&&x[p]||E[p],m[u],k[O],b[O],y[p],w||"rounded-lg",w&&"first:rounded-l-lg last:rounded-r-lg",w&&"border-l-0 first:border-l last:border-r",r.class]))}},r=exclude_internal_props(r),[o,s,h,S,r,t,f,e,c,u,p,a,C,T,R,W,j,L,Q,U,Z,se,te,$,P,A,i]}class Input extends SvelteComponent{constructor(r){super(),init(this,r,instance$w,create_fragment$w,safe_not_equal,{type:1,value:0,size:7,defaultClass:8,color:9,floatClass:2},null,[-1,-1])}}let n=Date.now();function generateId(){return(++n).toString(36)}function create_left_slot(l){let r,g,p;return{c(){r=svg_element("svg"),g=svg_element("path"),attr(g,"fill-rule","evenodd"),attr(g,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),attr(g,"clip-rule","evenodd"),attr(r,"slot","left"),attr(r,"class",p=l[3][l[1]]),attr(r,"fill","currentColor"),attr(r,"viewBox","0 0 20 20"),attr(r,"xmlns","http://www.w3.org/2000/svg")},m(v,f){insert(v,r,f),append(r,g)},p(v,f){f&2&&p!==(p=v[3][v[1]])&&attr(r,"class",p)},d(v){v&&detach(r)}}}function create_if_block$g(l){let r,g;const p=l[7].default,v=create_slot(p,l,l[21],null);return{c(){r=element("div"),v&&v.c(),attr(r,"class","flex absolute inset-y-0 right-0 items-center text-gray-500 dark:text-gray-400")},m(f,a){insert(f,r,a),v&&v.m(r,null),g=!0},p(f,a){v&&v.p&&(!g||a&2097152)&&update_slot_base(v,p,f,f[21],g?get_slot_changes(p,f[21],a,null):get_all_dirty_from_scope(f[21]),null)},i(f){g||(transition_in(v,f),g=!0)},o(f){transition_out(v,f),g=!1},d(f){f&&detach(r),v&&v.d(f)}}}function create_default_slot$i(l){let r,g,p,v,f;const a=[{type:"search"},{placeholder:l[2]},{size:l[1]},l[5],{class:l[6].class}];function i(o){l[8](o)}let t={$$slots:{left:[create_left_slot]},$$scope:{ctx:l}};for(let o=0;obind(r,"value",i)),r.$on("blur",l[9]),r.$on("change",l[10]),r.$on("input",l[11]),r.$on("click",l[12]),r.$on("focus",l[13]),r.$on("keydown",l[14]),r.$on("keypress",l[15]),r.$on("keyup",l[16]),r.$on("mouseenter",l[17]),r.$on("mouseleave",l[18]),r.$on("mouseover",l[19]),r.$on("paste",l[20]);let s=l[4].default&&create_if_block$g(l);return{c(){create_component(r.$$.fragment),p=space(),s&&s.c(),v=empty()},m(o,e){mount_component(r,o,e),insert(o,p,e),s&&s.m(o,e),insert(o,v,e),f=!0},p(o,e){const c=e&102?get_spread_update(a,[a[0],e&4&&{placeholder:o[2]},e&2&&{size:o[1]},e&32&&get_spread_object(o[5]),e&64&&{class:o[6].class}]):{};e&2097154&&(c.$$scope={dirty:e,ctx:o}),!g&&e&1&&(g=!0,c.value=o[0],add_flush_callback(()=>g=!1)),r.$set(c),o[4].default?s?(s.p(o,e),e&16&&transition_in(s,1)):(s=create_if_block$g(o),s.c(),transition_in(s,1),s.m(v.parentNode,v)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros())},i(o){f||(transition_in(r.$$.fragment,o),transition_in(s),f=!0)},o(o){transition_out(r.$$.fragment,o),transition_out(s),f=!1},d(o){o&&(detach(p),detach(v)),destroy_component(r,o),s&&s.d(o)}}}function create_fragment$v(l){let r,g;return r=new Wrapper({props:{class:"relative w-full",show:l[4].default,$$slots:{default:[create_default_slot$i]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,[v]){const f={};v&16&&(f.show=p[4].default),v&2097271&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function instance$v(l,r,g){const p=["size","placeholder","value"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{size:t="lg"}=r,{placeholder:s="Search"}=r,{value:o=void 0}=r;const e={sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-6 h-6"};function c(C){o=C,g(0,o)}function u(C){bubble.call(this,l,C)}function h(C){bubble.call(this,l,C)}function b(C){bubble.call(this,l,C)}function m(C){bubble.call(this,l,C)}function k(C){bubble.call(this,l,C)}function d(C){bubble.call(this,l,C)}function w(C){bubble.call(this,l,C)}function y(C){bubble.call(this,l,C)}function _(C){bubble.call(this,l,C)}function x(C){bubble.call(this,l,C)}function E(C){bubble.call(this,l,C)}function S(C){bubble.call(this,l,C)}return l.$$set=C=>{g(6,r=assign(assign({},r),exclude_internal_props(C))),g(5,v=compute_rest_props(r,p)),"size"in C&&g(1,t=C.size),"placeholder"in C&&g(2,s=C.placeholder),"value"in C&&g(0,o=C.value),"$$scope"in C&&g(21,a=C.$$scope)},r=exclude_internal_props(r),[o,t,s,e,i,v,r,f,c,u,h,b,m,k,d,w,y,_,x,E,S,a]}class Search extends SvelteComponent{constructor(r){super(),init(this,r,instance$v,create_fragment$v,safe_not_equal,{size:1,placeholder:2,value:0})}}function get_each_context$7(l,r,g){const p=l.slice();return p[0]=r[g].value,p[17]=r[g].name,p}function create_if_block$f(l){let r,g;return{c(){r=element("option"),g=text(l[2]),r.disabled=!0,r.selected=!0,r.__value="",set_input_value(r,r.__value)},m(p,v){insert(p,r,v),append(r,g)},p(p,v){v&4&&set_data(g,p[2])},d(p){p&&detach(r)}}}function create_else_block$9(l){let r;const g=l[10].default,p=create_slot(g,l,l[9],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&512)&&update_slot_base(p,g,v,v[9],r?get_slot_changes(g,v[9],f,null):get_all_dirty_from_scope(v[9]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_each_block$7(l){let r,g=l[17]+"",p,v;return{c(){r=element("option"),p=text(g),r.__value=v=l[0],set_input_value(r,r.__value)},m(f,a){insert(f,r,a),append(r,p)},p(f,a){a&2&&g!==(g=f[17]+"")&&set_data(p,g),a&2&&v!==(v=f[0])&&(r.__value=v,set_input_value(r,r.__value))},d(f){f&&detach(r)}}}function create_fragment$u(l){let r,g,p,v,f=l[2]&&create_if_block$f(l),a=ensure_array_like(l[1]),i=[];for(let e=0;el[14].call(r))},m(e,c){insert(e,r,c),f&&f.m(r,null),append(r,g);for(let u=0;u{t=null}),check_outros()):(t=create_else_block$9(e),t.c(),transition_in(t,1),t.m(r,null))}set_attributes(r,o=get_spread_update(s,[c&16&&e[4],{class:e[3]}])),c&24&&"value"in o&&(o.multiple?select_options:select_option)(r,o.value),c&3&&select_option(r,e[0])},i:noop,o:noop,d(e){e&&detach(r),f&&f.d(),destroy_each(i,e),t&&t.d(),p=!1,run_all(v)}}}const common$1="block w-full";function instance$u(l,r,g){const p=["items","value","placeholder","underline","size","defaultClass","underlineClass"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r,{items:i=[]}=r,{value:t=void 0}=r,{placeholder:s="Choose option ..."}=r,{underline:o=!1}=r,{size:e="md"}=r,{defaultClass:c="text-gray-900 bg-gray-50 border border-gray-300 rounded-lg focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"}=r,{underlineClass:u="text-gray-500 bg-transparent border-0 border-b-2 border-gray-200 appearance-none dark:text-gray-400 dark:border-gray-700 focus:outline-none focus:ring-0 focus:border-gray-200 peer"}=r;const h={sm:"text-sm p-2",md:"text-sm p-2.5",lg:"text-base py-3 px-4"};let b;function m(y){bubble.call(this,l,y)}function k(y){bubble.call(this,l,y)}function d(y){bubble.call(this,l,y)}function w(){t=select_value(this),g(0,t),g(1,i)}return l.$$set=y=>{g(16,r=assign(assign({},r),exclude_internal_props(y))),g(4,v=compute_rest_props(r,p)),"items"in y&&g(1,i=y.items),"value"in y&&g(0,t=y.value),"placeholder"in y&&g(2,s=y.placeholder),"underline"in y&&g(5,o=y.underline),"size"in y&&g(6,e=y.size),"defaultClass"in y&&g(7,c=y.defaultClass),"underlineClass"in y&&g(8,u=y.underlineClass),"$$scope"in y&&g(9,a=y.$$scope)},l.$$.update=()=>{g(3,b=twMerge(common$1,o?u:c,h[e],o&&"!px-0",r.class))},r=exclude_internal_props(r),[t,i,s,b,v,o,e,c,u,a,f,m,k,d,w]}class Select extends SvelteComponent{constructor(r){super(),init(this,r,instance$u,create_fragment$u,safe_not_equal,{items:1,value:0,placeholder:2,underline:5,size:6,defaultClass:7,underlineClass:8})}}function create_default_slot$h(l){let r,g,p;const v=l[8].default,f=create_slot(v,l,l[13],null);return{c(){r=element("span"),g=space(),f&&f.c(),attr(r,"class",l[3])},m(a,i){insert(a,r,i),insert(a,g,i),f&&f.m(a,i),p=!0},p(a,i){(!p||i&8)&&attr(r,"class",a[3]),f&&f.p&&(!p||i&8192)&&update_slot_base(f,v,a,a[13],p?get_slot_changes(v,a[13],i,null):get_all_dirty_from_scope(a[13]),null)},i(a){p||(transition_in(f,a),p=!0)},o(a){transition_out(f,a),p=!1},d(a){a&&(detach(r),detach(g)),f&&f.d(a)}}}function create_fragment$t(l){let r,g,p,v;const f=[{custom:!0},l[5],{class:l[4].class},{value:l[2]}];function a(s){l[9](s)}function i(s){l[10](s)}let t={$$slots:{default:[create_default_slot$h]},$$scope:{ctx:l}};for(let s=0;sbind(r,"checked",a)),binding_callbacks.push(()=>bind(r,"group",i)),r.$on("click",l[11]),r.$on("change",l[12]),{c(){create_component(r.$$.fragment)},m(s,o){mount_component(r,s,o),v=!0},p(s,[o]){const e=o&52?get_spread_update(f,[f[0],o&32&&get_spread_object(s[5]),o&16&&{class:s[4].class},o&4&&{value:s[2]}]):{};o&8200&&(e.$$scope={dirty:o,ctx:s}),!g&&o&2&&(g=!0,e.checked=s[1],add_flush_callback(()=>g=!1)),!p&&o&1&&(p=!0,e.group=s[0],add_flush_callback(()=>p=!1)),r.$set(e)},i(s){v||(transition_in(r.$$.fragment,s),v=!0)},o(s){transition_out(r.$$.fragment,s),v=!1},d(s){destroy_component(r,s)}}}const common="mr-3 shrink-0 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all";function instance$t(l,r,g){const p=["size","group","value","checked","customSize"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r,{size:i="default"}=r,{group:t=[]}=r,{value:s=""}=r,{checked:o=void 0}=r,{customSize:e=""}=r,c=getContext("background");const u={primary:"peer-focus:ring-primary-300 dark:peer-focus:ring-primary-800 peer-checked:bg-primary-600",secondary:"peer-focus:ring-secondary-300 dark:peer-focus:ring-secondary-800 peer-checked:bg-secondary-600",red:"peer-focus:ring-red-300 dark:peer-focus:ring-red-800 peer-checked:bg-red-600",green:"peer-focus:ring-green-300 dark:peer-focus:ring-green-800 peer-checked:bg-green-600",purple:"peer-focus:ring-purple-300 dark:peer-focus:ring-purple-800 peer-checked:bg-purple-600",yellow:"peer-focus:ring-yellow-300 dark:peer-focus:ring-yellow-800 peer-checked:bg-yellow-400",teal:"peer-focus:ring-teal-300 dark:peer-focus:ring-teal-800 peer-checked:bg-teal-600",orange:"peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:bg-orange-500",blue:"peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 peer-checked:bg-blue-600"},h={small:"w-9 h-5 after:top-[2px] after:left-[2px] after:h-4 after:w-4",default:"w-11 h-6 after:top-0.5 after:left-[2px] after:h-5 after:w-5",large:"w-14 h-7 after:top-0.5 after:left-[4px] after:h-6 after:w-6",custom:e};let b;function m(y){o=y,g(1,o)}function k(y){t=y,g(0,t)}function d(y){bubble.call(this,l,y)}function w(y){bubble.call(this,l,y)}return l.$$set=y=>{g(4,r=assign(assign({},r),exclude_internal_props(y))),g(5,v=compute_rest_props(r,p)),"size"in y&&g(6,i=y.size),"group"in y&&g(0,t=y.group),"value"in y&&g(2,s=y.value),"checked"in y&&g(1,o=y.checked),"customSize"in y&&g(7,e=y.customSize),"$$scope"in y&&g(13,a=y.$$scope)},l.$$.update=()=>{g(3,b=twMerge(common,c?"dark:bg-gray-600 dark:border-gray-500":"dark:bg-gray-700 dark:border-gray-600",u[v.color??"primary"],h[i],"relative",r.classDiv))},r=exclude_internal_props(r),[t,o,s,b,r,v,i,e,f,m,k,d,w,a]}class Toggle extends SvelteComponent{constructor(r){super(),init(this,r,instance$t,create_fragment$t,safe_not_equal,{size:6,group:0,value:2,checked:1,customSize:7})}}const get_default_slot_changes_2$1=l=>({item:l[0]&32}),get_default_slot_context_2$1=l=>({item:l[5]}),get_default_slot_changes_1$1=l=>({item:l[0]&32}),get_default_slot_context_1$1=l=>({item:l[5]}),get_default_slot_changes$3=l=>({item:l[0]&32}),get_default_slot_context$3=l=>({item:l[5]});function create_else_block$8(l){let r,g,p,v,f;const a=l[14].default,i=create_slot(a,l,l[13],get_default_slot_context_2$1);return{c(){r=element("button"),i&&i.c(),attr(r,"type","button"),attr(r,"class",g="flex items-center text-left "+l[4]),r.disabled=l[2],attr(r,"aria-current",l[1])},m(t,s){insert(t,r,s),i&&i.m(r,null),p=!0,v||(f=[listen(r,"blur",l[25]),listen(r,"change",l[26]),listen(r,"click",l[27]),listen(r,"focus",l[28]),listen(r,"keydown",l[29]),listen(r,"keypress",l[30]),listen(r,"keyup",l[31]),listen(r,"mouseenter",l[32]),listen(r,"mouseleave",l[33]),listen(r,"mouseover",l[34])],v=!0)},p(t,s){i&&i.p&&(!p||s[0]&8224)&&update_slot_base(i,a,t,t[13],p?get_slot_changes(a,t[13],s,get_default_slot_changes_2$1):get_all_dirty_from_scope(t[13]),get_default_slot_context_2$1),(!p||s[0]&16&&g!==(g="flex items-center text-left "+t[4]))&&attr(r,"class",g),(!p||s[0]&4)&&(r.disabled=t[2]),(!p||s[0]&2)&&attr(r,"aria-current",t[1])},i(t){p||(transition_in(i,t),p=!0)},o(t){transition_out(i,t),p=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,run_all(f)}}}function create_if_block_1$7(l){let r,g,p,v,f;const a=l[14].default,i=create_slot(a,l,l[13],get_default_slot_context_1$1);return{c(){r=element("a"),i&&i.c(),attr(r,"href",l[3]),attr(r,"class",g="block "+l[4]),attr(r,"aria-current",l[1])},m(t,s){insert(t,r,s),i&&i.m(r,null),p=!0,v||(f=[listen(r,"blur",l[15]),listen(r,"change",l[16]),listen(r,"click",l[17]),listen(r,"focus",l[18]),listen(r,"keydown",l[19]),listen(r,"keypress",l[20]),listen(r,"keyup",l[21]),listen(r,"mouseenter",l[22]),listen(r,"mouseleave",l[23]),listen(r,"mouseover",l[24])],v=!0)},p(t,s){i&&i.p&&(!p||s[0]&8224)&&update_slot_base(i,a,t,t[13],p?get_slot_changes(a,t[13],s,get_default_slot_changes_1$1):get_all_dirty_from_scope(t[13]),get_default_slot_context_1$1),(!p||s[0]&8)&&attr(r,"href",t[3]),(!p||s[0]&16&&g!==(g="block "+t[4]))&&attr(r,"class",g),(!p||s[0]&2)&&attr(r,"aria-current",t[1])},i(t){p||(transition_in(i,t),p=!0)},o(t){transition_out(i,t),p=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,run_all(f)}}}function create_if_block$e(l){let r,g;const p=l[14].default,v=create_slot(p,l,l[13],get_default_slot_context$3);return{c(){r=element("li"),v&&v.c(),attr(r,"class",l[4])},m(f,a){insert(f,r,a),v&&v.m(r,null),g=!0},p(f,a){v&&v.p&&(!g||a[0]&8224)&&update_slot_base(v,p,f,f[13],g?get_slot_changes(p,f[13],a,get_default_slot_changes$3):get_all_dirty_from_scope(f[13]),get_default_slot_context$3),(!g||a[0]&16)&&attr(r,"class",f[4])},i(f){g||(transition_in(v,f),g=!0)},o(f){transition_out(v,f),g=!1},d(f){f&&detach(r),v&&v.d(f)}}}function create_fragment$s(l){let r,g,p,v;const f=[create_if_block$e,create_if_block_1$7,create_else_block$8],a=[];function i(t,s){return t[0]?t[3]?1:2:0}return r=i(l),g=a[r]=f[r](l),{c(){g.c(),p=empty()},m(t,s){a[r].m(t,s),insert(t,p,s),v=!0},p(t,s){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$s(l,r,g){let{$$slots:p={},$$scope:v}=r,{active:f=getContext("active")}=r,{current:a=!1}=r,{disabled:i=!1}=r,{href:t=""}=r,{currentClass:s="text-white bg-primary-700 dark:text-white dark:bg-gray-800"}=r,{normalClass:o=""}=r,{disabledClass:e="text-gray-900 bg-gray-100 dark:bg-gray-600 dark:text-gray-400"}=r,{focusClass:c="focus:z-40 focus:outline-none focus:ring-2 focus:ring-primary-700 focus:text-primary-700 dark:focus:ring-gray-500 dark:focus:text-white"}=r,{hoverClass:u="hover:bg-gray-100 hover:text-primary-700 dark:hover:bg-gray-600 dark:hover:text-white"}=r,{itemDefaultClass:h="py-2 px-4 w-full text-sm font-medium list-none first:rounded-t-lg last:rounded-b-lg"}=r;const b={current:s,normal:o,disabled:e};let m,k;function d(A){bubble.call(this,l,A)}function w(A){bubble.call(this,l,A)}function y(A){bubble.call(this,l,A)}function _(A){bubble.call(this,l,A)}function x(A){bubble.call(this,l,A)}function E(A){bubble.call(this,l,A)}function S(A){bubble.call(this,l,A)}function C(A){bubble.call(this,l,A)}function T(A){bubble.call(this,l,A)}function R(A){bubble.call(this,l,A)}function W(A){bubble.call(this,l,A)}function j(A){bubble.call(this,l,A)}function L(A){bubble.call(this,l,A)}function Q(A){bubble.call(this,l,A)}function U(A){bubble.call(this,l,A)}function Z(A){bubble.call(this,l,A)}function se(A){bubble.call(this,l,A)}function te(A){bubble.call(this,l,A)}function $(A){bubble.call(this,l,A)}function P(A){bubble.call(this,l,A)}return l.$$set=A=>{g(5,r=assign(assign({},r),exclude_internal_props(A))),"active"in A&&g(0,f=A.active),"current"in A&&g(1,a=A.current),"disabled"in A&&g(2,i=A.disabled),"href"in A&&g(3,t=A.href),"currentClass"in A&&g(6,s=A.currentClass),"normalClass"in A&&g(7,o=A.normalClass),"disabledClass"in A&&g(8,e=A.disabledClass),"focusClass"in A&&g(9,c=A.focusClass),"hoverClass"in A&&g(10,u=A.hoverClass),"itemDefaultClass"in A&&g(11,h=A.itemDefaultClass),"$$scope"in A&&g(13,v=A.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&6&&g(12,m=i?"disabled":a?"current":"normal"),g(4,k=twMerge(h,b[m],f&&m==="disabled"&&"cursor-not-allowed",f&&m==="normal"&&u,f&&m==="normal"&&c,r.class))},r=exclude_internal_props(r),[f,a,i,t,k,r,s,o,e,c,u,h,m,v,p,d,w,y,_,x,E,S,C,T,R,W,j,L,Q,U,Z,se,te,$,P]}class ListgroupItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$s,create_fragment$s,safe_not_equal,{active:0,current:1,disabled:2,href:3,currentClass:6,normalClass:7,disabledClass:8,focusClass:9,hoverClass:10,itemDefaultClass:11},null,[-1,-1])}}function get_each_context$6(l,r,g){const p=l.slice();return p[11]=r[g],p[13]=g,p}const get_default_slot_changes_2=l=>({item:l&1}),get_default_slot_context_2=l=>({item:l[0][0]}),get_default_slot_changes_1=l=>({item:l&1}),get_default_slot_context_1=l=>({item:l[11],index:l[13]}),get_default_slot_changes$2=l=>({item:l&1}),get_default_slot_context$2=l=>({item:l[11],index:l[13]});function create_else_block_1$1(l){let r;const g=l[6].default,p=create_slot(g,l,l[9],get_default_slot_context_2);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&513)&&update_slot_base(p,g,v,v[9],r?get_slot_changes(g,v[9],f,get_default_slot_changes_2):get_all_dirty_from_scope(v[9]),get_default_slot_context_2)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_else_block$7(l){let r,g;function p(){return l[8](l[11])}return r=new ListgroupItem({props:{active:l[1],index:l[13],$$slots:{default:[create_default_slot_2$6]},$$scope:{ctx:l}}}),r.$on("click",p),{c(){create_component(r.$$.fragment)},m(v,f){mount_component(r,v,f),g=!0},p(v,f){l=v;const a={};f&2&&(a.active=l[1]),f&513&&(a.$$scope={dirty:f,ctx:l}),r.$set(a)},i(v){g||(transition_in(r.$$.fragment,v),g=!0)},o(v){transition_out(r.$$.fragment,v),g=!1},d(v){destroy_component(r,v)}}}function create_if_block$d(l){let r,g;const p=[{active:l[1]},l[11],{index:l[13]}];function v(){return l[7](l[11])}let f={$$slots:{default:[create_default_slot_1$8]},$$scope:{ctx:l}};for(let a=0;a{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function create_default_slot$g(l){let r,g,p=ensure_array_like(l[0]),v=[];for(let i=0;itransition_out(v[i],1,1,()=>{v[i]=null});let a=null;return p.length||(a=create_else_block_1$1(l)),{c(){for(let i=0;i{a=null}),check_outros()):(a=create_else_block_1$1(i),a.c(),transition_in(a,1),a.m(r.parentNode,r))}},i(i){if(!g){for(let t=0;ti("click",h),u=h=>i("click",h);return l.$$set=h=>{g(10,r=assign(assign({},r),exclude_internal_props(h))),g(4,v=compute_rest_props(r,p)),"items"in h&&g(0,t=h.items),"active"in h&&g(1,s=h.active),"defaultClass"in h&&g(5,o=h.defaultClass),"$$scope"in h&&g(9,a=h.$$scope)},l.$$.update=()=>{l.$$.dirty&2&&setContext("active",s),g(2,e=twMerge(o,r.class))},r=exclude_internal_props(r),[t,s,e,i,v,o,f,c,u,a]}class Listgroup extends SvelteComponent{constructor(r){super(),init(this,r,instance$r,create_fragment$r,safe_not_equal,{items:0,active:1,defaultClass:5})}}const selectorTabbable=` a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true] -`;function focusTrap(l){function r(m){if(!(m.key==="Tab"||m.keyCode===9))return;const v=Array.from(l.querySelectorAll(selectorTabbable));let f=v.indexOf(document.activeElement??l);f===-1&&m.shiftKey&&(f=0),f+=v.length+(m.shiftKey?-1:1),f%=v.length,v[f].focus(),m.preventDefault()}return document.addEventListener("keydown",r,!0),{destroy(){document.removeEventListener("keydown",r,!0)}}}const get_footer_slot_changes=l=>({}),get_footer_slot_context=l=>({}),get_header_slot_changes=l=>({}),get_header_slot_context=l=>({});function create_if_block$c(l){let r,m,g,v,f,a,i,t,s,o;const e=[{rounded:!0},{shadow:!0},l[14],{class:l[5]}];let c={$$slots:{default:[create_default_slot$e]},$$scope:{ctx:l}};for(let u=0;u{i=null}),check_outros())},i(t){g||(transition_in(a,t),transition_in(i),g=!0)},o(t){transition_out(a,t),transition_out(i),g=!1},d(t){t&&(detach(r),detach(m)),a&&a.d(t),i&&i.d(t)}}}function create_if_block_1$6(l){let r,m;return r=new Frame({props:{color:l[14].color,class:"flex items-center p-6 space-x-2 rounded-b border-t",$$slots:{default:[create_default_slot_1$6]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&16384&&(f.color=g[14].color),v&16777216&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_1$6(l){let r;const m=l[21].footer,g=create_slot(m,l,l[24],get_footer_slot_context);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&16777216)&&update_slot_base(g,m,v,v[24],r?get_slot_changes(m,v[24],f,get_footer_slot_changes):get_all_dirty_from_scope(v[24]),get_footer_slot_context)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_default_slot$e(l){let r,m,g,v,f,a,i,t,s,o;const e=[create_if_block_2$4,create_if_block_4$3],c=[];function u(k,d){return k[15].header||k[1]?0:k[3]?1:-1}~(r=u(l))&&(m=c[r]=e[r](l));const h=l[21].default,b=create_slot(h,l,l[24],null);let p=l[15].footer&&create_if_block_1$6(l);return{c(){m&&m.c(),g=space(),v=element("div"),b&&b.c(),a=space(),p&&p.c(),i=empty(),attr(v,"class",f=twMerge("p-6 space-y-6 flex-1 overflow-y-auto overscroll-contain",l[13].bodyClass)),attr(v,"role","document")},m(k,d){~r&&c[r].m(k,d),insert(k,g,d),insert(k,v,d),b&&b.m(v,null),insert(k,a,d),p&&p.m(k,d),insert(k,i,d),t=!0,s||(o=[listen(v,"keydown",stop_propagation(l[12])),listen(v,"wheel",stop_propagation(l[23]),{passive:!0})],s=!0)},p(k,d){let w=r;r=u(k),r===w?~r&&c[r].p(k,d):(m&&(group_outros(),transition_out(c[w],1,1,()=>{c[w]=null}),check_outros()),~r?(m=c[r],m?m.p(k,d):(m=c[r]=e[r](k),m.c()),transition_in(m,1),m.m(g.parentNode,g)):m=null),b&&b.p&&(!t||d&16777216)&&update_slot_base(b,h,k,k[24],t?get_slot_changes(h,k[24],d,null):get_all_dirty_from_scope(k[24]),null),(!t||d&8192&&f!==(f=twMerge("p-6 space-y-6 flex-1 overflow-y-auto overscroll-contain",k[13].bodyClass)))&&attr(v,"class",f),k[15].footer?p?(p.p(k,d),d&32768&&transition_in(p,1)):(p=create_if_block_1$6(k),p.c(),transition_in(p,1),p.m(i.parentNode,i)):p&&(group_outros(),transition_out(p,1,1,()=>{p=null}),check_outros())},i(k){t||(transition_in(m),transition_in(b,k),transition_in(p),t=!0)},o(k){transition_out(m),transition_out(b,k),transition_out(p),t=!1},d(k){k&&(detach(g),detach(v),detach(a),detach(i)),~r&&c[r].d(k),b&&b.d(k),p&&p.d(k),s=!1,run_all(o)}}}function create_fragment$o(l){let r,m,g=l[0]&&create_if_block$c(l);return{c(){g&&g.c(),r=empty()},m(v,f){g&&g.m(v,f),insert(v,r,f),m=!0},p(v,[f]){v[0]?g?(g.p(v,f),f&1&&transition_in(g,1)):(g=create_if_block$c(v),g.c(),transition_in(g,1),g.m(r.parentNode,r)):g&&(group_outros(),transition_out(g,1,1,()=>{g=null}),check_outros())},i(v){m||(transition_in(g),m=!0)},o(v){transition_out(g),m=!1},d(v){v&&detach(r),g&&g.d(v)}}}function instance$o(l,r,m){const g=["open","title","size","placement","autoclose","dismissable","backdropClass","defaultClass","outsideclose","dialogClass"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{open:t=!1}=r,{title:s=""}=r,{size:o="md"}=r,{placement:e="center"}=r,{autoclose:c=!1}=r,{dismissable:u=!0}=r,{backdropClass:h="fixed inset-0 z-40 bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}=r,{defaultClass:b="relative flex flex-col mx-auto"}=r,{outsideclose:p=!1}=r,{dialogClass:k="fixed top-0 left-0 right-0 h-modal md:inset-0 md:h-full z-50 w-full p-4 flex"}=r;const d=createEventDispatcher();function w(L){const Q=document.createTreeWalker(L,NodeFilter.SHOW_ELEMENT);let U;for(;U=Q.nextNode();)if(U instanceof HTMLElement){const Z=U,[se,te]=C(Z);(se||te)&&(Z.tabIndex=0)}L.focus()}const y=()=>{switch(e){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},_={xs:"max-w-md",sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-7xl"},x=L=>{const Q=L.target;c&&(Q==null?void 0:Q.tagName)==="BUTTON"&&E(L),p&&Q===L.currentTarget&&E(L)},E=L=>{L.preventDefault(),m(0,t=!1)};let S;const C=L=>[L.scrollWidth>L.clientWidth&&["scroll","auto"].indexOf(getComputedStyle(L).overflowX)>=0,L.scrollHeight>L.clientHeight&&["scroll","auto"].indexOf(getComputedStyle(L).overflowY)>=0];let T=twMerge(h,r.classBackdrop);function R(L){if(L.key==="Escape"&&u)return E(L)}function W(L){bubble.call(this,l,L)}function j(L){bubble.call(this,l,L)}return l.$$set=L=>{m(13,r=assign(assign({},r),exclude_internal_props(L))),m(14,v=compute_rest_props(r,g)),"open"in L&&m(0,t=L.open),"title"in L&&m(1,s=L.title),"size"in L&&m(2,o=L.size),"placement"in L&&m(16,e=L.placement),"autoclose"in L&&m(17,c=L.autoclose),"dismissable"in L&&m(3,u=L.dismissable),"backdropClass"in L&&m(18,h=L.backdropClass),"defaultClass"in L&&m(19,b=L.defaultClass),"outsideclose"in L&&m(20,p=L.outsideclose),"dialogClass"in L&&m(4,k=L.dialogClass),"$$scope"in L&&m(24,a=L.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&d(t?"open":"close"),m(5,S=twMerge(b,"w-full",r.class))},r=exclude_internal_props(r),[t,s,o,u,k,S,w,y,_,x,E,T,R,r,v,i,e,c,h,b,p,f,W,j,a]}class Modal extends SvelteComponent{constructor(r){super(),init(this,r,instance$o,create_fragment$o,safe_not_equal,{open:0,title:1,size:2,placement:16,autoclose:17,dismissable:3,backdropClass:18,defaultClass:19,outsideclose:20,dialogClass:4})}}const get_default_slot_changes$1=l=>({hidden:l&8}),get_default_slot_context$1=l=>({hidden:l[3],toggle:l[4]});function create_default_slot$d(l){let r,m,g;const v=l[7].default,f=create_slot(v,l,l[8],get_default_slot_context$1);return{c(){r=element("div"),f&&f.c(),attr(r,"class",m=twMerge(l[1],l[6].classNavDiv,l[2]&&"w-full"||"container"))},m(a,i){insert(a,r,i),f&&f.m(r,null),g=!0},p(a,i){f&&f.p&&(!g||i&264)&&update_slot_base(f,v,a,a[8],g?get_slot_changes(v,a[8],i,get_default_slot_changes$1):get_all_dirty_from_scope(a[8]),get_default_slot_context$1),(!g||i&70&&m!==(m=twMerge(a[1],a[6].classNavDiv,a[2]&&"w-full"||"container")))&&attr(r,"class",m)},i(a){g||(transition_in(f,a),g=!0)},o(a){transition_out(f,a),g=!1},d(a){a&&detach(r),f&&f.d(a)}}}function create_fragment$n(l){let r,m;const g=[{tag:"nav"},l[5],{class:twMerge(l[0],l[6].class)}];let v={$$slots:{default:[create_default_slot$d]},$$scope:{ctx:l}};for(let f=0;f{m(3,o=!o)};return l.$$set=c=>{m(6,r=assign(assign({},r),exclude_internal_props(c))),m(5,v=compute_rest_props(r,g)),"navClass"in c&&m(0,i=c.navClass),"navDivClass"in c&&m(1,t=c.navDivClass),"fluid"in c&&m(2,s=c.fluid),"$$scope"in c&&m(8,a=c.$$scope)},l.$$.update=()=>{m(5,v.color=v.color??"navbar",v)},r=exclude_internal_props(r),[i,t,s,o,e,v,r,f,a]}class Navbar extends SvelteComponent{constructor(r){super(),init(this,r,instance$n,create_fragment$n,safe_not_equal,{navClass:0,navDivClass:1,fluid:2})}}function create_fragment$m(l){let r,m,g;const v=l[4].default,f=create_slot(v,l,l[3],null);let a=[{href:l[0]},l[1],{class:m=twMerge("flex items-center",l[2].class)}],i={};for(let t=0;t{m(2,r=assign(assign({},r),exclude_internal_props(t))),m(1,v=compute_rest_props(r,g)),"href"in t&&m(0,i=t.href),"$$scope"in t&&m(3,a=t.$$scope)},r=exclude_internal_props(r),[i,v,r,a,f]}class NavBrand extends SvelteComponent{constructor(r){super(),init(this,r,instance$m,create_fragment$m,safe_not_equal,{href:0})}}function create_fragment$l(l){let r,m,g,v,f=[{xmlns:"http://www.w3.org/2000/svg"},{role:"button"},{tabindex:"0"},{width:l[0]},{height:l[0]},{class:m=l[4].class},l[5],{"aria-label":l[1]},{fill:"none"},{viewBox:l[2]},{"stroke-width":"2"}],a={};for(let i=0;i `,c=` `;function u(h){bubble.call(this,l,h)}return l.$$set=h=>{m(4,r=assign(assign({},r),exclude_internal_props(h))),m(5,v=compute_rest_props(r,g)),"size"in h&&m(0,f=h.size),"color"in h&&m(6,a=h.color),"variation"in h&&m(7,i=h.variation),"ariaLabel"in h&&m(1,t=h.ariaLabel)},l.$$.update=()=>{if(l.$$.dirty&128)switch(i){case"outline":m(3,o=e),m(2,s="0 0 24 24");break;case"solid":m(3,o=c),m(2,s="0 0 24 24");break;default:m(3,o=e),m(2,s="0 0 24 24")}},r=exclude_internal_props(r),[f,t,s,o,r,v,a,i,u]}class Menu extends SvelteComponent{constructor(r){super(),init(this,r,instance$l,create_fragment$l,safe_not_equal,{size:0,color:6,variation:7,ariaLabel:1})}}function create_default_slot$c(l){let r,m;return r=new Menu({props:{class:twMerge(l[1],l[3].classMenu)}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&10&&(f.class=twMerge(g[1],g[3].classMenu)),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_fragment$k(l){let r,m;const g=[{name:"Open main menu"},l[2],{class:twMerge(l[0],l[3].class)}];let v={$$slots:{default:[create_default_slot$c]},$$scope:{ctx:l}};for(let f=0;f{m(3,r=assign(assign({},r),exclude_internal_props(t))),m(2,v=compute_rest_props(r,g)),"btnClass"in t&&m(0,f=t.btnClass),"menuClass"in t&&m(1,a=t.menuClass)},r=exclude_internal_props(r),[f,a,v,r,i]}class NavHamburger extends SvelteComponent{constructor(r){super(),init(this,r,instance$k,create_fragment$k,safe_not_equal,{btnClass:0,menuClass:1})}}function create_dynamic_element(l){let r,m,g,v,f;const a=l[8].default,i=create_slot(a,l,l[7],null);let t=[{role:m=l[0]?void 0:"link"},{href:l[0]},l[2],{class:l[1]}],s={};for(let o=0;o{m(5,h=C)});function b(C){bubble.call(this,l,C)}function p(C){bubble.call(this,l,C)}function k(C){bubble.call(this,l,C)}function d(C){bubble.call(this,l,C)}function w(C){bubble.call(this,l,C)}function y(C){bubble.call(this,l,C)}function _(C){bubble.call(this,l,C)}function x(C){bubble.call(this,l,C)}function E(C){bubble.call(this,l,C)}function S(C){bubble.call(this,l,C)}return l.$$set=C=>{m(21,r=assign(assign({},r),exclude_internal_props(C))),m(2,a=compute_rest_props(r,f)),"href"in C&&m(0,s=C.href),"activeClass"in C&&m(3,o=C.activeClass),"nonActiveClass"in C&&m(4,e=C.nonActiveClass),"$$scope"in C&&m(7,t=C.$$scope)},l.$$.update=()=>{l.$$.dirty&33&&m(6,g=h?s===h:!1),m(1,v=twMerge("block py-2 pr-4 pl-3 md:p-0 rounded md:border-0",g?o??c.activeClass:e??c.nonActiveClass,r.class))},r=exclude_internal_props(r),[s,v,a,o,e,h,g,t,i,b,p,k,d,w,y,_,x,E,S]}class NavLi extends SvelteComponent{constructor(r){super(),init(this,r,instance$j,create_fragment$j,safe_not_equal,{href:0,activeClass:3,nonActiveClass:4})}}function create_else_block$6(l){let r,m,g;const v=l[10].default,f=create_slot(v,l,l[12],null);let a=[l[4],{class:l[2]},{hidden:l[0]}],i={};for(let t=0;t{v&&(g||(g=create_bidirectional_transition(r,slide,l[1],!0)),g.run(1))}),v=!0)},o(s){transition_out(m.$$.fragment,s),s&&(g||(g=create_bidirectional_transition(r,slide,l[1],!1)),g.run(0)),v=!1},d(s){s&&detach(r),destroy_component(m),s&&g&&g.end(),f=!1,a()}}}function create_default_slot$b(l){let r;const m=l[10].default,g=create_slot(m,l,l[12],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&4096)&&update_slot_base(g,m,v,v[12],r?get_slot_changes(m,v[12],f,null):get_all_dirty_from_scope(v[12]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_fragment$i(l){let r,m,g,v;const f=[create_if_block$b,create_else_block$6],a=[];function i(t,s){return t[0]?1:0}return r=i(l),m=a[r]=f[r](l),{c(){m.c(),g=empty()},m(t,s){a[r].m(t,s),insert(t,g,s),v=!0},p(t,[s]){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$i(l,r,m){const g=["activeUrl","divClass","ulClass","hidden","slideParams","activeClass","nonActiveClass"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=writable("");let{activeUrl:t=""}=r,{divClass:s="w-full md:block md:w-auto"}=r,{ulClass:o="flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium"}=r,{hidden:e=!0}=r,{slideParams:c={delay:250,duration:500,easing:quintOut}}=r,{activeClass:u="text-white bg-primary-700 md:bg-transparent md:text-primary-700 md:dark:text-white dark:bg-primary-600 md:dark:bg-transparent"}=r,{nonActiveClass:h="text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent"}=r;setContext("navbarContext",{activeClass:u,nonActiveClass:h}),setContext("activeUrl",i);let b,p;function k(d){bubble.call(this,l,d)}return l.$$set=d=>{m(14,r=assign(assign({},r),exclude_internal_props(d))),m(4,v=compute_rest_props(r,g)),"activeUrl"in d&&m(5,t=d.activeUrl),"divClass"in d&&m(6,s=d.divClass),"ulClass"in d&&m(7,o=d.ulClass),"hidden"in d&&m(0,e=d.hidden),"slideParams"in d&&m(1,c=d.slideParams),"activeClass"in d&&m(8,u=d.activeClass),"nonActiveClass"in d&&m(9,h=d.nonActiveClass),"$$scope"in d&&m(12,a=d.$$scope)},l.$$.update=()=>{l.$$.dirty&32&&i.set(t),m(2,b=twMerge(s,r.class)),m(3,p=twMerge(o,r.classUl))},r=exclude_internal_props(r),[e,c,b,p,v,t,s,o,u,h,f,k,a]}class NavUl extends SvelteComponent{constructor(r){super(),init(this,r,instance$i,create_fragment$i,safe_not_equal,{activeUrl:5,divClass:6,ulClass:7,hidden:0,slideParams:1,activeClass:8,nonActiveClass:9})}}function create_else_block$5(l){let r,m;return{c(){r=svg_element("stop"),m=svg_element("stop"),attr(r,"offset","0%"),attr(r,"stop-color",l[1]),attr(m,"offset","100%"),attr(m,"stop-color",l[1])},m(g,v){insert(g,r,v),insert(g,m,v)},p(g,v){v&2&&attr(r,"stop-color",g[1]),v&2&&attr(m,"stop-color",g[1])},d(g){g&&(detach(r),detach(m))}}}function create_if_block$a(l){let r,m,g,v,f,a;return{c(){r=svg_element("stop"),m=svg_element("stop"),v=svg_element("stop"),a=svg_element("stop"),attr(r,"offset","0%"),attr(r,"stop-color",l[1]),attr(m,"offset",g=l[0]+"%"),attr(m,"stop-color",l[1]),attr(v,"offset",f=l[0]+"%"),attr(v,"stop-color","transparent"),attr(a,"offset","100%"),attr(a,"stop-color","transparent")},m(i,t){insert(i,r,t),insert(i,m,t),insert(i,v,t),insert(i,a,t)},p(i,t){t&2&&attr(r,"stop-color",i[1]),t&1&&g!==(g=i[0]+"%")&&attr(m,"offset",g),t&2&&attr(m,"stop-color",i[1]),t&1&&f!==(f=i[0]+"%")&&attr(v,"offset",f)},d(i){i&&(detach(r),detach(m),detach(v),detach(a))}}}function create_fragment$h(l){let r,m,g,v,f,a,i,t,s;function o(b,p){return b[0]!==100?create_if_block$a:create_else_block$5}let e=o(l),c=e(l),u=[{width:l[3]},{height:l[3]},l[7],{class:i=l[8].class},{"aria-label":l[4]},{viewBox:"100 100 120 120"},{role:l[6]}],h={};for(let b=0;b({}),get_footer_slot_context=l=>({}),get_header_slot_changes=l=>({}),get_header_slot_context=l=>({});function create_if_block$c(l){let r,g,p,v,f,a,i,t,s,o;const e=[{rounded:!0},{shadow:!0},l[14],{class:l[5]}];let c={$$slots:{default:[create_default_slot$f]},$$scope:{ctx:l}};for(let u=0;u{i=null}),check_outros())},i(t){p||(transition_in(a,t),transition_in(i),p=!0)},o(t){transition_out(a,t),transition_out(i),p=!1},d(t){t&&(detach(r),detach(g)),a&&a.d(t),i&&i.d(t)}}}function create_if_block_1$6(l){let r,g;return r=new Frame({props:{color:l[14].color,class:"flex items-center p-6 space-x-2 rounded-b border-t",$$slots:{default:[create_default_slot_1$7]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&16384&&(f.color=p[14].color),v&16777216&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot_1$7(l){let r;const g=l[21].footer,p=create_slot(g,l,l[24],get_footer_slot_context);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&16777216)&&update_slot_base(p,g,v,v[24],r?get_slot_changes(g,v[24],f,get_footer_slot_changes):get_all_dirty_from_scope(v[24]),get_footer_slot_context)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_default_slot$f(l){let r,g,p,v,f,a,i,t,s,o;const e=[create_if_block_2$4,create_if_block_4$3],c=[];function u(k,d){return k[15].header||k[1]?0:k[3]?1:-1}~(r=u(l))&&(g=c[r]=e[r](l));const h=l[21].default,b=create_slot(h,l,l[24],null);let m=l[15].footer&&create_if_block_1$6(l);return{c(){g&&g.c(),p=space(),v=element("div"),b&&b.c(),a=space(),m&&m.c(),i=empty(),attr(v,"class",f=twMerge("p-6 space-y-6 flex-1 overflow-y-auto overscroll-contain",l[13].bodyClass)),attr(v,"role","document")},m(k,d){~r&&c[r].m(k,d),insert(k,p,d),insert(k,v,d),b&&b.m(v,null),insert(k,a,d),m&&m.m(k,d),insert(k,i,d),t=!0,s||(o=[listen(v,"keydown",stop_propagation(l[12])),listen(v,"wheel",stop_propagation(l[23]),{passive:!0})],s=!0)},p(k,d){let w=r;r=u(k),r===w?~r&&c[r].p(k,d):(g&&(group_outros(),transition_out(c[w],1,1,()=>{c[w]=null}),check_outros()),~r?(g=c[r],g?g.p(k,d):(g=c[r]=e[r](k),g.c()),transition_in(g,1),g.m(p.parentNode,p)):g=null),b&&b.p&&(!t||d&16777216)&&update_slot_base(b,h,k,k[24],t?get_slot_changes(h,k[24],d,null):get_all_dirty_from_scope(k[24]),null),(!t||d&8192&&f!==(f=twMerge("p-6 space-y-6 flex-1 overflow-y-auto overscroll-contain",k[13].bodyClass)))&&attr(v,"class",f),k[15].footer?m?(m.p(k,d),d&32768&&transition_in(m,1)):(m=create_if_block_1$6(k),m.c(),transition_in(m,1),m.m(i.parentNode,i)):m&&(group_outros(),transition_out(m,1,1,()=>{m=null}),check_outros())},i(k){t||(transition_in(g),transition_in(b,k),transition_in(m),t=!0)},o(k){transition_out(g),transition_out(b,k),transition_out(m),t=!1},d(k){k&&(detach(p),detach(v),detach(a),detach(i)),~r&&c[r].d(k),b&&b.d(k),m&&m.d(k),s=!1,run_all(o)}}}function create_fragment$q(l){let r,g,p=l[0]&&create_if_block$c(l);return{c(){p&&p.c(),r=empty()},m(v,f){p&&p.m(v,f),insert(v,r,f),g=!0},p(v,[f]){v[0]?p?(p.p(v,f),f&1&&transition_in(p,1)):(p=create_if_block$c(v),p.c(),transition_in(p,1),p.m(r.parentNode,r)):p&&(group_outros(),transition_out(p,1,1,()=>{p=null}),check_outros())},i(v){g||(transition_in(p),g=!0)},o(v){transition_out(p),g=!1},d(v){v&&detach(r),p&&p.d(v)}}}function instance$q(l,r,g){const p=["open","title","size","placement","autoclose","dismissable","backdropClass","defaultClass","outsideclose","dialogClass"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{open:t=!1}=r,{title:s=""}=r,{size:o="md"}=r,{placement:e="center"}=r,{autoclose:c=!1}=r,{dismissable:u=!0}=r,{backdropClass:h="fixed inset-0 z-40 bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}=r,{defaultClass:b="relative flex flex-col mx-auto"}=r,{outsideclose:m=!1}=r,{dialogClass:k="fixed top-0 left-0 right-0 h-modal md:inset-0 md:h-full z-50 w-full p-4 flex"}=r;const d=createEventDispatcher();function w(L){const Q=document.createTreeWalker(L,NodeFilter.SHOW_ELEMENT);let U;for(;U=Q.nextNode();)if(U instanceof HTMLElement){const Z=U,[se,te]=C(Z);(se||te)&&(Z.tabIndex=0)}L.focus()}const y=()=>{switch(e){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},_={xs:"max-w-md",sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-7xl"},x=L=>{const Q=L.target;c&&(Q==null?void 0:Q.tagName)==="BUTTON"&&E(L),m&&Q===L.currentTarget&&E(L)},E=L=>{L.preventDefault(),g(0,t=!1)};let S;const C=L=>[L.scrollWidth>L.clientWidth&&["scroll","auto"].indexOf(getComputedStyle(L).overflowX)>=0,L.scrollHeight>L.clientHeight&&["scroll","auto"].indexOf(getComputedStyle(L).overflowY)>=0];let T=twMerge(h,r.classBackdrop);function R(L){if(L.key==="Escape"&&u)return E(L)}function W(L){bubble.call(this,l,L)}function j(L){bubble.call(this,l,L)}return l.$$set=L=>{g(13,r=assign(assign({},r),exclude_internal_props(L))),g(14,v=compute_rest_props(r,p)),"open"in L&&g(0,t=L.open),"title"in L&&g(1,s=L.title),"size"in L&&g(2,o=L.size),"placement"in L&&g(16,e=L.placement),"autoclose"in L&&g(17,c=L.autoclose),"dismissable"in L&&g(3,u=L.dismissable),"backdropClass"in L&&g(18,h=L.backdropClass),"defaultClass"in L&&g(19,b=L.defaultClass),"outsideclose"in L&&g(20,m=L.outsideclose),"dialogClass"in L&&g(4,k=L.dialogClass),"$$scope"in L&&g(24,a=L.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&d(t?"open":"close"),g(5,S=twMerge(b,"w-full",r.class))},r=exclude_internal_props(r),[t,s,o,u,k,S,w,y,_,x,E,T,R,r,v,i,e,c,h,b,m,f,W,j,a]}class Modal extends SvelteComponent{constructor(r){super(),init(this,r,instance$q,create_fragment$q,safe_not_equal,{open:0,title:1,size:2,placement:16,autoclose:17,dismissable:3,backdropClass:18,defaultClass:19,outsideclose:20,dialogClass:4})}}const get_default_slot_changes$1=l=>({hidden:l&8}),get_default_slot_context$1=l=>({hidden:l[3],toggle:l[4]});function create_default_slot$e(l){let r,g,p;const v=l[7].default,f=create_slot(v,l,l[8],get_default_slot_context$1);return{c(){r=element("div"),f&&f.c(),attr(r,"class",g=twMerge(l[1],l[6].classNavDiv,l[2]&&"w-full"||"container"))},m(a,i){insert(a,r,i),f&&f.m(r,null),p=!0},p(a,i){f&&f.p&&(!p||i&264)&&update_slot_base(f,v,a,a[8],p?get_slot_changes(v,a[8],i,get_default_slot_changes$1):get_all_dirty_from_scope(a[8]),get_default_slot_context$1),(!p||i&70&&g!==(g=twMerge(a[1],a[6].classNavDiv,a[2]&&"w-full"||"container")))&&attr(r,"class",g)},i(a){p||(transition_in(f,a),p=!0)},o(a){transition_out(f,a),p=!1},d(a){a&&detach(r),f&&f.d(a)}}}function create_fragment$p(l){let r,g;const p=[{tag:"nav"},l[5],{class:twMerge(l[0],l[6].class)}];let v={$$slots:{default:[create_default_slot$e]},$$scope:{ctx:l}};for(let f=0;f{g(3,o=!o)};return l.$$set=c=>{g(6,r=assign(assign({},r),exclude_internal_props(c))),g(5,v=compute_rest_props(r,p)),"navClass"in c&&g(0,i=c.navClass),"navDivClass"in c&&g(1,t=c.navDivClass),"fluid"in c&&g(2,s=c.fluid),"$$scope"in c&&g(8,a=c.$$scope)},l.$$.update=()=>{g(5,v.color=v.color??"navbar",v)},r=exclude_internal_props(r),[i,t,s,o,e,v,r,f,a]}class Navbar extends SvelteComponent{constructor(r){super(),init(this,r,instance$p,create_fragment$p,safe_not_equal,{navClass:0,navDivClass:1,fluid:2})}}function create_fragment$o(l){let r,g,p;const v=l[4].default,f=create_slot(v,l,l[3],null);let a=[{href:l[0]},l[1],{class:g=twMerge("flex items-center",l[2].class)}],i={};for(let t=0;t{g(2,r=assign(assign({},r),exclude_internal_props(t))),g(1,v=compute_rest_props(r,p)),"href"in t&&g(0,i=t.href),"$$scope"in t&&g(3,a=t.$$scope)},r=exclude_internal_props(r),[i,v,r,a,f]}class NavBrand extends SvelteComponent{constructor(r){super(),init(this,r,instance$o,create_fragment$o,safe_not_equal,{href:0})}}function create_fragment$n(l){let r,g,p,v,f=[{xmlns:"http://www.w3.org/2000/svg"},{role:"button"},{tabindex:"0"},{width:l[0]},{height:l[0]},{class:g=l[4].class},l[5],{"aria-label":l[1]},{fill:"none"},{viewBox:l[2]},{"stroke-width":"2"}],a={};for(let i=0;i `,c=` `;function u(h){bubble.call(this,l,h)}return l.$$set=h=>{g(4,r=assign(assign({},r),exclude_internal_props(h))),g(5,v=compute_rest_props(r,p)),"size"in h&&g(0,f=h.size),"color"in h&&g(6,a=h.color),"variation"in h&&g(7,i=h.variation),"ariaLabel"in h&&g(1,t=h.ariaLabel)},l.$$.update=()=>{if(l.$$.dirty&128)switch(i){case"outline":g(3,o=e),g(2,s="0 0 24 24");break;case"solid":g(3,o=c),g(2,s="0 0 24 24");break;default:g(3,o=e),g(2,s="0 0 24 24")}},r=exclude_internal_props(r),[f,t,s,o,r,v,a,i,u]}class Menu extends SvelteComponent{constructor(r){super(),init(this,r,instance$n,create_fragment$n,safe_not_equal,{size:0,color:6,variation:7,ariaLabel:1})}}function create_default_slot$d(l){let r,g;return r=new Menu({props:{class:twMerge(l[1],l[3].classMenu)}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&10&&(f.class=twMerge(p[1],p[3].classMenu)),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_fragment$m(l){let r,g;const p=[{name:"Open main menu"},l[2],{class:twMerge(l[0],l[3].class)}];let v={$$slots:{default:[create_default_slot$d]},$$scope:{ctx:l}};for(let f=0;f{g(3,r=assign(assign({},r),exclude_internal_props(t))),g(2,v=compute_rest_props(r,p)),"btnClass"in t&&g(0,f=t.btnClass),"menuClass"in t&&g(1,a=t.menuClass)},r=exclude_internal_props(r),[f,a,v,r,i]}class NavHamburger extends SvelteComponent{constructor(r){super(),init(this,r,instance$m,create_fragment$m,safe_not_equal,{btnClass:0,menuClass:1})}}function create_dynamic_element(l){let r,g,p,v,f;const a=l[8].default,i=create_slot(a,l,l[7],null);let t=[{role:g=l[0]?void 0:"link"},{href:l[0]},l[2],{class:l[1]}],s={};for(let o=0;o{g(5,h=C)});function b(C){bubble.call(this,l,C)}function m(C){bubble.call(this,l,C)}function k(C){bubble.call(this,l,C)}function d(C){bubble.call(this,l,C)}function w(C){bubble.call(this,l,C)}function y(C){bubble.call(this,l,C)}function _(C){bubble.call(this,l,C)}function x(C){bubble.call(this,l,C)}function E(C){bubble.call(this,l,C)}function S(C){bubble.call(this,l,C)}return l.$$set=C=>{g(21,r=assign(assign({},r),exclude_internal_props(C))),g(2,a=compute_rest_props(r,f)),"href"in C&&g(0,s=C.href),"activeClass"in C&&g(3,o=C.activeClass),"nonActiveClass"in C&&g(4,e=C.nonActiveClass),"$$scope"in C&&g(7,t=C.$$scope)},l.$$.update=()=>{l.$$.dirty&33&&g(6,p=h?s===h:!1),g(1,v=twMerge("block py-2 pr-4 pl-3 md:p-0 rounded md:border-0",p?o??c.activeClass:e??c.nonActiveClass,r.class))},r=exclude_internal_props(r),[s,v,a,o,e,h,p,t,i,b,m,k,d,w,y,_,x,E,S]}class NavLi extends SvelteComponent{constructor(r){super(),init(this,r,instance$l,create_fragment$l,safe_not_equal,{href:0,activeClass:3,nonActiveClass:4})}}function create_else_block$6(l){let r,g,p;const v=l[10].default,f=create_slot(v,l,l[12],null);let a=[l[4],{class:l[2]},{hidden:l[0]}],i={};for(let t=0;t{v&&(p||(p=create_bidirectional_transition(r,slide,l[1],!0)),p.run(1))}),v=!0)},o(s){transition_out(g.$$.fragment,s),s&&(p||(p=create_bidirectional_transition(r,slide,l[1],!1)),p.run(0)),v=!1},d(s){s&&detach(r),destroy_component(g),s&&p&&p.end(),f=!1,a()}}}function create_default_slot$c(l){let r;const g=l[10].default,p=create_slot(g,l,l[12],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&4096)&&update_slot_base(p,g,v,v[12],r?get_slot_changes(g,v[12],f,null):get_all_dirty_from_scope(v[12]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_fragment$k(l){let r,g,p,v;const f=[create_if_block$b,create_else_block$6],a=[];function i(t,s){return t[0]?1:0}return r=i(l),g=a[r]=f[r](l),{c(){g.c(),p=empty()},m(t,s){a[r].m(t,s),insert(t,p,s),v=!0},p(t,[s]){let o=r;r=i(t),r===o?a[r].p(t,s):(group_outros(),transition_out(a[o],1,1,()=>{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$k(l,r,g){const p=["activeUrl","divClass","ulClass","hidden","slideParams","activeClass","nonActiveClass"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=writable("");let{activeUrl:t=""}=r,{divClass:s="w-full md:block md:w-auto"}=r,{ulClass:o="flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium"}=r,{hidden:e=!0}=r,{slideParams:c={delay:250,duration:500,easing:quintOut}}=r,{activeClass:u="text-white bg-primary-700 md:bg-transparent md:text-primary-700 md:dark:text-white dark:bg-primary-600 md:dark:bg-transparent"}=r,{nonActiveClass:h="text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent"}=r;setContext("navbarContext",{activeClass:u,nonActiveClass:h}),setContext("activeUrl",i);let b,m;function k(d){bubble.call(this,l,d)}return l.$$set=d=>{g(14,r=assign(assign({},r),exclude_internal_props(d))),g(4,v=compute_rest_props(r,p)),"activeUrl"in d&&g(5,t=d.activeUrl),"divClass"in d&&g(6,s=d.divClass),"ulClass"in d&&g(7,o=d.ulClass),"hidden"in d&&g(0,e=d.hidden),"slideParams"in d&&g(1,c=d.slideParams),"activeClass"in d&&g(8,u=d.activeClass),"nonActiveClass"in d&&g(9,h=d.nonActiveClass),"$$scope"in d&&g(12,a=d.$$scope)},l.$$.update=()=>{l.$$.dirty&32&&i.set(t),g(2,b=twMerge(s,r.class)),g(3,m=twMerge(o,r.classUl))},r=exclude_internal_props(r),[e,c,b,m,v,t,s,o,u,h,f,k,a]}class NavUl extends SvelteComponent{constructor(r){super(),init(this,r,instance$k,create_fragment$k,safe_not_equal,{activeUrl:5,divClass:6,ulClass:7,hidden:0,slideParams:1,activeClass:8,nonActiveClass:9})}}function create_else_block$5(l){let r,g;return{c(){r=svg_element("stop"),g=svg_element("stop"),attr(r,"offset","0%"),attr(r,"stop-color",l[1]),attr(g,"offset","100%"),attr(g,"stop-color",l[1])},m(p,v){insert(p,r,v),insert(p,g,v)},p(p,v){v&2&&attr(r,"stop-color",p[1]),v&2&&attr(g,"stop-color",p[1])},d(p){p&&(detach(r),detach(g))}}}function create_if_block$a(l){let r,g,p,v,f,a;return{c(){r=svg_element("stop"),g=svg_element("stop"),v=svg_element("stop"),a=svg_element("stop"),attr(r,"offset","0%"),attr(r,"stop-color",l[1]),attr(g,"offset",p=l[0]+"%"),attr(g,"stop-color",l[1]),attr(v,"offset",f=l[0]+"%"),attr(v,"stop-color","transparent"),attr(a,"offset","100%"),attr(a,"stop-color","transparent")},m(i,t){insert(i,r,t),insert(i,g,t),insert(i,v,t),insert(i,a,t)},p(i,t){t&2&&attr(r,"stop-color",i[1]),t&1&&p!==(p=i[0]+"%")&&attr(g,"offset",p),t&2&&attr(g,"stop-color",i[1]),t&1&&f!==(f=i[0]+"%")&&attr(v,"offset",f)},d(i){i&&(detach(r),detach(g),detach(v),detach(a))}}}function create_fragment$j(l){let r,g,p,v,f,a,i,t,s;function o(b,m){return b[0]!==100?create_if_block$a:create_else_block$5}let e=o(l),c=e(l),u=[{width:l[3]},{height:l[3]},l[7],{class:i=l[8].class},{"aria-label":l[4]},{viewBox:"100 100 120 120"},{role:l[6]}],h={};for(let b=0;b{m(8,r=assign(assign({},r),exclude_internal_props(u))),m(7,v=compute_rest_props(r,g)),"fillPercent"in u&&m(0,f=u.fillPercent),"fillColor"in u&&m(1,a=u.fillColor),"strokeColor"in u&&m(2,i=u.strokeColor),"size"in u&&m(3,t=u.size),"ariaLabel"in u&&m(4,s=u.ariaLabel),"id"in u&&m(5,o=u.id),"role"in u&&m(6,e=u.role)},r=exclude_internal_props(r),[f,a,i,t,s,o,e,v,r,c]}class Star extends SvelteComponent{constructor(r){super(),init(this,r,instance$h,create_fragment$h,safe_not_equal,{fillPercent:0,fillColor:1,strokeColor:2,size:3,ariaLabel:4,id:5,role:6})}}const get_text_slot_changes=l=>({}),get_text_slot_context=l=>({});function get_each_context$5(l,r,m){const g=l.slice();return g[17]=r[m],g}function get_each_context_1(l,r,m){const g=l.slice();return g[17]=r[m],g}function create_else_block$4(l){let r,m,g,v,f,a=ensure_array_like(Array(l[8])),i=[];for(let h=0;htransition_out(i[h],1,1,()=>{i[h]=null});let s=l[9]&&create_if_block_2$3(l),o=ensure_array_like(Array(l[10])),e=[];for(let h=0;htransition_out(e[h],1,1,()=>{e[h]=null});let u=l[12].text&&create_if_block_1$5(l);return{c(){for(let h=0;h{u=null}),check_outros())},i(h){if(!f){for(let b=0;b{destroy_component(u,1)}),check_outros()}i?(r=construct_svelte_component(i,t(e)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,m.parentNode,m)):r=null}else if(i){const u={};c&2&&(u.size=e[1]),r.$set(u)}(!a||c&4)&&set_data(v,e[2]),o&&o.p&&(!a||c&16384)&&update_slot_base(o,s,e,e[14],a?get_slot_changes(s,e[14],c,null):get_all_dirty_from_scope(e[14]),null)},i(e){a||(r&&transition_in(r.$$.fragment,e),transition_in(o,e),a=!0)},o(e){r&&transition_out(r.$$.fragment,e),transition_out(o,e),a=!1},d(e){e&&(detach(m),detach(g),detach(f)),r&&destroy_component(r,e),o&&o.d(e)}}}function create_each_block_1(l){let r,m,g;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:100,id:a[6]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),m=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,m,i),g=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,m.parentNode,m)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),r.$set(t)}},i(a){g||(r&&transition_in(r.$$.fragment,a),g=!0)},o(a){r&&transition_out(r.$$.fragment,a),g=!1},d(a){a&&detach(m),r&&destroy_component(r,a)}}}function create_if_block_2$3(l){let r,m,g;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:a[9],id:a[3]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),m=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,m,i),g=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,m.parentNode,m)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),i&8&&(t.id=a[3]),r.$set(t)}},i(a){g||(r&&transition_in(r.$$.fragment,a),g=!0)},o(a){r&&transition_out(r.$$.fragment,a),g=!1},d(a){a&&detach(m),r&&destroy_component(r,a)}}}function create_each_block$5(l){let r,m,g;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:0,id:a[7]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),m=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,m,i),g=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,m.parentNode,m)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),r.$set(t)}},i(a){g||(r&&transition_in(r.$$.fragment,a),g=!0)},o(a){r&&transition_out(r.$$.fragment,a),g=!1},d(a){a&&detach(m),r&&destroy_component(r,a)}}}function create_if_block_1$5(l){let r;const m=l[15].text,g=create_slot(m,l,l[14],get_text_slot_context);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&16384)&&update_slot_base(g,m,v,v[14],r?get_slot_changes(m,v[14],f,get_text_slot_changes):get_all_dirty_from_scope(v[14]),get_text_slot_context)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_fragment$g(l){let r,m,g,v,f;const a=[create_if_block$9,create_else_block$4],i=[];function t(s,o){return s[5]?0:1}return m=t(l),g=i[m]=a[m](l),{c(){r=element("div"),g.c(),attr(r,"class",v=twMerge(l[0],l[11].class))},m(s,o){insert(s,r,o),i[m].m(r,null),f=!0},p(s,[o]){let e=m;m=t(s),m===e?i[m].p(s,o):(group_outros(),transition_out(i[e],1,1,()=>{i[e]=null}),check_outros(),g=i[m],g?g.p(s,o):(g=i[m]=a[m](s),g.c()),transition_in(g,1),g.m(r,null)),(!f||o&2049&&v!==(v=twMerge(s[0],s[11].class)))&&attr(r,"class",v)},i(s){f||(transition_in(g),f=!0)},o(s){transition_out(g),f=!1},d(s){s&&detach(r),i[m].d()}}}function instance$g(l,r,m){let{$$slots:g={},$$scope:v}=r;const f=compute_slots(g);let{divClass:a="flex items-center"}=r,{size:i=24}=r,{total:t=5}=r,{rating:s=4}=r,{partialId:o="partialStar"+generateId()}=r,{icon:e=Star}=r,{count:c=!1}=r;const u=generateId(),h=generateId();let b=Math.floor(s),p=s-b,k=Math.round(p*100),d=t-(b+Math.ceil(p));return l.$$set=w=>{m(11,r=assign(assign({},r),exclude_internal_props(w))),"divClass"in w&&m(0,a=w.divClass),"size"in w&&m(1,i=w.size),"total"in w&&m(13,t=w.total),"rating"in w&&m(2,s=w.rating),"partialId"in w&&m(3,o=w.partialId),"icon"in w&&m(4,e=w.icon),"count"in w&&m(5,c=w.count),"$$scope"in w&&m(14,v=w.$$scope)},r=exclude_internal_props(r),[a,i,s,o,e,c,u,h,b,k,d,r,f,t,v,g]}class Rating extends SvelteComponent{constructor(r){super(),init(this,r,instance$g,create_fragment$g,safe_not_equal,{divClass:0,size:1,total:13,rating:2,partialId:3,icon:4,count:5})}}const get_title_slot_changes$1=l=>({}),get_title_slot_context$1=l=>({});function fallback_block$1(l){let r;return{c(){r=text(l[1])},m(m,g){insert(m,r,g)},p(m,g){g&2&&set_data(r,m[1])},d(m){m&&detach(r)}}}function create_if_block$8(l){let r,m,g,v,f;const a=l[10].default,i=create_slot(a,l,l[9],null);return{c(){r=element("div"),m=element("div"),i&&i.c(),attr(r,"class","hidden tab_content_placeholder")},m(t,s){insert(t,r,s),append(r,m),i&&i.m(m,null),g=!0,v||(f=action_destroyer(l[3].call(null,m)),v=!0)},p(t,s){i&&i.p&&(!g||s&512)&&update_slot_base(i,a,t,t[9],g?get_slot_changes(a,t[9],s,null):get_all_dirty_from_scope(t[9]),null)},i(t){g||(transition_in(i,t),g=!0)},o(t){transition_out(i,t),g=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,f()}}}function create_fragment$f(l){let r,m,g,v,f,a,i;const t=l[10].title,s=create_slot(t,l,l[9],get_title_slot_context$1),o=s||fallback_block$1(l);let e=[{type:"button"},{role:"tab"},l[5],{class:l[2]}],c={};for(let h=0;h{u=null}),check_outros()),(!f||b&16&&v!==(v=twMerge("group",h[4].class)))&&attr(r,"class",v)},i(h){f||(transition_in(o,h),transition_in(u),f=!0)},o(h){transition_out(o,h),transition_out(u),f=!1},d(h){h&&detach(r),o&&o.d(h),u&&u.d(),a=!1,run_all(i)}}}function instance$f(l,r,m){const g=["open","title","activeClasses","inactiveClasses","defaultClass"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r,{open:i=!1}=r,{title:t="Tab title"}=r,{activeClasses:s=void 0}=r,{inactiveClasses:o=void 0}=r,{defaultClass:e="inline-block text-sm font-medium text-center disabled:cursor-not-allowed"}=r;const c=getContext("ctx")??{},u=c.selected??writable();function h(R){return u.set(R),{destroy:u.subscribe(j=>{j!==R&&m(0,i=!1)})}}let b;function p(R){bubble.call(this,l,R)}function k(R){bubble.call(this,l,R)}function d(R){bubble.call(this,l,R)}function w(R){bubble.call(this,l,R)}function y(R){bubble.call(this,l,R)}function _(R){bubble.call(this,l,R)}function x(R){bubble.call(this,l,R)}function E(R){bubble.call(this,l,R)}function S(R){bubble.call(this,l,R)}function C(R){bubble.call(this,l,R)}const T=()=>m(0,i=!0);return l.$$set=R=>{m(4,r=assign(assign({},r),exclude_internal_props(R))),m(5,v=compute_rest_props(r,g)),"open"in R&&m(0,i=R.open),"title"in R&&m(1,t=R.title),"activeClasses"in R&&m(6,s=R.activeClasses),"inactiveClasses"in R&&m(7,o=R.inactiveClasses),"defaultClass"in R&&m(8,e=R.defaultClass),"$$scope"in R&&m(9,a=R.$$scope)},l.$$.update=()=>{l.$$.dirty&449&&m(2,b=twMerge(e,i?s??c.activeClasses:o??c.inactiveClasses,i&&"active"))},r=exclude_internal_props(r),[i,t,b,h,r,v,s,o,e,a,f,p,k,d,w,y,_,x,E,S,C,T]}class TabItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$f,create_fragment$f,safe_not_equal,{open:0,title:1,activeClasses:6,inactiveClasses:7,defaultClass:8})}}const get_divider_slot_changes=l=>({}),get_divider_slot_context=l=>({}),get_default_slot_changes=l=>({style:l&2}),get_default_slot_context=l=>({style:l[1]});function create_if_block$7(l){let r;const m=l[9].divider,g=create_slot(m,l,l[8],get_divider_slot_context),v=g||fallback_block();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){g&&g.p&&(!r||a&256)&&update_slot_base(g,m,f,f[8],r?get_slot_changes(m,f[8],a,get_divider_slot_changes):get_all_dirty_from_scope(f[8]),get_divider_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function fallback_block(l){let r;return{c(){r=element("div"),attr(r,"class","h-px bg-gray-200 dark:bg-gray-700")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_fragment$e(l){let r,m,g,v,f,a,i;const t=l[9].default,s=create_slot(t,l,l[8],get_default_slot_context);let o=l[0]&&create_if_block$7(l);return{c(){r=element("ul"),s&&s.c(),m=space(),o&&o.c(),g=space(),v=element("div"),attr(r,"class",l[3]),attr(v,"class",l[2]),attr(v,"role","tabpanel"),attr(v,"aria-labelledby","id-tab")},m(e,c){insert(e,r,c),s&&s.m(r,null),insert(e,m,c),o&&o.m(e,c),insert(e,g,c),insert(e,v,c),f=!0,a||(i=action_destroyer(l[4].call(null,v)),a=!0)},p(e,[c]){s&&s.p&&(!f||c&258)&&update_slot_base(s,t,e,e[8],f?get_slot_changes(t,e[8],c,get_default_slot_changes):get_all_dirty_from_scope(e[8]),get_default_slot_context),(!f||c&8)&&attr(r,"class",e[3]),e[0]?o?(o.p(e,c),c&1&&transition_in(o,1)):(o=create_if_block$7(e),o.c(),transition_in(o,1),o.m(g.parentNode,g)):o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()),(!f||c&4)&&attr(v,"class",e[2])},i(e){f||(transition_in(s,e),transition_in(o),f=!0)},o(e){transition_out(s,e),transition_out(o),f=!1},d(e){e&&(detach(r),detach(m),detach(g),detach(v)),s&&s.d(e),o&&o.d(e),a=!1,i()}}}function instance$e(l,r,m){let g,{$$slots:v={},$$scope:f}=r,{style:a="none"}=r,{defaultClass:i="flex flex-wrap space-x-2"}=r,{contentClass:t="p-4 bg-gray-50 rounded-lg dark:bg-gray-800 mt-4"}=r,{divider:s=!0}=r,{activeClasses:o="p-4 text-primary-600 bg-gray-100 rounded-t-lg dark:bg-gray-800 dark:text-primary-500"}=r,{inactiveClasses:e="p-4 text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}=r;const c={full:"p-4 w-full group-first:rounded-l-lg group-last:rounded-r-lg text-gray-900 bg-gray-100 focus:ring-4 focus:ring-primary-300 focus:outline-none dark:bg-gray-700 dark:text-white",pill:"py-3 px-4 text-white bg-primary-600 rounded-lg",underline:"p-4 text-primary-600 border-b-2 border-primary-600 dark:text-primary-500 dark:border-primary-500",none:""},u={full:"p-4 w-full group-first:rounded-l-lg group-last:rounded-r-lg text-gray-500 dark:text-gray-400 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-primary-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",pill:"py-3 px-4 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",underline:"p-4 border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 text-gray-500 dark:text-gray-400",none:""},h={activeClasses:c[a]||o,inactiveClasses:u[a]||e,selected:writable()};setContext("ctx",h);function b(p){return{destroy:h.selected.subscribe(d=>{d&&p.replaceChildren(d)})}}return l.$$set=p=>{m(13,r=assign(assign({},r),exclude_internal_props(p))),"style"in p&&m(1,a=p.style),"defaultClass"in p&&m(5,i=p.defaultClass),"contentClass"in p&&m(2,t=p.contentClass),"divider"in p&&m(0,s=p.divider),"activeClasses"in p&&m(6,o=p.activeClasses),"inactiveClasses"in p&&m(7,e=p.inactiveClasses),"$$scope"in p&&m(8,f=p.$$scope)},l.$$.update=()=>{l.$$.dirty&3&&m(0,s=["full","pill"].includes(a)?!1:s),m(3,g=twMerge(i,a==="underline"&&"-mb-px",r.class))},r=exclude_internal_props(r),[s,a,t,g,b,i,o,e,f,v]}class Tabs extends SvelteComponent{constructor(r){super(),init(this,r,instance$e,create_fragment$e,safe_not_equal,{style:1,defaultClass:5,contentClass:2,divider:0,activeClasses:6,inactiveClasses:7})}}function create_else_block$3(l){let r;return{c(){r=element("hr"),attr(r,"class",l[0])},m(m,g){insert(m,r,g)},p:noop,i:noop,o:noop,d(m){m&&detach(r)}}}function create_if_block$6(l){let r,m,g,v,f;const a=l[12].default,i=create_slot(a,l,l[11],null);let t=[l[4],{class:l[1]}],s={};for(let o=0;o{a[o]=null}),check_outros(),m=a[r],m?m.p(t,s):(m=a[r]=f[r](t),m.c()),transition_in(m,1),m.m(g.parentNode,g))},i(t){v||(transition_in(m),v=!0)},o(t){transition_out(m),v=!1},d(t){t&&detach(g),a[r].d(t)}}}function instance$d(l,r,m){const g=["icon","divClass","hrClass","iconDivClass","textSpanClass","innerDivClass"];let v=compute_rest_props(r,g),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{icon:t=!1}=r,{divClass:s="inline-flex items-center justify-center w-full"}=r,{hrClass:o="h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"}=r,{iconDivClass:e="absolute left-1/2 px-4 bg-white -translate-x-1/2 "}=r,{textSpanClass:c="absolute px-3 font-medium text-gray-900 -translate-x-1/2 bg-white left-1/2 dark:text-white dark:bg-gray-900 "}=r,{innerDivClass:u="absolute px-4 -translate-x-1/2 bg-white left-1/2 dark:bg-gray-900"}=r,h=twMerge(o,r.classHr),b=twMerge(s,i&&"relative",r.classDiv),p=twMerge(u,t?e:c,r.classInnerDiv);return l.$$set=k=>{m(13,r=assign(assign({},r),exclude_internal_props(k))),m(4,v=compute_rest_props(r,g)),"icon"in k&&m(5,t=k.icon),"divClass"in k&&m(6,s=k.divClass),"hrClass"in k&&m(7,o=k.hrClass),"iconDivClass"in k&&m(8,e=k.iconDivClass),"textSpanClass"in k&&m(9,c=k.textSpanClass),"innerDivClass"in k&&m(10,u=k.innerDivClass),"$$scope"in k&&m(11,a=k.$$scope)},r=exclude_internal_props(r),[h,b,p,i,v,t,s,o,e,c,u,a,f]}class Hr extends SvelteComponent{constructor(r){super(),init(this,r,instance$d,create_fragment$d,safe_not_equal,{icon:5,divClass:6,hrClass:7,iconDivClass:8,textSpanClass:9,innerDivClass:10})}}const connected=writable(),network=writable("testnet"),address=writable(),testnet=writable(!0);function create_default_slot_1$5(l){let r;return{c(){r=text("Connect")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_default_slot$a(l){let r,m,g,v,f,a,i;return{c(){r=element("p"),r.textContent="This Demo Requires Metamask Flask",m=space(),g=element("hr"),v=space(),f=element("p"),f.textContent="Though it will be on standard metamask before too long",a=space(),i=element("p"),i.innerHTML='Install flask here: https://metamask.io/flask/',set_style(r,"font-size","x-large")},m(t,s){insert(t,r,s),insert(t,m,s),insert(t,g,s),insert(t,v,s),insert(t,f,s),insert(t,a,s),insert(t,i,s)},p:noop,d(t){t&&(detach(r),detach(m),detach(g),detach(v),detach(f),detach(a),detach(i))}}}function create_fragment$c(l){let r,m,g,v,f;r=new Button({props:{$$slots:{default:[create_default_slot_1$5]},$$scope:{ctx:l}}}),r.$on("click",l[1]);function a(t){l[3](t)}let i={title:"Flask Not Detected",autoclose:!0,$$slots:{default:[create_default_slot$a]},$$scope:{ctx:l}};return l[0]!==void 0&&(i.open=l[0]),g=new Modal({props:i}),binding_callbacks.push(()=>bind(g,"open",a)),{c(){create_component(r.$$.fragment),m=space(),create_component(g.$$.fragment)},m(t,s){mount_component(r,t,s),insert(t,m,s),mount_component(g,t,s),f=!0},p(t,[s]){const o={};s&16&&(o.$$scope={dirty:s,ctx:t}),r.$set(o);const e={};s&16&&(e.$$scope={dirty:s,ctx:t}),!v&&s&1&&(v=!0,e.open=t[0],add_flush_callback(()=>v=!1)),g.$set(e)},i(t){f||(transition_in(r.$$.fragment,t),transition_in(g.$$.fragment,t),f=!0)},o(t){transition_out(r.$$.fragment,t),transition_out(g.$$.fragment,t),f=!1},d(t){t&&detach(m),destroy_component(r,t),destroy_component(g,t)}}}async function isFlask(){var l;return window.ethereum?(l=await window.ethereum.request({method:"web3_clientVersion"}))==null?void 0:l.includes("flask"):!1}function instance$c(l,r,m){let{callback:g=async()=>{}}=r,v;async function f(){if(m(0,v=!await isFlask()),v)return null;try{const t=await window.ethereum.request({method:"wallet_requestSnaps",params:{[snapId]:{}}});console.log(t)}catch(t){throw console.log(t),t}await g(),connected.set(!0);const i=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"getAddress"}}});address.set(i)}function a(i){v=i,m(0,v)}return l.$$set=i=>{"callback"in i&&m(2,g=i.callback)},[v,f,g,a]}class ConnectButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$c,create_fragment$c,safe_not_equal,{callback:2})}}function create_default_slot$9(l){let r;const m=l[3].default,g=create_slot(m,l,l[4],null);return{c(){g&&g.c()},m(v,f){g&&g.m(v,f),r=!0},p(v,f){g&&g.p&&(!r||f&16)&&update_slot_base(g,m,v,v[4],r?get_slot_changes(m,v[4],f,null):get_all_dirty_from_scope(v[4]),null)},i(v){r||(transition_in(g,v),r=!0)},o(v){transition_out(g,v),r=!1},d(v){g&&g.d(v)}}}function create_fragment$b(l){let r,m;return r=new Button({props:{$$slots:{default:[create_default_slot$9]},$$scope:{ctx:l}}}),r.$on("click",l[0]),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,[v]){const f={};v&16&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function instance$b(l,r,m){let{$$slots:g={},$$scope:v}=r,{method:f}=r,{params:a={}}=r;async function i(){await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:f,params:a}}})}return l.$$set=t=>{"method"in t&&m(1,f=t.method),"params"in t&&m(2,a=t.params),"$$scope"in t&&m(4,v=t.$$scope)},[i,f,a,g,v]}class FunctionButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$b,create_fragment$b,safe_not_equal,{method:1,params:2})}}const Circle_svelte_svelte_type_style_lang="",Circle2_svelte_svelte_type_style_lang="",Circle3_svelte_svelte_type_style_lang="",durationUnitRegex=/[a-zA-Z]/,range=(l,r=0)=>[...Array(l).keys()].map(m=>m+r),DoubleBounce_svelte_svelte_type_style_lang="",GoogleSpin_svelte_svelte_type_style_lang="",ScaleOut_svelte_svelte_type_style_lang="",SpinLine_svelte_svelte_type_style_lang="",Stretch_svelte_svelte_type_style_lang="",BarLoader_svelte_svelte_type_style_lang="",Jumper_svelte_svelte_type_style_lang="",RingLoader_svelte_svelte_type_style_lang="",SyncLoader_svelte_svelte_type_style_lang="",Rainbow_svelte_svelte_type_style_lang="",Firework_svelte_svelte_type_style_lang="",Pulse_svelte_svelte_type_style_lang="",Jellyfish_svelte_svelte_type_style_lang="",Chasing_svelte_svelte_type_style_lang="";function get_each_context$4(l,r,m){const g=l.slice();return g[7]=r[m],g}function create_each_block$4(l){let r;return{c(){r=element("div"),attr(r,"class","dot svelte-1uhddr4"),attr(r,"style","animation-delay: "+(l[7]===1?`${+l[6]/2}${l[5]}`:"0s")+"; "+(l[7]===1?"bottom: 0;":"")+" "+(l[7]===1?"top: auto;":"")),toggle_class(r,"pause-animation",l[4])},m(m,g){insert(m,r,g)},p(m,g){g&16&&toggle_class(r,"pause-animation",m[4])},d(m){m&&detach(r)}}}function create_fragment$a(l){let r,m,g=ensure_array_like(range(2,0)),v=[];for(let f=0;f{"color"in e&&m(0,g=e.color),"unit"in e&&m(1,v=e.unit),"duration"in e&&m(2,f=e.duration),"size"in e&&m(3,a=e.size),"pause"in e&&m(4,i=e.pause)},[g,v,f,a,i,t,s]}class Chasing extends SvelteComponent{constructor(r){super(),init(this,r,instance$a,create_fragment$a,safe_not_equal,{color:0,unit:1,duration:2,size:3,pause:4})}}const Square_svelte_svelte_type_style_lang="",Shadow_svelte_svelte_type_style_lang="",Moon_svelte_svelte_type_style_lang="",Plane_svelte_svelte_type_style_lang="",Diamonds_svelte_svelte_type_style_lang="",Clock_svelte_svelte_type_style_lang="",Wave_svelte_svelte_type_style_lang="",Puff_svelte_svelte_type_style_lang="",ArrowDown_svelte_svelte_type_style_lang="",ArrowUp_svelte_svelte_type_style_lang="";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){var l="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var m=function(t,s,o){if(typeof t!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(o=s),m.modules[t]||(m.payloads[t]=o,m.modules[t]=null)};m.modules={},m.payloads={};var g=function(t,s,o){if(typeof s=="string"){var e=a(t,s);if(e!=null)return o&&o(),e}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var c=[],u=0,h=s.length;u1&&i(s,"")>-1&&(e=RegExp(this.source,g.replace.call(a(this),"g","")),g.replace.call(t.slice(s.index),e,function(){for(var u=1;us.index&&this.lastIndex--}return s},f||(RegExp.prototype.test=function(t){var s=g.exec.call(this,t);return s&&this.global&&!s[0].length&&this.lastIndex>s.index&&this.lastIndex--,!!s});function a(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":"")}function i(t,s,o){if(Array.prototype.indexOf)return t.indexOf(s,o);for(var e=o||0;e0?$>A&&($=A):$==null?$=0:$<0&&($=Math.max(A+$,0)),$+PX)for(he=Be;he--;)this[be+he]=this[X+he];if(G&&$===ve)this.length=ve,this.push.apply(this,z);else for(this.length=ve+G,he=0;he>>0;if(t(P)!="[object Function]")throw new TypeError;for(;++G>>0,G=Array(z),re=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var X=0;X>>0,G=[],re,X=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var be=0;be>>0,G=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var re=0;re>>0,G=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var re=0;re>>0;if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var G=0,re;if(arguments.length>=2)re=arguments[1];else do{if(G in O){re=O[G++];break}if(++G>=z)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;G>>0;if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var G,re=z-1;if(arguments.length>=2)G=arguments[1];else do{if(re in O){G=O[re--];break}if(--re<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do re in this&&(G=P.call(void 0,G,O[re],re,A));while(re--);return G}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(P){var A=k&&t(this)=="[object String]"?this.split(""):te(this),O=A.length>>>0;if(!O)return-1;var z=0;for(arguments.length>1&&(z=se(arguments[1])),z=z>=0?z:Math.max(0,O+z);z>>0;if(!O)return-1;var z=O-1;for(arguments.length>1&&(z=Math.min(z,se(arguments[1]))),z=z>=0?z:O-Math.abs(z);z>=0;z--)if(z in A&&P===A[z])return z;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(P){return P.__proto__||(P.constructor?P.constructor.prototype:a)}),!Object.getOwnPropertyDescriptor){var d="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(P,A){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(d+P);if(s(P,A)){var O,z,G;if(O={enumerable:!0,configurable:!0},h){var re=P.__proto__;P.__proto__=a;var z=c(P,A),G=u(P,A);if(P.__proto__=re,z||G)return z&&(O.get=z),G&&(O.set=G),O}return O.value=P[A],O}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(P){return Object.keys(P)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var $={};for(var P in $)$[P]=null;return $.constructor=$.hasOwnProperty=$.propertyIsEnumerable=$.isPrototypeOf=$.toLocaleString=$.toString=$.valueOf=$.__proto__=null,$},Object.create=function(P,A){var O;if(P===null)O=w();else{if(typeof P!="object")throw new TypeError("typeof prototype["+typeof P+"] != 'object'");var z=function(){};z.prototype=P,O=new z,O.__proto__=P}return A!==void 0&&Object.defineProperties(O,A),O}}function y($){try{return Object.defineProperty($,"sentinel",{}),"sentinel"in $}catch{}}if(Object.defineProperty){var _=y({}),x=typeof document>"u"||y(document.createElement("div"));if(!_||!x)var E=Object.defineProperty}if(!Object.defineProperty||E){var S="Property description must be an object: ",C="Object.defineProperty called on non-object: ",T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(P,A,O){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(C+P);if(typeof O!="object"&&typeof O!="function"||O===null)throw new TypeError(S+O);if(E)try{return E.call(Object,P,A,O)}catch{}if(s(O,"value"))if(h&&(c(P,A)||u(P,A))){var z=P.__proto__;P.__proto__=a,delete P[A],P[A]=O.value,P.__proto__=z}else P[A]=O.value;else{if(!h)throw new TypeError(T);s(O,"get")&&o(P,A,O.get),s(O,"set")&&e(P,A,O.set)}return P}}Object.defineProperties||(Object.defineProperties=function(P,A){for(var O in A)s(A,O)&&Object.defineProperty(P,O,A[O]);return P}),Object.seal||(Object.seal=function(P){return P}),Object.freeze||(Object.freeze=function(P){return P});try{Object.freeze(function(){})}catch{Object.freeze=function(A){return function(z){return typeof z=="function"?z:A(z)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(P){return P}),Object.isSealed||(Object.isSealed=function(P){return!1}),Object.isFrozen||(Object.isFrozen=function(P){return!1}),Object.isExtensible||(Object.isExtensible=function(P){if(Object(P)===P)throw new TypeError;for(var A="";s(P,A);)A+="?";P[A]=!0;var O=s(P,A);return delete P[A],O}),!Object.keys){var R=!0,W=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],j=W.length;for(var L in{toString:null})R=!1;Object.keys=function(P){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError("Object.keys called on a non-object");var A=[];for(var O in P)s(P,O)&&A.push(O);if(R)for(var z=0,G=j;z0||-1)*Math.floor(Math.abs($))),$}var te=function($){if($==null)throw new TypeError("can't convert "+$+" to object");return Object($)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(l,r,m){l("./regexp"),l("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(l,r,m){var g="http://www.w3.org/1999/xhtml";if(r.getDocumentHead=function(v){return v||(v=document),v.head||v.getElementsByTagName("head")[0]||v.documentElement},r.createElement=function(v,f){return document.createElementNS?document.createElementNS(f||g,v):document.createElement(v)},r.hasCssClass=function(v,f){var a=(v.className+"").split(/\s+/g);return a.indexOf(f)!==-1},r.addCssClass=function(v,f){r.hasCssClass(v,f)||(v.className+=" "+f)},r.removeCssClass=function(v,f){for(var a=v.className.split(/\s+/g);;){var i=a.indexOf(f);if(i==-1)break;a.splice(i,1)}v.className=a.join(" ")},r.toggleCssClass=function(v,f){for(var a=v.className.split(/\s+/g),i=!0;;){var t=a.indexOf(f);if(t==-1)break;i=!1,a.splice(t,1)}return i&&a.push(f),v.className=a.join(" "),i},r.setCssClass=function(v,f,a){a?r.addCssClass(v,f):r.removeCssClass(v,f)},r.hasCssString=function(v,f){var a=0,i;if(f=f||document,f.createStyleSheet&&(i=f.styleSheets)){for(;a"u"){r.importCssString=function(){};return}window.pageYOffset!==void 0?(r.getPageScrollTop=function(){return window.pageYOffset},r.getPageScrollLeft=function(){return window.pageXOffset}):(r.getPageScrollTop=function(){return document.body.scrollTop},r.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?r.computedStyle=function(v,f){return f?(window.getComputedStyle(v,"")||{})[f]||"":window.getComputedStyle(v,"")||{}}:r.computedStyle=function(v,f){return f?v.currentStyle[f]:v.currentStyle},r.setInnerHtml=function(v,f){var a=v.cloneNode(!1);return a.innerHTML=f,v.parentNode.replaceChild(a,v),a},"textContent"in document.documentElement?(r.setInnerText=function(v,f){v.textContent=f},r.getInnerText=function(v){return v.textContent}):(r.setInnerText=function(v,f){v.innerText=f},r.getInnerText=function(v){return v.innerText}),r.getParentWindow=function(v){return v.defaultView||v.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(l,r,m){r.inherits=function(g,v){g.super_=v,g.prototype=Object.create(v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(g,v){for(var f in v)g[f]=v[f];return g},r.implement=function(g,v){r.mixin(g,v)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(l,r,m){l("./fixoldbrowsers");var g=l("./oop"),v=function(){var f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},a,i;for(i in f.FUNCTION_KEYS)a=f.FUNCTION_KEYS[i].toLowerCase(),f[a]=parseInt(i,10);for(i in f.PRINTABLE_KEYS)a=f.PRINTABLE_KEYS[i].toLowerCase(),f[a]=parseInt(i,10);return g.mixin(f,f.MODIFIER_KEYS),g.mixin(f,f.PRINTABLE_KEYS),g.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,f[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],s=Math.pow(2,t.length);s--;)f.KEY_MODS[s]=t.filter(function(o){return s&f.KEY_MODS[o]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",f}();g.mixin(r,v),r.keyCodeToString=function(f){var a=v[f];return typeof a!="string"&&(a=String.fromCharCode(f)),a.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(l,r,m){if(r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS},typeof navigator=="object"){var g=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),v=navigator.userAgent;r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",r.isOldGecko=r.isGecko&&parseInt((v.match(/rv:(\d+)/)||[])[1],10)<4,r.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isIPad=v.indexOf("iPad")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!window.MSStream,r.isIOS&&(r.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(l,r,m){var g=l("./keys"),v=l("./useragent"),f=null,a=0;r.addListener=function(e,c,u){if(e.addEventListener)return e.addEventListener(c,u,!1);if(e.attachEvent){var h=function(){u.call(e,window.event)};u._wrapper=h,e.attachEvent("on"+c,h)}},r.removeListener=function(e,c,u){if(e.removeEventListener)return e.removeEventListener(c,u,!1);e.detachEvent&&e.detachEvent("on"+c,u._wrapper||u)},r.stopEvent=function(e){return r.stopPropagation(e),r.preventDefault(e),!1},r.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},r.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},r.getButton=function(e){return e.type=="dblclick"?0:e.type=="contextmenu"||v.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},r.capture=function(e,c,u){function h(b){c&&c(b),u&&u(b),r.removeListener(document,"mousemove",c,!0),r.removeListener(document,"mouseup",h,!0),r.removeListener(document,"dragstart",h,!0)}return r.addListener(document,"mousemove",c,!0),r.addListener(document,"mouseup",h,!0),r.addListener(document,"dragstart",h,!0),h},r.addTouchMoveListener=function(e,c){var u,h;r.addListener(e,"touchstart",function(b){var p=b.touches,k=p[0];u=k.clientX,h=k.clientY}),r.addListener(e,"touchmove",function(b){var p=b.touches;if(!(p.length>1)){var k=p[0];b.wheelX=u-k.clientX,b.wheelY=h-k.clientY,u=k.clientX,h=k.clientY,c(b)}})},r.addMouseWheelListener=function(e,c){"onmousewheel"in e?r.addListener(e,"mousewheel",function(u){var h=8;u.wheelDeltaX!==void 0?(u.wheelX=-u.wheelDeltaX/h,u.wheelY=-u.wheelDeltaY/h):(u.wheelX=0,u.wheelY=-u.wheelDelta/h),c(u)}):"onwheel"in e?r.addListener(e,"wheel",function(u){var h=.35;switch(u.deltaMode){case u.DOM_DELTA_PIXEL:u.wheelX=u.deltaX*h||0,u.wheelY=u.deltaY*h||0;break;case u.DOM_DELTA_LINE:case u.DOM_DELTA_PAGE:u.wheelX=(u.deltaX||0)*5,u.wheelY=(u.deltaY||0)*5;break}c(u)}):r.addListener(e,"DOMMouseScroll",function(u){u.axis&&u.axis==u.HORIZONTAL_AXIS?(u.wheelX=(u.detail||0)*5,u.wheelY=0):(u.wheelX=0,u.wheelY=(u.detail||0)*5),c(u)})},r.addMultiMouseDownListener=function(e,c,u,h){var b=0,p,k,d,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function y(x){if(r.getButton(x)!==0?b=0:x.detail>1?(b++,b>4&&(b=1)):b=1,v.isIE){var E=Math.abs(x.clientX-p)>5||Math.abs(x.clientY-k)>5;(!d||E)&&(b=1),d&&clearTimeout(d),d=setTimeout(function(){d=null},c[b-1]||600),b==1&&(p=x.clientX,k=x.clientY)}if(x._clicks=b,u[h]("mousedown",x),b>4)b=0;else if(b>1)return u[h](w[b],x)}function _(x){b=2,d&&clearTimeout(d),d=setTimeout(function(){d=null},c[b-1]||600),u[h]("mousedown",x),u[h](w[b],x)}Array.isArray(e)||(e=[e]),e.forEach(function(x){r.addListener(x,"mousedown",y),v.isOldIE&&r.addListener(x,"dblclick",_)})};var i=v.isMac&&v.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};r.getModifierString=function(e){return g.KEY_MODS[i(e)]};function t(e,c,u){var h=i(c);if(!v.isMac&&f){if(c.getModifierState&&(c.getModifierState("OS")||c.getModifierState("Win"))&&(h|=8),f.altGr)if((3&h)!=3)f.altGr=0;else return;if(u===18||u===17){var b="location"in c?c.location:c.keyLocation;if(u===17&&b===1)f[u]==1&&(a=c.timeStamp);else if(u===18&&h===3&&b===2){var p=c.timeStamp-a;p<50&&(f.altGr=!0)}}}if(u in g.MODIFIER_KEYS&&(u=-1),h&8&&u>=91&&u<=93&&(u=-1),!h&&u===13){var b="location"in c?c.location:c.keyLocation;if(b===3&&(e(c,h,-u),c.defaultPrevented))return}if(v.isChromeOS&&h&8){if(e(c,h,u),c.defaultPrevented)return;h&=-9}return!h&&!(u in g.FUNCTION_KEYS)&&!(u in g.PRINTABLE_KEYS)?!1:e(c,h,u)}r.addCommandKeyListener=function(e,c){var u=r.addListener;if(v.isOldGecko||v.isOpera&&!("KeyboardEvent"in window)){var h=null;u(e,"keydown",function(p){h=p.keyCode}),u(e,"keypress",function(p){return t(c,p,h)})}else{var b=null;u(e,"keydown",function(p){f[p.keyCode]=(f[p.keyCode]||0)+1;var k=t(c,p,p.keyCode);return b=p.defaultPrevented,k}),u(e,"keypress",function(p){b&&(p.ctrlKey||p.altKey||p.shiftKey||p.metaKey)&&(r.stopEvent(p),b=null)}),u(e,"keyup",function(p){f[p.keyCode]=null}),f||(s(),u(window,"focus",s))}};function s(){f=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var o=1;r.nextTick=function(e,c){c=c||window;var u="zero-timeout-message-"+o;r.addListener(c,"message",function h(b){b.data==u&&(r.stopPropagation(b),r.removeListener(c,"message",h),e())}),c.postMessage(u,"*")}}r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(e){setTimeout(e,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(l,r,m){r.last=function(f){return f[f.length-1]},r.stringReverse=function(f){return f.split("").reverse().join("")},r.stringRepeat=function(f,a){for(var i="";a>0;)a&1&&(i+=f),(a>>=1)&&(f+=f);return i};var g=/^\s\s*/,v=/\s\s*$/;r.stringTrimLeft=function(f){return f.replace(g,"")},r.stringTrimRight=function(f){return f.replace(v,"")},r.copyObject=function(f){var a={};for(var i in f)a[i]=f[i];return a},r.copyArray=function(f){for(var a=[],i=0,t=f.length;i{g(8,r=assign(assign({},r),exclude_internal_props(u))),g(7,v=compute_rest_props(r,p)),"fillPercent"in u&&g(0,f=u.fillPercent),"fillColor"in u&&g(1,a=u.fillColor),"strokeColor"in u&&g(2,i=u.strokeColor),"size"in u&&g(3,t=u.size),"ariaLabel"in u&&g(4,s=u.ariaLabel),"id"in u&&g(5,o=u.id),"role"in u&&g(6,e=u.role)},r=exclude_internal_props(r),[f,a,i,t,s,o,e,v,r,c]}class Star extends SvelteComponent{constructor(r){super(),init(this,r,instance$j,create_fragment$j,safe_not_equal,{fillPercent:0,fillColor:1,strokeColor:2,size:3,ariaLabel:4,id:5,role:6})}}const get_text_slot_changes=l=>({}),get_text_slot_context=l=>({});function get_each_context$5(l,r,g){const p=l.slice();return p[17]=r[g],p}function get_each_context_1(l,r,g){const p=l.slice();return p[17]=r[g],p}function create_else_block$4(l){let r,g,p,v,f,a=ensure_array_like(Array(l[8])),i=[];for(let h=0;htransition_out(i[h],1,1,()=>{i[h]=null});let s=l[9]&&create_if_block_2$3(l),o=ensure_array_like(Array(l[10])),e=[];for(let h=0;htransition_out(e[h],1,1,()=>{e[h]=null});let u=l[12].text&&create_if_block_1$5(l);return{c(){for(let h=0;h{u=null}),check_outros())},i(h){if(!f){for(let b=0;b{destroy_component(u,1)}),check_outros()}i?(r=construct_svelte_component(i,t(e)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,g.parentNode,g)):r=null}else if(i){const u={};c&2&&(u.size=e[1]),r.$set(u)}(!a||c&4)&&set_data(v,e[2]),o&&o.p&&(!a||c&16384)&&update_slot_base(o,s,e,e[14],a?get_slot_changes(s,e[14],c,null):get_all_dirty_from_scope(e[14]),null)},i(e){a||(r&&transition_in(r.$$.fragment,e),transition_in(o,e),a=!0)},o(e){r&&transition_out(r.$$.fragment,e),transition_out(o,e),a=!1},d(e){e&&(detach(g),detach(p),detach(f)),r&&destroy_component(r,e),o&&o.d(e)}}}function create_each_block_1(l){let r,g,p;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:100,id:a[6]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),g=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,g,i),p=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,g.parentNode,g)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),r.$set(t)}},i(a){p||(r&&transition_in(r.$$.fragment,a),p=!0)},o(a){r&&transition_out(r.$$.fragment,a),p=!1},d(a){a&&detach(g),r&&destroy_component(r,a)}}}function create_if_block_2$3(l){let r,g,p;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:a[9],id:a[3]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),g=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,g,i),p=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,g.parentNode,g)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),i&8&&(t.id=a[3]),r.$set(t)}},i(a){p||(r&&transition_in(r.$$.fragment,a),p=!0)},o(a){r&&transition_out(r.$$.fragment,a),p=!1},d(a){a&&detach(g),r&&destroy_component(r,a)}}}function create_each_block$5(l){let r,g,p;var v=l[4];function f(a,i){return{props:{size:a[1],fillPercent:0,id:a[7]}}}return v&&(r=construct_svelte_component(v,f(l))),{c(){r&&create_component(r.$$.fragment),g=empty()},m(a,i){r&&mount_component(r,a,i),insert(a,g,i),p=!0},p(a,i){if(i&16&&v!==(v=a[4])){if(r){group_outros();const t=r;transition_out(t.$$.fragment,1,0,()=>{destroy_component(t,1)}),check_outros()}v?(r=construct_svelte_component(v,f(a)),create_component(r.$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,g.parentNode,g)):r=null}else if(v){const t={};i&2&&(t.size=a[1]),r.$set(t)}},i(a){p||(r&&transition_in(r.$$.fragment,a),p=!0)},o(a){r&&transition_out(r.$$.fragment,a),p=!1},d(a){a&&detach(g),r&&destroy_component(r,a)}}}function create_if_block_1$5(l){let r;const g=l[15].text,p=create_slot(g,l,l[14],get_text_slot_context);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&16384)&&update_slot_base(p,g,v,v[14],r?get_slot_changes(g,v[14],f,get_text_slot_changes):get_all_dirty_from_scope(v[14]),get_text_slot_context)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_fragment$i(l){let r,g,p,v,f;const a=[create_if_block$9,create_else_block$4],i=[];function t(s,o){return s[5]?0:1}return g=t(l),p=i[g]=a[g](l),{c(){r=element("div"),p.c(),attr(r,"class",v=twMerge(l[0],l[11].class))},m(s,o){insert(s,r,o),i[g].m(r,null),f=!0},p(s,[o]){let e=g;g=t(s),g===e?i[g].p(s,o):(group_outros(),transition_out(i[e],1,1,()=>{i[e]=null}),check_outros(),p=i[g],p?p.p(s,o):(p=i[g]=a[g](s),p.c()),transition_in(p,1),p.m(r,null)),(!f||o&2049&&v!==(v=twMerge(s[0],s[11].class)))&&attr(r,"class",v)},i(s){f||(transition_in(p),f=!0)},o(s){transition_out(p),f=!1},d(s){s&&detach(r),i[g].d()}}}function instance$i(l,r,g){let{$$slots:p={},$$scope:v}=r;const f=compute_slots(p);let{divClass:a="flex items-center"}=r,{size:i=24}=r,{total:t=5}=r,{rating:s=4}=r,{partialId:o="partialStar"+generateId()}=r,{icon:e=Star}=r,{count:c=!1}=r;const u=generateId(),h=generateId();let b=Math.floor(s),m=s-b,k=Math.round(m*100),d=t-(b+Math.ceil(m));return l.$$set=w=>{g(11,r=assign(assign({},r),exclude_internal_props(w))),"divClass"in w&&g(0,a=w.divClass),"size"in w&&g(1,i=w.size),"total"in w&&g(13,t=w.total),"rating"in w&&g(2,s=w.rating),"partialId"in w&&g(3,o=w.partialId),"icon"in w&&g(4,e=w.icon),"count"in w&&g(5,c=w.count),"$$scope"in w&&g(14,v=w.$$scope)},r=exclude_internal_props(r),[a,i,s,o,e,c,u,h,b,k,d,r,f,t,v,p]}class Rating extends SvelteComponent{constructor(r){super(),init(this,r,instance$i,create_fragment$i,safe_not_equal,{divClass:0,size:1,total:13,rating:2,partialId:3,icon:4,count:5})}}const get_title_slot_changes$1=l=>({}),get_title_slot_context$1=l=>({});function fallback_block$1(l){let r;return{c(){r=text(l[1])},m(g,p){insert(g,r,p)},p(g,p){p&2&&set_data(r,g[1])},d(g){g&&detach(r)}}}function create_if_block$8(l){let r,g,p,v,f;const a=l[10].default,i=create_slot(a,l,l[9],null);return{c(){r=element("div"),g=element("div"),i&&i.c(),attr(r,"class","hidden tab_content_placeholder")},m(t,s){insert(t,r,s),append(r,g),i&&i.m(g,null),p=!0,v||(f=action_destroyer(l[3].call(null,g)),v=!0)},p(t,s){i&&i.p&&(!p||s&512)&&update_slot_base(i,a,t,t[9],p?get_slot_changes(a,t[9],s,null):get_all_dirty_from_scope(t[9]),null)},i(t){p||(transition_in(i,t),p=!0)},o(t){transition_out(i,t),p=!1},d(t){t&&detach(r),i&&i.d(t),v=!1,f()}}}function create_fragment$h(l){let r,g,p,v,f,a,i;const t=l[10].title,s=create_slot(t,l,l[9],get_title_slot_context$1),o=s||fallback_block$1(l);let e=[{type:"button"},{role:"tab"},l[5],{class:l[2]}],c={};for(let h=0;h{u=null}),check_outros()),(!f||b&16&&v!==(v=twMerge("group",h[4].class)))&&attr(r,"class",v)},i(h){f||(transition_in(o,h),transition_in(u),f=!0)},o(h){transition_out(o,h),transition_out(u),f=!1},d(h){h&&detach(r),o&&o.d(h),u&&u.d(),a=!1,run_all(i)}}}function instance$h(l,r,g){const p=["open","title","activeClasses","inactiveClasses","defaultClass"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r,{open:i=!1}=r,{title:t="Tab title"}=r,{activeClasses:s=void 0}=r,{inactiveClasses:o=void 0}=r,{defaultClass:e="inline-block text-sm font-medium text-center disabled:cursor-not-allowed"}=r;const c=getContext("ctx")??{},u=c.selected??writable();function h(R){return u.set(R),{destroy:u.subscribe(j=>{j!==R&&g(0,i=!1)})}}let b;function m(R){bubble.call(this,l,R)}function k(R){bubble.call(this,l,R)}function d(R){bubble.call(this,l,R)}function w(R){bubble.call(this,l,R)}function y(R){bubble.call(this,l,R)}function _(R){bubble.call(this,l,R)}function x(R){bubble.call(this,l,R)}function E(R){bubble.call(this,l,R)}function S(R){bubble.call(this,l,R)}function C(R){bubble.call(this,l,R)}const T=()=>g(0,i=!0);return l.$$set=R=>{g(4,r=assign(assign({},r),exclude_internal_props(R))),g(5,v=compute_rest_props(r,p)),"open"in R&&g(0,i=R.open),"title"in R&&g(1,t=R.title),"activeClasses"in R&&g(6,s=R.activeClasses),"inactiveClasses"in R&&g(7,o=R.inactiveClasses),"defaultClass"in R&&g(8,e=R.defaultClass),"$$scope"in R&&g(9,a=R.$$scope)},l.$$.update=()=>{l.$$.dirty&449&&g(2,b=twMerge(e,i?s??c.activeClasses:o??c.inactiveClasses,i&&"active"))},r=exclude_internal_props(r),[i,t,b,h,r,v,s,o,e,a,f,m,k,d,w,y,_,x,E,S,C,T]}class TabItem extends SvelteComponent{constructor(r){super(),init(this,r,instance$h,create_fragment$h,safe_not_equal,{open:0,title:1,activeClasses:6,inactiveClasses:7,defaultClass:8})}}const get_divider_slot_changes=l=>({}),get_divider_slot_context=l=>({}),get_default_slot_changes=l=>({style:l&2}),get_default_slot_context=l=>({style:l[1]});function create_if_block$7(l){let r;const g=l[9].divider,p=create_slot(g,l,l[8],get_divider_slot_context),v=p||fallback_block();return{c(){v&&v.c()},m(f,a){v&&v.m(f,a),r=!0},p(f,a){p&&p.p&&(!r||a&256)&&update_slot_base(p,g,f,f[8],r?get_slot_changes(g,f[8],a,get_divider_slot_changes):get_all_dirty_from_scope(f[8]),get_divider_slot_context)},i(f){r||(transition_in(v,f),r=!0)},o(f){transition_out(v,f),r=!1},d(f){v&&v.d(f)}}}function fallback_block(l){let r;return{c(){r=element("div"),attr(r,"class","h-px bg-gray-200 dark:bg-gray-700")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_fragment$g(l){let r,g,p,v,f,a,i;const t=l[9].default,s=create_slot(t,l,l[8],get_default_slot_context);let o=l[0]&&create_if_block$7(l);return{c(){r=element("ul"),s&&s.c(),g=space(),o&&o.c(),p=space(),v=element("div"),attr(r,"class",l[3]),attr(v,"class",l[2]),attr(v,"role","tabpanel"),attr(v,"aria-labelledby","id-tab")},m(e,c){insert(e,r,c),s&&s.m(r,null),insert(e,g,c),o&&o.m(e,c),insert(e,p,c),insert(e,v,c),f=!0,a||(i=action_destroyer(l[4].call(null,v)),a=!0)},p(e,[c]){s&&s.p&&(!f||c&258)&&update_slot_base(s,t,e,e[8],f?get_slot_changes(t,e[8],c,get_default_slot_changes):get_all_dirty_from_scope(e[8]),get_default_slot_context),(!f||c&8)&&attr(r,"class",e[3]),e[0]?o?(o.p(e,c),c&1&&transition_in(o,1)):(o=create_if_block$7(e),o.c(),transition_in(o,1),o.m(p.parentNode,p)):o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()),(!f||c&4)&&attr(v,"class",e[2])},i(e){f||(transition_in(s,e),transition_in(o),f=!0)},o(e){transition_out(s,e),transition_out(o),f=!1},d(e){e&&(detach(r),detach(g),detach(p),detach(v)),s&&s.d(e),o&&o.d(e),a=!1,i()}}}function instance$g(l,r,g){let p,{$$slots:v={},$$scope:f}=r,{style:a="none"}=r,{defaultClass:i="flex flex-wrap space-x-2"}=r,{contentClass:t="p-4 bg-gray-50 rounded-lg dark:bg-gray-800 mt-4"}=r,{divider:s=!0}=r,{activeClasses:o="p-4 text-primary-600 bg-gray-100 rounded-t-lg dark:bg-gray-800 dark:text-primary-500"}=r,{inactiveClasses:e="p-4 text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}=r;const c={full:"p-4 w-full group-first:rounded-l-lg group-last:rounded-r-lg text-gray-900 bg-gray-100 focus:ring-4 focus:ring-primary-300 focus:outline-none dark:bg-gray-700 dark:text-white",pill:"py-3 px-4 text-white bg-primary-600 rounded-lg",underline:"p-4 text-primary-600 border-b-2 border-primary-600 dark:text-primary-500 dark:border-primary-500",none:""},u={full:"p-4 w-full group-first:rounded-l-lg group-last:rounded-r-lg text-gray-500 dark:text-gray-400 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-primary-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",pill:"py-3 px-4 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",underline:"p-4 border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 text-gray-500 dark:text-gray-400",none:""},h={activeClasses:c[a]||o,inactiveClasses:u[a]||e,selected:writable()};setContext("ctx",h);function b(m){return{destroy:h.selected.subscribe(d=>{d&&m.replaceChildren(d)})}}return l.$$set=m=>{g(13,r=assign(assign({},r),exclude_internal_props(m))),"style"in m&&g(1,a=m.style),"defaultClass"in m&&g(5,i=m.defaultClass),"contentClass"in m&&g(2,t=m.contentClass),"divider"in m&&g(0,s=m.divider),"activeClasses"in m&&g(6,o=m.activeClasses),"inactiveClasses"in m&&g(7,e=m.inactiveClasses),"$$scope"in m&&g(8,f=m.$$scope)},l.$$.update=()=>{l.$$.dirty&3&&g(0,s=["full","pill"].includes(a)?!1:s),g(3,p=twMerge(i,a==="underline"&&"-mb-px",r.class))},r=exclude_internal_props(r),[s,a,t,p,b,i,o,e,f,v]}class Tabs extends SvelteComponent{constructor(r){super(),init(this,r,instance$g,create_fragment$g,safe_not_equal,{style:1,defaultClass:5,contentClass:2,divider:0,activeClasses:6,inactiveClasses:7})}}function create_else_block$3(l){let r;return{c(){r=element("hr"),attr(r,"class",l[0])},m(g,p){insert(g,r,p)},p:noop,i:noop,o:noop,d(g){g&&detach(r)}}}function create_if_block$6(l){let r,g,p,v,f;const a=l[12].default,i=create_slot(a,l,l[11],null);let t=[l[4],{class:l[1]}],s={};for(let o=0;o{a[o]=null}),check_outros(),g=a[r],g?g.p(t,s):(g=a[r]=f[r](t),g.c()),transition_in(g,1),g.m(p.parentNode,p))},i(t){v||(transition_in(g),v=!0)},o(t){transition_out(g),v=!1},d(t){t&&detach(p),a[r].d(t)}}}function instance$f(l,r,g){const p=["icon","divClass","hrClass","iconDivClass","textSpanClass","innerDivClass"];let v=compute_rest_props(r,p),{$$slots:f={},$$scope:a}=r;const i=compute_slots(f);let{icon:t=!1}=r,{divClass:s="inline-flex items-center justify-center w-full"}=r,{hrClass:o="h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"}=r,{iconDivClass:e="absolute left-1/2 px-4 bg-white -translate-x-1/2 "}=r,{textSpanClass:c="absolute px-3 font-medium text-gray-900 -translate-x-1/2 bg-white left-1/2 dark:text-white dark:bg-gray-900 "}=r,{innerDivClass:u="absolute px-4 -translate-x-1/2 bg-white left-1/2 dark:bg-gray-900"}=r,h=twMerge(o,r.classHr),b=twMerge(s,i&&"relative",r.classDiv),m=twMerge(u,t?e:c,r.classInnerDiv);return l.$$set=k=>{g(13,r=assign(assign({},r),exclude_internal_props(k))),g(4,v=compute_rest_props(r,p)),"icon"in k&&g(5,t=k.icon),"divClass"in k&&g(6,s=k.divClass),"hrClass"in k&&g(7,o=k.hrClass),"iconDivClass"in k&&g(8,e=k.iconDivClass),"textSpanClass"in k&&g(9,c=k.textSpanClass),"innerDivClass"in k&&g(10,u=k.innerDivClass),"$$scope"in k&&g(11,a=k.$$scope)},r=exclude_internal_props(r),[h,b,m,i,v,t,s,o,e,c,u,a,f]}class Hr extends SvelteComponent{constructor(r){super(),init(this,r,instance$f,create_fragment$f,safe_not_equal,{icon:5,divClass:6,hrClass:7,iconDivClass:8,textSpanClass:9,innerDivClass:10})}}const connected=writable(),network=writable("testnet"),address=writable(),testnet=writable(!0);function create_default_slot_1$6(l){let r;return{c(){r=text("Connect")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot$b(l){let r,g,p,v,f,a,i;return{c(){r=element("p"),r.textContent="This Demo Requires Metamask Flask",g=space(),p=element("hr"),v=space(),f=element("p"),f.textContent="Though it will be on standard metamask before too long",a=space(),i=element("p"),i.innerHTML='Install flask here: https://metamask.io/flask/',set_style(r,"font-size","x-large")},m(t,s){insert(t,r,s),insert(t,g,s),insert(t,p,s),insert(t,v,s),insert(t,f,s),insert(t,a,s),insert(t,i,s)},p:noop,d(t){t&&(detach(r),detach(g),detach(p),detach(v),detach(f),detach(a),detach(i))}}}function create_fragment$e(l){let r,g,p,v,f;r=new Button({props:{$$slots:{default:[create_default_slot_1$6]},$$scope:{ctx:l}}}),r.$on("click",l[1]);function a(t){l[3](t)}let i={title:"Flask Not Detected",autoclose:!0,$$slots:{default:[create_default_slot$b]},$$scope:{ctx:l}};return l[0]!==void 0&&(i.open=l[0]),p=new Modal({props:i}),binding_callbacks.push(()=>bind(p,"open",a)),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment)},m(t,s){mount_component(r,t,s),insert(t,g,s),mount_component(p,t,s),f=!0},p(t,[s]){const o={};s&16&&(o.$$scope={dirty:s,ctx:t}),r.$set(o);const e={};s&16&&(e.$$scope={dirty:s,ctx:t}),!v&&s&1&&(v=!0,e.open=t[0],add_flush_callback(()=>v=!1)),p.$set(e)},i(t){f||(transition_in(r.$$.fragment,t),transition_in(p.$$.fragment,t),f=!0)},o(t){transition_out(r.$$.fragment,t),transition_out(p.$$.fragment,t),f=!1},d(t){t&&detach(g),destroy_component(r,t),destroy_component(p,t)}}}async function isFlask(){var l;return window.ethereum?(l=await window.ethereum.request({method:"web3_clientVersion"}))==null?void 0:l.includes("flask"):!1}function instance$e(l,r,g){let{callback:p=async()=>{}}=r,v;async function f(){if(g(0,v=!await isFlask()),v)return null;try{const t=await window.ethereum.request({method:"wallet_requestSnaps",params:{[snapId]:{}}});console.log(t)}catch(t){throw console.log(t),t}await p(),connected.set(!0);const i=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"getAddress"}}});address.set(i)}function a(i){v=i,g(0,v)}return l.$$set=i=>{"callback"in i&&g(2,p=i.callback)},[v,f,p,a]}class ConnectButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$e,create_fragment$e,safe_not_equal,{callback:2})}}function create_default_slot$a(l){let r;const g=l[3].default,p=create_slot(g,l,l[4],null);return{c(){p&&p.c()},m(v,f){p&&p.m(v,f),r=!0},p(v,f){p&&p.p&&(!r||f&16)&&update_slot_base(p,g,v,v[4],r?get_slot_changes(g,v[4],f,null):get_all_dirty_from_scope(v[4]),null)},i(v){r||(transition_in(p,v),r=!0)},o(v){transition_out(p,v),r=!1},d(v){p&&p.d(v)}}}function create_fragment$d(l){let r,g;return r=new Button({props:{$$slots:{default:[create_default_slot$a]},$$scope:{ctx:l}}}),r.$on("click",l[0]),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,[v]){const f={};v&16&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function instance$d(l,r,g){let{$$slots:p={},$$scope:v}=r,{method:f}=r,{params:a={}}=r;async function i(){await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:f,params:a}}})}return l.$$set=t=>{"method"in t&&g(1,f=t.method),"params"in t&&g(2,a=t.params),"$$scope"in t&&g(4,v=t.$$scope)},[i,f,a,p,v]}class FunctionButton extends SvelteComponent{constructor(r){super(),init(this,r,instance$d,create_fragment$d,safe_not_equal,{method:1,params:2})}}const Circle_svelte_svelte_type_style_lang="",Circle2_svelte_svelte_type_style_lang="",Circle3_svelte_svelte_type_style_lang="",durationUnitRegex=/[a-zA-Z]/,range=(l,r=0)=>[...Array(l).keys()].map(g=>g+r),DoubleBounce_svelte_svelte_type_style_lang="",GoogleSpin_svelte_svelte_type_style_lang="",ScaleOut_svelte_svelte_type_style_lang="",SpinLine_svelte_svelte_type_style_lang="",Stretch_svelte_svelte_type_style_lang="",BarLoader_svelte_svelte_type_style_lang="",Jumper_svelte_svelte_type_style_lang="",RingLoader_svelte_svelte_type_style_lang="",SyncLoader_svelte_svelte_type_style_lang="",Rainbow_svelte_svelte_type_style_lang="",Firework_svelte_svelte_type_style_lang="",Pulse_svelte_svelte_type_style_lang="",Jellyfish_svelte_svelte_type_style_lang="",Chasing_svelte_svelte_type_style_lang="";function get_each_context$4(l,r,g){const p=l.slice();return p[7]=r[g],p}function create_each_block$4(l){let r;return{c(){r=element("div"),attr(r,"class","dot svelte-1uhddr4"),attr(r,"style","animation-delay: "+(l[7]===1?`${+l[6]/2}${l[5]}`:"0s")+"; "+(l[7]===1?"bottom: 0;":"")+" "+(l[7]===1?"top: auto;":"")),toggle_class(r,"pause-animation",l[4])},m(g,p){insert(g,r,p)},p(g,p){p&16&&toggle_class(r,"pause-animation",g[4])},d(g){g&&detach(r)}}}function create_fragment$c(l){let r,g,p=ensure_array_like(range(2,0)),v=[];for(let f=0;f{"color"in e&&g(0,p=e.color),"unit"in e&&g(1,v=e.unit),"duration"in e&&g(2,f=e.duration),"size"in e&&g(3,a=e.size),"pause"in e&&g(4,i=e.pause)},[p,v,f,a,i,t,s]}class Chasing extends SvelteComponent{constructor(r){super(),init(this,r,instance$c,create_fragment$c,safe_not_equal,{color:0,unit:1,duration:2,size:3,pause:4})}}const Square_svelte_svelte_type_style_lang="",Shadow_svelte_svelte_type_style_lang="",Moon_svelte_svelte_type_style_lang="",Plane_svelte_svelte_type_style_lang="",Diamonds_svelte_svelte_type_style_lang="",Clock_svelte_svelte_type_style_lang="",Wave_svelte_svelte_type_style_lang="",Puff_svelte_svelte_type_style_lang="",ArrowDown_svelte_svelte_type_style_lang="",ArrowUp_svelte_svelte_type_style_lang="";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){var l="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var g=function(t,s,o){if(typeof t!="string"){g.original?g.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(o=s),g.modules[t]||(g.payloads[t]=o,g.modules[t]=null)};g.modules={},g.payloads={};var p=function(t,s,o){if(typeof s=="string"){var e=a(t,s);if(e!=null)return o&&o(),e}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var c=[],u=0,h=s.length;u1&&i(s,"")>-1&&(e=RegExp(this.source,p.replace.call(a(this),"g","")),p.replace.call(t.slice(s.index),e,function(){for(var u=1;us.index&&this.lastIndex--}return s},f||(RegExp.prototype.test=function(t){var s=p.exec.call(this,t);return s&&this.global&&!s[0].length&&this.lastIndex>s.index&&this.lastIndex--,!!s});function a(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":"")}function i(t,s,o){if(Array.prototype.indexOf)return t.indexOf(s,o);for(var e=o||0;e0?$>A&&($=A):$==null?$=0:$<0&&($=Math.max(A+$,0)),$+PX)for(he=Be;he--;)this[be+he]=this[X+he];if(G&&$===ve)this.length=ve,this.push.apply(this,z);else for(this.length=ve+G,he=0;he>>0;if(t(P)!="[object Function]")throw new TypeError;for(;++G>>0,G=Array(z),re=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var X=0;X>>0,G=[],re,X=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var be=0;be>>0,G=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var re=0;re>>0,G=arguments[1];if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");for(var re=0;re>>0;if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var G=0,re;if(arguments.length>=2)re=arguments[1];else do{if(G in O){re=O[G++];break}if(++G>=z)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;G>>0;if(t(P)!="[object Function]")throw new TypeError(P+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var G,re=z-1;if(arguments.length>=2)G=arguments[1];else do{if(re in O){G=O[re--];break}if(--re<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do re in this&&(G=P.call(void 0,G,O[re],re,A));while(re--);return G}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(P){var A=k&&t(this)=="[object String]"?this.split(""):te(this),O=A.length>>>0;if(!O)return-1;var z=0;for(arguments.length>1&&(z=se(arguments[1])),z=z>=0?z:Math.max(0,O+z);z>>0;if(!O)return-1;var z=O-1;for(arguments.length>1&&(z=Math.min(z,se(arguments[1]))),z=z>=0?z:O-Math.abs(z);z>=0;z--)if(z in A&&P===A[z])return z;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(P){return P.__proto__||(P.constructor?P.constructor.prototype:a)}),!Object.getOwnPropertyDescriptor){var d="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(P,A){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(d+P);if(s(P,A)){var O,z,G;if(O={enumerable:!0,configurable:!0},h){var re=P.__proto__;P.__proto__=a;var z=c(P,A),G=u(P,A);if(P.__proto__=re,z||G)return z&&(O.get=z),G&&(O.set=G),O}return O.value=P[A],O}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(P){return Object.keys(P)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var $={};for(var P in $)$[P]=null;return $.constructor=$.hasOwnProperty=$.propertyIsEnumerable=$.isPrototypeOf=$.toLocaleString=$.toString=$.valueOf=$.__proto__=null,$},Object.create=function(P,A){var O;if(P===null)O=w();else{if(typeof P!="object")throw new TypeError("typeof prototype["+typeof P+"] != 'object'");var z=function(){};z.prototype=P,O=new z,O.__proto__=P}return A!==void 0&&Object.defineProperties(O,A),O}}function y($){try{return Object.defineProperty($,"sentinel",{}),"sentinel"in $}catch{}}if(Object.defineProperty){var _=y({}),x=typeof document>"u"||y(document.createElement("div"));if(!_||!x)var E=Object.defineProperty}if(!Object.defineProperty||E){var S="Property description must be an object: ",C="Object.defineProperty called on non-object: ",T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(P,A,O){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(C+P);if(typeof O!="object"&&typeof O!="function"||O===null)throw new TypeError(S+O);if(E)try{return E.call(Object,P,A,O)}catch{}if(s(O,"value"))if(h&&(c(P,A)||u(P,A))){var z=P.__proto__;P.__proto__=a,delete P[A],P[A]=O.value,P.__proto__=z}else P[A]=O.value;else{if(!h)throw new TypeError(T);s(O,"get")&&o(P,A,O.get),s(O,"set")&&e(P,A,O.set)}return P}}Object.defineProperties||(Object.defineProperties=function(P,A){for(var O in A)s(A,O)&&Object.defineProperty(P,O,A[O]);return P}),Object.seal||(Object.seal=function(P){return P}),Object.freeze||(Object.freeze=function(P){return P});try{Object.freeze(function(){})}catch{Object.freeze=function(A){return function(z){return typeof z=="function"?z:A(z)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(P){return P}),Object.isSealed||(Object.isSealed=function(P){return!1}),Object.isFrozen||(Object.isFrozen=function(P){return!1}),Object.isExtensible||(Object.isExtensible=function(P){if(Object(P)===P)throw new TypeError;for(var A="";s(P,A);)A+="?";P[A]=!0;var O=s(P,A);return delete P[A],O}),!Object.keys){var R=!0,W=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],j=W.length;for(var L in{toString:null})R=!1;Object.keys=function(P){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError("Object.keys called on a non-object");var A=[];for(var O in P)s(P,O)&&A.push(O);if(R)for(var z=0,G=j;z0||-1)*Math.floor(Math.abs($))),$}var te=function($){if($==null)throw new TypeError("can't convert "+$+" to object");return Object($)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(l,r,g){l("./regexp"),l("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(l,r,g){var p="http://www.w3.org/1999/xhtml";if(r.getDocumentHead=function(v){return v||(v=document),v.head||v.getElementsByTagName("head")[0]||v.documentElement},r.createElement=function(v,f){return document.createElementNS?document.createElementNS(f||p,v):document.createElement(v)},r.hasCssClass=function(v,f){var a=(v.className+"").split(/\s+/g);return a.indexOf(f)!==-1},r.addCssClass=function(v,f){r.hasCssClass(v,f)||(v.className+=" "+f)},r.removeCssClass=function(v,f){for(var a=v.className.split(/\s+/g);;){var i=a.indexOf(f);if(i==-1)break;a.splice(i,1)}v.className=a.join(" ")},r.toggleCssClass=function(v,f){for(var a=v.className.split(/\s+/g),i=!0;;){var t=a.indexOf(f);if(t==-1)break;i=!1,a.splice(t,1)}return i&&a.push(f),v.className=a.join(" "),i},r.setCssClass=function(v,f,a){a?r.addCssClass(v,f):r.removeCssClass(v,f)},r.hasCssString=function(v,f){var a=0,i;if(f=f||document,f.createStyleSheet&&(i=f.styleSheets)){for(;a"u"){r.importCssString=function(){};return}window.pageYOffset!==void 0?(r.getPageScrollTop=function(){return window.pageYOffset},r.getPageScrollLeft=function(){return window.pageXOffset}):(r.getPageScrollTop=function(){return document.body.scrollTop},r.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?r.computedStyle=function(v,f){return f?(window.getComputedStyle(v,"")||{})[f]||"":window.getComputedStyle(v,"")||{}}:r.computedStyle=function(v,f){return f?v.currentStyle[f]:v.currentStyle},r.setInnerHtml=function(v,f){var a=v.cloneNode(!1);return a.innerHTML=f,v.parentNode.replaceChild(a,v),a},"textContent"in document.documentElement?(r.setInnerText=function(v,f){v.textContent=f},r.getInnerText=function(v){return v.textContent}):(r.setInnerText=function(v,f){v.innerText=f},r.getInnerText=function(v){return v.innerText}),r.getParentWindow=function(v){return v.defaultView||v.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(l,r,g){r.inherits=function(p,v){p.super_=v,p.prototype=Object.create(v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(p,v){for(var f in v)p[f]=v[f];return p},r.implement=function(p,v){r.mixin(p,v)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(l,r,g){l("./fixoldbrowsers");var p=l("./oop"),v=function(){var f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},a,i;for(i in f.FUNCTION_KEYS)a=f.FUNCTION_KEYS[i].toLowerCase(),f[a]=parseInt(i,10);for(i in f.PRINTABLE_KEYS)a=f.PRINTABLE_KEYS[i].toLowerCase(),f[a]=parseInt(i,10);return p.mixin(f,f.MODIFIER_KEYS),p.mixin(f,f.PRINTABLE_KEYS),p.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,f[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],s=Math.pow(2,t.length);s--;)f.KEY_MODS[s]=t.filter(function(o){return s&f.KEY_MODS[o]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",f}();p.mixin(r,v),r.keyCodeToString=function(f){var a=v[f];return typeof a!="string"&&(a=String.fromCharCode(f)),a.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(l,r,g){if(r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS},typeof navigator=="object"){var p=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),v=navigator.userAgent;r.isWin=p=="win",r.isMac=p=="mac",r.isLinux=p=="linux",r.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",r.isOldGecko=r.isGecko&&parseInt((v.match(/rv:(\d+)/)||[])[1],10)<4,r.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isIPad=v.indexOf("iPad")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!window.MSStream,r.isIOS&&(r.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(l,r,g){var p=l("./keys"),v=l("./useragent"),f=null,a=0;r.addListener=function(e,c,u){if(e.addEventListener)return e.addEventListener(c,u,!1);if(e.attachEvent){var h=function(){u.call(e,window.event)};u._wrapper=h,e.attachEvent("on"+c,h)}},r.removeListener=function(e,c,u){if(e.removeEventListener)return e.removeEventListener(c,u,!1);e.detachEvent&&e.detachEvent("on"+c,u._wrapper||u)},r.stopEvent=function(e){return r.stopPropagation(e),r.preventDefault(e),!1},r.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},r.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},r.getButton=function(e){return e.type=="dblclick"?0:e.type=="contextmenu"||v.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},r.capture=function(e,c,u){function h(b){c&&c(b),u&&u(b),r.removeListener(document,"mousemove",c,!0),r.removeListener(document,"mouseup",h,!0),r.removeListener(document,"dragstart",h,!0)}return r.addListener(document,"mousemove",c,!0),r.addListener(document,"mouseup",h,!0),r.addListener(document,"dragstart",h,!0),h},r.addTouchMoveListener=function(e,c){var u,h;r.addListener(e,"touchstart",function(b){var m=b.touches,k=m[0];u=k.clientX,h=k.clientY}),r.addListener(e,"touchmove",function(b){var m=b.touches;if(!(m.length>1)){var k=m[0];b.wheelX=u-k.clientX,b.wheelY=h-k.clientY,u=k.clientX,h=k.clientY,c(b)}})},r.addMouseWheelListener=function(e,c){"onmousewheel"in e?r.addListener(e,"mousewheel",function(u){var h=8;u.wheelDeltaX!==void 0?(u.wheelX=-u.wheelDeltaX/h,u.wheelY=-u.wheelDeltaY/h):(u.wheelX=0,u.wheelY=-u.wheelDelta/h),c(u)}):"onwheel"in e?r.addListener(e,"wheel",function(u){var h=.35;switch(u.deltaMode){case u.DOM_DELTA_PIXEL:u.wheelX=u.deltaX*h||0,u.wheelY=u.deltaY*h||0;break;case u.DOM_DELTA_LINE:case u.DOM_DELTA_PAGE:u.wheelX=(u.deltaX||0)*5,u.wheelY=(u.deltaY||0)*5;break}c(u)}):r.addListener(e,"DOMMouseScroll",function(u){u.axis&&u.axis==u.HORIZONTAL_AXIS?(u.wheelX=(u.detail||0)*5,u.wheelY=0):(u.wheelX=0,u.wheelY=(u.detail||0)*5),c(u)})},r.addMultiMouseDownListener=function(e,c,u,h){var b=0,m,k,d,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function y(x){if(r.getButton(x)!==0?b=0:x.detail>1?(b++,b>4&&(b=1)):b=1,v.isIE){var E=Math.abs(x.clientX-m)>5||Math.abs(x.clientY-k)>5;(!d||E)&&(b=1),d&&clearTimeout(d),d=setTimeout(function(){d=null},c[b-1]||600),b==1&&(m=x.clientX,k=x.clientY)}if(x._clicks=b,u[h]("mousedown",x),b>4)b=0;else if(b>1)return u[h](w[b],x)}function _(x){b=2,d&&clearTimeout(d),d=setTimeout(function(){d=null},c[b-1]||600),u[h]("mousedown",x),u[h](w[b],x)}Array.isArray(e)||(e=[e]),e.forEach(function(x){r.addListener(x,"mousedown",y),v.isOldIE&&r.addListener(x,"dblclick",_)})};var i=v.isMac&&v.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};r.getModifierString=function(e){return p.KEY_MODS[i(e)]};function t(e,c,u){var h=i(c);if(!v.isMac&&f){if(c.getModifierState&&(c.getModifierState("OS")||c.getModifierState("Win"))&&(h|=8),f.altGr)if((3&h)!=3)f.altGr=0;else return;if(u===18||u===17){var b="location"in c?c.location:c.keyLocation;if(u===17&&b===1)f[u]==1&&(a=c.timeStamp);else if(u===18&&h===3&&b===2){var m=c.timeStamp-a;m<50&&(f.altGr=!0)}}}if(u in p.MODIFIER_KEYS&&(u=-1),h&8&&u>=91&&u<=93&&(u=-1),!h&&u===13){var b="location"in c?c.location:c.keyLocation;if(b===3&&(e(c,h,-u),c.defaultPrevented))return}if(v.isChromeOS&&h&8){if(e(c,h,u),c.defaultPrevented)return;h&=-9}return!h&&!(u in p.FUNCTION_KEYS)&&!(u in p.PRINTABLE_KEYS)?!1:e(c,h,u)}r.addCommandKeyListener=function(e,c){var u=r.addListener;if(v.isOldGecko||v.isOpera&&!("KeyboardEvent"in window)){var h=null;u(e,"keydown",function(m){h=m.keyCode}),u(e,"keypress",function(m){return t(c,m,h)})}else{var b=null;u(e,"keydown",function(m){f[m.keyCode]=(f[m.keyCode]||0)+1;var k=t(c,m,m.keyCode);return b=m.defaultPrevented,k}),u(e,"keypress",function(m){b&&(m.ctrlKey||m.altKey||m.shiftKey||m.metaKey)&&(r.stopEvent(m),b=null)}),u(e,"keyup",function(m){f[m.keyCode]=null}),f||(s(),u(window,"focus",s))}};function s(){f=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var o=1;r.nextTick=function(e,c){c=c||window;var u="zero-timeout-message-"+o;r.addListener(c,"message",function h(b){b.data==u&&(r.stopPropagation(b),r.removeListener(c,"message",h),e())}),c.postMessage(u,"*")}}r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(e){setTimeout(e,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(l,r,g){r.last=function(f){return f[f.length-1]},r.stringReverse=function(f){return f.split("").reverse().join("")},r.stringRepeat=function(f,a){for(var i="";a>0;)a&1&&(i+=f),(a>>=1)&&(f+=f);return i};var p=/^\s\s*/,v=/\s\s*$/;r.stringTrimLeft=function(f){return f.replace(p,"")},r.stringTrimRight=function(f){return f.replace(v,"")},r.copyObject=function(f){var a={};for(var i in f)a[i]=f[i];return a},r.copyArray=function(f){for(var a=[],i=0,t=f.length;ib.length?le=le.substr(9):le.substr(0,4)==b.substr(0,4)?le=le.substr(4,le.length-b.length+1):le.charAt(le.length-1)==b.charAt(0)&&(le=le.slice(0,-1)),le==b.charAt(0)||le.charAt(le.length-1)==b.charAt(0)&&(le=le.slice(0,-1)),le&&u.onTextInput(le)),p&&(p=!1),L&&(L=!1))},U=function(le){if(!w){var ge=h.value;Q(ge),T()}},Z=function(le,ge,Ne){var Ue=le.clipboardData||window.clipboardData;if(!(!Ue||s)){var Le=o||Ne?"Text":"text/plain";try{return ge?Ue.setData(Le,ge)!==!1:Ue.getData(Le)}catch(De){if(!Ne)return Z(De,ge,!0)}}},se=function(le,ge){var Ne=u.getCopyText();if(!Ne)return g.preventDefault(le);Z(le,Ne)?(v.isIOS&&(k=ge,h.value=` +`,m=!1,k=!1,d=!1,w=!1,y="",_=!0;try{var x=document.activeElement===h}catch{}p.addListener(h,"blur",function(le){u.onBlur(le),x=!1}),p.addListener(h,"focus",function(le){x=!0,u.onFocus(le),C()}),this.focus=function(){if(y)return h.focus();h.style.position="fixed",h.focus()},this.blur=function(){h.blur()},this.isFocused=function(){return x};var E=a.delayedCall(function(){x&&C(_)}),S=a.delayedCall(function(){w||(h.value=b,x&&C())});function C(le){if(!w){if(w=!0,j)ge=0,Ne=le?0:h.value.length-1;else var ge=4,Ne=5;try{h.setSelectionRange(ge,Ne)}catch{}w=!1}}function T(){w||(h.value=b,v.isWebKit&&S.schedule())}v.isWebKit||u.addEventListener("changeSelection",function(){u.selection.isEmpty()!=_&&(_=!_,E.schedule())}),T(),x&&u.onFocus();var R=function(le){return le.selectionStart===0&&le.selectionEnd===le.value.length},W=function(le){R(h)?(u.selectAll(),C()):j&&C(u.selection.isEmpty())},j=null;this.setInputHandler=function(le){j=le},this.getInputHandler=function(){return j};var L=!1,Q=function(le){h.selectionStart===4&&h.selectionEnd===5||(j&&(le=j(le),j=null),d?(C(),le&&u.onPaste(le),d=!1):le==b.substr(0)&&h.selectionStart===4?L?u.execCommand("del",{source:"ace"}):u.execCommand("backspace",{source:"ace"}):m||(le.substring(0,9)==b&&le.length>b.length?le=le.substr(9):le.substr(0,4)==b.substr(0,4)?le=le.substr(4,le.length-b.length+1):le.charAt(le.length-1)==b.charAt(0)&&(le=le.slice(0,-1)),le==b.charAt(0)||le.charAt(le.length-1)==b.charAt(0)&&(le=le.slice(0,-1)),le&&u.onTextInput(le)),m&&(m=!1),L&&(L=!1))},U=function(le){if(!w){var ge=h.value;Q(ge),T()}},Z=function(le,ge,Ne){var Ue=le.clipboardData||window.clipboardData;if(!(!Ue||s)){var Le=o||Ne?"Text":"text/plain";try{return ge?Ue.setData(Le,ge)!==!1:Ue.getData(Le)}catch(De){if(!Ne)return Z(De,ge,!0)}}},se=function(le,ge){var Ne=u.getCopyText();if(!Ne)return p.preventDefault(le);Z(le,Ne)?(v.isIOS&&(k=ge,h.value=` aa`+Ne+`a a -`,h.setSelectionRange(4,4+Ne.length),p={value:Ne}),ge?u.onCut():u.onCopy(),v.isIOS||g.preventDefault(le)):(p=!0,h.value=Ne,h.select(),setTimeout(function(){p=!1,T(),C(),ge?u.onCut():u.onCopy()}))},te=function(le){se(le,!0)},$=function(le){se(le,!1)},P=function(le){var ge=Z(le);typeof ge=="string"?(ge&&u.onPaste(ge,le),v.isIE&&setTimeout(C),g.preventDefault(le)):(h.value="",d=!0)};g.addCommandKeyListener(h,u.onCommandKey.bind(u)),g.addListener(h,"select",W),g.addListener(h,"input",U),g.addListener(h,"cut",te),g.addListener(h,"copy",$),g.addListener(h,"paste",P);var A=function(le){w||!u.onCompositionStart||u.$readOnly||(w={},w.canUndo=u.session.$undoManager,u.onCompositionStart(),setTimeout(O,0),u.on("mousedown",z),w.canUndo&&!u.selection.isEmpty()&&(u.insert(""),u.session.markUndoGroup(),u.selection.clearSelection()),u.session.markUndoGroup())},O=function(){if(!(!w||!u.onCompositionUpdate||u.$readOnly)){var le=h.value.replace(/\x01/g,"");if(w.lastValue!==le&&(u.onCompositionUpdate(le),w.lastValue&&u.undo(),w.canUndo&&(w.lastValue=le),w.lastValue)){var ge=u.selection.getRange();u.insert(w.lastValue),u.session.markUndoGroup(),w.range=u.selection.getRange(),u.selection.setRange(ge),u.selection.clearSelection()}}},z=function(le){if(!(!u.onCompositionEnd||u.$readOnly)){var ge=w;w=!1;var Ne=setTimeout(function(){Ne=null;var Le=h.value.replace(/\x01/g,"");w||(Le==ge.lastValue?T():!ge.lastValue&&Le&&(T(),Q(Le)))});j=function(De){return Ne&&clearTimeout(Ne),De=De.replace(/\x01/g,""),De==ge.lastValue?"":(ge.lastValue&&Ne&&u.undo(),De)},u.onCompositionEnd(),u.removeListener("mousedown",z),le.type=="compositionend"&&ge.range&&u.selection.setRange(ge.range);var Ue=!!v.isChrome&&v.isChrome>=53||!!v.isWebKit&&v.isWebKit>=603;Ue&&U()}},G=a.delayedCall(O,50);g.addListener(h,"compositionstart",A),v.isGecko?g.addListener(h,"text",function(){G.schedule()}):(g.addListener(h,"keyup",function(){G.schedule()}),g.addListener(h,"keydown",function(){G.schedule()})),g.addListener(h,"compositionend",z),this.getElement=function(){return h},this.setReadOnly=function(le){h.readOnly=le},this.onContextMenu=function(le){L=!0,C(u.selection.isEmpty()),u._emit("nativecontextmenu",{target:u,domEvent:le}),this.moveToMouse(le,!0)},this.moveToMouse=function(le,ge){y||(y=h.style.cssText),h.style.cssText=(ge?"z-index:100000;":"")+"height:"+h.style.height+";"+(v.isIE?"opacity:0.1;":"");var Ne=u.container.getBoundingClientRect(),Ue=f.computedStyle(u.container),Le=Ne.top+(parseInt(Ue.borderTopWidth)||0),De=Ne.left+(parseInt(Ne.borderLeftWidth)||0),Fe=Ne.bottom-Le-h.clientHeight-2,Oe=function(We){h.style.left=We.clientX-De-2+"px",h.style.top=Math.min(We.clientY-Le-2,Fe)+"px"};Oe(le),le.type=="mousedown"&&(u.renderer.$keepTextAreaAtCursor&&(u.renderer.$keepTextAreaAtCursor=null),clearTimeout(re),v.isWin&&g.capture(u.container,Oe,X))},this.onContextMenuClose=X;var re;function X(){clearTimeout(re),re=setTimeout(function(){y&&(h.style.cssText=y,y=""),u.renderer.$keepTextAreaAtCursor==null&&(u.renderer.$keepTextAreaAtCursor=!0,u.renderer.$moveTextAreaToCursor())},0)}var be=function(le){u.textInput.onContextMenu(le),X()};if(g.addListener(h,"mouseup",be),g.addListener(h,"mousedown",function(le){le.preventDefault(),X()}),g.addListener(u.renderer.scroller,"contextmenu",be),g.addListener(h,"contextmenu",be),v.isIOS){var Be=null,ve=!1;c.addEventListener("keydown",function(le){Be&&clearTimeout(Be),ve=!0}),c.addEventListener("keyup",function(le){Be=setTimeout(function(){ve=!1},100)});var he=function(le){if(document.activeElement===h&&!ve){if(k)return setTimeout(function(){k=!1},100);var ge=h.selectionStart,Ne=h.selectionEnd;if(h.setSelectionRange(4,5),ge==Ne)switch(ge){case 0:u.onCommandKey(null,0,i.up);break;case 1:u.onCommandKey(null,0,i.home);break;case 2:u.onCommandKey(null,t.option,i.left);break;case 4:u.onCommandKey(null,0,i.left);break;case 5:u.onCommandKey(null,0,i.right);break;case 7:u.onCommandKey(null,t.option,i.right);break;case 8:u.onCommandKey(null,0,i.end);break;case 9:u.onCommandKey(null,0,i.down);break}else{switch(Ne){case 6:u.onCommandKey(null,t.shift,i.right);break;case 7:u.onCommandKey(null,t.shift|t.option,i.right);break;case 8:u.onCommandKey(null,t.shift,i.end);break;case 9:u.onCommandKey(null,t.shift,i.down);break}switch(ge){case 0:u.onCommandKey(null,t.shift,i.up);break;case 1:u.onCommandKey(null,t.shift,i.home);break;case 2:u.onCommandKey(null,t.shift|t.option,i.left);break;case 3:u.onCommandKey(null,t.shift,i.left);break}}}};document.addEventListener("selectionchange",he),u.on("destroy",function(){document.removeEventListener("selectionchange",he)})}};r.TextInput=e});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(l,r,m){var g=l("../lib/event"),v=l("../lib/useragent"),f=l("../lib/dom"),a=l("../lib/lang"),i=v.isChrome<18,t=v.isIE,s=l("./textinput_ios").TextInput,o=function(e,c){if(v.isIOS)return s.call(this,e,c);var u=f.createElement("textarea");u.className="ace_text-input",u.setAttribute("wrap","off"),u.setAttribute("autocorrect","off"),u.setAttribute("autocapitalize","off"),u.setAttribute("spellcheck",!1),u.style.opacity="0",e.insertBefore(u,e.firstChild);var h="\u2028\u2028",b=!1,p=!1,k=!1,d="",w=!0;try{var y=document.activeElement===u}catch{}g.addListener(u,"blur",function(X){c.onBlur(X),y=!1}),g.addListener(u,"focus",function(X){y=!0,c.onFocus(X),E()}),this.focus=function(){if(d)return u.focus();var X=u.style.top;u.style.position="fixed",u.style.top="0px",u.focus(),setTimeout(function(){u.style.position="",u.style.top=="0px"&&(u.style.top=X)},0)},this.blur=function(){u.blur()},this.isFocused=function(){return y};var _=a.delayedCall(function(){y&&E(w)}),x=a.delayedCall(function(){k||(u.value=h,y&&E())});function E(X){if(!k){if(k=!0,R)var be=0,Be=X?0:u.value.length-1;else var be=X?2:1,Be=2;try{u.setSelectionRange(be,Be)}catch{}k=!1}}function S(){k||(u.value=h,v.isWebKit&&x.schedule())}v.isWebKit||c.addEventListener("changeSelection",function(){c.selection.isEmpty()!=w&&(w=!w,_.schedule())}),S(),y&&c.onFocus();var C=function(X){return X.selectionStart===0&&X.selectionEnd===X.value.length},T=function(X){b?b=!1:C(u)?(c.selectAll(),E()):R&&E(c.selection.isEmpty())},R=null;this.setInputHandler=function(X){R=X},this.getInputHandler=function(){return R};var W=!1,j=function(X){R&&(X=R(X),R=null),p?(E(),X&&c.onPaste(X),p=!1):X==h.charAt(0)?W?c.execCommand("del",{source:"ace"}):c.execCommand("backspace",{source:"ace"}):(X.substring(0,2)==h?X=X.substr(2):X.charAt(0)==h.charAt(0)?X=X.substr(1):X.charAt(X.length-1)==h.charAt(0)&&(X=X.slice(0,-1)),X.charAt(X.length-1)==h.charAt(0)&&(X=X.slice(0,-1)),X&&c.onTextInput(X)),W&&(W=!1)},L=function(X){if(!k){var be=u.value;j(be),S()}},Q=function(X,be,Be){var ve=X.clipboardData||window.clipboardData;if(!(!ve||i)){var he=t||Be?"Text":"text/plain";try{return be?ve.setData(he,be)!==!1:ve.getData(he)}catch(le){if(!Be)return Q(le,be,!0)}}},U=function(X,be){var Be=c.getCopyText();if(!Be)return g.preventDefault(X);Q(X,Be)?(be?c.onCut():c.onCopy(),g.preventDefault(X)):(b=!0,u.value=Be,u.select(),setTimeout(function(){b=!1,S(),E(),be?c.onCut():c.onCopy()}))},Z=function(X){U(X,!0)},se=function(X){U(X,!1)},te=function(X){var be=Q(X);typeof be=="string"?(be&&c.onPaste(be,X),v.isIE&&setTimeout(E),g.preventDefault(X)):(u.value="",p=!0)};g.addCommandKeyListener(u,c.onCommandKey.bind(c)),g.addListener(u,"select",T),g.addListener(u,"input",L),g.addListener(u,"cut",Z),g.addListener(u,"copy",se),g.addListener(u,"paste",te),(!("oncut"in u)||!("oncopy"in u)||!("onpaste"in u))&&g.addListener(e,"keydown",function(X){if(!(v.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:se(X);break;case 86:te(X);break;case 88:Z(X);break}});var $=function(X){k||!c.onCompositionStart||c.$readOnly||(k={},k.canUndo=c.session.$undoManager,c.onCompositionStart(),setTimeout(P,0),c.on("mousedown",A),k.canUndo&&!c.selection.isEmpty()&&(c.insert(""),c.session.markUndoGroup(),c.selection.clearSelection()),c.session.markUndoGroup())},P=function(){if(!(!k||!c.onCompositionUpdate||c.$readOnly)){var X=u.value.replace(/\u2028/g,"");if(k.lastValue!==X&&(c.onCompositionUpdate(X),k.lastValue&&c.undo(),k.canUndo&&(k.lastValue=X),k.lastValue)){var be=c.selection.getRange();c.insert(k.lastValue),c.session.markUndoGroup(),k.range=c.selection.getRange(),c.selection.setRange(be),c.selection.clearSelection()}}},A=function(X){if(!(!c.onCompositionEnd||c.$readOnly)){var be=k;k=!1;var Be=setTimeout(function(){Be=null;var he=u.value.replace(/\u2028/g,"");k||(he==be.lastValue?S():!be.lastValue&&he&&(S(),j(he)))});R=function(le){return Be&&clearTimeout(Be),le=le.replace(/\u2028/g,""),le==be.lastValue?"":(be.lastValue&&Be&&c.undo(),le)},c.onCompositionEnd(),c.removeListener("mousedown",A),X.type=="compositionend"&&be.range&&c.selection.setRange(be.range);var ve=!!v.isChrome&&v.isChrome>=53||!!v.isWebKit&&v.isWebKit>=603;ve&&L()}},O=a.delayedCall(P,50);g.addListener(u,"compositionstart",$),v.isGecko?g.addListener(u,"text",function(){O.schedule()}):(g.addListener(u,"keyup",function(){O.schedule()}),g.addListener(u,"keydown",function(){O.schedule()})),g.addListener(u,"compositionend",A),this.getElement=function(){return u},this.setReadOnly=function(X){u.readOnly=X},this.onContextMenu=function(X){W=!0,E(c.selection.isEmpty()),c._emit("nativecontextmenu",{target:c,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,be){d||(d=u.style.cssText),u.style.cssText=(be?"z-index:100000;":"")+"height:"+u.style.height+";"+(v.isIE?"opacity:0.1;":"");var Be=c.container.getBoundingClientRect(),ve=f.computedStyle(c.container),he=Be.top+(parseInt(ve.borderTopWidth)||0),le=Be.left+(parseInt(Be.borderLeftWidth)||0),ge=Be.bottom-he-u.clientHeight-2,Ne=function(Ue){u.style.left=Ue.clientX-le-2+"px",u.style.top=Math.min(Ue.clientY-he-2,ge)+"px"};Ne(X),X.type=="mousedown"&&(c.renderer.$keepTextAreaAtCursor&&(c.renderer.$keepTextAreaAtCursor=null),clearTimeout(z),v.isWin&&g.capture(c.container,Ne,G))},this.onContextMenuClose=G;var z;function G(){clearTimeout(z),z=setTimeout(function(){d&&(u.style.cssText=d,d=""),c.renderer.$keepTextAreaAtCursor==null&&(c.renderer.$keepTextAreaAtCursor=!0,c.renderer.$moveTextAreaToCursor())},0)}var re=function(X){c.textInput.onContextMenu(X),G()};g.addListener(u,"mouseup",re),g.addListener(u,"mousedown",function(X){X.preventDefault(),G()}),g.addListener(c.renderer.scroller,"contextmenu",re),g.addListener(u,"contextmenu",re)};r.TextInput=o});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(l,r,m){l("../lib/dom"),l("../lib/event");var g=l("../lib/useragent"),v=0,f=250;function a(s){s.$clickSelection=null;var o=s.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s)),o.setDefaultHandler("touchmove",this.onTouchMove.bind(s));var e=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];e.forEach(function(c){s[c]=this[c]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}(function(){this.onMouseDown=function(s){var o=s.inSelection(),e=s.getDocumentPosition();this.mousedownEvent=s;var c=this.editor,u=s.getButton();if(u!==0){var h=c.getSelectionRange(),b=h.isEmpty();c.$blockScrolling++,(b||u==1)&&c.selection.moveToPosition(e),c.$blockScrolling--,u==2&&(c.textInput.onContextMenu(s.domEvent),g.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!c.isFocused()&&(c.focus(),this.$focusTimout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(e,s.domEvent._clicks>1),s.preventDefault()},this.startSelect=function(s,o){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var e=this.editor;e.$blockScrolling++,this.mousedownEvent.getShiftKey()?e.selection.selectToPosition(s):o||e.selection.moveToPosition(s),o||this.select(),e.renderer.scroller.setCapture&&e.renderer.scroller.setCapture(),e.setStyle("ace_selecting"),this.setState("select"),e.$blockScrolling--},this.select=function(){var s,o=this.editor,e=o.renderer.screenToTextCoordinates(this.x,this.y);if(o.$blockScrolling++,this.$clickSelection){var c=this.$clickSelection.comparePoint(e);if(c==-1)s=this.$clickSelection.end;else if(c==1)s=this.$clickSelection.start;else{var u=t(this.$clickSelection,e);e=u.cursor,s=u.anchor}o.selection.setSelectionAnchor(s.row,s.column)}o.selection.selectToPosition(e),o.$blockScrolling--,o.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(s){var o,e=this.editor,c=e.renderer.screenToTextCoordinates(this.x,this.y),u=e.selection[s](c.row,c.column);if(e.$blockScrolling++,this.$clickSelection){var h=this.$clickSelection.comparePoint(u.start),b=this.$clickSelection.comparePoint(u.end);if(h==-1&&b<=0)o=this.$clickSelection.end,(u.end.row!=c.row||u.end.column!=c.column)&&(c=u.start);else if(b==1&&h>=0)o=this.$clickSelection.start,(u.start.row!=c.row||u.start.column!=c.column)&&(c=u.end);else if(h==-1&&b==1)c=u.end,o=u.start;else{var p=t(this.$clickSelection,c);c=p.cursor,o=p.anchor}e.selection.setSelectionAnchor(o.row,o.column)}e.selection.selectToPosition(c),e.$blockScrolling--,e.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var s=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(s>v||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(s){var o=s.getDocumentPosition(),e=this.editor,c=e.session,u=c.getBracketRange(o);u?(u.isEmpty()&&(u.start.column--,u.end.column++),this.setState("select")):(u=e.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=u,this.select()},this.onTripleClick=function(s){var o=s.getDocumentPosition(),e=this.editor;this.setState("selectByLines");var c=e.getSelectionRange();c.isMultiLine()&&c.contains(o.row,o.column)?(this.$clickSelection=e.selection.getLineRange(c.start.row),this.$clickSelection.end=e.selection.getLineRange(c.end.row).end):this.$clickSelection=e.selection.getLineRange(o.row),this.select()},this.onQuadClick=function(s){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var e=this.$lastScroll,c=s.domEvent.timeStamp,u=c-e.t,h=s.wheelX/u,b=s.wheelY/u;u=1&&o.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(k=!0),p<=1&&o.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(k=!0),k)e.allowed=c;else if(c-e.allowedo.session.documentToScreenRow(E.row,E.column))return k()}if(b!=y)if(b=y.text.join("
"),c.setHtml(b),c.show(),o._signal("showGutterTooltip",c),o.on("mousewheel",k),s.$tooltipFollowsMouse)d(h);else{var S=h.domEvent.target,C=S.getBoundingClientRect(),T=c.getElement().style;T.left=C.right+"px",T.top=C.bottom+"px"}}function k(){u&&(u=clearTimeout(u)),b&&(c.hide(),b=null,o._signal("hideGutterTooltip",c),o.removeEventListener("mousewheel",k))}function d(w){c.setPosition(w.x,w.y)}s.editor.setDefaultHandler("guttermousemove",function(w){var y=w.domEvent.target||w.domEvent.srcElement;if(g.hasCssClass(y,"ace_fold-widget"))return k();b&&s.$tooltipFollowsMouse&&d(w),h=w,!u&&(u=setTimeout(function(){u=null,h&&!s.isMousePressed?p():k()},50))}),f.addListener(o.renderer.$gutter,"mouseout",function(w){h=null,!(!b||u)&&(u=setTimeout(function(){u=null,k()},50))}),o.on("changeSession",k)}function t(s){a.call(this,s)}v.inherits(t,a),(function(){this.setPosition=function(s,o){var e=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight,u=this.getWidth(),h=this.getHeight();s+=15,o+=15,s+u>e&&(s-=s+u-e),o+h>c&&(o-=20+h),a.prototype.setPosition.call(this,s,o)}}).call(t.prototype),r.GutterHandler=i});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(l,r,m){var g=l("../lib/event"),v=l("../lib/useragent"),f=r.MouseEvent=function(a,i){this.domEvent=a,this.editor=i,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a=this.editor,i=a.getSelectionRange();if(i.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=i.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return g.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=v.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(f.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(l,r,m){var g=l("../lib/dom"),v=l("../lib/event"),f=l("../lib/useragent"),a=200,i=200,t=5;function s(e){var c=e.editor,u=g.createElement("img");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f.isOpera&&(u.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var h=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];h.forEach(function(P){e[P]=this[P]},this),c.addEventListener("mousedown",this.onMouseDown.bind(e));var b=c.container,p,k,d,w,y,_,x=0,E,S,C,T,R;this.onDragStart=function(P){if(this.cancelDrag||!b.draggable){var A=this;return setTimeout(function(){A.startSelect(),A.captureMouse(P)},0),P.preventDefault()}y=c.getSelectionRange();var O=P.dataTransfer;O.effectAllowed=c.getReadOnly()?"copy":"copyMove",f.isOpera&&(c.container.appendChild(u),u.scrollTop=0),O.setDragImage&&O.setDragImage(u,0,0),f.isOpera&&c.container.removeChild(u),O.clearData(),O.setData("Text",c.session.getTextRange()),S=!0,this.setState("drag")},this.onDragEnd=function(P){if(b.draggable=!1,S=!1,this.setState(null),!c.getReadOnly()){var A=P.dataTransfer.dropEffect;!E&&A=="move"&&c.session.remove(c.getSelectionRange()),c.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(P){if(!(c.getReadOnly()||!te(P.dataTransfer)))return k=P.clientX,d=P.clientY,p||Q(),x++,P.dataTransfer.dropEffect=E=$(P),v.preventDefault(P)},this.onDragOver=function(P){if(!(c.getReadOnly()||!te(P.dataTransfer)))return k=P.clientX,d=P.clientY,p||(Q(),x++),Z!==null&&(Z=null),P.dataTransfer.dropEffect=E=$(P),v.preventDefault(P)},this.onDragLeave=function(P){if(x--,x<=0&&p)return U(),E=null,v.preventDefault(P)},this.onDrop=function(P){if(_){var A=P.dataTransfer;if(S)switch(E){case"move":y.contains(_.row,_.column)?y={start:_,end:_}:y=c.moveText(y,_);break;case"copy":y=c.moveText(y,_,!0);break}else{var O=A.getData("Text");y={start:_,end:c.session.insert(_,O)},c.focus(),E=null}return U(),v.preventDefault(P)}},v.addListener(b,"dragstart",this.onDragStart.bind(e)),v.addListener(b,"dragend",this.onDragEnd.bind(e)),v.addListener(b,"dragenter",this.onDragEnter.bind(e)),v.addListener(b,"dragover",this.onDragOver.bind(e)),v.addListener(b,"dragleave",this.onDragLeave.bind(e)),v.addListener(b,"drop",this.onDrop.bind(e));function W(P,A){var O=Date.now(),z=!A||P.row!=A.row,G=!A||P.column!=A.column;if(!T||z||G)c.$blockScrolling+=1,c.moveCursorToPosition(P),c.$blockScrolling-=1,T=O,R={x:k,y:d};else{var re=o(R.x,R.y,k,d);re>t?T=null:O-T>=i&&(c.renderer.scrollCursorIntoView(),T=null)}}function j(P,A){var O=Date.now(),z=c.renderer.layerConfig.lineHeight,G=c.renderer.layerConfig.characterWidth,re=c.renderer.scroller.getBoundingClientRect(),X={x:{left:k-re.left,right:re.right-k},y:{top:d-re.top,bottom:re.bottom-d}},be=Math.min(X.x.left,X.x.right),Be=Math.min(X.y.top,X.y.bottom),ve={row:P.row,column:P.column};be/G<=2&&(ve.column+=X.x.left=a&&c.renderer.scrollCursorIntoView(ve):C=O:C=null}function L(){var P=_;_=c.renderer.screenToTextCoordinates(k,d),W(_,P),j(_,P)}function Q(){y=c.selection.toOrientedRange(),p=c.session.addMarker(y,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),L(),w=setInterval(L,20),x=0,v.addListener(document,"mousemove",se)}function U(){clearInterval(w),c.session.removeMarker(p),p=null,c.$blockScrolling+=1,c.selection.fromOrientedRange(y),c.$blockScrolling-=1,c.isFocused()&&!S&&c.renderer.$cursorLayer.setBlinking(!c.getReadOnly()),y=null,_=null,x=0,C=null,T=null,v.removeListener(document,"mousemove",se)}var Z=null;function se(){Z==null&&(Z=setTimeout(function(){Z!=null&&p&&U()},20))}function te(P){var A=P.types;return!A||Array.prototype.some.call(A,function(O){return O=="text/plain"||O=="Text"})}function $(P){var A=["copy","copymove","all","uninitialized"],O=["move","copymove","linkmove","all","uninitialized"],z=f.isMac?P.altKey:P.ctrlKey,G="uninitialized";try{G=P.dataTransfer.effectAllowed.toLowerCase()}catch{}var re="none";return z&&A.indexOf(G)>=0?re="copy":O.indexOf(G)>=0?re="move":A.indexOf(G)>=0&&(re="copy"),re}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,c=e.container;c.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var u=f.isWin?"default":"move";e.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(e){var c=this.editor.container;if(f.isIE&&this.state=="dragReady"){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&c.dragDrop()}if(this.state==="dragWait"){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var c=this.editor,u=e.inSelection(),h=e.getButton(),b=e.domEvent.detail||1;if(b===1&&h===0&&u){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var p=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in p&&(p.unselectable="on"),c.getDragDelay()){if(f.isWebKit){this.cancelDrag=!0;var k=c.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype);function o(e,c,u,h){return Math.sqrt(Math.pow(u-e,2)+Math.pow(h-c,2))}r.DragdropHandler=s});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(l,r,m){var g=l("./dom");r.get=function(v,f){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState===4&&f(a.responseText)},a.send(null)},r.loadScript=function(v,f){var a=g.getDocumentHead(),i=document.createElement("script");i.src=v,a.appendChild(i),i.onload=i.onreadystatechange=function(t,s){(s||!i.readyState||i.readyState=="loaded"||i.readyState=="complete")&&(i=i.onload=i.onreadystatechange=null,s||f())}},r.qualifyURL=function(v){var f=document.createElement("a");return f.href=v,f.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(l,r,m){var g={},v=function(){this.propagationStopped=!0},f=function(){this.defaultPrevented=!0};g._emit=g._dispatchEvent=function(a,i){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],s=this._defaultHandlers[a];if(!(!t.length&&!s)){(typeof i!="object"||!i)&&(i={}),i.type||(i.type=a),i.stopPropagation||(i.stopPropagation=v),i.preventDefault||(i.preventDefault=f),t=t.slice();for(var o=0;o1&&(h=c[c.length-2]);var p=i[e+"Path"];return p==null?p=i.basePath:u=="/"&&(e=u=""),p&&p.slice(-1)!="/"&&(p+="/"),p+e+u+h+this.get("suffix")},r.setModuleUrl=function(o,e){return i.$moduleUrls[o]=e},r.$loading={},r.loadModule=function(o,e){var c,u;Array.isArray(o)&&(u=o[0],o=o[1]);try{c=l(o)}catch{}if(c&&!r.$loading[o])return e&&e(c);if(r.$loading[o]||(r.$loading[o]=[]),r.$loading[o].push(e),!(r.$loading[o].length>1)){var h=function(){l([o],function(b){r._emit("load.module",{name:o,module:b});var p=r.$loading[o];r.$loading[o]=null,p.forEach(function(k){k&&k(b)})})};if(!r.get("packaged"))return h();v.loadScript(r.moduleUrl(o,u),h)}},t(!0);function t(o){if(!(!a||!a.document)){i.packaged=o||l.packaged||m.packaged||a.define&&(void 0).packaged;for(var e={},c="",u=document.currentScript||document._currentScript,h=u&&u.ownerDocument||document,b=h.getElementsByTagName("script"),p=0;p0)if(ve==16){for(ge=le;ge-1){for(ge=le;ge=0&&z[Le]==y;Le--)A[Le]=g}}}function se(P,A,O){if(!(v=P){for(re=G+1;re=P;)re++;for(X=G,be=re-1;X=A.length||(re=O[z-1])!=h&&re!=b||(X=A[z+1])!=h&&X!=b?p:(f&&(X=b),X==re?X:p);case x:return re=z>0?O[z-1]:k,re==h&&z+10&&O[z-1]==h)return h;if(f)return p;for(Be=z+1,be=A.length;Be=1425&&ve<=2303||ve==64286;if(re=A[Be],he&&(re==u||re==w))return u}return z<1||(re=A[z-1])==k?p:O[z-1];case k:return f=!1,a=!0,g;case d:return i=!0,p;case C:case T:case W:case j:case R:f=!1;case L:return p}}function $(P){var A=P.charCodeAt(0),O=A>>8;return O==0?A>191?c:Q[A]:O==5?/[\u0591-\u05f4]/.test(P)?u:c:O==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(P)?S:/[\u0660-\u0669\u066b-\u066c]/.test(P)?b:A==1642?E:/[\u06f0-\u06f9]/.test(P)?h:w:O==32&&A<=8287?U[A&255]:O==254&&A>=65136?w:p}r.L=c,r.R=u,r.EN=h,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.DOT="·",r.doBidiReorder=function(P,A,O){if(P.length<2)return{};var z=P.split(""),G=new Array(z.length),re=new Array(z.length),X=[];g=O?e:o,Z(z,X,z.length,A);for(var be=0;bew&&A[be]0&&z[be-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(z[be])&&(X[be-1]=X[be]=r.R_H,be++);z[z.length-1]===r.DOT&&(X[z.length-1]=r.B);for(var be=0;be=0&&(t=this.session.$docRowCache[o])}return t},this.getSplitIndex=function(){var t=0,s=this.session.$screenRowCache;if(s.length)for(var o,e=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-t>0&&(o=this.session.$getRowCacheIndex(s,this.currentRow-t-1),o===e);)e=o,t++;return t},this.updateRowLine=function(t,s){if(t===void 0&&(t=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=t===this.session.getLength()-1,this.line=this.session.getLine(t),this.session.$useWrapMode){var o=this.session.$wrapData[t];o&&(s===void 0&&(s=this.getSplitIndex()),s>0&&o.length?(this.wrapIndent=o.indent,this.line=s0?t-1:0,this.bidiMap),o=this.bidiMap.bidiLevels,e=0;t===0&&o[s]%2!==0&&s++;for(var c=0;c=b&&ye+h/2;){if(e+=h,c===u.length-1){h=0;break}h=this.charWidths[u[++c]]}return c>0&&u[c-1]%2!==0&&u[c]%2===0?(o0&&u[c-1]%2===0&&u[c]%2!==0?s=1+(o>e?this.bidiMap.logicalFromVisual[c]:this.bidiMap.logicalFromVisual[c-1]):this.isRtlDir&&c===u.length-1&&h===0&&u[c-1]%2===0||!this.isRtlDir&&c===0&&u[c]%2!==0?s=1+this.bidiMap.logicalFromVisual[c]:(c>0&&u[c-1]%2!==0&&h!==0&&c--,s=this.bidiMap.logicalFromVisual[c]),s+this.wrapIndent}}).call(i.prototype),r.BidiHandler=i});ace.define("ace/range",["require","exports","module"],function(l,r,m){var g=function(f,a){return f.row-a.row||f.column-a.column},v=function(f,a,i,t){this.start={row:f,column:a},this.end={row:i,column:t}};(function(){this.isEqual=function(f){return this.start.row===f.start.row&&this.end.row===f.end.row&&this.start.column===f.start.column&&this.end.column===f.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(f,a){return this.compare(f,a)==0},this.compareRange=function(f){var a,i=f.end,t=f.start;return a=this.compare(i.row,i.column),a==1?(a=this.compare(t.row,t.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(t.row,t.column),a==-1?-1:a==1?42:0)},this.comparePoint=function(f){return this.compare(f.row,f.column)},this.containsRange=function(f){return this.comparePoint(f.start)==0&&this.comparePoint(f.end)==0},this.intersects=function(f){var a=this.compareRange(f);return a==-1||a==0||a==1},this.isEnd=function(f,a){return this.end.row==f&&this.end.column==a},this.isStart=function(f,a){return this.start.row==f&&this.start.column==a},this.setStart=function(f,a){typeof f=="object"?(this.start.column=f.column,this.start.row=f.row):(this.start.row=f,this.start.column=a)},this.setEnd=function(f,a){typeof f=="object"?(this.end.column=f.column,this.end.row=f.row):(this.end.row=f,this.end.column=a)},this.inside=function(f,a){return this.compare(f,a)==0?!(this.isEnd(f,a)||this.isStart(f,a)):!1},this.insideStart=function(f,a){return this.compare(f,a)==0?!this.isEnd(f,a):!1},this.insideEnd=function(f,a){return this.compare(f,a)==0?!this.isStart(f,a):!1},this.compare=function(f,a){return!this.isMultiLine()&&f===this.start.row?athis.end.column?1:0:fthis.end.row?1:this.start.row===f?a>=this.start.column?0:-1:this.end.row===f?a<=this.end.column?0:1:0},this.compareStart=function(f,a){return this.start.row==f&&this.start.column==a?-1:this.compare(f,a)},this.compareEnd=function(f,a){return this.end.row==f&&this.end.column==a?1:this.compare(f,a)},this.compareInside=function(f,a){return this.end.row==f&&this.end.column==a?1:this.start.row==f&&this.start.column==a?-1:this.compare(f,a)},this.clipRows=function(f,a){if(this.end.row>a)var i={row:a+1,column:0};else if(this.end.rowa)var t={row:a+1,column:0};else if(this.start.rows.row||t.row==s.row&&t.column>s.column},this.getRange=function(){var t=this.anchor,s=this.lead;return this.isEmpty()?a.fromPoints(s,s):this.isBackwards()?a.fromPoints(s,t):a.fromPoints(t,s)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var t=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(t,this.doc.getLine(t).length)},this.setRange=this.setSelectionRange=function(t,s){s?(this.setSelectionAnchor(t.end.row,t.end.column),this.selectTo(t.start.row,t.start.column)):(this.setSelectionAnchor(t.start.row,t.start.column),this.selectTo(t.end.row,t.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(t){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),t.call(this)},this.selectTo=function(t,s){this.$moveSelection(function(){this.moveCursorTo(t,s)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,s){this.clearSelection(),this.moveCursorTo(t,s)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,s){if(typeof s>"u"){var o=t||this.lead;t=o.row,s=o.column}return this.session.getWordRange(t,s)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),s=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(s)},this.getLineRange=function(t,s){var o=typeof t=="number"?t:this.lead.row,e,c=this.session.getFoldLine(o);return c?(o=c.start.row,e=c.end.row):e=o,s===!0?new a(o,0,e,this.session.getLine(e).length):new a(o,0,e+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,s,o){var e=t.column,c=t.column+s;return o<0&&(e=t.column-s,c=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(e,c).split(" ").length-1==s},this.moveCursorLeft=function(){var t=this.lead.getPosition(),s;if(s=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var o=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,o,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-o):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),s;if(s=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(s.column=e)}}this.moveCursorTo(s.row,s.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,s=this.doc.getLine(t).length;this.moveCursorTo(t,s)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,s=this.lead.column,o=this.doc.getLine(t),e=o.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var c=this.session.getFoldAt(t,s,1);if(c){this.moveCursorTo(c.end.row,c.end.column);return}if(this.session.nonTokenRe.exec(e)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,e=o.substring(s)),s>=o.length){this.moveCursorTo(t,o.length),this.moveCursorRight(),t0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(c)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,s)},this.$shortWordEndIndex=function(t){var s=0,o,e=/\s/,c=this.session.tokenRe;if(c.lastIndex=0,this.session.tokenRe.exec(t))s=this.session.tokenRe.lastIndex;else{for(;(o=t[s])&&e.test(o);)s++;if(s<1){for(c.lastIndex=0;(o=t[s])&&!c.test(o);)if(c.lastIndex=0,s++,e.test(o))if(s>2){s--;break}else{for(;(o=t[s])&&e.test(o);)s++;if(s>2)break}}}return c.lastIndex=0,s},this.moveCursorShortWordRight=function(){var t=this.lead.row,s=this.lead.column,o=this.doc.getLine(t),e=o.substring(s),c=this.session.getFoldAt(t,s,1);if(c)return this.moveCursorTo(c.end.row,c.end.column);if(s==o.length){var u=this.doc.getLength();do t++,e=this.doc.getLine(t);while(t0&&/^\s*$/.test(e));s=e.length,/\s+$/.test(e)||(e="")}var c=v.stringReverse(e),u=this.$shortWordEndIndex(c);return this.moveCursorTo(t,s-u)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,s){var o=this.session.documentToScreenPosition(this.lead.row,this.lead.column),e;s===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column);var c=this.session.screenToDocumentPosition(o.row+t,o.column,e);t!==0&&s===0&&c.row===this.lead.row&&c.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[c.row]&&(c.row>0||t>0)&&c.row++,this.moveCursorTo(c.row,c.column+s,s===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,s,o){var e=this.session.getFoldAt(t,s,1);e&&(t=e.start.row,s=e.start.column),this.$keepDesiredColumnOnChange=!0;var c=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(c.charAt(s))&&c.charAt(s-1)&&(this.lead.row==t&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(t,s),this.$keepDesiredColumnOnChange=!1,o||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,s,o){var e=this.session.screenToDocumentPosition(t,s);this.moveCursorTo(e.row,e.column,o)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var s=this.getRange();return t?(t.start.column=s.start.column,t.start.row=s.start.row,t.end.column=s.end.column,t.end.row=s.end.row):t=s,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var s=this.getCursor();try{t(this);var o=this.getCursor();return a.fromPoints(s,o)}catch{return a.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(s){var o=s.clone();return o.isBackwards=s.cursor==s.start,o});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList){this.toSingleRange(t[0]);for(var s=t.length;s--;){var o=a.fromPoints(t[s].start,t[s].end);t[s].isBackwards&&(o.cursor=o.start),this.addRange(o,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(t[s]))return!1;return!0}}).call(i.prototype),r.Selection=i});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(l,r,m){var g=l("./config"),v=2e3,f=function(a){this.states=a,this.regExps={},this.matchMappings={};for(var i in this.states){for(var t=this.states[i],s=[],o=0,e=this.matchMappings[i]={defaultToken:"text"},c="g",u=[],h=0;h1?b.onMatch=this.$applyToken:b.onMatch=b.token),k>1&&(/\\\d/.test(b.regex)?p=b.regex.replace(/\\([0-9]+)/g,function(d,w){return"\\"+(parseInt(w,10)+o+1)}):(k=1,p=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&u.push(b)),e[o]=h,o+=k,s.push(p),b.onMatch||(b.onMatch=null)}}s.length||(e[0]=0,s.push("$")),u.forEach(function(d){d.splitRegex=this.createSplitterRegexp(d.regex,c)},this),this.regExps[i]=new RegExp("("+s.join(")|(")+")|($)",c)}};(function(){this.$setMaxTokenCount=function(a){v=a|0},this.$applyToken=function(a){var i=this.splitRegex.exec(a).slice(1),t=this.token.apply(this,i);if(typeof t=="string")return[{type:t,value:a}];for(var s=[],o=0,e=t.length;ob){var x=a.substring(b,_-y.length);k.type==d?k.value+=x:(k.type&&h.push(k),k={type:d,value:x})}for(var E=0;Ev){for(p>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:i,line:a});b1&&t[0]!==s&&t.unshift("#tmp",s),{tokens:h,state:t.length?t:s}},this.reportError=g.reportError}).call(f.prototype),r.Tokenizer=f});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(l,r,m){var g=l("../lib/lang"),v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(i,t){if(!t){for(var s in i)this.$rules[s]=i[s];return}for(var s in i){for(var o=i[s],e=0;e=this.$rowTokens.length;){if(this.$row+=1,f||(f=this.$session.getLength()),this.$row>=f)return this.$row=f-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var f=this.$rowTokens,a=this.$tokenIndex,i=f[a].start;if(i!==void 0)return i;for(i=0;a>0;)a-=1,i+=f[a].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var f=this.$rowTokens[this.$tokenIndex],a=this.getCurrentTokenColumn();return new g(this.$row,a,this.$row,a+f.value.length)}}).call(v.prototype),r.TokenIterator=v});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(l,r,m){var g=l("../../lib/oop"),v=l("../behaviour").Behaviour,f=l("../../token_iterator").TokenIterator,a=l("../../lib/lang"),i=["text","paren.rparen","punctuation.operator"],t=["text","paren.rparen","punctuation.operator","comment"],s,o={},e={'"':'"',"'":"'"},c=function(b){var p=-1;if(b.multiSelect&&(p=b.selection.index,o.rangeCount!=b.multiSelect.rangeCount&&(o={rangeCount:b.multiSelect.rangeCount})),o[p])return s=o[p];s=o[p]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(b,p,k,d){var w=b.end.row-b.start.row;return{text:k+p+d,selection:[0,b.start.column+1,w,b.end.column+(w?0:1)]}},h=function(b){this.add("braces","insertion",function(p,k,d,w,y){var _=d.getCursorPosition(),x=w.doc.getLine(_.row);if(y=="{"){c(d);var E=d.getSelectionRange(),S=w.doc.getTextRange(E);if(S!==""&&S!=="{"&&d.getWrapBehavioursEnabled())return u(E,S,"{","}");if(h.isSaneInsertion(d,w))return/[\]\}\)]/.test(x[_.column])||d.inMultiSelectMode||b&&b.braces?(h.recordAutoInsert(d,w,"}"),{text:"{}",selection:[1,1]}):(h.recordMaybeInsert(d,w,"{"),{text:"{",selection:[1,1]})}else if(y=="}"){c(d);var C=x.substring(_.column,_.column+1);if(C=="}"){var T=w.$findOpeningBracket("}",{column:_.column+1,row:_.row});if(T!==null&&h.isAutoInsertedClosing(_,x,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(y==` +`,h.setSelectionRange(4,4+Ne.length),m={value:Ne}),ge?u.onCut():u.onCopy(),v.isIOS||p.preventDefault(le)):(m=!0,h.value=Ne,h.select(),setTimeout(function(){m=!1,T(),C(),ge?u.onCut():u.onCopy()}))},te=function(le){se(le,!0)},$=function(le){se(le,!1)},P=function(le){var ge=Z(le);typeof ge=="string"?(ge&&u.onPaste(ge,le),v.isIE&&setTimeout(C),p.preventDefault(le)):(h.value="",d=!0)};p.addCommandKeyListener(h,u.onCommandKey.bind(u)),p.addListener(h,"select",W),p.addListener(h,"input",U),p.addListener(h,"cut",te),p.addListener(h,"copy",$),p.addListener(h,"paste",P);var A=function(le){w||!u.onCompositionStart||u.$readOnly||(w={},w.canUndo=u.session.$undoManager,u.onCompositionStart(),setTimeout(O,0),u.on("mousedown",z),w.canUndo&&!u.selection.isEmpty()&&(u.insert(""),u.session.markUndoGroup(),u.selection.clearSelection()),u.session.markUndoGroup())},O=function(){if(!(!w||!u.onCompositionUpdate||u.$readOnly)){var le=h.value.replace(/\x01/g,"");if(w.lastValue!==le&&(u.onCompositionUpdate(le),w.lastValue&&u.undo(),w.canUndo&&(w.lastValue=le),w.lastValue)){var ge=u.selection.getRange();u.insert(w.lastValue),u.session.markUndoGroup(),w.range=u.selection.getRange(),u.selection.setRange(ge),u.selection.clearSelection()}}},z=function(le){if(!(!u.onCompositionEnd||u.$readOnly)){var ge=w;w=!1;var Ne=setTimeout(function(){Ne=null;var Le=h.value.replace(/\x01/g,"");w||(Le==ge.lastValue?T():!ge.lastValue&&Le&&(T(),Q(Le)))});j=function(De){return Ne&&clearTimeout(Ne),De=De.replace(/\x01/g,""),De==ge.lastValue?"":(ge.lastValue&&Ne&&u.undo(),De)},u.onCompositionEnd(),u.removeListener("mousedown",z),le.type=="compositionend"&&ge.range&&u.selection.setRange(ge.range);var Ue=!!v.isChrome&&v.isChrome>=53||!!v.isWebKit&&v.isWebKit>=603;Ue&&U()}},G=a.delayedCall(O,50);p.addListener(h,"compositionstart",A),v.isGecko?p.addListener(h,"text",function(){G.schedule()}):(p.addListener(h,"keyup",function(){G.schedule()}),p.addListener(h,"keydown",function(){G.schedule()})),p.addListener(h,"compositionend",z),this.getElement=function(){return h},this.setReadOnly=function(le){h.readOnly=le},this.onContextMenu=function(le){L=!0,C(u.selection.isEmpty()),u._emit("nativecontextmenu",{target:u,domEvent:le}),this.moveToMouse(le,!0)},this.moveToMouse=function(le,ge){y||(y=h.style.cssText),h.style.cssText=(ge?"z-index:100000;":"")+"height:"+h.style.height+";"+(v.isIE?"opacity:0.1;":"");var Ne=u.container.getBoundingClientRect(),Ue=f.computedStyle(u.container),Le=Ne.top+(parseInt(Ue.borderTopWidth)||0),De=Ne.left+(parseInt(Ne.borderLeftWidth)||0),Fe=Ne.bottom-Le-h.clientHeight-2,Oe=function(We){h.style.left=We.clientX-De-2+"px",h.style.top=Math.min(We.clientY-Le-2,Fe)+"px"};Oe(le),le.type=="mousedown"&&(u.renderer.$keepTextAreaAtCursor&&(u.renderer.$keepTextAreaAtCursor=null),clearTimeout(re),v.isWin&&p.capture(u.container,Oe,X))},this.onContextMenuClose=X;var re;function X(){clearTimeout(re),re=setTimeout(function(){y&&(h.style.cssText=y,y=""),u.renderer.$keepTextAreaAtCursor==null&&(u.renderer.$keepTextAreaAtCursor=!0,u.renderer.$moveTextAreaToCursor())},0)}var be=function(le){u.textInput.onContextMenu(le),X()};if(p.addListener(h,"mouseup",be),p.addListener(h,"mousedown",function(le){le.preventDefault(),X()}),p.addListener(u.renderer.scroller,"contextmenu",be),p.addListener(h,"contextmenu",be),v.isIOS){var Be=null,ve=!1;c.addEventListener("keydown",function(le){Be&&clearTimeout(Be),ve=!0}),c.addEventListener("keyup",function(le){Be=setTimeout(function(){ve=!1},100)});var he=function(le){if(document.activeElement===h&&!ve){if(k)return setTimeout(function(){k=!1},100);var ge=h.selectionStart,Ne=h.selectionEnd;if(h.setSelectionRange(4,5),ge==Ne)switch(ge){case 0:u.onCommandKey(null,0,i.up);break;case 1:u.onCommandKey(null,0,i.home);break;case 2:u.onCommandKey(null,t.option,i.left);break;case 4:u.onCommandKey(null,0,i.left);break;case 5:u.onCommandKey(null,0,i.right);break;case 7:u.onCommandKey(null,t.option,i.right);break;case 8:u.onCommandKey(null,0,i.end);break;case 9:u.onCommandKey(null,0,i.down);break}else{switch(Ne){case 6:u.onCommandKey(null,t.shift,i.right);break;case 7:u.onCommandKey(null,t.shift|t.option,i.right);break;case 8:u.onCommandKey(null,t.shift,i.end);break;case 9:u.onCommandKey(null,t.shift,i.down);break}switch(ge){case 0:u.onCommandKey(null,t.shift,i.up);break;case 1:u.onCommandKey(null,t.shift,i.home);break;case 2:u.onCommandKey(null,t.shift|t.option,i.left);break;case 3:u.onCommandKey(null,t.shift,i.left);break}}}};document.addEventListener("selectionchange",he),u.on("destroy",function(){document.removeEventListener("selectionchange",he)})}};r.TextInput=e});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(l,r,g){var p=l("../lib/event"),v=l("../lib/useragent"),f=l("../lib/dom"),a=l("../lib/lang"),i=v.isChrome<18,t=v.isIE,s=l("./textinput_ios").TextInput,o=function(e,c){if(v.isIOS)return s.call(this,e,c);var u=f.createElement("textarea");u.className="ace_text-input",u.setAttribute("wrap","off"),u.setAttribute("autocorrect","off"),u.setAttribute("autocapitalize","off"),u.setAttribute("spellcheck",!1),u.style.opacity="0",e.insertBefore(u,e.firstChild);var h="\u2028\u2028",b=!1,m=!1,k=!1,d="",w=!0;try{var y=document.activeElement===u}catch{}p.addListener(u,"blur",function(X){c.onBlur(X),y=!1}),p.addListener(u,"focus",function(X){y=!0,c.onFocus(X),E()}),this.focus=function(){if(d)return u.focus();var X=u.style.top;u.style.position="fixed",u.style.top="0px",u.focus(),setTimeout(function(){u.style.position="",u.style.top=="0px"&&(u.style.top=X)},0)},this.blur=function(){u.blur()},this.isFocused=function(){return y};var _=a.delayedCall(function(){y&&E(w)}),x=a.delayedCall(function(){k||(u.value=h,y&&E())});function E(X){if(!k){if(k=!0,R)var be=0,Be=X?0:u.value.length-1;else var be=X?2:1,Be=2;try{u.setSelectionRange(be,Be)}catch{}k=!1}}function S(){k||(u.value=h,v.isWebKit&&x.schedule())}v.isWebKit||c.addEventListener("changeSelection",function(){c.selection.isEmpty()!=w&&(w=!w,_.schedule())}),S(),y&&c.onFocus();var C=function(X){return X.selectionStart===0&&X.selectionEnd===X.value.length},T=function(X){b?b=!1:C(u)?(c.selectAll(),E()):R&&E(c.selection.isEmpty())},R=null;this.setInputHandler=function(X){R=X},this.getInputHandler=function(){return R};var W=!1,j=function(X){R&&(X=R(X),R=null),m?(E(),X&&c.onPaste(X),m=!1):X==h.charAt(0)?W?c.execCommand("del",{source:"ace"}):c.execCommand("backspace",{source:"ace"}):(X.substring(0,2)==h?X=X.substr(2):X.charAt(0)==h.charAt(0)?X=X.substr(1):X.charAt(X.length-1)==h.charAt(0)&&(X=X.slice(0,-1)),X.charAt(X.length-1)==h.charAt(0)&&(X=X.slice(0,-1)),X&&c.onTextInput(X)),W&&(W=!1)},L=function(X){if(!k){var be=u.value;j(be),S()}},Q=function(X,be,Be){var ve=X.clipboardData||window.clipboardData;if(!(!ve||i)){var he=t||Be?"Text":"text/plain";try{return be?ve.setData(he,be)!==!1:ve.getData(he)}catch(le){if(!Be)return Q(le,be,!0)}}},U=function(X,be){var Be=c.getCopyText();if(!Be)return p.preventDefault(X);Q(X,Be)?(be?c.onCut():c.onCopy(),p.preventDefault(X)):(b=!0,u.value=Be,u.select(),setTimeout(function(){b=!1,S(),E(),be?c.onCut():c.onCopy()}))},Z=function(X){U(X,!0)},se=function(X){U(X,!1)},te=function(X){var be=Q(X);typeof be=="string"?(be&&c.onPaste(be,X),v.isIE&&setTimeout(E),p.preventDefault(X)):(u.value="",m=!0)};p.addCommandKeyListener(u,c.onCommandKey.bind(c)),p.addListener(u,"select",T),p.addListener(u,"input",L),p.addListener(u,"cut",Z),p.addListener(u,"copy",se),p.addListener(u,"paste",te),(!("oncut"in u)||!("oncopy"in u)||!("onpaste"in u))&&p.addListener(e,"keydown",function(X){if(!(v.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:se(X);break;case 86:te(X);break;case 88:Z(X);break}});var $=function(X){k||!c.onCompositionStart||c.$readOnly||(k={},k.canUndo=c.session.$undoManager,c.onCompositionStart(),setTimeout(P,0),c.on("mousedown",A),k.canUndo&&!c.selection.isEmpty()&&(c.insert(""),c.session.markUndoGroup(),c.selection.clearSelection()),c.session.markUndoGroup())},P=function(){if(!(!k||!c.onCompositionUpdate||c.$readOnly)){var X=u.value.replace(/\u2028/g,"");if(k.lastValue!==X&&(c.onCompositionUpdate(X),k.lastValue&&c.undo(),k.canUndo&&(k.lastValue=X),k.lastValue)){var be=c.selection.getRange();c.insert(k.lastValue),c.session.markUndoGroup(),k.range=c.selection.getRange(),c.selection.setRange(be),c.selection.clearSelection()}}},A=function(X){if(!(!c.onCompositionEnd||c.$readOnly)){var be=k;k=!1;var Be=setTimeout(function(){Be=null;var he=u.value.replace(/\u2028/g,"");k||(he==be.lastValue?S():!be.lastValue&&he&&(S(),j(he)))});R=function(le){return Be&&clearTimeout(Be),le=le.replace(/\u2028/g,""),le==be.lastValue?"":(be.lastValue&&Be&&c.undo(),le)},c.onCompositionEnd(),c.removeListener("mousedown",A),X.type=="compositionend"&&be.range&&c.selection.setRange(be.range);var ve=!!v.isChrome&&v.isChrome>=53||!!v.isWebKit&&v.isWebKit>=603;ve&&L()}},O=a.delayedCall(P,50);p.addListener(u,"compositionstart",$),v.isGecko?p.addListener(u,"text",function(){O.schedule()}):(p.addListener(u,"keyup",function(){O.schedule()}),p.addListener(u,"keydown",function(){O.schedule()})),p.addListener(u,"compositionend",A),this.getElement=function(){return u},this.setReadOnly=function(X){u.readOnly=X},this.onContextMenu=function(X){W=!0,E(c.selection.isEmpty()),c._emit("nativecontextmenu",{target:c,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,be){d||(d=u.style.cssText),u.style.cssText=(be?"z-index:100000;":"")+"height:"+u.style.height+";"+(v.isIE?"opacity:0.1;":"");var Be=c.container.getBoundingClientRect(),ve=f.computedStyle(c.container),he=Be.top+(parseInt(ve.borderTopWidth)||0),le=Be.left+(parseInt(Be.borderLeftWidth)||0),ge=Be.bottom-he-u.clientHeight-2,Ne=function(Ue){u.style.left=Ue.clientX-le-2+"px",u.style.top=Math.min(Ue.clientY-he-2,ge)+"px"};Ne(X),X.type=="mousedown"&&(c.renderer.$keepTextAreaAtCursor&&(c.renderer.$keepTextAreaAtCursor=null),clearTimeout(z),v.isWin&&p.capture(c.container,Ne,G))},this.onContextMenuClose=G;var z;function G(){clearTimeout(z),z=setTimeout(function(){d&&(u.style.cssText=d,d=""),c.renderer.$keepTextAreaAtCursor==null&&(c.renderer.$keepTextAreaAtCursor=!0,c.renderer.$moveTextAreaToCursor())},0)}var re=function(X){c.textInput.onContextMenu(X),G()};p.addListener(u,"mouseup",re),p.addListener(u,"mousedown",function(X){X.preventDefault(),G()}),p.addListener(c.renderer.scroller,"contextmenu",re),p.addListener(u,"contextmenu",re)};r.TextInput=o});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(l,r,g){l("../lib/dom"),l("../lib/event");var p=l("../lib/useragent"),v=0,f=250;function a(s){s.$clickSelection=null;var o=s.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s)),o.setDefaultHandler("touchmove",this.onTouchMove.bind(s));var e=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];e.forEach(function(c){s[c]=this[c]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}(function(){this.onMouseDown=function(s){var o=s.inSelection(),e=s.getDocumentPosition();this.mousedownEvent=s;var c=this.editor,u=s.getButton();if(u!==0){var h=c.getSelectionRange(),b=h.isEmpty();c.$blockScrolling++,(b||u==1)&&c.selection.moveToPosition(e),c.$blockScrolling--,u==2&&(c.textInput.onContextMenu(s.domEvent),p.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!c.isFocused()&&(c.focus(),this.$focusTimout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(e,s.domEvent._clicks>1),s.preventDefault()},this.startSelect=function(s,o){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var e=this.editor;e.$blockScrolling++,this.mousedownEvent.getShiftKey()?e.selection.selectToPosition(s):o||e.selection.moveToPosition(s),o||this.select(),e.renderer.scroller.setCapture&&e.renderer.scroller.setCapture(),e.setStyle("ace_selecting"),this.setState("select"),e.$blockScrolling--},this.select=function(){var s,o=this.editor,e=o.renderer.screenToTextCoordinates(this.x,this.y);if(o.$blockScrolling++,this.$clickSelection){var c=this.$clickSelection.comparePoint(e);if(c==-1)s=this.$clickSelection.end;else if(c==1)s=this.$clickSelection.start;else{var u=t(this.$clickSelection,e);e=u.cursor,s=u.anchor}o.selection.setSelectionAnchor(s.row,s.column)}o.selection.selectToPosition(e),o.$blockScrolling--,o.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(s){var o,e=this.editor,c=e.renderer.screenToTextCoordinates(this.x,this.y),u=e.selection[s](c.row,c.column);if(e.$blockScrolling++,this.$clickSelection){var h=this.$clickSelection.comparePoint(u.start),b=this.$clickSelection.comparePoint(u.end);if(h==-1&&b<=0)o=this.$clickSelection.end,(u.end.row!=c.row||u.end.column!=c.column)&&(c=u.start);else if(b==1&&h>=0)o=this.$clickSelection.start,(u.start.row!=c.row||u.start.column!=c.column)&&(c=u.end);else if(h==-1&&b==1)c=u.end,o=u.start;else{var m=t(this.$clickSelection,c);c=m.cursor,o=m.anchor}e.selection.setSelectionAnchor(o.row,o.column)}e.selection.selectToPosition(c),e.$blockScrolling--,e.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var s=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(s>v||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(s){var o=s.getDocumentPosition(),e=this.editor,c=e.session,u=c.getBracketRange(o);u?(u.isEmpty()&&(u.start.column--,u.end.column++),this.setState("select")):(u=e.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=u,this.select()},this.onTripleClick=function(s){var o=s.getDocumentPosition(),e=this.editor;this.setState("selectByLines");var c=e.getSelectionRange();c.isMultiLine()&&c.contains(o.row,o.column)?(this.$clickSelection=e.selection.getLineRange(c.start.row),this.$clickSelection.end=e.selection.getLineRange(c.end.row).end):this.$clickSelection=e.selection.getLineRange(o.row),this.select()},this.onQuadClick=function(s){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var e=this.$lastScroll,c=s.domEvent.timeStamp,u=c-e.t,h=s.wheelX/u,b=s.wheelY/u;u=1&&o.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(k=!0),m<=1&&o.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(k=!0),k)e.allowed=c;else if(c-e.allowedo.session.documentToScreenRow(E.row,E.column))return k()}if(b!=y)if(b=y.text.join("
"),c.setHtml(b),c.show(),o._signal("showGutterTooltip",c),o.on("mousewheel",k),s.$tooltipFollowsMouse)d(h);else{var S=h.domEvent.target,C=S.getBoundingClientRect(),T=c.getElement().style;T.left=C.right+"px",T.top=C.bottom+"px"}}function k(){u&&(u=clearTimeout(u)),b&&(c.hide(),b=null,o._signal("hideGutterTooltip",c),o.removeEventListener("mousewheel",k))}function d(w){c.setPosition(w.x,w.y)}s.editor.setDefaultHandler("guttermousemove",function(w){var y=w.domEvent.target||w.domEvent.srcElement;if(p.hasCssClass(y,"ace_fold-widget"))return k();b&&s.$tooltipFollowsMouse&&d(w),h=w,!u&&(u=setTimeout(function(){u=null,h&&!s.isMousePressed?m():k()},50))}),f.addListener(o.renderer.$gutter,"mouseout",function(w){h=null,!(!b||u)&&(u=setTimeout(function(){u=null,k()},50))}),o.on("changeSession",k)}function t(s){a.call(this,s)}v.inherits(t,a),(function(){this.setPosition=function(s,o){var e=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight,u=this.getWidth(),h=this.getHeight();s+=15,o+=15,s+u>e&&(s-=s+u-e),o+h>c&&(o-=20+h),a.prototype.setPosition.call(this,s,o)}}).call(t.prototype),r.GutterHandler=i});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(l,r,g){var p=l("../lib/event"),v=l("../lib/useragent"),f=r.MouseEvent=function(a,i){this.domEvent=a,this.editor=i,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a=this.editor,i=a.getSelectionRange();if(i.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=i.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return p.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=v.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(f.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(l,r,g){var p=l("../lib/dom"),v=l("../lib/event"),f=l("../lib/useragent"),a=200,i=200,t=5;function s(e){var c=e.editor,u=p.createElement("img");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f.isOpera&&(u.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var h=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];h.forEach(function(P){e[P]=this[P]},this),c.addEventListener("mousedown",this.onMouseDown.bind(e));var b=c.container,m,k,d,w,y,_,x=0,E,S,C,T,R;this.onDragStart=function(P){if(this.cancelDrag||!b.draggable){var A=this;return setTimeout(function(){A.startSelect(),A.captureMouse(P)},0),P.preventDefault()}y=c.getSelectionRange();var O=P.dataTransfer;O.effectAllowed=c.getReadOnly()?"copy":"copyMove",f.isOpera&&(c.container.appendChild(u),u.scrollTop=0),O.setDragImage&&O.setDragImage(u,0,0),f.isOpera&&c.container.removeChild(u),O.clearData(),O.setData("Text",c.session.getTextRange()),S=!0,this.setState("drag")},this.onDragEnd=function(P){if(b.draggable=!1,S=!1,this.setState(null),!c.getReadOnly()){var A=P.dataTransfer.dropEffect;!E&&A=="move"&&c.session.remove(c.getSelectionRange()),c.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(P){if(!(c.getReadOnly()||!te(P.dataTransfer)))return k=P.clientX,d=P.clientY,m||Q(),x++,P.dataTransfer.dropEffect=E=$(P),v.preventDefault(P)},this.onDragOver=function(P){if(!(c.getReadOnly()||!te(P.dataTransfer)))return k=P.clientX,d=P.clientY,m||(Q(),x++),Z!==null&&(Z=null),P.dataTransfer.dropEffect=E=$(P),v.preventDefault(P)},this.onDragLeave=function(P){if(x--,x<=0&&m)return U(),E=null,v.preventDefault(P)},this.onDrop=function(P){if(_){var A=P.dataTransfer;if(S)switch(E){case"move":y.contains(_.row,_.column)?y={start:_,end:_}:y=c.moveText(y,_);break;case"copy":y=c.moveText(y,_,!0);break}else{var O=A.getData("Text");y={start:_,end:c.session.insert(_,O)},c.focus(),E=null}return U(),v.preventDefault(P)}},v.addListener(b,"dragstart",this.onDragStart.bind(e)),v.addListener(b,"dragend",this.onDragEnd.bind(e)),v.addListener(b,"dragenter",this.onDragEnter.bind(e)),v.addListener(b,"dragover",this.onDragOver.bind(e)),v.addListener(b,"dragleave",this.onDragLeave.bind(e)),v.addListener(b,"drop",this.onDrop.bind(e));function W(P,A){var O=Date.now(),z=!A||P.row!=A.row,G=!A||P.column!=A.column;if(!T||z||G)c.$blockScrolling+=1,c.moveCursorToPosition(P),c.$blockScrolling-=1,T=O,R={x:k,y:d};else{var re=o(R.x,R.y,k,d);re>t?T=null:O-T>=i&&(c.renderer.scrollCursorIntoView(),T=null)}}function j(P,A){var O=Date.now(),z=c.renderer.layerConfig.lineHeight,G=c.renderer.layerConfig.characterWidth,re=c.renderer.scroller.getBoundingClientRect(),X={x:{left:k-re.left,right:re.right-k},y:{top:d-re.top,bottom:re.bottom-d}},be=Math.min(X.x.left,X.x.right),Be=Math.min(X.y.top,X.y.bottom),ve={row:P.row,column:P.column};be/G<=2&&(ve.column+=X.x.left=a&&c.renderer.scrollCursorIntoView(ve):C=O:C=null}function L(){var P=_;_=c.renderer.screenToTextCoordinates(k,d),W(_,P),j(_,P)}function Q(){y=c.selection.toOrientedRange(),m=c.session.addMarker(y,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),L(),w=setInterval(L,20),x=0,v.addListener(document,"mousemove",se)}function U(){clearInterval(w),c.session.removeMarker(m),m=null,c.$blockScrolling+=1,c.selection.fromOrientedRange(y),c.$blockScrolling-=1,c.isFocused()&&!S&&c.renderer.$cursorLayer.setBlinking(!c.getReadOnly()),y=null,_=null,x=0,C=null,T=null,v.removeListener(document,"mousemove",se)}var Z=null;function se(){Z==null&&(Z=setTimeout(function(){Z!=null&&m&&U()},20))}function te(P){var A=P.types;return!A||Array.prototype.some.call(A,function(O){return O=="text/plain"||O=="Text"})}function $(P){var A=["copy","copymove","all","uninitialized"],O=["move","copymove","linkmove","all","uninitialized"],z=f.isMac?P.altKey:P.ctrlKey,G="uninitialized";try{G=P.dataTransfer.effectAllowed.toLowerCase()}catch{}var re="none";return z&&A.indexOf(G)>=0?re="copy":O.indexOf(G)>=0?re="move":A.indexOf(G)>=0&&(re="copy"),re}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,c=e.container;c.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var u=f.isWin?"default":"move";e.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(e){var c=this.editor.container;if(f.isIE&&this.state=="dragReady"){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&c.dragDrop()}if(this.state==="dragWait"){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var c=this.editor,u=e.inSelection(),h=e.getButton(),b=e.domEvent.detail||1;if(b===1&&h===0&&u){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var m=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in m&&(m.unselectable="on"),c.getDragDelay()){if(f.isWebKit){this.cancelDrag=!0;var k=c.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype);function o(e,c,u,h){return Math.sqrt(Math.pow(u-e,2)+Math.pow(h-c,2))}r.DragdropHandler=s});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(l,r,g){var p=l("./dom");r.get=function(v,f){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState===4&&f(a.responseText)},a.send(null)},r.loadScript=function(v,f){var a=p.getDocumentHead(),i=document.createElement("script");i.src=v,a.appendChild(i),i.onload=i.onreadystatechange=function(t,s){(s||!i.readyState||i.readyState=="loaded"||i.readyState=="complete")&&(i=i.onload=i.onreadystatechange=null,s||f())}},r.qualifyURL=function(v){var f=document.createElement("a");return f.href=v,f.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(l,r,g){var p={},v=function(){this.propagationStopped=!0},f=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(a,i){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],s=this._defaultHandlers[a];if(!(!t.length&&!s)){(typeof i!="object"||!i)&&(i={}),i.type||(i.type=a),i.stopPropagation||(i.stopPropagation=v),i.preventDefault||(i.preventDefault=f),t=t.slice();for(var o=0;o1&&(h=c[c.length-2]);var m=i[e+"Path"];return m==null?m=i.basePath:u=="/"&&(e=u=""),m&&m.slice(-1)!="/"&&(m+="/"),m+e+u+h+this.get("suffix")},r.setModuleUrl=function(o,e){return i.$moduleUrls[o]=e},r.$loading={},r.loadModule=function(o,e){var c,u;Array.isArray(o)&&(u=o[0],o=o[1]);try{c=l(o)}catch{}if(c&&!r.$loading[o])return e&&e(c);if(r.$loading[o]||(r.$loading[o]=[]),r.$loading[o].push(e),!(r.$loading[o].length>1)){var h=function(){l([o],function(b){r._emit("load.module",{name:o,module:b});var m=r.$loading[o];r.$loading[o]=null,m.forEach(function(k){k&&k(b)})})};if(!r.get("packaged"))return h();v.loadScript(r.moduleUrl(o,u),h)}},t(!0);function t(o){if(!(!a||!a.document)){i.packaged=o||l.packaged||g.packaged||a.define&&(void 0).packaged;for(var e={},c="",u=document.currentScript||document._currentScript,h=u&&u.ownerDocument||document,b=h.getElementsByTagName("script"),m=0;m0)if(ve==16){for(ge=le;ge-1){for(ge=le;ge=0&&z[Le]==y;Le--)A[Le]=p}}}function se(P,A,O){if(!(v=P){for(re=G+1;re=P;)re++;for(X=G,be=re-1;X=A.length||(re=O[z-1])!=h&&re!=b||(X=A[z+1])!=h&&X!=b?m:(f&&(X=b),X==re?X:m);case x:return re=z>0?O[z-1]:k,re==h&&z+10&&O[z-1]==h)return h;if(f)return m;for(Be=z+1,be=A.length;Be=1425&&ve<=2303||ve==64286;if(re=A[Be],he&&(re==u||re==w))return u}return z<1||(re=A[z-1])==k?m:O[z-1];case k:return f=!1,a=!0,p;case d:return i=!0,m;case C:case T:case W:case j:case R:f=!1;case L:return m}}function $(P){var A=P.charCodeAt(0),O=A>>8;return O==0?A>191?c:Q[A]:O==5?/[\u0591-\u05f4]/.test(P)?u:c:O==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(P)?S:/[\u0660-\u0669\u066b-\u066c]/.test(P)?b:A==1642?E:/[\u06f0-\u06f9]/.test(P)?h:w:O==32&&A<=8287?U[A&255]:O==254&&A>=65136?w:m}r.L=c,r.R=u,r.EN=h,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.DOT="·",r.doBidiReorder=function(P,A,O){if(P.length<2)return{};var z=P.split(""),G=new Array(z.length),re=new Array(z.length),X=[];p=O?e:o,Z(z,X,z.length,A);for(var be=0;bew&&A[be]0&&z[be-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(z[be])&&(X[be-1]=X[be]=r.R_H,be++);z[z.length-1]===r.DOT&&(X[z.length-1]=r.B);for(var be=0;be=0&&(t=this.session.$docRowCache[o])}return t},this.getSplitIndex=function(){var t=0,s=this.session.$screenRowCache;if(s.length)for(var o,e=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-t>0&&(o=this.session.$getRowCacheIndex(s,this.currentRow-t-1),o===e);)e=o,t++;return t},this.updateRowLine=function(t,s){if(t===void 0&&(t=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=t===this.session.getLength()-1,this.line=this.session.getLine(t),this.session.$useWrapMode){var o=this.session.$wrapData[t];o&&(s===void 0&&(s=this.getSplitIndex()),s>0&&o.length?(this.wrapIndent=o.indent,this.line=s0?t-1:0,this.bidiMap),o=this.bidiMap.bidiLevels,e=0;t===0&&o[s]%2!==0&&s++;for(var c=0;c=b&&ye+h/2;){if(e+=h,c===u.length-1){h=0;break}h=this.charWidths[u[++c]]}return c>0&&u[c-1]%2!==0&&u[c]%2===0?(o0&&u[c-1]%2===0&&u[c]%2!==0?s=1+(o>e?this.bidiMap.logicalFromVisual[c]:this.bidiMap.logicalFromVisual[c-1]):this.isRtlDir&&c===u.length-1&&h===0&&u[c-1]%2===0||!this.isRtlDir&&c===0&&u[c]%2!==0?s=1+this.bidiMap.logicalFromVisual[c]:(c>0&&u[c-1]%2!==0&&h!==0&&c--,s=this.bidiMap.logicalFromVisual[c]),s+this.wrapIndent}}).call(i.prototype),r.BidiHandler=i});ace.define("ace/range",["require","exports","module"],function(l,r,g){var p=function(f,a){return f.row-a.row||f.column-a.column},v=function(f,a,i,t){this.start={row:f,column:a},this.end={row:i,column:t}};(function(){this.isEqual=function(f){return this.start.row===f.start.row&&this.end.row===f.end.row&&this.start.column===f.start.column&&this.end.column===f.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(f,a){return this.compare(f,a)==0},this.compareRange=function(f){var a,i=f.end,t=f.start;return a=this.compare(i.row,i.column),a==1?(a=this.compare(t.row,t.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(t.row,t.column),a==-1?-1:a==1?42:0)},this.comparePoint=function(f){return this.compare(f.row,f.column)},this.containsRange=function(f){return this.comparePoint(f.start)==0&&this.comparePoint(f.end)==0},this.intersects=function(f){var a=this.compareRange(f);return a==-1||a==0||a==1},this.isEnd=function(f,a){return this.end.row==f&&this.end.column==a},this.isStart=function(f,a){return this.start.row==f&&this.start.column==a},this.setStart=function(f,a){typeof f=="object"?(this.start.column=f.column,this.start.row=f.row):(this.start.row=f,this.start.column=a)},this.setEnd=function(f,a){typeof f=="object"?(this.end.column=f.column,this.end.row=f.row):(this.end.row=f,this.end.column=a)},this.inside=function(f,a){return this.compare(f,a)==0?!(this.isEnd(f,a)||this.isStart(f,a)):!1},this.insideStart=function(f,a){return this.compare(f,a)==0?!this.isEnd(f,a):!1},this.insideEnd=function(f,a){return this.compare(f,a)==0?!this.isStart(f,a):!1},this.compare=function(f,a){return!this.isMultiLine()&&f===this.start.row?athis.end.column?1:0:fthis.end.row?1:this.start.row===f?a>=this.start.column?0:-1:this.end.row===f?a<=this.end.column?0:1:0},this.compareStart=function(f,a){return this.start.row==f&&this.start.column==a?-1:this.compare(f,a)},this.compareEnd=function(f,a){return this.end.row==f&&this.end.column==a?1:this.compare(f,a)},this.compareInside=function(f,a){return this.end.row==f&&this.end.column==a?1:this.start.row==f&&this.start.column==a?-1:this.compare(f,a)},this.clipRows=function(f,a){if(this.end.row>a)var i={row:a+1,column:0};else if(this.end.rowa)var t={row:a+1,column:0};else if(this.start.rows.row||t.row==s.row&&t.column>s.column},this.getRange=function(){var t=this.anchor,s=this.lead;return this.isEmpty()?a.fromPoints(s,s):this.isBackwards()?a.fromPoints(s,t):a.fromPoints(t,s)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var t=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(t,this.doc.getLine(t).length)},this.setRange=this.setSelectionRange=function(t,s){s?(this.setSelectionAnchor(t.end.row,t.end.column),this.selectTo(t.start.row,t.start.column)):(this.setSelectionAnchor(t.start.row,t.start.column),this.selectTo(t.end.row,t.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(t){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),t.call(this)},this.selectTo=function(t,s){this.$moveSelection(function(){this.moveCursorTo(t,s)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,s){this.clearSelection(),this.moveCursorTo(t,s)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,s){if(typeof s>"u"){var o=t||this.lead;t=o.row,s=o.column}return this.session.getWordRange(t,s)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),s=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(s)},this.getLineRange=function(t,s){var o=typeof t=="number"?t:this.lead.row,e,c=this.session.getFoldLine(o);return c?(o=c.start.row,e=c.end.row):e=o,s===!0?new a(o,0,e,this.session.getLine(e).length):new a(o,0,e+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,s,o){var e=t.column,c=t.column+s;return o<0&&(e=t.column-s,c=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(e,c).split(" ").length-1==s},this.moveCursorLeft=function(){var t=this.lead.getPosition(),s;if(s=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var o=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,o,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-o):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),s;if(s=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(s.column=e)}}this.moveCursorTo(s.row,s.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,s=this.doc.getLine(t).length;this.moveCursorTo(t,s)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,s=this.lead.column,o=this.doc.getLine(t),e=o.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var c=this.session.getFoldAt(t,s,1);if(c){this.moveCursorTo(c.end.row,c.end.column);return}if(this.session.nonTokenRe.exec(e)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,e=o.substring(s)),s>=o.length){this.moveCursorTo(t,o.length),this.moveCursorRight(),t0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(c)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,s)},this.$shortWordEndIndex=function(t){var s=0,o,e=/\s/,c=this.session.tokenRe;if(c.lastIndex=0,this.session.tokenRe.exec(t))s=this.session.tokenRe.lastIndex;else{for(;(o=t[s])&&e.test(o);)s++;if(s<1){for(c.lastIndex=0;(o=t[s])&&!c.test(o);)if(c.lastIndex=0,s++,e.test(o))if(s>2){s--;break}else{for(;(o=t[s])&&e.test(o);)s++;if(s>2)break}}}return c.lastIndex=0,s},this.moveCursorShortWordRight=function(){var t=this.lead.row,s=this.lead.column,o=this.doc.getLine(t),e=o.substring(s),c=this.session.getFoldAt(t,s,1);if(c)return this.moveCursorTo(c.end.row,c.end.column);if(s==o.length){var u=this.doc.getLength();do t++,e=this.doc.getLine(t);while(t0&&/^\s*$/.test(e));s=e.length,/\s+$/.test(e)||(e="")}var c=v.stringReverse(e),u=this.$shortWordEndIndex(c);return this.moveCursorTo(t,s-u)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,s){var o=this.session.documentToScreenPosition(this.lead.row,this.lead.column),e;s===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column);var c=this.session.screenToDocumentPosition(o.row+t,o.column,e);t!==0&&s===0&&c.row===this.lead.row&&c.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[c.row]&&(c.row>0||t>0)&&c.row++,this.moveCursorTo(c.row,c.column+s,s===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,s,o){var e=this.session.getFoldAt(t,s,1);e&&(t=e.start.row,s=e.start.column),this.$keepDesiredColumnOnChange=!0;var c=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(c.charAt(s))&&c.charAt(s-1)&&(this.lead.row==t&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(t,s),this.$keepDesiredColumnOnChange=!1,o||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,s,o){var e=this.session.screenToDocumentPosition(t,s);this.moveCursorTo(e.row,e.column,o)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var s=this.getRange();return t?(t.start.column=s.start.column,t.start.row=s.start.row,t.end.column=s.end.column,t.end.row=s.end.row):t=s,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var s=this.getCursor();try{t(this);var o=this.getCursor();return a.fromPoints(s,o)}catch{return a.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(s){var o=s.clone();return o.isBackwards=s.cursor==s.start,o});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList){this.toSingleRange(t[0]);for(var s=t.length;s--;){var o=a.fromPoints(t[s].start,t[s].end);t[s].isBackwards&&(o.cursor=o.start),this.addRange(o,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(t[s]))return!1;return!0}}).call(i.prototype),r.Selection=i});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(l,r,g){var p=l("./config"),v=2e3,f=function(a){this.states=a,this.regExps={},this.matchMappings={};for(var i in this.states){for(var t=this.states[i],s=[],o=0,e=this.matchMappings[i]={defaultToken:"text"},c="g",u=[],h=0;h1?b.onMatch=this.$applyToken:b.onMatch=b.token),k>1&&(/\\\d/.test(b.regex)?m=b.regex.replace(/\\([0-9]+)/g,function(d,w){return"\\"+(parseInt(w,10)+o+1)}):(k=1,m=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&u.push(b)),e[o]=h,o+=k,s.push(m),b.onMatch||(b.onMatch=null)}}s.length||(e[0]=0,s.push("$")),u.forEach(function(d){d.splitRegex=this.createSplitterRegexp(d.regex,c)},this),this.regExps[i]=new RegExp("("+s.join(")|(")+")|($)",c)}};(function(){this.$setMaxTokenCount=function(a){v=a|0},this.$applyToken=function(a){var i=this.splitRegex.exec(a).slice(1),t=this.token.apply(this,i);if(typeof t=="string")return[{type:t,value:a}];for(var s=[],o=0,e=t.length;ob){var x=a.substring(b,_-y.length);k.type==d?k.value+=x:(k.type&&h.push(k),k={type:d,value:x})}for(var E=0;Ev){for(m>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:i,line:a});b1&&t[0]!==s&&t.unshift("#tmp",s),{tokens:h,state:t.length?t:s}},this.reportError=p.reportError}).call(f.prototype),r.Tokenizer=f});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(l,r,g){var p=l("../lib/lang"),v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(i,t){if(!t){for(var s in i)this.$rules[s]=i[s];return}for(var s in i){for(var o=i[s],e=0;e=this.$rowTokens.length;){if(this.$row+=1,f||(f=this.$session.getLength()),this.$row>=f)return this.$row=f-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var f=this.$rowTokens,a=this.$tokenIndex,i=f[a].start;if(i!==void 0)return i;for(i=0;a>0;)a-=1,i+=f[a].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var f=this.$rowTokens[this.$tokenIndex],a=this.getCurrentTokenColumn();return new p(this.$row,a,this.$row,a+f.value.length)}}).call(v.prototype),r.TokenIterator=v});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(l,r,g){var p=l("../../lib/oop"),v=l("../behaviour").Behaviour,f=l("../../token_iterator").TokenIterator,a=l("../../lib/lang"),i=["text","paren.rparen","punctuation.operator"],t=["text","paren.rparen","punctuation.operator","comment"],s,o={},e={'"':'"',"'":"'"},c=function(b){var m=-1;if(b.multiSelect&&(m=b.selection.index,o.rangeCount!=b.multiSelect.rangeCount&&(o={rangeCount:b.multiSelect.rangeCount})),o[m])return s=o[m];s=o[m]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(b,m,k,d){var w=b.end.row-b.start.row;return{text:k+m+d,selection:[0,b.start.column+1,w,b.end.column+(w?0:1)]}},h=function(b){this.add("braces","insertion",function(m,k,d,w,y){var _=d.getCursorPosition(),x=w.doc.getLine(_.row);if(y=="{"){c(d);var E=d.getSelectionRange(),S=w.doc.getTextRange(E);if(S!==""&&S!=="{"&&d.getWrapBehavioursEnabled())return u(E,S,"{","}");if(h.isSaneInsertion(d,w))return/[\]\}\)]/.test(x[_.column])||d.inMultiSelectMode||b&&b.braces?(h.recordAutoInsert(d,w,"}"),{text:"{}",selection:[1,1]}):(h.recordMaybeInsert(d,w,"{"),{text:"{",selection:[1,1]})}else if(y=="}"){c(d);var C=x.substring(_.column,_.column+1);if(C=="}"){var T=w.$findOpeningBracket("}",{column:_.column+1,row:_.row});if(T!==null&&h.isAutoInsertedClosing(_,x,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(y==` `||y==`\r `){c(d);var R="";h.isMaybeInsertedClosing(_,x)&&(R=a.stringRepeat("}",s.maybeInsertedBrackets),h.clearMaybeInsertedClosing());var C=x.substring(_.column,_.column+1);if(C==="}"){var W=w.findMatchingBracket({row:_.row,column:_.column+1},"}");if(!W)return null;var j=this.$getIndent(w.getLine(W.row))}else if(R)var j=this.$getIndent(x);else{h.clearMaybeInsertedClosing();return}var L=j+w.getTabString();return{text:` `+L+` -`+j+R,selection:[1,L.length,1,L.length]}}else h.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(p,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="{"){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.end.column,y.end.column+1);if(E=="}")return y.end.column++,y;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(p,k,d,w,y){if(y=="("){c(d);var _=d.getSelectionRange(),x=w.doc.getTextRange(_);if(x!==""&&d.getWrapBehavioursEnabled())return u(_,x,"(",")");if(h.isSaneInsertion(d,w))return h.recordAutoInsert(d,w,")"),{text:"()",selection:[1,1]}}else if(y==")"){c(d);var E=d.getCursorPosition(),S=w.doc.getLine(E.row),C=S.substring(E.column,E.column+1);if(C==")"){var T=w.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(T!==null&&h.isAutoInsertedClosing(E,S,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(p,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="("){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E==")")return y.end.column++,y}}),this.add("brackets","insertion",function(p,k,d,w,y){if(y=="["){c(d);var _=d.getSelectionRange(),x=w.doc.getTextRange(_);if(x!==""&&d.getWrapBehavioursEnabled())return u(_,x,"[","]");if(h.isSaneInsertion(d,w))return h.recordAutoInsert(d,w,"]"),{text:"[]",selection:[1,1]}}else if(y=="]"){c(d);var E=d.getCursorPosition(),S=w.doc.getLine(E.row),C=S.substring(E.column,E.column+1);if(C=="]"){var T=w.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(T!==null&&h.isAutoInsertedClosing(E,S,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(p,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="["){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E=="]")return y.end.column++,y}}),this.add("string_dquotes","insertion",function(p,k,d,w,y){var _=w.$mode.$quotes||e;if(y.length==1&&_[y]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(y)!=-1)return;c(d);var x=y,E=d.getSelectionRange(),S=w.doc.getTextRange(E);if(S!==""&&(S.length!=1||!_[S])&&d.getWrapBehavioursEnabled())return u(E,S,x,x);if(!S){var C=d.getCursorPosition(),T=w.doc.getLine(C.row),R=T.substring(C.column-1,C.column),W=T.substring(C.column,C.column+1),j=w.getTokenAt(C.row,C.column),L=w.getTokenAt(C.row,C.column+1);if(R=="\\"&&j&&/escape/.test(j.type))return null;var Q=j&&/string|escape/.test(j.type),U=!L||/string|escape/.test(L.type),Z;if(W==x)Z=Q!==U,Z&&/string\.end/.test(L.type)&&(Z=!1);else{if(Q&&!U||Q&&U)return null;var se=w.$mode.tokenRe;se.lastIndex=0;var te=se.test(R);se.lastIndex=0;var $=se.test(R);if(te||$||W&&!/[\s;,.})\]\\]/.test(W))return null;Z=!0}return{text:Z?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(p,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&(_=='"'||_=="'")){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E==_)return y.end.column++,y}})};h.isSaneInsertion=function(b,p){var k=b.getCursorPosition(),d=new f(p,k.row,k.column);if(!this.$matchTokenType(d.getCurrentToken()||"text",i)){var w=new f(p,k.row,k.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",i))return!1}return d.stepForward(),d.getCurrentTokenRow()!==k.row||this.$matchTokenType(d.getCurrentToken()||"text",t)},h.$matchTokenType=function(b,p){return p.indexOf(b.type||b)>-1},h.recordAutoInsert=function(b,p,k){var d=b.getCursorPosition(),w=p.doc.getLine(d.row);this.isAutoInsertedClosing(d,w,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=d.row,s.autoInsertedLineEnd=k+w.substr(d.column),s.autoInsertedBrackets++},h.recordMaybeInsert=function(b,p,k){var d=b.getCursorPosition(),w=p.doc.getLine(d.row);this.isMaybeInsertedClosing(d,w)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=d.row,s.maybeInsertedLineStart=w.substr(0,d.column)+k,s.maybeInsertedLineEnd=w.substr(d.column),s.maybeInsertedBrackets++},h.isAutoInsertedClosing=function(b,p,k){return s.autoInsertedBrackets>0&&b.row===s.autoInsertedRow&&k===s.autoInsertedLineEnd[0]&&p.substr(b.column)===s.autoInsertedLineEnd},h.isMaybeInsertedClosing=function(b,p){return s.maybeInsertedBrackets>0&&b.row===s.maybeInsertedRow&&p.substr(b.column)===s.maybeInsertedLineEnd&&p.substr(0,b.column)==s.maybeInsertedLineStart},h.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},h.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},g.inherits(h,v),r.CstyleBehaviour=h});ace.define("ace/unicode",["require","exports","module"],function(l,r,m){r.packages={},g({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function g(v){var f=/\w{4}/g;for(var a in v)r.packages[a]=v[a].replace(f,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(l,r,m){var g=l("../tokenizer").Tokenizer,v=l("./text_highlight_rules").TextHighlightRules,f=l("./behaviour/cstyle").CstyleBehaviour,a=l("../unicode"),i=l("../lib/lang"),t=l("../token_iterator").TokenIterator,s=l("../range").Range,o=function(){this.HighlightRules=v};(function(){this.$defaultBehaviour=new f,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new g(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,c,u,h){var b=c.doc,p=!0,k=!0,d=1/0,w=c.getTabSize(),y=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(i.escapeRegExp).join("|"),_=this.lineCommentStart[0];else var E=i.escapeRegExp(this.lineCommentStart),_=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),y=c.getUseSoftTabs();var T=function(te,$){var P=te.match(E);if(P){var A=P[1].length,O=P[0].length;!j(te,A,O)&&P[0][O-1]==" "&&O--,b.removeInLine($,A,O)}},W=_+" ",C=function(te,$){(!p||/\S/.test(te))&&(j(te,d,d)?b.insertInLine({row:$,column:d},W):b.insertInLine({row:$,column:d},_))},R=function(te,$){return E.test(te)},j=function(te,$,P){for(var A=0;$--&&te.charAt($)==" ";)A++;if(A%w!=0)return!1;for(var A=0;te.charAt(P++)==" ";)A++;return w>2?A%w!=w-1:A%w==0}}else{if(!this.blockComment)return!1;var _=this.blockComment.start,x=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+i.escapeRegExp(_)+")"),S=new RegExp("(?:"+i.escapeRegExp(x)+")\\s*$"),C=function(U,Z){R(U,Z)||(!p||/\S/.test(U))&&(b.insertInLine({row:Z,column:U.length},x),b.insertInLine({row:Z,column:d},_))},T=function(U,Z){var se;(se=U.match(S))&&b.removeInLine(Z,U.length-se[0].length,U.length),(se=U.match(E))&&b.removeInLine(Z,se[1].length,se[0].length)},R=function(U,Z){if(E.test(U))return!0;for(var se=c.getTokens(Z),te=0;teU.length&&(Q=U.length)}),d==1/0&&(d=Q,p=!1,k=!1),y&&d%w!=0&&(d=Math.floor(d/w)*w),L(k?T:C)},this.toggleBlockComment=function(e,c,u,h){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var p=new t(c,h.row,h.column),k=p.getCurrentToken();c.selection;var d=c.selection.toOrientedRange(),w,y;if(k&&/comment/.test(k.type)){for(var _,x;k&&/comment/.test(k.type);){var E=k.value.indexOf(b.start);if(E!=-1){var S=p.getCurrentTokenRow(),C=p.getCurrentTokenColumn()+E;_=new s(S,C,S,C+b.start.length);break}k=p.stepBackward()}for(var p=new t(c,h.row,h.column),k=p.getCurrentToken();k&&/comment/.test(k.type);){var E=k.value.indexOf(b.end);if(E!=-1){var S=p.getCurrentTokenRow(),C=p.getCurrentTokenColumn()+E;x=new s(S,C,S,C+b.end.length);break}k=p.stepForward()}x&&c.remove(x),_&&(c.remove(_),w=_.start.row,y=-b.start.length)}else y=b.start.length,w=u.start.row,c.insert(u.end,b.end),c.insert(u.start,b.start);d.start.row==w&&(d.start.column+=y),d.end.row==w&&(d.end.column+=y),c.selection.fromOrientedRange(d)}},this.getNextLineIndent=function(e,c,u){return this.$getIndent(c)},this.checkOutdent=function(e,c,u){return!1},this.autoOutdent=function(e,c,u){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){this.$embeds=[],this.$modes={};for(var c in e)e[c]&&(this.$embeds.push(c),this.$modes[c]=new e[c]);for(var u=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],c=0;c"u"?this.setPosition(i.row,i.column):this.setPosition(i,t)};(function(){g.implement(this,v),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var s=i(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}};function a(t,s,o){var e=o?t.column<=s.column:t.column=this.document.getLength()?(o.row=Math.max(0,this.document.getLength()-1),o.column=this.document.getLine(o.row).length):t<0?(o.row=0,o.column=0):(o.row=t,o.column=Math.min(this.document.getLine(o.row).length,Math.max(0,s))),s<0&&(o.column=0),o}}).call(f.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(l,r,m){var g=l("./lib/oop"),v=l("./apply_delta").applyDelta,f=l("./lib/event_emitter").EventEmitter,a=l("./range").Range,i=l("./anchor").Anchor,t=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){g.implement(this,f),this.setValue=function(s){var o=this.getLength()-1;this.remove(new a(0,0,o,this.getLine(o).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,o){return new i(this,s,o)},"aaa".split(/a/).length===0?this.$split=function(s){return s.replace(/\r\n|\r/g,` +`+j+R,selection:[1,L.length,1,L.length]}}else h.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(m,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="{"){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.end.column,y.end.column+1);if(E=="}")return y.end.column++,y;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(m,k,d,w,y){if(y=="("){c(d);var _=d.getSelectionRange(),x=w.doc.getTextRange(_);if(x!==""&&d.getWrapBehavioursEnabled())return u(_,x,"(",")");if(h.isSaneInsertion(d,w))return h.recordAutoInsert(d,w,")"),{text:"()",selection:[1,1]}}else if(y==")"){c(d);var E=d.getCursorPosition(),S=w.doc.getLine(E.row),C=S.substring(E.column,E.column+1);if(C==")"){var T=w.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(T!==null&&h.isAutoInsertedClosing(E,S,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(m,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="("){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E==")")return y.end.column++,y}}),this.add("brackets","insertion",function(m,k,d,w,y){if(y=="["){c(d);var _=d.getSelectionRange(),x=w.doc.getTextRange(_);if(x!==""&&d.getWrapBehavioursEnabled())return u(_,x,"[","]");if(h.isSaneInsertion(d,w))return h.recordAutoInsert(d,w,"]"),{text:"[]",selection:[1,1]}}else if(y=="]"){c(d);var E=d.getCursorPosition(),S=w.doc.getLine(E.row),C=S.substring(E.column,E.column+1);if(C=="]"){var T=w.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(T!==null&&h.isAutoInsertedClosing(E,S,y))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(m,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&_=="["){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E=="]")return y.end.column++,y}}),this.add("string_dquotes","insertion",function(m,k,d,w,y){var _=w.$mode.$quotes||e;if(y.length==1&&_[y]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(y)!=-1)return;c(d);var x=y,E=d.getSelectionRange(),S=w.doc.getTextRange(E);if(S!==""&&(S.length!=1||!_[S])&&d.getWrapBehavioursEnabled())return u(E,S,x,x);if(!S){var C=d.getCursorPosition(),T=w.doc.getLine(C.row),R=T.substring(C.column-1,C.column),W=T.substring(C.column,C.column+1),j=w.getTokenAt(C.row,C.column),L=w.getTokenAt(C.row,C.column+1);if(R=="\\"&&j&&/escape/.test(j.type))return null;var Q=j&&/string|escape/.test(j.type),U=!L||/string|escape/.test(L.type),Z;if(W==x)Z=Q!==U,Z&&/string\.end/.test(L.type)&&(Z=!1);else{if(Q&&!U||Q&&U)return null;var se=w.$mode.tokenRe;se.lastIndex=0;var te=se.test(R);se.lastIndex=0;var $=se.test(R);if(te||$||W&&!/[\s;,.})\]\\]/.test(W))return null;Z=!0}return{text:Z?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(m,k,d,w,y){var _=w.doc.getTextRange(y);if(!y.isMultiLine()&&(_=='"'||_=="'")){c(d);var x=w.doc.getLine(y.start.row),E=x.substring(y.start.column+1,y.start.column+2);if(E==_)return y.end.column++,y}})};h.isSaneInsertion=function(b,m){var k=b.getCursorPosition(),d=new f(m,k.row,k.column);if(!this.$matchTokenType(d.getCurrentToken()||"text",i)){var w=new f(m,k.row,k.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",i))return!1}return d.stepForward(),d.getCurrentTokenRow()!==k.row||this.$matchTokenType(d.getCurrentToken()||"text",t)},h.$matchTokenType=function(b,m){return m.indexOf(b.type||b)>-1},h.recordAutoInsert=function(b,m,k){var d=b.getCursorPosition(),w=m.doc.getLine(d.row);this.isAutoInsertedClosing(d,w,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=d.row,s.autoInsertedLineEnd=k+w.substr(d.column),s.autoInsertedBrackets++},h.recordMaybeInsert=function(b,m,k){var d=b.getCursorPosition(),w=m.doc.getLine(d.row);this.isMaybeInsertedClosing(d,w)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=d.row,s.maybeInsertedLineStart=w.substr(0,d.column)+k,s.maybeInsertedLineEnd=w.substr(d.column),s.maybeInsertedBrackets++},h.isAutoInsertedClosing=function(b,m,k){return s.autoInsertedBrackets>0&&b.row===s.autoInsertedRow&&k===s.autoInsertedLineEnd[0]&&m.substr(b.column)===s.autoInsertedLineEnd},h.isMaybeInsertedClosing=function(b,m){return s.maybeInsertedBrackets>0&&b.row===s.maybeInsertedRow&&m.substr(b.column)===s.maybeInsertedLineEnd&&m.substr(0,b.column)==s.maybeInsertedLineStart},h.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},h.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},p.inherits(h,v),r.CstyleBehaviour=h});ace.define("ace/unicode",["require","exports","module"],function(l,r,g){r.packages={},p({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function p(v){var f=/\w{4}/g;for(var a in v)r.packages[a]=v[a].replace(f,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(l,r,g){var p=l("../tokenizer").Tokenizer,v=l("./text_highlight_rules").TextHighlightRules,f=l("./behaviour/cstyle").CstyleBehaviour,a=l("../unicode"),i=l("../lib/lang"),t=l("../token_iterator").TokenIterator,s=l("../range").Range,o=function(){this.HighlightRules=v};(function(){this.$defaultBehaviour=new f,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new p(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,c,u,h){var b=c.doc,m=!0,k=!0,d=1/0,w=c.getTabSize(),y=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(i.escapeRegExp).join("|"),_=this.lineCommentStart[0];else var E=i.escapeRegExp(this.lineCommentStart),_=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),y=c.getUseSoftTabs();var T=function(te,$){var P=te.match(E);if(P){var A=P[1].length,O=P[0].length;!j(te,A,O)&&P[0][O-1]==" "&&O--,b.removeInLine($,A,O)}},W=_+" ",C=function(te,$){(!m||/\S/.test(te))&&(j(te,d,d)?b.insertInLine({row:$,column:d},W):b.insertInLine({row:$,column:d},_))},R=function(te,$){return E.test(te)},j=function(te,$,P){for(var A=0;$--&&te.charAt($)==" ";)A++;if(A%w!=0)return!1;for(var A=0;te.charAt(P++)==" ";)A++;return w>2?A%w!=w-1:A%w==0}}else{if(!this.blockComment)return!1;var _=this.blockComment.start,x=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+i.escapeRegExp(_)+")"),S=new RegExp("(?:"+i.escapeRegExp(x)+")\\s*$"),C=function(U,Z){R(U,Z)||(!m||/\S/.test(U))&&(b.insertInLine({row:Z,column:U.length},x),b.insertInLine({row:Z,column:d},_))},T=function(U,Z){var se;(se=U.match(S))&&b.removeInLine(Z,U.length-se[0].length,U.length),(se=U.match(E))&&b.removeInLine(Z,se[1].length,se[0].length)},R=function(U,Z){if(E.test(U))return!0;for(var se=c.getTokens(Z),te=0;teU.length&&(Q=U.length)}),d==1/0&&(d=Q,m=!1,k=!1),y&&d%w!=0&&(d=Math.floor(d/w)*w),L(k?T:C)},this.toggleBlockComment=function(e,c,u,h){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var m=new t(c,h.row,h.column),k=m.getCurrentToken();c.selection;var d=c.selection.toOrientedRange(),w,y;if(k&&/comment/.test(k.type)){for(var _,x;k&&/comment/.test(k.type);){var E=k.value.indexOf(b.start);if(E!=-1){var S=m.getCurrentTokenRow(),C=m.getCurrentTokenColumn()+E;_=new s(S,C,S,C+b.start.length);break}k=m.stepBackward()}for(var m=new t(c,h.row,h.column),k=m.getCurrentToken();k&&/comment/.test(k.type);){var E=k.value.indexOf(b.end);if(E!=-1){var S=m.getCurrentTokenRow(),C=m.getCurrentTokenColumn()+E;x=new s(S,C,S,C+b.end.length);break}k=m.stepForward()}x&&c.remove(x),_&&(c.remove(_),w=_.start.row,y=-b.start.length)}else y=b.start.length,w=u.start.row,c.insert(u.end,b.end),c.insert(u.start,b.start);d.start.row==w&&(d.start.column+=y),d.end.row==w&&(d.end.column+=y),c.selection.fromOrientedRange(d)}},this.getNextLineIndent=function(e,c,u){return this.$getIndent(c)},this.checkOutdent=function(e,c,u){return!1},this.autoOutdent=function(e,c,u){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){this.$embeds=[],this.$modes={};for(var c in e)e[c]&&(this.$embeds.push(c),this.$modes[c]=new e[c]);for(var u=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],c=0;c"u"?this.setPosition(i.row,i.column):this.setPosition(i,t)};(function(){p.implement(this,v),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var s=i(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}};function a(t,s,o){var e=o?t.column<=s.column:t.column=this.document.getLength()?(o.row=Math.max(0,this.document.getLength()-1),o.column=this.document.getLine(o.row).length):t<0?(o.row=0,o.column=0):(o.row=t,o.column=Math.min(this.document.getLine(o.row).length,Math.max(0,s))),s<0&&(o.column=0),o}}).call(f.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(l,r,g){var p=l("./lib/oop"),v=l("./apply_delta").applyDelta,f=l("./lib/event_emitter").EventEmitter,a=l("./range").Range,i=l("./anchor").Anchor,t=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){p.implement(this,f),this.setValue=function(s){var o=this.getLength()-1;this.remove(new a(0,0,o,this.getLine(o).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,o){return new i(this,s,o)},"aaa".split(/a/).length===0?this.$split=function(s){return s.replace(/\r\n|\r/g,` `).split(` `)}:this.$split=function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var o=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=o?o[1]:` `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r @@ -30,33 +30,33 @@ var Ar=Object.defineProperty;var Er=(l,r,m)=>r in l?Ar(l,r,{enumerable:!0,config `;default:return this.$autoNewLine||` `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r `||s=="\r"||s==` -`},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,o){return this.$lines.slice(s,o+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var o;if(s.start.row===s.end.row)o=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{o=this.getLines(s.start.row,s.end.row),o[0]=(o[0]||"").substring(s.start.column);var e=o.length-1;s.end.row-s.start.row==e&&(o[e]=o[e].substring(0,s.end.column))}return o},this.insertLines=function(s,o){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,o)},this.removeLines=function(s,o){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,o)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,o){return this.getLength()<=1&&this.$detectNewLine(o),this.insertMergedLines(s,this.$split(o))},this.insertInLine=function(s,o){var e=this.clippedPos(s.row,s.column),c=this.pos(s.row,s.column+o.length);return this.applyDelta({start:e,end:c,action:"insert",lines:[o]},!0),this.clonePos(c)},this.clippedPos=function(s,o){var e=this.getLength();s===void 0?s=e:s<0?s=0:s>=e&&(s=e-1,o=void 0);var c=this.getLine(s);return o==null&&(o=c.length),o=Math.min(Math.max(o,0),c.length),{row:s,column:o}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,o){return{row:s,column:o}},this.$clipPosition=function(s){var o=this.getLength();return s.row>=o?(s.row=Math.max(0,o-1),s.column=this.getLine(o-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,o){s=Math.min(Math.max(s,0),this.getLength());var e=0;s0,c=o=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,o){if(s instanceof a||(s=a.fromPoints(s.start,s.end)),o.length===0&&s.isEmpty())return s.start;if(o==this.getTextRange(s))return s.end;this.remove(s);var e;return o?e=this.insert(s.start,o):e=s.start,e},this.applyDeltas=function(s){for(var o=0;o=0;o--)this.revertDelta(s[o])},this.applyDelta=function(s,o){var e=s.action=="insert";(e?s.lines.length<=1&&!s.lines[0]:!a.comparePoints(s.start,s.end))||(e&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),v(this.$lines,s,o),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,o){var e=s.lines,c=e.length,u=s.start.row,h=s.start.column,b=0,p=0;do{b=p,p+=o-1;var k=e.slice(b,p);if(p>c){s.lines=k,s.start.row=u+b,s.start.column=h;break}k.push(""),this.applyDelta({start:this.pos(u+b,h),end:this.pos(u+p,h=0),action:s.action,lines:k},!0)}while(!0)},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,o){for(var e=this.$lines||this.getAllLines(),c=this.getNewLineCharacter().length,u=o||0,h=e.length;u20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=o,e==-1&&(e=o),u<=e&&t.fireUpdateEvent(u,e)}}};(function(){g.implement(this,v),this.setTokenizer=function(a){this.tokenizer=a,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(a){this.doc=a,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(a,i){var t={first:a,last:i};this._signal("update",{data:t})},this.start=function(a){this.currentLine=Math.min(a||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(a){var i=a.start.row,t=a.end.row-i;if(t===0)this.lines[i]=null;else if(a.action=="remove")this.lines.splice(i,t+1,null),this.states.splice(i,t+1,null);else{var s=Array(t+1);s.unshift(i,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(a){return this.lines[a]||this.$tokenizeRow(a)},this.getState=function(a){return this.currentLine==a&&this.$tokenizeRow(a),this.states[a]||"start"},this.$tokenizeRow=function(a){var i=this.doc.getLine(a),t=this.states[a-1],s=this.tokenizer.getLineTokens(i,t,a);return this.states[a]+""!=s.state+""?(this.states[a]=s.state,this.lines[a+1]=null,this.currentLine>a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=s.tokens}}).call(f.prototype),r.BackgroundTokenizer=f});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(l,r,m){var g=l("./lib/lang");l("./lib/oop");var v=l("./range").Range,f=function(a,i,t){this.setRegexp(a),this.clazz=i,this.type=t||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,i,t,s){if(this.regExp)for(var o=s.firstRow,e=s.lastRow,c=o;c<=e;c++){var u=this.cache[c];u==null&&(u=g.getMatchOffsets(t.getLine(c),this.regExp),u.length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map(function(b){return new v(c,b.offset,c,b.offset+b.length)}),this.cache[c]=u.length?u:"");for(var h=u.length;h--;)i.drawSingleLineMarker(a,u[h].toScreenRange(t),this.clazz,s)}}}).call(f.prototype),r.SearchHighlight=f});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(l,r,m){var g=l("../range").Range;function v(f,a){this.foldData=f,Array.isArray(a)?this.folds=a:a=this.folds=[a];var i=a[a.length-1];this.range=new g(a[0].start.row,a[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(t){t.setFoldLine(this)},this)}(function(){this.shiftRow=function(f){this.start.row+=f,this.end.row+=f,this.folds.forEach(function(a){a.start.row+=f,a.end.row+=f})},this.addFold=function(f){if(f.sameRow){if(f.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(f),this.folds.sort(function(a,i){return-a.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(f.start.row,f.start.column)>0?(this.end.row=f.end.row,this.end.column=f.end.column):this.range.compareStart(f.end.row,f.end.column)<0&&(this.start.row=f.start.row,this.start.column=f.start.column)}else if(f.start.row==this.end.row)this.folds.push(f),this.end.row=f.end.row,this.end.column=f.end.column;else if(f.end.row==this.start.row)this.folds.unshift(f),this.start.row=f.start.row,this.start.column=f.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");f.foldLine=this},this.containsRow=function(f){return f>=this.start.row&&f<=this.end.row},this.walk=function(f,a,i){var t=0,s=this.folds,o,e,c,u=!0;a==null&&(a=this.end.row,i=this.end.column);for(var h=0;h0)){var u=v(a,e.start);return c===0?i&&u!==0?-o-2:o:u>0||u===0&&!i?o:-o-1}}return-o-1},this.add=function(a){var i=!a.isEmpty(),t=this.pointIndex(a.start,i);t<0&&(t=-t-1);var s=this.pointIndex(a.end,i,t);return s<0?s=-s-1:s++,this.ranges.splice(t,s-t,a)},this.addList=function(a){for(var i=[],t=a.length;t--;)i.push.apply(i,this.add(a[t]));return i},this.substractPoint=function(a){var i=this.pointIndex(a);if(i>=0)return this.ranges.splice(i,1)},this.merge=function(){var a=[],i=this.ranges;i=i.sort(function(c,u){return v(c.start,u.start)});for(var t=i[0],s,o=1;o=0},this.containsPoint=function(a){return this.pointIndex(a)>=0},this.rangeAtPoint=function(a){var i=this.pointIndex(a);if(i>=0)return this.ranges[i]},this.clipRows=function(a,i){var t=this.ranges;if(t[0].start.row>i||t[t.length-1].start.rows)break;if(p.start.row==s&&p.start.column>=i.column&&(p.start.column==i.column&&this.$insertRight||(p.start.column+=c,p.start.row+=e)),p.end.row==s&&p.end.column>=i.column){if(p.end.column==i.column&&this.$insertRight)continue;p.end.column==i.column&&c>0&&hp.start.column&&p.end.column==u[h+1].start.column&&(p.end.column-=c),p.end.column+=c,p.end.row+=e}}}if(e!=0&&h=t)return c;if(c.end.row>t)return null}return null},this.getNextFoldLine=function(t,s){var o=this.$foldData,e=0;for(s&&(e=o.indexOf(s)),e==-1&&(e=0),e;e=t)return c}return null},this.getFoldedRowCount=function(t,s){for(var o=this.$foldData,e=s-t+1,c=0;c=s){b=t?e-=s-b:e=0);break}else h>=t&&(b>=t?e-=h-b:e-=h-t+1)}return e},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort(function(s,o){return s.start.row-o.start.row}),t},this.addFold=function(t,s){var o=this.$foldData,e=!1,c;t instanceof f?c=t:(c=new f(s,t),c.collapseChildren=s.collapseChildren),this.$clipRangeToDocument(c.range);var u=c.start.row,h=c.start.column,b=c.end.row,p=c.end.column;if(!(u0&&(this.removeFolds(w),w.forEach(function(E){c.addSubFold(E)}));for(var y=0;y0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(t,s){var o,e;if(t==null?(o=new g(0,0,this.getLength(),0),s=!0):typeof t=="number"?o=new g(t,0,t,this.getLine(t).length):"row"in t?o=g.fromPoints(t,t):o=t,e=this.getFoldsInRangeList(o),s)this.removeFolds(e);else for(var c=e;c.length;)this.expandFolds(c),c=this.getFoldsInRangeList(o);if(e.length)return e},this.isRowFolded=function(t,s){return!!this.getFoldLine(t,s)},this.getRowFoldEnd=function(t,s){var o=this.getFoldLine(t,s);return o?o.end.row:t},this.getRowFoldStart=function(t,s){var o=this.getFoldLine(t,s);return o?o.start.row:t},this.getFoldDisplayLine=function(t,s,o,e,c){e==null&&(e=t.start.row),c==null&&(c=0),s==null&&(s=t.end.row),o==null&&(o=this.getLine(s).length);var u=this.doc,h="";return t.walk(function(b,p,k,d){if(!(pp)break;while(c&&h.test(c.type));c=e.stepBackward()}else c=e.getCurrentToken();return b.end.row=e.getCurrentTokenRow(),b.end.column=e.getCurrentTokenColumn()+c.value.length-2,b}},this.foldAll=function(t,s,o){o==null&&(o=1e5);var e=this.foldWidgets;if(e){s=s||this.getLength(),t=t||0;for(var c=t;c=t){c=u.end.row;try{var h=this.addFold("...",u);h&&(h.collapseChildren=o)}catch{}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){this.$foldStyle=t,t=="manual"&&this.unfold();var s=this.$foldMode;this.$setFolding(null),this.$setFolding(s)}},this.$setFolding=function(t){if(this.$foldMode!=t){if(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!t||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(t,s){var o=this.foldWidgets;if(!o||s&&o[t])return{};for(var e=t-1,c;e>=0;){var u=o[e];if(u==null&&(u=o[e]=this.getFoldWidget(e)),u=="start"){var h=this.getFoldWidgetRange(e);if(c||(c=h),h&&h.end.row>=t)break}e--}return{range:e!==-1&&h,firstRange:c}},this.onFoldWidgetClick=function(t,s){s=s.domEvent;var o={children:s.shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey},e=this.$toggleFoldWidget(t,o);if(!e){var c=s.target||s.srcElement;c&&/ace_fold-widget/.test(c.className)&&(c.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,s){if(this.getFoldWidget){var o=this.getFoldWidget(t),e=this.getLine(t),c=o==="end"?-1:1,u=this.getFoldAt(t,c===-1?0:e.length,c);if(u)return s.children||s.all?this.removeFold(u):this.expandFold(u),u;var h=this.getFoldWidgetRange(t,!0);if(h&&!h.isMultiLine()&&(u=this.getFoldAt(h.start.row,h.start.column,1),u&&h.isEqual(u.range)))return this.removeFold(u),u;if(s.siblings){var b=this.getParentFoldRangeData(t);if(b.range)var p=b.range.start.row+1,k=b.range.end.row;this.foldAll(p,k,s.all?1e4:0)}else s.children?(k=h?h.end.row:this.getLength(),this.foldAll(t+1,k,s.all?1e4:0)):h&&(s.all&&(h.collapseChildren=1e4),this.addFold("...",h));return h}},this.toggleFoldWidget=function(t){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var o=this.$toggleFoldWidget(s,{});if(!o){var e=this.getParentFoldRangeData(s,!0);if(o=e.range||e.firstRange,o){s=o.start.row;var c=this.getFoldAt(s,this.getLine(s).length,1);c?this.removeFold(c):this.addFold("...",o)}}},this.updateFoldWidgets=function(t){var s=t.start.row,o=t.end.row-s;if(o===0)this.foldWidgets[s]=null;else if(t.action=="remove")this.foldWidgets.splice(s,o+1,null);else{var e=Array(o+1);e.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,e)}},this.tokenizerUpdateFoldWidgets=function(t){var s=t.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.first,this.foldWidgets.length)}}r.Folding=i});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(l,r,m){var g=l("../token_iterator").TokenIterator,v=l("../range").Range;function f(){this.findMatchingBracket=function(a,i){if(a.column==0)return null;var t=i||this.getLine(a.row).charAt(a.column-1);if(t=="")return null;var s=t.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],a):this.$findOpeningBracket(s[2],a):null},this.getBracketRange=function(a){var i=this.getLine(a.row),t=!0,s,o=i.charAt(a.column-1),e=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(e||(o=i.charAt(a.column),a={row:a.row,column:a.column+1},e=o&&o.match(/([\(\[\{])|([\)\]\}])/),t=!1),!e)return null;if(e[1]){var c=this.$findClosingBracket(e[1],a);if(!c)return null;s=v.fromPoints(a,c),t||(s.end.column++,s.start.column--),s.cursor=s.end}else{var c=this.$findOpeningBracket(e[2],a);if(!c)return null;s=v.fromPoints(c,a),t||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(a,i,t){var s=this.$brackets[a],o=1,e=new g(this,i.row,i.column),c=e.getCurrentToken();if(c||(c=e.stepForward()),!!c){t||(t=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var u=i.column-e.getCurrentTokenColumn()-2,h=c.value;;){for(;u>=0;){var b=h.charAt(u);if(b==s){if(o-=1,o==0)return{row:e.getCurrentTokenRow(),column:u+e.getCurrentTokenColumn()}}else b==a&&(o+=1);u-=1}do c=e.stepBackward();while(c&&!t.test(c.type));if(c==null)break;h=c.value,u=h.length-1}return null}},this.$findClosingBracket=function(a,i,t){var s=this.$brackets[a],o=1,e=new g(this,i.row,i.column),c=e.getCurrentToken();if(c||(c=e.stepForward()),!!c){t||(t=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var u=i.column-e.getCurrentTokenColumn();;){for(var h=c.value,b=h.length;uT&&(this.$docRowCache.splice(T,C),this.$screenRowCache.splice(T,C))},this.$getRowCacheIndex=function(S,C){for(var T=0,R=S.length-1;T<=R;){var W=T+R>>1,j=S[W];if(C>j)T=W+1;else if(C=C));j++);return R=T[j],R?(R.index=j,R.start=W-R.value.length,R):null},this.setUndoManager=function(S){if(this.$undoManager=S,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),S){var C=this;this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.$deltasFold.length&&(C.$deltas.push({group:"fold",deltas:C.$deltasFold}),C.$deltasFold=[]),C.$deltasDoc.length&&(C.$deltas.push({group:"doc",deltas:C.$deltasDoc}),C.$deltasDoc=[]),C.$deltas.length>0&&S.execute({action:"aceupdate",args:[C.$deltas,C],merge:C.mergeUndoDeltas}),C.mergeUndoDeltas=!1,C.$deltas=[]},this.$informUndoManager=v.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?v.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(S){this.setOption("useSoftTabs",S)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(S){this.setOption("tabSize",S)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(S){return this.$useSoftTabs&&S.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(S){this.setOption("navigateWithinSoftTabs",S)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(S){this.setOption("overwrite",S)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(S,C){this.$decorations[S]||(this.$decorations[S]=""),this.$decorations[S]+=" "+C,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(S,C){this.$decorations[S]=(this.$decorations[S]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(S){this.$breakpoints=[];for(var C=0;C0&&(R=!!T.charAt(C-1).match(this.tokenRe)),R||(R=!!T.charAt(C).match(this.tokenRe)),R)var W=this.tokenRe;else if(/^\s+$/.test(T.slice(C-1,C+1)))var W=/\s/;else var W=this.nonTokenRe;var j=C;if(j>0){do j--;while(j>=0&&T.charAt(j).match(W));j++}for(var L=C;LS&&(S=C.screenWidth)}),this.lineWidgetWidth=S},this.$computeWidth=function(S){if(this.$modified||S){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),T=this.$rowLengthCache,R=0,W=0,j=this.$foldData[W],L=j?j.start.row:1/0,Q=C.length,U=0;UL){if(U=j.end.row+1,U>=Q)break;j=this.$foldData[W++],L=j?j.start.row:1/0}T[U]==null&&(T[U]=this.$getStringScreenWidth(C[U])[0]),T[U]>R&&(R=T[U])}this.screenWidth=R}},this.getLine=function(S){return this.doc.getLine(S)},this.getLines=function(S,C){return this.doc.getLines(S,C)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(S){return this.doc.getTextRange(S||this.selection.getRange())},this.insert=function(S,C){return this.doc.insert(S,C)},this.remove=function(S){return this.doc.remove(S)},this.removeFullLines=function(S,C){return this.doc.removeFullLines(S,C)},this.undoChanges=function(S,C){if(S.length){this.$fromUndo=!0;for(var T=null,R=S.length-1;R!=-1;R--){var W=S[R];W.group=="doc"?(this.doc.revertDeltas(W.deltas),T=this.$getUndoSelection(W.deltas,!0,T)):W.deltas.forEach(function(j){this.addFolds(j.folds)},this)}return this.$fromUndo=!1,T&&this.$undoSelect&&!C&&this.selection.setSelectionRange(T),T}},this.redoChanges=function(S,C){if(S.length){this.$fromUndo=!0;for(var T=null,R=0;RS.end.column&&(j.start.column+=Q),j.end.row==S.end.row&&j.end.column>S.end.column&&(j.end.column+=Q)),L&&j.start.row>=S.end.row&&(j.start.row+=L,j.end.row+=L)}if(j.end=this.insert(j.start,R),W.length){var U=S.start,Z=j.start,L=Z.row-U.row,Q=Z.column-U.column;this.addFolds(W.map(function($){return $=$.clone(),$.start.row==U.row&&($.start.column+=Q),$.end.row==U.row&&($.end.column+=Q),$.start.row+=L,$.end.row+=L,$}))}return j},this.indentRows=function(S,C,T){T=T.replace(/\t/g,this.getTabString());for(var R=S;R<=C;R++)this.doc.insertInLine({row:R,column:0},T)},this.outdentRows=function(S){for(var C=S.collapseRows(),T=new o(0,0,0,0),R=this.getTabSize(),W=C.start.row;W<=C.end.row;++W){var j=this.getLine(W);T.start.row=W,T.end.row=W;for(var L=0;L0){var R=this.getRowFoldEnd(C+T);if(R>this.doc.getLength()-1)return 0;var W=R-C}else{S=this.$clipRowToDocument(S),C=this.$clipRowToDocument(C);var W=C-S+1}var j=new o(S,0,C,Number.MAX_VALUE),L=this.getFoldsInRange(j).map(function(U){return U=U.clone(),U.start.row+=W,U.end.row+=W,U}),Q=T==0?this.doc.getLines(S,C):this.doc.removeFullLines(S,C);return this.doc.insertFullLines(S+W,Q),L.length&&this.addFolds(L),W},this.moveLinesUp=function(S,C){return this.$moveLines(S,C,-1)},this.moveLinesDown=function(S,C){return this.$moveLines(S,C,1)},this.duplicateLines=function(S,C){return this.$moveLines(S,C,0)},this.$clipRowToDocument=function(S){return Math.max(0,Math.min(S,this.doc.getLength()-1))},this.$clipColumnToRow=function(S,C){return C<0?0:Math.min(this.doc.getLine(S).length,C)},this.$clipPositionToDocument=function(S,C){if(C=Math.max(0,C),S<0)S=0,C=0;else{var T=this.doc.getLength();S>=T?(S=T-1,C=this.doc.getLine(T-1).length):C=Math.min(this.doc.getLine(S).length,C)}return{row:S,column:C}},this.$clipRangeToDocument=function(S){S.start.row<0?(S.start.row=0,S.start.column=0):S.start.column=this.$clipColumnToRow(S.start.row,S.start.column);var C=this.doc.getLength()-1;return S.end.row>C?(S.end.row=C,S.end.column=this.doc.getLine(C).length):S.end.column=this.$clipColumnToRow(S.end.row,S.end.column),S},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(S){if(S!=this.$useWrapMode){if(this.$useWrapMode=S,this.$modified=!0,this.$resetRowCache(0),S){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(S,C){(this.$wrapLimitRange.min!==S||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:S,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(S,C){var T=this.$wrapLimitRange;T.max<0&&(T={min:C,max:C});var R=this.$constrainWrapLimit(S,T.min,T.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(S,C,T){return C&&(S=Math.max(C,S)),T&&(S=Math.min(T,S)),S},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(S){this.setWrapLimitRange(S,S)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(S){var C=this.$useWrapMode,T=S.action,R=S.start,W=S.end,j=R.row,L=W.row,Q=L-j,U=null;if(this.$updating=!0,Q!=0)if(T==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(j,Q);var Z=this.$foldData;U=this.getFoldsInRange(S),this.removeFolds(U);var se=this.getFoldLine(W.row),te=0;if(se){se.addRemoveChars(W.row,W.column,R.column-W.column),se.shiftRow(-Q);var $=this.getFoldLine(j);$&&$!==se&&($.merge(se),se=$),te=Z.indexOf(se)+1}for(te;te=W.row&&se.shiftRow(-Q)}L=j}else{var P=Array(Q);P.unshift(j,0);var A=C?this.$wrapData:this.$rowLengthCache;A.splice.apply(A,P);var Z=this.$foldData,se=this.getFoldLine(j),te=0;if(se){var O=se.range.compareInside(R.row,R.column);O==0?(se=se.split(R.row,R.column),se&&(se.shiftRow(Q),se.addRemoveChars(L,0,W.column-R.column))):O==-1&&(se.addRemoveChars(j,0,W.column-R.column),se.shiftRow(Q)),te=Z.indexOf(se)+1}for(te;te=j&&se.shiftRow(Q)}}else{Q=Math.abs(S.start.column-S.end.column),T==="remove"&&(U=this.getFoldsInRange(S),this.removeFolds(U),Q=-Q);var se=this.getFoldLine(j);se&&se.addRemoveChars(j,R.column,Q)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(j,L):this.$updateRowLengthCache(j,L),U},this.$updateRowLengthCache=function(S,C,T){this.$rowLengthCache[S]=null,this.$rowLengthCache[C]=null},this.$updateWrapData=function(S,C){var T=this.doc.getAllLines(),R=this.getTabSize(),W=this.$wrapData,j=this.$wrapLimit,L,Q,U=S;for(C=Math.min(C,T.length-1);U<=C;)Q=this.getFoldLine(U,Q),Q?(L=[],Q.walk((function(Z,se,te,$){var P;if(Z!=null){P=this.$getDisplayTokens(Z,L.length),P[0]=k;for(var A=1;AC-$;){var P=j+C-$;if(S[P-1]>=y&&S[P]>=y){te(P);continue}if(S[P]==k||S[P]==d){for(P;P!=j-1&&S[P]!=k;P--);if(P>j){te(P);continue}for(P=j+C,P;P>2)),j-1);P>A&&S[P]A&&S[P]A&&S[P]==w;)P--}else for(;P>A&&S[P]A){te(++P);continue}P=j+C,S[P]==p&&P--,te(P-$)}return R},this.$getDisplayTokens=function(S,C){var T=[],R;C=C||0;for(var W=0;W39&&j<48||j>57&&j<64?T.push(w):j>=4352&&E(j)?T.push(b,p):T.push(b)}return T},this.$getStringScreenWidth=function(S,C,T){if(C==0)return[0,0];C==null&&(C=1/0),T=T||0;var R,W;for(W=0;W=4352&&E(R)?T+=2:T+=1,!(T>C));W++);return[T,W]},this.lineWidgets=null,this.getRowLength=function(S){if(this.lineWidgets)var C=this.lineWidgets[S]&&this.lineWidgets[S].rowCount||0;else C=0;return!this.$useWrapMode||!this.$wrapData[S]?1+C:this.$wrapData[S].length+1+C},this.getRowLineCount=function(S){return!this.$useWrapMode||!this.$wrapData[S]?1:this.$wrapData[S].length+1},this.getRowWrapIndent=function(S){if(this.$useWrapMode){var C=this.screenToDocumentPosition(S,Number.MAX_VALUE),T=this.$wrapData[C.row];return T.length&&T[0]=0)var Q=Z[se],W=this.$docRowCache[se],$=S>Z[te-1];else var $=!te;for(var P=this.getLength()-1,A=this.getNextFoldLine(W),O=A?A.start.row:1/0;Q<=S&&(U=this.getRowLength(W),!(Q+U>S||W>=P));)Q+=U,W++,W>O&&(W=A.end.row+1,A=this.getNextFoldLine(W,A),O=A?A.start.row:1/0),$&&(this.$docRowCache.push(W),this.$screenRowCache.push(Q));if(A&&A.start.row<=W)R=this.getFoldDisplayLine(A),W=A.start.row;else{if(Q+U<=S||W>P)return{row:P,column:this.getLine(P).length};R=this.getLine(W),A=null}var z=0,G=Math.floor(S-Q);if(this.$useWrapMode){var re=this.$wrapData[W];re&&(L=re[G],G>0&&re.length&&(z=re.indent,j=re[G-1]||re[re.length-1],R=R.substring(j)))}return T!==void 0&&this.$bidiHandler.isBidiRow(Q+G,W,G)&&(C=this.$bidiHandler.offsetToCol(T)),j+=this.$getStringScreenWidth(R,C-z)[1],this.$useWrapMode&&j>=L&&(j=L-1),A?A.idxToPosition(j):{row:W,column:j}},this.documentToScreenPosition=function(S,C){if(typeof C>"u")var T=this.$clipPositionToDocument(S.row,S.column);else T=this.$clipPositionToDocument(S,C);S=T.row,C=T.column;var R=0,W=null,j=null;j=this.getFoldAt(S,C,1),j&&(S=j.start.row,C=j.start.column);var L,Q=0,U=this.$docRowCache,Z=this.$getRowCacheIndex(U,S),se=U.length;if(se&&Z>=0)var Q=U[Z],R=this.$screenRowCache[Z],te=S>U[se-1];else var te=!se;for(var $=this.getNextFoldLine(Q),P=$?$.start.row:1/0;Q=P){if(L=$.end.row+1,L>S)break;$=this.getNextFoldLine(L,$),P=$?$.start.row:1/0}else L=Q+1;R+=this.getRowLength(Q),Q=L,te&&(this.$docRowCache.push(Q),this.$screenRowCache.push(R))}var A="";$&&Q>=P?(A=this.getFoldDisplayLine($,S,C),W=$.start.row):(A=this.getLine(S).substring(0,C),W=S);var O=0;if(this.$useWrapMode){var z=this.$wrapData[W];if(z){for(var G=0;A.length>=z[G];)R++,G++;A=A.substring(z[G-1]||0,A.length),O=G>0?z.indent:0}}return{row:R,column:O+this.$getStringScreenWidth(A)[0]}},this.documentToScreenColumn=function(S,C){return this.documentToScreenPosition(S,C).column},this.documentToScreenRow=function(S,C){return this.documentToScreenPosition(S,C).row},this.getScreenLength=function(){var S=0,C=null;if(this.$useWrapMode)for(var W=this.$wrapData.length,j=0,R=0,C=this.$foldData[R++],L=C?C.start.row:1/0;jL&&(j=C.end.row+1,C=this.$foldData[R++],L=C?C.start.row:1/0)}else{S=this.getLength();for(var T=this.$foldData,R=0;RT));j++);return[R,j]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=E;function E(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}}).call(h.prototype),l("./edit_session/folding").Folding.call(h.prototype),l("./edit_session/bracket_match").BracketMatch.call(h.prototype),a.defineOptions(h.prototype,"session",{wrap:{set:function(b){if(!b||b=="off"?b=!1:b=="free"?b=!0:b=="printMargin"?b=-1:typeof b=="string"&&(b=parseInt(b,10)||!1),this.$wrap!=b)if(this.$wrap=b,!b)this.setUseWrapMode(!1);else{var p=typeof b=="number"?b:null;this.setWrapLimitRange(p,p),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(b){b=b=="auto"?this.$mode.type!="text":b!="text",b!=this.$wrapAsCode&&(this.$wrapAsCode=b,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(b){this.$useWorker=b,this.$stopWorker(),b&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(b){isNaN(b)||this.$tabSize===b||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(b){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(b){this.doc.setNewLineMode(b)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(b){this.setMode(b)},get:function(){return this.$modeId}}}),r.EditSession=h});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(l,r,m){var g=l("./lib/lang"),v=l("./lib/oop"),f=l("./range").Range,a=function(){this.$options={}};(function(){this.set=function(t){return v.mixin(this.$options,t),this},this.getOptions=function(){return g.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var s=this.$options,o=this.$matchIterator(t,s);if(!o)return!1;var e=null;return o.forEach(function(c,u,h,b){return e=new f(c,u,h,b),u==b&&s.start&&s.start.start&&s.skipCurrent!=!1&&e.isEqual(s.start)?(e=null,!1):!0}),e},this.findAll=function(t){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var o=s.range,e=o?t.getLines(o.start.row,o.end.row):t.doc.getAllLines(),c=[],u=s.re;if(s.$isMultiLine){var h=u.length,b=e.length-h,p;e:for(var k=u.offset||0;k<=b;k++){for(var d=0;d_||(c.push(p=new f(k,_,k+h-1,x)),h>2&&(k=k+h-2))}}else for(var E=0;ER&&c[d].end.row==o.end.row;)d--;for(c=c.slice(E,d+1),E=0,d=c.length;E=e&&(s=e-1,o=void 0);var c=this.getLine(s);return o==null&&(o=c.length),o=Math.min(Math.max(o,0),c.length),{row:s,column:o}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,o){return{row:s,column:o}},this.$clipPosition=function(s){var o=this.getLength();return s.row>=o?(s.row=Math.max(0,o-1),s.column=this.getLine(o-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,o){s=Math.min(Math.max(s,0),this.getLength());var e=0;s0,c=o=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,o){if(s instanceof a||(s=a.fromPoints(s.start,s.end)),o.length===0&&s.isEmpty())return s.start;if(o==this.getTextRange(s))return s.end;this.remove(s);var e;return o?e=this.insert(s.start,o):e=s.start,e},this.applyDeltas=function(s){for(var o=0;o=0;o--)this.revertDelta(s[o])},this.applyDelta=function(s,o){var e=s.action=="insert";(e?s.lines.length<=1&&!s.lines[0]:!a.comparePoints(s.start,s.end))||(e&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),v(this.$lines,s,o),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,o){var e=s.lines,c=e.length,u=s.start.row,h=s.start.column,b=0,m=0;do{b=m,m+=o-1;var k=e.slice(b,m);if(m>c){s.lines=k,s.start.row=u+b,s.start.column=h;break}k.push(""),this.applyDelta({start:this.pos(u+b,h),end:this.pos(u+m,h=0),action:s.action,lines:k},!0)}while(!0)},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,o){for(var e=this.$lines||this.getAllLines(),c=this.getNewLineCharacter().length,u=o||0,h=e.length;u20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=o,e==-1&&(e=o),u<=e&&t.fireUpdateEvent(u,e)}}};(function(){p.implement(this,v),this.setTokenizer=function(a){this.tokenizer=a,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(a){this.doc=a,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(a,i){var t={first:a,last:i};this._signal("update",{data:t})},this.start=function(a){this.currentLine=Math.min(a||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(a){var i=a.start.row,t=a.end.row-i;if(t===0)this.lines[i]=null;else if(a.action=="remove")this.lines.splice(i,t+1,null),this.states.splice(i,t+1,null);else{var s=Array(t+1);s.unshift(i,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(a){return this.lines[a]||this.$tokenizeRow(a)},this.getState=function(a){return this.currentLine==a&&this.$tokenizeRow(a),this.states[a]||"start"},this.$tokenizeRow=function(a){var i=this.doc.getLine(a),t=this.states[a-1],s=this.tokenizer.getLineTokens(i,t,a);return this.states[a]+""!=s.state+""?(this.states[a]=s.state,this.lines[a+1]=null,this.currentLine>a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=s.tokens}}).call(f.prototype),r.BackgroundTokenizer=f});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(l,r,g){var p=l("./lib/lang");l("./lib/oop");var v=l("./range").Range,f=function(a,i,t){this.setRegexp(a),this.clazz=i,this.type=t||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,i,t,s){if(this.regExp)for(var o=s.firstRow,e=s.lastRow,c=o;c<=e;c++){var u=this.cache[c];u==null&&(u=p.getMatchOffsets(t.getLine(c),this.regExp),u.length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map(function(b){return new v(c,b.offset,c,b.offset+b.length)}),this.cache[c]=u.length?u:"");for(var h=u.length;h--;)i.drawSingleLineMarker(a,u[h].toScreenRange(t),this.clazz,s)}}}).call(f.prototype),r.SearchHighlight=f});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(l,r,g){var p=l("../range").Range;function v(f,a){this.foldData=f,Array.isArray(a)?this.folds=a:a=this.folds=[a];var i=a[a.length-1];this.range=new p(a[0].start.row,a[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(t){t.setFoldLine(this)},this)}(function(){this.shiftRow=function(f){this.start.row+=f,this.end.row+=f,this.folds.forEach(function(a){a.start.row+=f,a.end.row+=f})},this.addFold=function(f){if(f.sameRow){if(f.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(f),this.folds.sort(function(a,i){return-a.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(f.start.row,f.start.column)>0?(this.end.row=f.end.row,this.end.column=f.end.column):this.range.compareStart(f.end.row,f.end.column)<0&&(this.start.row=f.start.row,this.start.column=f.start.column)}else if(f.start.row==this.end.row)this.folds.push(f),this.end.row=f.end.row,this.end.column=f.end.column;else if(f.end.row==this.start.row)this.folds.unshift(f),this.start.row=f.start.row,this.start.column=f.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");f.foldLine=this},this.containsRow=function(f){return f>=this.start.row&&f<=this.end.row},this.walk=function(f,a,i){var t=0,s=this.folds,o,e,c,u=!0;a==null&&(a=this.end.row,i=this.end.column);for(var h=0;h0)){var u=v(a,e.start);return c===0?i&&u!==0?-o-2:o:u>0||u===0&&!i?o:-o-1}}return-o-1},this.add=function(a){var i=!a.isEmpty(),t=this.pointIndex(a.start,i);t<0&&(t=-t-1);var s=this.pointIndex(a.end,i,t);return s<0?s=-s-1:s++,this.ranges.splice(t,s-t,a)},this.addList=function(a){for(var i=[],t=a.length;t--;)i.push.apply(i,this.add(a[t]));return i},this.substractPoint=function(a){var i=this.pointIndex(a);if(i>=0)return this.ranges.splice(i,1)},this.merge=function(){var a=[],i=this.ranges;i=i.sort(function(c,u){return v(c.start,u.start)});for(var t=i[0],s,o=1;o=0},this.containsPoint=function(a){return this.pointIndex(a)>=0},this.rangeAtPoint=function(a){var i=this.pointIndex(a);if(i>=0)return this.ranges[i]},this.clipRows=function(a,i){var t=this.ranges;if(t[0].start.row>i||t[t.length-1].start.rows)break;if(m.start.row==s&&m.start.column>=i.column&&(m.start.column==i.column&&this.$insertRight||(m.start.column+=c,m.start.row+=e)),m.end.row==s&&m.end.column>=i.column){if(m.end.column==i.column&&this.$insertRight)continue;m.end.column==i.column&&c>0&&hm.start.column&&m.end.column==u[h+1].start.column&&(m.end.column-=c),m.end.column+=c,m.end.row+=e}}}if(e!=0&&h=t)return c;if(c.end.row>t)return null}return null},this.getNextFoldLine=function(t,s){var o=this.$foldData,e=0;for(s&&(e=o.indexOf(s)),e==-1&&(e=0),e;e=t)return c}return null},this.getFoldedRowCount=function(t,s){for(var o=this.$foldData,e=s-t+1,c=0;c=s){b=t?e-=s-b:e=0);break}else h>=t&&(b>=t?e-=h-b:e-=h-t+1)}return e},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort(function(s,o){return s.start.row-o.start.row}),t},this.addFold=function(t,s){var o=this.$foldData,e=!1,c;t instanceof f?c=t:(c=new f(s,t),c.collapseChildren=s.collapseChildren),this.$clipRangeToDocument(c.range);var u=c.start.row,h=c.start.column,b=c.end.row,m=c.end.column;if(!(u0&&(this.removeFolds(w),w.forEach(function(E){c.addSubFold(E)}));for(var y=0;y0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(t,s){var o,e;if(t==null?(o=new p(0,0,this.getLength(),0),s=!0):typeof t=="number"?o=new p(t,0,t,this.getLine(t).length):"row"in t?o=p.fromPoints(t,t):o=t,e=this.getFoldsInRangeList(o),s)this.removeFolds(e);else for(var c=e;c.length;)this.expandFolds(c),c=this.getFoldsInRangeList(o);if(e.length)return e},this.isRowFolded=function(t,s){return!!this.getFoldLine(t,s)},this.getRowFoldEnd=function(t,s){var o=this.getFoldLine(t,s);return o?o.end.row:t},this.getRowFoldStart=function(t,s){var o=this.getFoldLine(t,s);return o?o.start.row:t},this.getFoldDisplayLine=function(t,s,o,e,c){e==null&&(e=t.start.row),c==null&&(c=0),s==null&&(s=t.end.row),o==null&&(o=this.getLine(s).length);var u=this.doc,h="";return t.walk(function(b,m,k,d){if(!(mm)break;while(c&&h.test(c.type));c=e.stepBackward()}else c=e.getCurrentToken();return b.end.row=e.getCurrentTokenRow(),b.end.column=e.getCurrentTokenColumn()+c.value.length-2,b}},this.foldAll=function(t,s,o){o==null&&(o=1e5);var e=this.foldWidgets;if(e){s=s||this.getLength(),t=t||0;for(var c=t;c=t){c=u.end.row;try{var h=this.addFold("...",u);h&&(h.collapseChildren=o)}catch{}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){this.$foldStyle=t,t=="manual"&&this.unfold();var s=this.$foldMode;this.$setFolding(null),this.$setFolding(s)}},this.$setFolding=function(t){if(this.$foldMode!=t){if(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!t||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(t,s){var o=this.foldWidgets;if(!o||s&&o[t])return{};for(var e=t-1,c;e>=0;){var u=o[e];if(u==null&&(u=o[e]=this.getFoldWidget(e)),u=="start"){var h=this.getFoldWidgetRange(e);if(c||(c=h),h&&h.end.row>=t)break}e--}return{range:e!==-1&&h,firstRange:c}},this.onFoldWidgetClick=function(t,s){s=s.domEvent;var o={children:s.shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey},e=this.$toggleFoldWidget(t,o);if(!e){var c=s.target||s.srcElement;c&&/ace_fold-widget/.test(c.className)&&(c.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,s){if(this.getFoldWidget){var o=this.getFoldWidget(t),e=this.getLine(t),c=o==="end"?-1:1,u=this.getFoldAt(t,c===-1?0:e.length,c);if(u)return s.children||s.all?this.removeFold(u):this.expandFold(u),u;var h=this.getFoldWidgetRange(t,!0);if(h&&!h.isMultiLine()&&(u=this.getFoldAt(h.start.row,h.start.column,1),u&&h.isEqual(u.range)))return this.removeFold(u),u;if(s.siblings){var b=this.getParentFoldRangeData(t);if(b.range)var m=b.range.start.row+1,k=b.range.end.row;this.foldAll(m,k,s.all?1e4:0)}else s.children?(k=h?h.end.row:this.getLength(),this.foldAll(t+1,k,s.all?1e4:0)):h&&(s.all&&(h.collapseChildren=1e4),this.addFold("...",h));return h}},this.toggleFoldWidget=function(t){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var o=this.$toggleFoldWidget(s,{});if(!o){var e=this.getParentFoldRangeData(s,!0);if(o=e.range||e.firstRange,o){s=o.start.row;var c=this.getFoldAt(s,this.getLine(s).length,1);c?this.removeFold(c):this.addFold("...",o)}}},this.updateFoldWidgets=function(t){var s=t.start.row,o=t.end.row-s;if(o===0)this.foldWidgets[s]=null;else if(t.action=="remove")this.foldWidgets.splice(s,o+1,null);else{var e=Array(o+1);e.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,e)}},this.tokenizerUpdateFoldWidgets=function(t){var s=t.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.first,this.foldWidgets.length)}}r.Folding=i});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(l,r,g){var p=l("../token_iterator").TokenIterator,v=l("../range").Range;function f(){this.findMatchingBracket=function(a,i){if(a.column==0)return null;var t=i||this.getLine(a.row).charAt(a.column-1);if(t=="")return null;var s=t.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],a):this.$findOpeningBracket(s[2],a):null},this.getBracketRange=function(a){var i=this.getLine(a.row),t=!0,s,o=i.charAt(a.column-1),e=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(e||(o=i.charAt(a.column),a={row:a.row,column:a.column+1},e=o&&o.match(/([\(\[\{])|([\)\]\}])/),t=!1),!e)return null;if(e[1]){var c=this.$findClosingBracket(e[1],a);if(!c)return null;s=v.fromPoints(a,c),t||(s.end.column++,s.start.column--),s.cursor=s.end}else{var c=this.$findOpeningBracket(e[2],a);if(!c)return null;s=v.fromPoints(c,a),t||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(a,i,t){var s=this.$brackets[a],o=1,e=new p(this,i.row,i.column),c=e.getCurrentToken();if(c||(c=e.stepForward()),!!c){t||(t=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var u=i.column-e.getCurrentTokenColumn()-2,h=c.value;;){for(;u>=0;){var b=h.charAt(u);if(b==s){if(o-=1,o==0)return{row:e.getCurrentTokenRow(),column:u+e.getCurrentTokenColumn()}}else b==a&&(o+=1);u-=1}do c=e.stepBackward();while(c&&!t.test(c.type));if(c==null)break;h=c.value,u=h.length-1}return null}},this.$findClosingBracket=function(a,i,t){var s=this.$brackets[a],o=1,e=new p(this,i.row,i.column),c=e.getCurrentToken();if(c||(c=e.stepForward()),!!c){t||(t=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var u=i.column-e.getCurrentTokenColumn();;){for(var h=c.value,b=h.length;uT&&(this.$docRowCache.splice(T,C),this.$screenRowCache.splice(T,C))},this.$getRowCacheIndex=function(S,C){for(var T=0,R=S.length-1;T<=R;){var W=T+R>>1,j=S[W];if(C>j)T=W+1;else if(C=C));j++);return R=T[j],R?(R.index=j,R.start=W-R.value.length,R):null},this.setUndoManager=function(S){if(this.$undoManager=S,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),S){var C=this;this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.$deltasFold.length&&(C.$deltas.push({group:"fold",deltas:C.$deltasFold}),C.$deltasFold=[]),C.$deltasDoc.length&&(C.$deltas.push({group:"doc",deltas:C.$deltasDoc}),C.$deltasDoc=[]),C.$deltas.length>0&&S.execute({action:"aceupdate",args:[C.$deltas,C],merge:C.mergeUndoDeltas}),C.mergeUndoDeltas=!1,C.$deltas=[]},this.$informUndoManager=v.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?v.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(S){this.setOption("useSoftTabs",S)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(S){this.setOption("tabSize",S)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(S){return this.$useSoftTabs&&S.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(S){this.setOption("navigateWithinSoftTabs",S)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(S){this.setOption("overwrite",S)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(S,C){this.$decorations[S]||(this.$decorations[S]=""),this.$decorations[S]+=" "+C,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(S,C){this.$decorations[S]=(this.$decorations[S]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(S){this.$breakpoints=[];for(var C=0;C0&&(R=!!T.charAt(C-1).match(this.tokenRe)),R||(R=!!T.charAt(C).match(this.tokenRe)),R)var W=this.tokenRe;else if(/^\s+$/.test(T.slice(C-1,C+1)))var W=/\s/;else var W=this.nonTokenRe;var j=C;if(j>0){do j--;while(j>=0&&T.charAt(j).match(W));j++}for(var L=C;LS&&(S=C.screenWidth)}),this.lineWidgetWidth=S},this.$computeWidth=function(S){if(this.$modified||S){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),T=this.$rowLengthCache,R=0,W=0,j=this.$foldData[W],L=j?j.start.row:1/0,Q=C.length,U=0;UL){if(U=j.end.row+1,U>=Q)break;j=this.$foldData[W++],L=j?j.start.row:1/0}T[U]==null&&(T[U]=this.$getStringScreenWidth(C[U])[0]),T[U]>R&&(R=T[U])}this.screenWidth=R}},this.getLine=function(S){return this.doc.getLine(S)},this.getLines=function(S,C){return this.doc.getLines(S,C)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(S){return this.doc.getTextRange(S||this.selection.getRange())},this.insert=function(S,C){return this.doc.insert(S,C)},this.remove=function(S){return this.doc.remove(S)},this.removeFullLines=function(S,C){return this.doc.removeFullLines(S,C)},this.undoChanges=function(S,C){if(S.length){this.$fromUndo=!0;for(var T=null,R=S.length-1;R!=-1;R--){var W=S[R];W.group=="doc"?(this.doc.revertDeltas(W.deltas),T=this.$getUndoSelection(W.deltas,!0,T)):W.deltas.forEach(function(j){this.addFolds(j.folds)},this)}return this.$fromUndo=!1,T&&this.$undoSelect&&!C&&this.selection.setSelectionRange(T),T}},this.redoChanges=function(S,C){if(S.length){this.$fromUndo=!0;for(var T=null,R=0;RS.end.column&&(j.start.column+=Q),j.end.row==S.end.row&&j.end.column>S.end.column&&(j.end.column+=Q)),L&&j.start.row>=S.end.row&&(j.start.row+=L,j.end.row+=L)}if(j.end=this.insert(j.start,R),W.length){var U=S.start,Z=j.start,L=Z.row-U.row,Q=Z.column-U.column;this.addFolds(W.map(function($){return $=$.clone(),$.start.row==U.row&&($.start.column+=Q),$.end.row==U.row&&($.end.column+=Q),$.start.row+=L,$.end.row+=L,$}))}return j},this.indentRows=function(S,C,T){T=T.replace(/\t/g,this.getTabString());for(var R=S;R<=C;R++)this.doc.insertInLine({row:R,column:0},T)},this.outdentRows=function(S){for(var C=S.collapseRows(),T=new o(0,0,0,0),R=this.getTabSize(),W=C.start.row;W<=C.end.row;++W){var j=this.getLine(W);T.start.row=W,T.end.row=W;for(var L=0;L0){var R=this.getRowFoldEnd(C+T);if(R>this.doc.getLength()-1)return 0;var W=R-C}else{S=this.$clipRowToDocument(S),C=this.$clipRowToDocument(C);var W=C-S+1}var j=new o(S,0,C,Number.MAX_VALUE),L=this.getFoldsInRange(j).map(function(U){return U=U.clone(),U.start.row+=W,U.end.row+=W,U}),Q=T==0?this.doc.getLines(S,C):this.doc.removeFullLines(S,C);return this.doc.insertFullLines(S+W,Q),L.length&&this.addFolds(L),W},this.moveLinesUp=function(S,C){return this.$moveLines(S,C,-1)},this.moveLinesDown=function(S,C){return this.$moveLines(S,C,1)},this.duplicateLines=function(S,C){return this.$moveLines(S,C,0)},this.$clipRowToDocument=function(S){return Math.max(0,Math.min(S,this.doc.getLength()-1))},this.$clipColumnToRow=function(S,C){return C<0?0:Math.min(this.doc.getLine(S).length,C)},this.$clipPositionToDocument=function(S,C){if(C=Math.max(0,C),S<0)S=0,C=0;else{var T=this.doc.getLength();S>=T?(S=T-1,C=this.doc.getLine(T-1).length):C=Math.min(this.doc.getLine(S).length,C)}return{row:S,column:C}},this.$clipRangeToDocument=function(S){S.start.row<0?(S.start.row=0,S.start.column=0):S.start.column=this.$clipColumnToRow(S.start.row,S.start.column);var C=this.doc.getLength()-1;return S.end.row>C?(S.end.row=C,S.end.column=this.doc.getLine(C).length):S.end.column=this.$clipColumnToRow(S.end.row,S.end.column),S},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(S){if(S!=this.$useWrapMode){if(this.$useWrapMode=S,this.$modified=!0,this.$resetRowCache(0),S){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(S,C){(this.$wrapLimitRange.min!==S||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:S,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(S,C){var T=this.$wrapLimitRange;T.max<0&&(T={min:C,max:C});var R=this.$constrainWrapLimit(S,T.min,T.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(S,C,T){return C&&(S=Math.max(C,S)),T&&(S=Math.min(T,S)),S},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(S){this.setWrapLimitRange(S,S)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(S){var C=this.$useWrapMode,T=S.action,R=S.start,W=S.end,j=R.row,L=W.row,Q=L-j,U=null;if(this.$updating=!0,Q!=0)if(T==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(j,Q);var Z=this.$foldData;U=this.getFoldsInRange(S),this.removeFolds(U);var se=this.getFoldLine(W.row),te=0;if(se){se.addRemoveChars(W.row,W.column,R.column-W.column),se.shiftRow(-Q);var $=this.getFoldLine(j);$&&$!==se&&($.merge(se),se=$),te=Z.indexOf(se)+1}for(te;te=W.row&&se.shiftRow(-Q)}L=j}else{var P=Array(Q);P.unshift(j,0);var A=C?this.$wrapData:this.$rowLengthCache;A.splice.apply(A,P);var Z=this.$foldData,se=this.getFoldLine(j),te=0;if(se){var O=se.range.compareInside(R.row,R.column);O==0?(se=se.split(R.row,R.column),se&&(se.shiftRow(Q),se.addRemoveChars(L,0,W.column-R.column))):O==-1&&(se.addRemoveChars(j,0,W.column-R.column),se.shiftRow(Q)),te=Z.indexOf(se)+1}for(te;te=j&&se.shiftRow(Q)}}else{Q=Math.abs(S.start.column-S.end.column),T==="remove"&&(U=this.getFoldsInRange(S),this.removeFolds(U),Q=-Q);var se=this.getFoldLine(j);se&&se.addRemoveChars(j,R.column,Q)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(j,L):this.$updateRowLengthCache(j,L),U},this.$updateRowLengthCache=function(S,C,T){this.$rowLengthCache[S]=null,this.$rowLengthCache[C]=null},this.$updateWrapData=function(S,C){var T=this.doc.getAllLines(),R=this.getTabSize(),W=this.$wrapData,j=this.$wrapLimit,L,Q,U=S;for(C=Math.min(C,T.length-1);U<=C;)Q=this.getFoldLine(U,Q),Q?(L=[],Q.walk((function(Z,se,te,$){var P;if(Z!=null){P=this.$getDisplayTokens(Z,L.length),P[0]=k;for(var A=1;AC-$;){var P=j+C-$;if(S[P-1]>=y&&S[P]>=y){te(P);continue}if(S[P]==k||S[P]==d){for(P;P!=j-1&&S[P]!=k;P--);if(P>j){te(P);continue}for(P=j+C,P;P>2)),j-1);P>A&&S[P]A&&S[P]A&&S[P]==w;)P--}else for(;P>A&&S[P]A){te(++P);continue}P=j+C,S[P]==m&&P--,te(P-$)}return R},this.$getDisplayTokens=function(S,C){var T=[],R;C=C||0;for(var W=0;W39&&j<48||j>57&&j<64?T.push(w):j>=4352&&E(j)?T.push(b,m):T.push(b)}return T},this.$getStringScreenWidth=function(S,C,T){if(C==0)return[0,0];C==null&&(C=1/0),T=T||0;var R,W;for(W=0;W=4352&&E(R)?T+=2:T+=1,!(T>C));W++);return[T,W]},this.lineWidgets=null,this.getRowLength=function(S){if(this.lineWidgets)var C=this.lineWidgets[S]&&this.lineWidgets[S].rowCount||0;else C=0;return!this.$useWrapMode||!this.$wrapData[S]?1+C:this.$wrapData[S].length+1+C},this.getRowLineCount=function(S){return!this.$useWrapMode||!this.$wrapData[S]?1:this.$wrapData[S].length+1},this.getRowWrapIndent=function(S){if(this.$useWrapMode){var C=this.screenToDocumentPosition(S,Number.MAX_VALUE),T=this.$wrapData[C.row];return T.length&&T[0]=0)var Q=Z[se],W=this.$docRowCache[se],$=S>Z[te-1];else var $=!te;for(var P=this.getLength()-1,A=this.getNextFoldLine(W),O=A?A.start.row:1/0;Q<=S&&(U=this.getRowLength(W),!(Q+U>S||W>=P));)Q+=U,W++,W>O&&(W=A.end.row+1,A=this.getNextFoldLine(W,A),O=A?A.start.row:1/0),$&&(this.$docRowCache.push(W),this.$screenRowCache.push(Q));if(A&&A.start.row<=W)R=this.getFoldDisplayLine(A),W=A.start.row;else{if(Q+U<=S||W>P)return{row:P,column:this.getLine(P).length};R=this.getLine(W),A=null}var z=0,G=Math.floor(S-Q);if(this.$useWrapMode){var re=this.$wrapData[W];re&&(L=re[G],G>0&&re.length&&(z=re.indent,j=re[G-1]||re[re.length-1],R=R.substring(j)))}return T!==void 0&&this.$bidiHandler.isBidiRow(Q+G,W,G)&&(C=this.$bidiHandler.offsetToCol(T)),j+=this.$getStringScreenWidth(R,C-z)[1],this.$useWrapMode&&j>=L&&(j=L-1),A?A.idxToPosition(j):{row:W,column:j}},this.documentToScreenPosition=function(S,C){if(typeof C>"u")var T=this.$clipPositionToDocument(S.row,S.column);else T=this.$clipPositionToDocument(S,C);S=T.row,C=T.column;var R=0,W=null,j=null;j=this.getFoldAt(S,C,1),j&&(S=j.start.row,C=j.start.column);var L,Q=0,U=this.$docRowCache,Z=this.$getRowCacheIndex(U,S),se=U.length;if(se&&Z>=0)var Q=U[Z],R=this.$screenRowCache[Z],te=S>U[se-1];else var te=!se;for(var $=this.getNextFoldLine(Q),P=$?$.start.row:1/0;Q=P){if(L=$.end.row+1,L>S)break;$=this.getNextFoldLine(L,$),P=$?$.start.row:1/0}else L=Q+1;R+=this.getRowLength(Q),Q=L,te&&(this.$docRowCache.push(Q),this.$screenRowCache.push(R))}var A="";$&&Q>=P?(A=this.getFoldDisplayLine($,S,C),W=$.start.row):(A=this.getLine(S).substring(0,C),W=S);var O=0;if(this.$useWrapMode){var z=this.$wrapData[W];if(z){for(var G=0;A.length>=z[G];)R++,G++;A=A.substring(z[G-1]||0,A.length),O=G>0?z.indent:0}}return{row:R,column:O+this.$getStringScreenWidth(A)[0]}},this.documentToScreenColumn=function(S,C){return this.documentToScreenPosition(S,C).column},this.documentToScreenRow=function(S,C){return this.documentToScreenPosition(S,C).row},this.getScreenLength=function(){var S=0,C=null;if(this.$useWrapMode)for(var W=this.$wrapData.length,j=0,R=0,C=this.$foldData[R++],L=C?C.start.row:1/0;jL&&(j=C.end.row+1,C=this.$foldData[R++],L=C?C.start.row:1/0)}else{S=this.getLength();for(var T=this.$foldData,R=0;RT));j++);return[R,j]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=E;function E(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}}).call(h.prototype),l("./edit_session/folding").Folding.call(h.prototype),l("./edit_session/bracket_match").BracketMatch.call(h.prototype),a.defineOptions(h.prototype,"session",{wrap:{set:function(b){if(!b||b=="off"?b=!1:b=="free"?b=!0:b=="printMargin"?b=-1:typeof b=="string"&&(b=parseInt(b,10)||!1),this.$wrap!=b)if(this.$wrap=b,!b)this.setUseWrapMode(!1);else{var m=typeof b=="number"?b:null;this.setWrapLimitRange(m,m),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(b){b=b=="auto"?this.$mode.type!="text":b!="text",b!=this.$wrapAsCode&&(this.$wrapAsCode=b,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(b){this.$useWorker=b,this.$stopWorker(),b&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(b){isNaN(b)||this.$tabSize===b||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(b){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(b){this.doc.setNewLineMode(b)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(b){this.setMode(b)},get:function(){return this.$modeId}}}),r.EditSession=h});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(l,r,g){var p=l("./lib/lang"),v=l("./lib/oop"),f=l("./range").Range,a=function(){this.$options={}};(function(){this.set=function(t){return v.mixin(this.$options,t),this},this.getOptions=function(){return p.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var s=this.$options,o=this.$matchIterator(t,s);if(!o)return!1;var e=null;return o.forEach(function(c,u,h,b){return e=new f(c,u,h,b),u==b&&s.start&&s.start.start&&s.skipCurrent!=!1&&e.isEqual(s.start)?(e=null,!1):!0}),e},this.findAll=function(t){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var o=s.range,e=o?t.getLines(o.start.row,o.end.row):t.doc.getAllLines(),c=[],u=s.re;if(s.$isMultiLine){var h=u.length,b=e.length-h,m;e:for(var k=u.offset||0;k<=b;k++){for(var d=0;d_||(c.push(m=new f(k,_,k+h-1,x)),h>2&&(k=k+h-2))}}else for(var E=0;ER&&c[d].end.row==o.end.row;)d--;for(c=c.slice(E,d+1),E=0,d=c.length;E=b;_--)if(w(_,Number.MAX_VALUE,y))return;if(s.wrap!=!1){for(_=p,b=h.row;_>=b;_--)if(w(_,Number.MAX_VALUE,y))return}}};else var k=function(_){var x=h.row;if(!w(x,h.column,_)){for(x=x+1;x<=p;x++)if(w(x,0,_))return;if(s.wrap!=!1){for(x=b,p=h.row;x<=p;x++)if(w(x,0,_))return}}};if(s.$isMultiLine)var d=o.length,w=function(y,_,x){var E=e?y-d+1:y;if(!(E<0)){var S=t.getLine(E),C=S.search(o[0]);if(!(!e&&C<_||C===-1)){for(var T=1;T_)&&x(E,C,E+d-1,R))return!0}}};else if(e)var w=function(_,x,E){var S=t.getLine(_),C=[],T,R=0;for(o.lastIndex=0;T=o.exec(S);){var W=T[0].length;if(R=T.index,!W){if(R>=S.length)break;o.lastIndex=R+=1}if(T.index+W>x)break;C.push(T.index,W)}for(var j=C.length-1;j>=0;j-=2){var L=C[j-1],W=C[j];if(E(_,L,_,L+W))return!0}};else var w=function(_,x,E){var S=t.getLine(_),C,T=x;for(o.lastIndex=x;C=o.exec(S);){var R=C[0].length;if(T=C.index,E(_,T,_,T+R))return!0;if(!R&&(o.lastIndex=T+=1,T>=S.length))return!1}};return{forEach:k}}}).call(a.prototype);function i(t,s){function o(e){return/\w/.test(e)||s.regExp?"\\b":""}return o(t[0])+t+o(t[t.length-1])}r.Search=a});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(l,r,m){var g=l("../lib/keys"),v=l("../lib/useragent"),f=g.KEY_MODS;function a(t,s){this.platform=s||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function i(t,s){a.call(this,t,s),this.$singleCommand=!1}i.prototype=a.prototype,(function(){this.addCommand=function(s){this.commands[s.name]&&this.removeCommand(s),this.commands[s.name]=s,s.bindKey&&this._buildKeyHash(s)},this.removeCommand=function(s,o){var e=s&&(typeof s=="string"?s:s.name);s=this.commands[e],o||delete this.commands[e];var c=this.commandKeyBinding;for(var u in c){var h=c[u];if(h==s)delete c[u];else if(Array.isArray(h)){var b=h.indexOf(s);b!=-1&&(h.splice(b,1),h.length==1&&(c[u]=h[0]))}}},this.bindKey=function(s,o,e){if(typeof s=="object"&&s&&(e==null&&(e=s.position),s=s[this.platform]),!!s){if(typeof o=="function")return this.addCommand({exec:o,bindKey:s,name:o.name||s});s.split("|").forEach(function(c){var u="";if(c.indexOf(" ")!=-1){var h=c.split(/\s+/);c=h.pop(),h.forEach(function(k){var d=this.parseKeys(k),w=f[d.hashId]+d.key;u+=(u?" ":"")+w,this._addCommandToBinding(u,"chainKeys")},this),u+=" "}var b=this.parseKeys(c),p=f[b.hashId]+b.key;this._addCommandToBinding(u+p,o,e)},this)}};function t(s){return typeof s=="object"&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}this._addCommandToBinding=function(s,o,e){var c=this.commandKeyBinding,u;if(!o)delete c[s];else if(!c[s]||this.$singleCommand)c[s]=o;else{Array.isArray(c[s])?(u=c[s].indexOf(o))!=-1&&c[s].splice(u,1):c[s]=[c[s]],typeof e!="number"&&(e=t(o));var h=c[s];for(u=0;ue)break}h.splice(u,0,o)}},this.addCommands=function(s){s&&Object.keys(s).forEach(function(o){var e=s[o];if(e){if(typeof e=="string")return this.bindKey(e,o);typeof e=="function"&&(e={exec:e}),typeof e=="object"&&(e.name||(e.name=o),this.addCommand(e))}},this)},this.removeCommands=function(s){Object.keys(s).forEach(function(o){this.removeCommand(s[o])},this)},this.bindKeys=function(s){Object.keys(s).forEach(function(o){this.bindKey(o,s[o])},this)},this._buildKeyHash=function(s){this.bindKey(s.bindKey,s)},this.parseKeys=function(s){var o=s.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(p){return p}),e=o.pop(),c=g[e];if(g.FUNCTION_KEYS[c])e=g.FUNCTION_KEYS[c].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:e.toUpperCase(),hashId:-1}}else return{key:e,hashId:-1};for(var u=0,h=o.length;h--;){var b=g.KEY_MODS[o[h]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+o[h]+" in "+s),!1;u|=b}return{key:e,hashId:u}},this.findKeyCommand=function(o,e){var c=f[o]+e;return this.commandKeyBinding[c]},this.handleKeyboard=function(s,o,e,c){if(!(c<0)){var u=f[o]+e,h=this.commandKeyBinding[u];return s.$keyChain&&(s.$keyChain+=" "+u,h=this.commandKeyBinding[s.$keyChain]||h),h&&(h=="chainKeys"||h[h.length-1]=="chainKeys")?(s.$keyChain=s.$keyChain||u,{command:"null"}):(s.$keyChain&&((!o||o==4)&&e.length==1?s.$keyChain=s.$keyChain.slice(0,-u.length-1):(o==-1||c>0)&&(s.$keyChain="")),{command:h})}},this.getStatusText=function(s,o){return o.$keyChain||""}}).call(a.prototype),r.HashHandler=a,r.MultiHashHandler=i});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(l,r,m){var g=l("../lib/oop"),v=l("../keyboard/hash_handler").MultiHashHandler,f=l("../lib/event_emitter").EventEmitter,a=function(i,t){v.call(this,t,i),this.byName=this.commands,this.setDefaultHandler("exec",function(s){return s.command.exec(s.editor,s.args||{})})};g.inherits(a,v),(function(){g.implement(this,f),this.exec=function(i,t,s){if(Array.isArray(i)){for(var o=i.length;o--;)if(this.exec(i[o],t,s))return!0;return!1}if(typeof i=="string"&&(i=this.commands[i]),!i||t&&t.$readOnly&&!i.readOnly||i.isAvailable&&!i.isAvailable(t))return!1;var e={editor:t,command:i,args:s};return e.returnValue=this._emit("exec",e),this._signal("afterExec",e),e.returnValue!==!1},this.toggleRecording=function(i){if(!this.$inReplay)return i&&i._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(t){this.macro.push([t.command,t.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(i){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(i);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,i):this.exec(t[0],i,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(i){return i.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})}}).call(a.prototype),r.CommandManager=a});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(l,r,m){var g=l("../lib/lang"),v=l("../config"),f=l("../range").Range;function a(i,t){return{win:i,mac:t}}r.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(i){v.loadModule("ace/ext/settings_menu",function(t){t.init(i),i.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(i){v.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(i,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(i){v.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(i,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(i){i.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(i){i.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(i){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||i.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(i){i.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(i){i.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(i){i.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(i){i.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(i){i.session.foldAll(),i.session.unfold(i.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(i){i.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(i){i.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(i){i.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(i){v.loadModule("ace/ext/searchbox",function(t){t.Search(i)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(i){i.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(i){i.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(i){i.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(i){i.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(i,t){i.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(i){i.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(i){i.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(i){i.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(i,t){i.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(i){i.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(i){i.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(i){i.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(i){i.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(i,t){i.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(i){i.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(i){i.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(i){i.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(i){i.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(i,t){i.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(i){i.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(i){i.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(i){i.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(i){i.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(i){i.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(i){i.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(i){i.renderer.scrollBy(0,-2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(i){i.renderer.scrollBy(0,2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(i){i.commands.toggleRecording(i)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(i){i.commands.replay(i)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(i){i.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(i){i.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(i){i.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(i){},readOnly:!0},{name:"cut",exec:function(i){var t=i.getSelectionRange();i._emit("cut",t),i.selection.isEmpty()||(i.session.remove(t),i.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(i,t){i.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(i){i.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(i){i.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(i){i.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(i){i.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(i){i.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(i){i.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(i){i.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(i){v.loadModule("ace/ext/searchbox",function(t){t.Search(i,!0)})}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(i){i.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(i){i.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(i){i.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(i){i.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(i){i.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(i){i.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(i){i.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(i){i.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(i){if(i.selection.isEmpty())i.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(i){i.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(i){i.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(i){var t=i.selection.getRange();t.start.column=0,i.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(i){var t=i.selection.getRange();t.end.column=Number.MAX_VALUE,i.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(i){i.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(i){i.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(i){i.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(i){i.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(i){i.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(i){i.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(i,t){i.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(i,t){i.insert(g.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(i){i.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(i){i.transposeLetters()},multiSelectAction:function(i){i.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(i){i.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(i){i.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(i){var t=i.selection.getRange();t.start.column=t.end.column=0,t.end.row++,i.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(i){for(var t=i.selection.isBackwards(),s=t?i.selection.getSelectionLead():i.selection.getSelectionAnchor(),o=t?i.selection.getSelectionAnchor():i.selection.getSelectionLead(),e=i.session.doc.getLine(s.row).length,c=i.session.doc.getTextRange(i.selection.getRange()),u=c.replace(/\n\s*/," ").length,h=i.session.doc.getLine(s.row),b=s.row+1;b<=o.row+1;b++){var p=g.stringTrimLeft(g.stringTrimRight(i.session.doc.getLine(b)));p.length!==0&&(p=" "+p),h+=p}o.row+10?(i.selection.moveCursorTo(s.row,s.column),i.selection.selectTo(s.row,s.column+u)):(e=i.session.doc.getLine(s.row).length>e?e+1:e,i.selection.moveCursorTo(s.row,e))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(i){var t=i.session.doc.getLength()-1,s=i.session.doc.getLine(t).length,o=i.selection.rangeList.ranges,e=[];o.length<1&&(o=[i.selection.getRange()]);for(var c=0;c0&&this.$blockScrolling--;var x=_&&_.scrollIntoView;if(x){switch(x){case"center-animate":x="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var E=this.selection.getRange(),S=this.renderer.layerConfig;(E.start.row>=S.lastRow||E.end.row<=S.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}x=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(y){if(this.$mergeUndoDeltas){var _=this.prevOp,x=this.$mergeableCommands,E=_.command&&y.command.name==_.command.name;if(y.command.name=="insertstring"){var S=y.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),E=E&&this.mergeNextCommand&&(!/\s/.test(S)||/\s/.test(_.args)),this.mergeNextCommand=!0}else E=E&&x.indexOf(y.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(E=!1),E?this.session.mergeUndoDeltas=!0:x.indexOf(y.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(y,_){if(y&&typeof y=="string"){this.$keybindingId=y;var x=this;k.loadModule(["keybinding",y],function(E){x.$keybindingId==y&&x.keyBinding.setKeyboardHandler(E&&E.handler),_&&_()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(y),_&&_()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(y){if(this.session!=y){this.curOp&&this.endOperation(),this.curOp={};var _=this.session;if(_){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var x=this.session.getSelection();x.off("changeCursor",this.$onCursorChange),x.off("changeSelection",this.$onSelectionChange)}this.session=y,y?(this.$onDocumentChange=this.onDocumentChange.bind(this),y.on("change",this.$onDocumentChange),this.renderer.setSession(y),this.$onChangeMode=this.onChangeMode.bind(this),y.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),y.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),y.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),y.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),y.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),y.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=y.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(y)),this._signal("changeSession",{session:y,oldSession:_}),this.curOp=null,_&&_._signal("changeEditor",{oldEditor:this}),y&&y._signal("changeEditor",{editor:this}),y&&y.bgTokenizer&&y.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(y,_){return this.session.doc.setValue(y),_?_==1?this.navigateFileEnd():_==-1&&this.navigateFileStart():this.selectAll(),y},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(y){this.renderer.onResize(y)},this.setTheme=function(y,_){this.renderer.setTheme(y,_)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(y){this.renderer.setStyle(y)},this.unsetStyle=function(y){this.renderer.unsetStyle(y)},this.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container,"fontSize")},this.setFontSize=function(y){this.setOption("fontSize",y)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var y=this;this.$highlightPending=!0,setTimeout(function(){y.$highlightPending=!1;var _=y.session;if(!(!_||!_.bgTokenizer)){var x=_.findMatchingBracket(y.getCursorPosition());if(x)var E=new u(x.row,x.column,x.row,x.column+1);else if(_.$mode.getMatching)var E=_.$mode.getMatching(y.session);E&&(_.$bracketHighlight=_.addMarker(E,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var y=this;this.$highlightTagPending=!0,setTimeout(function(){y.$highlightTagPending=!1;var _=y.session;if(!(!_||!_.bgTokenizer)){var x=y.getCursorPosition(),E=new d(y.session,x.row,x.column),S=E.getCurrentToken();if(!S||!/\b(?:tag-open|tag-name)/.test(S.type)){_.removeMarker(_.$tagHighlight),_.$tagHighlight=null;return}if(!(S.type.indexOf("tag-open")!=-1&&(S=E.stepForward(),!S))){var C=S.value,T=0,R=E.stepBackward();if(R.value=="<")do R=S,S=E.stepForward(),S&&S.value===C&&S.type.indexOf("tag-name")!==-1&&(R.value==="<"?T++:R.value==="=0);else{do S=R,R=E.stepBackward(),S&&S.value===C&&S.type.indexOf("tag-name")!==-1&&(R.value==="<"?T++:R.value==="1)&&(_=!1)),y.$highlightLineMarker&&!_)y.removeMarker(y.$highlightLineMarker.id),y.$highlightLineMarker=null;else if(!y.$highlightLineMarker&&_){var x=new u(_.row,_.column,_.row,1/0);x.id=y.addMarker(x,"ace_active-line","screenLine"),y.$highlightLineMarker=x}else _&&(y.$highlightLineMarker.start.row=_.row,y.$highlightLineMarker.end.row=_.row,y.$highlightLineMarker.start.column=_.column,y._signal("changeBackMarker"))},this.onSelectionChange=function(y){var _=this.session;if(_.$selectionMarker&&_.removeMarker(_.$selectionMarker),_.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var x=this.selection.getRange(),E=this.getSelectionStyle();_.$selectionMarker=_.addMarker(x,"ace_selection",E)}var S=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(S),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var y=this.session,_=this.getSelectionRange();if(!(_.isEmpty()||_.isMultiLine())){var x=_.start.column-1,E=_.end.column+1,S=y.getLine(_.start.row),C=S.length,T=S.substring(Math.max(x,0),Math.min(E,C));if(!(x>=0&&/^[\w\d]/.test(T)||E<=C&&/[\w\d]$/.test(T))&&(T=S.substring(_.start.column,_.end.column),!!/^[\w\d]+$/.test(T))){var R=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:T});return R}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(y){this.renderer.updateText(),this._emit("changeMode",y)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var y=this.getSelectedText();return this._signal("copy",y),y},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(y,_){var x={text:y,event:_};this.commands.exec("paste",this,x)},this.$handlePaste=function(y){typeof y=="string"&&(y={text:y}),this._signal("paste",y);var _=y.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(_);else{var x=_.split(/\r\n|\r|\n/),E=this.selection.rangeList.ranges;if(x.length>E.length||x.length<2||!x[1])return this.commands.exec("insertstring",this,_);for(var S=E.length;S--;){var C=E[S];C.isEmpty()||this.session.remove(C),this.session.insert(C.start,x[S])}}},this.execCommand=function(y,_){return this.commands.exec(y,this,_)},this.insert=function(y,_){var x=this.session,E=x.getMode(),S=this.getCursorPosition();if(this.getBehavioursEnabled()&&!_){var C=E.transformAction(x.getState(S.row),"insertion",this,x,y);C&&(y!==C.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),y=C.text)}if(y==" "&&(y=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&y.indexOf(` +`),e=[],c=0;c=b;_--)if(w(_,Number.MAX_VALUE,y))return;if(s.wrap!=!1){for(_=m,b=h.row;_>=b;_--)if(w(_,Number.MAX_VALUE,y))return}}};else var k=function(_){var x=h.row;if(!w(x,h.column,_)){for(x=x+1;x<=m;x++)if(w(x,0,_))return;if(s.wrap!=!1){for(x=b,m=h.row;x<=m;x++)if(w(x,0,_))return}}};if(s.$isMultiLine)var d=o.length,w=function(y,_,x){var E=e?y-d+1:y;if(!(E<0)){var S=t.getLine(E),C=S.search(o[0]);if(!(!e&&C<_||C===-1)){for(var T=1;T_)&&x(E,C,E+d-1,R))return!0}}};else if(e)var w=function(_,x,E){var S=t.getLine(_),C=[],T,R=0;for(o.lastIndex=0;T=o.exec(S);){var W=T[0].length;if(R=T.index,!W){if(R>=S.length)break;o.lastIndex=R+=1}if(T.index+W>x)break;C.push(T.index,W)}for(var j=C.length-1;j>=0;j-=2){var L=C[j-1],W=C[j];if(E(_,L,_,L+W))return!0}};else var w=function(_,x,E){var S=t.getLine(_),C,T=x;for(o.lastIndex=x;C=o.exec(S);){var R=C[0].length;if(T=C.index,E(_,T,_,T+R))return!0;if(!R&&(o.lastIndex=T+=1,T>=S.length))return!1}};return{forEach:k}}}).call(a.prototype);function i(t,s){function o(e){return/\w/.test(e)||s.regExp?"\\b":""}return o(t[0])+t+o(t[t.length-1])}r.Search=a});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(l,r,g){var p=l("../lib/keys"),v=l("../lib/useragent"),f=p.KEY_MODS;function a(t,s){this.platform=s||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function i(t,s){a.call(this,t,s),this.$singleCommand=!1}i.prototype=a.prototype,(function(){this.addCommand=function(s){this.commands[s.name]&&this.removeCommand(s),this.commands[s.name]=s,s.bindKey&&this._buildKeyHash(s)},this.removeCommand=function(s,o){var e=s&&(typeof s=="string"?s:s.name);s=this.commands[e],o||delete this.commands[e];var c=this.commandKeyBinding;for(var u in c){var h=c[u];if(h==s)delete c[u];else if(Array.isArray(h)){var b=h.indexOf(s);b!=-1&&(h.splice(b,1),h.length==1&&(c[u]=h[0]))}}},this.bindKey=function(s,o,e){if(typeof s=="object"&&s&&(e==null&&(e=s.position),s=s[this.platform]),!!s){if(typeof o=="function")return this.addCommand({exec:o,bindKey:s,name:o.name||s});s.split("|").forEach(function(c){var u="";if(c.indexOf(" ")!=-1){var h=c.split(/\s+/);c=h.pop(),h.forEach(function(k){var d=this.parseKeys(k),w=f[d.hashId]+d.key;u+=(u?" ":"")+w,this._addCommandToBinding(u,"chainKeys")},this),u+=" "}var b=this.parseKeys(c),m=f[b.hashId]+b.key;this._addCommandToBinding(u+m,o,e)},this)}};function t(s){return typeof s=="object"&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}this._addCommandToBinding=function(s,o,e){var c=this.commandKeyBinding,u;if(!o)delete c[s];else if(!c[s]||this.$singleCommand)c[s]=o;else{Array.isArray(c[s])?(u=c[s].indexOf(o))!=-1&&c[s].splice(u,1):c[s]=[c[s]],typeof e!="number"&&(e=t(o));var h=c[s];for(u=0;ue)break}h.splice(u,0,o)}},this.addCommands=function(s){s&&Object.keys(s).forEach(function(o){var e=s[o];if(e){if(typeof e=="string")return this.bindKey(e,o);typeof e=="function"&&(e={exec:e}),typeof e=="object"&&(e.name||(e.name=o),this.addCommand(e))}},this)},this.removeCommands=function(s){Object.keys(s).forEach(function(o){this.removeCommand(s[o])},this)},this.bindKeys=function(s){Object.keys(s).forEach(function(o){this.bindKey(o,s[o])},this)},this._buildKeyHash=function(s){this.bindKey(s.bindKey,s)},this.parseKeys=function(s){var o=s.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(m){return m}),e=o.pop(),c=p[e];if(p.FUNCTION_KEYS[c])e=p.FUNCTION_KEYS[c].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:e.toUpperCase(),hashId:-1}}else return{key:e,hashId:-1};for(var u=0,h=o.length;h--;){var b=p.KEY_MODS[o[h]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+o[h]+" in "+s),!1;u|=b}return{key:e,hashId:u}},this.findKeyCommand=function(o,e){var c=f[o]+e;return this.commandKeyBinding[c]},this.handleKeyboard=function(s,o,e,c){if(!(c<0)){var u=f[o]+e,h=this.commandKeyBinding[u];return s.$keyChain&&(s.$keyChain+=" "+u,h=this.commandKeyBinding[s.$keyChain]||h),h&&(h=="chainKeys"||h[h.length-1]=="chainKeys")?(s.$keyChain=s.$keyChain||u,{command:"null"}):(s.$keyChain&&((!o||o==4)&&e.length==1?s.$keyChain=s.$keyChain.slice(0,-u.length-1):(o==-1||c>0)&&(s.$keyChain="")),{command:h})}},this.getStatusText=function(s,o){return o.$keyChain||""}}).call(a.prototype),r.HashHandler=a,r.MultiHashHandler=i});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(l,r,g){var p=l("../lib/oop"),v=l("../keyboard/hash_handler").MultiHashHandler,f=l("../lib/event_emitter").EventEmitter,a=function(i,t){v.call(this,t,i),this.byName=this.commands,this.setDefaultHandler("exec",function(s){return s.command.exec(s.editor,s.args||{})})};p.inherits(a,v),(function(){p.implement(this,f),this.exec=function(i,t,s){if(Array.isArray(i)){for(var o=i.length;o--;)if(this.exec(i[o],t,s))return!0;return!1}if(typeof i=="string"&&(i=this.commands[i]),!i||t&&t.$readOnly&&!i.readOnly||i.isAvailable&&!i.isAvailable(t))return!1;var e={editor:t,command:i,args:s};return e.returnValue=this._emit("exec",e),this._signal("afterExec",e),e.returnValue!==!1},this.toggleRecording=function(i){if(!this.$inReplay)return i&&i._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(t){this.macro.push([t.command,t.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(i){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(i);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,i):this.exec(t[0],i,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(i){return i.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})}}).call(a.prototype),r.CommandManager=a});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(l,r,g){var p=l("../lib/lang"),v=l("../config"),f=l("../range").Range;function a(i,t){return{win:i,mac:t}}r.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(i){v.loadModule("ace/ext/settings_menu",function(t){t.init(i),i.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(i){v.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(i,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(i){v.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(i,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(i){i.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(i){i.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(i){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||i.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(i){i.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(i){i.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(i){i.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(i){i.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(i){i.session.foldAll(),i.session.unfold(i.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(i){i.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(i){i.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(i){i.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(i){v.loadModule("ace/ext/searchbox",function(t){t.Search(i)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(i){i.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(i){i.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(i){i.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(i){i.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(i,t){i.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(i){i.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(i){i.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(i){i.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(i,t){i.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(i){i.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(i){i.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(i){i.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(i){i.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(i,t){i.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(i){i.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(i){i.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(i){i.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(i){i.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(i,t){i.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(i){i.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(i){i.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(i){i.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(i){i.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(i){i.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(i){i.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(i){i.renderer.scrollBy(0,-2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(i){i.renderer.scrollBy(0,2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(i){i.commands.toggleRecording(i)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(i){i.commands.replay(i)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(i){i.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(i){i.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(i){i.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(i){},readOnly:!0},{name:"cut",exec:function(i){var t=i.getSelectionRange();i._emit("cut",t),i.selection.isEmpty()||(i.session.remove(t),i.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(i,t){i.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(i){i.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(i){i.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(i){i.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(i){i.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(i){i.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(i){i.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(i){i.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(i){v.loadModule("ace/ext/searchbox",function(t){t.Search(i,!0)})}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(i){i.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(i){i.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(i){i.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(i){i.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(i){i.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(i){i.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(i){i.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(i){i.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(i){if(i.selection.isEmpty())i.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(i){i.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(i){i.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(i){var t=i.selection.getRange();t.start.column=0,i.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(i){var t=i.selection.getRange();t.end.column=Number.MAX_VALUE,i.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(i){i.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(i){i.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(i){i.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(i){i.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(i){i.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(i){i.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(i,t){i.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(i,t){i.insert(p.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(i){i.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(i){i.transposeLetters()},multiSelectAction:function(i){i.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(i){i.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(i){i.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(i){var t=i.selection.getRange();t.start.column=t.end.column=0,t.end.row++,i.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(i){for(var t=i.selection.isBackwards(),s=t?i.selection.getSelectionLead():i.selection.getSelectionAnchor(),o=t?i.selection.getSelectionAnchor():i.selection.getSelectionLead(),e=i.session.doc.getLine(s.row).length,c=i.session.doc.getTextRange(i.selection.getRange()),u=c.replace(/\n\s*/," ").length,h=i.session.doc.getLine(s.row),b=s.row+1;b<=o.row+1;b++){var m=p.stringTrimLeft(p.stringTrimRight(i.session.doc.getLine(b)));m.length!==0&&(m=" "+m),h+=m}o.row+10?(i.selection.moveCursorTo(s.row,s.column),i.selection.selectTo(s.row,s.column+u)):(e=i.session.doc.getLine(s.row).length>e?e+1:e,i.selection.moveCursorTo(s.row,e))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(i){var t=i.session.doc.getLength()-1,s=i.session.doc.getLine(t).length,o=i.selection.rangeList.ranges,e=[];o.length<1&&(o=[i.selection.getRange()]);for(var c=0;c0&&this.$blockScrolling--;var x=_&&_.scrollIntoView;if(x){switch(x){case"center-animate":x="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var E=this.selection.getRange(),S=this.renderer.layerConfig;(E.start.row>=S.lastRow||E.end.row<=S.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}x=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(y){if(this.$mergeUndoDeltas){var _=this.prevOp,x=this.$mergeableCommands,E=_.command&&y.command.name==_.command.name;if(y.command.name=="insertstring"){var S=y.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),E=E&&this.mergeNextCommand&&(!/\s/.test(S)||/\s/.test(_.args)),this.mergeNextCommand=!0}else E=E&&x.indexOf(y.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(E=!1),E?this.session.mergeUndoDeltas=!0:x.indexOf(y.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(y,_){if(y&&typeof y=="string"){this.$keybindingId=y;var x=this;k.loadModule(["keybinding",y],function(E){x.$keybindingId==y&&x.keyBinding.setKeyboardHandler(E&&E.handler),_&&_()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(y),_&&_()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(y){if(this.session!=y){this.curOp&&this.endOperation(),this.curOp={};var _=this.session;if(_){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var x=this.session.getSelection();x.off("changeCursor",this.$onCursorChange),x.off("changeSelection",this.$onSelectionChange)}this.session=y,y?(this.$onDocumentChange=this.onDocumentChange.bind(this),y.on("change",this.$onDocumentChange),this.renderer.setSession(y),this.$onChangeMode=this.onChangeMode.bind(this),y.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),y.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),y.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),y.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),y.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),y.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=y.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(y)),this._signal("changeSession",{session:y,oldSession:_}),this.curOp=null,_&&_._signal("changeEditor",{oldEditor:this}),y&&y._signal("changeEditor",{editor:this}),y&&y.bgTokenizer&&y.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(y,_){return this.session.doc.setValue(y),_?_==1?this.navigateFileEnd():_==-1&&this.navigateFileStart():this.selectAll(),y},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(y){this.renderer.onResize(y)},this.setTheme=function(y,_){this.renderer.setTheme(y,_)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(y){this.renderer.setStyle(y)},this.unsetStyle=function(y){this.renderer.unsetStyle(y)},this.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container,"fontSize")},this.setFontSize=function(y){this.setOption("fontSize",y)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var y=this;this.$highlightPending=!0,setTimeout(function(){y.$highlightPending=!1;var _=y.session;if(!(!_||!_.bgTokenizer)){var x=_.findMatchingBracket(y.getCursorPosition());if(x)var E=new u(x.row,x.column,x.row,x.column+1);else if(_.$mode.getMatching)var E=_.$mode.getMatching(y.session);E&&(_.$bracketHighlight=_.addMarker(E,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var y=this;this.$highlightTagPending=!0,setTimeout(function(){y.$highlightTagPending=!1;var _=y.session;if(!(!_||!_.bgTokenizer)){var x=y.getCursorPosition(),E=new d(y.session,x.row,x.column),S=E.getCurrentToken();if(!S||!/\b(?:tag-open|tag-name)/.test(S.type)){_.removeMarker(_.$tagHighlight),_.$tagHighlight=null;return}if(!(S.type.indexOf("tag-open")!=-1&&(S=E.stepForward(),!S))){var C=S.value,T=0,R=E.stepBackward();if(R.value=="<")do R=S,S=E.stepForward(),S&&S.value===C&&S.type.indexOf("tag-name")!==-1&&(R.value==="<"?T++:R.value==="=0);else{do S=R,R=E.stepBackward(),S&&S.value===C&&S.type.indexOf("tag-name")!==-1&&(R.value==="<"?T++:R.value==="1)&&(_=!1)),y.$highlightLineMarker&&!_)y.removeMarker(y.$highlightLineMarker.id),y.$highlightLineMarker=null;else if(!y.$highlightLineMarker&&_){var x=new u(_.row,_.column,_.row,1/0);x.id=y.addMarker(x,"ace_active-line","screenLine"),y.$highlightLineMarker=x}else _&&(y.$highlightLineMarker.start.row=_.row,y.$highlightLineMarker.end.row=_.row,y.$highlightLineMarker.start.column=_.column,y._signal("changeBackMarker"))},this.onSelectionChange=function(y){var _=this.session;if(_.$selectionMarker&&_.removeMarker(_.$selectionMarker),_.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var x=this.selection.getRange(),E=this.getSelectionStyle();_.$selectionMarker=_.addMarker(x,"ace_selection",E)}var S=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(S),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var y=this.session,_=this.getSelectionRange();if(!(_.isEmpty()||_.isMultiLine())){var x=_.start.column-1,E=_.end.column+1,S=y.getLine(_.start.row),C=S.length,T=S.substring(Math.max(x,0),Math.min(E,C));if(!(x>=0&&/^[\w\d]/.test(T)||E<=C&&/[\w\d]$/.test(T))&&(T=S.substring(_.start.column,_.end.column),!!/^[\w\d]+$/.test(T))){var R=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:T});return R}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(y){this.renderer.updateText(),this._emit("changeMode",y)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var y=this.getSelectedText();return this._signal("copy",y),y},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(y,_){var x={text:y,event:_};this.commands.exec("paste",this,x)},this.$handlePaste=function(y){typeof y=="string"&&(y={text:y}),this._signal("paste",y);var _=y.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(_);else{var x=_.split(/\r\n|\r|\n/),E=this.selection.rangeList.ranges;if(x.length>E.length||x.length<2||!x[1])return this.commands.exec("insertstring",this,_);for(var S=E.length;S--;){var C=E[S];C.isEmpty()||this.session.remove(C),this.session.insert(C.start,x[S])}}},this.execCommand=function(y,_){return this.commands.exec(y,this,_)},this.insert=function(y,_){var x=this.session,E=x.getMode(),S=this.getCursorPosition();if(this.getBehavioursEnabled()&&!_){var C=E.transformAction(x.getState(S.row),"insertion",this,x,y);C&&(y!==C.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),y=C.text)}if(y==" "&&(y=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&y.indexOf(` `)==-1){var T=new u.fromPoints(S,S);T.end.column+=y.length,this.session.remove(T)}}else{var T=this.getSelectionRange();S=this.session.remove(T),this.clearSelection()}if(y==` `||y==`\r `){var L=x.getLine(S.row);if(S.column>L.search(/\S|$/)){var R=L.substr(S.column).search(/\S|$/);x.doc.removeInLine(S.row,S.column,S.column+R)}}this.clearSelection();var W=S.column,j=x.getState(S.row),L=x.getLine(S.row),Q=E.checkOutdent(j,L,y);if(x.insert(S,y),C&&C.selection&&(C.selection.length==2?this.selection.setSelectionRange(new u(S.row,W+C.selection[0],S.row,W+C.selection[1])):this.selection.setSelectionRange(new u(S.row+C.selection[0],C.selection[1],S.row+C.selection[2],C.selection[3]))),x.getDocument().isNewLine(y)){var U=E.getNextLineIndent(j,L.slice(0,S.column),x.getTabString());x.insert({row:S.row+1,column:0},U)}Q&&E.autoOutdent(j,x,S.row)},this.onTextInput=function(y){this.keyBinding.onTextInput(y)},this.onCommandKey=function(y,_,x){this.keyBinding.onCommandKey(y,_,x)},this.setOverwrite=function(y){this.session.setOverwrite(y)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(y){this.setOption("scrollSpeed",y)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(y){this.setOption("dragDelay",y)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(y){this.setOption("selectionStyle",y)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(y){this.setOption("highlightActiveLine",y)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(y){this.setOption("highlightGutterLine",y)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(y){this.setOption("highlightSelectedWord",y)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(y){this.renderer.setAnimatedScroll(y)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(y){this.renderer.setShowInvisibles(y)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(y){this.renderer.setDisplayIndentGuides(y)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(y){this.renderer.setShowPrintMargin(y)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(y){this.renderer.setPrintMarginColumn(y)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(y){this.setOption("readOnly",y)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(y){this.setOption("behavioursEnabled",y)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(y){this.setOption("wrapBehavioursEnabled",y)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(y){this.setOption("showFoldWidgets",y)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(y){this.setOption("fadeFoldWidgets",y)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(y){this.selection.isEmpty()&&(y=="left"?this.selection.selectLeft():this.selection.selectRight());var _=this.getSelectionRange();if(this.getBehavioursEnabled()){var x=this.session,E=x.getState(_.start.row),S=x.getMode().transformAction(E,"deletion",this,x,_);if(_.end.column===0){var C=x.getTextRange(_);if(C[C.length-1]==` `){var T=x.getLine(_.end.row);/^\s+$/.test(T)&&(_.end.column=T.length)}}S&&(_=S)}this.session.remove(_),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var y=this.getSelectionRange();y.start.column==y.end.column&&y.start.row==y.end.row&&(y.end.column=0,y.end.row++),this.session.remove(y),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var y=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(y)},this.transposeLetters=function(){if(this.selection.isEmpty()){var y=this.getCursorPosition(),_=y.column;if(_!==0){var x=this.session.getLine(y.row),E,S;_R.toLowerCase()?1:0});for(var S=new u(0,0,0,0),E=y.first;E<=y.last;E++){var C=_.getLine(E);S.start.row=E,S.end.row=E,S.end.column=C.length,_.replace(S,x[E-y.first])}},this.toggleCommentLines=function(){var y=this.session.getState(this.getCursorPosition().row),_=this.$getSelectedRows();this.session.getMode().toggleCommentLines(y,this.session,_.first,_.last)},this.toggleBlockComment=function(){var y=this.getCursorPosition(),_=this.session.getState(y.row),x=this.getSelectionRange();this.session.getMode().toggleBlockComment(_,this.session,x,y)},this.getNumberAt=function(y,_){var x=/[\-]?[0-9]+(?:\.[0-9]+)?/g;x.lastIndex=0;for(var E=this.session.getLine(y);x.lastIndex<_;){var S=x.exec(E);if(S.index<=_&&S.index+S[0].length>=_){var C={value:S[0],start:S.index,end:S.index+S[0].length};return C}}return null},this.modifyNumber=function(y){var _=this.selection.getCursor().row,x=this.selection.getCursor().column,E=new u(_,x-1,_,x),S=this.session.getTextRange(E);if(!isNaN(parseFloat(S))&&isFinite(S)){var C=this.getNumberAt(_,x);if(C){var T=C.value.indexOf(".")>=0?C.start+C.value.indexOf(".")+1:C.end,R=C.start+C.value.length-T,W=parseFloat(C.value);W*=Math.pow(10,R),T!==C.end&&xZ+1)break;Z=se.last}for(L--,R=this.session.$moveLines(U,Z,_?0:y),_&&y==-1&&(Q=L+1);Q<=L;)T[Q].moveBy(R,0),Q++;_||(R=0),W+=R}S.fromOrientedRange(S.ranges[0]),S.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(y){return y=(y||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(y.start.row),last:this.session.getRowFoldEnd(y.end.row)}},this.onCompositionStart=function(y){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(y){this.renderer.setCompositionText(y)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(y){return y>=this.getFirstVisibleRow()&&y<=this.getLastVisibleRow()},this.isRowFullyVisible=function(y){return y>=this.renderer.getFirstFullyVisibleRow()&&y<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(y,_){var x=this.renderer,E=this.renderer.layerConfig,S=y*Math.floor(E.height/E.lineHeight);this.$blockScrolling++,_===!0?this.selection.$moveSelection(function(){this.moveCursorBy(S,0)}):_===!1&&(this.selection.moveCursorBy(S,0),this.selection.clearSelection()),this.$blockScrolling--;var C=x.scrollTop;x.scrollBy(0,S*E.lineHeight),_!=null&&x.scrollCursorIntoView(null,.5),x.animateScrolling(C)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(y){this.renderer.scrollToRow(y)},this.scrollToLine=function(y,_,x,E){this.renderer.scrollToLine(y,_,x,E)},this.centerSelection=function(){var y=this.getSelectionRange(),_={row:Math.floor(y.start.row+(y.end.row-y.start.row)/2),column:Math.floor(y.start.column+(y.end.column-y.start.column)/2)};this.renderer.alignCursor(_,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(y,_){this.selection.moveCursorTo(y,_)},this.moveCursorToPosition=function(y){this.selection.moveCursorToPosition(y)},this.jumpToMatching=function(y,_){var x=this.getCursorPosition(),E=new d(this.session,x.row,x.column),S=E.getCurrentToken(),C=S||E.stepForward();if(C){var T,R=!1,W={},j=x.column-C.start,L,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(C.value.match(/[{}()\[\]]/g)){for(;j=0;--C)this.$tryReplace(x[C],y)&&E++;return this.selection.setSelectionRange(S),this.$blockScrolling-=1,E},this.$tryReplace=function(y,_){var x=this.session.getTextRange(y);return _=this.$search.replace(x,_),_!==null?(y.end=this.session.replace(y,_),y):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(y,_,x){_||(_={}),typeof y=="string"||y instanceof RegExp?_.needle=y:typeof y=="object"&&g.mixin(_,y);var E=this.selection.getRange();_.needle==null&&(y=this.session.getTextRange(E)||this.$search.$options.needle,y||(E=this.session.getWordRange(E.start.row,E.start.column),y=this.session.getTextRange(E)),this.$search.set({needle:y})),this.$search.set(_),_.start||this.$search.set({start:E});var S=this.$search.find(this.session);if(_.preventScroll)return S;if(S)return this.revealRange(S,x),S;_.backwards?E.start=E.end:E.end=E.start,this.selection.setRange(E)},this.findNext=function(y,_){this.find({skipCurrent:!0,backwards:!1},y,_)},this.findPrevious=function(y,_){this.find(y,{skipCurrent:!0,backwards:!0},_)},this.revealRange=function(y,_){this.$blockScrolling+=1,this.session.unfold(y),this.selection.setSelectionRange(y),this.$blockScrolling-=1;var x=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(y.start,y.end,.5),_!==!1&&this.renderer.animateScrolling(x)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(y){if(y){var _,x=this,E=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var S=this.$scrollAnchor;S.style.cssText="position:absolute",this.container.insertBefore(S,this.container.firstChild);var C=this.on("changeSelection",function(){E=!0}),T=this.renderer.on("beforeRender",function(){E&&(_=x.renderer.container.getBoundingClientRect())}),R=this.renderer.on("afterRender",function(){if(E&&_&&(x.isFocused()||x.searchBox&&x.searchBox.isFocused())){var W=x.renderer,j=W.$cursorLayer.$pixelPos,L=W.layerConfig,Q=j.top-L.offset;j.top>=0&&Q+_.top<0?E=!0:j.topwindow.innerHeight?E=!1:E=null,E!=null&&(S.style.top=Q+"px",S.style.left=j.left+"px",S.style.height=L.lineHeight+"px",S.scrollIntoView(E)),E=_=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",C),this.renderer.off("afterRender",R),this.renderer.off("beforeRender",T))}}},this.$resetCursorStyle=function(){var y=this.$cursorStyle||"ace",_=this.renderer.$cursorLayer;_&&(_.setSmoothBlinking(/smooth/.test(y)),_.isBlinking=!this.$readOnly&&y!="wide",v.setCssClass(_.element,"ace_slim-cursors",/slim/.test(y)))}}).call(w.prototype),k.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(y){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:y})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(y){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(y){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(y){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(y){this.setAutoScrollEditorIntoView(y)}},keyboardHandler:{set:function(y){this.setKeyboardHandler(y)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),r.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(l,r,m){var g=function(){this.reset()};(function(){this.execute=function(i){var t=i.args[0];this.$doc=i.args[1],i.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(i){var t=this.$undoStack.pop(),s=null;return t&&(s=this.$doc.undoChanges(t,i),this.$redoStack.push(t),this.dirtyCounter--),s},this.redo=function(i){var t=this.$redoStack.pop(),s=null;return t&&(s=this.$doc.redoChanges(this.$deserializeDeltas(t),i),this.$undoStack.push(t),this.dirtyCounter++),s},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(i){return a(i,v)},this.$deserializeDeltas=function(i){return a(i,f)};function v(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines.length==1?null:i.lines,text:i.lines.length==1?i.lines[0]:null}}function f(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines||[i.text]}}function a(i,t){for(var s=new Array(i.length),o=0;ou&&(x=c.end.row+1,c=s.getNextFoldLine(x,c),u=c?c.start.row:1/0),x>e){for(;this.$cells.length>_+1;)y=this.$cells.pop(),this.element.removeChild(y.element);break}y=this.$cells[++_],y||(y={element:null,textNode:null,foldWidget:null},y.element=g.createElement("div"),y.textNode=document.createTextNode(""),y.element.appendChild(y.textNode),this.element.appendChild(y.element),this.$cells[_]=y);var E="ace_gutter-cell ";b[x]&&(E+=b[x]),p[x]&&(E+=p[x]),this.$annotations[x]&&(E+=this.$annotations[x].className),y.element.className!=E&&(y.element.className=E);var S=s.getRowLength(x)*t.lineHeight+"px";if(S!=y.element.style.height&&(y.element.style.height=S),h){var C=h[x];C==null&&(C=h[x]=s.getFoldWidget(x))}if(C){y.foldWidget||(y.foldWidget=g.createElement("span"),y.element.appendChild(y.foldWidget));var E="ace_fold-widget ace_"+C;C=="start"&&x==u&&xo.right-s.right)return"foldWidgets"}}).call(i.prototype),r.Gutter=i});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(l,r,m){var g=l("../range").Range,v=l("../lib/dom"),f=function(a){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(i){this.$padding=i},this.setSession=function(i){this.session=i},this.setMarkers=function(i){this.markers=i},this.update=function(i){if(i){this.config=i;var t=[];for(var s in this.markers){var o=this.markers[s];if(!o.range){o.update(t,this,this.session,i);continue}var e=o.range.clipRows(i.firstRow,i.lastRow);if(!e.isEmpty())if(e=e.toScreenRange(this.session),o.renderer){var c=this.$getTop(e.start.row,i),u=this.$padding+(this.session.$bidiHandler.isBidiRow(e.start.row)?this.session.$bidiHandler.getPosLeft(e.start.column):e.start.column*i.characterWidth);o.renderer(t,e,u,c,i)}else o.type=="fullLine"?this.drawFullLineMarker(t,e,o.clazz,i):o.type=="screenLine"?this.drawScreenLineMarker(t,e,o.clazz,i):e.isMultiLine()?o.type=="text"?this.drawTextMarker(t,e,o.clazz,i):this.drawMultiLineMarker(t,e,o.clazz,i):this.session.$bidiHandler.isBidiRow(e.start.row)?this.drawBidiSingleLineMarker(t,e,o.clazz+" ace_start ace_br15",i):this.drawSingleLineMarker(t,e,o.clazz+" ace_start ace_br15",i)}this.element.innerHTML=t.join("")}},this.$getTop=function(i,t){return(i-t.firstRowScreen)*t.lineHeight};function a(i,t,s,o){return(i?1:0)|(t?2:0)|(s?4:0)|(o?8:0)}this.drawTextMarker=function(i,t,s,o,e){for(var c=this.session,u=t.start.row,h=t.end.row,b=u,p=0,k=0,d=c.getScreenLastRowColumn(b),w=null,y=new g(b,t.start.column,b,k);b<=h;b++)y.start.row=y.end.row=b,y.start.column=b==u?t.start.column:c.getRowWrapIndent(b),y.end.column=d,p=k,k=d,d=b+1d,b==h),this.session.$bidiHandler.isBidiRow(b)?this.drawBidiSingleLineMarker(i,y,w,o,b==h?0:1,e):this.drawSingleLineMarker(i,y,w,o,b==h?0:1,e)},this.drawMultiLineMarker=function(i,t,s,o,e){var c=this.$padding,u,h,b;if(e=e||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var p=t.clone();p.end.row=p.start.row,p.end.column=this.session.getLine(p.start.row).length,this.drawBidiSingleLineMarker(i,p,s+" ace_br1 ace_start",o,null,e)}else u=o.lineHeight,h=this.$getTop(t.start.row,o),b=c+t.start.column*o.characterWidth,i.push("
");if(this.session.$bidiHandler.isBidiRow(t.end.row)){var p=t.clone();p.start.row=p.end.row,p.start.column=0,this.drawBidiSingleLineMarker(i,p,s+" ace_br12",o,null,e)}else{var k=t.end.column*o.characterWidth;u=o.lineHeight,h=this.$getTop(t.end.row,o),i.push("
")}if(u=(t.end.row-t.start.row-1)*o.lineHeight,!(u<=0)){h=this.$getTop(t.start.row+1,o);var d=(t.start.column?1:0)|(t.end.column?0:8);i.push("
")}},this.drawSingleLineMarker=function(i,t,s,o,e,c){var u=o.lineHeight,h=(t.end.column+(e||0)-t.start.column)*o.characterWidth,b=this.$getTop(t.start.row,o),p=this.$padding+t.start.column*o.characterWidth;i.push("
")},this.drawBidiSingleLineMarker=function(i,t,s,o,e,c){var u=o.lineHeight,h=this.$getTop(t.start.row,o),b=this.$padding,p=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);p.forEach(function(k){i.push("
")})},this.drawFullLineMarker=function(i,t,s,o,e){var c=this.$getTop(t.start.row,o),u=o.lineHeight;t.start.row!=t.end.row&&(u+=this.$getTop(t.end.row,o)-c),i.push("
")},this.drawScreenLineMarker=function(i,t,s,o,e){var c=this.$getTop(t.start.row,o),u=o.lineHeight;i.push("
")}}).call(f.prototype),r.Marker=f});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(l,r,m){var g=l("../lib/oop"),v=l("../lib/dom"),f=l("../lib/lang");l("../lib/useragent");var a=l("../lib/event_emitter").EventEmitter,i=function(t){this.element=v.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){g.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var t=this.session.doc.getNewLineCharacter()==` -`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(t){this.$padding=t,this.element.style.padding="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",(function(s){this._signal("changeCharacterSize",s)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){this.session=t,t&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(t){return this.showInvisibles==t?!1:(this.showInvisibles=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides==t?!1:(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var s=this.$tabStrings=[0],o=1;o"+f.stringRepeat(this.TAB_CHAR,o)+""):s.push(f.stringRepeat(" ",o));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var e="ace_indent-guide",c="",u="";if(this.showInvisibles){e+=" ace_invisible",c=" ace_invisible_space",u=" ace_invisible_tab";var h=f.stringRepeat(this.SPACE_CHAR,this.tabSize),b=f.stringRepeat(this.TAB_CHAR,this.tabSize)}else var h=f.stringRepeat(" ",this.tabSize),b=h;this.$tabStrings[" "]=""+h+"",this.$tabStrings[" "]=""+b+""}},this.updateLines=function(t,s,o){(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)&&this.scrollLines(t),this.config=t;for(var e=Math.max(s,t.firstRow),c=Math.min(o,t.lastRow),u=this.element.childNodes,h=0,b=t.firstRow;bk&&(b=p.end.row+1,p=this.session.getNextFoldLine(b,p),k=p?p.start.row:1/0),!(b>c);){var d=u[h++];if(d){var w=[];this.$renderLine(w,b,!this.$useLineGroups(),b==k?p:!1),d.style.height=t.lineHeight*this.session.getRowLength(b)+"px",d.innerHTML=w.join("")}b++}},this.scrollLines=function(t){var s=this.config;if(this.config=t,!s||s.lastRow0;e--)o.removeChild(o.firstChild);if(s.lastRow>t.lastRow)for(var e=this.session.getFoldedRowCount(t.lastRow+1,s.lastRow);e>0;e--)o.removeChild(o.lastChild);if(t.firstRows.lastRow){var c=this.$renderLinesFragment(t,s.lastRow+1,t.lastRow);o.appendChild(c)}},this.$renderLinesFragment=function(t,s,o){for(var e=this.element.ownerDocument.createDocumentFragment(),c=s,u=this.session.getNextFoldLine(c),h=u?u.start.row:1/0;c>h&&(c=u.end.row+1,u=this.session.getNextFoldLine(c,u),h=u?u.start.row:1/0),!(c>o);){var b=v.createElement("div"),p=[];if(this.$renderLine(p,c,!1,c==h?u:!1),b.innerHTML=p.join(""),this.$useLineGroups())b.className="ace_line_group",e.appendChild(b),b.style.height=t.lineHeight*this.session.getRowLength(c)+"px";else for(;b.firstChild;)e.appendChild(b.firstChild);c++}return e},this.update=function(t){this.config=t;for(var s=[],o=t.firstRow,e=t.lastRow,c=o,u=this.session.getNextFoldLine(c),h=u?u.start.row:1/0;c>h&&(c=u.end.row+1,u=this.session.getNextFoldLine(c,u),h=u?u.start.row:1/0),!(c>e);)this.$useLineGroups()&&s.push("
"),this.$renderLine(s,c,!1,c==h?u:!1),this.$useLineGroups()&&s.push("
"),c++;this.element.innerHTML=s.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(t,s,o,e){var c=this,u=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=function(d,w,y,_,x){if(w)return c.showInvisibles?""+f.stringRepeat(c.SPACE_CHAR,d.length)+"":d;if(d=="&")return"&";if(d=="<")return"<";if(d==">")return">";if(d==" "){var E=c.session.getScreenTabSize(s+_);return s+=E-1,c.$tabStrings[E]}else if(d==" "){var S=c.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",C=c.showInvisibles?c.SPACE_CHAR:"";return s+=1,""+C+""}else return y?""+c.SPACE_CHAR+"":(s+=1,""+d+"")},b=e.replace(u,h);if(this.$textToken[o.type])t.push(b);else{var p="ace_"+o.type.replace(/\./g," ace_"),k="";o.type=="fold"&&(k=" style='width:"+o.value.length*this.config.characterWidth+"px;' "),t.push("",b,"")}return s+e.length},this.renderIndentGuide=function(t,s,o){var e=s.search(this.$indentGuideRe);return e<=0||e>=o?s:s[0]==" "?(e-=e%this.tabSize,t.push(f.stringRepeat(this.$tabStrings[" "],e/this.tabSize)),s.substr(e)):s[0]==" "?(t.push(f.stringRepeat(this.$tabStrings[" "],e)),s.substr(e)):s},this.$renderWrappedLine=function(t,s,o,e){for(var c=0,u=0,h=o[0],b=0,p=0;p=h;)b=this.$renderToken(t,b,k,d.substring(0,h-c)),d=d.substring(h-c),c=h,e||t.push("","
"),t.push(f.stringRepeat(" ",o.indent)),u++,b=0,h=o[u]||Number.MAX_VALUE;d.length!=0&&(c+=d.length,b=this.$renderToken(t,b,k,d))}}},this.$renderSimpleLine=function(t,s){var o=0,e=s[0],c=e.value;this.displayIndentGuides&&(c=this.renderIndentGuide(t,c)),c&&(o=this.$renderToken(t,o,e,c));for(var u=1;u"),c.length){var u=this.session.getRowSplitData(s);u&&u.length?this.$renderWrappedLine(t,c,u,o):this.$renderSimpleLine(t,c)}this.showInvisibles&&(e&&(s=e.end.row),t.push("",s==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),o||t.push("
")},this.$getFoldLineTokens=function(t,s){var o=this.session,e=[];function c(h,b,p){for(var k=0,d=0;d+h[k].value.lengthp-b&&(w=w.substring(0,p-b)),e.push({type:h[k].type,value:w}),d=b+w.length,k+=1}for(;dp?e.push({type:h[k].type,value:w.substring(0,p-d)}):e.push(h[k]),d+=w.length,k+=1}}var u=o.getTokens(t);return s.walk(function(h,b,p,k,d){h!=null?e.push({type:"fold",value:h}):(d&&(u=o.getTokens(b)),u.length&&c(u,k,p))},s.end.row,this.session.getLine(s.end.row).length),e},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(i.prototype),r.Text=i});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(l,r,m){var g=l("../lib/dom"),v,f=function(a){this.element=g.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),v===void 0&&(v=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),g.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(v?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(a){for(var i=this.cursors,t=i.length;t--;)i[t].style.visibility=a?"":"hidden"},this.$updateOpacity=function(a){for(var i=this.cursors,t=i.length;t--;)i[t].style.opacity=a?"":"0"},this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},this.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},this.setSmoothBlinking=function(a){a!=this.smoothBlinking&&!v&&(this.smoothBlinking=a,g.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var a=g.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},this.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},this.hideCursor=function(){this.isVisible=!1,g.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,g.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&g.removeCssClass(this.element,"ace_smooth-blinking"),a(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout((function(){g.addCssClass(this.element,"ace_smooth-blinking")}).bind(this));var i=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),i()},this.blinkInterval),i()}},this.getPixelPosition=function(a,i){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var t=this.session.documentToScreenPosition(a),s=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,a.row)?this.session.$bidiHandler.getPosLeft(t.column):t.column*this.config.characterWidth),o=(t.row-(i?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:o}},this.update=function(a){this.config=a;var i=this.session.$selectionMarkers,t=0,s=0;(i===void 0||i.length===0)&&(i=[{cursor:null}]);for(var t=0,o=i.length;ta.height+a.offset||e.top<0)&&t>1)){var c=(this.cursors[s++]||this.addCursor()).style;this.drawCursor?this.drawCursor(c,e,a,i[t],this.session):(c.left=e.left+"px",c.top=e.top+"px",c.width=a.characterWidth+"px",c.height=a.lineHeight+"px")}}for(;this.cursors.length>s;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=e,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?g.addCssClass(this.element,"ace_overwrite-cursors"):g.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(f.prototype),r.Cursor=f});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(l,r,m){var g=l("./lib/oop"),v=l("./lib/dom"),f=l("./lib/event"),a=l("./lib/event_emitter").EventEmitter,i=32768,t=function(e){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addListener(this.element,"scroll",this.onScroll.bind(this)),f.addListener(this.element,"mousedown",f.preventDefault)};(function(){g.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(t.prototype);var s=function(e,c){t.call(this,e),this.scrollTop=0,this.scrollHeight=0,c.$scrollbarWidth=this.width=v.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};g.inherits(s,t),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>i?(this.coeff=i/e,e=i):this.coeff!=1&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}).call(s.prototype);var o=function(e,c){t.call(this,e),this.scrollLeft=0,this.height=c.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};g.inherits(o,t),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}).call(o.prototype),r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=o,r.VScrollBar=s,r.HScrollBar=o});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(l,r,m){var g=l("./lib/event"),v=function(f,a){this.onRender=f,this.pending=!1,this.changes=0,this.window=a||window};(function(){this.schedule=function(f){if(this.changes=this.changes|f,!this.pending&&this.changes){this.pending=!0;var a=this;g.nextFrame(function(){a.pending=!1;for(var i;i=a.changes;)a.changes=0,a.onRender(i)},this.window)}}}).call(v.prototype),r.RenderLoop=v});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(l,r,m){var g=l("../lib/oop"),v=l("../lib/dom"),f=l("../lib/lang"),a=l("../lib/useragent"),i=l("../lib/event_emitter").EventEmitter,t=0,s=r.FontMetrics=function(o){this.el=v.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=v.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=v.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),o.appendChild(this.el),t||this.$testFractionalRect(),this.$measureNode.innerHTML=f.stringRepeat("X",t),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){g.implement(this,i),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var o=v.createElement("div");this.$setMeasureNodeStyles(o.style),o.style.width="0.2px",document.documentElement.appendChild(o);var e=o.getBoundingClientRect().width;e>0&&e<1?t=50:t=100,o.parentNode.removeChild(o)},this.$setMeasureNodeStyles=function(o,e){o.width=o.height="auto",o.left=o.top="0px",o.visibility="hidden",o.position="absolute",o.whiteSpace="pre",a.isIE<8?o["font-family"]="inherit":o.font="inherit",o.overflow=e?"hidden":"visible"},this.checkForSizeChanges=function(){var o=this.$measureSizes();if(o&&(this.$characterSize.width!==o.width||this.$characterSize.height!==o.height)){this.$measureNode.style.fontWeight="bold";var e=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=o,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===o.width&&e.height===o.height,this._emit("changeCharacterSize",{data:o})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var o=this;return this.$pollSizeChangesTimer=setInterval(function(){o.checkForSizeChanges()},500)},this.setPolling=function(o){o?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(t===50){var o=null;try{o=this.$measureNode.getBoundingClientRect()}catch{o={width:0,height:0}}var e={height:o.height,width:o.width/t}}else var e={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/t};return e.width===0||e.height===0?null:e},this.$measureCharWidth=function(o){this.$main.innerHTML=f.stringRepeat(o,t);var e=this.$main.getBoundingClientRect();return e.width/t},this.getCharacterWidth=function(o){var e=this.charSizes[o];return e===void 0&&(e=this.charSizes[o]=this.$measureCharWidth(o)/this.$characterSize.width),e},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(s.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(l,r,m){var g=l("./lib/oop"),v=l("./lib/dom"),f=l("./config"),a=l("./lib/useragent"),i=l("./layer/gutter").Gutter,t=l("./layer/marker").Marker,s=l("./layer/text").Text,o=l("./layer/cursor").Cursor,e=l("./scrollbar").HScrollBar,c=l("./scrollbar").VScrollBar,u=l("./renderloop").RenderLoop,h=l("./layer/font_metrics").FontMetrics,b=l("./lib/event_emitter").EventEmitter,p=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;v.importCssString(p,"ace_editor.css");var k=function(d,w){var y=this;this.container=d||v.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,v.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=v.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=v.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=v.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new i(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var _=this.$textLayer=new s(this.content);this.canvas=_.element,this.$markerFront=new t(this.content),this.$cursorLayer=new o(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.addEventListener("scroll",function(x){y.$scrollAnimation||y.session.setScrollTop(x.data-y.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(x){y.$scrollAnimation||y.session.setScrollLeft(x.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(x){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",x)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new u(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),f.resetOptions(this),f._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,g.implement(this,b),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(d){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=d,d&&this.scrollMargin.top&&d.getScrollTop()<=0&&d.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(d),this.$markerBack.setSession(d),this.$markerFront.setSession(d),this.$gutterLayer.setSession(d),this.$textLayer.setSession(d),d&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(d,w,y){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>d&&(this.$changedLines.firstRow=d),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(d){d?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(d,w,y,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=d?1:0;var x=this.container;_||(_=x.clientHeight||x.scrollHeight),y||(y=x.clientWidth||x.scrollWidth);var E=this.$updateCachedSize(d,w,y,_);if(!this.$size.scrollerHeight||!y&&!_)return this.resizing=0;d&&(this.$gutterLayer.$padding=null),d?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(d,w,y,_){_-=this.$extraHeight||0;var x=0,E=this.$size,S={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};return _&&(d||E.height!=_)&&(E.height=_,x|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x=x|this.CHANGE_SCROLL),y&&(d||E.width!=y)&&(x|=this.CHANGE_SIZE,E.width=y,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",E.scrollerWidth=Math.max(0,y-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||d)&&(x|=this.CHANGE_FULL)),E.$dirty=!y||!_,x&&this._signal("resize",S),x},this.onGutterResize=function(){var d=this.$showGutter?this.$gutter.offsetWidth:0;d!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,d,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var d=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(d/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(d){this.setOption("animatedScroll",d)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(d){this.setOption("showInvisibles",d),this.session.$bidiHandler.setShowInvisibles(d)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(d){this.setOption("displayIndentGuides",d)},this.setShowPrintMargin=function(d){this.setOption("showPrintMargin",d)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(d){this.setOption("printMarginColumn",d)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(d){return this.setOption("showGutter",d)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(d){this.setOption("fadeFoldWidgets",d)},this.setHighlightGutterLine=function(d){this.setOption("highlightGutterLine",d)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var d=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var y=this.session.selection.getCursor();y.column=0,d=this.$cursorLayer.getPixelPosition(y,!0),w*=this.session.getRowLength(y.row)}this.$gutterLineHighlight.style.top=d.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var d=v.createElement("div");d.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",d.appendChild(this.$printMarginEl),this.content.insertBefore(d,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var d=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,y=this.$cursorLayer.$pixelPos.left;w-=d.offset;var _=this.textarea.style,x=this.lineHeight;if(w<0||w>d.height-x){_.top=_.left="0";return}var E=this.characterWidth;if(this.$composition){var S=this.textarea.value.replace(/^\x01+/,"");E*=this.session.$getStringScreenWidth(S)[0]+2,x+=2}y-=this.scrollLeft,y>this.$size.scrollerWidth-E&&(y=this.$size.scrollerWidth-E),y+=this.gutterWidth,_.height=x+"px",_.width=E+"px",_.left=Math.min(y,this.$size.scrollerWidth-E)+"px",_.top=Math.min(w,this.$size.height-x)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var d=this.layerConfig,w=d.lastRow,y=this.session.documentToScreenRow(w,0)*d.lineHeight;return y-this.session.getScrollTop()>d.height-d.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(d){this.$padding=d,this.$textLayer.setPadding(d),this.$cursorLayer.setPadding(d),this.$markerFront.setPadding(d),this.$markerBack.setPadding(d),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(d,w,y,_){var x=this.scrollMargin;x.top=d|0,x.bottom=w|0,x.right=_|0,x.left=y|0,x.v=x.top+x.bottom,x.h=x.left+x.right,x.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-x.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(d){this.setOption("hScrollBarAlwaysVisible",d)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(d){this.setOption("vScrollBarAlwaysVisible",d)},this.$updateScrollBarV=function(){var d=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(d-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>d-w&&(d=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(d+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(d,w){if(this.$changes&&(d|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!d&&!w){this.$changes|=d;return}if(this.$size.$dirty)return this.$changes|=d,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(d&this.CHANGE_FULL||d&this.CHANGE_SIZE||d&this.CHANGE_TEXT||d&this.CHANGE_LINES||d&this.CHANGE_SCROLL||d&this.CHANGE_H_SCROLL){if(d|=this.$computeLayerConfig(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(y.firstRow-this.layerConfig.firstRow)*this.lineHeight;_>0&&(this.scrollTop=_,d=d|this.CHANGE_SCROLL,d|=this.$computeLayerConfig())}y=this.layerConfig,this.$updateScrollBarV(),d&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-y.offset+"px",this.content.style.marginTop=-y.offset+"px",this.content.style.width=y.width+2*this.$padding+"px",this.content.style.height=y.minHeight+"px"}if(d&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),d&this.CHANGE_FULL){this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(d&this.CHANGE_SCROLL){d&this.CHANGE_TEXT||d&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&this.$gutterLayer.update(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}d&this.CHANGE_TEXT?(this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y)):d&this.CHANGE_LINES?(this.$updateLines()||d&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y):(d&this.CHANGE_TEXT||d&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(y),d&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),d&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),d&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender")},this.$autosize=function(){var d=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,y=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,d))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var _=d>w;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var x=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,x,y),this.desiredHeight=y,this._signal("autosize")}},this.$computeLayerConfig=function(){var d=this.session,w=this.$size,y=w.height<=2*this.lineHeight,_=this.session.getScreenLength(),x=_*this.lineHeight,E=this.$getLongestLine(),S=!y&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-E-2*this.$padding<0),C=this.$horizScroll!==S;C&&(this.$horizScroll=S,this.scrollBarH.setVisible(S));var T=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var R=this.scrollTop%this.lineHeight,W=w.scrollerHeight+this.lineHeight,j=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=j;var L=this.scrollMargin;this.session.setScrollTop(Math.max(-L.top,Math.min(this.scrollTop,x-w.scrollerHeight+L.bottom))),this.session.setScrollLeft(Math.max(-L.left,Math.min(this.scrollLeft,E+2*this.$padding-w.scrollerWidth+L.right)));var Q=!y&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-x+j<0||this.scrollTop>L.top),U=T!==Q;U&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q));var Z=Math.ceil(W/this.lineHeight)-1,se=Math.max(0,Math.round((this.scrollTop-R)/this.lineHeight)),te=se+Z,$,P,A=this.lineHeight;se=d.screenToDocumentRow(se,0);var O=d.getFoldLine(se);O&&(se=O.start.row),$=d.documentToScreenRow(se,0),P=d.getRowLength(se)*A,te=Math.min(d.screenToDocumentRow(te,0),d.getLength()-1),W=w.scrollerHeight+d.getRowLength(te)*A+P,R=this.scrollTop-$*A;var z=0;return this.layerConfig.width!=E&&(z=this.CHANGE_H_SCROLL),(C||U)&&(z=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),U&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:se,firstRowScreen:$,lastRow:te,lineHeight:A,characterWidth:this.characterWidth,minHeight:W,maxHeight:x,offset:R,gutterOffset:A?Math.max(0,Math.ceil((R+w.height-w.scrollerHeight)/A)):0,height:this.$size.scrollerHeight},z},this.$updateLines=function(){if(this.$changedLines){var d=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(d>y.lastRow+1)&&!(wE?(w&&T+S>E+this.lineHeight&&(E-=w*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):T+this.$size.scrollerHeight-Cx?(x=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||d<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||d>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=d+this.scrollLeft-y.left-this.$padding,x=_/this.characterWidth,E=Math.floor((w+this.scrollTop-y.top)/this.lineHeight),S=Math.round(x);return{row:E,column:S,side:x-S>0?1:-1,offsetX:_}},this.screenToTextCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=d+this.scrollLeft-y.left-this.$padding,x=Math.round(_/this.characterWidth),E=(w+this.scrollTop-y.top)/this.lineHeight;return this.session.screenToDocumentPosition(E,Math.max(x,0),_)},this.textToScreenCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(d,w),x=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,d)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),E=_.row*this.lineHeight;return{pageX:y.left+x-this.scrollLeft,pageY:y.top+E-this.scrollTop}},this.visualizeFocus=function(){v.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){v.removeCssClass(this.container,"ace_focus")},this.showComposition=function(d){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(d){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(v.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(d,w){var y=this;if(this.$themeId=d,y._dispatchEvent("themeChange",{theme:d}),!d||typeof d=="string"){var _=d||this.$options.theme.initialValue;f.loadModule(["theme",_],x)}else x(d);function x(E){if(y.$themeId!=d)return w&&w();if(!E||!E.cssClass)throw new Error("couldn't load module "+d+" or it didn't call define");v.importCssString(E.cssText,E.cssClass,y.container.ownerDocument),y.theme&&v.removeCssClass(y.container,y.theme.cssClass);var S="padding"in E?E.padding:"padding"in(y.theme||{})?4:y.$padding;y.$padding&&S!=y.$padding&&y.setPadding(S),y.$theme=E.cssClass,y.theme=E,v.addCssClass(y.container,E.cssClass),v.setCssClass(y.container,"ace_dark",E.isDark),y.$size&&(y.$size.width=0,y.$updateSizeAsync()),y._dispatchEvent("themeLoaded",{theme:E}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(d,w){v.setCssClass(this.container,d,w!==!1)},this.unsetStyle=function(d){v.removeCssClass(this.container,d)},this.setCursorStyle=function(d){this.scroller.style.cursor!=d&&(this.scroller.style.cursor=d)},this.setMouseCursor=function(d){this.scroller.style.cursor=d},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(k.prototype),f.defineOptions(k.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(d){this.$textLayer.setShowInvisibles(d)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(d){typeof d=="number"&&(this.$printMarginColumn=d),this.$showPrintMargin=!!d,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(d){this.$gutter.style.display=d?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(d){v.setCssClass(this.$gutter,"ace_fade-fold-widgets",d)},initialValue:!1},showFoldWidgets:{set:function(d){this.$gutterLayer.setShowFoldWidgets(d)},initialValue:!0},showLineNumbers:{set:function(d){this.$gutterLayer.setShowLineNumbers(d),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(d){this.$textLayer.setDisplayIndentGuides(d)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(d){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=v.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=d?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(d){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(d){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(d){typeof d=="number"&&(d=d+"px"),this.container.style.fontSize=d,this.updateFontSize()},initialValue:12},fontFamily:{set:function(d){this.container.style.fontFamily=d,this.updateFontSize()}},maxLines:{set:function(d){this.updateFull()}},minLines:{set:function(d){this.updateFull()}},maxPixelHeight:{set:function(d){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(d){d=+d||0,this.$scrollPastEnd!=d&&(this.$scrollPastEnd=d,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(d){this.$gutterLayer.$fixedWidth=!!d,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(d){this.setTheme(d)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),r.VirtualRenderer=k});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(l,r,m){var g=l("../lib/oop"),v=l("../lib/net"),f=l("../lib/event_emitter").EventEmitter,a=l("../config");function i(e,c){var u=c.src;""+v.qualifyURL(e);try{return new Blob([u],{type:"application/javascript"})}catch{var h=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,b=new h;return b.append(u),b.getBlob("application/javascript")}}function t(e,c){var u=i(e,c),h=window.URL||window.webkitURL,b=h.createObjectURL(u);return new Worker(b)}var s=function(e,c,u,h,b){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),l.nameToUrl&&!l.toUrl&&(l.toUrl=l.nameToUrl),a.get("packaged")||!l.toUrl)h=h||a.moduleUrl(c.id,"worker");else{var p=this.$normalizePath;h=h||p(l.toUrl("ace/worker/worker.js",null,"_"));var k={};e.forEach(function(d){k[d]=p(l.toUrl(d,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=t(h,c),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:k,module:c.id,classname:u}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){g.implement(this,f),this.onMessage=function(e){var c=e.data;switch(c.type){case"event":this._signal(c.name,{data:c.data});break;case"call":var u=this.callbacks[c.id];u&&(u(c.data),delete this.callbacks[c.id]);break;case"error":this.reportError(c.data);break;case"log":window.console&&console.log&&console.log.apply(console,c.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return v.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,c){this.$worker.postMessage({command:e,args:c})},this.call=function(e,c,u){if(u){var h=this.callbackId++;this.callbacks[h]=u,c.push(h)}this.send(e,c)},this.emit=function(e,c){try{this.$worker.postMessage({event:e,data:{data:c.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),e.action=="insert"?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(s.prototype);var o=function(e,c,u){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var h=null,b=!1,p=Object.create(f),k=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){k.messageBuffer.push(w),h&&(b?setTimeout(d):d())},this.setEmitSync=function(w){b=w};var d=function(){var w=k.messageBuffer.shift();w.command?h[w.command].apply(h,w.args):w.event&&p._signal(w.event,w.data)};p.postMessage=function(w){k.onMessage({data:w})},p.callback=function(w,y){this.postMessage({type:"call",id:y,data:w})},p.emit=function(w,y){this.postMessage({type:"event",name:w,data:y})},a.loadModule(["worker",c],function(w){for(h=new w[u](p);k.messageBuffer.length;)d()})};o.prototype=s.prototype,r.UIWorkerClient=o,r.WorkerClient=s,r.createWorker=t});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(l,r,m){var g=l("./range").Range,v=l("./lib/event_emitter").EventEmitter,f=l("./lib/oop"),a=function(i,t,s,o,e,c){var u=this;this.length=t,this.session=i,this.doc=i.getDocument(),this.mainClass=e,this.othersClass=c,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=o,this.$onCursorChange=function(){setTimeout(function(){u.onCursorChange()})},this.$pos=s;var h=i.getUndoManager().$undoStack||i.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=h.length,this.setup(),i.selection.on("changeCursor",this.$onCursorChange)};(function(){f.implement(this,v),this.setup=function(){var i=this,t=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=s.addMarker(new g(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var c=t.createAnchor(e.row,e.column);c.$insertRight=!0,c.detach(),i.others.push(c)}),s.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,t=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=i.addMarker(new g(s.row,s.column,s.row,s.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var i=0;i=this.pos.column&&t.start.column<=this.pos.column+this.length+1,e=t.start.column-this.pos.column;if(this.updateAnchors(i),o&&(this.length+=s),o&&!this.session.$fromUndo){if(i.action==="insert")for(var c=this.others.length-1;c>=0;c--){var u=this.others[c],h={row:u.row,column:u.column+e};this.doc.insertMergedLines(h,i.lines)}else if(i.action==="remove")for(var c=this.others.length-1;c>=0;c--){var u=this.others[c],h={row:u.row,column:u.column+e};this.doc.remove(new g(h.row,h.column,h.row,h.column-s))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(i){this.pos.onChange(i);for(var t=this.others.length;t--;)this.others[t].onChange(i);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,t=this.session,s=function(e,c){t.removeMarker(e.markerId),e.markerId=t.addMarker(new g(e.row,e.column,e.row,e.column+i.length),c,null,!1)};s(this.pos,this.mainClass);for(var o=this.others.length;o--;)s(this.others[o],this.othersClass)}},this.onCursorChange=function(i){if(!(this.$updating||!this.session)){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",i)):(this.hideOtherMarkers(),this._emit("cursorLeave",i))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var i=this.session.getUndoManager(),t=(i.$undoStack||i.$undostack).length-this.$undoStackDepth,s=0;s1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(d)}},this.toSingleRange=function(d){d=d||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),d&&this.fromOrientedRange(d)},this.substractPoint=function(d){var w=this.rangeList.substractPoint(d);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var d=this.rangeList.merge();d.length?this.$onRemoveRange(d):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(d){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(d),this._signal("addRange",{range:d})},this.$onRemoveRange=function(d){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();d.push(w),this.rangeCount=0}for(var y=d.length;y--;){var _=this.ranges.indexOf(d[y]);this.ranges.splice(_,1)}this._signal("removeRange",{ranges:d}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new g,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var d=this.rangeList.ranges,w=d[d.length-1],y=v.fromPoints(d[0].start,w.end);this.toSingleRange(),this.setSelectionRange(y,w.cursor==w.start)}else{var y=this.getRange(),_=this.isBackwards(),x=y.start.row,E=y.end.row;if(x==E){if(_)var S=y.end,C=y.start;else var S=y.start,C=y.end;this.addRange(v.fromPoints(C,C)),this.addRange(v.fromPoints(S,S));return}var T=[],R=this.getLineRange(x,!0);R.start.column=y.start.column,T.push(R);for(var W=x+1;W1){var d=this.rangeList.ranges,w=d[d.length-1],y=v.fromPoints(d[0].start,w.end);this.toSingleRange(),this.setSelectionRange(y,w.cursor==w.start)}else{var _=this.session.documentToScreenPosition(this.selectionLead),x=this.session.documentToScreenPosition(this.selectionAnchor),E=this.rectangularRangeBlock(_,x);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(d,w,y){var _=[],x=d.column0;)Z--;if(Z>0)for(var se=0;_[se].isEmpty();)se++;for(var te=Z;te>=se;te--)_[te].isEmpty()&&_.splice(te,1)}return _}}).call(f.prototype);var h=l("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(d){d.cursor||(d.cursor=d.end);var w=this.getSelectionStyle();return d.marker=this.session.addMarker(d,"ace_selection",w),this.session.$selectionMarkers.push(d),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,d},this.removeSelectionMarker=function(d){if(d.marker){this.session.removeMarker(d.marker);var w=this.session.$selectionMarkers.indexOf(d);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(d){for(var w=this.session.$selectionMarkers,y=d.length;y--;){var _=d[y];if(_.marker){this.session.removeMarker(_.marker);var x=w.indexOf(_);x!=-1&&w.splice(x,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(d){this.addSelectionMarker(d.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(d){this.removeSelectionMarkers(d.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(d){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(d){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(d){var w=d.command,y=d.editor;if(y.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?_=y.forEachSelection(w,d.args):w.multiSelectAction=="forEachLine"?_=y.forEachSelection(w,d.args,!0):w.multiSelectAction=="single"?(y.exitMultiSelectMode(),_=w.exec(y,d.args||{})):_=w.multiSelectAction(y,d.args||{});else{var _=w.exec(y,d.args||{});y.multiSelect.addRange(y.multiSelect.toOrientedRange()),y.multiSelect.mergeOverlappingRanges()}return _}},this.forEachSelection=function(d,w,y){if(!this.inVirtualSelectionMode){var _=y&&y.keepOrder,x=y==!0||y&&y.$byLines,E=this.session,S=this.selection,C=S.rangeList,T=(_?S:C).ranges,R;if(!T.length)return d.exec?d.exec(this,w||{}):d(this,w||{});var W=S._eventRegistry;S._eventRegistry={};var j=new f(E);this.inVirtualSelectionMode=!0;for(var L=T.length;L--;){if(x)for(;L>0&&T[L].start.row==T[L-1].end.row;)L--;j.fromOrientedRange(T[L]),j.index=L,this.selection=E.selection=j;var Q=d.exec?d.exec(this,w||{}):d(this,w||{});!R&&Q!==void 0&&(R=Q),j.toOrientedRange(T[L])}j.detach(),this.selection=E.selection=S,this.inVirtualSelectionMode=!1,S._eventRegistry=W,S.mergeOverlappingRanges();var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),R}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var d="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,y=[],_=0;_0);S<0&&(S=0),C>=R&&(C=R-1)}var j=this.session.removeFullLines(S,C);j=this.$reAlignText(j,T),this.session.insert({row:S,column:0},j.join(` +`),this.moveCursorToPosition(y)},this.transposeLetters=function(){if(this.selection.isEmpty()){var y=this.getCursorPosition(),_=y.column;if(_!==0){var x=this.session.getLine(y.row),E,S;_R.toLowerCase()?1:0});for(var S=new u(0,0,0,0),E=y.first;E<=y.last;E++){var C=_.getLine(E);S.start.row=E,S.end.row=E,S.end.column=C.length,_.replace(S,x[E-y.first])}},this.toggleCommentLines=function(){var y=this.session.getState(this.getCursorPosition().row),_=this.$getSelectedRows();this.session.getMode().toggleCommentLines(y,this.session,_.first,_.last)},this.toggleBlockComment=function(){var y=this.getCursorPosition(),_=this.session.getState(y.row),x=this.getSelectionRange();this.session.getMode().toggleBlockComment(_,this.session,x,y)},this.getNumberAt=function(y,_){var x=/[\-]?[0-9]+(?:\.[0-9]+)?/g;x.lastIndex=0;for(var E=this.session.getLine(y);x.lastIndex<_;){var S=x.exec(E);if(S.index<=_&&S.index+S[0].length>=_){var C={value:S[0],start:S.index,end:S.index+S[0].length};return C}}return null},this.modifyNumber=function(y){var _=this.selection.getCursor().row,x=this.selection.getCursor().column,E=new u(_,x-1,_,x),S=this.session.getTextRange(E);if(!isNaN(parseFloat(S))&&isFinite(S)){var C=this.getNumberAt(_,x);if(C){var T=C.value.indexOf(".")>=0?C.start+C.value.indexOf(".")+1:C.end,R=C.start+C.value.length-T,W=parseFloat(C.value);W*=Math.pow(10,R),T!==C.end&&xZ+1)break;Z=se.last}for(L--,R=this.session.$moveLines(U,Z,_?0:y),_&&y==-1&&(Q=L+1);Q<=L;)T[Q].moveBy(R,0),Q++;_||(R=0),W+=R}S.fromOrientedRange(S.ranges[0]),S.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(y){return y=(y||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(y.start.row),last:this.session.getRowFoldEnd(y.end.row)}},this.onCompositionStart=function(y){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(y){this.renderer.setCompositionText(y)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(y){return y>=this.getFirstVisibleRow()&&y<=this.getLastVisibleRow()},this.isRowFullyVisible=function(y){return y>=this.renderer.getFirstFullyVisibleRow()&&y<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(y,_){var x=this.renderer,E=this.renderer.layerConfig,S=y*Math.floor(E.height/E.lineHeight);this.$blockScrolling++,_===!0?this.selection.$moveSelection(function(){this.moveCursorBy(S,0)}):_===!1&&(this.selection.moveCursorBy(S,0),this.selection.clearSelection()),this.$blockScrolling--;var C=x.scrollTop;x.scrollBy(0,S*E.lineHeight),_!=null&&x.scrollCursorIntoView(null,.5),x.animateScrolling(C)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(y){this.renderer.scrollToRow(y)},this.scrollToLine=function(y,_,x,E){this.renderer.scrollToLine(y,_,x,E)},this.centerSelection=function(){var y=this.getSelectionRange(),_={row:Math.floor(y.start.row+(y.end.row-y.start.row)/2),column:Math.floor(y.start.column+(y.end.column-y.start.column)/2)};this.renderer.alignCursor(_,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(y,_){this.selection.moveCursorTo(y,_)},this.moveCursorToPosition=function(y){this.selection.moveCursorToPosition(y)},this.jumpToMatching=function(y,_){var x=this.getCursorPosition(),E=new d(this.session,x.row,x.column),S=E.getCurrentToken(),C=S||E.stepForward();if(C){var T,R=!1,W={},j=x.column-C.start,L,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(C.value.match(/[{}()\[\]]/g)){for(;j=0;--C)this.$tryReplace(x[C],y)&&E++;return this.selection.setSelectionRange(S),this.$blockScrolling-=1,E},this.$tryReplace=function(y,_){var x=this.session.getTextRange(y);return _=this.$search.replace(x,_),_!==null?(y.end=this.session.replace(y,_),y):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(y,_,x){_||(_={}),typeof y=="string"||y instanceof RegExp?_.needle=y:typeof y=="object"&&p.mixin(_,y);var E=this.selection.getRange();_.needle==null&&(y=this.session.getTextRange(E)||this.$search.$options.needle,y||(E=this.session.getWordRange(E.start.row,E.start.column),y=this.session.getTextRange(E)),this.$search.set({needle:y})),this.$search.set(_),_.start||this.$search.set({start:E});var S=this.$search.find(this.session);if(_.preventScroll)return S;if(S)return this.revealRange(S,x),S;_.backwards?E.start=E.end:E.end=E.start,this.selection.setRange(E)},this.findNext=function(y,_){this.find({skipCurrent:!0,backwards:!1},y,_)},this.findPrevious=function(y,_){this.find(y,{skipCurrent:!0,backwards:!0},_)},this.revealRange=function(y,_){this.$blockScrolling+=1,this.session.unfold(y),this.selection.setSelectionRange(y),this.$blockScrolling-=1;var x=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(y.start,y.end,.5),_!==!1&&this.renderer.animateScrolling(x)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(y){if(y){var _,x=this,E=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var S=this.$scrollAnchor;S.style.cssText="position:absolute",this.container.insertBefore(S,this.container.firstChild);var C=this.on("changeSelection",function(){E=!0}),T=this.renderer.on("beforeRender",function(){E&&(_=x.renderer.container.getBoundingClientRect())}),R=this.renderer.on("afterRender",function(){if(E&&_&&(x.isFocused()||x.searchBox&&x.searchBox.isFocused())){var W=x.renderer,j=W.$cursorLayer.$pixelPos,L=W.layerConfig,Q=j.top-L.offset;j.top>=0&&Q+_.top<0?E=!0:j.topwindow.innerHeight?E=!1:E=null,E!=null&&(S.style.top=Q+"px",S.style.left=j.left+"px",S.style.height=L.lineHeight+"px",S.scrollIntoView(E)),E=_=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",C),this.renderer.off("afterRender",R),this.renderer.off("beforeRender",T))}}},this.$resetCursorStyle=function(){var y=this.$cursorStyle||"ace",_=this.renderer.$cursorLayer;_&&(_.setSmoothBlinking(/smooth/.test(y)),_.isBlinking=!this.$readOnly&&y!="wide",v.setCssClass(_.element,"ace_slim-cursors",/slim/.test(y)))}}).call(w.prototype),k.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(y){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:y})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(y){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(y){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(y){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(y){this.setAutoScrollEditorIntoView(y)}},keyboardHandler:{set:function(y){this.setKeyboardHandler(y)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),r.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(l,r,g){var p=function(){this.reset()};(function(){this.execute=function(i){var t=i.args[0];this.$doc=i.args[1],i.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(i){var t=this.$undoStack.pop(),s=null;return t&&(s=this.$doc.undoChanges(t,i),this.$redoStack.push(t),this.dirtyCounter--),s},this.redo=function(i){var t=this.$redoStack.pop(),s=null;return t&&(s=this.$doc.redoChanges(this.$deserializeDeltas(t),i),this.$undoStack.push(t),this.dirtyCounter++),s},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(i){return a(i,v)},this.$deserializeDeltas=function(i){return a(i,f)};function v(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines.length==1?null:i.lines,text:i.lines.length==1?i.lines[0]:null}}function f(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines||[i.text]}}function a(i,t){for(var s=new Array(i.length),o=0;ou&&(x=c.end.row+1,c=s.getNextFoldLine(x,c),u=c?c.start.row:1/0),x>e){for(;this.$cells.length>_+1;)y=this.$cells.pop(),this.element.removeChild(y.element);break}y=this.$cells[++_],y||(y={element:null,textNode:null,foldWidget:null},y.element=p.createElement("div"),y.textNode=document.createTextNode(""),y.element.appendChild(y.textNode),this.element.appendChild(y.element),this.$cells[_]=y);var E="ace_gutter-cell ";b[x]&&(E+=b[x]),m[x]&&(E+=m[x]),this.$annotations[x]&&(E+=this.$annotations[x].className),y.element.className!=E&&(y.element.className=E);var S=s.getRowLength(x)*t.lineHeight+"px";if(S!=y.element.style.height&&(y.element.style.height=S),h){var C=h[x];C==null&&(C=h[x]=s.getFoldWidget(x))}if(C){y.foldWidget||(y.foldWidget=p.createElement("span"),y.element.appendChild(y.foldWidget));var E="ace_fold-widget ace_"+C;C=="start"&&x==u&&xo.right-s.right)return"foldWidgets"}}).call(i.prototype),r.Gutter=i});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(l,r,g){var p=l("../range").Range,v=l("../lib/dom"),f=function(a){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(i){this.$padding=i},this.setSession=function(i){this.session=i},this.setMarkers=function(i){this.markers=i},this.update=function(i){if(i){this.config=i;var t=[];for(var s in this.markers){var o=this.markers[s];if(!o.range){o.update(t,this,this.session,i);continue}var e=o.range.clipRows(i.firstRow,i.lastRow);if(!e.isEmpty())if(e=e.toScreenRange(this.session),o.renderer){var c=this.$getTop(e.start.row,i),u=this.$padding+(this.session.$bidiHandler.isBidiRow(e.start.row)?this.session.$bidiHandler.getPosLeft(e.start.column):e.start.column*i.characterWidth);o.renderer(t,e,u,c,i)}else o.type=="fullLine"?this.drawFullLineMarker(t,e,o.clazz,i):o.type=="screenLine"?this.drawScreenLineMarker(t,e,o.clazz,i):e.isMultiLine()?o.type=="text"?this.drawTextMarker(t,e,o.clazz,i):this.drawMultiLineMarker(t,e,o.clazz,i):this.session.$bidiHandler.isBidiRow(e.start.row)?this.drawBidiSingleLineMarker(t,e,o.clazz+" ace_start ace_br15",i):this.drawSingleLineMarker(t,e,o.clazz+" ace_start ace_br15",i)}this.element.innerHTML=t.join("")}},this.$getTop=function(i,t){return(i-t.firstRowScreen)*t.lineHeight};function a(i,t,s,o){return(i?1:0)|(t?2:0)|(s?4:0)|(o?8:0)}this.drawTextMarker=function(i,t,s,o,e){for(var c=this.session,u=t.start.row,h=t.end.row,b=u,m=0,k=0,d=c.getScreenLastRowColumn(b),w=null,y=new p(b,t.start.column,b,k);b<=h;b++)y.start.row=y.end.row=b,y.start.column=b==u?t.start.column:c.getRowWrapIndent(b),y.end.column=d,m=k,k=d,d=b+1d,b==h),this.session.$bidiHandler.isBidiRow(b)?this.drawBidiSingleLineMarker(i,y,w,o,b==h?0:1,e):this.drawSingleLineMarker(i,y,w,o,b==h?0:1,e)},this.drawMultiLineMarker=function(i,t,s,o,e){var c=this.$padding,u,h,b;if(e=e||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var m=t.clone();m.end.row=m.start.row,m.end.column=this.session.getLine(m.start.row).length,this.drawBidiSingleLineMarker(i,m,s+" ace_br1 ace_start",o,null,e)}else u=o.lineHeight,h=this.$getTop(t.start.row,o),b=c+t.start.column*o.characterWidth,i.push("
");if(this.session.$bidiHandler.isBidiRow(t.end.row)){var m=t.clone();m.start.row=m.end.row,m.start.column=0,this.drawBidiSingleLineMarker(i,m,s+" ace_br12",o,null,e)}else{var k=t.end.column*o.characterWidth;u=o.lineHeight,h=this.$getTop(t.end.row,o),i.push("
")}if(u=(t.end.row-t.start.row-1)*o.lineHeight,!(u<=0)){h=this.$getTop(t.start.row+1,o);var d=(t.start.column?1:0)|(t.end.column?0:8);i.push("
")}},this.drawSingleLineMarker=function(i,t,s,o,e,c){var u=o.lineHeight,h=(t.end.column+(e||0)-t.start.column)*o.characterWidth,b=this.$getTop(t.start.row,o),m=this.$padding+t.start.column*o.characterWidth;i.push("
")},this.drawBidiSingleLineMarker=function(i,t,s,o,e,c){var u=o.lineHeight,h=this.$getTop(t.start.row,o),b=this.$padding,m=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);m.forEach(function(k){i.push("
")})},this.drawFullLineMarker=function(i,t,s,o,e){var c=this.$getTop(t.start.row,o),u=o.lineHeight;t.start.row!=t.end.row&&(u+=this.$getTop(t.end.row,o)-c),i.push("
")},this.drawScreenLineMarker=function(i,t,s,o,e){var c=this.$getTop(t.start.row,o),u=o.lineHeight;i.push("
")}}).call(f.prototype),r.Marker=f});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(l,r,g){var p=l("../lib/oop"),v=l("../lib/dom"),f=l("../lib/lang");l("../lib/useragent");var a=l("../lib/event_emitter").EventEmitter,i=function(t){this.element=v.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){p.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var t=this.session.doc.getNewLineCharacter()==` +`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(t){this.$padding=t,this.element.style.padding="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",(function(s){this._signal("changeCharacterSize",s)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){this.session=t,t&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(t){return this.showInvisibles==t?!1:(this.showInvisibles=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides==t?!1:(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var s=this.$tabStrings=[0],o=1;o"+f.stringRepeat(this.TAB_CHAR,o)+""):s.push(f.stringRepeat(" ",o));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var e="ace_indent-guide",c="",u="";if(this.showInvisibles){e+=" ace_invisible",c=" ace_invisible_space",u=" ace_invisible_tab";var h=f.stringRepeat(this.SPACE_CHAR,this.tabSize),b=f.stringRepeat(this.TAB_CHAR,this.tabSize)}else var h=f.stringRepeat(" ",this.tabSize),b=h;this.$tabStrings[" "]=""+h+"",this.$tabStrings[" "]=""+b+""}},this.updateLines=function(t,s,o){(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)&&this.scrollLines(t),this.config=t;for(var e=Math.max(s,t.firstRow),c=Math.min(o,t.lastRow),u=this.element.childNodes,h=0,b=t.firstRow;bk&&(b=m.end.row+1,m=this.session.getNextFoldLine(b,m),k=m?m.start.row:1/0),!(b>c);){var d=u[h++];if(d){var w=[];this.$renderLine(w,b,!this.$useLineGroups(),b==k?m:!1),d.style.height=t.lineHeight*this.session.getRowLength(b)+"px",d.innerHTML=w.join("")}b++}},this.scrollLines=function(t){var s=this.config;if(this.config=t,!s||s.lastRow0;e--)o.removeChild(o.firstChild);if(s.lastRow>t.lastRow)for(var e=this.session.getFoldedRowCount(t.lastRow+1,s.lastRow);e>0;e--)o.removeChild(o.lastChild);if(t.firstRows.lastRow){var c=this.$renderLinesFragment(t,s.lastRow+1,t.lastRow);o.appendChild(c)}},this.$renderLinesFragment=function(t,s,o){for(var e=this.element.ownerDocument.createDocumentFragment(),c=s,u=this.session.getNextFoldLine(c),h=u?u.start.row:1/0;c>h&&(c=u.end.row+1,u=this.session.getNextFoldLine(c,u),h=u?u.start.row:1/0),!(c>o);){var b=v.createElement("div"),m=[];if(this.$renderLine(m,c,!1,c==h?u:!1),b.innerHTML=m.join(""),this.$useLineGroups())b.className="ace_line_group",e.appendChild(b),b.style.height=t.lineHeight*this.session.getRowLength(c)+"px";else for(;b.firstChild;)e.appendChild(b.firstChild);c++}return e},this.update=function(t){this.config=t;for(var s=[],o=t.firstRow,e=t.lastRow,c=o,u=this.session.getNextFoldLine(c),h=u?u.start.row:1/0;c>h&&(c=u.end.row+1,u=this.session.getNextFoldLine(c,u),h=u?u.start.row:1/0),!(c>e);)this.$useLineGroups()&&s.push("
"),this.$renderLine(s,c,!1,c==h?u:!1),this.$useLineGroups()&&s.push("
"),c++;this.element.innerHTML=s.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(t,s,o,e){var c=this,u=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=function(d,w,y,_,x){if(w)return c.showInvisibles?""+f.stringRepeat(c.SPACE_CHAR,d.length)+"":d;if(d=="&")return"&";if(d=="<")return"<";if(d==">")return">";if(d==" "){var E=c.session.getScreenTabSize(s+_);return s+=E-1,c.$tabStrings[E]}else if(d==" "){var S=c.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",C=c.showInvisibles?c.SPACE_CHAR:"";return s+=1,""+C+""}else return y?""+c.SPACE_CHAR+"":(s+=1,""+d+"")},b=e.replace(u,h);if(this.$textToken[o.type])t.push(b);else{var m="ace_"+o.type.replace(/\./g," ace_"),k="";o.type=="fold"&&(k=" style='width:"+o.value.length*this.config.characterWidth+"px;' "),t.push("",b,"")}return s+e.length},this.renderIndentGuide=function(t,s,o){var e=s.search(this.$indentGuideRe);return e<=0||e>=o?s:s[0]==" "?(e-=e%this.tabSize,t.push(f.stringRepeat(this.$tabStrings[" "],e/this.tabSize)),s.substr(e)):s[0]==" "?(t.push(f.stringRepeat(this.$tabStrings[" "],e)),s.substr(e)):s},this.$renderWrappedLine=function(t,s,o,e){for(var c=0,u=0,h=o[0],b=0,m=0;m=h;)b=this.$renderToken(t,b,k,d.substring(0,h-c)),d=d.substring(h-c),c=h,e||t.push("","
"),t.push(f.stringRepeat(" ",o.indent)),u++,b=0,h=o[u]||Number.MAX_VALUE;d.length!=0&&(c+=d.length,b=this.$renderToken(t,b,k,d))}}},this.$renderSimpleLine=function(t,s){var o=0,e=s[0],c=e.value;this.displayIndentGuides&&(c=this.renderIndentGuide(t,c)),c&&(o=this.$renderToken(t,o,e,c));for(var u=1;u"),c.length){var u=this.session.getRowSplitData(s);u&&u.length?this.$renderWrappedLine(t,c,u,o):this.$renderSimpleLine(t,c)}this.showInvisibles&&(e&&(s=e.end.row),t.push("",s==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),o||t.push("
")},this.$getFoldLineTokens=function(t,s){var o=this.session,e=[];function c(h,b,m){for(var k=0,d=0;d+h[k].value.lengthm-b&&(w=w.substring(0,m-b)),e.push({type:h[k].type,value:w}),d=b+w.length,k+=1}for(;dm?e.push({type:h[k].type,value:w.substring(0,m-d)}):e.push(h[k]),d+=w.length,k+=1}}var u=o.getTokens(t);return s.walk(function(h,b,m,k,d){h!=null?e.push({type:"fold",value:h}):(d&&(u=o.getTokens(b)),u.length&&c(u,k,m))},s.end.row,this.session.getLine(s.end.row).length),e},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(i.prototype),r.Text=i});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(l,r,g){var p=l("../lib/dom"),v,f=function(a){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),v===void 0&&(v=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(v?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(a){for(var i=this.cursors,t=i.length;t--;)i[t].style.visibility=a?"":"hidden"},this.$updateOpacity=function(a){for(var i=this.cursors,t=i.length;t--;)i[t].style.opacity=a?"":"0"},this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},this.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},this.setSmoothBlinking=function(a){a!=this.smoothBlinking&&!v&&(this.smoothBlinking=a,p.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var a=p.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},this.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},this.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&p.removeCssClass(this.element,"ace_smooth-blinking"),a(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout((function(){p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this));var i=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),i()},this.blinkInterval),i()}},this.getPixelPosition=function(a,i){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var t=this.session.documentToScreenPosition(a),s=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,a.row)?this.session.$bidiHandler.getPosLeft(t.column):t.column*this.config.characterWidth),o=(t.row-(i?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:o}},this.update=function(a){this.config=a;var i=this.session.$selectionMarkers,t=0,s=0;(i===void 0||i.length===0)&&(i=[{cursor:null}]);for(var t=0,o=i.length;ta.height+a.offset||e.top<0)&&t>1)){var c=(this.cursors[s++]||this.addCursor()).style;this.drawCursor?this.drawCursor(c,e,a,i[t],this.session):(c.left=e.left+"px",c.top=e.top+"px",c.width=a.characterWidth+"px",c.height=a.lineHeight+"px")}}for(;this.cursors.length>s;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=e,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(f.prototype),r.Cursor=f});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(l,r,g){var p=l("./lib/oop"),v=l("./lib/dom"),f=l("./lib/event"),a=l("./lib/event_emitter").EventEmitter,i=32768,t=function(e){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addListener(this.element,"scroll",this.onScroll.bind(this)),f.addListener(this.element,"mousedown",f.preventDefault)};(function(){p.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(t.prototype);var s=function(e,c){t.call(this,e),this.scrollTop=0,this.scrollHeight=0,c.$scrollbarWidth=this.width=v.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};p.inherits(s,t),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>i?(this.coeff=i/e,e=i):this.coeff!=1&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}).call(s.prototype);var o=function(e,c){t.call(this,e),this.scrollLeft=0,this.height=c.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};p.inherits(o,t),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}).call(o.prototype),r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=o,r.VScrollBar=s,r.HScrollBar=o});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(l,r,g){var p=l("./lib/event"),v=function(f,a){this.onRender=f,this.pending=!1,this.changes=0,this.window=a||window};(function(){this.schedule=function(f){if(this.changes=this.changes|f,!this.pending&&this.changes){this.pending=!0;var a=this;p.nextFrame(function(){a.pending=!1;for(var i;i=a.changes;)a.changes=0,a.onRender(i)},this.window)}}}).call(v.prototype),r.RenderLoop=v});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(l,r,g){var p=l("../lib/oop"),v=l("../lib/dom"),f=l("../lib/lang"),a=l("../lib/useragent"),i=l("../lib/event_emitter").EventEmitter,t=0,s=r.FontMetrics=function(o){this.el=v.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=v.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=v.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),o.appendChild(this.el),t||this.$testFractionalRect(),this.$measureNode.innerHTML=f.stringRepeat("X",t),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){p.implement(this,i),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var o=v.createElement("div");this.$setMeasureNodeStyles(o.style),o.style.width="0.2px",document.documentElement.appendChild(o);var e=o.getBoundingClientRect().width;e>0&&e<1?t=50:t=100,o.parentNode.removeChild(o)},this.$setMeasureNodeStyles=function(o,e){o.width=o.height="auto",o.left=o.top="0px",o.visibility="hidden",o.position="absolute",o.whiteSpace="pre",a.isIE<8?o["font-family"]="inherit":o.font="inherit",o.overflow=e?"hidden":"visible"},this.checkForSizeChanges=function(){var o=this.$measureSizes();if(o&&(this.$characterSize.width!==o.width||this.$characterSize.height!==o.height)){this.$measureNode.style.fontWeight="bold";var e=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=o,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===o.width&&e.height===o.height,this._emit("changeCharacterSize",{data:o})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var o=this;return this.$pollSizeChangesTimer=setInterval(function(){o.checkForSizeChanges()},500)},this.setPolling=function(o){o?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(t===50){var o=null;try{o=this.$measureNode.getBoundingClientRect()}catch{o={width:0,height:0}}var e={height:o.height,width:o.width/t}}else var e={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/t};return e.width===0||e.height===0?null:e},this.$measureCharWidth=function(o){this.$main.innerHTML=f.stringRepeat(o,t);var e=this.$main.getBoundingClientRect();return e.width/t},this.getCharacterWidth=function(o){var e=this.charSizes[o];return e===void 0&&(e=this.charSizes[o]=this.$measureCharWidth(o)/this.$characterSize.width),e},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(s.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(l,r,g){var p=l("./lib/oop"),v=l("./lib/dom"),f=l("./config"),a=l("./lib/useragent"),i=l("./layer/gutter").Gutter,t=l("./layer/marker").Marker,s=l("./layer/text").Text,o=l("./layer/cursor").Cursor,e=l("./scrollbar").HScrollBar,c=l("./scrollbar").VScrollBar,u=l("./renderloop").RenderLoop,h=l("./layer/font_metrics").FontMetrics,b=l("./lib/event_emitter").EventEmitter,m=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;v.importCssString(m,"ace_editor.css");var k=function(d,w){var y=this;this.container=d||v.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,v.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=v.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=v.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=v.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new i(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var _=this.$textLayer=new s(this.content);this.canvas=_.element,this.$markerFront=new t(this.content),this.$cursorLayer=new o(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.addEventListener("scroll",function(x){y.$scrollAnimation||y.session.setScrollTop(x.data-y.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(x){y.$scrollAnimation||y.session.setScrollLeft(x.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(x){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",x)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new u(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),f.resetOptions(this),f._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,p.implement(this,b),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(d){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=d,d&&this.scrollMargin.top&&d.getScrollTop()<=0&&d.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(d),this.$markerBack.setSession(d),this.$markerFront.setSession(d),this.$gutterLayer.setSession(d),this.$textLayer.setSession(d),d&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(d,w,y){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>d&&(this.$changedLines.firstRow=d),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(d){d?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(d,w,y,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=d?1:0;var x=this.container;_||(_=x.clientHeight||x.scrollHeight),y||(y=x.clientWidth||x.scrollWidth);var E=this.$updateCachedSize(d,w,y,_);if(!this.$size.scrollerHeight||!y&&!_)return this.resizing=0;d&&(this.$gutterLayer.$padding=null),d?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(d,w,y,_){_-=this.$extraHeight||0;var x=0,E=this.$size,S={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};return _&&(d||E.height!=_)&&(E.height=_,x|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x=x|this.CHANGE_SCROLL),y&&(d||E.width!=y)&&(x|=this.CHANGE_SIZE,E.width=y,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",E.scrollerWidth=Math.max(0,y-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||d)&&(x|=this.CHANGE_FULL)),E.$dirty=!y||!_,x&&this._signal("resize",S),x},this.onGutterResize=function(){var d=this.$showGutter?this.$gutter.offsetWidth:0;d!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,d,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var d=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(d/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(d){this.setOption("animatedScroll",d)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(d){this.setOption("showInvisibles",d),this.session.$bidiHandler.setShowInvisibles(d)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(d){this.setOption("displayIndentGuides",d)},this.setShowPrintMargin=function(d){this.setOption("showPrintMargin",d)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(d){this.setOption("printMarginColumn",d)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(d){return this.setOption("showGutter",d)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(d){this.setOption("fadeFoldWidgets",d)},this.setHighlightGutterLine=function(d){this.setOption("highlightGutterLine",d)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var d=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var y=this.session.selection.getCursor();y.column=0,d=this.$cursorLayer.getPixelPosition(y,!0),w*=this.session.getRowLength(y.row)}this.$gutterLineHighlight.style.top=d.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var d=v.createElement("div");d.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",d.appendChild(this.$printMarginEl),this.content.insertBefore(d,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var d=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,y=this.$cursorLayer.$pixelPos.left;w-=d.offset;var _=this.textarea.style,x=this.lineHeight;if(w<0||w>d.height-x){_.top=_.left="0";return}var E=this.characterWidth;if(this.$composition){var S=this.textarea.value.replace(/^\x01+/,"");E*=this.session.$getStringScreenWidth(S)[0]+2,x+=2}y-=this.scrollLeft,y>this.$size.scrollerWidth-E&&(y=this.$size.scrollerWidth-E),y+=this.gutterWidth,_.height=x+"px",_.width=E+"px",_.left=Math.min(y,this.$size.scrollerWidth-E)+"px",_.top=Math.min(w,this.$size.height-x)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var d=this.layerConfig,w=d.lastRow,y=this.session.documentToScreenRow(w,0)*d.lineHeight;return y-this.session.getScrollTop()>d.height-d.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(d){this.$padding=d,this.$textLayer.setPadding(d),this.$cursorLayer.setPadding(d),this.$markerFront.setPadding(d),this.$markerBack.setPadding(d),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(d,w,y,_){var x=this.scrollMargin;x.top=d|0,x.bottom=w|0,x.right=_|0,x.left=y|0,x.v=x.top+x.bottom,x.h=x.left+x.right,x.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-x.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(d){this.setOption("hScrollBarAlwaysVisible",d)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(d){this.setOption("vScrollBarAlwaysVisible",d)},this.$updateScrollBarV=function(){var d=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(d-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>d-w&&(d=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(d+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(d,w){if(this.$changes&&(d|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!d&&!w){this.$changes|=d;return}if(this.$size.$dirty)return this.$changes|=d,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(d&this.CHANGE_FULL||d&this.CHANGE_SIZE||d&this.CHANGE_TEXT||d&this.CHANGE_LINES||d&this.CHANGE_SCROLL||d&this.CHANGE_H_SCROLL){if(d|=this.$computeLayerConfig(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(y.firstRow-this.layerConfig.firstRow)*this.lineHeight;_>0&&(this.scrollTop=_,d=d|this.CHANGE_SCROLL,d|=this.$computeLayerConfig())}y=this.layerConfig,this.$updateScrollBarV(),d&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-y.offset+"px",this.content.style.marginTop=-y.offset+"px",this.content.style.width=y.width+2*this.$padding+"px",this.content.style.height=y.minHeight+"px"}if(d&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),d&this.CHANGE_FULL){this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(d&this.CHANGE_SCROLL){d&this.CHANGE_TEXT||d&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&this.$gutterLayer.update(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}d&this.CHANGE_TEXT?(this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y)):d&this.CHANGE_LINES?(this.$updateLines()||d&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y):(d&this.CHANGE_TEXT||d&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(y),d&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),d&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),d&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender")},this.$autosize=function(){var d=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,y=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,d))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var _=d>w;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var x=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,x,y),this.desiredHeight=y,this._signal("autosize")}},this.$computeLayerConfig=function(){var d=this.session,w=this.$size,y=w.height<=2*this.lineHeight,_=this.session.getScreenLength(),x=_*this.lineHeight,E=this.$getLongestLine(),S=!y&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-E-2*this.$padding<0),C=this.$horizScroll!==S;C&&(this.$horizScroll=S,this.scrollBarH.setVisible(S));var T=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var R=this.scrollTop%this.lineHeight,W=w.scrollerHeight+this.lineHeight,j=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=j;var L=this.scrollMargin;this.session.setScrollTop(Math.max(-L.top,Math.min(this.scrollTop,x-w.scrollerHeight+L.bottom))),this.session.setScrollLeft(Math.max(-L.left,Math.min(this.scrollLeft,E+2*this.$padding-w.scrollerWidth+L.right)));var Q=!y&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-x+j<0||this.scrollTop>L.top),U=T!==Q;U&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q));var Z=Math.ceil(W/this.lineHeight)-1,se=Math.max(0,Math.round((this.scrollTop-R)/this.lineHeight)),te=se+Z,$,P,A=this.lineHeight;se=d.screenToDocumentRow(se,0);var O=d.getFoldLine(se);O&&(se=O.start.row),$=d.documentToScreenRow(se,0),P=d.getRowLength(se)*A,te=Math.min(d.screenToDocumentRow(te,0),d.getLength()-1),W=w.scrollerHeight+d.getRowLength(te)*A+P,R=this.scrollTop-$*A;var z=0;return this.layerConfig.width!=E&&(z=this.CHANGE_H_SCROLL),(C||U)&&(z=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),U&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:se,firstRowScreen:$,lastRow:te,lineHeight:A,characterWidth:this.characterWidth,minHeight:W,maxHeight:x,offset:R,gutterOffset:A?Math.max(0,Math.ceil((R+w.height-w.scrollerHeight)/A)):0,height:this.$size.scrollerHeight},z},this.$updateLines=function(){if(this.$changedLines){var d=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(d>y.lastRow+1)&&!(wE?(w&&T+S>E+this.lineHeight&&(E-=w*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):T+this.$size.scrollerHeight-Cx?(x=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||d<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||d>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=d+this.scrollLeft-y.left-this.$padding,x=_/this.characterWidth,E=Math.floor((w+this.scrollTop-y.top)/this.lineHeight),S=Math.round(x);return{row:E,column:S,side:x-S>0?1:-1,offsetX:_}},this.screenToTextCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=d+this.scrollLeft-y.left-this.$padding,x=Math.round(_/this.characterWidth),E=(w+this.scrollTop-y.top)/this.lineHeight;return this.session.screenToDocumentPosition(E,Math.max(x,0),_)},this.textToScreenCoordinates=function(d,w){var y=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(d,w),x=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,d)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),E=_.row*this.lineHeight;return{pageX:y.left+x-this.scrollLeft,pageY:y.top+E-this.scrollTop}},this.visualizeFocus=function(){v.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){v.removeCssClass(this.container,"ace_focus")},this.showComposition=function(d){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(d){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(v.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(d,w){var y=this;if(this.$themeId=d,y._dispatchEvent("themeChange",{theme:d}),!d||typeof d=="string"){var _=d||this.$options.theme.initialValue;f.loadModule(["theme",_],x)}else x(d);function x(E){if(y.$themeId!=d)return w&&w();if(!E||!E.cssClass)throw new Error("couldn't load module "+d+" or it didn't call define");v.importCssString(E.cssText,E.cssClass,y.container.ownerDocument),y.theme&&v.removeCssClass(y.container,y.theme.cssClass);var S="padding"in E?E.padding:"padding"in(y.theme||{})?4:y.$padding;y.$padding&&S!=y.$padding&&y.setPadding(S),y.$theme=E.cssClass,y.theme=E,v.addCssClass(y.container,E.cssClass),v.setCssClass(y.container,"ace_dark",E.isDark),y.$size&&(y.$size.width=0,y.$updateSizeAsync()),y._dispatchEvent("themeLoaded",{theme:E}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(d,w){v.setCssClass(this.container,d,w!==!1)},this.unsetStyle=function(d){v.removeCssClass(this.container,d)},this.setCursorStyle=function(d){this.scroller.style.cursor!=d&&(this.scroller.style.cursor=d)},this.setMouseCursor=function(d){this.scroller.style.cursor=d},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(k.prototype),f.defineOptions(k.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(d){this.$textLayer.setShowInvisibles(d)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(d){typeof d=="number"&&(this.$printMarginColumn=d),this.$showPrintMargin=!!d,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(d){this.$gutter.style.display=d?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(d){v.setCssClass(this.$gutter,"ace_fade-fold-widgets",d)},initialValue:!1},showFoldWidgets:{set:function(d){this.$gutterLayer.setShowFoldWidgets(d)},initialValue:!0},showLineNumbers:{set:function(d){this.$gutterLayer.setShowLineNumbers(d),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(d){this.$textLayer.setDisplayIndentGuides(d)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(d){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=v.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=d?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(d){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(d){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(d){typeof d=="number"&&(d=d+"px"),this.container.style.fontSize=d,this.updateFontSize()},initialValue:12},fontFamily:{set:function(d){this.container.style.fontFamily=d,this.updateFontSize()}},maxLines:{set:function(d){this.updateFull()}},minLines:{set:function(d){this.updateFull()}},maxPixelHeight:{set:function(d){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(d){d=+d||0,this.$scrollPastEnd!=d&&(this.$scrollPastEnd=d,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(d){this.$gutterLayer.$fixedWidth=!!d,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(d){this.setTheme(d)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),r.VirtualRenderer=k});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(l,r,g){var p=l("../lib/oop"),v=l("../lib/net"),f=l("../lib/event_emitter").EventEmitter,a=l("../config");function i(e,c){var u=c.src;""+v.qualifyURL(e);try{return new Blob([u],{type:"application/javascript"})}catch{var h=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,b=new h;return b.append(u),b.getBlob("application/javascript")}}function t(e,c){var u=i(e,c),h=window.URL||window.webkitURL,b=h.createObjectURL(u);return new Worker(b)}var s=function(e,c,u,h,b){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),l.nameToUrl&&!l.toUrl&&(l.toUrl=l.nameToUrl),a.get("packaged")||!l.toUrl)h=h||a.moduleUrl(c.id,"worker");else{var m=this.$normalizePath;h=h||m(l.toUrl("ace/worker/worker.js",null,"_"));var k={};e.forEach(function(d){k[d]=m(l.toUrl(d,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=t(h,c),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:k,module:c.id,classname:u}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,f),this.onMessage=function(e){var c=e.data;switch(c.type){case"event":this._signal(c.name,{data:c.data});break;case"call":var u=this.callbacks[c.id];u&&(u(c.data),delete this.callbacks[c.id]);break;case"error":this.reportError(c.data);break;case"log":window.console&&console.log&&console.log.apply(console,c.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return v.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,c){this.$worker.postMessage({command:e,args:c})},this.call=function(e,c,u){if(u){var h=this.callbackId++;this.callbacks[h]=u,c.push(h)}this.send(e,c)},this.emit=function(e,c){try{this.$worker.postMessage({event:e,data:{data:c.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),e.action=="insert"?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(s.prototype);var o=function(e,c,u){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var h=null,b=!1,m=Object.create(f),k=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){k.messageBuffer.push(w),h&&(b?setTimeout(d):d())},this.setEmitSync=function(w){b=w};var d=function(){var w=k.messageBuffer.shift();w.command?h[w.command].apply(h,w.args):w.event&&m._signal(w.event,w.data)};m.postMessage=function(w){k.onMessage({data:w})},m.callback=function(w,y){this.postMessage({type:"call",id:y,data:w})},m.emit=function(w,y){this.postMessage({type:"event",name:w,data:y})},a.loadModule(["worker",c],function(w){for(h=new w[u](m);k.messageBuffer.length;)d()})};o.prototype=s.prototype,r.UIWorkerClient=o,r.WorkerClient=s,r.createWorker=t});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(l,r,g){var p=l("./range").Range,v=l("./lib/event_emitter").EventEmitter,f=l("./lib/oop"),a=function(i,t,s,o,e,c){var u=this;this.length=t,this.session=i,this.doc=i.getDocument(),this.mainClass=e,this.othersClass=c,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=o,this.$onCursorChange=function(){setTimeout(function(){u.onCursorChange()})},this.$pos=s;var h=i.getUndoManager().$undoStack||i.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=h.length,this.setup(),i.selection.on("changeCursor",this.$onCursorChange)};(function(){f.implement(this,v),this.setup=function(){var i=this,t=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=s.addMarker(new p(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var c=t.createAnchor(e.row,e.column);c.$insertRight=!0,c.detach(),i.others.push(c)}),s.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,t=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=i.addMarker(new p(s.row,s.column,s.row,s.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var i=0;i=this.pos.column&&t.start.column<=this.pos.column+this.length+1,e=t.start.column-this.pos.column;if(this.updateAnchors(i),o&&(this.length+=s),o&&!this.session.$fromUndo){if(i.action==="insert")for(var c=this.others.length-1;c>=0;c--){var u=this.others[c],h={row:u.row,column:u.column+e};this.doc.insertMergedLines(h,i.lines)}else if(i.action==="remove")for(var c=this.others.length-1;c>=0;c--){var u=this.others[c],h={row:u.row,column:u.column+e};this.doc.remove(new p(h.row,h.column,h.row,h.column-s))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(i){this.pos.onChange(i);for(var t=this.others.length;t--;)this.others[t].onChange(i);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,t=this.session,s=function(e,c){t.removeMarker(e.markerId),e.markerId=t.addMarker(new p(e.row,e.column,e.row,e.column+i.length),c,null,!1)};s(this.pos,this.mainClass);for(var o=this.others.length;o--;)s(this.others[o],this.othersClass)}},this.onCursorChange=function(i){if(!(this.$updating||!this.session)){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",i)):(this.hideOtherMarkers(),this._emit("cursorLeave",i))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var i=this.session.getUndoManager(),t=(i.$undoStack||i.$undostack).length-this.$undoStackDepth,s=0;s1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(d)}},this.toSingleRange=function(d){d=d||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),d&&this.fromOrientedRange(d)},this.substractPoint=function(d){var w=this.rangeList.substractPoint(d);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var d=this.rangeList.merge();d.length?this.$onRemoveRange(d):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(d){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(d),this._signal("addRange",{range:d})},this.$onRemoveRange=function(d){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();d.push(w),this.rangeCount=0}for(var y=d.length;y--;){var _=this.ranges.indexOf(d[y]);this.ranges.splice(_,1)}this._signal("removeRange",{ranges:d}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var d=this.rangeList.ranges,w=d[d.length-1],y=v.fromPoints(d[0].start,w.end);this.toSingleRange(),this.setSelectionRange(y,w.cursor==w.start)}else{var y=this.getRange(),_=this.isBackwards(),x=y.start.row,E=y.end.row;if(x==E){if(_)var S=y.end,C=y.start;else var S=y.start,C=y.end;this.addRange(v.fromPoints(C,C)),this.addRange(v.fromPoints(S,S));return}var T=[],R=this.getLineRange(x,!0);R.start.column=y.start.column,T.push(R);for(var W=x+1;W1){var d=this.rangeList.ranges,w=d[d.length-1],y=v.fromPoints(d[0].start,w.end);this.toSingleRange(),this.setSelectionRange(y,w.cursor==w.start)}else{var _=this.session.documentToScreenPosition(this.selectionLead),x=this.session.documentToScreenPosition(this.selectionAnchor),E=this.rectangularRangeBlock(_,x);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(d,w,y){var _=[],x=d.column0;)Z--;if(Z>0)for(var se=0;_[se].isEmpty();)se++;for(var te=Z;te>=se;te--)_[te].isEmpty()&&_.splice(te,1)}return _}}).call(f.prototype);var h=l("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(d){d.cursor||(d.cursor=d.end);var w=this.getSelectionStyle();return d.marker=this.session.addMarker(d,"ace_selection",w),this.session.$selectionMarkers.push(d),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,d},this.removeSelectionMarker=function(d){if(d.marker){this.session.removeMarker(d.marker);var w=this.session.$selectionMarkers.indexOf(d);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(d){for(var w=this.session.$selectionMarkers,y=d.length;y--;){var _=d[y];if(_.marker){this.session.removeMarker(_.marker);var x=w.indexOf(_);x!=-1&&w.splice(x,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(d){this.addSelectionMarker(d.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(d){this.removeSelectionMarkers(d.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(d){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(d){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(d){var w=d.command,y=d.editor;if(y.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?_=y.forEachSelection(w,d.args):w.multiSelectAction=="forEachLine"?_=y.forEachSelection(w,d.args,!0):w.multiSelectAction=="single"?(y.exitMultiSelectMode(),_=w.exec(y,d.args||{})):_=w.multiSelectAction(y,d.args||{});else{var _=w.exec(y,d.args||{});y.multiSelect.addRange(y.multiSelect.toOrientedRange()),y.multiSelect.mergeOverlappingRanges()}return _}},this.forEachSelection=function(d,w,y){if(!this.inVirtualSelectionMode){var _=y&&y.keepOrder,x=y==!0||y&&y.$byLines,E=this.session,S=this.selection,C=S.rangeList,T=(_?S:C).ranges,R;if(!T.length)return d.exec?d.exec(this,w||{}):d(this,w||{});var W=S._eventRegistry;S._eventRegistry={};var j=new f(E);this.inVirtualSelectionMode=!0;for(var L=T.length;L--;){if(x)for(;L>0&&T[L].start.row==T[L-1].end.row;)L--;j.fromOrientedRange(T[L]),j.index=L,this.selection=E.selection=j;var Q=d.exec?d.exec(this,w||{}):d(this,w||{});!R&&Q!==void 0&&(R=Q),j.toOrientedRange(T[L])}j.detach(),this.selection=E.selection=S,this.inVirtualSelectionMode=!1,S._eventRegistry=W,S.mergeOverlappingRanges();var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),R}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var d="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,y=[],_=0;_0);S<0&&(S=0),C>=R&&(C=R-1)}var j=this.session.removeFullLines(S,C);j=this.$reAlignText(j,T),this.session.insert({row:S,column:0},j.join(` `)+` -`),T||(E.start.column=0,E.end.column=j[j.length-1].length),this.selection.setRange(E)}else{x.forEach(function(Z){w.substractPoint(Z.cursor)});var L=0,Q=1/0,U=y.map(function(Z){var se=Z.cursor,te=d.getLine(se.row),$=te.substr(se.column).search(/\S/g);return $==-1&&($=0),se.column>L&&(L=se.column),$P?d.insert(te,t.stringRepeat(" ",$-P)):d.remove(new v(te.row,te.column,te.row,te.column-$+P)),Z.start.column=Z.end.column=L,Z.start.row=Z.end.row=te.row,Z.cursor=Z.end}),w.fromOrientedRange(y[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(d,w){var y=!0,_=!0,x,E,S;return d.map(function(j){var L=j.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?x==null?(x=L[1].length,E=L[2].length,S=L[3].length,L):(x+E+S!=L[1].length+L[2].length+L[3].length&&(_=!1),x!=L[1].length&&(y=!1),x>L[1].length&&(x=L[1].length),EL[3].length&&(S=L[3].length),L):[j]}).map(w?T:y?_?R:T:W);function C(j){return t.stringRepeat(" ",j)}function T(j){return j[2]?C(x)+j[2]+C(E-j[2].length+S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function R(j){return j[2]?C(x+E-j[2].length)+j[2]+C(S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function W(j){return j[2]?C(x)+j[2]+C(S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}}}).call(h.prototype);function b(d,w){return d.row==w.row&&d.column==w.column}r.onSessionChange=function(d){var w=d.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var y=d.oldSession;y&&(y.multiSelect.off("addRange",this.$onAddRange),y.multiSelect.off("removeRange",this.$onRemoveRange),y.multiSelect.off("multiSelect",this.$onMultiSelect),y.multiSelect.off("singleSelect",this.$onSingleSelect),y.multiSelect.lead.off("change",this.$checkMultiselectChange),y.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function p(d){d.$multiselectOnSessionChange||(d.$onAddRange=d.$onAddRange.bind(d),d.$onRemoveRange=d.$onRemoveRange.bind(d),d.$onMultiSelect=d.$onMultiSelect.bind(d),d.$onSingleSelect=d.$onSingleSelect.bind(d),d.$multiselectOnSessionChange=r.onSessionChange.bind(d),d.$checkMultiselectChange=d.$checkMultiselectChange.bind(d),d.$multiselectOnSessionChange(d),d.on("changeSession",d.$multiselectOnSessionChange),d.on("mousedown",a),d.commands.addCommands(s.defaultCommands),k(d))}function k(d){var w=d.textInput.getElement(),y=!1;i.addListener(w,"keydown",function(x){var E=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);d.$blockSelectEnabled&&E?y||(d.renderer.setMouseCursor("crosshair"),y=!0):y&&_()}),i.addListener(w,"keyup",_),i.addListener(w,"blur",_);function _(x){y&&(d.renderer.setMouseCursor(""),y=!1)}}r.MultiSelect=p,l("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(d){p(this),d?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(d){this.$blockSelectEnabled=d},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(l,r,m){var g=l("../../range").Range,v=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(f,a,i){var t=f.getLine(i);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(f,a,i){return null},this.indentationBlock=function(f,a,i){var t=/\S/,s=f.getLine(a),o=s.search(t);if(o!=-1){for(var e=i||s.length,c=f.getLength(),u=a,h=a;++au){var p=f.getLine(h).length;return new g(u,e,h,p)}}},this.openingBracketBlock=function(f,a,i,t,s){var o={row:i,column:t+1},e=f.$findClosingBracket(a,o,s);if(e){var c=f.foldWidgets[e.row];return c==null&&(c=f.getFoldWidget(e.row)),c=="start"&&e.row>o.row&&(e.row--,e.column=f.getLine(e.row).length),g.fromPoints(o,e)}},this.closingBracketBlock=function(f,a,i,t,s){var o={row:i,column:t},e=f.$findOpeningBracket(a,o);if(e)return e.column++,o.column--,g.fromPoints(e,o)}}).call(v.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(l,r,m){r.isDark=!1,r.cssClass="ace-tm",r.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var g=l("../lib/dom");g.importCssString(r.cssText,r.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(l,r,m){l("./lib/oop");var g=l("./lib/dom");l("./range").Range;function v(f){this.session=f,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(f){var a;return this.lineWidgets?a=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0:a=0,!this.$useWrapMode||!this.$wrapData[f]?1+a:this.$wrapData[f].length+1+a},this.$getWidgetScreenLength=function(){var f=0;return this.lineWidgets.forEach(function(a){a&&a.rowCount&&!a.hidden&&(f+=a.rowCount)}),f},this.$onChangeEditor=function(f){this.attach(f.editor)},this.attach=function(f){f&&f.widgetManager&&f.widgetManager!=this&&f.widgetManager.detach(),this.editor!=f&&(this.detach(),this.editor=f,f&&(f.widgetManager=this,f.renderer.on("beforeRender",this.measureWidgets),f.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(f){var a=this.editor;if(a){this.editor=null,a.widgetManager=null,a.renderer.off("beforeRender",this.measureWidgets),a.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))})}},this.updateOnFold=function(f,a){var i=a.lineWidgets;if(!(!i||!f.action)){for(var t=f.data,s=t.start.row,o=t.end.row,e=f.action=="add",c=s+1;c0&&!t[s];)s--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,a.$cursorLayer.config=i;for(var e=s;e<=o;e++){var c=t[e];if(!(!c||!c.el)){if(c.hidden){c.el.style.top=-100-(c.pixelHeight||0)+"px";continue}c._inDocument||(c._inDocument=!0,a.container.appendChild(c.el));var u=a.$cursorLayer.getPixelPosition({row:e,column:0},!0).top;c.coverLine||(u+=i.lineHeight*this.session.getRowLineCount(c.row)),c.el.style.top=u-i.offset+"px";var h=c.coverGutter?0:a.gutterWidth;c.fixedWidth||(h-=a.scrollLeft),c.el.style.left=h+"px",c.fullWidth&&c.screenWidth&&(c.el.style.minWidth=i.width+2*i.padding+"px"),c.fixedWidth?c.el.style.right=a.scrollBar.getWidth()+"px":c.el.style.right=""}}}}}).call(v.prototype),r.LineWidgets=v});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(l,r,m){var g=l("../line_widgets").LineWidgets,v=l("../lib/dom"),f=l("../range").Range;function a(t,s,o){for(var e=0,c=t.length-1;e<=c;){var u=e+c>>1,h=o(s,t[u]);if(h>0)e=u+1;else if(h<0)c=u-1;else return u}return-(e+1)}function i(t,s,o){var e=t.getAnnotations().sort(f.comparePoints);if(e.length){var c=a(e,{row:s,column:-1},f.comparePoints);c<0&&(c=-c-1),c>=e.length?c=o>0?0:e.length-1:c===0&&o<0&&(c=e.length-1);var u=e[c];if(!(!u||!o)){if(u.row===s){do u=e[c+=o];while(u&&u.row===s);if(!u)return e.slice()}var h=[];s=u.row;do h[o<0?"unshift":"push"](u),u=e[c+=o];while(u&&u.row==s);return h.length&&h}}}r.showErrorMarker=function(t,s){var o=t.session;o.widgetManager||(o.widgetManager=new g(o),o.widgetManager.attach(t));var e=t.getCursorPosition(),c=e.row,u=o.widgetManager.getWidgetsAtRow(c).filter(function(x){return x.type=="errorMarker"})[0];u?u.destroy():c-=s;var h=i(o,c,s),b;if(h){var p=h[0];e.column=(p.pos&&typeof p.column!="number"?p.pos.sc:p.column)||0,e.row=p.row,b=t.renderer.$gutterLayer.$annotations[e.row]}else{if(u)return;b={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(e.row),t.selection.moveToPosition(e);var k={row:e.row,fixedWidth:!0,coverGutter:!0,el:v.createElement("div"),type:"errorMarker"},d=k.el.appendChild(v.createElement("div")),w=k.el.appendChild(v.createElement("div"));w.className="error_widget_arrow "+b.className;var y=t.renderer.$cursorLayer.getPixelPosition(e).left;w.style.left=y+t.renderer.gutterWidth-5+"px",k.el.className="error_widget_wrapper",d.className="error_widget "+b.className,d.innerHTML=b.text.join("
"),d.appendChild(v.createElement("div"));var _=function(x,E,S){if(E===0&&(S==="esc"||S==="return"))return k.destroy(),{command:"null"}};k.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(_),o.widgetManager.removeLineWidget(k),t.off("changeSelection",k.destroy),t.off("changeSession",k.destroy),t.off("mouseup",k.destroy),t.off("change",k.destroy))},t.keyBinding.addKeyboardHandler(_),t.on("changeSelection",k.destroy),t.on("changeSession",k.destroy),t.on("mouseup",k.destroy),t.on("change",k.destroy),t.session.widgetManager.addLineWidget(k),k.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:k.el.offsetHeight})},v.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(l,r,m){l("./lib/fixoldbrowsers");var g=l("./lib/dom"),v=l("./lib/event"),f=l("./editor").Editor,a=l("./edit_session").EditSession,i=l("./undomanager").UndoManager,t=l("./virtual_renderer").VirtualRenderer;l("./worker/worker_client"),l("./keyboard/hash_handler"),l("./placeholder"),l("./multi_select"),l("./mode/folding/fold_mode"),l("./theme/textmate"),l("./ext/error_marker"),r.config=l("./config"),r.acequire=l,r.edit=function(s){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof f)return s.env.editor;var e="";if(s&&/input|textarea/i.test(s.tagName)){var c=s;e=c.value,s=g.createElement("pre"),c.parentNode.replaceChild(s,c)}else s&&(e=g.getInnerText(s),s.innerHTML="");var u=r.createEditSession(e),h=new f(new t(s));h.setSession(u);var b={document:u,editor:h,onResize:h.resize.bind(h,null)};return c&&(b.textarea=c),v.addListener(window,"resize",b.onResize),h.on("destroy",function(){v.removeListener(window,"resize",b.onResize),b.editor.container.env=null}),h.container.env=h.env=b,h},r.createEditSession=function(s,o){var e=new a(s,o);return e.setUndoManager(new i),e},r.EditSession=a,r.UndoManager=i,r.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(l){l&&(l.config.init(!0),l.define=ace.define),window.ace||(window.ace=l);for(var r in l)l.hasOwnProperty(r)&&(window.ace[r]=l[r])})})();var brace=window.ace.acequire("ace/ace");ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(l,r,m){var g=l("./lib/oop"),v=l("./lib/event_emitter").EventEmitter,f=l("./lib/lang"),a=l("./range").Range,i=l("./anchor").Anchor,t=l("./keyboard/hash_handler").HashHandler,s=l("./tokenizer").Tokenizer,o=a.comparePoints,e=function(){this.snippetMap={},this.snippetNameMap={}};(function(){g.implement(this,v),this.getTokenizer=function(){function p(d,w,y){return d=d.substr(1),/^\d+$/.test(d)&&!y.inFormatString?[{tabstopId:parseInt(d,10)}]:[{text:d}]}function k(d){return"(?:[^\\\\"+d+"]|\\\\.)"}return e.$tokenizer=new s({start:[{regex:/:/,onMatch:function(d,w,y){return y.length&&y[0].expectIf?(y[0].expectIf=!1,y[0].elseBranch=y[0],[y[0]]):":"}},{regex:/\\./,onMatch:function(d,w,y){var _=d[1];return _=="}"&&y.length||"`$\\".indexOf(_)!=-1?d=_:y.inFormatString&&(_=="n"||_=="t"?d=` -`:"ulULE".indexOf(_)!=-1&&(d={changeCase:_,local:_>"a"})),[d]}},{regex:/}/,onMatch:function(d,w,y){return[y.length?y.shift():d]}},{regex:/\$(?:\d+|\w+)/,onMatch:p},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(d,w,y){var _=p(d.substr(1),w,y);return y.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+k("\\|")+"*\\|",onMatch:function(d,w,y){y[0].choices=d.slice(1,-1).split(",")},next:"start"},{regex:"/("+k("/")+"+)/(?:("+k("/")+"*)/)(\\w*):?",onMatch:function(d,w,y){var _=y[0];return _.fmtString=d,d=this.splitRegex.exec(d),_.guard=d[1],_.fmt=d[2],_.flag=d[3],""},next:"start"},{regex:"`"+k("`")+"*`",onMatch:function(d,w,y){return y[0].code=d.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(d,w,y){y[0]&&(y[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+k("/")+"+)/",token:"regex"},{regex:"",onMatch:function(d,w,y){y.inFormatString=!0},next:"start"}]}),e.prototype.getTokenizer=function(){return e.$tokenizer},e.$tokenizer},this.tokenizeTmSnippet=function(p,k){return this.getTokenizer().getLineTokens(p,k).tokens.map(function(d){return d.value||d})},this.$getDefaultValue=function(p,k){if(/^[A-Z]\d+$/.test(k)){var d=k.substr(1);return(this.variables[k[0]+"__"]||{})[d]}if(/^\d+$/.test(k))return(this.variables.__||{})[k];if(k=k.replace(/^TM_/,""),!!p){var w=p.session;switch(k){case"CURRENT_WORD":var y=w.getWordRange();case"SELECTION":case"SELECTED_TEXT":return w.getTextRange(y);case"CURRENT_LINE":return w.getLine(p.getCursorPosition().row);case"PREV_LINE":return w.getLine(p.getCursorPosition().row-1);case"LINE_INDEX":return p.getCursorPosition().column;case"LINE_NUMBER":return p.getCursorPosition().row+1;case"SOFT_TABS":return w.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return w.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(p,k){return this.variables.hasOwnProperty(k)?this.variables[k](p,k)||"":this.$getDefaultValue(p,k)||""},this.tmStrFormat=function(p,k,d){var w=k.flag||"",y=k.guard;y=new RegExp(y,w.replace(/[^gi]/,""));var _=this.tokenizeTmSnippet(k.fmt,"formatString"),x=this,E=p.replace(y,function(){x.variables.__=arguments;for(var S=x.resolveVariables(_,d),C="E",T=0;TL&&(L=se.column),$P?d.insert(te,t.stringRepeat(" ",$-P)):d.remove(new v(te.row,te.column,te.row,te.column-$+P)),Z.start.column=Z.end.column=L,Z.start.row=Z.end.row=te.row,Z.cursor=Z.end}),w.fromOrientedRange(y[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(d,w){var y=!0,_=!0,x,E,S;return d.map(function(j){var L=j.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?x==null?(x=L[1].length,E=L[2].length,S=L[3].length,L):(x+E+S!=L[1].length+L[2].length+L[3].length&&(_=!1),x!=L[1].length&&(y=!1),x>L[1].length&&(x=L[1].length),EL[3].length&&(S=L[3].length),L):[j]}).map(w?T:y?_?R:T:W);function C(j){return t.stringRepeat(" ",j)}function T(j){return j[2]?C(x)+j[2]+C(E-j[2].length+S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function R(j){return j[2]?C(x+E-j[2].length)+j[2]+C(S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function W(j){return j[2]?C(x)+j[2]+C(S)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}}}).call(h.prototype);function b(d,w){return d.row==w.row&&d.column==w.column}r.onSessionChange=function(d){var w=d.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var y=d.oldSession;y&&(y.multiSelect.off("addRange",this.$onAddRange),y.multiSelect.off("removeRange",this.$onRemoveRange),y.multiSelect.off("multiSelect",this.$onMultiSelect),y.multiSelect.off("singleSelect",this.$onSingleSelect),y.multiSelect.lead.off("change",this.$checkMultiselectChange),y.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function m(d){d.$multiselectOnSessionChange||(d.$onAddRange=d.$onAddRange.bind(d),d.$onRemoveRange=d.$onRemoveRange.bind(d),d.$onMultiSelect=d.$onMultiSelect.bind(d),d.$onSingleSelect=d.$onSingleSelect.bind(d),d.$multiselectOnSessionChange=r.onSessionChange.bind(d),d.$checkMultiselectChange=d.$checkMultiselectChange.bind(d),d.$multiselectOnSessionChange(d),d.on("changeSession",d.$multiselectOnSessionChange),d.on("mousedown",a),d.commands.addCommands(s.defaultCommands),k(d))}function k(d){var w=d.textInput.getElement(),y=!1;i.addListener(w,"keydown",function(x){var E=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);d.$blockSelectEnabled&&E?y||(d.renderer.setMouseCursor("crosshair"),y=!0):y&&_()}),i.addListener(w,"keyup",_),i.addListener(w,"blur",_);function _(x){y&&(d.renderer.setMouseCursor(""),y=!1)}}r.MultiSelect=m,l("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(d){m(this),d?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(d){this.$blockSelectEnabled=d},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(l,r,g){var p=l("../../range").Range,v=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(f,a,i){var t=f.getLine(i);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(f,a,i){return null},this.indentationBlock=function(f,a,i){var t=/\S/,s=f.getLine(a),o=s.search(t);if(o!=-1){for(var e=i||s.length,c=f.getLength(),u=a,h=a;++au){var m=f.getLine(h).length;return new p(u,e,h,m)}}},this.openingBracketBlock=function(f,a,i,t,s){var o={row:i,column:t+1},e=f.$findClosingBracket(a,o,s);if(e){var c=f.foldWidgets[e.row];return c==null&&(c=f.getFoldWidget(e.row)),c=="start"&&e.row>o.row&&(e.row--,e.column=f.getLine(e.row).length),p.fromPoints(o,e)}},this.closingBracketBlock=function(f,a,i,t,s){var o={row:i,column:t},e=f.$findOpeningBracket(a,o);if(e)return e.column++,o.column--,p.fromPoints(e,o)}}).call(v.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(l,r,g){r.isDark=!1,r.cssClass="ace-tm",r.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var p=l("../lib/dom");p.importCssString(r.cssText,r.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(l,r,g){l("./lib/oop");var p=l("./lib/dom");l("./range").Range;function v(f){this.session=f,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(f){var a;return this.lineWidgets?a=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0:a=0,!this.$useWrapMode||!this.$wrapData[f]?1+a:this.$wrapData[f].length+1+a},this.$getWidgetScreenLength=function(){var f=0;return this.lineWidgets.forEach(function(a){a&&a.rowCount&&!a.hidden&&(f+=a.rowCount)}),f},this.$onChangeEditor=function(f){this.attach(f.editor)},this.attach=function(f){f&&f.widgetManager&&f.widgetManager!=this&&f.widgetManager.detach(),this.editor!=f&&(this.detach(),this.editor=f,f&&(f.widgetManager=this,f.renderer.on("beforeRender",this.measureWidgets),f.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(f){var a=this.editor;if(a){this.editor=null,a.widgetManager=null,a.renderer.off("beforeRender",this.measureWidgets),a.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))})}},this.updateOnFold=function(f,a){var i=a.lineWidgets;if(!(!i||!f.action)){for(var t=f.data,s=t.start.row,o=t.end.row,e=f.action=="add",c=s+1;c0&&!t[s];)s--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,a.$cursorLayer.config=i;for(var e=s;e<=o;e++){var c=t[e];if(!(!c||!c.el)){if(c.hidden){c.el.style.top=-100-(c.pixelHeight||0)+"px";continue}c._inDocument||(c._inDocument=!0,a.container.appendChild(c.el));var u=a.$cursorLayer.getPixelPosition({row:e,column:0},!0).top;c.coverLine||(u+=i.lineHeight*this.session.getRowLineCount(c.row)),c.el.style.top=u-i.offset+"px";var h=c.coverGutter?0:a.gutterWidth;c.fixedWidth||(h-=a.scrollLeft),c.el.style.left=h+"px",c.fullWidth&&c.screenWidth&&(c.el.style.minWidth=i.width+2*i.padding+"px"),c.fixedWidth?c.el.style.right=a.scrollBar.getWidth()+"px":c.el.style.right=""}}}}}).call(v.prototype),r.LineWidgets=v});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(l,r,g){var p=l("../line_widgets").LineWidgets,v=l("../lib/dom"),f=l("../range").Range;function a(t,s,o){for(var e=0,c=t.length-1;e<=c;){var u=e+c>>1,h=o(s,t[u]);if(h>0)e=u+1;else if(h<0)c=u-1;else return u}return-(e+1)}function i(t,s,o){var e=t.getAnnotations().sort(f.comparePoints);if(e.length){var c=a(e,{row:s,column:-1},f.comparePoints);c<0&&(c=-c-1),c>=e.length?c=o>0?0:e.length-1:c===0&&o<0&&(c=e.length-1);var u=e[c];if(!(!u||!o)){if(u.row===s){do u=e[c+=o];while(u&&u.row===s);if(!u)return e.slice()}var h=[];s=u.row;do h[o<0?"unshift":"push"](u),u=e[c+=o];while(u&&u.row==s);return h.length&&h}}}r.showErrorMarker=function(t,s){var o=t.session;o.widgetManager||(o.widgetManager=new p(o),o.widgetManager.attach(t));var e=t.getCursorPosition(),c=e.row,u=o.widgetManager.getWidgetsAtRow(c).filter(function(x){return x.type=="errorMarker"})[0];u?u.destroy():c-=s;var h=i(o,c,s),b;if(h){var m=h[0];e.column=(m.pos&&typeof m.column!="number"?m.pos.sc:m.column)||0,e.row=m.row,b=t.renderer.$gutterLayer.$annotations[e.row]}else{if(u)return;b={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(e.row),t.selection.moveToPosition(e);var k={row:e.row,fixedWidth:!0,coverGutter:!0,el:v.createElement("div"),type:"errorMarker"},d=k.el.appendChild(v.createElement("div")),w=k.el.appendChild(v.createElement("div"));w.className="error_widget_arrow "+b.className;var y=t.renderer.$cursorLayer.getPixelPosition(e).left;w.style.left=y+t.renderer.gutterWidth-5+"px",k.el.className="error_widget_wrapper",d.className="error_widget "+b.className,d.innerHTML=b.text.join("
"),d.appendChild(v.createElement("div"));var _=function(x,E,S){if(E===0&&(S==="esc"||S==="return"))return k.destroy(),{command:"null"}};k.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(_),o.widgetManager.removeLineWidget(k),t.off("changeSelection",k.destroy),t.off("changeSession",k.destroy),t.off("mouseup",k.destroy),t.off("change",k.destroy))},t.keyBinding.addKeyboardHandler(_),t.on("changeSelection",k.destroy),t.on("changeSession",k.destroy),t.on("mouseup",k.destroy),t.on("change",k.destroy),t.session.widgetManager.addLineWidget(k),k.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:k.el.offsetHeight})},v.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(l,r,g){l("./lib/fixoldbrowsers");var p=l("./lib/dom"),v=l("./lib/event"),f=l("./editor").Editor,a=l("./edit_session").EditSession,i=l("./undomanager").UndoManager,t=l("./virtual_renderer").VirtualRenderer;l("./worker/worker_client"),l("./keyboard/hash_handler"),l("./placeholder"),l("./multi_select"),l("./mode/folding/fold_mode"),l("./theme/textmate"),l("./ext/error_marker"),r.config=l("./config"),r.acequire=l,r.edit=function(s){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof f)return s.env.editor;var e="";if(s&&/input|textarea/i.test(s.tagName)){var c=s;e=c.value,s=p.createElement("pre"),c.parentNode.replaceChild(s,c)}else s&&(e=p.getInnerText(s),s.innerHTML="");var u=r.createEditSession(e),h=new f(new t(s));h.setSession(u);var b={document:u,editor:h,onResize:h.resize.bind(h,null)};return c&&(b.textarea=c),v.addListener(window,"resize",b.onResize),h.on("destroy",function(){v.removeListener(window,"resize",b.onResize),b.editor.container.env=null}),h.container.env=h.env=b,h},r.createEditSession=function(s,o){var e=new a(s,o);return e.setUndoManager(new i),e},r.EditSession=a,r.UndoManager=i,r.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(l){l&&(l.config.init(!0),l.define=ace.define),window.ace||(window.ace=l);for(var r in l)l.hasOwnProperty(r)&&(window.ace[r]=l[r])})})();var brace=window.ace.acequire("ace/ace");ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(l,r,g){var p=l("./lib/oop"),v=l("./lib/event_emitter").EventEmitter,f=l("./lib/lang"),a=l("./range").Range,i=l("./anchor").Anchor,t=l("./keyboard/hash_handler").HashHandler,s=l("./tokenizer").Tokenizer,o=a.comparePoints,e=function(){this.snippetMap={},this.snippetNameMap={}};(function(){p.implement(this,v),this.getTokenizer=function(){function m(d,w,y){return d=d.substr(1),/^\d+$/.test(d)&&!y.inFormatString?[{tabstopId:parseInt(d,10)}]:[{text:d}]}function k(d){return"(?:[^\\\\"+d+"]|\\\\.)"}return e.$tokenizer=new s({start:[{regex:/:/,onMatch:function(d,w,y){return y.length&&y[0].expectIf?(y[0].expectIf=!1,y[0].elseBranch=y[0],[y[0]]):":"}},{regex:/\\./,onMatch:function(d,w,y){var _=d[1];return _=="}"&&y.length||"`$\\".indexOf(_)!=-1?d=_:y.inFormatString&&(_=="n"||_=="t"?d=` +`:"ulULE".indexOf(_)!=-1&&(d={changeCase:_,local:_>"a"})),[d]}},{regex:/}/,onMatch:function(d,w,y){return[y.length?y.shift():d]}},{regex:/\$(?:\d+|\w+)/,onMatch:m},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(d,w,y){var _=m(d.substr(1),w,y);return y.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+k("\\|")+"*\\|",onMatch:function(d,w,y){y[0].choices=d.slice(1,-1).split(",")},next:"start"},{regex:"/("+k("/")+"+)/(?:("+k("/")+"*)/)(\\w*):?",onMatch:function(d,w,y){var _=y[0];return _.fmtString=d,d=this.splitRegex.exec(d),_.guard=d[1],_.fmt=d[2],_.flag=d[3],""},next:"start"},{regex:"`"+k("`")+"*`",onMatch:function(d,w,y){return y[0].code=d.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(d,w,y){y[0]&&(y[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+k("/")+"+)/",token:"regex"},{regex:"",onMatch:function(d,w,y){y.inFormatString=!0},next:"start"}]}),e.prototype.getTokenizer=function(){return e.$tokenizer},e.$tokenizer},this.tokenizeTmSnippet=function(m,k){return this.getTokenizer().getLineTokens(m,k).tokens.map(function(d){return d.value||d})},this.$getDefaultValue=function(m,k){if(/^[A-Z]\d+$/.test(k)){var d=k.substr(1);return(this.variables[k[0]+"__"]||{})[d]}if(/^\d+$/.test(k))return(this.variables.__||{})[k];if(k=k.replace(/^TM_/,""),!!m){var w=m.session;switch(k){case"CURRENT_WORD":var y=w.getWordRange();case"SELECTION":case"SELECTED_TEXT":return w.getTextRange(y);case"CURRENT_LINE":return w.getLine(m.getCursorPosition().row);case"PREV_LINE":return w.getLine(m.getCursorPosition().row-1);case"LINE_INDEX":return m.getCursorPosition().column;case"LINE_NUMBER":return m.getCursorPosition().row+1;case"SOFT_TABS":return w.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return w.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(m,k){return this.variables.hasOwnProperty(k)?this.variables[k](m,k)||"":this.$getDefaultValue(m,k)||""},this.tmStrFormat=function(m,k,d){var w=k.flag||"",y=k.guard;y=new RegExp(y,w.replace(/[^gi]/,""));var _=this.tokenizeTmSnippet(k.fmt,"formatString"),x=this,E=m.replace(y,function(){x.variables.__=arguments;for(var S=x.resolveVariables(_,d),C="E",T=0;T1?(Z=z[z.length-1].length,U+=z.length-1):Z+=O.length,se+=O}else O.start?O.end={row:U,column:Z}:O.start={row:U,column:Z}});var te=p.getSelectionRange(),$=p.session.replace(te,se),P=new c(p),A=p.inVirtualSelectionMode&&p.selection.index;P.addTabstops(E,te.start,$,A)},this.insertSnippet=function(p,k){var d=this;if(p.inVirtualSelectionMode)return d.insertSnippetForSelection(p,k);p.forEachSelection(function(){d.insertSnippetForSelection(p,k)},null,{keepOrder:!0}),p.tabstopManager&&p.tabstopManager.tabNext()},this.$getScope=function(p){var k=p.session.$mode.$id||"";if(k=k.split("/").pop(),k==="html"||k==="php"){k==="php"&&!p.session.$mode.inlinePhp&&(k="html");var d=p.getCursorPosition(),w=p.session.getState(d.row);typeof w=="object"&&(w=w[0]),w.substring&&(w.substring(0,3)=="js-"?k="javascript":w.substring(0,4)=="css-"?k="css":w.substring(0,4)=="php-"&&(k="php"))}return k},this.getActiveScopes=function(p){var k=this.$getScope(p),d=[k],w=this.snippetMap;return w[k]&&w[k].includeScopes&&d.push.apply(d,w[k].includeScopes),d.push("_"),d},this.expandWithTab=function(p,k){var d=this,w=p.forEachSelection(function(){return d.expandSnippetForSelection(p,k)},null,{keepOrder:!0});return w&&p.tabstopManager&&p.tabstopManager.tabNext(),w},this.expandSnippetForSelection=function(p,k){var d=p.getCursorPosition(),w=p.session.getLine(d.row),y=w.substring(0,d.column),_=w.substr(d.column),x=this.snippetMap,E;return this.getActiveScopes(p).some(function(S){var C=x[S];return C&&(E=this.findMatchingSnippet(C,y,_)),!!E},this),E?(k&&k.dryRun||(p.session.doc.removeInLine(d.row,d.column-E.replaceBefore.length,d.column+E.replaceAfter.length),this.variables.M__=E.matchBefore,this.variables.T__=E.matchAfter,this.insertSnippetForSelection(p,E.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(p,k,d){for(var w=p.length;w--;){var y=p[w];if(!(y.startRe&&!y.startRe.test(k))&&!(y.endRe&&!y.endRe.test(d))&&!(!y.startRe&&!y.endRe))return y.matchBefore=y.startRe?y.startRe.exec(k):[""],y.matchAfter=y.endRe?y.endRe.exec(d):[""],y.replaceBefore=y.triggerRe?y.triggerRe.exec(k)[0]:"",y.replaceAfter=y.endTriggerRe?y.endTriggerRe.exec(d)[0]:"",y}},this.snippetMap={},this.snippetNameMap={},this.register=function(p,k){var d=this.snippetMap,w=this.snippetNameMap,y=this;p||(p=[]);function _(S){return S&&!/^\^?\(.*\)\$?$|^\\b$/.test(S)&&(S="(?:"+S+")"),S||""}function x(S,C,T){return S=_(S),C=_(C),T?(S=C+S,S&&S[S.length-1]!="$"&&(S=S+"$")):(S=S+C,S&&S[0]!="^"&&(S="^"+S)),new RegExp(S)}function E(S){S.scope||(S.scope=k||"_"),k=S.scope,d[k]||(d[k]=[],w[k]={});var C=w[k];if(S.name){var T=C[S.name];T&&y.unregister(T),C[S.name]=S}d[k].push(S),S.tabTrigger&&!S.trigger&&(!S.guard&&/^\w/.test(S.tabTrigger)&&(S.guard="\\b"),S.trigger=f.escapeRegExp(S.tabTrigger)),!(!S.trigger&&!S.guard&&!S.endTrigger&&!S.endGuard)&&(S.startRe=x(S.trigger,S.guard,!0),S.triggerRe=new RegExp(S.trigger,"",!0),S.endRe=x(S.endTrigger,S.endGuard,!0),S.endTriggerRe=new RegExp(S.endTrigger,"",!0))}p&&p.content?E(p):Array.isArray(p)&&p.forEach(E),this._signal("registerSnippets",{scope:k})},this.unregister=function(p,k){var d=this.snippetMap,w=this.snippetNameMap;function y(_){var x=w[_.scope||k];if(x&&x[_.name]){delete x[_.name];var E=d[_.scope||k],S=E&&E.indexOf(_);S>=0&&E.splice(S,1)}}p.content?y(p):Array.isArray(p)&&p.forEach(y)},this.parseSnippetFile=function(p){p=p.replace(/\r/g,"");for(var k=[],d={},w=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,y;y=w.exec(p);){if(y[1])try{d=JSON.parse(y[1]),k.push(d)}catch{}if(y[4])d.content=y[4].replace(/^\t/gm,""),k.push(d),d={};else{var _=y[2],x=y[3];if(_=="regex"){var E=/\/((?:[^\/\\]|\\.)*)|$/g;d.guard=E.exec(x)[1],d.trigger=E.exec(x)[1],d.endTrigger=E.exec(x)[1],d.endGuard=E.exec(x)[1]}else _=="snippet"?(d.tabTrigger=x.match(/^\S*/)[0],d.name||(d.name=x)):d[_]=x}}return k},this.getSnippetByName=function(p,k){var d=this.snippetNameMap,w;return this.getActiveScopes(k).some(function(y){var _=d[y];return _&&(w=_[p]),!!w},this),w}}).call(e.prototype);var c=function(p){if(p.tabstopManager)return p.tabstopManager;p.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(p)};(function(){this.attach=function(p){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=p,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(p){var k=p.action[0]=="r",d=p.start,w=p.end,y=d.row,_=w.row,x=_-y,E=w.column-d.column;if(k&&(x=-x,E=-E),!this.$inChange&&k){var S=this.selectedTabstop,C=S&&!S.some(function(j){return o(j.start,d)<=0&&o(j.end,w)>=0});if(C)return this.detach()}for(var T=this.ranges,R=0;R0){this.removeRange(W),R--;continue}W.start.row==y&&W.start.column>d.column&&(W.start.column+=E),W.end.row==y&&W.end.column>=d.column&&(W.end.column+=E),W.start.row>=y&&(W.start.row+=x),W.end.row>=y&&(W.end.row+=x),o(W.start,W.end)>0&&this.removeRange(W)}}T.length||this.detach()},this.updateLinkedFields=function(){var p=this.selectedTabstop;if(!(!p||!p.hasLinkedRanges)){this.$inChange=!0;for(var k=this.editor.session,d=k.getTextRange(p.firstNonLinked),w=p.length;w--;){var y=p[w];if(y.linked){var _=r.snippetManager.tmStrFormat(d,y.original);k.replace(y,_)}}this.$inChange=!1}},this.onAfterExec=function(p){p.command&&!p.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var p=this.editor.selection.lead,k=this.editor.selection.anchor,d=this.editor.selection.isEmpty(),w=this.ranges.length;w--;)if(!this.ranges[w].linked){var y=this.ranges[w].contains(p.row,p.column),_=d||this.ranges[w].contains(k.row,k.column);if(y&&_)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(p){var k=this.tabstops.length,d=this.index+(p||1);d=Math.min(Math.max(d,1),k),d==k&&(d=0),this.selectTabstop(d),d===0&&this.detach()},this.selectTabstop=function(p){this.$openTabstops=null;var k=this.tabstops[this.index];if(k&&this.addTabstopMarkers(k),this.index=p,k=this.tabstops[this.index],!(!k||!k.length)){if(this.selectedTabstop=k,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(k.firstNonLinked);else{var d=this.editor.multiSelect;d.toSingleRange(k.firstNonLinked.clone());for(var w=k.length;w--;)k.hasLinkedRanges&&k[w].linked||d.addRange(k[w].clone(),!0);d.ranges[0]&&d.addRange(d.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(p,k,d){if(this.$openTabstops||(this.$openTabstops=[]),!p[0]){var w=a.fromPoints(d,d);h(w.start,k),h(w.end,k),p[0]=[w],p[0].index=0}var y=this.index,_=[y+1,0],x=this.ranges;p.forEach(function(E,S){for(var C=this.$openTabstops[S]||E,T=E.length;T--;){var R=E[T],W=a.fromPoints(R.start,R.end||R.start);u(W.start,k),u(W.end,k),W.original=R,W.tabstop=C,x.push(W),C!=E?C.unshift(W):C[T]=W,R.fmtString?(W.linked=!0,C.hasLinkedRanges=!0):C.firstNonLinked||(C.firstNonLinked=W)}C.firstNonLinked||(C.hasLinkedRanges=!1),C===E&&(_.push(C),this.$openTabstops[S]=C),this.addTabstopMarkers(C)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},this.addTabstopMarkers=function(p){var k=this.editor.session;p.forEach(function(d){d.markerId||(d.markerId=k.addMarker(d,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(p){var k=this.editor.session;p.forEach(function(d){k.removeMarker(d.markerId),d.markerId=null})},this.removeRange=function(p){var k=p.tabstop.indexOf(p);p.tabstop.splice(k,1),k=this.ranges.indexOf(p),this.ranges.splice(k,1),this.editor.session.removeMarker(p.markerId),p.tabstop.length||(k=this.tabstops.indexOf(p.tabstop),k!=-1&&this.tabstops.splice(k,1),this.tabstops.length||this.detach())},this.keyboardHandler=new t,this.keyboardHandler.bindKeys({Tab:function(p){r.snippetManager&&r.snippetManager.expandWithTab(p)||p.tabstopManager.tabNext(1)},"Shift-Tab":function(p){p.tabstopManager.tabNext(-1)},Esc:function(p){p.tabstopManager.detach()},Return:function(p){return!1}})}).call(c.prototype),i.prototype.onChange;var u=function(p,k){p.row==0&&(p.column+=k.column),p.row+=k.row},h=function(p,k){p.row==k.row&&(p.column-=k.column),p.row-=k.row};l("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),r.snippetManager=new e;var b=l("./editor").Editor;(function(){this.insertSnippet=function(p,k){return r.snippetManager.insertSnippet(this,p,k)},this.expandSnippet=function(p){return r.snippetManager.expandWithTab(this,p)}}).call(b.prototype)});ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],function(l,r,m){var g=l("ace/keyboard/hash_handler").HashHandler,v=l("ace/editor").Editor,f=l("ace/snippets").snippetManager,a=l("ace/range").Range,i,t;function s(){}s.prototype={setupContext:function(b){this.ace=b,this.indentation=b.session.getTabString(),i||(i=window.emmet);var p=i.resources||i.require("resources");p.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var b=this.ace.getSelectionRange(),p=this.ace.session.doc;return{start:p.positionToIndex(b.start),end:p.positionToIndex(b.end)}},createSelection:function(b,p){var k=this.ace.session.doc;this.ace.selection.setRange({start:k.indexToPosition(b),end:k.indexToPosition(p)})},getCurrentLineRange:function(){var b=this.ace,p=b.getCursorPosition().row,k=b.session.getLine(p).length,d=b.session.doc.positionToIndex({row:p,column:0});return{start:d,end:d+k}},getCaretPos:function(){var b=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(b)},setCaretPos:function(b){var p=this.ace.session.doc.indexToPosition(b);this.ace.selection.moveToPosition(p)},getCurrentLine:function(){var b=this.ace.getCursorPosition().row;return this.ace.session.getLine(b)},replaceContent:function(b,p,k,d){k==null&&(k=p??this.getContent().length),p==null&&(p=0);var w=this.ace,y=w.session.doc,_=a.fromPoints(y.indexToPosition(p),y.indexToPosition(k));w.session.remove(_),_.end=_.start,b=this.$updateTabstops(b),f.insertSnippet(w,b)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var b=this.ace.session.$modeId.split("/").pop();if(b=="html"||b=="php"){var p=this.ace.getCursorPosition(),k=this.ace.session.getState(p.row);typeof k!="string"&&(k=k[0]),k&&(k=k.split("-"),k.length>1?b=k[0]:b=="php"&&(b="html"))}return b},getProfileName:function(){var b=i.resources||i.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var p=b.getVariable("profile");return p||(p=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)!=-1?"xhtml":"html"),p;default:var k=this.ace.session.$mode;return k.emmetConfig&&k.emmetConfig.profile||"xhtml"}},prompt:function(b){return prompt(b)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(b){var p=1e3,k=0,d=null,w=i.tabStops||i.require("tabStops"),y=i.resources||i.require("resources"),_=y.getVocabulary("user"),x={tabstop:function(S){var C=parseInt(S.group,10),T=C===0;T?C=++k:C+=p;var R=S.placeholder;R&&(R=w.processText(R,x));var W="${"+C+(R?":"+R:"")+"}";return T&&(d=[S.start,W]),W},escape:function(S){return S=="$"?"\\$":S=="\\"?"\\\\":S}};if(b=w.processText(b,x),_.variables.insert_final_tabstop&&!/\$\{0\}$/.test(b))b+="${0}";else if(d){var E=i.utils?i.utils.common:i.require("utils");b=E.replaceSubstring(b,"${0}",d[0],d[1])}return b}};var o={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},e=new s;r.commands=new g,r.runEmmetCommand=function b(p){try{e.setupContext(p);var k=i.actions||i.require("actions");if(this.action=="expand_abbreviation_with_tab"){if(!p.selection.isEmpty())return!1;var d=p.selection.lead,w=p.session.getTokenAt(d.row,d.column);if(w&&/\btag\b/.test(w.type))return!1}if(this.action=="wrap_with_abbreviation")return setTimeout(function(){k.run("wrap_with_abbreviation",e)},0);var y=k.run(this.action,e)}catch(_){if(!i)return h(b.bind(this,p)),!0;p._signal("changeStatus",typeof _=="string"?_:_.message),console.log(_),y=!1}return y};for(var c in o)r.commands.addCommand({name:"emmet:"+c,action:c,bindKey:o[c],exec:r.runEmmetCommand,multiSelectAction:"forEach"});r.updateCommands=function(b,p){p?b.keyBinding.addKeyboardHandler(r.commands):b.keyBinding.removeKeyboardHandler(r.commands)},r.isSupportedMode=function(b){if(!b)return!1;if(b.emmetConfig)return!0;var p=b.$id||b;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(p)},r.isAvailable=function(b,p){if(/(evaluate_math_expression|expand_abbreviation)$/.test(p))return!0;var k=b.session.$mode,d=r.isSupportedMode(k);if(d&&k.$modes)try{e.setupContext(b),/js|php/.test(e.getSyntax())&&(d=!1)}catch{}return d};var u=function(b,p){var k=p;if(k){var d=r.isSupportedMode(k.session.$mode);b.enableEmmet===!1&&(d=!1),d&&h(),r.updateCommands(k,d)}},h=function(b){typeof t=="string"&&l("ace/config").loadModule(t,function(){t=null,b&&b()})};r.AceEmmetEditor=s,l("ace/config").defineOptions(v.prototype,"editor",{enableEmmet:{set:function(b){this[b?"on":"removeListener"]("changeMode",u),u({enableEmmet:!!b},this)},value:!0}}),r.setCore=function(b){typeof b=="string"?t=b:i=b}});(function(){ace.acequire(["ace/ext/emmet"],function(){})})();function create_fragment$9(l){let r,m;return{c(){r=element("div"),m=element("div"),attr(m,"id",l[2]),set_style(m,"width",px(l[1])),set_style(m,"height",px(l[0])),set_style(r,"width",px(l[1])),set_style(r,"height",px(l[0]))},m(g,v){insert(g,r,v),append(r,m)},p(g,[v]){v&2&&set_style(m,"width",px(g[1])),v&1&&set_style(m,"height",px(g[0])),v&2&&set_style(r,"width",px(g[1])),v&1&&set_style(r,"height",px(g[0]))},i:noop,o:noop,d(g){g&&detach(r)}}}const ValidPxDigitsRegEx=/^\d*$/;function px(l){return ValidPxDigitsRegEx.test(l)?l+"px":l}function instance$9(l,r,m){const g=`svelte-ace-editor-div:${Math.floor(Math.random()*1e10)}`,v=createEventDispatcher();let{value:f=""}=r,{lang:a="json"}=r,{theme:i="chrome"}=r,{height:t="100%"}=r,{width:s="100%"}=r,{options:o={}}=r,{readonly:e=!1}=r,c,u="";onDestroy(()=>{c&&(c.destroy(),c.container.remove())});function h(_){u!==_&&c&&typeof _=="string"&&(c.session.setValue(_),u=_)}function b(_){c&&c.setTheme("ace/theme/"+_)}function p(_){c&&c.getSession().setMode("ace/mode/"+_)}function k(_){c&&c.setOptions(_)}function d(_){c&&c.setReadOnly(_)}const w=()=>tick().then(()=>{c&&c.resize()});onMount(()=>{m(4,a=a||"text"),m(5,i=i||"chrome"),c=brace.edit(g),v("init",c),c.$blockScrolling=1/0,c.getSession().setMode("ace/mode/"+a),c.setTheme("ace/theme/"+i),c.setValue(f,1),c.setReadOnly(e),u=f,y(),o&&c.setOptions(o)});function y(){c.onBlur=()=>v("blur"),c.onChangeMode=_=>v("changeMode",_),c.onCommandKey=(_,x,E)=>v("commandKey",{err:_,hashId:x,keyCode:E}),c.onCopy=()=>v("copy"),c.onCursorChange=()=>v("cursorChange"),c.onCut=()=>{const _=c.getCopyText();console.log("cut event : ",_),c.insert(""),v("cut")},c.onDocumentChange=_=>v("documentChange",_),c.onFocus=()=>v("focus"),c.onPaste=_=>{console.log("paste event : ",_),c.insert(_),v("paste",_)},c.onSelectionChange=_=>v("selectionChange",_),c.on("change",function(){const _=c.getValue();m(3,f=_),v("input",_),u=_})}return l.$$set=_=>{"value"in _&&m(3,f=_.value),"lang"in _&&m(4,a=_.lang),"theme"in _&&m(5,i=_.theme),"height"in _&&m(0,t=_.height),"width"in _&&m(1,s=_.width),"options"in _&&m(6,o=_.options),"readonly"in _&&m(7,e=_.readonly)},l.$$.update=()=>{l.$$.dirty&8&&h(f),l.$$.dirty&32&&b(i),l.$$.dirty&16&&p(a),l.$$.dirty&64&&k(o),l.$$.dirty&128&&d(e),l.$$.dirty&3&&t!==null&&s!==null&&w()},[t,s,g,f,a,i,o,e]}class AceEditor extends SvelteComponent{constructor(r){super(),init(this,r,instance$9,create_fragment$9,safe_not_equal,{value:3,lang:4,theme:5,height:0,width:1,options:6,readonly:7})}}var javascript={},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,javascript.id="ace/mode/javascript_worker",javascript.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module '"+name+"'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this +`);z.length>1?(Z=z[z.length-1].length,U+=z.length-1):Z+=O.length,se+=O}else O.start?O.end={row:U,column:Z}:O.start={row:U,column:Z}});var te=m.getSelectionRange(),$=m.session.replace(te,se),P=new c(m),A=m.inVirtualSelectionMode&&m.selection.index;P.addTabstops(E,te.start,$,A)},this.insertSnippet=function(m,k){var d=this;if(m.inVirtualSelectionMode)return d.insertSnippetForSelection(m,k);m.forEachSelection(function(){d.insertSnippetForSelection(m,k)},null,{keepOrder:!0}),m.tabstopManager&&m.tabstopManager.tabNext()},this.$getScope=function(m){var k=m.session.$mode.$id||"";if(k=k.split("/").pop(),k==="html"||k==="php"){k==="php"&&!m.session.$mode.inlinePhp&&(k="html");var d=m.getCursorPosition(),w=m.session.getState(d.row);typeof w=="object"&&(w=w[0]),w.substring&&(w.substring(0,3)=="js-"?k="javascript":w.substring(0,4)=="css-"?k="css":w.substring(0,4)=="php-"&&(k="php"))}return k},this.getActiveScopes=function(m){var k=this.$getScope(m),d=[k],w=this.snippetMap;return w[k]&&w[k].includeScopes&&d.push.apply(d,w[k].includeScopes),d.push("_"),d},this.expandWithTab=function(m,k){var d=this,w=m.forEachSelection(function(){return d.expandSnippetForSelection(m,k)},null,{keepOrder:!0});return w&&m.tabstopManager&&m.tabstopManager.tabNext(),w},this.expandSnippetForSelection=function(m,k){var d=m.getCursorPosition(),w=m.session.getLine(d.row),y=w.substring(0,d.column),_=w.substr(d.column),x=this.snippetMap,E;return this.getActiveScopes(m).some(function(S){var C=x[S];return C&&(E=this.findMatchingSnippet(C,y,_)),!!E},this),E?(k&&k.dryRun||(m.session.doc.removeInLine(d.row,d.column-E.replaceBefore.length,d.column+E.replaceAfter.length),this.variables.M__=E.matchBefore,this.variables.T__=E.matchAfter,this.insertSnippetForSelection(m,E.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(m,k,d){for(var w=m.length;w--;){var y=m[w];if(!(y.startRe&&!y.startRe.test(k))&&!(y.endRe&&!y.endRe.test(d))&&!(!y.startRe&&!y.endRe))return y.matchBefore=y.startRe?y.startRe.exec(k):[""],y.matchAfter=y.endRe?y.endRe.exec(d):[""],y.replaceBefore=y.triggerRe?y.triggerRe.exec(k)[0]:"",y.replaceAfter=y.endTriggerRe?y.endTriggerRe.exec(d)[0]:"",y}},this.snippetMap={},this.snippetNameMap={},this.register=function(m,k){var d=this.snippetMap,w=this.snippetNameMap,y=this;m||(m=[]);function _(S){return S&&!/^\^?\(.*\)\$?$|^\\b$/.test(S)&&(S="(?:"+S+")"),S||""}function x(S,C,T){return S=_(S),C=_(C),T?(S=C+S,S&&S[S.length-1]!="$"&&(S=S+"$")):(S=S+C,S&&S[0]!="^"&&(S="^"+S)),new RegExp(S)}function E(S){S.scope||(S.scope=k||"_"),k=S.scope,d[k]||(d[k]=[],w[k]={});var C=w[k];if(S.name){var T=C[S.name];T&&y.unregister(T),C[S.name]=S}d[k].push(S),S.tabTrigger&&!S.trigger&&(!S.guard&&/^\w/.test(S.tabTrigger)&&(S.guard="\\b"),S.trigger=f.escapeRegExp(S.tabTrigger)),!(!S.trigger&&!S.guard&&!S.endTrigger&&!S.endGuard)&&(S.startRe=x(S.trigger,S.guard,!0),S.triggerRe=new RegExp(S.trigger,"",!0),S.endRe=x(S.endTrigger,S.endGuard,!0),S.endTriggerRe=new RegExp(S.endTrigger,"",!0))}m&&m.content?E(m):Array.isArray(m)&&m.forEach(E),this._signal("registerSnippets",{scope:k})},this.unregister=function(m,k){var d=this.snippetMap,w=this.snippetNameMap;function y(_){var x=w[_.scope||k];if(x&&x[_.name]){delete x[_.name];var E=d[_.scope||k],S=E&&E.indexOf(_);S>=0&&E.splice(S,1)}}m.content?y(m):Array.isArray(m)&&m.forEach(y)},this.parseSnippetFile=function(m){m=m.replace(/\r/g,"");for(var k=[],d={},w=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,y;y=w.exec(m);){if(y[1])try{d=JSON.parse(y[1]),k.push(d)}catch{}if(y[4])d.content=y[4].replace(/^\t/gm,""),k.push(d),d={};else{var _=y[2],x=y[3];if(_=="regex"){var E=/\/((?:[^\/\\]|\\.)*)|$/g;d.guard=E.exec(x)[1],d.trigger=E.exec(x)[1],d.endTrigger=E.exec(x)[1],d.endGuard=E.exec(x)[1]}else _=="snippet"?(d.tabTrigger=x.match(/^\S*/)[0],d.name||(d.name=x)):d[_]=x}}return k},this.getSnippetByName=function(m,k){var d=this.snippetNameMap,w;return this.getActiveScopes(k).some(function(y){var _=d[y];return _&&(w=_[m]),!!w},this),w}}).call(e.prototype);var c=function(m){if(m.tabstopManager)return m.tabstopManager;m.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(m)};(function(){this.attach=function(m){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=m,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(m){var k=m.action[0]=="r",d=m.start,w=m.end,y=d.row,_=w.row,x=_-y,E=w.column-d.column;if(k&&(x=-x,E=-E),!this.$inChange&&k){var S=this.selectedTabstop,C=S&&!S.some(function(j){return o(j.start,d)<=0&&o(j.end,w)>=0});if(C)return this.detach()}for(var T=this.ranges,R=0;R0){this.removeRange(W),R--;continue}W.start.row==y&&W.start.column>d.column&&(W.start.column+=E),W.end.row==y&&W.end.column>=d.column&&(W.end.column+=E),W.start.row>=y&&(W.start.row+=x),W.end.row>=y&&(W.end.row+=x),o(W.start,W.end)>0&&this.removeRange(W)}}T.length||this.detach()},this.updateLinkedFields=function(){var m=this.selectedTabstop;if(!(!m||!m.hasLinkedRanges)){this.$inChange=!0;for(var k=this.editor.session,d=k.getTextRange(m.firstNonLinked),w=m.length;w--;){var y=m[w];if(y.linked){var _=r.snippetManager.tmStrFormat(d,y.original);k.replace(y,_)}}this.$inChange=!1}},this.onAfterExec=function(m){m.command&&!m.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var m=this.editor.selection.lead,k=this.editor.selection.anchor,d=this.editor.selection.isEmpty(),w=this.ranges.length;w--;)if(!this.ranges[w].linked){var y=this.ranges[w].contains(m.row,m.column),_=d||this.ranges[w].contains(k.row,k.column);if(y&&_)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(m){var k=this.tabstops.length,d=this.index+(m||1);d=Math.min(Math.max(d,1),k),d==k&&(d=0),this.selectTabstop(d),d===0&&this.detach()},this.selectTabstop=function(m){this.$openTabstops=null;var k=this.tabstops[this.index];if(k&&this.addTabstopMarkers(k),this.index=m,k=this.tabstops[this.index],!(!k||!k.length)){if(this.selectedTabstop=k,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(k.firstNonLinked);else{var d=this.editor.multiSelect;d.toSingleRange(k.firstNonLinked.clone());for(var w=k.length;w--;)k.hasLinkedRanges&&k[w].linked||d.addRange(k[w].clone(),!0);d.ranges[0]&&d.addRange(d.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(m,k,d){if(this.$openTabstops||(this.$openTabstops=[]),!m[0]){var w=a.fromPoints(d,d);h(w.start,k),h(w.end,k),m[0]=[w],m[0].index=0}var y=this.index,_=[y+1,0],x=this.ranges;m.forEach(function(E,S){for(var C=this.$openTabstops[S]||E,T=E.length;T--;){var R=E[T],W=a.fromPoints(R.start,R.end||R.start);u(W.start,k),u(W.end,k),W.original=R,W.tabstop=C,x.push(W),C!=E?C.unshift(W):C[T]=W,R.fmtString?(W.linked=!0,C.hasLinkedRanges=!0):C.firstNonLinked||(C.firstNonLinked=W)}C.firstNonLinked||(C.hasLinkedRanges=!1),C===E&&(_.push(C),this.$openTabstops[S]=C),this.addTabstopMarkers(C)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},this.addTabstopMarkers=function(m){var k=this.editor.session;m.forEach(function(d){d.markerId||(d.markerId=k.addMarker(d,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(m){var k=this.editor.session;m.forEach(function(d){k.removeMarker(d.markerId),d.markerId=null})},this.removeRange=function(m){var k=m.tabstop.indexOf(m);m.tabstop.splice(k,1),k=this.ranges.indexOf(m),this.ranges.splice(k,1),this.editor.session.removeMarker(m.markerId),m.tabstop.length||(k=this.tabstops.indexOf(m.tabstop),k!=-1&&this.tabstops.splice(k,1),this.tabstops.length||this.detach())},this.keyboardHandler=new t,this.keyboardHandler.bindKeys({Tab:function(m){r.snippetManager&&r.snippetManager.expandWithTab(m)||m.tabstopManager.tabNext(1)},"Shift-Tab":function(m){m.tabstopManager.tabNext(-1)},Esc:function(m){m.tabstopManager.detach()},Return:function(m){return!1}})}).call(c.prototype),i.prototype.onChange;var u=function(m,k){m.row==0&&(m.column+=k.column),m.row+=k.row},h=function(m,k){m.row==k.row&&(m.column-=k.column),m.row-=k.row};l("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),r.snippetManager=new e;var b=l("./editor").Editor;(function(){this.insertSnippet=function(m,k){return r.snippetManager.insertSnippet(this,m,k)},this.expandSnippet=function(m){return r.snippetManager.expandWithTab(this,m)}}).call(b.prototype)});ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],function(l,r,g){var p=l("ace/keyboard/hash_handler").HashHandler,v=l("ace/editor").Editor,f=l("ace/snippets").snippetManager,a=l("ace/range").Range,i,t;function s(){}s.prototype={setupContext:function(b){this.ace=b,this.indentation=b.session.getTabString(),i||(i=window.emmet);var m=i.resources||i.require("resources");m.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var b=this.ace.getSelectionRange(),m=this.ace.session.doc;return{start:m.positionToIndex(b.start),end:m.positionToIndex(b.end)}},createSelection:function(b,m){var k=this.ace.session.doc;this.ace.selection.setRange({start:k.indexToPosition(b),end:k.indexToPosition(m)})},getCurrentLineRange:function(){var b=this.ace,m=b.getCursorPosition().row,k=b.session.getLine(m).length,d=b.session.doc.positionToIndex({row:m,column:0});return{start:d,end:d+k}},getCaretPos:function(){var b=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(b)},setCaretPos:function(b){var m=this.ace.session.doc.indexToPosition(b);this.ace.selection.moveToPosition(m)},getCurrentLine:function(){var b=this.ace.getCursorPosition().row;return this.ace.session.getLine(b)},replaceContent:function(b,m,k,d){k==null&&(k=m??this.getContent().length),m==null&&(m=0);var w=this.ace,y=w.session.doc,_=a.fromPoints(y.indexToPosition(m),y.indexToPosition(k));w.session.remove(_),_.end=_.start,b=this.$updateTabstops(b),f.insertSnippet(w,b)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var b=this.ace.session.$modeId.split("/").pop();if(b=="html"||b=="php"){var m=this.ace.getCursorPosition(),k=this.ace.session.getState(m.row);typeof k!="string"&&(k=k[0]),k&&(k=k.split("-"),k.length>1?b=k[0]:b=="php"&&(b="html"))}return b},getProfileName:function(){var b=i.resources||i.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var m=b.getVariable("profile");return m||(m=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)!=-1?"xhtml":"html"),m;default:var k=this.ace.session.$mode;return k.emmetConfig&&k.emmetConfig.profile||"xhtml"}},prompt:function(b){return prompt(b)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(b){var m=1e3,k=0,d=null,w=i.tabStops||i.require("tabStops"),y=i.resources||i.require("resources"),_=y.getVocabulary("user"),x={tabstop:function(S){var C=parseInt(S.group,10),T=C===0;T?C=++k:C+=m;var R=S.placeholder;R&&(R=w.processText(R,x));var W="${"+C+(R?":"+R:"")+"}";return T&&(d=[S.start,W]),W},escape:function(S){return S=="$"?"\\$":S=="\\"?"\\\\":S}};if(b=w.processText(b,x),_.variables.insert_final_tabstop&&!/\$\{0\}$/.test(b))b+="${0}";else if(d){var E=i.utils?i.utils.common:i.require("utils");b=E.replaceSubstring(b,"${0}",d[0],d[1])}return b}};var o={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},e=new s;r.commands=new p,r.runEmmetCommand=function b(m){try{e.setupContext(m);var k=i.actions||i.require("actions");if(this.action=="expand_abbreviation_with_tab"){if(!m.selection.isEmpty())return!1;var d=m.selection.lead,w=m.session.getTokenAt(d.row,d.column);if(w&&/\btag\b/.test(w.type))return!1}if(this.action=="wrap_with_abbreviation")return setTimeout(function(){k.run("wrap_with_abbreviation",e)},0);var y=k.run(this.action,e)}catch(_){if(!i)return h(b.bind(this,m)),!0;m._signal("changeStatus",typeof _=="string"?_:_.message),console.log(_),y=!1}return y};for(var c in o)r.commands.addCommand({name:"emmet:"+c,action:c,bindKey:o[c],exec:r.runEmmetCommand,multiSelectAction:"forEach"});r.updateCommands=function(b,m){m?b.keyBinding.addKeyboardHandler(r.commands):b.keyBinding.removeKeyboardHandler(r.commands)},r.isSupportedMode=function(b){if(!b)return!1;if(b.emmetConfig)return!0;var m=b.$id||b;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(m)},r.isAvailable=function(b,m){if(/(evaluate_math_expression|expand_abbreviation)$/.test(m))return!0;var k=b.session.$mode,d=r.isSupportedMode(k);if(d&&k.$modes)try{e.setupContext(b),/js|php/.test(e.getSyntax())&&(d=!1)}catch{}return d};var u=function(b,m){var k=m;if(k){var d=r.isSupportedMode(k.session.$mode);b.enableEmmet===!1&&(d=!1),d&&h(),r.updateCommands(k,d)}},h=function(b){typeof t=="string"&&l("ace/config").loadModule(t,function(){t=null,b&&b()})};r.AceEmmetEditor=s,l("ace/config").defineOptions(v.prototype,"editor",{enableEmmet:{set:function(b){this[b?"on":"removeListener"]("changeMode",u),u({enableEmmet:!!b},this)},value:!0}}),r.setCore=function(b){typeof b=="string"?t=b:i=b}});(function(){ace.acequire(["ace/ext/emmet"],function(){})})();function create_fragment$b(l){let r,g;return{c(){r=element("div"),g=element("div"),attr(g,"id",l[2]),set_style(g,"width",px(l[1])),set_style(g,"height",px(l[0])),set_style(r,"width",px(l[1])),set_style(r,"height",px(l[0]))},m(p,v){insert(p,r,v),append(r,g)},p(p,[v]){v&2&&set_style(g,"width",px(p[1])),v&1&&set_style(g,"height",px(p[0])),v&2&&set_style(r,"width",px(p[1])),v&1&&set_style(r,"height",px(p[0]))},i:noop,o:noop,d(p){p&&detach(r)}}}const ValidPxDigitsRegEx=/^\d*$/;function px(l){return ValidPxDigitsRegEx.test(l)?l+"px":l}function instance$b(l,r,g){const p=`svelte-ace-editor-div:${Math.floor(Math.random()*1e10)}`,v=createEventDispatcher();let{value:f=""}=r,{lang:a="json"}=r,{theme:i="chrome"}=r,{height:t="100%"}=r,{width:s="100%"}=r,{options:o={}}=r,{readonly:e=!1}=r,c,u="";onDestroy(()=>{c&&(c.destroy(),c.container.remove())});function h(_){u!==_&&c&&typeof _=="string"&&(c.session.setValue(_),u=_)}function b(_){c&&c.setTheme("ace/theme/"+_)}function m(_){c&&c.getSession().setMode("ace/mode/"+_)}function k(_){c&&c.setOptions(_)}function d(_){c&&c.setReadOnly(_)}const w=()=>tick().then(()=>{c&&c.resize()});onMount(()=>{g(4,a=a||"text"),g(5,i=i||"chrome"),c=brace.edit(p),v("init",c),c.$blockScrolling=1/0,c.getSession().setMode("ace/mode/"+a),c.setTheme("ace/theme/"+i),c.setValue(f,1),c.setReadOnly(e),u=f,y(),o&&c.setOptions(o)});function y(){c.onBlur=()=>v("blur"),c.onChangeMode=_=>v("changeMode",_),c.onCommandKey=(_,x,E)=>v("commandKey",{err:_,hashId:x,keyCode:E}),c.onCopy=()=>v("copy"),c.onCursorChange=()=>v("cursorChange"),c.onCut=()=>{const _=c.getCopyText();console.log("cut event : ",_),c.insert(""),v("cut")},c.onDocumentChange=_=>v("documentChange",_),c.onFocus=()=>v("focus"),c.onPaste=_=>{console.log("paste event : ",_),c.insert(_),v("paste",_)},c.onSelectionChange=_=>v("selectionChange",_),c.on("change",function(){const _=c.getValue();g(3,f=_),v("input",_),u=_})}return l.$$set=_=>{"value"in _&&g(3,f=_.value),"lang"in _&&g(4,a=_.lang),"theme"in _&&g(5,i=_.theme),"height"in _&&g(0,t=_.height),"width"in _&&g(1,s=_.width),"options"in _&&g(6,o=_.options),"readonly"in _&&g(7,e=_.readonly)},l.$$.update=()=>{l.$$.dirty&8&&h(f),l.$$.dirty&32&&b(i),l.$$.dirty&16&&m(a),l.$$.dirty&64&&k(o),l.$$.dirty&128&&d(e),l.$$.dirty&3&&t!==null&&s!==null&&w()},[t,s,p,f,a,i,o,e]}class AceEditor extends SvelteComponent{constructor(r){super(),init(this,r,instance$b,create_fragment$b,safe_not_equal,{value:3,lang:4,theme:5,height:0,width:1,options:6,readonly:7})}}var javascript={},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,javascript.id="ace/mode/javascript_worker",javascript.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module '"+name+"'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this }if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^\${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash }).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||'"'!==ch1&&"'"!==ch1||(m=m.substr(1,m.length-2).replace('\\\\"','"')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount) },verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim('"').reach=!0,delim("'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1; for(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\v";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case'"':char='\\\\"';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("\`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"\`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="\${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()}; if("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"\`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if('"'!==quote&&"'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&'"'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:[""]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token) -},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"'"!==data.quote&&(code="W109"),"double"===quotmark&&'"'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable '(.+)'.",'Missing "use strict"']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\['{a}'\\\\] is better written in dot notation.","'{a}' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{(['"]/.test(str)?(error.reason='Missing ";" before statement',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"'{a}' is not defined."==raw?type="warning":"'{a}' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),javascript}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(l,r,m){var g=l("../lib/oop"),v=l("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},f.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};g.inherits(f,v),f.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},f.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},f.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.DocCommentHighlightRules=f});ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(l,r,m){var g=l("../lib/oop"),v=l("./doc_comment_highlight_rules").DocCommentHighlightRules,f=l("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",i=function(o){var e=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),c="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",u="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[v.getStartRule("doc-start"),s("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+c+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:e,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[v.getStartRule("doc-start"),s("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:u},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:u},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!o||!o.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(h,b,p){if(this.next=h=="{"?this.nextState:"",h=="{"&&p.length)p.unshift("start",b);else if(h=="}"&&p.length&&(p.shift(),this.next=p.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return h=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:u},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!o||o.jsx!=!1)&&t.call(this)),this.embedRules(v,"doc-",[v.getEndRule("no_regex")]),this.normalizeRules()};g.inherits(i,f);function t(){var o=a.replace("\\d","\\d\\-"),e={onMatch:function(u,h,b){var p=u.charAt(1)=="/"?2:1;return p==1?(h!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):p==2&&h==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(p==1?"":"end-")+"tag-open.xml",value:u.slice(0,p)},{type:"meta.tag.tag-name.xml",value:u.substr(p)}]},regex:"",onMatch:function(u,h,b){return h==b[0]&&b.shift(),u.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},c,s("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:o},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},e],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function s(o){return[{token:"comment",regex:/\/\*/,next:[v.getTagRule(),{token:"comment",regex:"\\*\\/",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[v.getTagRule(),{token:"comment",regex:"$|^",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(l,r,m){var g=l("../range").Range,v=function(){};(function(){this.checkOutdent=function(f,a){return/^\s+$/.test(f)?/^\s*\}/.test(a):!1},this.autoOutdent=function(f,a){var i=f.getLine(a),t=i.match(/^(\s*\})/);if(!t)return 0;var s=t[1].length,o=f.findMatchingBracket({row:a,column:s});if(!o||o.row==a)return 0;var e=this.$getIndent(f.getLine(o.row));f.replace(new g(a,0,a,s-1),e)},this.$getIndent=function(f){return f.match(/^\s*/)[0]}}).call(v.prototype),r.MatchingBraceOutdent=v});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(l,r,m){var g=l("../../lib/oop"),v=l("../../range").Range,f=l("./fold_mode").FoldMode,a=r.FoldMode=function(i){i&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+i.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+i.end)))};g.inherits(a,f),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(i,t,s){var o=i.getLine(s);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var e=this._getFoldWidgetBase(i,t,s);return!e&&this.startRegionRe.test(o)?"start":e},this.getFoldWidgetRange=function(i,t,s,o){var e=i.getLine(s);if(this.startRegionRe.test(e))return this.getCommentRegionBlock(i,e,s);var h=e.match(this.foldingStartMarker);if(h){var c=h.index;if(h[1])return this.openingBracketBlock(i,h[1],s,c);var u=i.getCommentFoldRange(s,c+h[0].length,1);return u&&!u.isMultiLine()&&(o?u=this.getSectionRange(i,s):t!="all"&&(u=null)),u}if(t!=="markbegin"){var h=e.match(this.foldingStopMarker);if(h){var c=h.index+h[0].length;return h[1]?this.closingBracketBlock(i,h[1],s,c):i.getCommentFoldRange(s,c,-1)}}},this.getSectionRange=function(i,t){var s=i.getLine(t),o=s.search(/\S/),e=t,c=s.length;t=t+1;for(var u=t,h=i.getLength();++tb)break;var p=this.getFoldWidgetRange(i,"all",t);if(p){if(p.start.row<=e)break;if(p.isMultiLine())t=p.end.row;else if(o==b)break}u=t}}return new v(e,c,u,i.getLine(u).length)},this.getCommentRegionBlock=function(i,t,s){for(var o=t.search(/\s*$/),e=i.getLength(),c=s,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,h=1;++sc)return new v(c,o,p,t.length)}}).call(a.prototype)});ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(l,r,m){var g=l("../lib/oop"),v=l("./text").Mode,f=l("./javascript_highlight_rules").JavaScriptHighlightRules,a=l("./matching_brace_outdent").MatchingBraceOutdent,i=l("../worker/worker_client").WorkerClient,t=l("./behaviour/cstyle").CstyleBehaviour,s=l("./folding/cstyle").FoldMode,o=function(){this.HighlightRules=f,this.$outdent=new a,this.$behaviour=new t,this.foldingRules=new s};g.inherits(o,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,c,u){var h=this.$getIndent(c),b=this.getTokenizer().getLineTokens(c,e),p=b.tokens,k=b.state;if(p.length&&p[p.length-1].type=="comment")return h;if(e=="start"||e=="no_regex"){var d=c.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);d&&(h+=u)}else if(e=="doc-start"){if(k=="start"||k=="no_regex")return"";var d=c.match(/^\s*(\/?)\*/);d&&(d[1]&&(h+=" "),h+="* ")}return h},this.checkOutdent=function(e,c,u){return this.$outdent.checkOutdent(c,u)},this.autoOutdent=function(e,c,u){this.$outdent.autoOutdent(c,u)},this.createWorker=function(e){var c=new i(["ace"],requireJavascript(),"JavaScriptWorker");return c.attachToDocument(e.getDocument()),c.on("annotate",function(u){e.setAnnotations(u.data)}),c.on("terminate",function(){e.clearAnnotations()}),c},this.$id="ace/mode/javascript"}).call(o.prototype),r.Mode=o});ace.define("ace/theme/chrome",["require","exports","module","ace/lib/dom"],function(l,r,m){r.isDark=!1,r.cssClass="ace-chrome",r.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var g=l("../lib/dom");g.importCssString(r.cssText,r.cssClass)});function create_default_slot$8(l){let r;return{c(){r=text("run")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_fragment$8(l){let r,m,g,v,f;function a(t){l[2](t)}let i={width:"100%",height:"250px",lang:"javascript",theme:"chrome"};return l[0]!==void 0&&(i.value=l[0]),r=new AceEditor({props:i}),binding_callbacks.push(()=>bind(r,"value",a)),v=new Button({props:{$$slots:{default:[create_default_slot$8]},$$scope:{ctx:l}}}),v.$on("click",l[1]),{c(){create_component(r.$$.fragment),g=space(),create_component(v.$$.fragment)},m(t,s){mount_component(r,t,s),insert(t,g,s),mount_component(v,t,s),f=!0},p(t,[s]){const o={};!m&&s&1&&(m=!0,o.value=t[0],add_flush_callback(()=>m=!1)),r.$set(o);const e={};s&8&&(e.$$scope={dirty:s,ctx:t}),v.$set(e)},i(t){f||(transition_in(r.$$.fragment,t),transition_in(v.$$.fragment,t),f=!0)},o(t){transition_out(r.$$.fragment,t),transition_out(v.$$.fragment,t),f=!1},d(t){t&&detach(g),destroy_component(r,t),destroy_component(v,t)}}}function instance$8($$self,$$props,$$invalidate){let{code=""}=$$props;function executeCode(){eval(code)}function aceeditor_value_binding(l){code=l,$$invalidate(0,code)}return $$self.$$set=l=>{"code"in l&&$$invalidate(0,code=l.code)},[code,executeCode,aceeditor_value_binding]}class CodeBucket extends SvelteComponent{constructor(r){super(),init(this,r,instance$8,create_fragment$8,safe_not_equal,{code:0})}}const functionContainer_svelte_svelte_type_style_lang="";function get_each_context$3(l,r,m){const g=l.slice();return g[22]=r[m][0],g[23]=r[m][1],g[24]=r,g[25]=m,g}const get_title_slot_changes=l=>({}),get_title_slot_context=l=>({});function create_if_block_5$1(l){let r,m,g;return m=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_4$2]},$$scope:{ctx:l}}}),m.$on("click",l[11]),{c(){r=element("span"),create_component(m.$$.fragment),set_style(r,"position","absolute"),set_style(r,"top","0"),set_style(r,"right","0")},m(v,f){insert(v,r,f),mount_component(m,r,null),g=!0},p(v,f){const a={};f&1048576&&(a.$$scope={dirty:f,ctx:v}),m.$set(a)},i(v){g||(transition_in(m.$$.fragment,v),g=!0)},o(v){transition_out(m.$$.fragment,v),g=!1},d(v){v&&detach(r),destroy_component(m)}}}function create_default_slot_4$2(l){let r;return{c(){r=text("Code")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_else_block$2(l){let r,m,g,v;return g=new CodeBucket({props:{code:l[5]}}),{c(){r=element("br"),m=space(),create_component(g.$$.fragment)},m(f,a){insert(f,r,a),insert(f,m,a),mount_component(g,f,a),v=!0},p(f,a){const i={};a&32&&(i.code=f[5]),g.$set(i)},i(f){v||(transition_in(g.$$.fragment,f),v=!0)},o(f){transition_out(g.$$.fragment,f),v=!1},d(f){f&&(detach(r),detach(m)),destroy_component(g,f)}}}function create_if_block$5(l){let r,m,g,v,f,a,i,t,s,o,e,c=ensure_array_like(Object.entries(l[4])),u=[];for(let k=0;ktransition_out(u[k],1,1,()=>{u[k]=null});g=new Button({props:{class:"w-fit",disabled:l[7],size:"sm",style:l[1],$$slots:{default:[create_default_slot_3$3]},$$scope:{ctx:l}}}),g.$on("click",l[12]);const b=l[15].default,p=create_slot(b,l,l[20],null);return o=new Accordion({props:{$$slots:{default:[create_default_slot_1$4]},$$scope:{ctx:l}}}),{c(){for(let k=0;kbind(f,"value",t)),{c(){r=element("p"),g=text(m),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,g),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&m!==(m=l[22]+"")&&set_data(g,m);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_if_block_3$2(l){let r,m=l[22]+"",g,v,f,a,i;function t(o){l[17](o,l[22])}let s={style:"width:100%;"};return l[9][l[22]]!==void 0&&(s.value=l[9][l[22]]),f=new Input({props:s}),binding_callbacks.push(()=>bind(f,"value",t)),{c(){r=element("p"),g=text(m),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,g),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&m!==(m=l[22]+"")&&set_data(g,m);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_if_block_2$2(l){let r,m=l[22]+"",g,v,f,a,i;function t(o){l[18](o,l[22])}let s={style:"width:100%;"};return l[9][l[22]]!==void 0&&(s.value=l[9][l[22]]),f=new Input({props:s}),binding_callbacks.push(()=>bind(f,"value",t)),{c(){r=element("p"),g=text(m),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,g),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&m!==(m=l[22]+"")&&set_data(g,m);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_each_block$3(l){let r=typeof l[23]=="string"&&l[23].startsWith("string"),m,g=typeof l[23]=="string"&&l[23].startsWith("number"),v,f=typeof l[23]=="string"&&l[23].startsWith("boolean"),a,i,t,s=r&&create_if_block_4$2(l),o=g&&create_if_block_3$2(l),e=f&&create_if_block_2$2(l);return{c(){s&&s.c(),m=space(),o&&o.c(),v=space(),e&&e.c(),a=space(),i=element("br")},m(c,u){s&&s.m(c,u),insert(c,m,u),o&&o.m(c,u),insert(c,v,u),e&&e.m(c,u),insert(c,a,u),insert(c,i,u),t=!0},p(c,u){u&16&&(r=typeof c[23]=="string"&&c[23].startsWith("string")),r?s?(s.p(c,u),u&16&&transition_in(s,1)):(s=create_if_block_4$2(c),s.c(),transition_in(s,1),s.m(m.parentNode,m)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros()),u&16&&(g=typeof c[23]=="string"&&c[23].startsWith("number")),g?o?(o.p(c,u),u&16&&transition_in(o,1)):(o=create_if_block_3$2(c),o.c(),transition_in(o,1),o.m(v.parentNode,v)):o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()),u&16&&(f=typeof c[23]=="string"&&c[23].startsWith("boolean")),f?e?(e.p(c,u),u&16&&transition_in(e,1)):(e=create_if_block_2$2(c),e.c(),transition_in(e,1),e.m(a.parentNode,a)):e&&(group_outros(),transition_out(e,1,1,()=>{e=null}),check_outros())},i(c){t||(transition_in(s),transition_in(o),transition_in(e),t=!0)},o(c){transition_out(s),transition_out(o),transition_out(e),t=!1},d(c){c&&(detach(m),detach(v),detach(a),detach(i)),s&&s.d(c),o&&o.d(c),e&&e.d(c)}}}function create_if_block_1$4(l){let r,m;return r=new Chasing({props:{size:"15",color:"white",unit:"px"}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_3$3(l){let r,m,g,v=l[7]&&create_if_block_1$4();return{c(){v&&v.c(),r=space(),m=text(l[3])},m(f,a){v&&v.m(f,a),insert(f,r,a),insert(f,m,a),g=!0},p(f,a){f[7]?v?a&128&&transition_in(v,1):(v=create_if_block_1$4(),v.c(),transition_in(v,1),v.m(r.parentNode,r)):v&&(group_outros(),transition_out(v,1,1,()=>{v=null}),check_outros()),(!g||a&8)&&set_data(m,f[3])},i(f){g||(transition_in(v),g=!0)},o(f){transition_out(v),g=!1},d(f){f&&(detach(r),detach(m)),v&&v.d(f)}}}function create_default_slot_2$3(l){let r,m;return{c(){r=element("p"),m=text(l[10]),attr(r,"style",l[0]),attr(r,"class","svelte-1veany6")},m(g,v){insert(g,r,v),append(r,m)},p(g,v){v&1024&&set_data(m,g[10]),v&1&&attr(r,"style",g[0])},d(g){g&&detach(r)}}}function create_header_slot(l){let r;return{c(){r=element("span"),r.textContent="Call Result",attr(r,"slot","header")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_1$4(l){let r,m,g;function v(a){l[19](a)}let f={$$slots:{header:[create_header_slot],default:[create_default_slot_2$3]},$$scope:{ctx:l}};return l[8]!==void 0&&(f.open=l[8]),r=new AccordionItem({props:f}),binding_callbacks.push(()=>bind(r,"open",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){const t={};i&1049601&&(t.$$scope={dirty:i,ctx:a}),!m&&i&256&&(m=!0,t.open=a[8],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_default_slot$7(l){let r,m,g,v,f,a,i;const t=l[15].title,s=create_slot(t,l,l[20],get_title_slot_context);let o=!l[6]&&create_if_block_5$1(l);const e=[create_if_block$5,create_else_block$2],c=[];function u(h,b){return h[2]?1:0}return v=u(l),f=c[v]=e[v](l),{c(){r=element("div"),s&&s.c(),m=space(),o&&o.c(),g=space(),f.c(),a=empty(),set_style(r,"position","relative")},m(h,b){insert(h,r,b),s&&s.m(r,null),append(r,m),o&&o.m(r,null),insert(h,g,b),c[v].m(h,b),insert(h,a,b),i=!0},p(h,b){s&&s.p&&(!i||b&1048576)&&update_slot_base(s,t,h,h[20],i?get_slot_changes(t,h[20],b,get_title_slot_changes):get_all_dirty_from_scope(h[20]),get_title_slot_context),h[6]?o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()):o?(o.p(h,b),b&64&&transition_in(o,1)):(o=create_if_block_5$1(h),o.c(),transition_in(o,1),o.m(r,null));let p=v;v=u(h),v===p?c[v].p(h,b):(group_outros(),transition_out(c[p],1,1,()=>{c[p]=null}),check_outros(),f=c[v],f?f.p(h,b):(f=c[v]=e[v](h),f.c()),transition_in(f,1),f.m(a.parentNode,a))},i(h){i||(transition_in(s,h),transition_in(o),transition_in(f),i=!0)},o(h){transition_out(s,h),transition_out(o),transition_out(f),i=!1},d(h){h&&(detach(r),detach(g),detach(a)),s&&s.d(h),o&&o.d(),c[v].d(h)}}}function create_fragment$7(l){let r,m,g;return m=new Card({props:{size:"lg",$$slots:{default:[create_default_slot$7]},$$scope:{ctx:l}}}),{c(){r=element("key"),create_component(m.$$.fragment),attr(r,"params","")},m(v,f){insert(v,r,f),mount_component(m,r,null),g=!0},p(v,[f]){const a={};f&1050623&&(a.$$scope={dirty:f,ctx:v}),m.$set(a)},i(v){g||(transition_in(m.$$.fragment,v),g=!0)},o(v){transition_out(m.$$.fragment,v),g=!1},d(v){v&&detach(r),destroy_component(m)}}}function instance$7(l,r,m){let{$$slots:g={},$$scope:v}=r,{method:f}=r,{params:a={}}=r,{testnet:i=!1}=r,{output_style:t=""}=r,{card_style:s=""}=r,{button_style:o=""}=r,{code:e=""}=r,{codeView:c=!1}=r,{lockView:u=!1}=r,h=!1,b=!1;const p=function(C){return typeof C!="string"?Object.entries(C).map(([T,R])=>`${T}:${R}`).join(";"):C};function k(){m(2,c=!c)}let d=Object.keys(a).reduce((C,T)=>{if(typeof a[T]!="string")return console.log("in here"),C[T]=a[T],C;if(a[T].startsWith("string"))if(console.log("value is"),console.log(a[T]),a[T].includes(":")){let R=a[T].split(":");return C[T]=R[1],C}else return C[T]="",C;else if(a[T].startsWith("number"))if(a[T].includes(":")){let R=a[T].split(":");return C[T]=R[1],C}else return C[T]="",C;else return C[T]=a[T],C},{});console.log(d),t=p(t),s=p(s),o=p(o);let w="";async function y(){m(7,h=!0),m(9,d.testnet=i,d);try{m(10,w=JSON.stringify(await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:f,params:d}}})))}catch(C){m(7,h=!1),m(10,w=C)}m(8,b=!0),m(7,h=!1)}function _(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,m(9,d))}function x(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,m(9,d))}function E(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,m(9,d))}function S(C){b=C,m(8,b)}return l.$$set=C=>{"method"in C&&m(3,f=C.method),"params"in C&&m(4,a=C.params),"testnet"in C&&m(14,i=C.testnet),"output_style"in C&&m(0,t=C.output_style),"card_style"in C&&m(13,s=C.card_style),"button_style"in C&&m(1,o=C.button_style),"code"in C&&m(5,e=C.code),"codeView"in C&&m(2,c=C.codeView),"lockView"in C&&m(6,u=C.lockView),"$$scope"in C&&m(20,v=C.$$scope)},[t,o,c,f,a,e,u,h,b,d,w,k,y,s,i,g,_,x,E,S,v]}class FunctionContainer extends SvelteComponent{constructor(r){super(),init(this,r,instance$7,create_fragment$7,safe_not_equal,{method:3,params:4,testnet:14,output_style:0,card_style:13,button_style:1,code:5,codeView:2,lockView:6})}}function create_else_block_2(l){let r,m;return r=new Button({props:{$$slots:{default:[create_default_slot_1$3]},$$scope:{ctx:l}}}),r.$on("click",l[6]),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&2048&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_if_block_2$1(l){let r,m;return r=new Button({props:{$$slots:{default:[create_default_slot$6]},$$scope:{ctx:l}}}),r.$on("click",l[5]),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&2048&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_if_block_4$1(l){let r,m;return r=new Spinner({}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_1$3(l){let r,m,g=window.loading&&create_if_block_4$1();return{c(){g&&g.c(),r=text(`\r - Run`)},m(v,f){g&&g.m(v,f),insert(v,r,f),m=!0},p:noop,i(v){m||(transition_in(g),m=!0)},o(v){transition_out(g),m=!1},d(v){v&&detach(r),g&&g.d(v)}}}function create_if_block_3$1(l){let r,m;return r=new Spinner({}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot$6(l){let r,m,g=window.loading&&create_if_block_3$1();return{c(){g&&g.c(),r=text(`\r - Run`)},m(v,f){g&&g.m(v,f),insert(v,r,f),m=!0},p:noop,i(v){m||(transition_in(g),m=!0)},o(v){transition_out(g),m=!1},d(v){v&&detach(r),g&&g.d(v)}}}function create_else_block_1(l){let r,m,g;function v(a){l[8](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[3]!==void 0&&(f.value=l[3]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){const t={};!m&&i&8&&(m=!0,t.value=a[3],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_1$3(l){let r,m,g;function v(a){l[7](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[0]!==void 0&&(f.value=l[0]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){const t={};!m&&i&1&&(m=!0,t.value=a[0],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_else_block$1(l){let r,m,g;function v(a){l[10](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[2]!==void 0&&(f.value=l[2]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){const t={};!m&&i&4&&(m=!0,t.value=a[2],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block$4(l){let r,m,g;function v(a){l[9](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[1]!==void 0&&(f.value=l[1]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){const t={};!m&&i&2&&(m=!0,t.value=a[1],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_fragment$6(l){let r,m,g,v,f,a,i,t,s,o,e,c,u,h,b,p,k,d,w,y,_,x,E,S,C;const T=[create_if_block_2$1,create_else_block_2],R=[];function W(te,$){return te[4]?0:1}o=W(l),e=R[o]=T[o](l);const j=[create_if_block_1$3,create_else_block_1],L=[];function Q(te,$){return te[4]?0:1}k=Q(l),d=L[k]=j[k](l);const U=[create_if_block$4,create_else_block$1],Z=[];function se(te,$){return te[4]?0:1}return E=se(l),S=Z[E]=U[E](l),{c(){r=element("b"),r.textContent="Stellar on Metamask also supports Soroban",m=space(),g=element("hr"),v=space(),f=element("p"),f.textContent=`these functions can only be called on futurenet. Below is code to call the hello world contract from the \r +},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"'"!==data.quote&&(code="W109"),"double"===quotmark&&'"'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable '(.+)'.",'Missing "use strict"']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\['{a}'\\\\] is better written in dot notation.","'{a}' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{(['"]/.test(str)?(error.reason='Missing ";" before statement',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"'{a}' is not defined."==raw?type="warning":"'{a}' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),javascript}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(l,r,g){var p=l("../lib/oop"),v=l("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},f.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};p.inherits(f,v),f.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},f.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},f.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.DocCommentHighlightRules=f});ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(l,r,g){var p=l("../lib/oop"),v=l("./doc_comment_highlight_rules").DocCommentHighlightRules,f=l("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",i=function(o){var e=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),c="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",u="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[v.getStartRule("doc-start"),s("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+c+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:e,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[v.getStartRule("doc-start"),s("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:u},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:u},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!o||!o.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(h,b,m){if(this.next=h=="{"?this.nextState:"",h=="{"&&m.length)m.unshift("start",b);else if(h=="}"&&m.length&&(m.shift(),this.next=m.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return h=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:u},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!o||o.jsx!=!1)&&t.call(this)),this.embedRules(v,"doc-",[v.getEndRule("no_regex")]),this.normalizeRules()};p.inherits(i,f);function t(){var o=a.replace("\\d","\\d\\-"),e={onMatch:function(u,h,b){var m=u.charAt(1)=="/"?2:1;return m==1?(h!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):m==2&&h==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(m==1?"":"end-")+"tag-open.xml",value:u.slice(0,m)},{type:"meta.tag.tag-name.xml",value:u.substr(m)}]},regex:"",onMatch:function(u,h,b){return h==b[0]&&b.shift(),u.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},c,s("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:o},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},e],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function s(o){return[{token:"comment",regex:/\/\*/,next:[v.getTagRule(),{token:"comment",regex:"\\*\\/",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[v.getTagRule(),{token:"comment",regex:"$|^",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(l,r,g){var p=l("../range").Range,v=function(){};(function(){this.checkOutdent=function(f,a){return/^\s+$/.test(f)?/^\s*\}/.test(a):!1},this.autoOutdent=function(f,a){var i=f.getLine(a),t=i.match(/^(\s*\})/);if(!t)return 0;var s=t[1].length,o=f.findMatchingBracket({row:a,column:s});if(!o||o.row==a)return 0;var e=this.$getIndent(f.getLine(o.row));f.replace(new p(a,0,a,s-1),e)},this.$getIndent=function(f){return f.match(/^\s*/)[0]}}).call(v.prototype),r.MatchingBraceOutdent=v});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(l,r,g){var p=l("../../lib/oop"),v=l("../../range").Range,f=l("./fold_mode").FoldMode,a=r.FoldMode=function(i){i&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+i.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+i.end)))};p.inherits(a,f),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(i,t,s){var o=i.getLine(s);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var e=this._getFoldWidgetBase(i,t,s);return!e&&this.startRegionRe.test(o)?"start":e},this.getFoldWidgetRange=function(i,t,s,o){var e=i.getLine(s);if(this.startRegionRe.test(e))return this.getCommentRegionBlock(i,e,s);var h=e.match(this.foldingStartMarker);if(h){var c=h.index;if(h[1])return this.openingBracketBlock(i,h[1],s,c);var u=i.getCommentFoldRange(s,c+h[0].length,1);return u&&!u.isMultiLine()&&(o?u=this.getSectionRange(i,s):t!="all"&&(u=null)),u}if(t!=="markbegin"){var h=e.match(this.foldingStopMarker);if(h){var c=h.index+h[0].length;return h[1]?this.closingBracketBlock(i,h[1],s,c):i.getCommentFoldRange(s,c,-1)}}},this.getSectionRange=function(i,t){var s=i.getLine(t),o=s.search(/\S/),e=t,c=s.length;t=t+1;for(var u=t,h=i.getLength();++tb)break;var m=this.getFoldWidgetRange(i,"all",t);if(m){if(m.start.row<=e)break;if(m.isMultiLine())t=m.end.row;else if(o==b)break}u=t}}return new v(e,c,u,i.getLine(u).length)},this.getCommentRegionBlock=function(i,t,s){for(var o=t.search(/\s*$/),e=i.getLength(),c=s,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,h=1;++sc)return new v(c,o,m,t.length)}}).call(a.prototype)});ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(l,r,g){var p=l("../lib/oop"),v=l("./text").Mode,f=l("./javascript_highlight_rules").JavaScriptHighlightRules,a=l("./matching_brace_outdent").MatchingBraceOutdent,i=l("../worker/worker_client").WorkerClient,t=l("./behaviour/cstyle").CstyleBehaviour,s=l("./folding/cstyle").FoldMode,o=function(){this.HighlightRules=f,this.$outdent=new a,this.$behaviour=new t,this.foldingRules=new s};p.inherits(o,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,c,u){var h=this.$getIndent(c),b=this.getTokenizer().getLineTokens(c,e),m=b.tokens,k=b.state;if(m.length&&m[m.length-1].type=="comment")return h;if(e=="start"||e=="no_regex"){var d=c.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);d&&(h+=u)}else if(e=="doc-start"){if(k=="start"||k=="no_regex")return"";var d=c.match(/^\s*(\/?)\*/);d&&(d[1]&&(h+=" "),h+="* ")}return h},this.checkOutdent=function(e,c,u){return this.$outdent.checkOutdent(c,u)},this.autoOutdent=function(e,c,u){this.$outdent.autoOutdent(c,u)},this.createWorker=function(e){var c=new i(["ace"],requireJavascript(),"JavaScriptWorker");return c.attachToDocument(e.getDocument()),c.on("annotate",function(u){e.setAnnotations(u.data)}),c.on("terminate",function(){e.clearAnnotations()}),c},this.$id="ace/mode/javascript"}).call(o.prototype),r.Mode=o});ace.define("ace/theme/chrome",["require","exports","module","ace/lib/dom"],function(l,r,g){r.isDark=!1,r.cssClass="ace-chrome",r.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var p=l("../lib/dom");p.importCssString(r.cssText,r.cssClass)});function create_default_slot$9(l){let r;return{c(){r=text("run")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_fragment$a(l){let r,g,p,v,f;function a(t){l[2](t)}let i={width:"100%",height:"250px",lang:"javascript",theme:"chrome"};return l[0]!==void 0&&(i.value=l[0]),r=new AceEditor({props:i}),binding_callbacks.push(()=>bind(r,"value",a)),v=new Button({props:{$$slots:{default:[create_default_slot$9]},$$scope:{ctx:l}}}),v.$on("click",l[1]),{c(){create_component(r.$$.fragment),p=space(),create_component(v.$$.fragment)},m(t,s){mount_component(r,t,s),insert(t,p,s),mount_component(v,t,s),f=!0},p(t,[s]){const o={};!g&&s&1&&(g=!0,o.value=t[0],add_flush_callback(()=>g=!1)),r.$set(o);const e={};s&8&&(e.$$scope={dirty:s,ctx:t}),v.$set(e)},i(t){f||(transition_in(r.$$.fragment,t),transition_in(v.$$.fragment,t),f=!0)},o(t){transition_out(r.$$.fragment,t),transition_out(v.$$.fragment,t),f=!1},d(t){t&&detach(p),destroy_component(r,t),destroy_component(v,t)}}}function instance$a($$self,$$props,$$invalidate){let{code=""}=$$props;function executeCode(){eval(code)}function aceeditor_value_binding(l){code=l,$$invalidate(0,code)}return $$self.$$set=l=>{"code"in l&&$$invalidate(0,code=l.code)},[code,executeCode,aceeditor_value_binding]}class CodeBucket extends SvelteComponent{constructor(r){super(),init(this,r,instance$a,create_fragment$a,safe_not_equal,{code:0})}}const functionContainer_svelte_svelte_type_style_lang="";function get_each_context$3(l,r,g){const p=l.slice();return p[22]=r[g][0],p[23]=r[g][1],p[24]=r,p[25]=g,p}const get_title_slot_changes=l=>({}),get_title_slot_context=l=>({});function create_if_block_5$1(l){let r,g,p;return g=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_4$3]},$$scope:{ctx:l}}}),g.$on("click",l[11]),{c(){r=element("span"),create_component(g.$$.fragment),set_style(r,"position","absolute"),set_style(r,"top","0"),set_style(r,"right","0")},m(v,f){insert(v,r,f),mount_component(g,r,null),p=!0},p(v,f){const a={};f&1048576&&(a.$$scope={dirty:f,ctx:v}),g.$set(a)},i(v){p||(transition_in(g.$$.fragment,v),p=!0)},o(v){transition_out(g.$$.fragment,v),p=!1},d(v){v&&detach(r),destroy_component(g)}}}function create_default_slot_4$3(l){let r;return{c(){r=text("Code")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_else_block$2(l){let r,g,p,v;return p=new CodeBucket({props:{code:l[5]}}),{c(){r=element("br"),g=space(),create_component(p.$$.fragment)},m(f,a){insert(f,r,a),insert(f,g,a),mount_component(p,f,a),v=!0},p(f,a){const i={};a&32&&(i.code=f[5]),p.$set(i)},i(f){v||(transition_in(p.$$.fragment,f),v=!0)},o(f){transition_out(p.$$.fragment,f),v=!1},d(f){f&&(detach(r),detach(g)),destroy_component(p,f)}}}function create_if_block$5(l){let r,g,p,v,f,a,i,t,s,o,e,c=ensure_array_like(Object.entries(l[4])),u=[];for(let k=0;ktransition_out(u[k],1,1,()=>{u[k]=null});p=new Button({props:{class:"w-fit",disabled:l[7],size:"sm",style:l[1],$$slots:{default:[create_default_slot_3$4]},$$scope:{ctx:l}}}),p.$on("click",l[12]);const b=l[15].default,m=create_slot(b,l,l[20],null);return o=new Accordion({props:{$$slots:{default:[create_default_slot_1$5]},$$scope:{ctx:l}}}),{c(){for(let k=0;kbind(f,"value",t)),{c(){r=element("p"),p=text(g),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,p),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&g!==(g=l[22]+"")&&set_data(p,g);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_if_block_3$2(l){let r,g=l[22]+"",p,v,f,a,i;function t(o){l[17](o,l[22])}let s={style:"width:100%;"};return l[9][l[22]]!==void 0&&(s.value=l[9][l[22]]),f=new Input({props:s}),binding_callbacks.push(()=>bind(f,"value",t)),{c(){r=element("p"),p=text(g),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,p),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&g!==(g=l[22]+"")&&set_data(p,g);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_if_block_2$2(l){let r,g=l[22]+"",p,v,f,a,i;function t(o){l[18](o,l[22])}let s={style:"width:100%;"};return l[9][l[22]]!==void 0&&(s.value=l[9][l[22]]),f=new Input({props:s}),binding_callbacks.push(()=>bind(f,"value",t)),{c(){r=element("p"),p=text(g),v=space(),create_component(f.$$.fragment),attr(r,"class","svelte-1veany6")},m(o,e){insert(o,r,e),append(r,p),insert(o,v,e),mount_component(f,o,e),i=!0},p(o,e){l=o,(!i||e&16)&&g!==(g=l[22]+"")&&set_data(p,g);const c={};!a&&e&528&&(a=!0,c.value=l[9][l[22]],add_flush_callback(()=>a=!1)),f.$set(c)},i(o){i||(transition_in(f.$$.fragment,o),i=!0)},o(o){transition_out(f.$$.fragment,o),i=!1},d(o){o&&(detach(r),detach(v)),destroy_component(f,o)}}}function create_each_block$3(l){let r=typeof l[23]=="string"&&l[23].startsWith("string"),g,p=typeof l[23]=="string"&&l[23].startsWith("number"),v,f=typeof l[23]=="string"&&l[23].startsWith("boolean"),a,i,t,s=r&&create_if_block_4$2(l),o=p&&create_if_block_3$2(l),e=f&&create_if_block_2$2(l);return{c(){s&&s.c(),g=space(),o&&o.c(),v=space(),e&&e.c(),a=space(),i=element("br")},m(c,u){s&&s.m(c,u),insert(c,g,u),o&&o.m(c,u),insert(c,v,u),e&&e.m(c,u),insert(c,a,u),insert(c,i,u),t=!0},p(c,u){u&16&&(r=typeof c[23]=="string"&&c[23].startsWith("string")),r?s?(s.p(c,u),u&16&&transition_in(s,1)):(s=create_if_block_4$2(c),s.c(),transition_in(s,1),s.m(g.parentNode,g)):s&&(group_outros(),transition_out(s,1,1,()=>{s=null}),check_outros()),u&16&&(p=typeof c[23]=="string"&&c[23].startsWith("number")),p?o?(o.p(c,u),u&16&&transition_in(o,1)):(o=create_if_block_3$2(c),o.c(),transition_in(o,1),o.m(v.parentNode,v)):o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()),u&16&&(f=typeof c[23]=="string"&&c[23].startsWith("boolean")),f?e?(e.p(c,u),u&16&&transition_in(e,1)):(e=create_if_block_2$2(c),e.c(),transition_in(e,1),e.m(a.parentNode,a)):e&&(group_outros(),transition_out(e,1,1,()=>{e=null}),check_outros())},i(c){t||(transition_in(s),transition_in(o),transition_in(e),t=!0)},o(c){transition_out(s),transition_out(o),transition_out(e),t=!1},d(c){c&&(detach(g),detach(v),detach(a),detach(i)),s&&s.d(c),o&&o.d(c),e&&e.d(c)}}}function create_if_block_1$4(l){let r,g;return r=new Chasing({props:{size:"15",color:"white",unit:"px"}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot_3$4(l){let r,g,p,v=l[7]&&create_if_block_1$4();return{c(){v&&v.c(),r=space(),g=text(l[3])},m(f,a){v&&v.m(f,a),insert(f,r,a),insert(f,g,a),p=!0},p(f,a){f[7]?v?a&128&&transition_in(v,1):(v=create_if_block_1$4(),v.c(),transition_in(v,1),v.m(r.parentNode,r)):v&&(group_outros(),transition_out(v,1,1,()=>{v=null}),check_outros()),(!p||a&8)&&set_data(g,f[3])},i(f){p||(transition_in(v),p=!0)},o(f){transition_out(v),p=!1},d(f){f&&(detach(r),detach(g)),v&&v.d(f)}}}function create_default_slot_2$4(l){let r,g;return{c(){r=element("p"),g=text(l[10]),attr(r,"style",l[0]),attr(r,"class","svelte-1veany6")},m(p,v){insert(p,r,v),append(r,g)},p(p,v){v&1024&&set_data(g,p[10]),v&1&&attr(r,"style",p[0])},d(p){p&&detach(r)}}}function create_header_slot(l){let r;return{c(){r=element("span"),r.textContent="Call Result",attr(r,"slot","header")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_1$5(l){let r,g,p;function v(a){l[19](a)}let f={$$slots:{header:[create_header_slot],default:[create_default_slot_2$4]},$$scope:{ctx:l}};return l[8]!==void 0&&(f.open=l[8]),r=new AccordionItem({props:f}),binding_callbacks.push(()=>bind(r,"open",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){const t={};i&1049601&&(t.$$scope={dirty:i,ctx:a}),!g&&i&256&&(g=!0,t.open=a[8],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_default_slot$8(l){let r,g,p,v,f,a,i;const t=l[15].title,s=create_slot(t,l,l[20],get_title_slot_context);let o=!l[6]&&create_if_block_5$1(l);const e=[create_if_block$5,create_else_block$2],c=[];function u(h,b){return h[2]?1:0}return v=u(l),f=c[v]=e[v](l),{c(){r=element("div"),s&&s.c(),g=space(),o&&o.c(),p=space(),f.c(),a=empty(),set_style(r,"position","relative")},m(h,b){insert(h,r,b),s&&s.m(r,null),append(r,g),o&&o.m(r,null),insert(h,p,b),c[v].m(h,b),insert(h,a,b),i=!0},p(h,b){s&&s.p&&(!i||b&1048576)&&update_slot_base(s,t,h,h[20],i?get_slot_changes(t,h[20],b,get_title_slot_changes):get_all_dirty_from_scope(h[20]),get_title_slot_context),h[6]?o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros()):o?(o.p(h,b),b&64&&transition_in(o,1)):(o=create_if_block_5$1(h),o.c(),transition_in(o,1),o.m(r,null));let m=v;v=u(h),v===m?c[v].p(h,b):(group_outros(),transition_out(c[m],1,1,()=>{c[m]=null}),check_outros(),f=c[v],f?f.p(h,b):(f=c[v]=e[v](h),f.c()),transition_in(f,1),f.m(a.parentNode,a))},i(h){i||(transition_in(s,h),transition_in(o),transition_in(f),i=!0)},o(h){transition_out(s,h),transition_out(o),transition_out(f),i=!1},d(h){h&&(detach(r),detach(p),detach(a)),s&&s.d(h),o&&o.d(),c[v].d(h)}}}function create_fragment$9(l){let r,g,p;return g=new Card({props:{size:"lg",$$slots:{default:[create_default_slot$8]},$$scope:{ctx:l}}}),{c(){r=element("key"),create_component(g.$$.fragment),attr(r,"params","")},m(v,f){insert(v,r,f),mount_component(g,r,null),p=!0},p(v,[f]){const a={};f&1050623&&(a.$$scope={dirty:f,ctx:v}),g.$set(a)},i(v){p||(transition_in(g.$$.fragment,v),p=!0)},o(v){transition_out(g.$$.fragment,v),p=!1},d(v){v&&detach(r),destroy_component(g)}}}function instance$9(l,r,g){let{$$slots:p={},$$scope:v}=r,{method:f}=r,{params:a={}}=r,{testnet:i=!1}=r,{output_style:t=""}=r,{card_style:s=""}=r,{button_style:o=""}=r,{code:e=""}=r,{codeView:c=!1}=r,{lockView:u=!1}=r,h=!1,b=!1;const m=function(C){return typeof C!="string"?Object.entries(C).map(([T,R])=>`${T}:${R}`).join(";"):C};function k(){g(2,c=!c)}let d=Object.keys(a).reduce((C,T)=>{if(typeof a[T]!="string")return console.log("in here"),C[T]=a[T],C;if(a[T].startsWith("string"))if(console.log("value is"),console.log(a[T]),a[T].includes(":")){let R=a[T].split(":");return C[T]=R[1],C}else return C[T]="",C;else if(a[T].startsWith("number"))if(a[T].includes(":")){let R=a[T].split(":");return C[T]=R[1],C}else return C[T]="",C;else return C[T]=a[T],C},{});console.log(d),t=m(t),s=m(s),o=m(o);let w="";async function y(){g(7,h=!0),g(9,d.testnet=i,d);try{g(10,w=JSON.stringify(await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:f,params:d}}})))}catch(C){g(7,h=!1),g(10,w=C)}g(8,b=!0),g(7,h=!1)}function _(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,g(9,d))}function x(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,g(9,d))}function E(C,T){l.$$.not_equal(d[T],C)&&(d[T]=C,g(9,d))}function S(C){b=C,g(8,b)}return l.$$set=C=>{"method"in C&&g(3,f=C.method),"params"in C&&g(4,a=C.params),"testnet"in C&&g(14,i=C.testnet),"output_style"in C&&g(0,t=C.output_style),"card_style"in C&&g(13,s=C.card_style),"button_style"in C&&g(1,o=C.button_style),"code"in C&&g(5,e=C.code),"codeView"in C&&g(2,c=C.codeView),"lockView"in C&&g(6,u=C.lockView),"$$scope"in C&&g(20,v=C.$$scope)},[t,o,c,f,a,e,u,h,b,d,w,k,y,s,i,p,_,x,E,S,v]}class FunctionContainer extends SvelteComponent{constructor(r){super(),init(this,r,instance$9,create_fragment$9,safe_not_equal,{method:3,params:4,testnet:14,output_style:0,card_style:13,button_style:1,code:5,codeView:2,lockView:6})}}function create_else_block_2(l){let r,g;return r=new Button({props:{$$slots:{default:[create_default_slot_1$4]},$$scope:{ctx:l}}}),r.$on("click",l[6]),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&2048&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_if_block_2$1(l){let r,g;return r=new Button({props:{$$slots:{default:[create_default_slot$7]},$$scope:{ctx:l}}}),r.$on("click",l[5]),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&2048&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_if_block_4$1(l){let r,g;return r=new Spinner({}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot_1$4(l){let r,g,p=window.loading&&create_if_block_4$1();return{c(){p&&p.c(),r=text(`\r + Run`)},m(v,f){p&&p.m(v,f),insert(v,r,f),g=!0},p:noop,i(v){g||(transition_in(p),g=!0)},o(v){transition_out(p),g=!1},d(v){v&&detach(r),p&&p.d(v)}}}function create_if_block_3$1(l){let r,g;return r=new Spinner({}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot$7(l){let r,g,p=window.loading&&create_if_block_3$1();return{c(){p&&p.c(),r=text(`\r + Run`)},m(v,f){p&&p.m(v,f),insert(v,r,f),g=!0},p:noop,i(v){g||(transition_in(p),g=!0)},o(v){transition_out(p),g=!1},d(v){v&&detach(r),p&&p.d(v)}}}function create_else_block_1(l){let r,g,p;function v(a){l[8](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[3]!==void 0&&(f.value=l[3]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){const t={};!g&&i&8&&(g=!0,t.value=a[3],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_1$3(l){let r,g,p;function v(a){l[7](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[0]!==void 0&&(f.value=l[0]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){const t={};!g&&i&1&&(g=!0,t.value=a[0],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_else_block$1(l){let r,g,p;function v(a){l[10](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[2]!==void 0&&(f.value=l[2]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){const t={};!g&&i&4&&(g=!0,t.value=a[2],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block$4(l){let r,g,p;function v(a){l[9](a)}let f={width:"100%",height:"350px",lang:"javascript",theme:"chrome"};return l[1]!==void 0&&(f.value=l[1]),r=new AceEditor({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){const t={};!g&&i&2&&(g=!0,t.value=a[1],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_fragment$8(l){let r,g,p,v,f,a,i,t,s,o,e,c,u,h,b,m,k,d,w,y,_,x,E,S,C;const T=[create_if_block_2$1,create_else_block_2],R=[];function W(te,$){return te[4]?0:1}o=W(l),e=R[o]=T[o](l);const j=[create_if_block_1$3,create_else_block_1],L=[];function Q(te,$){return te[4]?0:1}k=Q(l),d=L[k]=j[k](l);const U=[create_if_block$4,create_else_block$1],Z=[];function se(te,$){return te[4]?0:1}return E=se(l),S=Z[E]=U[E](l),{c(){r=element("b"),r.textContent="Stellar on Metamask also supports Soroban",g=space(),p=element("hr"),v=space(),f=element("p"),f.textContent=`these functions can only be called on futurenet. Below is code to call the hello world contract from the \r soroban documentation. Simply press 'run' to see the results. If it isn't working it could be that futurenet\r - has been cleared and you would have to redeploy the helloworld contract, and swap out the address.`,a=space(),i=element("br"),t=space(),s=element("div"),e.c(),c=space(),u=element("div"),h=element("div"),b=element("p"),b.textContent="Code function",p=space(),d.c(),w=space(),y=element("div"),_=element("p"),_.textContent="Main Function",x=space(),S.c(),set_style(r,"text-align","left"),set_style(f,"text-align","left"),attr(s,"class","flex"),set_style(h,"width","100%"),set_style(y,"width","100%"),attr(u,"class","flex")},m(te,$){insert(te,r,$),insert(te,m,$),insert(te,g,$),insert(te,v,$),insert(te,f,$),insert(te,a,$),insert(te,i,$),insert(te,t,$),insert(te,s,$),R[o].m(s,null),insert(te,c,$),insert(te,u,$),append(u,h),append(h,b),append(h,p),L[k].m(h,null),append(u,w),append(u,y),append(y,_),append(y,x),Z[E].m(y,null),C=!0},p(te,[$]){let P=o;o=W(te),o===P?R[o].p(te,$):(group_outros(),transition_out(R[P],1,1,()=>{R[P]=null}),check_outros(),e=R[o],e?e.p(te,$):(e=R[o]=T[o](te),e.c()),transition_in(e,1),e.m(s,null));let A=k;k=Q(te),k===A?L[k].p(te,$):(group_outros(),transition_out(L[A],1,1,()=>{L[A]=null}),check_outros(),d=L[k],d?d.p(te,$):(d=L[k]=j[k](te),d.c()),transition_in(d,1),d.m(h,null));let O=E;E=se(te),E===O?Z[E].p(te,$):(group_outros(),transition_out(Z[O],1,1,()=>{Z[O]=null}),check_outros(),S=Z[E],S?S.p(te,$):(S=Z[E]=U[E](te),S.c()),transition_in(S,1),S.m(y,null))},i(te){C||(transition_in(e),transition_in(d),transition_in(S),C=!0)},o(te){transition_out(e),transition_out(d),transition_out(S),C=!1},d(te){te&&(detach(r),detach(m),detach(g),detach(v),detach(f),detach(a),detach(i),detach(t),detach(s),detach(c),detach(u)),R[o].d(),L[k].d(),Z[E].d()}}}function instance$6($$self,$$props,$$invalidate){let $testnet;component_subscribe($$self,testnet,l=>$$invalidate(4,$testnet=l));async function executeCode(){const total_code=code+bottom_code;await eval(total_code)}async function executeCodeMainnet(){const total_code=code_mainnet+bottom_code_mainnet;await eval(total_code)}let code=` + has been cleared and you would have to redeploy the helloworld contract, and swap out the address.`,a=space(),i=element("br"),t=space(),s=element("div"),e.c(),c=space(),u=element("div"),h=element("div"),b=element("p"),b.textContent="Code function",m=space(),d.c(),w=space(),y=element("div"),_=element("p"),_.textContent="Main Function",x=space(),S.c(),set_style(r,"text-align","left"),set_style(f,"text-align","left"),attr(s,"class","flex"),set_style(h,"width","100%"),set_style(y,"width","100%"),attr(u,"class","flex")},m(te,$){insert(te,r,$),insert(te,g,$),insert(te,p,$),insert(te,v,$),insert(te,f,$),insert(te,a,$),insert(te,i,$),insert(te,t,$),insert(te,s,$),R[o].m(s,null),insert(te,c,$),insert(te,u,$),append(u,h),append(h,b),append(h,m),L[k].m(h,null),append(u,w),append(u,y),append(y,_),append(y,x),Z[E].m(y,null),C=!0},p(te,[$]){let P=o;o=W(te),o===P?R[o].p(te,$):(group_outros(),transition_out(R[P],1,1,()=>{R[P]=null}),check_outros(),e=R[o],e?e.p(te,$):(e=R[o]=T[o](te),e.c()),transition_in(e,1),e.m(s,null));let A=k;k=Q(te),k===A?L[k].p(te,$):(group_outros(),transition_out(L[A],1,1,()=>{L[A]=null}),check_outros(),d=L[k],d?d.p(te,$):(d=L[k]=j[k](te),d.c()),transition_in(d,1),d.m(h,null));let O=E;E=se(te),E===O?Z[E].p(te,$):(group_outros(),transition_out(Z[O],1,1,()=>{Z[O]=null}),check_outros(),S=Z[E],S?S.p(te,$):(S=Z[E]=U[E](te),S.c()),transition_in(S,1),S.m(y,null))},i(te){C||(transition_in(e),transition_in(d),transition_in(S),C=!0)},o(te){transition_out(e),transition_out(d),transition_out(S),C=!1},d(te){te&&(detach(r),detach(g),detach(p),detach(v),detach(f),detach(a),detach(i),detach(t),detach(s),detach(c),detach(u)),R[o].d(),L[k].d(),Z[E].d()}}}function instance$8($$self,$$props,$$invalidate){let $testnet;component_subscribe($$self,testnet,l=>$$invalidate(4,$testnet=l));async function executeCode(){const total_code=code+bottom_code;await eval(total_code)}async function executeCodeMainnet(){const total_code=code_mainnet+bottom_code_mainnet;await eval(total_code)}let code=` async function callContract(address, method, args) { const contractAddress = arguments[0]; const methodName = arguments[1]; @@ -263,180 +263,180 @@ async function callContract(address, method, args) { } -`;function aceeditor_value_binding(l){code=l,$$invalidate(0,code)}function aceeditor_value_binding_1(l){code_mainnet=l,$$invalidate(3,code_mainnet)}function aceeditor_value_binding_2(l){bottom_code=l,$$invalidate(1,bottom_code)}function aceeditor_value_binding_3(l){bottom_code_mainnet=l,$$invalidate(2,bottom_code_mainnet)}return[code,bottom_code,bottom_code_mainnet,code_mainnet,$testnet,executeCode,executeCodeMainnet,aceeditor_value_binding,aceeditor_value_binding_1,aceeditor_value_binding_2,aceeditor_value_binding_3]}class SorobanPage extends SvelteComponent{constructor(r){super(),init(this,r,instance$6,create_fragment$6,safe_not_equal,{})}}var stellarSdk_min={exports:{}};/*! For license information please see stellar-sdk.min.js.LICENSE.txt */(function(l,r){(function(m,g){l.exports=g()})(self,()=>(()=>{var m={6263:function(f){var a;a=()=>(()=>{var i={899:(o,e,c)=>{const u=c(10);o.exports=u},10:(o,e,c)=>{c.r(e),c.d(e,{Array:()=>le,Bool:()=>G,Double:()=>O,Enum:()=>Le,Float:()=>A,Hyper:()=>se,Int:()=>L,LargeInt:()=>Z,Opaque:()=>Be,Option:()=>Ne,Quadruple:()=>z,Reference:()=>De,String:()=>X,Struct:()=>Fe,Union:()=>We,UnsignedHyper:()=>P,UnsignedInt:()=>$,VarArray:()=>ge,VarOpaque:()=>he,Void:()=>Ue,config:()=>N});class u extends TypeError{constructor(I){super(`XDR Write Error: ${I}`)}}class h extends TypeError{constructor(I){super(`XDR Read Error: ${I}`)}}class b extends TypeError{constructor(I){super(`XDR Type Definition Error: ${I}`)}}class p extends b{constructor(){super("method not implemented, it should be overloaded in the descendant class.")}}var k=c(764).lW;class d{constructor(I){jn(this,"_buffer");jn(this,"_length");jn(this,"_index");if(!k.isBuffer(I)){if(!(I instanceof Array))throw new h("source not specified");I=k.from(I)}this._buffer=I,this._length=I.length,this._index=0}get eof(){return this._index===this._length}advance(I){const K=this._index;if(this._index+=I,this._length0){for(let ye=0;ye0){const ye=this.alloc(oe);this._buffer.fill(0,ye,this._index)}}writeInt32BE(I){const K=this.alloc(4);this._buffer.writeInt32BE(I,K)}writeUInt32BE(I){const K=this.alloc(4);this._buffer.writeUInt32BE(I,K)}writeBigInt64BE(I){const K=this.alloc(8);this._buffer.writeBigInt64BE(I,K)}writeBigUInt64BE(I){const K=this.alloc(8);this._buffer.writeBigUInt64BE(I,K)}writeFloatBE(I){const K=this.alloc(4);this._buffer.writeFloatBE(I,K)}writeDoubleBE(I){const K=this.alloc(8);this._buffer.writeDoubleBE(I,K)}}jn(_,"bufferChunkSize",y);var x=c(764).lW;class E{toXDR(I="raw"){if(!this.write)return this.constructor.toXDR(this,I);const K=new _;return this.write(this,K),R(K.finalize(),I)}fromXDR(I,K="raw"){if(!this.read)return this.constructor.fromXDR(I,K);const oe=new d(W(I,K)),ye=this.read(oe);return oe.ensureInputConsumed(),ye}validateXDR(I,K="raw"){try{return this.fromXDR(I,K),!0}catch{return!1}}static toXDR(I,K="raw"){const oe=new _;return this.write(I,oe),R(oe.finalize(),K)}static fromXDR(I,K="raw"){const oe=new d(W(I,K)),ye=this.read(oe);return oe.ensureInputConsumed(),ye}static validateXDR(I,K="raw"){try{return this.fromXDR(I,K),!0}catch{return!1}}}class S extends E{static read(I){throw new p}static write(I,K){throw new p}static isValid(I){return!1}}class C extends E{isValid(I){return!1}}class T extends TypeError{constructor(I){super(`Invalid format ${I}, must be one of "raw", "hex", "base64"`)}}function R(q,I){switch(I){case"raw":return q;case"hex":return q.toString("hex");case"base64":return q.toString("base64");default:throw new T(I)}}function W(q,I){switch(I){case"raw":return q;case"hex":return x.from(q,"hex");case"base64":return x.from(q,"base64");default:throw new T(I)}}const j=2147483647;class L extends S{static read(I){return I.readInt32BE()}static write(I,K){if(typeof I!="number")throw new u("not a number");if((0|I)!==I)throw new u("invalid i32 value");K.writeInt32BE(I)}static isValid(I){return typeof I=="number"&&(0|I)===I&&I>=-2147483648&&I<=j}}function Q(q,I,K){if(typeof q!="bigint")throw new TypeError("Expected bigint 'value', got "+typeof q);const oe=I/K;if(oe===1)return[q];if(K<32||K>128||oe!==2&&oe!==4&&oe!==8)throw new TypeError(`invalid bigint (${q}) and slice size (${I} -> ${K}) combination`);const ye=BigInt(K),Pe=new Array(oe);for(let rt=0;rt>=ye;return Pe}function U(q,I){if(I)return[0n,(1n<=lt&&rt<=vt)return rt;throw new TypeError(`bigint values [${K}] for ${function(_t,qt){return`${qt?"u":"i"}${_t}`}(oe,ye)} out of range [${lt}, ${vt}]: ${rt}`)}(I,this.size,this.unsigned)}get unsigned(){throw new p}get size(){throw new p}slice(I){return Q(this._value,this.size,I)}toString(){return this._value.toString()}toJSON(){return{_value:this._value.toString()}}toBigInt(){return BigInt(this._value)}static read(I){const{size:K}=this.prototype;return K===64?new this(I.readBigUInt64BE()):new this(...Array.from({length:K/64},()=>I.readBigUInt64BE()).reverse())}static write(I,K){if(I instanceof this)I=I._value;else if(typeof I!="bigint"||I>this.MAX_VALUE||I>32n)>>0}get size(){return 64}get unsigned(){return!1}static fromBits(I,K){return new this(I,K)}}se.defineIntBoundaries();const te=4294967295;class $ extends S{static read(I){return I.readUInt32BE()}static write(I,K){if(typeof I!="number"||!(I>=0&&I<=te)||I%1!=0)throw new u("invalid u32 value");K.writeUInt32BE(I)}static isValid(I){return typeof I=="number"&&I%1==0&&I>=0&&I<=te}}$.MAX_VALUE=te,$.MIN_VALUE=0;class P extends Z{constructor(...I){super(I)}get low(){return Number(0xffffffffn&this._value)<<0}get high(){return Number(this._value>>32n)>>0}get size(){return 64}get unsigned(){return!0}static fromBits(I,K){return new this(I,K)}}P.defineIntBoundaries();class A extends S{static read(I){return I.readFloatBE()}static write(I,K){if(typeof I!="number")throw new u("not a number");K.writeFloatBE(I)}static isValid(I){return typeof I=="number"}}class O extends S{static read(I){return I.readDoubleBE()}static write(I,K){if(typeof I!="number")throw new u("not a number");K.writeDoubleBE(I)}static isValid(I){return typeof I=="number"}}class z extends S{static read(){throw new b("quadruple not supported")}static write(){throw new b("quadruple not supported")}static isValid(){return!1}}class G extends S{static read(I){const K=L.read(I);switch(K){case 0:return!1;case 1:return!0;default:throw new h(`got ${K} when trying to read a bool`)}}static write(I,K){const oe=I?1:0;L.write(oe,K)}static isValid(I){return typeof I=="boolean"}}var re=c(764).lW;class X extends C{constructor(I=$.MAX_VALUE){super(),this._maxLength=I}read(I){const K=$.read(I);if(K>this._maxLength)throw new h(`saw ${K} length String, max allowed is ${this._maxLength}`);return I.read(K)}readString(I){return this.read(I).toString("utf8")}write(I,K){const oe=typeof I=="string"?re.byteLength(I,"utf8"):I.length;if(oe>this._maxLength)throw new u(`got ${I.length} bytes, max allowed is ${this._maxLength}`);$.write(oe,K),K.write(I,oe)}isValid(I){return typeof I=="string"?re.byteLength(I,"utf8")<=this._maxLength:!!(I instanceof Array||re.isBuffer(I))&&I.length<=this._maxLength}}var be=c(764).lW;class Be extends C{constructor(I){super(),this._length=I}read(I){return I.read(this._length)}write(I,K){const{length:oe}=I;if(oe!==this._length)throw new u(`got ${I.length} bytes, expected ${this._length}`);K.write(I,oe)}isValid(I){return be.isBuffer(I)&&I.length===this._length}}var ve=c(764).lW;class he extends C{constructor(I=$.MAX_VALUE){super(),this._maxLength=I}read(I){const K=$.read(I);if(K>this._maxLength)throw new h(`saw ${K} length VarOpaque, max allowed is ${this._maxLength}`);return I.read(K)}write(I,K){const{length:oe}=I;if(I.length>this._maxLength)throw new u(`got ${I.length} bytes, max allowed is ${this._maxLength}`);$.write(oe,K),K.write(I,oe)}isValid(I){return ve.isBuffer(I)&&I.length<=this._maxLength}}class le extends C{constructor(I,K){super(),this._childType=I,this._length=K}read(I){const K=new c.g.Array(this._length);for(let oe=0;oethis._maxLength)throw new h(`saw ${K} length VarArray, max allowed is ${this._maxLength}`);const oe=new Array(K);for(let ye=0;yethis._maxLength)throw new u(`got array of size ${I.length}, max allowed is ${this._maxLength}`);$.write(I.length,K);for(const oe of I)this._childType.write(oe,K)}isValid(I){if(!(I instanceof Array)||I.length>this._maxLength)return!1;for(const K of I)if(!this._childType.isValid(K))return!1;return!0}}class Ne extends S{constructor(I){super(),this._childType=I}read(I){if(G.read(I))return this._childType.read(I)}write(I,K){const oe=I!=null;G.write(oe,K),oe&&this._childType.write(I,K)}isValid(I){return I==null||this._childType.isValid(I)}}class Ue extends S{static read(){}static write(I){if(I!==void 0)throw new u("trying to write value to a void slot")}static isValid(I){return I===void 0}}class Le extends S{constructor(I,K){super(),this.name=I,this.value=K}static read(I){const K=L.read(I),oe=this._byValue[K];if(oe===void 0)throw new h(`unknown ${this.enumName} member for value ${K}`);return oe}static write(I,K){if(!(I instanceof this))throw new u(`unknown ${I} is not a ${this.enumName}`);L.write(I.value,K)}static isValid(I){return I instanceof this}static members(){return this._members}static values(){return Object.values(this._members)}static fromName(I){const K=this._members[I];if(!K)throw new TypeError(`${I} is not a member of ${this.enumName}`);return K}static fromValue(I){const K=this._byValue[I];if(K===void 0)throw new TypeError(`${I} is not a value of any member of ${this.enumName}`);return K}static create(I,K,oe){const ye=class extends Le{};ye.enumName=K,I.results[K]=ye,ye._members={},ye._byValue={};for(const[Pe,rt]of Object.entries(oe)){const lt=new ye(Pe,rt);ye._members[Pe]=lt,ye._byValue[rt]=lt,ye[Pe]=()=>lt}return ye}}class De extends S{resolve(){throw new b('"resolve" method should be implemented in the descendant class')}}class Fe extends S{constructor(I){super(),this._attributes=I||{}}static read(I){const K={};for(const[oe,ye]of this._fields)K[oe]=ye.read(I);return new this(K)}static write(I,K){if(!(I instanceof this))throw new u(`${I} is not a ${this.structName}`);for(const[oe,ye]of this._fields){const Pe=I._attributes[oe];ye.write(Pe,K)}}static isValid(I){return I instanceof this}static create(I,K,oe){const ye=class extends Fe{};ye.structName=K,I.results[K]=ye;const Pe=new Array(oe.length);for(let rt=0;rt{e.byteLength=function(w){var y=k(w),_=y[0],x=y[1];return 3*(_+x)/4-x},e.toByteArray=function(w){var y,_,x=k(w),E=x[0],S=x[1],C=new h(function(W,j,L){return 3*(j+L)/4-L}(0,E,S)),T=0,R=S>0?E-4:E;for(_=0;_>16&255,C[T++]=y>>8&255,C[T++]=255&y;return S===2&&(y=u[w.charCodeAt(_)]<<2|u[w.charCodeAt(_+1)]>>4,C[T++]=255&y),S===1&&(y=u[w.charCodeAt(_)]<<10|u[w.charCodeAt(_+1)]<<4|u[w.charCodeAt(_+2)]>>2,C[T++]=y>>8&255,C[T++]=255&y),C},e.fromByteArray=function(w){for(var y,_=w.length,x=_%3,E=[],S=16383,C=0,T=_-x;CT?T:C+S));return x===1?(y=w[_-1],E.push(c[y>>2]+c[y<<4&63]+"==")):x===2&&(y=(w[_-2]<<8)+w[_-1],E.push(c[y>>10]+c[y>>4&63]+c[y<<2&63]+"=")),E.join("")};for(var c=[],u=[],h=typeof Uint8Array<"u"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0;p<64;++p)c[p]=b[p],u[b.charCodeAt(p)]=p;function k(w){var y=w.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=w.indexOf("=");return _===-1&&(_=y),[_,_===y?0:4-_%4]}function d(w,y,_){for(var x,E,S=[],C=y;C<_;C+=3)x=(w[C]<<16&16711680)+(w[C+1]<<8&65280)+(255&w[C+2]),S.push(c[(E=x)>>18&63]+c[E>>12&63]+c[E>>6&63]+c[63&E]);return S.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},764:(o,e,c)=>{const u=c(742),h=c(645),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=d,e.h2=50;const p=2147483647;function k(F){if(F>p)throw new RangeError('The value "'+F+'" is invalid for option "size"');const N=new Uint8Array(F);return Object.setPrototypeOf(N,d.prototype),N}function d(F,N,q){if(typeof F=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(F)}return w(F,N,q)}function w(F,N,q){if(typeof F=="string")return function(oe,ye){if(typeof ye=="string"&&ye!==""||(ye="utf8"),!d.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);const Pe=0|C(oe,ye);let rt=k(Pe);const lt=rt.write(oe,ye);return lt!==Pe&&(rt=rt.slice(0,lt)),rt}(F,N);if(ArrayBuffer.isView(F))return function(oe){if(B(oe,Uint8Array)){const ye=new Uint8Array(oe);return E(ye.buffer,ye.byteOffset,ye.byteLength)}return x(oe)}(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(B(F,ArrayBuffer)||F&&B(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(B(F,SharedArrayBuffer)||F&&B(F.buffer,SharedArrayBuffer)))return E(F,N,q);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const I=F.valueOf&&F.valueOf();if(I!=null&&I!==F)return d.from(I,N,q);const K=function(oe){if(d.isBuffer(oe)){const ye=0|S(oe.length),Pe=k(ye);return Pe.length===0||oe.copy(Pe,0,0,ye),Pe}return oe.length!==void 0?typeof oe.length!="number"||H(oe.length)?k(0):x(oe):oe.type==="Buffer"&&Array.isArray(oe.data)?x(oe.data):void 0}(F);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return d.from(F[Symbol.toPrimitive]("string"),N,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}function y(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function _(F){return y(F),k(F<0?0:0|S(F))}function x(F){const N=F.length<0?0:0|S(F.length),q=k(N);for(let I=0;I=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|F}function C(F,N){if(d.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||B(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const q=F.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&q===0)return 0;let K=!1;for(;;)switch(N){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return We(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*q;case"hex":return q>>>1;case"base64":return ot(F).length;default:if(K)return I?-1:We(F).length;N=(""+N).toLowerCase(),K=!0}}function T(F,N,q){let I=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0)<=(N>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return z(this,N,q);case"utf8":case"utf-8":return $(this,N,q);case"ascii":return A(this,N,q);case"latin1":case"binary":return O(this,N,q);case"base64":return te(this,N,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,N,q);default:if(I)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),I=!0}}function R(F,N,q){const I=F[N];F[N]=F[q],F[q]=I}function W(F,N,q,I,K){if(F.length===0)return-1;if(typeof q=="string"?(I=q,q=0):q>2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),H(q=+q)&&(q=K?0:F.length-1),q<0&&(q=F.length+q),q>=F.length){if(K)return-1;q=F.length-1}else if(q<0){if(!K)return-1;q=0}if(typeof N=="string"&&(N=d.from(N,I)),d.isBuffer(N))return N.length===0?-1:j(F,N,q,I,K);if(typeof N=="number")return N&=255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(F,N,q):Uint8Array.prototype.lastIndexOf.call(F,N,q):j(F,[N],q,I,K);throw new TypeError("val must be string, number or Buffer")}function j(F,N,q,I,K){let oe,ye=1,Pe=F.length,rt=N.length;if(I!==void 0&&((I=String(I).toLowerCase())==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(F.length<2||N.length<2)return-1;ye=2,Pe/=2,rt/=2,q/=2}function lt(vt,_t){return ye===1?vt[_t]:vt.readUInt16BE(_t*ye)}if(K){let vt=-1;for(oe=q;oePe&&(q=Pe-rt),oe=q;oe>=0;oe--){let vt=!0;for(let _t=0;_tK&&(I=K):I=K;const oe=N.length;let ye;for(I>oe/2&&(I=oe/2),ye=0;ye>8,rt=ye%256,lt.push(rt),lt.push(Pe);return lt}(N,F.length-q),F,q,I)}function te(F,N,q){return N===0&&q===F.length?u.fromByteArray(F):u.fromByteArray(F.slice(N,q))}function $(F,N,q){q=Math.min(F.length,q);const I=[];let K=N;for(;K239?4:oe>223?3:oe>191?2:1;if(K+Pe<=q){let rt,lt,vt,_t;switch(Pe){case 1:oe<128&&(ye=oe);break;case 2:rt=F[K+1],(192&rt)==128&&(_t=(31&oe)<<6|63&rt,_t>127&&(ye=_t));break;case 3:rt=F[K+1],lt=F[K+2],(192&rt)==128&&(192<)==128&&(_t=(15&oe)<<12|(63&rt)<<6|63<,_t>2047&&(_t<55296||_t>57343)&&(ye=_t));break;case 4:rt=F[K+1],lt=F[K+2],vt=F[K+3],(192&rt)==128&&(192<)==128&&(192&vt)==128&&(_t=(15&oe)<<18|(63&rt)<<12|(63<)<<6|63&vt,_t>65535&&_t<1114112&&(ye=_t))}}ye===null?(ye=65533,Pe=1):ye>65535&&(ye-=65536,I.push(ye>>>10&1023|55296),ye=56320|1023&ye),I.push(ye),K+=Pe}return function(oe){const ye=oe.length;if(ye<=P)return String.fromCharCode.apply(String,oe);let Pe="",rt=0;for(;rt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(F,N,q){return w(F,N,q)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(F,N,q){return function(I,K,oe){return y(I),I<=0?k(I):K!==void 0?typeof oe=="string"?k(I).fill(K,oe):k(I).fill(K):k(I)}(F,N,q)},d.allocUnsafe=function(F){return _(F)},d.allocUnsafeSlow=function(F){return _(F)},d.isBuffer=function(F){return F!=null&&F._isBuffer===!0&&F!==d.prototype},d.compare=function(F,N){if(B(F,Uint8Array)&&(F=d.from(F,F.offset,F.byteLength)),B(N,Uint8Array)&&(N=d.from(N,N.offset,N.byteLength)),!d.isBuffer(F)||!d.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(F===N)return 0;let q=F.length,I=N.length;for(let K=0,oe=Math.min(q,I);KI.length?(d.isBuffer(oe)||(oe=d.from(oe)),oe.copy(I,K)):Uint8Array.prototype.set.call(I,oe,K);else{if(!d.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(I,K)}K+=oe.length}return I},d.byteLength=C,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const F=this.length;if(F%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(F+=" ... "),""},b&&(d.prototype[b]=d.prototype.inspect),d.prototype.compare=function(F,N,q,I,K){if(B(F,Uint8Array)&&(F=d.from(F,F.offset,F.byteLength)),!d.isBuffer(F))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof F);if(N===void 0&&(N=0),q===void 0&&(q=F?F.length:0),I===void 0&&(I=0),K===void 0&&(K=this.length),N<0||q>F.length||I<0||K>this.length)throw new RangeError("out of range index");if(I>=K&&N>=q)return 0;if(I>=K)return-1;if(N>=q)return 1;if(this===F)return 0;let oe=(K>>>=0)-(I>>>=0),ye=(q>>>=0)-(N>>>=0);const Pe=Math.min(oe,ye),rt=this.slice(I,K),lt=F.slice(N,q);for(let vt=0;vt>>=0,isFinite(q)?(q>>>=0,I===void 0&&(I="utf8")):(I=q,q=void 0)}const K=this.length-N;if((q===void 0||q>K)&&(q=K),F.length>0&&(q<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let oe=!1;for(;;)switch(I){case"hex":return L(this,F,N,q);case"utf8":case"utf-8":return Q(this,F,N,q);case"ascii":case"latin1":case"binary":return U(this,F,N,q);case"base64":return Z(this,F,N,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,F,N,q);default:if(oe)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),oe=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function A(F,N,q){let I="";q=Math.min(F.length,q);for(let K=N;KI)&&(q=I);let K="";for(let oe=N;oeq)throw new RangeError("Trying to access beyond buffer length")}function X(F,N,q,I,K,oe){if(!d.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>K||NF.length)throw new RangeError("Index out of range")}function be(F,N,q,I,K){Le(N,I,K,F,q,7);let oe=Number(N&BigInt(4294967295));F[q++]=oe,oe>>=8,F[q++]=oe,oe>>=8,F[q++]=oe,oe>>=8,F[q++]=oe;let ye=Number(N>>BigInt(32)&BigInt(4294967295));return F[q++]=ye,ye>>=8,F[q++]=ye,ye>>=8,F[q++]=ye,ye>>=8,F[q++]=ye,q}function Be(F,N,q,I,K){Le(N,I,K,F,q,7);let oe=Number(N&BigInt(4294967295));F[q+7]=oe,oe>>=8,F[q+6]=oe,oe>>=8,F[q+5]=oe,oe>>=8,F[q+4]=oe;let ye=Number(N>>BigInt(32)&BigInt(4294967295));return F[q+3]=ye,ye>>=8,F[q+2]=ye,ye>>=8,F[q+1]=ye,ye>>=8,F[q]=ye,q+8}function ve(F,N,q,I,K,oe){if(q+I>F.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function he(F,N,q,I,K){return N=+N,q>>>=0,K||ve(F,0,q,4),h.write(F,N,q,I,23,4),q+4}function le(F,N,q,I,K){return N=+N,q>>>=0,K||ve(F,0,q,8),h.write(F,N,q,I,52,8),q+8}d.prototype.slice=function(F,N){const q=this.length;(F=~~F)<0?(F+=q)<0&&(F=0):F>q&&(F=q),(N=N===void 0?q:~~N)<0?(N+=q)<0&&(N=0):N>q&&(N=q),N>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F],K=1,oe=0;for(;++oe>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F+--N],K=1;for(;N>0&&(K*=256);)I+=this[F+--N]*K;return I},d.prototype.readUint8=d.prototype.readUInt8=function(F,N){return F>>>=0,N||re(F,1,this.length),this[F]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(F,N){return F>>>=0,N||re(F,2,this.length),this[F]|this[F+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(F,N){return F>>>=0,N||re(F,2,this.length),this[F]<<8|this[F+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(F,N){return F>>>=0,N||re(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+16777216*this[F+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(F,N){return F>>>=0,N||re(F,4,this.length),16777216*this[F]+(this[F+1]<<16|this[F+2]<<8|this[F+3])},d.prototype.readBigUInt64LE=J(function(F){De(F>>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=N+256*this[++F]+65536*this[++F]+this[++F]*2**24,K=this[++F]+256*this[++F]+65536*this[++F]+q*2**24;return BigInt(I)+(BigInt(K)<>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=N*2**24+65536*this[++F]+256*this[++F]+this[++F],K=this[++F]*2**24+65536*this[++F]+256*this[++F]+q;return(BigInt(I)<>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F],K=1,oe=0;for(;++oe=K&&(I-=Math.pow(2,8*N)),I},d.prototype.readIntBE=function(F,N,q){F>>>=0,N>>>=0,q||re(F,N,this.length);let I=N,K=1,oe=this[F+--I];for(;I>0&&(K*=256);)oe+=this[F+--I]*K;return K*=128,oe>=K&&(oe-=Math.pow(2,8*N)),oe},d.prototype.readInt8=function(F,N){return F>>>=0,N||re(F,1,this.length),128&this[F]?-1*(255-this[F]+1):this[F]},d.prototype.readInt16LE=function(F,N){F>>>=0,N||re(F,2,this.length);const q=this[F]|this[F+1]<<8;return 32768&q?4294901760|q:q},d.prototype.readInt16BE=function(F,N){F>>>=0,N||re(F,2,this.length);const q=this[F+1]|this[F]<<8;return 32768&q?4294901760|q:q},d.prototype.readInt32LE=function(F,N){return F>>>=0,N||re(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},d.prototype.readInt32BE=function(F,N){return F>>>=0,N||re(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},d.prototype.readBigInt64LE=J(function(F){De(F>>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=this[F+4]+256*this[F+5]+65536*this[F+6]+(q<<24);return(BigInt(I)<>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=(N<<24)+65536*this[++F]+256*this[++F]+this[++F];return(BigInt(I)<>>=0,N||re(F,4,this.length),h.read(this,F,!0,23,4)},d.prototype.readFloatBE=function(F,N){return F>>>=0,N||re(F,4,this.length),h.read(this,F,!1,23,4)},d.prototype.readDoubleLE=function(F,N){return F>>>=0,N||re(F,8,this.length),h.read(this,F,!0,52,8)},d.prototype.readDoubleBE=function(F,N){return F>>>=0,N||re(F,8,this.length),h.read(this,F,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(F,N,q,I){F=+F,N>>>=0,q>>>=0,I||X(this,F,N,q,Math.pow(2,8*q)-1,0);let K=1,oe=0;for(this[N]=255&F;++oe>>=0,q>>>=0,I||X(this,F,N,q,Math.pow(2,8*q)-1,0);let K=q-1,oe=1;for(this[N+K]=255&F;--K>=0&&(oe*=256);)this[N+K]=F/oe&255;return N+q},d.prototype.writeUint8=d.prototype.writeUInt8=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,1,255,0),this[N]=255&F,N+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,65535,0),this[N]=255&F,this[N+1]=F>>>8,N+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,65535,0),this[N]=F>>>8,this[N+1]=255&F,N+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,4294967295,0),this[N+3]=F>>>24,this[N+2]=F>>>16,this[N+1]=F>>>8,this[N]=255&F,N+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,4294967295,0),this[N]=F>>>24,this[N+1]=F>>>16,this[N+2]=F>>>8,this[N+3]=255&F,N+4},d.prototype.writeBigUInt64LE=J(function(F,N=0){return be(this,F,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=J(function(F,N=0){return Be(this,F,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(F,N,q,I){if(F=+F,N>>>=0,!I){const Pe=Math.pow(2,8*q-1);X(this,F,N,q,Pe-1,-Pe)}let K=0,oe=1,ye=0;for(this[N]=255&F;++K>0)-ye&255;return N+q},d.prototype.writeIntBE=function(F,N,q,I){if(F=+F,N>>>=0,!I){const Pe=Math.pow(2,8*q-1);X(this,F,N,q,Pe-1,-Pe)}let K=q-1,oe=1,ye=0;for(this[N+K]=255&F;--K>=0&&(oe*=256);)F<0&&ye===0&&this[N+K+1]!==0&&(ye=1),this[N+K]=(F/oe>>0)-ye&255;return N+q},d.prototype.writeInt8=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,1,127,-128),F<0&&(F=255+F+1),this[N]=255&F,N+1},d.prototype.writeInt16LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,32767,-32768),this[N]=255&F,this[N+1]=F>>>8,N+2},d.prototype.writeInt16BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,32767,-32768),this[N]=F>>>8,this[N+1]=255&F,N+2},d.prototype.writeInt32LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,2147483647,-2147483648),this[N]=255&F,this[N+1]=F>>>8,this[N+2]=F>>>16,this[N+3]=F>>>24,N+4},d.prototype.writeInt32BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),this[N]=F>>>24,this[N+1]=F>>>16,this[N+2]=F>>>8,this[N+3]=255&F,N+4},d.prototype.writeBigInt64LE=J(function(F,N=0){return be(this,F,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=J(function(F,N=0){return Be(this,F,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeFloatLE=function(F,N,q){return he(this,F,N,!0,q)},d.prototype.writeFloatBE=function(F,N,q){return he(this,F,N,!1,q)},d.prototype.writeDoubleLE=function(F,N,q){return le(this,F,N,!0,q)},d.prototype.writeDoubleBE=function(F,N,q){return le(this,F,N,!1,q)},d.prototype.copy=function(F,N,q,I){if(!d.isBuffer(F))throw new TypeError("argument should be a Buffer");if(q||(q=0),I||I===0||(I=this.length),N>=F.length&&(N=F.length),N||(N=0),I>0&&I=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),F.length-N>>=0,q=q===void 0?this.length:q>>>0,F||(F=0),typeof F=="number")for(K=N;K=I+4;q-=3)N=`_${F.slice(q-3,q)}${N}`;return`${F.slice(0,q)}${N}`}function Le(F,N,q,I,K,oe){if(F>q||F3?N===0||N===BigInt(0)?`>= 0${ye} and < 2${ye} ** ${8*(oe+1)}${ye}`:`>= -(2${ye} ** ${8*(oe+1)-1}${ye}) and < 2 ** ${8*(oe+1)-1}${ye}`:`>= ${N}${ye} and <= ${q}${ye}`,new ge.ERR_OUT_OF_RANGE("value",Pe,F)}(function(ye,Pe,rt){De(Pe,"offset"),ye[Pe]!==void 0&&ye[Pe+rt]!==void 0||Fe(Pe,ye.length-(rt+1))})(I,K,oe)}function De(F,N){if(typeof F!="number")throw new ge.ERR_INVALID_ARG_TYPE(N,"number",F)}function Fe(F,N,q){throw Math.floor(F)!==F?(De(F,q),new ge.ERR_OUT_OF_RANGE(q||"offset","an integer",F)):N<0?new ge.ERR_BUFFER_OUT_OF_BOUNDS:new ge.ERR_OUT_OF_RANGE(q||"offset",`>= ${q?1:0} and <= ${N}`,F)}Ne("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ne("ERR_INVALID_ARG_TYPE",function(F,N){return`The "${F}" argument must be of type number. Received type ${typeof N}`},TypeError),Ne("ERR_OUT_OF_RANGE",function(F,N,q){let I=`The value of "${F}" is out of range.`,K=q;return Number.isInteger(q)&&Math.abs(q)>4294967296?K=Ue(String(q)):typeof q=="bigint"&&(K=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(K=Ue(K)),K+="n"),I+=` It must be ${N}. Received ${K}`,I},RangeError);const Oe=/[^+/0-9A-Za-z-_]/g;function We(F,N){let q;N=N||1/0;const I=F.length;let K=null;const oe=[];for(let ye=0;ye55295&&q<57344){if(!K){if(q>56319){(N-=3)>-1&&oe.push(239,191,189);continue}if(ye+1===I){(N-=3)>-1&&oe.push(239,191,189);continue}K=q;continue}if(q<56320){(N-=3)>-1&&oe.push(239,191,189),K=q;continue}q=65536+(K-55296<<10|q-56320)}else K&&(N-=3)>-1&&oe.push(239,191,189);if(K=null,q<128){if((N-=1)<0)break;oe.push(q)}else if(q<2048){if((N-=2)<0)break;oe.push(q>>6|192,63&q|128)}else if(q<65536){if((N-=3)<0)break;oe.push(q>>12|224,q>>6&63|128,63&q|128)}else{if(!(q<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;oe.push(q>>18|240,q>>12&63|128,q>>6&63|128,63&q|128)}}return oe}function ot(F){return u.toByteArray(function(N){if((N=(N=N.split("=")[0]).trim().replace(Oe,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}(F))}function Ke(F,N,q,I){let K;for(K=0;K=N.length||K>=F.length);++K)N[K+q]=F[K];return K}function B(F,N){return F instanceof N||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===N.name}function H(F){return F!=F}const M=function(){const F="0123456789abcdef",N=new Array(256);for(let q=0;q<16;++q){const I=16*q;for(let K=0;K<16;++K)N[I+K]=F[q]+F[K]}return N}();function J(F){return typeof BigInt>"u"?ue:F}function ue(){throw new Error("BigInt not supported")}},645:(o,e)=>{e.read=function(c,u,h,b,p){var k,d,w=8*p-b-1,y=(1<>1,x=-7,E=h?p-1:0,S=h?-1:1,C=c[u+E];for(E+=S,k=C&(1<<-x)-1,C>>=-x,x+=w;x>0;k=256*k+c[u+E],E+=S,x-=8);for(d=k&(1<<-x)-1,k>>=-x,x+=b;x>0;d=256*d+c[u+E],E+=S,x-=8);if(k===0)k=1-_;else{if(k===y)return d?NaN:1/0*(C?-1:1);d+=Math.pow(2,b),k-=_}return(C?-1:1)*d*Math.pow(2,k-b)},e.write=function(c,u,h,b,p,k){var d,w,y,_=8*k-p-1,x=(1<<_)-1,E=x>>1,S=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=b?0:k-1,T=b?1:-1,R=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(w=isNaN(u)?1:0,d=x):(d=Math.floor(Math.log(u)/Math.LN2),u*(y=Math.pow(2,-d))<1&&(d--,y*=2),(u+=d+E>=1?S/y:S*Math.pow(2,1-E))*y>=2&&(d++,y/=2),d+E>=x?(w=0,d=x):d+E>=1?(w=(u*y-1)*Math.pow(2,p),d+=E):(w=u*Math.pow(2,E-1)*Math.pow(2,p),d=0));p>=8;c[h+C]=255&w,C+=T,w/=256,p-=8);for(d=d<0;c[h+C]=255&d,C+=T,d/=256,_-=8);c[h+C-T]|=128*R}}},t={};function s(o){var e=t[o];if(e!==void 0)return e.exports;var c=t[o]={exports:{}};return i[o](c,c.exports,s),c.exports}return s.d=(o,e)=>{for(var c in e)s.o(e,c)&&!s.o(o,c)&&Object.defineProperty(o,c,{enumerable:!0,get:e[c]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),s.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s(899)})(),f.exports=a()},3217:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Account=void 0;var t,s=(t=i(4431))&&t.__esModule?t:{default:t},o=i(8385);function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{Object.defineProperty(a,"__esModule",{value:!0}),a.Address=void 0;var t,s=i(8385),o=(t=i(4081))&&t.__esModule?t:{default:t};function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.Asset=void 0;var s,o=i(6006),e=(s=i(4081))&&s.__esModule?s:{default:s},c=i(6437),u=i(8385),h=i(9622);function b(d){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(d)}function p(d,w){for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:e.default.Asset;if(this.isNative())return S.assetTypeNative();this.code.length<=4?(x=e.default.AlphaNum4,E="assetTypeCreditAlphanum4"):(x=e.default.AlphaNum12,E="assetTypeCreditAlphanum12");var C=this.code.length<=4?4:12;return new S(E,new x({assetCode:this.code.padEnd(C,"\0"),issuer:c.Keypair.fromPublicKey(this.issuer).xdrAccountId()}))}},{key:"getCode",value:function(){if(this.code!==void 0)return String(this.code)}},{key:"getIssuer",value:function(){if(this.issuer!==void 0)return String(this.issuer)}},{key:"getAssetType",value:function(){switch(this.getRawAssetType()){case e.default.AssetType.assetTypeNative():return"native";case e.default.AssetType.assetTypeCreditAlphanum4():return"credit_alphanum4";case e.default.AssetType.assetTypeCreditAlphanum12():return"credit_alphanum12";default:return"unknown"}}},{key:"getRawAssetType",value:function(){return this.isNative()?e.default.AssetType.assetTypeNative():this.code.length<=4?e.default.AssetType.assetTypeCreditAlphanum4():e.default.AssetType.assetTypeCreditAlphanum12()}},{key:"isNative",value:function(){return!this.issuer}},{key:"equals",value:function(x){return this.code===x.getCode()&&this.issuer===x.getIssuer()}},{key:"toString",value:function(){return this.isNative()?"native":"".concat(this.getCode(),":").concat(this.getIssuer())}}],_=[{key:"native",value:function(){return new d("XLM")}},{key:"fromOperation",value:function(x){var E,S;switch(x.switch()){case e.default.AssetType.assetTypeNative():return this.native();case e.default.AssetType.assetTypeCreditAlphanum4():E=x.alphaNum4();case e.default.AssetType.assetTypeCreditAlphanum12():return E=E||x.alphaNum12(),S=u.StrKey.encodeEd25519PublicKey(E.issuer().ed25519()),new this((0,o.trimEnd)(E.assetCode(),"\0"),S);default:throw new Error("Invalid asset type: ".concat(x.switch().name))}}},{key:"compare",value:function(x,E){if(!(x&&x instanceof d))throw new Error("assetA is invalid");if(!(E&&E instanceof d))throw new Error("assetB is invalid");if(x.equals(E))return 0;var S=x.getRawAssetType().value,C=E.getRawAssetType().value;if(S!==C)return S{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.authorizeEntry=y,a.authorizeInvocation=function(x,E,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u.Networks.FUTURENET,R=e.Keypair.random().rawPublicKey(),W=new o.default.Int64((L=R,L.subarray(0,8).reduce(function(Q,U){return Q<<8|U},0))),j=C||x.publicKey(),L;if(!j)throw new Error("authorizeInvocation requires publicKey parameter");return y(new o.default.SorobanAuthorizationEntry({rootInvocation:S,credentials:o.default.SorobanCredentials.sorobanCredentialsAddress(new o.default.SorobanAddressCredentials({address:new b.Address(j).toScAddress(),nonce:W,signatureExpirationLedger:0,signature:o.default.ScVal.scvVec([])}))}),x,E,T)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(8385),u=i(2844),h=i(9622),b=i(3471),p=i(5567);function k(x){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(x)}function d(){d=function(){return E};var x,E={},S=Object.prototype,C=S.hasOwnProperty,T=Object.defineProperty||function(Fe,Oe,We){Fe[Oe]=We.value},R=typeof Symbol=="function"?Symbol:{},W=R.iterator||"@@iterator",j=R.asyncIterator||"@@asyncIterator",L=R.toStringTag||"@@toStringTag";function Q(Fe,Oe,We){return Object.defineProperty(Fe,Oe,{value:We,enumerable:!0,configurable:!0,writable:!0}),Fe[Oe]}try{Q({},"")}catch{Q=function(Oe,We,ot){return Oe[We]=ot}}function U(Fe,Oe,We,ot){var Ke=Oe&&Oe.prototype instanceof O?Oe:O,B=Object.create(Ke.prototype),H=new Le(ot||[]);return T(B,"_invoke",{value:le(Fe,We,H)}),B}function Z(Fe,Oe,We){try{return{type:"normal",arg:Fe.call(Oe,We)}}catch(ot){return{type:"throw",arg:ot}}}E.wrap=U;var se="suspendedStart",te="suspendedYield",$="executing",P="completed",A={};function O(){}function z(){}function G(){}var re={};Q(re,W,function(){return this});var X=Object.getPrototypeOf,be=X&&X(X(De([])));be&&be!==S&&C.call(be,W)&&(re=be);var Be=G.prototype=O.prototype=Object.create(re);function ve(Fe){["next","throw","return"].forEach(function(Oe){Q(Fe,Oe,function(We){return this._invoke(Oe,We)})})}function he(Fe,Oe){function We(Ke,B,H,M){var J=Z(Fe[Ke],Fe,B);if(J.type!=="throw"){var ue=J.arg,F=ue.value;return F&&k(F)=="object"&&C.call(F,"__await")?Oe.resolve(F.__await).then(function(N){We("next",N,H,M)},function(N){We("throw",N,H,M)}):Oe.resolve(F).then(function(N){ue.value=N,H(ue)},function(N){return We("throw",N,H,M)})}M(J.arg)}var ot;T(this,"_invoke",{value:function(Ke,B){function H(){return new Oe(function(M,J){We(Ke,B,M,J)})}return ot=ot?ot.then(H,H):H()}})}function le(Fe,Oe,We){var ot=se;return function(Ke,B){if(ot===$)throw new Error("Generator is already running");if(ot===P){if(Ke==="throw")throw B;return{value:x,done:!0}}for(We.method=Ke,We.arg=B;;){var H=We.delegate;if(H){var M=ge(H,We);if(M){if(M===A)continue;return M}}if(We.method==="next")We.sent=We._sent=We.arg;else if(We.method==="throw"){if(ot===se)throw ot=P,We.arg;We.dispatchException(We.arg)}else We.method==="return"&&We.abrupt("return",We.arg);ot=$;var J=Z(Fe,Oe,We);if(J.type==="normal"){if(ot=We.done?P:te,J.arg===A)continue;return{value:J.arg,done:We.done}}J.type==="throw"&&(ot=P,We.method="throw",We.arg=J.arg)}}}function ge(Fe,Oe){var We=Oe.method,ot=Fe.iterator[We];if(ot===x)return Oe.delegate=null,We==="throw"&&Fe.iterator.return&&(Oe.method="return",Oe.arg=x,ge(Fe,Oe),Oe.method==="throw")||We!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+We+"' method")),A;var Ke=Z(ot,Fe.iterator,Oe.arg);if(Ke.type==="throw")return Oe.method="throw",Oe.arg=Ke.arg,Oe.delegate=null,A;var B=Ke.arg;return B?B.done?(Oe[Fe.resultName]=B.value,Oe.next=Fe.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=x),Oe.delegate=null,A):B:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,A)}function Ne(Fe){var Oe={tryLoc:Fe[0]};1 in Fe&&(Oe.catchLoc=Fe[1]),2 in Fe&&(Oe.finallyLoc=Fe[2],Oe.afterLoc=Fe[3]),this.tryEntries.push(Oe)}function Ue(Fe){var Oe=Fe.completion||{};Oe.type="normal",delete Oe.arg,Fe.completion=Oe}function Le(Fe){this.tryEntries=[{tryLoc:"root"}],Fe.forEach(Ne,this),this.reset(!0)}function De(Fe){if(Fe||Fe===""){var Oe=Fe[W];if(Oe)return Oe.call(Fe);if(typeof Fe.next=="function")return Fe;if(!isNaN(Fe.length)){var We=-1,ot=function Ke(){for(;++We=0;--ot){var Ke=this.tryEntries[ot],B=Ke.completion;if(Ke.tryLoc==="root")return We("end");if(Ke.tryLoc<=this.prev){var H=C.call(Ke,"catchLoc"),M=C.call(Ke,"finallyLoc");if(H&&M){if(this.prev=0;--We){var ot=this.tryEntries[We];if(ot.tryLoc<=this.prev&&C.call(ot,"finallyLoc")&&this.prev=0;--Oe){var We=this.tryEntries[Oe];if(We.finallyLoc===Fe)return this.complete(We.completion,We.afterLoc),Ue(We),A}},catch:function(Fe){for(var Oe=this.tryEntries.length-1;Oe>=0;--Oe){var We=this.tryEntries[Oe];if(We.tryLoc===Fe){var ot=We.completion;if(ot.type==="throw"){var Ke=ot.arg;Ue(We)}return Ke}}throw new Error("illegal catch attempt")},delegateYield:function(Fe,Oe,We){return this.delegate={iterator:De(Fe),resultName:Oe,nextLoc:We},this.method==="next"&&(this.arg=x),A}},E}function w(x,E,S,C,T,R,W){try{var j=x[R](W),L=j.value}catch(Q){return void S(Q)}j.done?E(L):Promise.resolve(L).then(C,T)}function y(x,E,S){return _.apply(this,arguments)}function _(){var x;return x=d().mark(function E(S,C,T){var R,W,j,L,Q,U,Z,se,te,$=arguments;return d().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(R=$.length>3&&$[3]!==void 0?$[3]:u.Networks.FUTURENET,S.credentials().switch().value===o.default.SorobanCredentialsType.sorobanCredentialsAddress().value){P.next=3;break}return P.abrupt("return",S);case 3:if(W=o.default.SorobanAuthorizationEntry.fromXDR(S.toXDR()),(j=W.credentials().address()).signatureExpirationLedger(T),L=(0,h.hash)(t.from(R)),Q=o.default.HashIdPreimage.envelopeTypeSorobanAuthorization(new o.default.HashIdPreimageSorobanAuthorization({networkId:L,nonce:j.nonce(),invocation:W.rootInvocation(),signatureExpirationLedger:j.signatureExpirationLedger()})),U=(0,h.hash)(Q.toXDR()),typeof C!="function"){P.next=17;break}return P.t0=t,P.next=13,C(Q);case 13:P.t1=P.sent,Z=P.t0.from.call(P.t0,P.t1),P.next=18;break;case 17:Z=t.from(C.sign(U));case 18:if(se=b.Address.fromScAddress(j.address()).toString(),e.Keypair.fromPublicKey(se).verify(U,Z)){P.next=21;break}throw new Error("signature doesn't match payload");case 21:return te=(0,p.nativeToScVal)({public_key:c.StrKey.decodeEd25519PublicKey(se),signature:Z},{type:{public_key:["symbol",null],signature:["symbol",null]}}),j.signature(o.default.ScVal.scvVec([te])),P.abrupt("return",W);case 24:case"end":return P.stop()}},E)}),_=function(){var E=this,S=arguments;return new Promise(function(C,T){var R=x.apply(E,S);function W(L){w(R,C,T,W,j,"next",L)}function j(L){w(R,C,T,W,j,"throw",L)}W(void 0)})},_.apply(this,arguments)}},1842:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Claimant=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385);function c(h){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},c(h)}function u(h,b){for(var p=0;p{Object.defineProperty(a,"__esModule",{value:!0}),a.Contract=void 0;var t,s=i(3471),o=i(4585),e=(t=i(4081))&&t.__esModule?t:{default:t},c=i(8385);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},u(b)}function h(b,p){for(var k=0;k1?w-1:0),_=1;_{Object.defineProperty(a,"__esModule",{value:!0}),a.humanizeEvents=function(u){return u.map(function(h){return h instanceof s.default.DiagnosticEvent?c(h.event()):c(h)})};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385),e=i(5567);function c(u){return{contractId:u.contractId()===null?"":o.StrKey.encodeContract(u.contractId()),type:u.type().name,topics:u.body().value().topics().map(function(h){return(0,e.scValToNative)(h)}),data:(0,e.scValToNative)(u.body().value().data())}}},1462:(f,a,i)=>{var t=i(8764).Buffer;function s(y){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},s(y)}Object.defineProperty(a,"__esModule",{value:!0}),a.FeeBumpTransaction=void 0;var o,e=(o=i(4081))&&o.__esModule?o:{default:o},c=i(9622),u=i(1388),h=i(1065),b=i(6880);function p(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(s(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(s(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),s(C)==="symbol"?C:String(C)),E)}var S,C}function k(y,_){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,E){return x.__proto__=E,x},k(y,_)}function d(y){var _=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var x,E=w(y);if(_){var S=w(this).constructor;x=Reflect.construct(E,arguments,S)}else x=E.apply(this,arguments);return function(C,T){if(T&&(s(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(C)}(this,x)}}function w(y){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},w(y)}a.FeeBumpTransaction=function(y){(function(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),T&&k(C,T)})(S,y);var _,x,E=d(S);function S(C,T){var R;if(function(te,$){if(!(te instanceof $))throw new TypeError("Cannot call a class as a function")}(this,S),typeof C=="string"){var W=t.from(C,"base64");C=e.default.TransactionEnvelope.fromXDR(W)}var j=C.switch();if(j!==e.default.EnvelopeType.envelopeTypeTxFeeBump())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxFeeBump but received an ".concat(j.name,"."));var L=C.value(),Q=L.tx(),U=Q.fee().toString(),Z=(L.signatures()||[]).slice();R=E.call(this,Q,Z,U,T);var se=e.default.TransactionEnvelope.envelopeTypeTx(Q.innerTx().v1());return R._feeSource=(0,b.encodeMuxedAccountToAddress)(R.tx.feeSource()),R._innerTransaction=new u.Transaction(se,T),R}return _=S,(x=[{key:"innerTransaction",get:function(){return this._innerTransaction}},{key:"operations",get:function(){return this._innerTransaction.operations}},{key:"feeSource",get:function(){return this._feeSource}},{key:"signatureBase",value:function(){var C=new e.default.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTxFeeBump(this.tx);return new e.default.TransactionSignaturePayload({networkId:e.default.Hash.fromXDR((0,c.hash)(this.networkPassphrase)),taggedTransaction:C}).toXDR()}},{key:"toEnvelope",value:function(){var C=new e.default.FeeBumpTransactionEnvelope({tx:e.default.FeeBumpTransaction.fromXDR(this.tx.toXDR()),signatures:this.signatures.slice()});return new e.default.TransactionEnvelope.envelopeTypeTxFeeBump(C)}}])&&p(_.prototype,x),Object.defineProperty(_,"prototype",{writable:!1}),S}(h.TransactionBase)},7701:(f,a,i)=>{function t(e){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(e)}function s(e){if(typeof WeakMap!="function")return null;var c=new WeakMap,u=new WeakMap;return(s=function(h){return h?u:c})(e)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=function(e,c){if(!c&&e&&e.__esModule)return e;if(e===null||t(e)!="object"&&typeof e!="function")return{default:e};var u=s(c);if(u&&u.has(e))return u.get(e);var h={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in e)if(p!=="default"&&Object.prototype.hasOwnProperty.call(e,p)){var k=b?Object.getOwnPropertyDescriptor(e,p):null;k&&(k.get||k.set)?Object.defineProperty(h,p,k):h[p]=e[p]}return h.default=e,u&&u.set(e,h),h}(i(6263)).config(function(e){var c=1024;e.typedef("Value",e.varOpaque()),e.struct("ScpBallot",[["counter",e.lookup("Uint32")],["value",e.lookup("Value")]]),e.enum("ScpStatementType",{scpStPrepare:0,scpStConfirm:1,scpStExternalize:2,scpStNominate:3}),e.struct("ScpNomination",[["quorumSetHash",e.lookup("Hash")],["votes",e.varArray(e.lookup("Value"),2147483647)],["accepted",e.varArray(e.lookup("Value"),2147483647)]]),e.struct("ScpStatementPrepare",[["quorumSetHash",e.lookup("Hash")],["ballot",e.lookup("ScpBallot")],["prepared",e.option(e.lookup("ScpBallot"))],["preparedPrime",e.option(e.lookup("ScpBallot"))],["nC",e.lookup("Uint32")],["nH",e.lookup("Uint32")]]),e.struct("ScpStatementConfirm",[["ballot",e.lookup("ScpBallot")],["nPrepared",e.lookup("Uint32")],["nCommit",e.lookup("Uint32")],["nH",e.lookup("Uint32")],["quorumSetHash",e.lookup("Hash")]]),e.struct("ScpStatementExternalize",[["commit",e.lookup("ScpBallot")],["nH",e.lookup("Uint32")],["commitQuorumSetHash",e.lookup("Hash")]]),e.union("ScpStatementPledges",{switchOn:e.lookup("ScpStatementType"),switchName:"type",switches:[["scpStPrepare","prepare"],["scpStConfirm","confirm"],["scpStExternalize","externalize"],["scpStNominate","nominate"]],arms:{prepare:e.lookup("ScpStatementPrepare"),confirm:e.lookup("ScpStatementConfirm"),externalize:e.lookup("ScpStatementExternalize"),nominate:e.lookup("ScpNomination")}}),e.struct("ScpStatement",[["nodeId",e.lookup("NodeId")],["slotIndex",e.lookup("Uint64")],["pledges",e.lookup("ScpStatementPledges")]]),e.struct("ScpEnvelope",[["statement",e.lookup("ScpStatement")],["signature",e.lookup("Signature")]]),e.struct("ScpQuorumSet",[["threshold",e.lookup("Uint32")],["validators",e.varArray(e.lookup("NodeId"),2147483647)],["innerSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)]]),e.typedef("Thresholds",e.opaque(4)),e.typedef("String32",e.string(32)),e.typedef("String64",e.string(64)),e.typedef("SequenceNumber",e.lookup("Int64")),e.typedef("DataValue",e.varOpaque(64)),e.typedef("PoolId",e.lookup("Hash")),e.typedef("AssetCode4",e.opaque(4)),e.typedef("AssetCode12",e.opaque(12)),e.enum("AssetType",{assetTypeNative:0,assetTypeCreditAlphanum4:1,assetTypeCreditAlphanum12:2,assetTypePoolShare:3}),e.union("AssetCode",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeCreditAlphanum4","assetCode4"],["assetTypeCreditAlphanum12","assetCode12"]],arms:{assetCode4:e.lookup("AssetCode4"),assetCode12:e.lookup("AssetCode12")}}),e.struct("AlphaNum4",[["assetCode",e.lookup("AssetCode4")],["issuer",e.lookup("AccountId")]]),e.struct("AlphaNum12",[["assetCode",e.lookup("AssetCode12")],["issuer",e.lookup("AccountId")]]),e.union("Asset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12")}}),e.struct("Price",[["n",e.lookup("Int32")],["d",e.lookup("Int32")]]),e.struct("Liabilities",[["buying",e.lookup("Int64")],["selling",e.lookup("Int64")]]),e.enum("ThresholdIndices",{thresholdMasterWeight:0,thresholdLow:1,thresholdMed:2,thresholdHigh:3}),e.enum("LedgerEntryType",{account:0,trustline:1,offer:2,data:3,claimableBalance:4,liquidityPool:5,contractData:6,contractCode:7,configSetting:8,ttl:9}),e.struct("Signer",[["key",e.lookup("SignerKey")],["weight",e.lookup("Uint32")]]),e.enum("AccountFlags",{authRequiredFlag:1,authRevocableFlag:2,authImmutableFlag:4,authClawbackEnabledFlag:8}),e.const("MASK_ACCOUNT_FLAGS",7),e.const("MASK_ACCOUNT_FLAGS_V17",15),e.const("MAX_SIGNERS",20),e.typedef("SponsorshipDescriptor",e.option(e.lookup("AccountId"))),e.struct("AccountEntryExtensionV3",[["ext",e.lookup("ExtensionPoint")],["seqLedger",e.lookup("Uint32")],["seqTime",e.lookup("TimePoint")]]),e.union("AccountEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[3,"v3"]],arms:{v3:e.lookup("AccountEntryExtensionV3")}}),e.struct("AccountEntryExtensionV2",[["numSponsored",e.lookup("Uint32")],["numSponsoring",e.lookup("Uint32")],["signerSponsoringIDs",e.varArray(e.lookup("SponsorshipDescriptor"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExtensionV2Ext")]]),e.union("AccountEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("AccountEntryExtensionV2")}}),e.struct("AccountEntryExtensionV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("AccountEntryExtensionV1Ext")]]),e.union("AccountEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("AccountEntryExtensionV1")}}),e.struct("AccountEntry",[["accountId",e.lookup("AccountId")],["balance",e.lookup("Int64")],["seqNum",e.lookup("SequenceNumber")],["numSubEntries",e.lookup("Uint32")],["inflationDest",e.option(e.lookup("AccountId"))],["flags",e.lookup("Uint32")],["homeDomain",e.lookup("String32")],["thresholds",e.lookup("Thresholds")],["signers",e.varArray(e.lookup("Signer"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExt")]]),e.enum("TrustLineFlags",{authorizedFlag:1,authorizedToMaintainLiabilitiesFlag:2,trustlineClawbackEnabledFlag:4}),e.const("MASK_TRUSTLINE_FLAGS",1),e.const("MASK_TRUSTLINE_FLAGS_V13",3),e.const("MASK_TRUSTLINE_FLAGS_V17",7),e.enum("LiquidityPoolType",{liquidityPoolConstantProduct:0}),e.union("TrustLineAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPoolId"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPoolId:e.lookup("PoolId")}}),e.union("TrustLineEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TrustLineEntryExtensionV2",[["liquidityPoolUseCount",e.lookup("Int32")],["ext",e.lookup("TrustLineEntryExtensionV2Ext")]]),e.union("TrustLineEntryV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("TrustLineEntryExtensionV2")}}),e.struct("TrustLineEntryV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("TrustLineEntryV1Ext")]]),e.union("TrustLineEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("TrustLineEntryV1")}}),e.struct("TrustLineEntry",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")],["balance",e.lookup("Int64")],["limit",e.lookup("Int64")],["flags",e.lookup("Uint32")],["ext",e.lookup("TrustLineEntryExt")]]),e.enum("OfferEntryFlags",{passiveFlag:1}),e.const("MASK_OFFERENTRY_FLAGS",1),e.union("OfferEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("OfferEntry",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["flags",e.lookup("Uint32")],["ext",e.lookup("OfferEntryExt")]]),e.union("DataEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("DataEntry",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")],["dataValue",e.lookup("DataValue")],["ext",e.lookup("DataEntryExt")]]),e.enum("ClaimPredicateType",{claimPredicateUnconditional:0,claimPredicateAnd:1,claimPredicateOr:2,claimPredicateNot:3,claimPredicateBeforeAbsoluteTime:4,claimPredicateBeforeRelativeTime:5}),e.union("ClaimPredicate",{switchOn:e.lookup("ClaimPredicateType"),switchName:"type",switches:[["claimPredicateUnconditional",e.void()],["claimPredicateAnd","andPredicates"],["claimPredicateOr","orPredicates"],["claimPredicateNot","notPredicate"],["claimPredicateBeforeAbsoluteTime","absBefore"],["claimPredicateBeforeRelativeTime","relBefore"]],arms:{andPredicates:e.varArray(e.lookup("ClaimPredicate"),2),orPredicates:e.varArray(e.lookup("ClaimPredicate"),2),notPredicate:e.option(e.lookup("ClaimPredicate")),absBefore:e.lookup("Int64"),relBefore:e.lookup("Int64")}}),e.enum("ClaimantType",{claimantTypeV0:0}),e.struct("ClaimantV0",[["destination",e.lookup("AccountId")],["predicate",e.lookup("ClaimPredicate")]]),e.union("Claimant",{switchOn:e.lookup("ClaimantType"),switchName:"type",switches:[["claimantTypeV0","v0"]],arms:{v0:e.lookup("ClaimantV0")}}),e.enum("ClaimableBalanceIdType",{claimableBalanceIdTypeV0:0}),e.union("ClaimableBalanceId",{switchOn:e.lookup("ClaimableBalanceIdType"),switchName:"type",switches:[["claimableBalanceIdTypeV0","v0"]],arms:{v0:e.lookup("Hash")}}),e.enum("ClaimableBalanceFlags",{claimableBalanceClawbackEnabledFlag:1}),e.const("MASK_CLAIMABLE_BALANCE_FLAGS",1),e.union("ClaimableBalanceEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("ClaimableBalanceEntryExtensionV1",[["ext",e.lookup("ClaimableBalanceEntryExtensionV1Ext")],["flags",e.lookup("Uint32")]]),e.union("ClaimableBalanceEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("ClaimableBalanceEntryExtensionV1")}}),e.struct("ClaimableBalanceEntry",[["balanceId",e.lookup("ClaimableBalanceId")],["claimants",e.varArray(e.lookup("Claimant"),10)],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["ext",e.lookup("ClaimableBalanceEntryExt")]]),e.struct("LiquidityPoolConstantProductParameters",[["assetA",e.lookup("Asset")],["assetB",e.lookup("Asset")],["fee",e.lookup("Int32")]]),e.struct("LiquidityPoolEntryConstantProduct",[["params",e.lookup("LiquidityPoolConstantProductParameters")],["reserveA",e.lookup("Int64")],["reserveB",e.lookup("Int64")],["totalPoolShares",e.lookup("Int64")],["poolSharesTrustLineCount",e.lookup("Int64")]]),e.union("LiquidityPoolEntryBody",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolEntryConstantProduct")}}),e.struct("LiquidityPoolEntry",[["liquidityPoolId",e.lookup("PoolId")],["body",e.lookup("LiquidityPoolEntryBody")]]),e.enum("ContractDataDurability",{temporary:0,persistent:1}),e.struct("ContractDataEntry",[["ext",e.lookup("ExtensionPoint")],["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")],["val",e.lookup("ScVal")]]),e.struct("ContractCodeEntry",[["ext",e.lookup("ExtensionPoint")],["hash",e.lookup("Hash")],["code",e.varOpaque()]]),e.struct("TtlEntry",[["keyHash",e.lookup("Hash")],["liveUntilLedgerSeq",e.lookup("Uint32")]]),e.union("LedgerEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerEntryExtensionV1",[["sponsoringId",e.lookup("SponsorshipDescriptor")],["ext",e.lookup("LedgerEntryExtensionV1Ext")]]),e.union("LedgerEntryData",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("AccountEntry"),trustLine:e.lookup("TrustLineEntry"),offer:e.lookup("OfferEntry"),data:e.lookup("DataEntry"),claimableBalance:e.lookup("ClaimableBalanceEntry"),liquidityPool:e.lookup("LiquidityPoolEntry"),contractData:e.lookup("ContractDataEntry"),contractCode:e.lookup("ContractCodeEntry"),configSetting:e.lookup("ConfigSettingEntry"),ttl:e.lookup("TtlEntry")}}),e.union("LedgerEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerEntryExtensionV1")}}),e.struct("LedgerEntry",[["lastModifiedLedgerSeq",e.lookup("Uint32")],["data",e.lookup("LedgerEntryData")],["ext",e.lookup("LedgerEntryExt")]]),e.struct("LedgerKeyAccount",[["accountId",e.lookup("AccountId")]]),e.struct("LedgerKeyTrustLine",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")]]),e.struct("LedgerKeyOffer",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")]]),e.struct("LedgerKeyData",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")]]),e.struct("LedgerKeyClaimableBalance",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("LedgerKeyLiquidityPool",[["liquidityPoolId",e.lookup("PoolId")]]),e.struct("LedgerKeyContractData",[["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")]]),e.struct("LedgerKeyContractCode",[["hash",e.lookup("Hash")]]),e.struct("LedgerKeyConfigSetting",[["configSettingId",e.lookup("ConfigSettingId")]]),e.struct("LedgerKeyTtl",[["keyHash",e.lookup("Hash")]]),e.union("LedgerKey",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("LedgerKeyAccount"),trustLine:e.lookup("LedgerKeyTrustLine"),offer:e.lookup("LedgerKeyOffer"),data:e.lookup("LedgerKeyData"),claimableBalance:e.lookup("LedgerKeyClaimableBalance"),liquidityPool:e.lookup("LedgerKeyLiquidityPool"),contractData:e.lookup("LedgerKeyContractData"),contractCode:e.lookup("LedgerKeyContractCode"),configSetting:e.lookup("LedgerKeyConfigSetting"),ttl:e.lookup("LedgerKeyTtl")}}),e.enum("EnvelopeType",{envelopeTypeTxV0:0,envelopeTypeScp:1,envelopeTypeTx:2,envelopeTypeAuth:3,envelopeTypeScpvalue:4,envelopeTypeTxFeeBump:5,envelopeTypeOpId:6,envelopeTypePoolRevokeOpId:7,envelopeTypeContractId:8,envelopeTypeSorobanAuthorization:9}),e.typedef("UpgradeType",e.varOpaque(128)),e.enum("StellarValueType",{stellarValueBasic:0,stellarValueSigned:1}),e.struct("LedgerCloseValueSignature",[["nodeId",e.lookup("NodeId")],["signature",e.lookup("Signature")]]),e.union("StellarValueExt",{switchOn:e.lookup("StellarValueType"),switchName:"v",switches:[["stellarValueBasic",e.void()],["stellarValueSigned","lcValueSignature"]],arms:{lcValueSignature:e.lookup("LedgerCloseValueSignature")}}),e.struct("StellarValue",[["txSetHash",e.lookup("Hash")],["closeTime",e.lookup("TimePoint")],["upgrades",e.varArray(e.lookup("UpgradeType"),6)],["ext",e.lookup("StellarValueExt")]]),e.const("MASK_LEDGER_HEADER_FLAGS",7),e.enum("LedgerHeaderFlags",{disableLiquidityPoolTradingFlag:1,disableLiquidityPoolDepositFlag:2,disableLiquidityPoolWithdrawalFlag:4}),e.union("LedgerHeaderExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderExtensionV1",[["flags",e.lookup("Uint32")],["ext",e.lookup("LedgerHeaderExtensionV1Ext")]]),e.union("LedgerHeaderExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerHeaderExtensionV1")}}),e.struct("LedgerHeader",[["ledgerVersion",e.lookup("Uint32")],["previousLedgerHash",e.lookup("Hash")],["scpValue",e.lookup("StellarValue")],["txSetResultHash",e.lookup("Hash")],["bucketListHash",e.lookup("Hash")],["ledgerSeq",e.lookup("Uint32")],["totalCoins",e.lookup("Int64")],["feePool",e.lookup("Int64")],["inflationSeq",e.lookup("Uint32")],["idPool",e.lookup("Uint64")],["baseFee",e.lookup("Uint32")],["baseReserve",e.lookup("Uint32")],["maxTxSetSize",e.lookup("Uint32")],["skipList",e.array(e.lookup("Hash"),4)],["ext",e.lookup("LedgerHeaderExt")]]),e.enum("LedgerUpgradeType",{ledgerUpgradeVersion:1,ledgerUpgradeBaseFee:2,ledgerUpgradeMaxTxSetSize:3,ledgerUpgradeBaseReserve:4,ledgerUpgradeFlags:5,ledgerUpgradeConfig:6,ledgerUpgradeMaxSorobanTxSetSize:7}),e.struct("ConfigUpgradeSetKey",[["contractId",e.lookup("Hash")],["contentHash",e.lookup("Hash")]]),e.union("LedgerUpgrade",{switchOn:e.lookup("LedgerUpgradeType"),switchName:"type",switches:[["ledgerUpgradeVersion","newLedgerVersion"],["ledgerUpgradeBaseFee","newBaseFee"],["ledgerUpgradeMaxTxSetSize","newMaxTxSetSize"],["ledgerUpgradeBaseReserve","newBaseReserve"],["ledgerUpgradeFlags","newFlags"],["ledgerUpgradeConfig","newConfig"],["ledgerUpgradeMaxSorobanTxSetSize","newMaxSorobanTxSetSize"]],arms:{newLedgerVersion:e.lookup("Uint32"),newBaseFee:e.lookup("Uint32"),newMaxTxSetSize:e.lookup("Uint32"),newBaseReserve:e.lookup("Uint32"),newFlags:e.lookup("Uint32"),newConfig:e.lookup("ConfigUpgradeSetKey"),newMaxSorobanTxSetSize:e.lookup("Uint32")}}),e.struct("ConfigUpgradeSet",[["updatedEntry",e.varArray(e.lookup("ConfigSettingEntry"),2147483647)]]),e.enum("BucketEntryType",{metaentry:-1,liveentry:0,deadentry:1,initentry:2}),e.union("BucketMetadataExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("BucketMetadata",[["ledgerVersion",e.lookup("Uint32")],["ext",e.lookup("BucketMetadataExt")]]),e.union("BucketEntry",{switchOn:e.lookup("BucketEntryType"),switchName:"type",switches:[["liveentry","liveEntry"],["initentry","liveEntry"],["deadentry","deadEntry"],["metaentry","metaEntry"]],arms:{liveEntry:e.lookup("LedgerEntry"),deadEntry:e.lookup("LedgerKey"),metaEntry:e.lookup("BucketMetadata")}}),e.enum("TxSetComponentType",{txsetCompTxsMaybeDiscountedFee:0}),e.struct("TxSetComponentTxsMaybeDiscountedFee",[["baseFee",e.option(e.lookup("Int64"))],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.union("TxSetComponent",{switchOn:e.lookup("TxSetComponentType"),switchName:"type",switches:[["txsetCompTxsMaybeDiscountedFee","txsMaybeDiscountedFee"]],arms:{txsMaybeDiscountedFee:e.lookup("TxSetComponentTxsMaybeDiscountedFee")}}),e.union("TransactionPhase",{switchOn:e.int(),switchName:"v",switches:[[0,"v0Components"]],arms:{v0Components:e.varArray(e.lookup("TxSetComponent"),2147483647)}}),e.struct("TransactionSet",[["previousLedgerHash",e.lookup("Hash")],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.struct("TransactionSetV1",[["previousLedgerHash",e.lookup("Hash")],["phases",e.varArray(e.lookup("TransactionPhase"),2147483647)]]),e.union("GeneralizedTransactionSet",{switchOn:e.int(),switchName:"v",switches:[[1,"v1TxSet"]],arms:{v1TxSet:e.lookup("TransactionSetV1")}}),e.struct("TransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("TransactionResult")]]),e.struct("TransactionResultSet",[["results",e.varArray(e.lookup("TransactionResultPair"),2147483647)]]),e.union("TransactionHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"generalizedTxSet"]],arms:{generalizedTxSet:e.lookup("GeneralizedTransactionSet")}}),e.struct("TransactionHistoryEntry",[["ledgerSeq",e.lookup("Uint32")],["txSet",e.lookup("TransactionSet")],["ext",e.lookup("TransactionHistoryEntryExt")]]),e.union("TransactionHistoryResultEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionHistoryResultEntry",[["ledgerSeq",e.lookup("Uint32")],["txResultSet",e.lookup("TransactionResultSet")],["ext",e.lookup("TransactionHistoryResultEntryExt")]]),e.union("LedgerHeaderHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderHistoryEntry",[["hash",e.lookup("Hash")],["header",e.lookup("LedgerHeader")],["ext",e.lookup("LedgerHeaderHistoryEntryExt")]]),e.struct("LedgerScpMessages",[["ledgerSeq",e.lookup("Uint32")],["messages",e.varArray(e.lookup("ScpEnvelope"),2147483647)]]),e.struct("ScpHistoryEntryV0",[["quorumSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)],["ledgerMessages",e.lookup("LedgerScpMessages")]]),e.union("ScpHistoryEntry",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ScpHistoryEntryV0")}}),e.enum("LedgerEntryChangeType",{ledgerEntryCreated:0,ledgerEntryUpdated:1,ledgerEntryRemoved:2,ledgerEntryState:3}),e.union("LedgerEntryChange",{switchOn:e.lookup("LedgerEntryChangeType"),switchName:"type",switches:[["ledgerEntryCreated","created"],["ledgerEntryUpdated","updated"],["ledgerEntryRemoved","removed"],["ledgerEntryState","state"]],arms:{created:e.lookup("LedgerEntry"),updated:e.lookup("LedgerEntry"),removed:e.lookup("LedgerKey"),state:e.lookup("LedgerEntry")}}),e.typedef("LedgerEntryChanges",e.varArray(e.lookup("LedgerEntryChange"),2147483647)),e.struct("OperationMeta",[["changes",e.lookup("LedgerEntryChanges")]]),e.struct("TransactionMetaV1",[["txChanges",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)]]),e.struct("TransactionMetaV2",[["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")]]),e.enum("ContractEventType",{system:0,contract:1,diagnostic:2}),e.struct("ContractEventV0",[["topics",e.varArray(e.lookup("ScVal"),2147483647)],["data",e.lookup("ScVal")]]),e.union("ContractEventBody",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ContractEventV0")}}),e.struct("ContractEvent",[["ext",e.lookup("ExtensionPoint")],["contractId",e.option(e.lookup("Hash"))],["type",e.lookup("ContractEventType")],["body",e.lookup("ContractEventBody")]]),e.struct("DiagnosticEvent",[["inSuccessfulContractCall",e.bool()],["event",e.lookup("ContractEvent")]]),e.struct("SorobanTransactionMeta",[["ext",e.lookup("ExtensionPoint")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)],["returnValue",e.lookup("ScVal")],["diagnosticEvents",e.varArray(e.lookup("DiagnosticEvent"),2147483647)]]),e.struct("TransactionMetaV3",[["ext",e.lookup("ExtensionPoint")],["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")],["sorobanMeta",e.option(e.lookup("SorobanTransactionMeta"))]]),e.struct("InvokeHostFunctionSuccessPreImage",[["returnValue",e.lookup("ScVal")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)]]),e.union("TransactionMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"operations"],[1,"v1"],[2,"v2"],[3,"v3"]],arms:{operations:e.varArray(e.lookup("OperationMeta"),2147483647),v1:e.lookup("TransactionMetaV1"),v2:e.lookup("TransactionMetaV2"),v3:e.lookup("TransactionMetaV3")}}),e.struct("TransactionResultMeta",[["result",e.lookup("TransactionResultPair")],["feeProcessing",e.lookup("LedgerEntryChanges")],["txApplyProcessing",e.lookup("TransactionMeta")]]),e.struct("UpgradeEntryMeta",[["upgrade",e.lookup("LedgerUpgrade")],["changes",e.lookup("LedgerEntryChanges")]]),e.struct("LedgerCloseMetaV0",[["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("TransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)]]),e.struct("LedgerCloseMetaV1",[["ext",e.lookup("ExtensionPoint")],["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("GeneralizedTransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)],["totalByteSizeOfBucketList",e.lookup("Uint64")],["evictedTemporaryLedgerKeys",e.varArray(e.lookup("LedgerKey"),2147483647)],["evictedPersistentLedgerEntries",e.varArray(e.lookup("LedgerEntry"),2147483647)]]),e.union("LedgerCloseMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"],[1,"v1"]],arms:{v0:e.lookup("LedgerCloseMetaV0"),v1:e.lookup("LedgerCloseMetaV1")}}),e.enum("ErrorCode",{errMisc:0,errData:1,errConf:2,errAuth:3,errLoad:4}),e.struct("Error",[["code",e.lookup("ErrorCode")],["msg",e.string(100)]]),e.struct("SendMore",[["numMessages",e.lookup("Uint32")]]),e.struct("SendMoreExtended",[["numMessages",e.lookup("Uint32")],["numBytes",e.lookup("Uint32")]]),e.struct("AuthCert",[["pubkey",e.lookup("Curve25519Public")],["expiration",e.lookup("Uint64")],["sig",e.lookup("Signature")]]),e.struct("Hello",[["ledgerVersion",e.lookup("Uint32")],["overlayVersion",e.lookup("Uint32")],["overlayMinVersion",e.lookup("Uint32")],["networkId",e.lookup("Hash")],["versionStr",e.string(100)],["listeningPort",e.int()],["peerId",e.lookup("NodeId")],["cert",e.lookup("AuthCert")],["nonce",e.lookup("Uint256")]]),e.const("AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED",200),e.struct("Auth",[["flags",e.int()]]),e.enum("IpAddrType",{iPv4:0,iPv6:1}),e.union("PeerAddressIp",{switchOn:e.lookup("IpAddrType"),switchName:"type",switches:[["iPv4","ipv4"],["iPv6","ipv6"]],arms:{ipv4:e.opaque(4),ipv6:e.opaque(16)}}),e.struct("PeerAddress",[["ip",e.lookup("PeerAddressIp")],["port",e.lookup("Uint32")],["numFailures",e.lookup("Uint32")]]),e.enum("MessageType",{errorMsg:0,auth:2,dontHave:3,getPeers:4,peers:5,getTxSet:6,txSet:7,generalizedTxSet:17,transaction:8,getScpQuorumset:9,scpQuorumset:10,scpMessage:11,getScpState:12,hello:13,surveyRequest:14,surveyResponse:15,sendMore:16,sendMoreExtended:20,floodAdvert:18,floodDemand:19}),e.struct("DontHave",[["type",e.lookup("MessageType")],["reqHash",e.lookup("Uint256")]]),e.enum("SurveyMessageCommandType",{surveyTopology:0}),e.enum("SurveyMessageResponseType",{surveyTopologyResponseV0:0,surveyTopologyResponseV1:1}),e.struct("SurveyRequestMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["encryptionKey",e.lookup("Curve25519Public")],["commandType",e.lookup("SurveyMessageCommandType")]]),e.struct("SignedSurveyRequestMessage",[["requestSignature",e.lookup("Signature")],["request",e.lookup("SurveyRequestMessage")]]),e.typedef("EncryptedBody",e.varOpaque(64e3)),e.struct("SurveyResponseMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["commandType",e.lookup("SurveyMessageCommandType")],["encryptedBody",e.lookup("EncryptedBody")]]),e.struct("SignedSurveyResponseMessage",[["responseSignature",e.lookup("Signature")],["response",e.lookup("SurveyResponseMessage")]]),e.struct("PeerStats",[["id",e.lookup("NodeId")],["versionStr",e.string(100)],["messagesRead",e.lookup("Uint64")],["messagesWritten",e.lookup("Uint64")],["bytesRead",e.lookup("Uint64")],["bytesWritten",e.lookup("Uint64")],["secondsConnected",e.lookup("Uint64")],["uniqueFloodBytesRecv",e.lookup("Uint64")],["duplicateFloodBytesRecv",e.lookup("Uint64")],["uniqueFetchBytesRecv",e.lookup("Uint64")],["duplicateFetchBytesRecv",e.lookup("Uint64")],["uniqueFloodMessageRecv",e.lookup("Uint64")],["duplicateFloodMessageRecv",e.lookup("Uint64")],["uniqueFetchMessageRecv",e.lookup("Uint64")],["duplicateFetchMessageRecv",e.lookup("Uint64")]]),e.typedef("PeerStatList",e.varArray(e.lookup("PeerStats"),25)),e.struct("TopologyResponseBodyV0",[["inboundPeers",e.lookup("PeerStatList")],["outboundPeers",e.lookup("PeerStatList")],["totalInboundPeerCount",e.lookup("Uint32")],["totalOutboundPeerCount",e.lookup("Uint32")]]),e.struct("TopologyResponseBodyV1",[["inboundPeers",e.lookup("PeerStatList")],["outboundPeers",e.lookup("PeerStatList")],["totalInboundPeerCount",e.lookup("Uint32")],["totalOutboundPeerCount",e.lookup("Uint32")],["maxInboundPeerCount",e.lookup("Uint32")],["maxOutboundPeerCount",e.lookup("Uint32")]]),e.union("SurveyResponseBody",{switchOn:e.lookup("SurveyMessageResponseType"),switchName:"type",switches:[["surveyTopologyResponseV0","topologyResponseBodyV0"],["surveyTopologyResponseV1","topologyResponseBodyV1"]],arms:{topologyResponseBodyV0:e.lookup("TopologyResponseBodyV0"),topologyResponseBodyV1:e.lookup("TopologyResponseBodyV1")}}),e.const("TX_ADVERT_VECTOR_MAX_SIZE",1e3),e.typedef("TxAdvertVector",e.varArray(e.lookup("Hash"),e.lookup("TX_ADVERT_VECTOR_MAX_SIZE"))),e.struct("FloodAdvert",[["txHashes",e.lookup("TxAdvertVector")]]),e.const("TX_DEMAND_VECTOR_MAX_SIZE",1e3),e.typedef("TxDemandVector",e.varArray(e.lookup("Hash"),e.lookup("TX_DEMAND_VECTOR_MAX_SIZE"))),e.struct("FloodDemand",[["txHashes",e.lookup("TxDemandVector")]]),e.union("StellarMessage",{switchOn:e.lookup("MessageType"),switchName:"type",switches:[["errorMsg","error"],["hello","hello"],["auth","auth"],["dontHave","dontHave"],["getPeers",e.void()],["peers","peers"],["getTxSet","txSetHash"],["txSet","txSet"],["generalizedTxSet","generalizedTxSet"],["transaction","transaction"],["surveyRequest","signedSurveyRequestMessage"],["surveyResponse","signedSurveyResponseMessage"],["getScpQuorumset","qSetHash"],["scpQuorumset","qSet"],["scpMessage","envelope"],["getScpState","getScpLedgerSeq"],["sendMore","sendMoreMessage"],["sendMoreExtended","sendMoreExtendedMessage"],["floodAdvert","floodAdvert"],["floodDemand","floodDemand"]],arms:{error:e.lookup("Error"),hello:e.lookup("Hello"),auth:e.lookup("Auth"),dontHave:e.lookup("DontHave"),peers:e.varArray(e.lookup("PeerAddress"),100),txSetHash:e.lookup("Uint256"),txSet:e.lookup("TransactionSet"),generalizedTxSet:e.lookup("GeneralizedTransactionSet"),transaction:e.lookup("TransactionEnvelope"),signedSurveyRequestMessage:e.lookup("SignedSurveyRequestMessage"),signedSurveyResponseMessage:e.lookup("SignedSurveyResponseMessage"),qSetHash:e.lookup("Uint256"),qSet:e.lookup("ScpQuorumSet"),envelope:e.lookup("ScpEnvelope"),getScpLedgerSeq:e.lookup("Uint32"),sendMoreMessage:e.lookup("SendMore"),sendMoreExtendedMessage:e.lookup("SendMoreExtended"),floodAdvert:e.lookup("FloodAdvert"),floodDemand:e.lookup("FloodDemand")}}),e.struct("AuthenticatedMessageV0",[["sequence",e.lookup("Uint64")],["message",e.lookup("StellarMessage")],["mac",e.lookup("HmacSha256Mac")]]),e.union("AuthenticatedMessage",{switchOn:e.lookup("Uint32"),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("AuthenticatedMessageV0")}}),e.const("MAX_OPS_PER_TX",100),e.union("LiquidityPoolParameters",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolConstantProductParameters")}}),e.struct("MuxedAccountMed25519",[["id",e.lookup("Uint64")],["ed25519",e.lookup("Uint256")]]),e.union("MuxedAccount",{switchOn:e.lookup("CryptoKeyType"),switchName:"type",switches:[["keyTypeEd25519","ed25519"],["keyTypeMuxedEd25519","med25519"]],arms:{ed25519:e.lookup("Uint256"),med25519:e.lookup("MuxedAccountMed25519")}}),e.struct("DecoratedSignature",[["hint",e.lookup("SignatureHint")],["signature",e.lookup("Signature")]]),e.enum("OperationType",{createAccount:0,payment:1,pathPaymentStrictReceive:2,manageSellOffer:3,createPassiveSellOffer:4,setOptions:5,changeTrust:6,allowTrust:7,accountMerge:8,inflation:9,manageData:10,bumpSequence:11,manageBuyOffer:12,pathPaymentStrictSend:13,createClaimableBalance:14,claimClaimableBalance:15,beginSponsoringFutureReserves:16,endSponsoringFutureReserves:17,revokeSponsorship:18,clawback:19,clawbackClaimableBalance:20,setTrustLineFlags:21,liquidityPoolDeposit:22,liquidityPoolWithdraw:23,invokeHostFunction:24,extendFootprintTtl:25,restoreFootprint:26}),e.struct("CreateAccountOp",[["destination",e.lookup("AccountId")],["startingBalance",e.lookup("Int64")]]),e.struct("PaymentOp",[["destination",e.lookup("MuxedAccount")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveOp",[["sendAsset",e.lookup("Asset")],["sendMax",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destAmount",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("PathPaymentStrictSendOp",[["sendAsset",e.lookup("Asset")],["sendAmount",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destMin",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("ManageSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("ManageBuyOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["buyAmount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("CreatePassiveSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")]]),e.struct("SetOptionsOp",[["inflationDest",e.option(e.lookup("AccountId"))],["clearFlags",e.option(e.lookup("Uint32"))],["setFlags",e.option(e.lookup("Uint32"))],["masterWeight",e.option(e.lookup("Uint32"))],["lowThreshold",e.option(e.lookup("Uint32"))],["medThreshold",e.option(e.lookup("Uint32"))],["highThreshold",e.option(e.lookup("Uint32"))],["homeDomain",e.option(e.lookup("String32"))],["signer",e.option(e.lookup("Signer"))]]),e.union("ChangeTrustAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPool"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPool:e.lookup("LiquidityPoolParameters")}}),e.struct("ChangeTrustOp",[["line",e.lookup("ChangeTrustAsset")],["limit",e.lookup("Int64")]]),e.struct("AllowTrustOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("AssetCode")],["authorize",e.lookup("Uint32")]]),e.struct("ManageDataOp",[["dataName",e.lookup("String64")],["dataValue",e.option(e.lookup("DataValue"))]]),e.struct("BumpSequenceOp",[["bumpTo",e.lookup("SequenceNumber")]]),e.struct("CreateClaimableBalanceOp",[["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["claimants",e.varArray(e.lookup("Claimant"),10)]]),e.struct("ClaimClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("BeginSponsoringFutureReservesOp",[["sponsoredId",e.lookup("AccountId")]]),e.enum("RevokeSponsorshipType",{revokeSponsorshipLedgerEntry:0,revokeSponsorshipSigner:1}),e.struct("RevokeSponsorshipOpSigner",[["accountId",e.lookup("AccountId")],["signerKey",e.lookup("SignerKey")]]),e.union("RevokeSponsorshipOp",{switchOn:e.lookup("RevokeSponsorshipType"),switchName:"type",switches:[["revokeSponsorshipLedgerEntry","ledgerKey"],["revokeSponsorshipSigner","signer"]],arms:{ledgerKey:e.lookup("LedgerKey"),signer:e.lookup("RevokeSponsorshipOpSigner")}}),e.struct("ClawbackOp",[["asset",e.lookup("Asset")],["from",e.lookup("MuxedAccount")],["amount",e.lookup("Int64")]]),e.struct("ClawbackClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("SetTrustLineFlagsOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("Asset")],["clearFlags",e.lookup("Uint32")],["setFlags",e.lookup("Uint32")]]),e.const("LIQUIDITY_POOL_FEE_V18",30),e.struct("LiquidityPoolDepositOp",[["liquidityPoolId",e.lookup("PoolId")],["maxAmountA",e.lookup("Int64")],["maxAmountB",e.lookup("Int64")],["minPrice",e.lookup("Price")],["maxPrice",e.lookup("Price")]]),e.struct("LiquidityPoolWithdrawOp",[["liquidityPoolId",e.lookup("PoolId")],["amount",e.lookup("Int64")],["minAmountA",e.lookup("Int64")],["minAmountB",e.lookup("Int64")]]),e.enum("HostFunctionType",{hostFunctionTypeInvokeContract:0,hostFunctionTypeCreateContract:1,hostFunctionTypeUploadContractWasm:2}),e.enum("ContractIdPreimageType",{contractIdPreimageFromAddress:0,contractIdPreimageFromAsset:1}),e.struct("ContractIdPreimageFromAddress",[["address",e.lookup("ScAddress")],["salt",e.lookup("Uint256")]]),e.union("ContractIdPreimage",{switchOn:e.lookup("ContractIdPreimageType"),switchName:"type",switches:[["contractIdPreimageFromAddress","fromAddress"],["contractIdPreimageFromAsset","fromAsset"]],arms:{fromAddress:e.lookup("ContractIdPreimageFromAddress"),fromAsset:e.lookup("Asset")}}),e.struct("CreateContractArgs",[["contractIdPreimage",e.lookup("ContractIdPreimage")],["executable",e.lookup("ContractExecutable")]]),e.struct("InvokeContractArgs",[["contractAddress",e.lookup("ScAddress")],["functionName",e.lookup("ScSymbol")],["args",e.varArray(e.lookup("ScVal"),2147483647)]]),e.union("HostFunction",{switchOn:e.lookup("HostFunctionType"),switchName:"type",switches:[["hostFunctionTypeInvokeContract","invokeContract"],["hostFunctionTypeCreateContract","createContract"],["hostFunctionTypeUploadContractWasm","wasm"]],arms:{invokeContract:e.lookup("InvokeContractArgs"),createContract:e.lookup("CreateContractArgs"),wasm:e.varOpaque()}}),e.enum("SorobanAuthorizedFunctionType",{sorobanAuthorizedFunctionTypeContractFn:0,sorobanAuthorizedFunctionTypeCreateContractHostFn:1}),e.union("SorobanAuthorizedFunction",{switchOn:e.lookup("SorobanAuthorizedFunctionType"),switchName:"type",switches:[["sorobanAuthorizedFunctionTypeContractFn","contractFn"],["sorobanAuthorizedFunctionTypeCreateContractHostFn","createContractHostFn"]],arms:{contractFn:e.lookup("InvokeContractArgs"),createContractHostFn:e.lookup("CreateContractArgs")}}),e.struct("SorobanAuthorizedInvocation",[["function",e.lookup("SorobanAuthorizedFunction")],["subInvocations",e.varArray(e.lookup("SorobanAuthorizedInvocation"),2147483647)]]),e.struct("SorobanAddressCredentials",[["address",e.lookup("ScAddress")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["signature",e.lookup("ScVal")]]),e.enum("SorobanCredentialsType",{sorobanCredentialsSourceAccount:0,sorobanCredentialsAddress:1}),e.union("SorobanCredentials",{switchOn:e.lookup("SorobanCredentialsType"),switchName:"type",switches:[["sorobanCredentialsSourceAccount",e.void()],["sorobanCredentialsAddress","address"]],arms:{address:e.lookup("SorobanAddressCredentials")}}),e.struct("SorobanAuthorizationEntry",[["credentials",e.lookup("SorobanCredentials")],["rootInvocation",e.lookup("SorobanAuthorizedInvocation")]]),e.struct("InvokeHostFunctionOp",[["hostFunction",e.lookup("HostFunction")],["auth",e.varArray(e.lookup("SorobanAuthorizationEntry"),2147483647)]]),e.struct("ExtendFootprintTtlOp",[["ext",e.lookup("ExtensionPoint")],["extendTo",e.lookup("Uint32")]]),e.struct("RestoreFootprintOp",[["ext",e.lookup("ExtensionPoint")]]),e.union("OperationBody",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountOp"],["payment","paymentOp"],["pathPaymentStrictReceive","pathPaymentStrictReceiveOp"],["manageSellOffer","manageSellOfferOp"],["createPassiveSellOffer","createPassiveSellOfferOp"],["setOptions","setOptionsOp"],["changeTrust","changeTrustOp"],["allowTrust","allowTrustOp"],["accountMerge","destination"],["inflation",e.void()],["manageData","manageDataOp"],["bumpSequence","bumpSequenceOp"],["manageBuyOffer","manageBuyOfferOp"],["pathPaymentStrictSend","pathPaymentStrictSendOp"],["createClaimableBalance","createClaimableBalanceOp"],["claimClaimableBalance","claimClaimableBalanceOp"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesOp"],["endSponsoringFutureReserves",e.void()],["revokeSponsorship","revokeSponsorshipOp"],["clawback","clawbackOp"],["clawbackClaimableBalance","clawbackClaimableBalanceOp"],["setTrustLineFlags","setTrustLineFlagsOp"],["liquidityPoolDeposit","liquidityPoolDepositOp"],["liquidityPoolWithdraw","liquidityPoolWithdrawOp"],["invokeHostFunction","invokeHostFunctionOp"],["extendFootprintTtl","extendFootprintTtlOp"],["restoreFootprint","restoreFootprintOp"]],arms:{createAccountOp:e.lookup("CreateAccountOp"),paymentOp:e.lookup("PaymentOp"),pathPaymentStrictReceiveOp:e.lookup("PathPaymentStrictReceiveOp"),manageSellOfferOp:e.lookup("ManageSellOfferOp"),createPassiveSellOfferOp:e.lookup("CreatePassiveSellOfferOp"),setOptionsOp:e.lookup("SetOptionsOp"),changeTrustOp:e.lookup("ChangeTrustOp"),allowTrustOp:e.lookup("AllowTrustOp"),destination:e.lookup("MuxedAccount"),manageDataOp:e.lookup("ManageDataOp"),bumpSequenceOp:e.lookup("BumpSequenceOp"),manageBuyOfferOp:e.lookup("ManageBuyOfferOp"),pathPaymentStrictSendOp:e.lookup("PathPaymentStrictSendOp"),createClaimableBalanceOp:e.lookup("CreateClaimableBalanceOp"),claimClaimableBalanceOp:e.lookup("ClaimClaimableBalanceOp"),beginSponsoringFutureReservesOp:e.lookup("BeginSponsoringFutureReservesOp"),revokeSponsorshipOp:e.lookup("RevokeSponsorshipOp"),clawbackOp:e.lookup("ClawbackOp"),clawbackClaimableBalanceOp:e.lookup("ClawbackClaimableBalanceOp"),setTrustLineFlagsOp:e.lookup("SetTrustLineFlagsOp"),liquidityPoolDepositOp:e.lookup("LiquidityPoolDepositOp"),liquidityPoolWithdrawOp:e.lookup("LiquidityPoolWithdrawOp"),invokeHostFunctionOp:e.lookup("InvokeHostFunctionOp"),extendFootprintTtlOp:e.lookup("ExtendFootprintTtlOp"),restoreFootprintOp:e.lookup("RestoreFootprintOp")}}),e.struct("Operation",[["sourceAccount",e.option(e.lookup("MuxedAccount"))],["body",e.lookup("OperationBody")]]),e.struct("HashIdPreimageOperationId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")]]),e.struct("HashIdPreimageRevokeId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")],["liquidityPoolId",e.lookup("PoolId")],["asset",e.lookup("Asset")]]),e.struct("HashIdPreimageContractId",[["networkId",e.lookup("Hash")],["contractIdPreimage",e.lookup("ContractIdPreimage")]]),e.struct("HashIdPreimageSorobanAuthorization",[["networkId",e.lookup("Hash")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["invocation",e.lookup("SorobanAuthorizedInvocation")]]),e.union("HashIdPreimage",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeOpId","operationId"],["envelopeTypePoolRevokeOpId","revokeId"],["envelopeTypeContractId","contractId"],["envelopeTypeSorobanAuthorization","sorobanAuthorization"]],arms:{operationId:e.lookup("HashIdPreimageOperationId"),revokeId:e.lookup("HashIdPreimageRevokeId"),contractId:e.lookup("HashIdPreimageContractId"),sorobanAuthorization:e.lookup("HashIdPreimageSorobanAuthorization")}}),e.enum("MemoType",{memoNone:0,memoText:1,memoId:2,memoHash:3,memoReturn:4}),e.union("Memo",{switchOn:e.lookup("MemoType"),switchName:"type",switches:[["memoNone",e.void()],["memoText","text"],["memoId","id"],["memoHash","hash"],["memoReturn","retHash"]],arms:{text:e.string(28),id:e.lookup("Uint64"),hash:e.lookup("Hash"),retHash:e.lookup("Hash")}}),e.struct("TimeBounds",[["minTime",e.lookup("TimePoint")],["maxTime",e.lookup("TimePoint")]]),e.struct("LedgerBounds",[["minLedger",e.lookup("Uint32")],["maxLedger",e.lookup("Uint32")]]),e.struct("PreconditionsV2",[["timeBounds",e.option(e.lookup("TimeBounds"))],["ledgerBounds",e.option(e.lookup("LedgerBounds"))],["minSeqNum",e.option(e.lookup("SequenceNumber"))],["minSeqAge",e.lookup("Duration")],["minSeqLedgerGap",e.lookup("Uint32")],["extraSigners",e.varArray(e.lookup("SignerKey"),2)]]),e.enum("PreconditionType",{precondNone:0,precondTime:1,precondV2:2}),e.union("Preconditions",{switchOn:e.lookup("PreconditionType"),switchName:"type",switches:[["precondNone",e.void()],["precondTime","timeBounds"],["precondV2","v2"]],arms:{timeBounds:e.lookup("TimeBounds"),v2:e.lookup("PreconditionsV2")}}),e.struct("LedgerFootprint",[["readOnly",e.varArray(e.lookup("LedgerKey"),2147483647)],["readWrite",e.varArray(e.lookup("LedgerKey"),2147483647)]]),e.struct("SorobanResources",[["footprint",e.lookup("LedgerFootprint")],["instructions",e.lookup("Uint32")],["readBytes",e.lookup("Uint32")],["writeBytes",e.lookup("Uint32")]]),e.struct("SorobanTransactionData",[["ext",e.lookup("ExtensionPoint")],["resources",e.lookup("SorobanResources")],["resourceFee",e.lookup("Int64")]]),e.union("TransactionV0Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionV0",[["sourceAccountEd25519",e.lookup("Uint256")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["timeBounds",e.option(e.lookup("TimeBounds"))],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionV0Ext")]]),e.struct("TransactionV0Envelope",[["tx",e.lookup("TransactionV0")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"sorobanData"]],arms:{sorobanData:e.lookup("SorobanTransactionData")}}),e.struct("Transaction",[["sourceAccount",e.lookup("MuxedAccount")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["cond",e.lookup("Preconditions")],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionExt")]]),e.struct("TransactionV1Envelope",[["tx",e.lookup("Transaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("FeeBumpTransactionInnerTx",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","v1"]],arms:{v1:e.lookup("TransactionV1Envelope")}}),e.union("FeeBumpTransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("FeeBumpTransaction",[["feeSource",e.lookup("MuxedAccount")],["fee",e.lookup("Int64")],["innerTx",e.lookup("FeeBumpTransactionInnerTx")],["ext",e.lookup("FeeBumpTransactionExt")]]),e.struct("FeeBumpTransactionEnvelope",[["tx",e.lookup("FeeBumpTransaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionEnvelope",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTxV0","v0"],["envelopeTypeTx","v1"],["envelopeTypeTxFeeBump","feeBump"]],arms:{v0:e.lookup("TransactionV0Envelope"),v1:e.lookup("TransactionV1Envelope"),feeBump:e.lookup("FeeBumpTransactionEnvelope")}}),e.union("TransactionSignaturePayloadTaggedTransaction",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","tx"],["envelopeTypeTxFeeBump","feeBump"]],arms:{tx:e.lookup("Transaction"),feeBump:e.lookup("FeeBumpTransaction")}}),e.struct("TransactionSignaturePayload",[["networkId",e.lookup("Hash")],["taggedTransaction",e.lookup("TransactionSignaturePayloadTaggedTransaction")]]),e.enum("ClaimAtomType",{claimAtomTypeV0:0,claimAtomTypeOrderBook:1,claimAtomTypeLiquidityPool:2}),e.struct("ClaimOfferAtomV0",[["sellerEd25519",e.lookup("Uint256")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimOfferAtom",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimLiquidityAtom",[["liquidityPoolId",e.lookup("PoolId")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.union("ClaimAtom",{switchOn:e.lookup("ClaimAtomType"),switchName:"type",switches:[["claimAtomTypeV0","v0"],["claimAtomTypeOrderBook","orderBook"],["claimAtomTypeLiquidityPool","liquidityPool"]],arms:{v0:e.lookup("ClaimOfferAtomV0"),orderBook:e.lookup("ClaimOfferAtom"),liquidityPool:e.lookup("ClaimLiquidityAtom")}}),e.enum("CreateAccountResultCode",{createAccountSuccess:0,createAccountMalformed:-1,createAccountUnderfunded:-2,createAccountLowReserve:-3,createAccountAlreadyExist:-4}),e.union("CreateAccountResult",{switchOn:e.lookup("CreateAccountResultCode"),switchName:"code",switches:[["createAccountSuccess",e.void()],["createAccountMalformed",e.void()],["createAccountUnderfunded",e.void()],["createAccountLowReserve",e.void()],["createAccountAlreadyExist",e.void()]],arms:{}}),e.enum("PaymentResultCode",{paymentSuccess:0,paymentMalformed:-1,paymentUnderfunded:-2,paymentSrcNoTrust:-3,paymentSrcNotAuthorized:-4,paymentNoDestination:-5,paymentNoTrust:-6,paymentNotAuthorized:-7,paymentLineFull:-8,paymentNoIssuer:-9}),e.union("PaymentResult",{switchOn:e.lookup("PaymentResultCode"),switchName:"code",switches:[["paymentSuccess",e.void()],["paymentMalformed",e.void()],["paymentUnderfunded",e.void()],["paymentSrcNoTrust",e.void()],["paymentSrcNotAuthorized",e.void()],["paymentNoDestination",e.void()],["paymentNoTrust",e.void()],["paymentNotAuthorized",e.void()],["paymentLineFull",e.void()],["paymentNoIssuer",e.void()]],arms:{}}),e.enum("PathPaymentStrictReceiveResultCode",{pathPaymentStrictReceiveSuccess:0,pathPaymentStrictReceiveMalformed:-1,pathPaymentStrictReceiveUnderfunded:-2,pathPaymentStrictReceiveSrcNoTrust:-3,pathPaymentStrictReceiveSrcNotAuthorized:-4,pathPaymentStrictReceiveNoDestination:-5,pathPaymentStrictReceiveNoTrust:-6,pathPaymentStrictReceiveNotAuthorized:-7,pathPaymentStrictReceiveLineFull:-8,pathPaymentStrictReceiveNoIssuer:-9,pathPaymentStrictReceiveTooFewOffers:-10,pathPaymentStrictReceiveOfferCrossSelf:-11,pathPaymentStrictReceiveOverSendmax:-12}),e.struct("SimplePaymentResult",[["destination",e.lookup("AccountId")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictReceiveResult",{switchOn:e.lookup("PathPaymentStrictReceiveResultCode"),switchName:"code",switches:[["pathPaymentStrictReceiveSuccess","success"],["pathPaymentStrictReceiveMalformed",e.void()],["pathPaymentStrictReceiveUnderfunded",e.void()],["pathPaymentStrictReceiveSrcNoTrust",e.void()],["pathPaymentStrictReceiveSrcNotAuthorized",e.void()],["pathPaymentStrictReceiveNoDestination",e.void()],["pathPaymentStrictReceiveNoTrust",e.void()],["pathPaymentStrictReceiveNotAuthorized",e.void()],["pathPaymentStrictReceiveLineFull",e.void()],["pathPaymentStrictReceiveNoIssuer","noIssuer"],["pathPaymentStrictReceiveTooFewOffers",e.void()],["pathPaymentStrictReceiveOfferCrossSelf",e.void()],["pathPaymentStrictReceiveOverSendmax",e.void()]],arms:{success:e.lookup("PathPaymentStrictReceiveResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("PathPaymentStrictSendResultCode",{pathPaymentStrictSendSuccess:0,pathPaymentStrictSendMalformed:-1,pathPaymentStrictSendUnderfunded:-2,pathPaymentStrictSendSrcNoTrust:-3,pathPaymentStrictSendSrcNotAuthorized:-4,pathPaymentStrictSendNoDestination:-5,pathPaymentStrictSendNoTrust:-6,pathPaymentStrictSendNotAuthorized:-7,pathPaymentStrictSendLineFull:-8,pathPaymentStrictSendNoIssuer:-9,pathPaymentStrictSendTooFewOffers:-10,pathPaymentStrictSendOfferCrossSelf:-11,pathPaymentStrictSendUnderDestmin:-12}),e.struct("PathPaymentStrictSendResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictSendResult",{switchOn:e.lookup("PathPaymentStrictSendResultCode"),switchName:"code",switches:[["pathPaymentStrictSendSuccess","success"],["pathPaymentStrictSendMalformed",e.void()],["pathPaymentStrictSendUnderfunded",e.void()],["pathPaymentStrictSendSrcNoTrust",e.void()],["pathPaymentStrictSendSrcNotAuthorized",e.void()],["pathPaymentStrictSendNoDestination",e.void()],["pathPaymentStrictSendNoTrust",e.void()],["pathPaymentStrictSendNotAuthorized",e.void()],["pathPaymentStrictSendLineFull",e.void()],["pathPaymentStrictSendNoIssuer","noIssuer"],["pathPaymentStrictSendTooFewOffers",e.void()],["pathPaymentStrictSendOfferCrossSelf",e.void()],["pathPaymentStrictSendUnderDestmin",e.void()]],arms:{success:e.lookup("PathPaymentStrictSendResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("ManageSellOfferResultCode",{manageSellOfferSuccess:0,manageSellOfferMalformed:-1,manageSellOfferSellNoTrust:-2,manageSellOfferBuyNoTrust:-3,manageSellOfferSellNotAuthorized:-4,manageSellOfferBuyNotAuthorized:-5,manageSellOfferLineFull:-6,manageSellOfferUnderfunded:-7,manageSellOfferCrossSelf:-8,manageSellOfferSellNoIssuer:-9,manageSellOfferBuyNoIssuer:-10,manageSellOfferNotFound:-11,manageSellOfferLowReserve:-12}),e.enum("ManageOfferEffect",{manageOfferCreated:0,manageOfferUpdated:1,manageOfferDeleted:2}),e.union("ManageOfferSuccessResultOffer",{switchOn:e.lookup("ManageOfferEffect"),switchName:"effect",switches:[["manageOfferCreated","offer"],["manageOfferUpdated","offer"],["manageOfferDeleted",e.void()]],arms:{offer:e.lookup("OfferEntry")}}),e.struct("ManageOfferSuccessResult",[["offersClaimed",e.varArray(e.lookup("ClaimAtom"),2147483647)],["offer",e.lookup("ManageOfferSuccessResultOffer")]]),e.union("ManageSellOfferResult",{switchOn:e.lookup("ManageSellOfferResultCode"),switchName:"code",switches:[["manageSellOfferSuccess","success"],["manageSellOfferMalformed",e.void()],["manageSellOfferSellNoTrust",e.void()],["manageSellOfferBuyNoTrust",e.void()],["manageSellOfferSellNotAuthorized",e.void()],["manageSellOfferBuyNotAuthorized",e.void()],["manageSellOfferLineFull",e.void()],["manageSellOfferUnderfunded",e.void()],["manageSellOfferCrossSelf",e.void()],["manageSellOfferSellNoIssuer",e.void()],["manageSellOfferBuyNoIssuer",e.void()],["manageSellOfferNotFound",e.void()],["manageSellOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("ManageBuyOfferResultCode",{manageBuyOfferSuccess:0,manageBuyOfferMalformed:-1,manageBuyOfferSellNoTrust:-2,manageBuyOfferBuyNoTrust:-3,manageBuyOfferSellNotAuthorized:-4,manageBuyOfferBuyNotAuthorized:-5,manageBuyOfferLineFull:-6,manageBuyOfferUnderfunded:-7,manageBuyOfferCrossSelf:-8,manageBuyOfferSellNoIssuer:-9,manageBuyOfferBuyNoIssuer:-10,manageBuyOfferNotFound:-11,manageBuyOfferLowReserve:-12}),e.union("ManageBuyOfferResult",{switchOn:e.lookup("ManageBuyOfferResultCode"),switchName:"code",switches:[["manageBuyOfferSuccess","success"],["manageBuyOfferMalformed",e.void()],["manageBuyOfferSellNoTrust",e.void()],["manageBuyOfferBuyNoTrust",e.void()],["manageBuyOfferSellNotAuthorized",e.void()],["manageBuyOfferBuyNotAuthorized",e.void()],["manageBuyOfferLineFull",e.void()],["manageBuyOfferUnderfunded",e.void()],["manageBuyOfferCrossSelf",e.void()],["manageBuyOfferSellNoIssuer",e.void()],["manageBuyOfferBuyNoIssuer",e.void()],["manageBuyOfferNotFound",e.void()],["manageBuyOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("SetOptionsResultCode",{setOptionsSuccess:0,setOptionsLowReserve:-1,setOptionsTooManySigners:-2,setOptionsBadFlags:-3,setOptionsInvalidInflation:-4,setOptionsCantChange:-5,setOptionsUnknownFlag:-6,setOptionsThresholdOutOfRange:-7,setOptionsBadSigner:-8,setOptionsInvalidHomeDomain:-9,setOptionsAuthRevocableRequired:-10}),e.union("SetOptionsResult",{switchOn:e.lookup("SetOptionsResultCode"),switchName:"code",switches:[["setOptionsSuccess",e.void()],["setOptionsLowReserve",e.void()],["setOptionsTooManySigners",e.void()],["setOptionsBadFlags",e.void()],["setOptionsInvalidInflation",e.void()],["setOptionsCantChange",e.void()],["setOptionsUnknownFlag",e.void()],["setOptionsThresholdOutOfRange",e.void()],["setOptionsBadSigner",e.void()],["setOptionsInvalidHomeDomain",e.void()],["setOptionsAuthRevocableRequired",e.void()]],arms:{}}),e.enum("ChangeTrustResultCode",{changeTrustSuccess:0,changeTrustMalformed:-1,changeTrustNoIssuer:-2,changeTrustInvalidLimit:-3,changeTrustLowReserve:-4,changeTrustSelfNotAllowed:-5,changeTrustTrustLineMissing:-6,changeTrustCannotDelete:-7,changeTrustNotAuthMaintainLiabilities:-8}),e.union("ChangeTrustResult",{switchOn:e.lookup("ChangeTrustResultCode"),switchName:"code",switches:[["changeTrustSuccess",e.void()],["changeTrustMalformed",e.void()],["changeTrustNoIssuer",e.void()],["changeTrustInvalidLimit",e.void()],["changeTrustLowReserve",e.void()],["changeTrustSelfNotAllowed",e.void()],["changeTrustTrustLineMissing",e.void()],["changeTrustCannotDelete",e.void()],["changeTrustNotAuthMaintainLiabilities",e.void()]],arms:{}}),e.enum("AllowTrustResultCode",{allowTrustSuccess:0,allowTrustMalformed:-1,allowTrustNoTrustLine:-2,allowTrustTrustNotRequired:-3,allowTrustCantRevoke:-4,allowTrustSelfNotAllowed:-5,allowTrustLowReserve:-6}),e.union("AllowTrustResult",{switchOn:e.lookup("AllowTrustResultCode"),switchName:"code",switches:[["allowTrustSuccess",e.void()],["allowTrustMalformed",e.void()],["allowTrustNoTrustLine",e.void()],["allowTrustTrustNotRequired",e.void()],["allowTrustCantRevoke",e.void()],["allowTrustSelfNotAllowed",e.void()],["allowTrustLowReserve",e.void()]],arms:{}}),e.enum("AccountMergeResultCode",{accountMergeSuccess:0,accountMergeMalformed:-1,accountMergeNoAccount:-2,accountMergeImmutableSet:-3,accountMergeHasSubEntries:-4,accountMergeSeqnumTooFar:-5,accountMergeDestFull:-6,accountMergeIsSponsor:-7}),e.union("AccountMergeResult",{switchOn:e.lookup("AccountMergeResultCode"),switchName:"code",switches:[["accountMergeSuccess","sourceAccountBalance"],["accountMergeMalformed",e.void()],["accountMergeNoAccount",e.void()],["accountMergeImmutableSet",e.void()],["accountMergeHasSubEntries",e.void()],["accountMergeSeqnumTooFar",e.void()],["accountMergeDestFull",e.void()],["accountMergeIsSponsor",e.void()]],arms:{sourceAccountBalance:e.lookup("Int64")}}),e.enum("InflationResultCode",{inflationSuccess:0,inflationNotTime:-1}),e.struct("InflationPayout",[["destination",e.lookup("AccountId")],["amount",e.lookup("Int64")]]),e.union("InflationResult",{switchOn:e.lookup("InflationResultCode"),switchName:"code",switches:[["inflationSuccess","payouts"],["inflationNotTime",e.void()]],arms:{payouts:e.varArray(e.lookup("InflationPayout"),2147483647)}}),e.enum("ManageDataResultCode",{manageDataSuccess:0,manageDataNotSupportedYet:-1,manageDataNameNotFound:-2,manageDataLowReserve:-3,manageDataInvalidName:-4}),e.union("ManageDataResult",{switchOn:e.lookup("ManageDataResultCode"),switchName:"code",switches:[["manageDataSuccess",e.void()],["manageDataNotSupportedYet",e.void()],["manageDataNameNotFound",e.void()],["manageDataLowReserve",e.void()],["manageDataInvalidName",e.void()]],arms:{}}),e.enum("BumpSequenceResultCode",{bumpSequenceSuccess:0,bumpSequenceBadSeq:-1}),e.union("BumpSequenceResult",{switchOn:e.lookup("BumpSequenceResultCode"),switchName:"code",switches:[["bumpSequenceSuccess",e.void()],["bumpSequenceBadSeq",e.void()]],arms:{}}),e.enum("CreateClaimableBalanceResultCode",{createClaimableBalanceSuccess:0,createClaimableBalanceMalformed:-1,createClaimableBalanceLowReserve:-2,createClaimableBalanceNoTrust:-3,createClaimableBalanceNotAuthorized:-4,createClaimableBalanceUnderfunded:-5}),e.union("CreateClaimableBalanceResult",{switchOn:e.lookup("CreateClaimableBalanceResultCode"),switchName:"code",switches:[["createClaimableBalanceSuccess","balanceId"],["createClaimableBalanceMalformed",e.void()],["createClaimableBalanceLowReserve",e.void()],["createClaimableBalanceNoTrust",e.void()],["createClaimableBalanceNotAuthorized",e.void()],["createClaimableBalanceUnderfunded",e.void()]],arms:{balanceId:e.lookup("ClaimableBalanceId")}}),e.enum("ClaimClaimableBalanceResultCode",{claimClaimableBalanceSuccess:0,claimClaimableBalanceDoesNotExist:-1,claimClaimableBalanceCannotClaim:-2,claimClaimableBalanceLineFull:-3,claimClaimableBalanceNoTrust:-4,claimClaimableBalanceNotAuthorized:-5}),e.union("ClaimClaimableBalanceResult",{switchOn:e.lookup("ClaimClaimableBalanceResultCode"),switchName:"code",switches:[["claimClaimableBalanceSuccess",e.void()],["claimClaimableBalanceDoesNotExist",e.void()],["claimClaimableBalanceCannotClaim",e.void()],["claimClaimableBalanceLineFull",e.void()],["claimClaimableBalanceNoTrust",e.void()],["claimClaimableBalanceNotAuthorized",e.void()]],arms:{}}),e.enum("BeginSponsoringFutureReservesResultCode",{beginSponsoringFutureReservesSuccess:0,beginSponsoringFutureReservesMalformed:-1,beginSponsoringFutureReservesAlreadySponsored:-2,beginSponsoringFutureReservesRecursive:-3}),e.union("BeginSponsoringFutureReservesResult",{switchOn:e.lookup("BeginSponsoringFutureReservesResultCode"),switchName:"code",switches:[["beginSponsoringFutureReservesSuccess",e.void()],["beginSponsoringFutureReservesMalformed",e.void()],["beginSponsoringFutureReservesAlreadySponsored",e.void()],["beginSponsoringFutureReservesRecursive",e.void()]],arms:{}}),e.enum("EndSponsoringFutureReservesResultCode",{endSponsoringFutureReservesSuccess:0,endSponsoringFutureReservesNotSponsored:-1}),e.union("EndSponsoringFutureReservesResult",{switchOn:e.lookup("EndSponsoringFutureReservesResultCode"),switchName:"code",switches:[["endSponsoringFutureReservesSuccess",e.void()],["endSponsoringFutureReservesNotSponsored",e.void()]],arms:{}}),e.enum("RevokeSponsorshipResultCode",{revokeSponsorshipSuccess:0,revokeSponsorshipDoesNotExist:-1,revokeSponsorshipNotSponsor:-2,revokeSponsorshipLowReserve:-3,revokeSponsorshipOnlyTransferable:-4,revokeSponsorshipMalformed:-5}),e.union("RevokeSponsorshipResult",{switchOn:e.lookup("RevokeSponsorshipResultCode"),switchName:"code",switches:[["revokeSponsorshipSuccess",e.void()],["revokeSponsorshipDoesNotExist",e.void()],["revokeSponsorshipNotSponsor",e.void()],["revokeSponsorshipLowReserve",e.void()],["revokeSponsorshipOnlyTransferable",e.void()],["revokeSponsorshipMalformed",e.void()]],arms:{}}),e.enum("ClawbackResultCode",{clawbackSuccess:0,clawbackMalformed:-1,clawbackNotClawbackEnabled:-2,clawbackNoTrust:-3,clawbackUnderfunded:-4}),e.union("ClawbackResult",{switchOn:e.lookup("ClawbackResultCode"),switchName:"code",switches:[["clawbackSuccess",e.void()],["clawbackMalformed",e.void()],["clawbackNotClawbackEnabled",e.void()],["clawbackNoTrust",e.void()],["clawbackUnderfunded",e.void()]],arms:{}}),e.enum("ClawbackClaimableBalanceResultCode",{clawbackClaimableBalanceSuccess:0,clawbackClaimableBalanceDoesNotExist:-1,clawbackClaimableBalanceNotIssuer:-2,clawbackClaimableBalanceNotClawbackEnabled:-3}),e.union("ClawbackClaimableBalanceResult",{switchOn:e.lookup("ClawbackClaimableBalanceResultCode"),switchName:"code",switches:[["clawbackClaimableBalanceSuccess",e.void()],["clawbackClaimableBalanceDoesNotExist",e.void()],["clawbackClaimableBalanceNotIssuer",e.void()],["clawbackClaimableBalanceNotClawbackEnabled",e.void()]],arms:{}}),e.enum("SetTrustLineFlagsResultCode",{setTrustLineFlagsSuccess:0,setTrustLineFlagsMalformed:-1,setTrustLineFlagsNoTrustLine:-2,setTrustLineFlagsCantRevoke:-3,setTrustLineFlagsInvalidState:-4,setTrustLineFlagsLowReserve:-5}),e.union("SetTrustLineFlagsResult",{switchOn:e.lookup("SetTrustLineFlagsResultCode"),switchName:"code",switches:[["setTrustLineFlagsSuccess",e.void()],["setTrustLineFlagsMalformed",e.void()],["setTrustLineFlagsNoTrustLine",e.void()],["setTrustLineFlagsCantRevoke",e.void()],["setTrustLineFlagsInvalidState",e.void()],["setTrustLineFlagsLowReserve",e.void()]],arms:{}}),e.enum("LiquidityPoolDepositResultCode",{liquidityPoolDepositSuccess:0,liquidityPoolDepositMalformed:-1,liquidityPoolDepositNoTrust:-2,liquidityPoolDepositNotAuthorized:-3,liquidityPoolDepositUnderfunded:-4,liquidityPoolDepositLineFull:-5,liquidityPoolDepositBadPrice:-6,liquidityPoolDepositPoolFull:-7}),e.union("LiquidityPoolDepositResult",{switchOn:e.lookup("LiquidityPoolDepositResultCode"),switchName:"code",switches:[["liquidityPoolDepositSuccess",e.void()],["liquidityPoolDepositMalformed",e.void()],["liquidityPoolDepositNoTrust",e.void()],["liquidityPoolDepositNotAuthorized",e.void()],["liquidityPoolDepositUnderfunded",e.void()],["liquidityPoolDepositLineFull",e.void()],["liquidityPoolDepositBadPrice",e.void()],["liquidityPoolDepositPoolFull",e.void()]],arms:{}}),e.enum("LiquidityPoolWithdrawResultCode",{liquidityPoolWithdrawSuccess:0,liquidityPoolWithdrawMalformed:-1,liquidityPoolWithdrawNoTrust:-2,liquidityPoolWithdrawUnderfunded:-3,liquidityPoolWithdrawLineFull:-4,liquidityPoolWithdrawUnderMinimum:-5}),e.union("LiquidityPoolWithdrawResult",{switchOn:e.lookup("LiquidityPoolWithdrawResultCode"),switchName:"code",switches:[["liquidityPoolWithdrawSuccess",e.void()],["liquidityPoolWithdrawMalformed",e.void()],["liquidityPoolWithdrawNoTrust",e.void()],["liquidityPoolWithdrawUnderfunded",e.void()],["liquidityPoolWithdrawLineFull",e.void()],["liquidityPoolWithdrawUnderMinimum",e.void()]],arms:{}}),e.enum("InvokeHostFunctionResultCode",{invokeHostFunctionSuccess:0,invokeHostFunctionMalformed:-1,invokeHostFunctionTrapped:-2,invokeHostFunctionResourceLimitExceeded:-3,invokeHostFunctionEntryArchived:-4,invokeHostFunctionInsufficientRefundableFee:-5}),e.union("InvokeHostFunctionResult",{switchOn:e.lookup("InvokeHostFunctionResultCode"),switchName:"code",switches:[["invokeHostFunctionSuccess","success"],["invokeHostFunctionMalformed",e.void()],["invokeHostFunctionTrapped",e.void()],["invokeHostFunctionResourceLimitExceeded",e.void()],["invokeHostFunctionEntryArchived",e.void()],["invokeHostFunctionInsufficientRefundableFee",e.void()]],arms:{success:e.lookup("Hash")}}),e.enum("ExtendFootprintTtlResultCode",{extendFootprintTtlSuccess:0,extendFootprintTtlMalformed:-1,extendFootprintTtlResourceLimitExceeded:-2,extendFootprintTtlInsufficientRefundableFee:-3}),e.union("ExtendFootprintTtlResult",{switchOn:e.lookup("ExtendFootprintTtlResultCode"),switchName:"code",switches:[["extendFootprintTtlSuccess",e.void()],["extendFootprintTtlMalformed",e.void()],["extendFootprintTtlResourceLimitExceeded",e.void()],["extendFootprintTtlInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("RestoreFootprintResultCode",{restoreFootprintSuccess:0,restoreFootprintMalformed:-1,restoreFootprintResourceLimitExceeded:-2,restoreFootprintInsufficientRefundableFee:-3}),e.union("RestoreFootprintResult",{switchOn:e.lookup("RestoreFootprintResultCode"),switchName:"code",switches:[["restoreFootprintSuccess",e.void()],["restoreFootprintMalformed",e.void()],["restoreFootprintResourceLimitExceeded",e.void()],["restoreFootprintInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("OperationResultCode",{opInner:0,opBadAuth:-1,opNoAccount:-2,opNotSupported:-3,opTooManySubentries:-4,opExceededWorkLimit:-5,opTooManySponsoring:-6}),e.union("OperationResultTr",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountResult"],["payment","paymentResult"],["pathPaymentStrictReceive","pathPaymentStrictReceiveResult"],["manageSellOffer","manageSellOfferResult"],["createPassiveSellOffer","createPassiveSellOfferResult"],["setOptions","setOptionsResult"],["changeTrust","changeTrustResult"],["allowTrust","allowTrustResult"],["accountMerge","accountMergeResult"],["inflation","inflationResult"],["manageData","manageDataResult"],["bumpSequence","bumpSeqResult"],["manageBuyOffer","manageBuyOfferResult"],["pathPaymentStrictSend","pathPaymentStrictSendResult"],["createClaimableBalance","createClaimableBalanceResult"],["claimClaimableBalance","claimClaimableBalanceResult"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesResult"],["endSponsoringFutureReserves","endSponsoringFutureReservesResult"],["revokeSponsorship","revokeSponsorshipResult"],["clawback","clawbackResult"],["clawbackClaimableBalance","clawbackClaimableBalanceResult"],["setTrustLineFlags","setTrustLineFlagsResult"],["liquidityPoolDeposit","liquidityPoolDepositResult"],["liquidityPoolWithdraw","liquidityPoolWithdrawResult"],["invokeHostFunction","invokeHostFunctionResult"],["extendFootprintTtl","extendFootprintTtlResult"],["restoreFootprint","restoreFootprintResult"]],arms:{createAccountResult:e.lookup("CreateAccountResult"),paymentResult:e.lookup("PaymentResult"),pathPaymentStrictReceiveResult:e.lookup("PathPaymentStrictReceiveResult"),manageSellOfferResult:e.lookup("ManageSellOfferResult"),createPassiveSellOfferResult:e.lookup("ManageSellOfferResult"),setOptionsResult:e.lookup("SetOptionsResult"),changeTrustResult:e.lookup("ChangeTrustResult"),allowTrustResult:e.lookup("AllowTrustResult"),accountMergeResult:e.lookup("AccountMergeResult"),inflationResult:e.lookup("InflationResult"),manageDataResult:e.lookup("ManageDataResult"),bumpSeqResult:e.lookup("BumpSequenceResult"),manageBuyOfferResult:e.lookup("ManageBuyOfferResult"),pathPaymentStrictSendResult:e.lookup("PathPaymentStrictSendResult"),createClaimableBalanceResult:e.lookup("CreateClaimableBalanceResult"),claimClaimableBalanceResult:e.lookup("ClaimClaimableBalanceResult"),beginSponsoringFutureReservesResult:e.lookup("BeginSponsoringFutureReservesResult"),endSponsoringFutureReservesResult:e.lookup("EndSponsoringFutureReservesResult"),revokeSponsorshipResult:e.lookup("RevokeSponsorshipResult"),clawbackResult:e.lookup("ClawbackResult"),clawbackClaimableBalanceResult:e.lookup("ClawbackClaimableBalanceResult"),setTrustLineFlagsResult:e.lookup("SetTrustLineFlagsResult"),liquidityPoolDepositResult:e.lookup("LiquidityPoolDepositResult"),liquidityPoolWithdrawResult:e.lookup("LiquidityPoolWithdrawResult"),invokeHostFunctionResult:e.lookup("InvokeHostFunctionResult"),extendFootprintTtlResult:e.lookup("ExtendFootprintTtlResult"),restoreFootprintResult:e.lookup("RestoreFootprintResult")}}),e.union("OperationResult",{switchOn:e.lookup("OperationResultCode"),switchName:"code",switches:[["opInner","tr"],["opBadAuth",e.void()],["opNoAccount",e.void()],["opNotSupported",e.void()],["opTooManySubentries",e.void()],["opExceededWorkLimit",e.void()],["opTooManySponsoring",e.void()]],arms:{tr:e.lookup("OperationResultTr")}}),e.enum("TransactionResultCode",{txFeeBumpInnerSuccess:1,txSuccess:0,txFailed:-1,txTooEarly:-2,txTooLate:-3,txMissingOperation:-4,txBadSeq:-5,txBadAuth:-6,txInsufficientBalance:-7,txNoAccount:-8,txInsufficientFee:-9,txBadAuthExtra:-10,txInternalError:-11,txNotSupported:-12,txFeeBumpInnerFailed:-13,txBadSponsorship:-14,txBadMinSeqAgeOrGap:-15,txMalformed:-16,txSorobanInvalid:-17}),e.union("InnerTransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("InnerTransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("InnerTransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("InnerTransactionResultResult")],["ext",e.lookup("InnerTransactionResultExt")]]),e.struct("InnerTransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("InnerTransactionResult")]]),e.union("TransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txFeeBumpInnerSuccess","innerResultPair"],["txFeeBumpInnerFailed","innerResultPair"],["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{innerResultPair:e.lookup("InnerTransactionResultPair"),results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("TransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("TransactionResultResult")],["ext",e.lookup("TransactionResultExt")]]),e.typedef("Hash",e.opaque(32)),e.typedef("Uint256",e.opaque(32)),e.typedef("Uint32",e.uint()),e.typedef("Int32",e.int()),e.typedef("Uint64",e.uhyper()),e.typedef("Int64",e.hyper()),e.typedef("TimePoint",e.lookup("Uint64")),e.typedef("Duration",e.lookup("Uint64")),e.union("ExtensionPoint",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.enum("CryptoKeyType",{keyTypeEd25519:0,keyTypePreAuthTx:1,keyTypeHashX:2,keyTypeEd25519SignedPayload:3,keyTypeMuxedEd25519:256}),e.enum("PublicKeyType",{publicKeyTypeEd25519:0}),e.enum("SignerKeyType",{signerKeyTypeEd25519:0,signerKeyTypePreAuthTx:1,signerKeyTypeHashX:2,signerKeyTypeEd25519SignedPayload:3}),e.union("PublicKey",{switchOn:e.lookup("PublicKeyType"),switchName:"type",switches:[["publicKeyTypeEd25519","ed25519"]],arms:{ed25519:e.lookup("Uint256")}}),e.struct("SignerKeyEd25519SignedPayload",[["ed25519",e.lookup("Uint256")],["payload",e.varOpaque(64)]]),e.union("SignerKey",{switchOn:e.lookup("SignerKeyType"),switchName:"type",switches:[["signerKeyTypeEd25519","ed25519"],["signerKeyTypePreAuthTx","preAuthTx"],["signerKeyTypeHashX","hashX"],["signerKeyTypeEd25519SignedPayload","ed25519SignedPayload"]],arms:{ed25519:e.lookup("Uint256"),preAuthTx:e.lookup("Uint256"),hashX:e.lookup("Uint256"),ed25519SignedPayload:e.lookup("SignerKeyEd25519SignedPayload")}}),e.typedef("Signature",e.varOpaque(64)),e.typedef("SignatureHint",e.opaque(4)),e.typedef("NodeId",e.lookup("PublicKey")),e.typedef("AccountId",e.lookup("PublicKey")),e.struct("Curve25519Secret",[["key",e.opaque(32)]]),e.struct("Curve25519Public",[["key",e.opaque(32)]]),e.struct("HmacSha256Key",[["key",e.opaque(32)]]),e.struct("HmacSha256Mac",[["mac",e.opaque(32)]]),e.enum("ScValType",{scvBool:0,scvVoid:1,scvError:2,scvU32:3,scvI32:4,scvU64:5,scvI64:6,scvTimepoint:7,scvDuration:8,scvU128:9,scvI128:10,scvU256:11,scvI256:12,scvBytes:13,scvString:14,scvSymbol:15,scvVec:16,scvMap:17,scvAddress:18,scvContractInstance:19,scvLedgerKeyContractInstance:20,scvLedgerKeyNonce:21}),e.enum("ScErrorType",{sceContract:0,sceWasmVm:1,sceContext:2,sceStorage:3,sceObject:4,sceCrypto:5,sceEvents:6,sceBudget:7,sceValue:8,sceAuth:9}),e.enum("ScErrorCode",{scecArithDomain:0,scecIndexBounds:1,scecInvalidInput:2,scecMissingValue:3,scecExistingValue:4,scecExceededLimit:5,scecInvalidAction:6,scecInternalError:7,scecUnexpectedType:8,scecUnexpectedSize:9}),e.union("ScError",{switchOn:e.lookup("ScErrorType"),switchName:"type",switches:[["sceContract","contractCode"],["sceWasmVm","code"],["sceContext","code"],["sceStorage","code"],["sceObject","code"],["sceCrypto","code"],["sceEvents","code"],["sceBudget","code"],["sceValue","code"],["sceAuth","code"]],arms:{contractCode:e.lookup("Uint32"),code:e.lookup("ScErrorCode")}}),e.struct("UInt128Parts",[["hi",e.lookup("Uint64")],["lo",e.lookup("Uint64")]]),e.struct("Int128Parts",[["hi",e.lookup("Int64")],["lo",e.lookup("Uint64")]]),e.struct("UInt256Parts",[["hiHi",e.lookup("Uint64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.struct("Int256Parts",[["hiHi",e.lookup("Int64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.enum("ContractExecutableType",{contractExecutableWasm:0,contractExecutableStellarAsset:1}),e.union("ContractExecutable",{switchOn:e.lookup("ContractExecutableType"),switchName:"type",switches:[["contractExecutableWasm","wasmHash"],["contractExecutableStellarAsset",e.void()]],arms:{wasmHash:e.lookup("Hash")}}),e.enum("ScAddressType",{scAddressTypeAccount:0,scAddressTypeContract:1}),e.union("ScAddress",{switchOn:e.lookup("ScAddressType"),switchName:"type",switches:[["scAddressTypeAccount","accountId"],["scAddressTypeContract","contractId"]],arms:{accountId:e.lookup("AccountId"),contractId:e.lookup("Hash")}}),e.const("SCSYMBOL_LIMIT",32),e.typedef("ScVec",e.varArray(e.lookup("ScVal"),2147483647)),e.typedef("ScMap",e.varArray(e.lookup("ScMapEntry"),2147483647)),e.typedef("ScBytes",e.varOpaque()),e.typedef("ScString",e.string()),e.typedef("ScSymbol",e.string(32)),e.struct("ScNonceKey",[["nonce",e.lookup("Int64")]]),e.struct("ScContractInstance",[["executable",e.lookup("ContractExecutable")],["storage",e.option(e.lookup("ScMap"))]]),e.union("ScVal",{switchOn:e.lookup("ScValType"),switchName:"type",switches:[["scvBool","b"],["scvVoid",e.void()],["scvError","error"],["scvU32","u32"],["scvI32","i32"],["scvU64","u64"],["scvI64","i64"],["scvTimepoint","timepoint"],["scvDuration","duration"],["scvU128","u128"],["scvI128","i128"],["scvU256","u256"],["scvI256","i256"],["scvBytes","bytes"],["scvString","str"],["scvSymbol","sym"],["scvVec","vec"],["scvMap","map"],["scvAddress","address"],["scvLedgerKeyContractInstance",e.void()],["scvLedgerKeyNonce","nonceKey"],["scvContractInstance","instance"]],arms:{b:e.bool(),error:e.lookup("ScError"),u32:e.lookup("Uint32"),i32:e.lookup("Int32"),u64:e.lookup("Uint64"),i64:e.lookup("Int64"),timepoint:e.lookup("TimePoint"),duration:e.lookup("Duration"),u128:e.lookup("UInt128Parts"),i128:e.lookup("Int128Parts"),u256:e.lookup("UInt256Parts"),i256:e.lookup("Int256Parts"),bytes:e.lookup("ScBytes"),str:e.lookup("ScString"),sym:e.lookup("ScSymbol"),vec:e.option(e.lookup("ScVec")),map:e.option(e.lookup("ScMap")),address:e.lookup("ScAddress"),nonceKey:e.lookup("ScNonceKey"),instance:e.lookup("ScContractInstance")}}),e.struct("ScMapEntry",[["key",e.lookup("ScVal")],["val",e.lookup("ScVal")]]),e.enum("ScEnvMetaKind",{scEnvMetaKindInterfaceVersion:0}),e.union("ScEnvMetaEntry",{switchOn:e.lookup("ScEnvMetaKind"),switchName:"kind",switches:[["scEnvMetaKindInterfaceVersion","interfaceVersion"]],arms:{interfaceVersion:e.lookup("Uint64")}}),e.struct("ScMetaV0",[["key",e.string()],["val",e.string()]]),e.enum("ScMetaKind",{scMetaV0:0}),e.union("ScMetaEntry",{switchOn:e.lookup("ScMetaKind"),switchName:"kind",switches:[["scMetaV0","v0"]],arms:{v0:e.lookup("ScMetaV0")}}),e.const("SC_SPEC_DOC_LIMIT",1024),e.enum("ScSpecType",{scSpecTypeVal:0,scSpecTypeBool:1,scSpecTypeVoid:2,scSpecTypeError:3,scSpecTypeU32:4,scSpecTypeI32:5,scSpecTypeU64:6,scSpecTypeI64:7,scSpecTypeTimepoint:8,scSpecTypeDuration:9,scSpecTypeU128:10,scSpecTypeI128:11,scSpecTypeU256:12,scSpecTypeI256:13,scSpecTypeBytes:14,scSpecTypeString:16,scSpecTypeSymbol:17,scSpecTypeAddress:19,scSpecTypeOption:1e3,scSpecTypeResult:1001,scSpecTypeVec:1002,scSpecTypeMap:1004,scSpecTypeTuple:1005,scSpecTypeBytesN:1006,scSpecTypeUdt:2e3}),e.struct("ScSpecTypeOption",[["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeResult",[["okType",e.lookup("ScSpecTypeDef")],["errorType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeVec",[["elementType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeMap",[["keyType",e.lookup("ScSpecTypeDef")],["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeTuple",[["valueTypes",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.struct("ScSpecTypeBytesN",[["n",e.lookup("Uint32")]]),e.struct("ScSpecTypeUdt",[["name",e.string(60)]]),e.union("ScSpecTypeDef",{switchOn:e.lookup("ScSpecType"),switchName:"type",switches:[["scSpecTypeVal",e.void()],["scSpecTypeBool",e.void()],["scSpecTypeVoid",e.void()],["scSpecTypeError",e.void()],["scSpecTypeU32",e.void()],["scSpecTypeI32",e.void()],["scSpecTypeU64",e.void()],["scSpecTypeI64",e.void()],["scSpecTypeTimepoint",e.void()],["scSpecTypeDuration",e.void()],["scSpecTypeU128",e.void()],["scSpecTypeI128",e.void()],["scSpecTypeU256",e.void()],["scSpecTypeI256",e.void()],["scSpecTypeBytes",e.void()],["scSpecTypeString",e.void()],["scSpecTypeSymbol",e.void()],["scSpecTypeAddress",e.void()],["scSpecTypeOption","option"],["scSpecTypeResult","result"],["scSpecTypeVec","vec"],["scSpecTypeMap","map"],["scSpecTypeTuple","tuple"],["scSpecTypeBytesN","bytesN"],["scSpecTypeUdt","udt"]],arms:{option:e.lookup("ScSpecTypeOption"),result:e.lookup("ScSpecTypeResult"),vec:e.lookup("ScSpecTypeVec"),map:e.lookup("ScSpecTypeMap"),tuple:e.lookup("ScSpecTypeTuple"),bytesN:e.lookup("ScSpecTypeBytesN"),udt:e.lookup("ScSpecTypeUdt")}}),e.struct("ScSpecUdtStructFieldV0",[["doc",e.string(c)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecUdtStructV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["fields",e.varArray(e.lookup("ScSpecUdtStructFieldV0"),40)]]),e.struct("ScSpecUdtUnionCaseVoidV0",[["doc",e.string(c)],["name",e.string(60)]]),e.struct("ScSpecUdtUnionCaseTupleV0",[["doc",e.string(c)],["name",e.string(60)],["type",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.enum("ScSpecUdtUnionCaseV0Kind",{scSpecUdtUnionCaseVoidV0:0,scSpecUdtUnionCaseTupleV0:1}),e.union("ScSpecUdtUnionCaseV0",{switchOn:e.lookup("ScSpecUdtUnionCaseV0Kind"),switchName:"kind",switches:[["scSpecUdtUnionCaseVoidV0","voidCase"],["scSpecUdtUnionCaseTupleV0","tupleCase"]],arms:{voidCase:e.lookup("ScSpecUdtUnionCaseVoidV0"),tupleCase:e.lookup("ScSpecUdtUnionCaseTupleV0")}}),e.struct("ScSpecUdtUnionV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtUnionCaseV0"),50)]]),e.struct("ScSpecUdtEnumCaseV0",[["doc",e.string(c)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtEnumV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtEnumCaseV0"),50)]]),e.struct("ScSpecUdtErrorEnumCaseV0",[["doc",e.string(c)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtErrorEnumV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtErrorEnumCaseV0"),50)]]),e.struct("ScSpecFunctionInputV0",[["doc",e.string(c)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecFunctionV0",[["doc",e.string(c)],["name",e.lookup("ScSymbol")],["inputs",e.varArray(e.lookup("ScSpecFunctionInputV0"),10)],["outputs",e.varArray(e.lookup("ScSpecTypeDef"),1)]]),e.enum("ScSpecEntryKind",{scSpecEntryFunctionV0:0,scSpecEntryUdtStructV0:1,scSpecEntryUdtUnionV0:2,scSpecEntryUdtEnumV0:3,scSpecEntryUdtErrorEnumV0:4}),e.union("ScSpecEntry",{switchOn:e.lookup("ScSpecEntryKind"),switchName:"kind",switches:[["scSpecEntryFunctionV0","functionV0"],["scSpecEntryUdtStructV0","udtStructV0"],["scSpecEntryUdtUnionV0","udtUnionV0"],["scSpecEntryUdtEnumV0","udtEnumV0"],["scSpecEntryUdtErrorEnumV0","udtErrorEnumV0"]],arms:{functionV0:e.lookup("ScSpecFunctionV0"),udtStructV0:e.lookup("ScSpecUdtStructV0"),udtUnionV0:e.lookup("ScSpecUdtUnionV0"),udtEnumV0:e.lookup("ScSpecUdtEnumV0"),udtErrorEnumV0:e.lookup("ScSpecUdtErrorEnumV0")}}),e.struct("ConfigSettingContractExecutionLanesV0",[["ledgerMaxTxCount",e.lookup("Uint32")]]),e.struct("ConfigSettingContractComputeV0",[["ledgerMaxInstructions",e.lookup("Int64")],["txMaxInstructions",e.lookup("Int64")],["feeRatePerInstructionsIncrement",e.lookup("Int64")],["txMemoryLimit",e.lookup("Uint32")]]),e.struct("ConfigSettingContractLedgerCostV0",[["ledgerMaxReadLedgerEntries",e.lookup("Uint32")],["ledgerMaxReadBytes",e.lookup("Uint32")],["ledgerMaxWriteLedgerEntries",e.lookup("Uint32")],["ledgerMaxWriteBytes",e.lookup("Uint32")],["txMaxReadLedgerEntries",e.lookup("Uint32")],["txMaxReadBytes",e.lookup("Uint32")],["txMaxWriteLedgerEntries",e.lookup("Uint32")],["txMaxWriteBytes",e.lookup("Uint32")],["feeReadLedgerEntry",e.lookup("Int64")],["feeWriteLedgerEntry",e.lookup("Int64")],["feeRead1Kb",e.lookup("Int64")],["bucketListTargetSizeBytes",e.lookup("Int64")],["writeFee1KbBucketListLow",e.lookup("Int64")],["writeFee1KbBucketListHigh",e.lookup("Int64")],["bucketListWriteFeeGrowthFactor",e.lookup("Uint32")]]),e.struct("ConfigSettingContractHistoricalDataV0",[["feeHistorical1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractEventsV0",[["txMaxContractEventsSizeBytes",e.lookup("Uint32")],["feeContractEvents1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractBandwidthV0",[["ledgerMaxTxsSizeBytes",e.lookup("Uint32")],["txMaxSizeBytes",e.lookup("Uint32")],["feeTxSize1Kb",e.lookup("Int64")]]),e.enum("ContractCostType",{wasmInsnExec:0,memAlloc:1,memCpy:2,memCmp:3,dispatchHostFunction:4,visitObject:5,valSer:6,valDeser:7,computeSha256Hash:8,computeEd25519PubKey:9,verifyEd25519Sig:10,vmInstantiation:11,vmCachedInstantiation:12,invokeVmFunction:13,computeKeccak256Hash:14,computeEcdsaSecp256k1Sig:15,recoverEcdsaSecp256k1Key:16,int256AddSub:17,int256Mul:18,int256Div:19,int256Pow:20,int256Shift:21,chaCha20DrawBytes:22}),e.struct("ContractCostParamEntry",[["ext",e.lookup("ExtensionPoint")],["constTerm",e.lookup("Int64")],["linearTerm",e.lookup("Int64")]]),e.struct("StateArchivalSettings",[["maxEntryTtl",e.lookup("Uint32")],["minTemporaryTtl",e.lookup("Uint32")],["minPersistentTtl",e.lookup("Uint32")],["persistentRentRateDenominator",e.lookup("Int64")],["tempRentRateDenominator",e.lookup("Int64")],["maxEntriesToArchive",e.lookup("Uint32")],["bucketListSizeWindowSampleSize",e.lookup("Uint32")],["evictionScanSize",e.lookup("Uint64")],["startingEvictionScanLevel",e.lookup("Uint32")]]),e.struct("EvictionIterator",[["bucketListLevel",e.lookup("Uint32")],["isCurrBucket",e.bool()],["bucketFileOffset",e.lookup("Uint64")]]),e.const("CONTRACT_COST_COUNT_LIMIT",1024),e.typedef("ContractCostParams",e.varArray(e.lookup("ContractCostParamEntry"),e.lookup("CONTRACT_COST_COUNT_LIMIT"))),e.enum("ConfigSettingId",{configSettingContractMaxSizeBytes:0,configSettingContractComputeV0:1,configSettingContractLedgerCostV0:2,configSettingContractHistoricalDataV0:3,configSettingContractEventsV0:4,configSettingContractBandwidthV0:5,configSettingContractCostParamsCpuInstructions:6,configSettingContractCostParamsMemoryBytes:7,configSettingContractDataKeySizeBytes:8,configSettingContractDataEntrySizeBytes:9,configSettingStateArchival:10,configSettingContractExecutionLanes:11,configSettingBucketlistSizeWindow:12,configSettingEvictionIterator:13}),e.union("ConfigSettingEntry",{switchOn:e.lookup("ConfigSettingId"),switchName:"configSettingId",switches:[["configSettingContractMaxSizeBytes","contractMaxSizeBytes"],["configSettingContractComputeV0","contractCompute"],["configSettingContractLedgerCostV0","contractLedgerCost"],["configSettingContractHistoricalDataV0","contractHistoricalData"],["configSettingContractEventsV0","contractEvents"],["configSettingContractBandwidthV0","contractBandwidth"],["configSettingContractCostParamsCpuInstructions","contractCostParamsCpuInsns"],["configSettingContractCostParamsMemoryBytes","contractCostParamsMemBytes"],["configSettingContractDataKeySizeBytes","contractDataKeySizeBytes"],["configSettingContractDataEntrySizeBytes","contractDataEntrySizeBytes"],["configSettingStateArchival","stateArchivalSettings"],["configSettingContractExecutionLanes","contractExecutionLanes"],["configSettingBucketlistSizeWindow","bucketListSizeWindow"],["configSettingEvictionIterator","evictionIterator"]],arms:{contractMaxSizeBytes:e.lookup("Uint32"),contractCompute:e.lookup("ConfigSettingContractComputeV0"),contractLedgerCost:e.lookup("ConfigSettingContractLedgerCostV0"),contractHistoricalData:e.lookup("ConfigSettingContractHistoricalDataV0"),contractEvents:e.lookup("ConfigSettingContractEventsV0"),contractBandwidth:e.lookup("ConfigSettingContractBandwidthV0"),contractCostParamsCpuInsns:e.lookup("ContractCostParams"),contractCostParamsMemBytes:e.lookup("ContractCostParams"),contractDataKeySizeBytes:e.lookup("Uint32"),contractDataEntrySizeBytes:e.lookup("Uint32"),stateArchivalSettings:e.lookup("StateArchivalSettings"),contractExecutionLanes:e.lookup("ConfigSettingContractExecutionLanesV0"),bucketListSizeWindow:e.varArray(e.lookup("Uint64"),2147483647),evictionIterator:e.lookup("EvictionIterator")}})});a.default=o},9396:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolFeeV18=void 0,a.getLiquidityPoolId=function(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h!=="constant_product")throw new Error("liquidityPoolType is invalid");var p=b.assetA,k=b.assetB,d=b.fee;if(!(p&&p instanceof e.Asset))throw new Error("assetA is invalid");if(!(k&&k instanceof e.Asset))throw new Error("assetB is invalid");if(!d||d!==u)throw new Error("fee is invalid");if(e.Asset.compare(p,k)!==-1)throw new Error("Assets are not in lexicographic order");var w=o.default.LiquidityPoolType.liquidityPoolConstantProduct().toXDR(),y=new o.default.LiquidityPoolConstantProductParameters({assetA:p.toXDRObject(),assetB:k.toXDRObject(),fee:d}).toXDR(),_=t.concat([w,y]);return(0,c.hash)(_)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(3469),c=i(9622),u=a.LiquidityPoolFeeV18=30},9622:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.hash=function(s){var o=new t.sha256;return o.update(s,"utf8"),o.digest()};var t=i(9072)},4172:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0});var t={xdr:!0,hash:!0,sign:!0,verify:!0,FastSigning:!0,getLiquidityPoolId:!0,LiquidityPoolFeeV18:!0,Keypair:!0,UnsignedHyper:!0,Hyper:!0,TransactionBase:!0,Transaction:!0,FeeBumpTransaction:!0,TransactionBuilder:!0,TimeoutInfinite:!0,BASE_FEE:!0,Asset:!0,LiquidityPoolAsset:!0,LiquidityPoolId:!0,Operation:!0,AuthRequiredFlag:!0,AuthRevocableFlag:!0,AuthImmutableFlag:!0,AuthClawbackEnabledFlag:!0,Account:!0,MuxedAccount:!0,Claimant:!0,Networks:!0,StrKey:!0,SignerKey:!0,Soroban:!0,decodeAddressToMuxedAccount:!0,encodeMuxedAccountToAddress:!0,extractBaseAddress:!0,encodeMuxedAccount:!0,Contract:!0,Address:!0};Object.defineProperty(a,"Account",{enumerable:!0,get:function(){return C.Account}}),Object.defineProperty(a,"Address",{enumerable:!0,get:function(){return se.Address}}),Object.defineProperty(a,"Asset",{enumerable:!0,get:function(){return y.Asset}}),Object.defineProperty(a,"AuthClawbackEnabledFlag",{enumerable:!0,get:function(){return E.AuthClawbackEnabledFlag}}),Object.defineProperty(a,"AuthImmutableFlag",{enumerable:!0,get:function(){return E.AuthImmutableFlag}}),Object.defineProperty(a,"AuthRequiredFlag",{enumerable:!0,get:function(){return E.AuthRequiredFlag}}),Object.defineProperty(a,"AuthRevocableFlag",{enumerable:!0,get:function(){return E.AuthRevocableFlag}}),Object.defineProperty(a,"BASE_FEE",{enumerable:!0,get:function(){return w.BASE_FEE}}),Object.defineProperty(a,"Claimant",{enumerable:!0,get:function(){return R.Claimant}}),Object.defineProperty(a,"Contract",{enumerable:!0,get:function(){return Z.Contract}}),Object.defineProperty(a,"FastSigning",{enumerable:!0,get:function(){return c.FastSigning}}),Object.defineProperty(a,"FeeBumpTransaction",{enumerable:!0,get:function(){return d.FeeBumpTransaction}}),Object.defineProperty(a,"Hyper",{enumerable:!0,get:function(){return b.Hyper}}),Object.defineProperty(a,"Keypair",{enumerable:!0,get:function(){return h.Keypair}}),Object.defineProperty(a,"LiquidityPoolAsset",{enumerable:!0,get:function(){return _.LiquidityPoolAsset}}),Object.defineProperty(a,"LiquidityPoolFeeV18",{enumerable:!0,get:function(){return u.LiquidityPoolFeeV18}}),Object.defineProperty(a,"LiquidityPoolId",{enumerable:!0,get:function(){return x.LiquidityPoolId}}),Object.defineProperty(a,"MuxedAccount",{enumerable:!0,get:function(){return T.MuxedAccount}}),Object.defineProperty(a,"Networks",{enumerable:!0,get:function(){return W.Networks}}),Object.defineProperty(a,"Operation",{enumerable:!0,get:function(){return E.Operation}}),Object.defineProperty(a,"SignerKey",{enumerable:!0,get:function(){return L.SignerKey}}),Object.defineProperty(a,"Soroban",{enumerable:!0,get:function(){return Q.Soroban}}),Object.defineProperty(a,"StrKey",{enumerable:!0,get:function(){return j.StrKey}}),Object.defineProperty(a,"TimeoutInfinite",{enumerable:!0,get:function(){return w.TimeoutInfinite}}),Object.defineProperty(a,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(a,"TransactionBase",{enumerable:!0,get:function(){return p.TransactionBase}}),Object.defineProperty(a,"TransactionBuilder",{enumerable:!0,get:function(){return w.TransactionBuilder}}),Object.defineProperty(a,"UnsignedHyper",{enumerable:!0,get:function(){return b.UnsignedHyper}}),Object.defineProperty(a,"decodeAddressToMuxedAccount",{enumerable:!0,get:function(){return U.decodeAddressToMuxedAccount}}),a.default=void 0,Object.defineProperty(a,"encodeMuxedAccount",{enumerable:!0,get:function(){return U.encodeMuxedAccount}}),Object.defineProperty(a,"encodeMuxedAccountToAddress",{enumerable:!0,get:function(){return U.encodeMuxedAccountToAddress}}),Object.defineProperty(a,"extractBaseAddress",{enumerable:!0,get:function(){return U.extractBaseAddress}}),Object.defineProperty(a,"getLiquidityPoolId",{enumerable:!0,get:function(){return u.getLiquidityPoolId}}),Object.defineProperty(a,"hash",{enumerable:!0,get:function(){return e.hash}}),Object.defineProperty(a,"sign",{enumerable:!0,get:function(){return c.sign}}),Object.defineProperty(a,"verify",{enumerable:!0,get:function(){return c.verify}}),Object.defineProperty(a,"xdr",{enumerable:!0,get:function(){return o.default}});var s=G(i(4431)),o=G(i(4081)),e=i(9622),c=i(5687),u=i(9396),h=i(6437),b=i(6263),p=i(1065),k=i(1388),d=i(1462),w=i(624),y=i(3469),_=i(1486),x=i(7287),E=i(4585),S=i(4856);Object.keys(S).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===S[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return S[re]}}))});var C=i(3217),T=i(9022),R=i(1842),W=i(2844),j=i(8385),L=i(5822),Q=i(251),U=i(6880),Z=i(5618),se=i(3471),te=i(3180);Object.keys(te).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===te[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return te[re]}}))});var $=i(5567);Object.keys($).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===$[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return $[re]}}))});var P=i(3761);Object.keys(P).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===P[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return P[re]}}))});var A=i(5096);Object.keys(A).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===A[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return A[re]}}))});var O=i(1687);Object.keys(O).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===O[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return O[re]}}))});var z=i(3812);function G(re){return re&&re.__esModule?re:{default:re}}Object.keys(z).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===z[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return z[re]}}))}),s.default.DEBUG=!0,a.default=f.exports},3812:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.buildInvocationTree=function c(u){var h=u.function(),b={},p=h.value();switch(h.switch().value){case 0:b.type="execute",b.args={source:s.Address.fromScAddress(p.contractAddress()).toString(),function:p.functionName(),args:p.args().map(function(_){return(0,o.scValToNative)(_)})};break;case 1:b.type="create",b.args={};var k=[p.executable(),p.contractIdPreimage()],d=k[0],w=k[1];if(!!d.switch().value!=!!w.switch().value)throw new Error("creation function appears invalid: ".concat(JSON.stringify(p)," (should be wasm+address or token+asset)"));switch(d.switch().value){case 0:var y=w.fromAddress();b.args.type="wasm",b.args.wasm={salt:y.salt().toString("hex"),hash:d.wasmHash().toString("hex"),address:s.Address.fromScAddress(y.address()).toString()};break;case 1:b.args.type="sac",b.args.asset=t.Asset.fromOperation(w.fromAsset()).toString();break;default:throw new Error("unknown creation type: ".concat(JSON.stringify(d)))}break;default:throw new Error("unknown invocation type (".concat(h.switch(),"): ").concat(JSON.stringify(h)))}return b.invocations=u.subInvocations().map(function(_){return c(_)}),b},a.walkInvocationTree=function(c,u){e(c,1,u)};var t=i(3469),s=i(3471),o=i(5567);function e(c,u,h,b){h(c,u,b)!==!1&&c.subInvocations().forEach(function(p){return e(p,u+1,h,c)})}},6437:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.Keypair=void 0;var s=h(i(7586)),o=i(5687),e=i(8385),c=i(9622),u=h(i(4081));function h(k){return k&&k.__esModule?k:{default:k}}function b(k){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},b(k)}function p(k,d){for(var w=0;w{Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolAsset=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3469),e=i(9396);function c(d){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(d)}function u(d,w){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(d);w&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(d,x).enumerable})),y.push.apply(y,_)}return y}function h(d){for(var w=1;w{Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolId=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(c){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o(c)}function e(c,u){for(var h=0;h{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.MemoText=a.MemoReturn=a.MemoNone=a.MemoID=a.MemoHash=a.Memo=void 0;var s=i(6263),o=c(i(4431)),e=c(i(4081));function c(y){return y&&y.__esModule?y:{default:y}}function u(y){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(y)}function h(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(u(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(u(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),u(C)==="symbol"?C:String(C)),E)}var S,C}var b=a.MemoNone="none",p=a.MemoID="id",k=a.MemoText="text",d=a.MemoHash="hash",w=a.MemoReturn="return";a.Memo=function(){function y(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;switch(function(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}(this,y),this._type=S,this._value=C,this._type){case b:break;case p:y._validateIdValue(C);break;case k:y._validateTextValue(C);break;case d:case w:y._validateHashValue(C),typeof C=="string"&&(this._value=t.from(C,"hex"));break;default:throw new Error("Invalid memo type")}}var _,x,E;return _=y,E=[{key:"_validateIdValue",value:function(S){var C,T=new Error("Expects a int64 as a string. Got ".concat(S));if(typeof S!="string")throw T;try{C=new o.default(S)}catch{throw T}if(!C.isFinite()||C.isNaN())throw T}},{key:"_validateTextValue",value:function(S){if(!e.default.Memo.armTypeForArm("text").isValid(S))throw new Error("Expects string, array or buffer, max 28 bytes")}},{key:"_validateHashValue",value:function(S){var C,T=new Error("Expects a 32 byte hash value or hex encoded string. Got ".concat(S));if(S==null)throw T;if(typeof S=="string"){if(!/^[0-9A-Fa-f]{64}$/g.test(S))throw T;C=t.from(S,"hex")}else{if(!t.isBuffer(S))throw T;C=t.from(S)}if(!C.length||C.length!==32)throw T}},{key:"none",value:function(){return new y(b)}},{key:"text",value:function(S){return new y(k,S)}},{key:"id",value:function(S){return new y(p,S)}},{key:"hash",value:function(S){return new y(d,S)}},{key:"return",value:function(S){return new y(w,S)}},{key:"fromXDRObject",value:function(S){switch(S.arm()){case"id":return y.id(S.value().toString());case"text":return y.text(S.value());case"hash":return y.hash(S.value());case"retHash":return y.return(S.value())}if(S.value()===void 0)return y.none();throw new Error("Unknown type")}}],(x=[{key:"type",get:function(){return this._type},set:function(S){throw new Error("Memo is immutable")}},{key:"value",get:function(){switch(this._type){case b:return null;case p:case k:return this._value;case d:case w:return t.from(this._value);default:throw new Error("Invalid memo type")}},set:function(S){throw new Error("Memo is immutable")}},{key:"toXDRObject",value:function(){switch(this._type){case b:return e.default.Memo.memoNone();case p:return e.default.Memo.memoId(s.UnsignedHyper.fromString(this._value));case k:return e.default.Memo.memoText(this._value);case d:return e.default.Memo.memoHash(this._value);case w:return e.default.Memo.memoReturn(this._value);default:return null}}}])&&h(_.prototype,x),E&&h(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}()},9022:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MuxedAccount=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3217),e=i(8385),c=i(6880);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},u(b)}function h(b,p){for(var k=0;k{Object.defineProperty(a,"__esModule",{value:!0}),a.Networks=void 0,a.Networks={PUBLIC:"Public Global Stellar Network ; September 2015",TESTNET:"Test SDF Network ; September 2015",FUTURENET:"Test SDF Future Network ; October 2022",SANDBOX:"Local Sandbox Stellar Network ; September 2022",STANDALONE:"Standalone Network ; February 2017"}},3180:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"Int128",{enumerable:!0,get:function(){return e.Int128}}),Object.defineProperty(a,"Int256",{enumerable:!0,get:function(){return c.Int256}}),Object.defineProperty(a,"ScInt",{enumerable:!0,get:function(){return u.ScInt}}),Object.defineProperty(a,"Uint128",{enumerable:!0,get:function(){return s.Uint128}}),Object.defineProperty(a,"Uint256",{enumerable:!0,get:function(){return o.Uint256}}),Object.defineProperty(a,"XdrLargeInt",{enumerable:!0,get:function(){return t.XdrLargeInt}}),a.scValToBigInt=function(h){var b=t.XdrLargeInt.getType(h.switch().name);switch(h.switch().name){case"scvU32":case"scvI32":return BigInt(h.value());case"scvU64":case"scvI64":return new t.XdrLargeInt(b,h.value()).toBigInt();case"scvU128":case"scvI128":return new t.XdrLargeInt(b,[h.value().lo(),h.value().hi()]).toBigInt();case"scvU256":case"scvI256":return new t.XdrLargeInt(b,[h.value().loLo(),h.value().loHi(),h.value().hiLo(),h.value().hiHi()]).toBigInt();default:throw TypeError("expected integer type, got ".concat(h.switch()))}};var t=i(6836),s=i(4006),o=i(7882),e=i(9982),c=i(7292),u=i(883)},9982:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Int128=void 0;var s=i(6263);function o(h,b){for(var p=0;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,k=u(h);if(b){var d=u(this).constructor;p=Reflect.construct(k,arguments,d)}else p=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,p)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Int128=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,p,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Int256=void 0;var s=i(6263);function o(h,b){for(var p=0;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,k=u(h);if(b){var d=u(this).constructor;p=Reflect.construct(k,arguments,d)}else p=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,p)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Int256=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,p,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(u){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(u)}Object.defineProperty(a,"__esModule",{value:!0}),a.ScInt=void 0;var s=i(6836);function o(u,h){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,p){return b.__proto__=p,b},o(u,h)}function e(u){var h=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,p=c(u);if(h){var k=c(this).constructor;b=Reflect.construct(p,arguments,k)}else b=p.apply(this,arguments);return function(d,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(d)}(this,b)}}function c(u){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},c(u)}a.ScInt=function(u){(function(k,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(d&&d.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),d&&o(k,d)})(p,u);var h,b=e(p);function p(k,d){var w;(function(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")})(this,p);var y=k<0,_=(w=d==null?void 0:d.type)!==null&&w!==void 0?w:"";if(_.startsWith("u")&&y)throw TypeError("specified type ".concat(d.type," yet negative (").concat(k,")"));if(_===""){_=y?"i":"u";var x=function(E){var S,C=E.toString(2).length;return(S=[64,128,256].find(function(T){return C<=T}))!==null&&S!==void 0?S:C}(k);switch(x){case 64:case 128:case 256:_+=x.toString();break;default:throw RangeError("expected 64/128/256 bits for input (".concat(k,"), got ").concat(x))}}return b.call(this,_,k)}return h=p,Object.defineProperty(h,"prototype",{writable:!1}),h}(s.XdrLargeInt)},4006:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Uint128=void 0;var s=i(6263);function o(h,b){for(var p=0;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,k=u(h);if(b){var d=u(this).constructor;p=Reflect.construct(k,arguments,d)}else p=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,p)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Uint128=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,p,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Uint256=void 0;var s=i(6263);function o(h,b){for(var p=0;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,k=u(h);if(b){var d=u(this).constructor;p=Reflect.construct(k,arguments,d)}else p=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,p)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Uint256=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,p,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{Object.defineProperty(a,"__esModule",{value:!0}),a.XdrLargeInt=void 0;var t,s=i(6263),o=i(4006),e=i(7882),c=i(9982),u=i(7292),h=(t=i(4081))&&t.__esModule?t:{default:t};function b(w){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},b(w)}function p(w,y){for(var _=0;_Number.MAX_SAFE_INTEGER||E>64n),C=BigInt.asUintN(64,E);return h.default.ScVal.scvI128(new h.default.Int128Parts({hi:new h.default.Int64(S),lo:new h.default.Uint64(C)}))}},{key:"toU128",value:function(){this._sizeCheck(128);var E=this.int.toBigInt();return h.default.ScVal.scvU128(new h.default.UInt128Parts({hi:new h.default.Uint64(BigInt.asUintN(64,E>>64n)),lo:new h.default.Uint64(BigInt.asUintN(64,E))}))}},{key:"toI256",value:function(){var E=this.int.toBigInt(),S=BigInt.asIntN(64,E>>192n),C=BigInt.asUintN(64,E>>128n),T=BigInt.asUintN(64,E>>64n),R=BigInt.asUintN(64,E);return h.default.ScVal.scvI256(new h.default.Int256Parts({hiHi:new h.default.Int64(S),hiLo:new h.default.Uint64(C),loHi:new h.default.Uint64(T),loLo:new h.default.Uint64(R)}))}},{key:"toU256",value:function(){var E=this.int.toBigInt(),S=BigInt.asUintN(64,E>>192n),C=BigInt.asUintN(64,E>>128n),T=BigInt.asUintN(64,E>>64n),R=BigInt.asUintN(64,E);return h.default.ScVal.scvU256(new h.default.UInt256Parts({hiHi:new h.default.Uint64(S),hiLo:new h.default.Uint64(C),loHi:new h.default.Uint64(T),loLo:new h.default.Uint64(R)}))}},{key:"toScVal",value:function(){switch(this.type){case"i64":return this.toI64();case"i128":return this.toI128();case"i256":return this.toI256();case"u64":return this.toU64();case"u128":return this.toU128();case"u256":return this.toU256();default:throw TypeError("invalid type: ".concat(this.type))}}},{key:"valueOf",value:function(){return this.int.valueOf()}},{key:"toString",value:function(){return this.int.toString()}},{key:"toJSON",value:function(){return{value:this.toBigInt().toString(),type:this.type}}},{key:"_sizeCheck",value:function(E){if(this.int.size>E)throw RangeError("value too large for ".concat(E," bits (").concat(this.type,")"))}}])&&p(y.prototype,_),x&&p(y,x),Object.defineProperty(y,"prototype",{writable:!1}),w}()},4585:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Operation=a.AuthRevocableFlag=a.AuthRequiredFlag=a.AuthImmutableFlag=a.AuthClawbackEnabledFlag=void 0;var t=i(6263),s=_(i(4431)),o=i(6006),e=i(5908),c=i(3469),u=i(1486),h=i(1842),b=i(8385),p=i(7287),k=_(i(4081)),d=function(R,W){if(!W&&R&&R.__esModule)return R;if(R===null||x(R)!="object"&&typeof R!="function")return{default:R};var j=y(W);if(j&&j.has(R))return j.get(R);var L={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in R)if(U!=="default"&&Object.prototype.hasOwnProperty.call(R,U)){var Z=Q?Object.getOwnPropertyDescriptor(R,U):null;Z&&(Z.get||Z.set)?Object.defineProperty(L,U,Z):L[U]=R[U]}return L.default=R,j&&j.set(R,L),L}(i(1138)),w=i(6880);function y(R){if(typeof WeakMap!="function")return null;var W=new WeakMap,j=new WeakMap;return(y=function(L){return L?j:W})(R)}function _(R){return R&&R.__esModule?R:{default:R}}function x(R){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},x(R)}function E(R,W){for(var j=0;j1&&arguments[1]!==void 0&&arguments[1];if(typeof Q!="string")return!1;try{U=new s.default(Q)}catch{return!1}return!(!Z&&U.isZero()||U.isNegative()||U.times(S).gt(new s.default("9223372036854775807").toString())||U.decimalPlaces()>7||U.isNaN()||!U.isFinite())}},{key:"constructAmountRequirementsError",value:function(Q){return"".concat(Q," argument must be of type String, represent a positive number and have at most 7 digits after the decimal")}},{key:"_checkUnsignedIntValue",value:function(Q,U){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(U!==void 0)switch(typeof U=="string"&&(U=parseFloat(U)),!0){case(typeof U!="number"||!Number.isFinite(U)||U%1!=0):throw new Error("".concat(Q," value is invalid"));case U<0:throw new Error("".concat(Q," value must be unsigned"));case(!Z||Z&&Z(U,Q)):return U;default:throw new Error("".concat(Q," value is invalid"))}}},{key:"_toXDRAmount",value:function(Q){var U=new s.default(Q).times(S);return t.Hyper.fromString(U.toString())}},{key:"_fromXDRAmount",value:function(Q){return new s.default(Q).div(S).toFixed(7)}},{key:"_fromXDRPrice",value:function(Q){return new s.default(Q.n()).div(new s.default(Q.d())).toString()}},{key:"_toXDRPrice",value:function(Q){var U;if(Q.n&&Q.d)U=new k.default.Price(Q);else{var Z=(0,e.best_r)(Q);U=new k.default.Price({n:parseInt(Z[0],10),d:parseInt(Z[1],10)})}if(U.n()<0||U.d()<0)throw new Error("price must be positive");return U}}],(j=null)&&E(W.prototype,j),L&&E(W,L),Object.defineProperty(W,"prototype",{writable:!1}),R}());function T(R){return b.StrKey.encodeEd25519PublicKey(R.ed25519())}C.accountMerge=d.accountMerge,C.allowTrust=d.allowTrust,C.bumpSequence=d.bumpSequence,C.changeTrust=d.changeTrust,C.createAccount=d.createAccount,C.createClaimableBalance=d.createClaimableBalance,C.claimClaimableBalance=d.claimClaimableBalance,C.clawbackClaimableBalance=d.clawbackClaimableBalance,C.createPassiveSellOffer=d.createPassiveSellOffer,C.inflation=d.inflation,C.manageData=d.manageData,C.manageSellOffer=d.manageSellOffer,C.manageBuyOffer=d.manageBuyOffer,C.pathPaymentStrictReceive=d.pathPaymentStrictReceive,C.pathPaymentStrictSend=d.pathPaymentStrictSend,C.payment=d.payment,C.setOptions=d.setOptions,C.beginSponsoringFutureReserves=d.beginSponsoringFutureReserves,C.endSponsoringFutureReserves=d.endSponsoringFutureReserves,C.revokeAccountSponsorship=d.revokeAccountSponsorship,C.revokeTrustlineSponsorship=d.revokeTrustlineSponsorship,C.revokeOfferSponsorship=d.revokeOfferSponsorship,C.revokeDataSponsorship=d.revokeDataSponsorship,C.revokeClaimableBalanceSponsorship=d.revokeClaimableBalanceSponsorship,C.revokeLiquidityPoolSponsorship=d.revokeLiquidityPoolSponsorship,C.revokeSignerSponsorship=d.revokeSignerSponsorship,C.clawback=d.clawback,C.setTrustLineFlags=d.setTrustLineFlags,C.liquidityPoolDeposit=d.liquidityPoolDeposit,C.liquidityPoolWithdraw=d.liquidityPoolWithdraw,C.invokeHostFunction=d.invokeHostFunction,C.extendFootprintTtl=d.extendFootprintTtl,C.restoreFootprint=d.restoreFootprint,C.createStellarAssetContract=d.createStellarAssetContract,C.invokeContractFunction=d.invokeContractFunction,C.createCustomContract=d.createCustomContract,C.uploadContractWasm=d.uploadContractWasm},7703:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.accountMerge=function(e){var c={};try{c.body=s.default.OperationBody.accountMerge((0,o.decodeAddressToMuxedAccount)(e.destination))}catch{throw new Error("destination is invalid")}return this.setSourceAccount(c,e),new s.default.Operation(c)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},6583:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.allowTrust=function(c){if(!e.StrKey.isValidEd25519PublicKey(c.trustor))throw new Error("trustor is invalid");var u={};if(u.trustor=o.Keypair.fromPublicKey(c.trustor).xdrAccountId(),c.assetCode.length<=4){var h=c.assetCode.padEnd(4,"\0");u.asset=s.default.AssetCode.assetTypeCreditAlphanum4(h)}else{if(!(c.assetCode.length<=12))throw new Error("Asset code must be 12 characters at max.");var b=c.assetCode.padEnd(12,"\0");u.asset=s.default.AssetCode.assetTypeCreditAlphanum12(b)}typeof c.authorize=="boolean"?c.authorize?u.authorize=s.default.TrustLineFlags.authorizedFlag().value:u.authorize=0:u.authorize=c.authorize;var p=new s.default.AllowTrustOp(u),k={};return k.body=s.default.OperationBody.allowTrust(p),this.setSourceAccount(k,c),new s.default.Operation(k)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385)},6318:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.beginSponsoringFutureReserves=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!o.StrKey.isValidEd25519PublicKey(c.sponsoredId))throw new Error("sponsoredId is invalid");var u=new s.default.BeginSponsoringFutureReservesOp({sponsoredId:e.Keypair.fromPublicKey(c.sponsoredId).xdrAccountId()}),h={};return h.body=s.default.OperationBody.beginSponsoringFutureReserves(u),this.setSourceAccount(h,c),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385),e=i(6437)},3593:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.bumpSequence=function(c){var u={};if(typeof c.bumpTo!="string")throw new Error("bumpTo must be a string");try{new s.default(c.bumpTo)}catch{throw new Error("bumpTo must be a stringified number")}u.bumpTo=t.Hyper.fromString(c.bumpTo);var h=new o.default.BumpSequenceOp(u),b={};return b.body=o.default.OperationBody.bumpSequence(h),this.setSourceAccount(b,c),new o.default.Operation(b)};var t=i(6263),s=e(i(4431)),o=e(i(4081));function e(c){return c&&c.__esModule?c:{default:c}}},3960:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.changeTrust=function(b){var p={};if(b.asset instanceof e.Asset)p.line=b.asset.toChangeTrustXDRObject();else{if(!(b.asset instanceof c.LiquidityPoolAsset))throw new TypeError("asset must be Asset or LiquidityPoolAsset");p.line=b.asset.toXDRObject()}if(b.limit!==void 0&&!this.isValidAmount(b.limit,!0))throw new TypeError(this.constructAmountRequirementsError("limit"));b.limit?p.limit=this._toXDRAmount(b.limit):p.limit=t.Hyper.fromString(new s.default(h).toString()),b.source&&(p.source=b.source.masterKeypair);var k=new o.default.ChangeTrustOp(p),d={};return d.body=o.default.OperationBody.changeTrust(k),this.setSourceAccount(d,b),new o.default.Operation(d)};var t=i(6263),s=u(i(4431)),o=u(i(4081)),e=i(3469),c=i(1486);function u(b){return b&&b.__esModule?b:{default:b}}var h="9223372036854775807"},57:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.claimClaimableBalance=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o(e.balanceId);var c={};c.balanceId=s.default.ClaimableBalanceId.fromXDR(e.balanceId,"hex");var u=new s.default.ClaimClaimableBalanceOp(c),h={};return h.body=s.default.OperationBody.claimClaimableBalance(u),this.setSourceAccount(h,e),new s.default.Operation(h)},a.validateClaimableBalanceId=o;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(e){if(typeof e!="string"||e.length!==72)throw new Error("must provide a valid claimable balance id")}},6015:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clawback=function(e){var c={};if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));c.amount=this._toXDRAmount(e.amount),c.asset=e.asset.toXDRObject();try{c.from=(0,o.decodeAddressToMuxedAccount)(e.from)}catch{throw new Error("from address is invalid")}var u={body:s.default.OperationBody.clawback(new s.default.ClawbackOp(c))};return this.setSourceAccount(u,e),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},4283:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clawbackClaimableBalance=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,o.validateClaimableBalanceId)(e.balanceId);var c={balanceId:s.default.ClaimableBalanceId.fromXDR(e.balanceId,"hex")},u={body:s.default.OperationBody.clawbackClaimableBalance(new s.default.ClawbackClaimableBalanceOp(c))};return this.setSourceAccount(u,e),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(57)},7861:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createAccount=function(c){if(!e.StrKey.isValidEd25519PublicKey(c.destination))throw new Error("destination is invalid");if(!this.isValidAmount(c.startingBalance,!0))throw new TypeError(this.constructAmountRequirementsError("startingBalance"));var u={};u.destination=o.Keypair.fromPublicKey(c.destination).xdrAccountId(),u.startingBalance=this._toXDRAmount(c.startingBalance);var h=new s.default.CreateAccountOp(u),b={};return b.body=s.default.OperationBody.createAccount(h),this.setSourceAccount(b,c),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385)},9471:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createClaimableBalance=function(e){if(!(e.asset instanceof o.Asset))throw new Error("must provide an asset for create claimable balance operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(!Array.isArray(e.claimants)||e.claimants.length===0)throw new Error("must provide at least one claimant");var c={};c.asset=e.asset.toXDRObject(),c.amount=this._toXDRAmount(e.amount),c.claimants=Object.values(e.claimants).map(function(b){return b.toXDRObject()});var u=new s.default.CreateClaimableBalanceOp(c),h={};return h.body=s.default.OperationBody.createClaimableBalance(u),this.setSourceAccount(h,e),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3469)},3427:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createPassiveSellOffer=function(o){var e={};if(e.selling=o.selling.toXDRObject(),e.buying=o.buying.toXDRObject(),!this.isValidAmount(o.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(e.amount=this._toXDRAmount(o.amount),o.price===void 0)throw new TypeError("price argument is required");e.price=this._toXDRPrice(o.price);var c=new s.default.CreatePassiveSellOfferOp(e),u={};return u.body=s.default.OperationBody.createPassiveSellOffer(c),this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},729:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.endSponsoringFutureReserves=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};return e.body=s.default.OperationBody.endSponsoringFutureReserves(),this.setSourceAccount(e,o),new s.default.Operation(e)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},4774:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.extendFootprintTtl=function(o){var e;if(((e=o.extendTo)!==null&&e!==void 0?e:-1)<=0)throw new RangeError("extendTo isn't a ledger quantity (uint32)");var c=new s.default.ExtendFootprintTtlOp({ext:new s.default.ExtensionPoint(0),extendTo:o.extendTo}),u={body:s.default.OperationBody.extendFootprintTtl(c)};return this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},1138:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"accountMerge",{enumerable:!0,get:function(){return o.accountMerge}}),Object.defineProperty(a,"allowTrust",{enumerable:!0,get:function(){return e.allowTrust}}),Object.defineProperty(a,"beginSponsoringFutureReserves",{enumerable:!0,get:function(){return C.beginSponsoringFutureReserves}}),Object.defineProperty(a,"bumpSequence",{enumerable:!0,get:function(){return c.bumpSequence}}),Object.defineProperty(a,"changeTrust",{enumerable:!0,get:function(){return u.changeTrust}}),Object.defineProperty(a,"claimClaimableBalance",{enumerable:!0,get:function(){return p.claimClaimableBalance}}),Object.defineProperty(a,"clawback",{enumerable:!0,get:function(){return W.clawback}}),Object.defineProperty(a,"clawbackClaimableBalance",{enumerable:!0,get:function(){return k.clawbackClaimableBalance}}),Object.defineProperty(a,"createAccount",{enumerable:!0,get:function(){return h.createAccount}}),Object.defineProperty(a,"createClaimableBalance",{enumerable:!0,get:function(){return b.createClaimableBalance}}),Object.defineProperty(a,"createCustomContract",{enumerable:!0,get:function(){return U.createCustomContract}}),Object.defineProperty(a,"createPassiveSellOffer",{enumerable:!0,get:function(){return s.createPassiveSellOffer}}),Object.defineProperty(a,"createStellarAssetContract",{enumerable:!0,get:function(){return U.createStellarAssetContract}}),Object.defineProperty(a,"endSponsoringFutureReserves",{enumerable:!0,get:function(){return T.endSponsoringFutureReserves}}),Object.defineProperty(a,"extendFootprintTtl",{enumerable:!0,get:function(){return Z.extendFootprintTtl}}),Object.defineProperty(a,"inflation",{enumerable:!0,get:function(){return d.inflation}}),Object.defineProperty(a,"invokeContractFunction",{enumerable:!0,get:function(){return U.invokeContractFunction}}),Object.defineProperty(a,"invokeHostFunction",{enumerable:!0,get:function(){return U.invokeHostFunction}}),Object.defineProperty(a,"liquidityPoolDeposit",{enumerable:!0,get:function(){return L.liquidityPoolDeposit}}),Object.defineProperty(a,"liquidityPoolWithdraw",{enumerable:!0,get:function(){return Q.liquidityPoolWithdraw}}),Object.defineProperty(a,"manageBuyOffer",{enumerable:!0,get:function(){return y.manageBuyOffer}}),Object.defineProperty(a,"manageData",{enumerable:!0,get:function(){return w.manageData}}),Object.defineProperty(a,"manageSellOffer",{enumerable:!0,get:function(){return t.manageSellOffer}}),Object.defineProperty(a,"pathPaymentStrictReceive",{enumerable:!0,get:function(){return _.pathPaymentStrictReceive}}),Object.defineProperty(a,"pathPaymentStrictSend",{enumerable:!0,get:function(){return x.pathPaymentStrictSend}}),Object.defineProperty(a,"payment",{enumerable:!0,get:function(){return E.payment}}),Object.defineProperty(a,"restoreFootprint",{enumerable:!0,get:function(){return se.restoreFootprint}}),Object.defineProperty(a,"revokeAccountSponsorship",{enumerable:!0,get:function(){return R.revokeAccountSponsorship}}),Object.defineProperty(a,"revokeClaimableBalanceSponsorship",{enumerable:!0,get:function(){return R.revokeClaimableBalanceSponsorship}}),Object.defineProperty(a,"revokeDataSponsorship",{enumerable:!0,get:function(){return R.revokeDataSponsorship}}),Object.defineProperty(a,"revokeLiquidityPoolSponsorship",{enumerable:!0,get:function(){return R.revokeLiquidityPoolSponsorship}}),Object.defineProperty(a,"revokeOfferSponsorship",{enumerable:!0,get:function(){return R.revokeOfferSponsorship}}),Object.defineProperty(a,"revokeSignerSponsorship",{enumerable:!0,get:function(){return R.revokeSignerSponsorship}}),Object.defineProperty(a,"revokeTrustlineSponsorship",{enumerable:!0,get:function(){return R.revokeTrustlineSponsorship}}),Object.defineProperty(a,"setOptions",{enumerable:!0,get:function(){return S.setOptions}}),Object.defineProperty(a,"setTrustLineFlags",{enumerable:!0,get:function(){return j.setTrustLineFlags}}),Object.defineProperty(a,"uploadContractWasm",{enumerable:!0,get:function(){return U.uploadContractWasm}});var t=i(9606),s=i(3427),o=i(7703),e=i(6583),c=i(3593),u=i(3960),h=i(7861),b=i(9471),p=i(57),k=i(4283),d=i(6804),w=i(3941),y=i(6e3),_=i(4),x=i(8778),E=i(7937),S=i(6106),C=i(6318),T=i(729),R=i(6416),W=i(6015),j=i(1214),L=i(2205),Q=i(9401),U=i(9456),Z=i(4774),se=i(2671)},6804:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.inflation=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};return e.body=s.default.OperationBody.inflation(),this.setSourceAccount(e,o),new s.default.Operation(e)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},9456:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.createCustomContract=function(b){var p=t.from(b.salt||e.Keypair.random().xdrPublicKey().value());if(!b.wasmHash||b.wasmHash.length!==32)throw new TypeError("expected hash(contract WASM) in 'opts.wasmHash', got ".concat(b.wasmHash));if(p.length!==32)throw new TypeError("expected 32-byte salt in 'opts.salt', got ".concat(b.wasmHash));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeCreateContract(new o.default.CreateContractArgs({executable:o.default.ContractExecutable.contractExecutableWasm(t.from(b.wasmHash)),contractIdPreimage:o.default.ContractIdPreimage.contractIdPreimageFromAddress(new o.default.ContractIdPreimageFromAddress({address:b.address.toScAddress(),salt:p}))}))})},a.createStellarAssetContract=function(b){var p=b.asset;if(typeof p=="string"){var k=p.split(":"),d=(x=2,function(E){if(Array.isArray(E))return E}(_=k)||function(E,S){var C=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(C!=null){var T,R,W,j,L=[],Q=!0,U=!1;try{if(W=(C=C.call(E)).next,S===0){if(Object(C)!==C)return;Q=!1}else for(;!(Q=(T=W.call(C)).done)&&(L.push(T.value),L.length!==S);Q=!0);}catch(Z){U=!0,R=Z}finally{try{if(!Q&&C.return!=null&&(j=C.return(),Object(j)!==j))return}finally{if(U)throw R}}return L}}(_,x)||function(E,S){if(E){if(typeof E=="string")return h(E,S);var C=Object.prototype.toString.call(E).slice(8,-1);return C==="Object"&&E.constructor&&(C=E.constructor.name),C==="Map"||C==="Set"?Array.from(E):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?h(E,S):void 0}}(_,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),w=d[0],y=d[1];p=new u.Asset(w,y)}var _,x;if(!(p instanceof u.Asset))throw new TypeError("expected Asset in 'opts.asset', got ".concat(p));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeCreateContract(new o.default.CreateContractArgs({executable:o.default.ContractExecutable.contractExecutableStellarAsset(),contractIdPreimage:o.default.ContractIdPreimage.contractIdPreimageFromAsset(p.toXDRObject())}))})},a.invokeContractFunction=function(b){var p=new c.Address(b.contract);if(p._type!=="contract")throw new TypeError("expected contract strkey instance, got ".concat(p));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeInvokeContract(new o.default.InvokeContractArgs({contractAddress:p.toScAddress(),functionName:b.function,args:b.args}))})},a.invokeHostFunction=function(b){if(!b.func)throw new TypeError("host function invocation ('func') required (got ".concat(JSON.stringify(b),")"));var p=new o.default.InvokeHostFunctionOp({hostFunction:b.func,auth:b.auth||[]}),k={body:o.default.OperationBody.invokeHostFunction(p)};return this.setSourceAccount(k,b),new o.default.Operation(k)},a.uploadContractWasm=function(b){return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeUploadContractWasm(t.from(b.wasm))})};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(3471),u=i(3469);function h(b,p){(p==null||p>b.length)&&(p=b.length);for(var k=0,d=new Array(p);k{Object.defineProperty(a,"__esModule",{value:!0}),a.liquidityPoolDeposit=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=o.liquidityPoolId,c=o.maxAmountA,u=o.maxAmountB,h=o.minPrice,b=o.maxPrice,p={};if(!e)throw new TypeError("liquidityPoolId argument is required");if(p.liquidityPoolId=s.default.PoolId.fromXDR(e,"hex"),!this.isValidAmount(c,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountA"));if(p.maxAmountA=this._toXDRAmount(c),!this.isValidAmount(u,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountB"));if(p.maxAmountB=this._toXDRAmount(u),h===void 0)throw new TypeError("minPrice argument is required");if(p.minPrice=this._toXDRPrice(h),b===void 0)throw new TypeError("maxPrice argument is required");p.maxPrice=this._toXDRPrice(b);var k=new s.default.LiquidityPoolDepositOp(p),d={body:s.default.OperationBody.liquidityPoolDeposit(k)};return this.setSourceAccount(d,o),new s.default.Operation(d)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},9401:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.liquidityPoolWithdraw=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};if(!o.liquidityPoolId)throw new TypeError("liquidityPoolId argument is required");if(e.liquidityPoolId=s.default.PoolId.fromXDR(o.liquidityPoolId,"hex"),!this.isValidAmount(o.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(e.amount=this._toXDRAmount(o.amount),!this.isValidAmount(o.minAmountA,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountA"));if(e.minAmountA=this._toXDRAmount(o.minAmountA),!this.isValidAmount(o.minAmountB,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountB"));e.minAmountB=this._toXDRAmount(o.minAmountB);var c=new s.default.LiquidityPoolWithdrawOp(e),u={body:s.default.OperationBody.liquidityPoolWithdraw(c)};return this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},6e3:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.manageBuyOffer=function(e){var c={};if(c.selling=e.selling.toXDRObject(),c.buying=e.buying.toXDRObject(),!this.isValidAmount(e.buyAmount,!0))throw new TypeError(this.constructAmountRequirementsError("buyAmount"));if(c.buyAmount=this._toXDRAmount(e.buyAmount),e.price===void 0)throw new TypeError("price argument is required");c.price=this._toXDRPrice(e.price),e.offerId!==void 0?e.offerId=e.offerId.toString():e.offerId="0",c.offerId=s.Hyper.fromString(e.offerId);var u=new o.default.ManageBuyOfferOp(c),h={};return h.body=o.default.OperationBody.manageBuyOffer(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var t,s=i(6263),o=(t=i(4081))&&t.__esModule?t:{default:t}},3941:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.manageData=function(e){var c={};if(!(typeof e.name=="string"&&e.name.length<=64))throw new Error("name must be a string, up to 64 characters");if(c.dataName=e.name,typeof e.value!="string"&&!t.isBuffer(e.value)&&e.value!==null)throw new Error("value must be a string, Buffer or null");if(typeof e.value=="string"?c.dataValue=t.from(e.value):c.dataValue=e.value,c.dataValue!==null&&c.dataValue.length>64)throw new Error("value cannot be longer that 64 bytes");var u=new o.default.ManageDataOp(c),h={};return h.body=o.default.OperationBody.manageData(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s}},9606:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.manageSellOffer=function(e){var c={};if(c.selling=e.selling.toXDRObject(),c.buying=e.buying.toXDRObject(),!this.isValidAmount(e.amount,!0))throw new TypeError(this.constructAmountRequirementsError("amount"));if(c.amount=this._toXDRAmount(e.amount),e.price===void 0)throw new TypeError("price argument is required");c.price=this._toXDRPrice(e.price),e.offerId!==void 0?e.offerId=e.offerId.toString():e.offerId="0",c.offerId=s.Hyper.fromString(e.offerId);var u=new o.default.ManageSellOfferOp(c),h={};return h.body=o.default.OperationBody.manageSellOffer(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var t,s=i(6263),o=(t=i(4081))&&t.__esModule?t:{default:t}},4:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pathPaymentStrictReceive=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendMax):throw new TypeError(this.constructAmountRequirementsError("sendMax"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destAmount):throw new TypeError(this.constructAmountRequirementsError("destAmount"))}var c={};c.sendAsset=e.sendAsset.toXDRObject(),c.sendMax=this._toXDRAmount(e.sendMax);try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.destAsset=e.destAsset.toXDRObject(),c.destAmount=this._toXDRAmount(e.destAmount);var u=e.path?e.path:[];c.path=u.map(function(p){return p.toXDRObject()});var h=new s.default.PathPaymentStrictReceiveOp(c),b={};return b.body=s.default.OperationBody.pathPaymentStrictReceive(h),this.setSourceAccount(b,e),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},8778:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pathPaymentStrictSend=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendAmount):throw new TypeError(this.constructAmountRequirementsError("sendAmount"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destMin):throw new TypeError(this.constructAmountRequirementsError("destMin"))}var c={};c.sendAsset=e.sendAsset.toXDRObject(),c.sendAmount=this._toXDRAmount(e.sendAmount);try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.destAsset=e.destAsset.toXDRObject(),c.destMin=this._toXDRAmount(e.destMin);var u=e.path?e.path:[];c.path=u.map(function(p){return p.toXDRObject()});var h=new s.default.PathPaymentStrictSendOp(c),b={};return b.body=s.default.OperationBody.pathPaymentStrictSend(h),this.setSourceAccount(b,e),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},7937:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.payment=function(e){if(!e.asset)throw new Error("Must provide an asset for a payment operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));var c={};try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.asset=e.asset.toXDRObject(),c.amount=this._toXDRAmount(e.amount);var u=new s.default.PaymentOp(c),h={};return h.body=s.default.OperationBody.payment(u),this.setSourceAccount(h,e),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},2671:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.restoreFootprint=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=new s.default.RestoreFootprintOp({ext:new s.default.ExtensionPoint(0)}),c={body:s.default.OperationBody.restoreFootprint(e)};return this.setSourceAccount(c,o??{}),new s.default.Operation(c)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},6416:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.revokeAccountSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.account))throw new Error("account is invalid");var p=o.default.LedgerKey.account(new o.default.LedgerKeyAccount({accountId:c.Keypair.fromPublicKey(b.account).xdrAccountId()})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeClaimableBalanceSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof b.balanceId!="string")throw new Error("balanceId is invalid");var p=o.default.LedgerKey.claimableBalance(new o.default.LedgerKeyClaimableBalance({balanceId:o.default.ClaimableBalanceId.fromXDR(b.balanceId,"hex")})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeDataSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.account))throw new Error("account is invalid");if(typeof b.name!="string"||b.name.length>64)throw new Error("name must be a string, up to 64 characters");var p=o.default.LedgerKey.data(new o.default.LedgerKeyData({accountId:c.Keypair.fromPublicKey(b.account).xdrAccountId(),dataName:b.name})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeLiquidityPoolSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof b.liquidityPoolId!="string")throw new Error("liquidityPoolId is invalid");var p=o.default.LedgerKey.liquidityPool(new o.default.LedgerKeyLiquidityPool({liquidityPoolId:o.default.PoolId.fromXDR(b.liquidityPoolId,"hex")})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),d={body:o.default.OperationBody.revokeSponsorship(k)};return this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeOfferSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.seller))throw new Error("seller is invalid");if(typeof b.offerId!="string")throw new Error("offerId is invalid");var p=o.default.LedgerKey.offer(new o.default.LedgerKeyOffer({sellerId:c.Keypair.fromPublicKey(b.seller).xdrAccountId(),offerId:o.default.Int64.fromString(b.offerId)})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeSignerSponsorship=function(){var b,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(p.account))throw new Error("account is invalid");if(p.signer.ed25519PublicKey){if(!e.StrKey.isValidEd25519PublicKey(p.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var k=e.StrKey.decodeEd25519PublicKey(p.signer.ed25519PublicKey);b=new o.default.SignerKey.signerKeyTypeEd25519(k)}else if(p.signer.preAuthTx){var d;if(d=typeof p.signer.preAuthTx=="string"?t.from(p.signer.preAuthTx,"hex"):p.signer.preAuthTx,!t.isBuffer(d)||d.length!==32)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");b=new o.default.SignerKey.signerKeyTypePreAuthTx(d)}else{if(!p.signer.sha256Hash)throw new Error("signer is invalid");var w;if(w=typeof p.signer.sha256Hash=="string"?t.from(p.signer.sha256Hash,"hex"):p.signer.sha256Hash,!t.isBuffer(w)||w.length!==32)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");b=new o.default.SignerKey.signerKeyTypeHashX(w)}var y=new o.default.RevokeSponsorshipOpSigner({accountId:c.Keypair.fromPublicKey(p.account).xdrAccountId(),signerKey:b}),_=o.default.RevokeSponsorshipOp.revokeSponsorshipSigner(y),x={};return x.body=o.default.OperationBody.revokeSponsorship(_),this.setSourceAccount(x,p),new o.default.Operation(x)},a.revokeTrustlineSponsorship=function(){var b,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(p.account))throw new Error("account is invalid");if(p.asset instanceof u.Asset)b=p.asset.toTrustLineXDRObject();else{if(!(p.asset instanceof h.LiquidityPoolId))throw new TypeError("asset must be an Asset or LiquidityPoolId");b=p.asset.toXDRObject()}var k=o.default.LedgerKey.trustline(new o.default.LedgerKeyTrustLine({accountId:c.Keypair.fromPublicKey(p.account).xdrAccountId(),asset:b})),d=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(k),w={};return w.body=o.default.OperationBody.revokeSponsorship(d),this.setSourceAccount(w,p),new o.default.Operation(w)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(8385),c=i(6437),u=i(3469),h=i(7287)},6106:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.setOptions=function(h){var b={};if(h.inflationDest){if(!c.StrKey.isValidEd25519PublicKey(h.inflationDest))throw new Error("inflationDest is invalid");b.inflationDest=e.Keypair.fromPublicKey(h.inflationDest).xdrAccountId()}if(b.clearFlags=this._checkUnsignedIntValue("clearFlags",h.clearFlags),b.setFlags=this._checkUnsignedIntValue("setFlags",h.setFlags),b.masterWeight=this._checkUnsignedIntValue("masterWeight",h.masterWeight,u),b.lowThreshold=this._checkUnsignedIntValue("lowThreshold",h.lowThreshold,u),b.medThreshold=this._checkUnsignedIntValue("medThreshold",h.medThreshold,u),b.highThreshold=this._checkUnsignedIntValue("highThreshold",h.highThreshold,u),h.homeDomain!==void 0&&typeof h.homeDomain!="string")throw new TypeError("homeDomain argument must be of type String");if(b.homeDomain=h.homeDomain,h.signer){var p,k=this._checkUnsignedIntValue("signer.weight",h.signer.weight,u),d=0;if(h.signer.ed25519PublicKey){if(!c.StrKey.isValidEd25519PublicKey(h.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var w=c.StrKey.decodeEd25519PublicKey(h.signer.ed25519PublicKey);p=new o.default.SignerKey.signerKeyTypeEd25519(w),d+=1}if(h.signer.preAuthTx){if(typeof h.signer.preAuthTx=="string"&&(h.signer.preAuthTx=t.from(h.signer.preAuthTx,"hex")),!t.isBuffer(h.signer.preAuthTx)||h.signer.preAuthTx.length!==32)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");p=new o.default.SignerKey.signerKeyTypePreAuthTx(h.signer.preAuthTx),d+=1}if(h.signer.sha256Hash){if(typeof h.signer.sha256Hash=="string"&&(h.signer.sha256Hash=t.from(h.signer.sha256Hash,"hex")),!t.isBuffer(h.signer.sha256Hash)||h.signer.sha256Hash.length!==32)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");p=new o.default.SignerKey.signerKeyTypeHashX(h.signer.sha256Hash),d+=1}if(h.signer.ed25519SignedPayload){if(!c.StrKey.isValidSignedPayload(h.signer.ed25519SignedPayload))throw new Error("signer.ed25519SignedPayload is invalid.");var y=c.StrKey.decodeSignedPayload(h.signer.ed25519SignedPayload),_=o.default.SignerKeyEd25519SignedPayload.fromXDR(y);p=o.default.SignerKey.signerKeyTypeEd25519SignedPayload(_),d+=1}if(d!==1)throw new Error("Signer object must contain exactly one of signer.ed25519PublicKey, signer.sha256Hash, signer.preAuthTx.");b.signer=new o.default.Signer({key:p,weight:k})}var x=new o.default.SetOptionsOp(b),E={};return E.body=o.default.OperationBody.setOptions(x),this.setSourceAccount(E,h),new o.default.Operation(E)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(8385);function u(h,b){if(h>=0&&h<=255)return!0;throw new Error("".concat(b," value must be between 0 and 255"))}},1214:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.setTrustLineFlags=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u={};if(e(c.flags)!=="object"||Object.keys(c.flags).length===0)throw new Error("opts.flags must be a map of boolean flags to modify");var h={authorized:s.default.TrustLineFlags.authorizedFlag(),authorizedToMaintainLiabilities:s.default.TrustLineFlags.authorizedToMaintainLiabilitiesFlag(),clawbackEnabled:s.default.TrustLineFlags.trustlineClawbackEnabledFlag()},b=0,p=0;Object.keys(c.flags).forEach(function(d){if(!Object.prototype.hasOwnProperty.call(h,d))throw new Error("unsupported flag name specified: ".concat(d));var w=c.flags[d],y=h[d].value;w===!0?p|=y:w===!1&&(b|=y)}),u.trustor=o.Keypair.fromPublicKey(c.trustor).xdrAccountId(),u.asset=c.asset.toXDRObject(),u.clearFlags=b,u.setFlags=p;var k={body:s.default.OperationBody.setTrustLineFlags(new s.default.SetTrustLineFlagsOp(u))};return this.setSourceAccount(k,c),new s.default.Operation(k)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437);function e(c){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(c)}},5567:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.nativeToScVal=function k(d){var w,y,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(p(d)){case"object":if(d===null)return o.default.ScVal.scvVoid();if(d instanceof o.default.ScVal)return d;if(d instanceof e.Address)return d.toScVal();if(d instanceof c.Contract)return d.address().toScVal();if(d instanceof Uint8Array||t.isBuffer(d)){var x,E=Uint8Array.from(d);switch((x=_==null?void 0:_.type)!==null&&x!==void 0?x:"bytes"){case"bytes":return o.default.ScVal.scvBytes(E);case"symbol":return o.default.ScVal.scvSymbol(E);case"string":return o.default.ScVal.scvString(E);default:throw new TypeError("invalid type (".concat(_.type,") specified for bytes-like value"))}}if(Array.isArray(d)){if(d.length>0&&d.some(function(R){return p(R)!==p(d[0])}))throw new TypeError("array values (".concat(d,") must have the same type (types: ").concat(d.map(function(R){return p(R)}).join(","),")"));return o.default.ScVal.scvVec(d.map(function(R){return k(R,_)}))}var S;if(((w=(y=d.constructor)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"")!=="Object")throw new TypeError("cannot interpret ".concat((S=d.constructor)===null||S===void 0?void 0:S.name," value as ScVal (").concat(JSON.stringify(d),")"));return o.default.ScVal.scvMap(Object.entries(d).map(function(R){var W,j,L=h(R,2),Q=L[0],U=L[1],Z=h((W=((j=_==null?void 0:_.type)!==null&&j!==void 0?j:{})[Q])!==null&&W!==void 0?W:[null,null],2),se=Z[0],te=Z[1],$=se?{type:se}:{},P=te?{type:te}:{};return new o.default.ScMapEntry({key:k(Q,$),val:k(U,P)})}));case"number":case"bigint":switch(_==null?void 0:_.type){case"u32":return o.default.ScVal.scvU32(d);case"i32":return o.default.ScVal.scvI32(d)}return new u.ScInt(d,{type:_==null?void 0:_.type}).toScVal();case"string":var C,T=(C=_==null?void 0:_.type)!==null&&C!==void 0?C:"string";switch(T){case"string":return o.default.ScVal.scvString(d);case"symbol":return o.default.ScVal.scvSymbol(d);case"address":return new e.Address(d).toScVal();default:if(u.XdrLargeInt.isType(T))return new u.XdrLargeInt(T,d).toScVal();throw new TypeError("invalid type (".concat(_.type,") specified for string value"))}case"boolean":return o.default.ScVal.scvBool(d);case"undefined":return o.default.ScVal.scvVoid();case"function":return k(d());default:throw new TypeError("failed to convert typeof ".concat(p(d)," (").concat(d,")"))}},a.scValToNative=function k(d){var w,y;switch(d.switch().value){case o.default.ScValType.scvVoid().value:return null;case o.default.ScValType.scvU64().value:case o.default.ScValType.scvI64().value:return d.value().toBigInt();case o.default.ScValType.scvU128().value:case o.default.ScValType.scvI128().value:case o.default.ScValType.scvU256().value:case o.default.ScValType.scvI256().value:return(0,u.scValToBigInt)(d);case o.default.ScValType.scvVec().value:return((w=d.vec())!==null&&w!==void 0?w:[]).map(k);case o.default.ScValType.scvAddress().value:return e.Address.fromScVal(d).toString();case o.default.ScValType.scvMap().value:return Object.fromEntries(((y=d.map())!==null&&y!==void 0?y:[]).map(function(x){return[k(x.key()),k(x.val())]}));case o.default.ScValType.scvBool().value:case o.default.ScValType.scvU32().value:case o.default.ScValType.scvI32().value:case o.default.ScValType.scvBytes().value:return d.value();case o.default.ScValType.scvSymbol().value:case o.default.ScValType.scvString().value:var _=d.value();if(t.isBuffer(_)||ArrayBuffer.isView(_))try{return new TextDecoder().decode(_)}catch{return new Uint8Array(_.buffer)}return _;case o.default.ScValType.scvTimepoint().value:case o.default.ScValType.scvDuration().value:return new o.default.Uint64(d.value()).toBigInt();case o.default.ScValType.scvStatus().value:switch(d.value().switch()){case o.default.ScStatusType.sstOk().value:case o.default.ScStatusType.sstUnknownError().value:case o.default.ScStatusType.sstHostValueError().value:case o.default.ScStatusType.sstHostObjectError().value:case o.default.ScStatusType.sstHostFunctionError().value:case o.default.ScStatusType.sstHostStorageError().value:case o.default.ScStatusType.sstHostContextError().value:case o.default.ScStatusType.sstVmError().value:case o.default.ScStatusType.sstContractError().value:case o.default.ScStatusType.sstHostAuthError().value:}default:return d.value()}};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(3471),c=i(5618),u=i(3180);function h(k,d){return function(w){if(Array.isArray(w))return w}(k)||function(w,y){var _=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(_!=null){var x,E,S,C,T=[],R=!0,W=!1;try{if(S=(_=_.call(w)).next,y===0){if(Object(_)!==_)return;R=!1}else for(;!(R=(x=S.call(_)).done)&&(T.push(x.value),T.length!==y);R=!0);}catch(j){W=!0,E=j}finally{try{if(!R&&_.return!=null&&(C=_.return(),Object(C)!==C))return}finally{if(W)throw E}}return T}}(k,d)||function(w,y){if(w){if(typeof w=="string")return b(w,y);var _=Object.prototype.toString.call(w).slice(8,-1);if(_==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set")return Array.from(w);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return b(w,y)}}(k,d)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(k,d){(d==null||d>k.length)&&(d=k.length);for(var w=0,y=new Array(d);w{Object.defineProperty(a,"__esModule",{value:!0}),a.SignerKey=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385);function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.FastSigning=void 0,a.generate=function(e){return s.generate(e)},a.sign=function(e,c){return s.sign(e,c)},a.verify=function(e,c,u){return s.verify(e,c,u)};var s={};a.FastSigning=typeof window>"u"?function(){var e;try{e=i(Object(function(){var c=new Error("Cannot find module 'sodium-native'");throw c.code="MODULE_NOT_FOUND",c}()))}catch{return o()}return Object.keys(e).length?(s.generate=function(c){var u=t.alloc(e.crypto_sign_PUBLICKEYBYTES),h=t.alloc(e.crypto_sign_SECRETKEYBYTES);return e.crypto_sign_seed_keypair(u,h,c),u},s.sign=function(c,u){c=t.from(c);var h=t.alloc(e.crypto_sign_BYTES);return e.crypto_sign_detached(h,c,u),h},s.verify=function(c,u,h){c=t.from(c);try{return e.crypto_sign_verify_detached(u,c,h)}catch{return!1}},!0):o()}():o();function o(){var e=i(7586);return s.generate=function(c){var u=new Uint8Array(c),h=e.sign.keyPair.fromSeed(u);return t.from(h.publicKey)},s.sign=function(c,u){c=t.from(c),c=new Uint8Array(c.toJSON().data),u=new Uint8Array(u.toJSON().data);var h=e.sign.detached(c,u);return t.from(h)},s.verify=function(c,u,h){return c=t.from(c),c=new Uint8Array(c.toJSON().data),u=new Uint8Array(u.toJSON().data),h=new Uint8Array(h.toJSON().data),e.sign.detached.verify(c,u,h)},!1}},251:(f,a)=>{function i(e){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(e)}function t(e){return function(c){if(Array.isArray(c))return c}(e)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(e)||function(c,u){if(c){if(typeof c=="string")return s(c,u);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(c);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return s(c,u)}}(e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function s(e,c){(c==null||c>e.length)&&(c=e.length);for(var u=0,h=new Array(c);u0&&(k=p>k.length?["0",k.toString().padStart(p,"0")].join("."):[k.slice(0,-p),k.slice(-p)].join(".")),k.replace(/(\.\d*?)0+$/,"$1")}},{key:"parseTokenAmount",value:function(b,p){var k,d=t(b.split(".").slice()),w=d[0],y=d[1];if(d.slice(2).length)throw new Error("Invalid decimal value: ".concat(b));return BigInt(w+((k=y==null?void 0:y.padEnd(p,"0"))!==null&&k!==void 0?k:"0".repeat(p))).toString()}}],(u=null)&&o(c.prototype,u),h&&o(c,h),Object.defineProperty(c,"prototype",{writable:!1}),e}()},5096:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SorobanDataBuilder=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(u){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},o(u)}function e(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.StrKey=void 0,a.decodeCheck=k,a.encodeCheck=d;var s,o=(s=i(6906))&&s.__esModule?s:{default:s},e=i(9449);function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(y)}function u(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(c(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(c(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),c(C)==="symbol"?C:String(C)),E)}var S,C}var h={ed25519PublicKey:48,ed25519SecretSeed:144,med25519PublicKey:96,preAuthTx:152,sha256Hash:184,signedPayload:120,contract:16},b={G:"ed25519PublicKey",S:"ed25519SecretSeed",M:"med25519PublicKey",T:"preAuthTx",X:"sha256Hash",P:"signedPayload",C:"contract"};a.StrKey=function(){function y(){(function(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")})(this,y)}var _,x,E;return _=y,E=[{key:"encodeEd25519PublicKey",value:function(S){return d("ed25519PublicKey",S)}},{key:"decodeEd25519PublicKey",value:function(S){return k("ed25519PublicKey",S)}},{key:"isValidEd25519PublicKey",value:function(S){return p("ed25519PublicKey",S)}},{key:"encodeEd25519SecretSeed",value:function(S){return d("ed25519SecretSeed",S)}},{key:"decodeEd25519SecretSeed",value:function(S){return k("ed25519SecretSeed",S)}},{key:"isValidEd25519SecretSeed",value:function(S){return p("ed25519SecretSeed",S)}},{key:"encodeMed25519PublicKey",value:function(S){return d("med25519PublicKey",S)}},{key:"decodeMed25519PublicKey",value:function(S){return k("med25519PublicKey",S)}},{key:"isValidMed25519PublicKey",value:function(S){return p("med25519PublicKey",S)}},{key:"encodePreAuthTx",value:function(S){return d("preAuthTx",S)}},{key:"decodePreAuthTx",value:function(S){return k("preAuthTx",S)}},{key:"encodeSha256Hash",value:function(S){return d("sha256Hash",S)}},{key:"decodeSha256Hash",value:function(S){return k("sha256Hash",S)}},{key:"encodeSignedPayload",value:function(S){return d("signedPayload",S)}},{key:"decodeSignedPayload",value:function(S){return k("signedPayload",S)}},{key:"isValidSignedPayload",value:function(S){return p("signedPayload",S)}},{key:"encodeContract",value:function(S){return d("contract",S)}},{key:"decodeContract",value:function(S){return k("contract",S)}},{key:"isValidContract",value:function(S){return p("contract",S)}},{key:"getVersionByteForPrefix",value:function(S){return b[S[0]]}}],(x=null)&&u(_.prototype,x),E&&u(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}();function p(y,_){if(typeof _!="string")return!1;switch(y){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":if(_.length!==56)return!1;break;case"med25519PublicKey":if(_.length!==69)return!1;break;case"signedPayload":if(_.length<56||_.length>165)return!1;break;default:return!1}var x="";try{x=k(y,_)}catch{return!1}switch(y){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":return x.length===32;case"med25519PublicKey":return x.length===40;case"signedPayload":return x.length>=40&&x.length<=100;default:return!1}}function k(y,_){if(typeof _!="string")throw new TypeError("encoded argument must be of type String");var x=o.default.decode(_),E=x[0],S=x.slice(0,-2),C=S.slice(1),T=x.slice(-2);if(_!==o.default.encode(x))throw new Error("invalid encoded string");var R=h[y];if(R===void 0)throw new Error("".concat(y," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(h).join(", ")));if(E!==R)throw new Error("invalid version byte. expected ".concat(R,", got ").concat(E));var W=w(S);if(!(0,e.verifyChecksum)(W,T))throw new Error("invalid checksum");return t.from(C)}function d(y,_){if(_==null)throw new Error("cannot encode null data");var x=h[y];if(x===void 0)throw new Error("".concat(y," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(h).join(", ")));_=t.from(_);var E=t.from([x]),S=t.concat([E,_]),C=w(S),T=t.concat([S,C]);return o.default.encode(T)}function w(y){for(var _=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920],x=0,E=0;E>8^y[E]],x&=65535;var S=new Uint8Array(2);return S[0]=255&x,S[1]=x>>8&255,S}},1388:(f,a,i)=>{var t=i(8764).Buffer;function s(x){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},s(x)}Object.defineProperty(a,"__esModule",{value:!0}),a.Transaction=void 0;var o,e=(o=i(4081))&&o.__esModule?o:{default:o},c=i(9622),u=i(8385),h=i(4585),b=i(4856),p=i(1065),k=i(6880);function d(x,E){for(var S=0;S"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var S,C=_(x);if(E){var T=_(this).constructor;S=Reflect.construct(C,arguments,T)}else S=C.apply(this,arguments);return function(R,W){if(W&&(s(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}(R)}(this,S)}}function _(x){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},_(x)}a.Transaction=function(x){(function(R,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&w(R,W)})(T,x);var E,S,C=y(T);function T(R,W){var j;if(function(G,re){if(!(G instanceof re))throw new TypeError("Cannot call a class as a function")}(this,T),typeof R=="string"){var L=t.from(R,"base64");R=e.default.TransactionEnvelope.fromXDR(L)}var Q=R.switch();if(Q!==e.default.EnvelopeType.envelopeTypeTxV0()&&Q!==e.default.EnvelopeType.envelopeTypeTx())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(Q.name,"."));var U=R.value(),Z=U.tx(),se=Z.fee().toString(),te=(U.signatures()||[]).slice();(j=C.call(this,Z,te,se,W))._envelopeType=Q,j._memo=Z.memo(),j._sequence=Z.seqNum().toString(),j._envelopeType===e.default.EnvelopeType.envelopeTypeTxV0()?j._source=u.StrKey.encodeEd25519PublicKey(j.tx.sourceAccountEd25519()):j._source=(0,k.encodeMuxedAccountToAddress)(j.tx.sourceAccount());var $=null,P=null;switch(j._envelopeType){case e.default.EnvelopeType.envelopeTypeTxV0():P=Z.timeBounds();break;case e.default.EnvelopeType.envelopeTypeTx():switch(Z.cond().switch()){case e.default.PreconditionType.precondTime():P=Z.cond().timeBounds();break;case e.default.PreconditionType.precondV2():P=($=Z.cond().v2()).timeBounds()}}if(P&&(j._timeBounds={minTime:P.minTime().toString(),maxTime:P.maxTime().toString()}),$){var A=$.ledgerBounds();A&&(j._ledgerBounds={minLedger:A.minLedger(),maxLedger:A.maxLedger()});var O=$.minSeqNum();O&&(j._minAccountSequence=O.toString()),j._minAccountSequenceAge=$.minSeqAge(),j._minAccountSequenceLedgerGap=$.minSeqLedgerGap(),j._extraSigners=$.extraSigners()}var z=Z.operations()||[];return j._operations=z.map(function(G){return h.Operation.fromXDRObject(G)}),j}return E=T,(S=[{key:"timeBounds",get:function(){return this._timeBounds},set:function(R){throw new Error("Transaction is immutable")}},{key:"ledgerBounds",get:function(){return this._ledgerBounds},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequence",get:function(){return this._minAccountSequence},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceAge",get:function(){return this._minAccountSequenceAge},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceLedgerGap",get:function(){return this._minAccountSequenceLedgerGap},set:function(R){throw new Error("Transaction is immutable")}},{key:"extraSigners",get:function(){return this._extraSigners},set:function(R){throw new Error("Transaction is immutable")}},{key:"sequence",get:function(){return this._sequence},set:function(R){throw new Error("Transaction is immutable")}},{key:"source",get:function(){return this._source},set:function(R){throw new Error("Transaction is immutable")}},{key:"operations",get:function(){return this._operations},set:function(R){throw new Error("Transaction is immutable")}},{key:"memo",get:function(){return b.Memo.fromXDRObject(this._memo)},set:function(R){throw new Error("Transaction is immutable")}},{key:"signatureBase",value:function(){var R=this.tx;this._envelopeType===e.default.EnvelopeType.envelopeTypeTxV0()&&(R=e.default.Transaction.fromXDR(t.concat([e.default.PublicKeyType.publicKeyTypeEd25519().toXDR(),R.toXDR()])));var W=new e.default.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTx(R);return new e.default.TransactionSignaturePayload({networkId:e.default.Hash.fromXDR((0,c.hash)(this.networkPassphrase)),taggedTransaction:W}).toXDR()}},{key:"toEnvelope",value:function(){var R,W=this.tx.toXDR(),j=this.signatures.slice();switch(this._envelopeType){case e.default.EnvelopeType.envelopeTypeTxV0():R=new e.default.TransactionEnvelope.envelopeTypeTxV0(new e.default.TransactionV0Envelope({tx:e.default.TransactionV0.fromXDR(W),signatures:j}));break;case e.default.EnvelopeType.envelopeTypeTx():R=new e.default.TransactionEnvelope.envelopeTypeTx(new e.default.TransactionV1Envelope({tx:e.default.Transaction.fromXDR(W),signatures:j}));break;default:throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(this._envelopeType.name,"."))}return R}},{key:"getClaimableBalanceId",value:function(R){if(!Number.isInteger(R)||R<0||R>=this.operations.length)throw new RangeError("invalid operation index");var W=this.operations[R];try{W=h.Operation.createClaimableBalance(W)}catch(U){throw new TypeError("expected createClaimableBalance, got ".concat(W.type,": ").concat(U))}var j=u.StrKey.decodeEd25519PublicKey((0,k.extractBaseAddress)(this.source)),L=e.default.HashIdPreimage.envelopeTypeOpId(new e.default.HashIdPreimageOperationId({sourceAccount:e.default.AccountId.publicKeyTypeEd25519(j),seqNum:e.default.SequenceNumber.fromString(this.sequence),opNum:R})),Q=(0,c.hash)(L.toXDR("raw"));return e.default.ClaimableBalanceId.claimableBalanceIdTypeV0(Q).toXDR("hex")}}])&&d(E.prototype,S),Object.defineProperty(E,"prototype",{writable:!1}),T}(p.TransactionBase)},1065:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.TransactionBase=void 0;var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(9622),c=i(6437);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},u(b)}function h(b,p){for(var k=0;k0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(!_||typeof _!="string")throw new Error("Invalid signature");if(!y||typeof y!="string")throw new Error("Invalid publicKey");var x=t.from(_,"base64");try{w=(d=c.Keypair.fromPublicKey(y)).signatureHint()}catch{throw new Error("Invalid publicKey")}if(!d.verify(this.hash(),x))throw new Error("Invalid signature");this.signatures.push(new o.default.DecoratedSignature({hint:w,signature:x}))}},{key:"addDecoratedSignature",value:function(d){this.signatures.push(d)}},{key:"signHashX",value:function(d){if(typeof d=="string"&&(d=t.from(d,"hex")),d.length>64)throw new Error("preimage cannnot be longer than 64 bytes");var w=d,y=(0,e.hash)(d),_=y.slice(y.length-4);this.signatures.push(new o.default.DecoratedSignature({hint:_,signature:w}))}},{key:"hash",value:function(){return(0,e.hash)(this.signatureBase())}},{key:"signatureBase",value:function(){throw new Error("Implement in subclass")}},{key:"toEnvelope",value:function(){throw new Error("Implement in subclass")}},{key:"toXDR",value:function(){return this.toEnvelope().toXDR().toString("base64")}}],k&&h(p.prototype,k),Object.defineProperty(p,"prototype",{writable:!1}),b}()},624:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TransactionBuilder=a.TimeoutInfinite=a.BASE_FEE=void 0,a.isValidDate=L;var t=i(6263),s=y(i(4431)),o=y(i(4081)),e=i(3217),c=i(9022),u=i(6880),h=i(1388),b=i(1462),p=i(5096),k=i(8385),d=i(5822),w=i(4856);function y(Q){return Q&&Q.__esModule?Q:{default:Q}}function _(Q){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},_(Q)}function x(Q){return function(U){if(Array.isArray(U))return E(U)}(Q)||function(U){if(typeof Symbol<"u"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(Q)||function(U,Z){if(U){if(typeof U=="string")return E(U,Z);var se=Object.prototype.toString.call(U).slice(8,-1);if(se==="Object"&&U.constructor&&(se=U.constructor.name),se==="Map"||se==="Set")return Array.from(U);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return E(U,Z)}}(Q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(Q,U){(U==null||U>Q.length)&&(U=Q.length);for(var Z=0,se=new Array(U);Z1&&arguments[1]!==void 0?arguments[1]:{};if(function(P,A){if(!(P instanceof A))throw new TypeError("Cannot call a class as a function")}(this,Q),!te)throw new Error("must specify source account for the transaction");if($.fee===void 0)throw new Error("must specify fee for the transaction (in stroops)");this.source=te,this.operations=[],this.baseFee=$.fee,this.timebounds=$.timebounds?C({},$.timebounds):null,this.ledgerbounds=$.ledgerbounds?C({},$.ledgerbounds):null,this.minAccountSequence=$.minAccountSequence||null,this.minAccountSequenceAge=$.minAccountSequenceAge||null,this.minAccountSequenceLedgerGap=$.minAccountSequenceLedgerGap||null,this.extraSigners=$.extraSigners?x($.extraSigners):null,this.memo=$.memo||w.Memo.none(),this.networkPassphrase=$.networkPassphrase||null,this.sorobanData=$.sorobanData?new p.SorobanDataBuilder($.sorobanData).build():null}var U,Z,se;return U=Q,se=[{key:"cloneFrom",value:function(te){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(te instanceof h.Transaction))throw new TypeError("expected a 'Transaction', got: ".concat(te));var P,A=(BigInt(te.sequence)-1n).toString();if(k.StrKey.isValidMed25519PublicKey(te.source))P=c.MuxedAccount.fromAddress(te.source,A);else{if(!k.StrKey.isValidEd25519PublicKey(te.source))throw new TypeError("unsupported tx source account: ".concat(te.source));P=new e.Account(te.source,A)}var O=new Q(P,C({fee:(parseInt(te.fee,10)/te.operations.length||j).toString(),memo:te.memo,networkPassphrase:te.networkPassphrase,timebounds:te.timeBounds,ledgerbounds:te.ledgerBounds,minAccountSequence:te.minAccountSequence,minAccountSequenceAge:te.minAccountSequenceAge,minAccountSequenceLedgerGap:te.minAccountSequenceLedgerGap,extraSigners:te.extraSigners},$));return te._tx.operations().forEach(function(z){return O.addOperation(z)}),O}},{key:"buildFeeBumpTransaction",value:function(te,$,P,A){var O=P.operations.length,z=new s.default(P.fee).div(O),G=new s.default($);if(G.lt(z))throw new Error("Invalid baseFee, it should be at least ".concat(z," stroops."));var re=new s.default(j);if(G.lt(re))throw new Error("Invalid baseFee, it should be at least ".concat(re," stroops."));var X,be=P.toEnvelope();if(be.switch()===o.default.EnvelopeType.envelopeTypeTxV0()){var Be=be.v0().tx(),ve=new o.default.Transaction({sourceAccount:new o.default.MuxedAccount.keyTypeEd25519(Be.sourceAccountEd25519()),fee:Be.fee(),seqNum:Be.seqNum(),cond:o.default.Preconditions.precondTime(Be.timeBounds()),memo:Be.memo(),operations:Be.operations(),ext:new o.default.TransactionExt(0)});be=new o.default.TransactionEnvelope.envelopeTypeTx(new o.default.TransactionV1Envelope({tx:ve,signatures:be.v0().signatures()}))}X=typeof te=="string"?(0,u.decodeAddressToMuxedAccount)(te):te.xdrMuxedAccount();var he=new o.default.FeeBumpTransaction({feeSource:X,fee:o.default.Int64.fromString(G.times(O+1).toString()),innerTx:o.default.FeeBumpTransactionInnerTx.envelopeTypeTx(be.v1()),ext:new o.default.FeeBumpTransactionExt(0)}),le=new o.default.FeeBumpTransactionEnvelope({tx:he,signatures:[]}),ge=new o.default.TransactionEnvelope.envelopeTypeTxFeeBump(le);return new b.FeeBumpTransaction(ge,A)}},{key:"fromXDR",value:function(te,$){return typeof te=="string"&&(te=o.default.TransactionEnvelope.fromXDR(te,"base64")),te.switch()===o.default.EnvelopeType.envelopeTypeTxFeeBump()?new b.FeeBumpTransaction(te,$):new h.Transaction(te,$)}}],(Z=[{key:"addOperation",value:function(te){return this.operations.push(te),this}},{key:"clearOperations",value:function(){return this.operations=[],this}},{key:"addMemo",value:function(te){return this.memo=te,this}},{key:"setTimeout",value:function(te){if(this.timebounds!==null&&this.timebounds.maxTime>0)throw new Error("TimeBounds.max_time has been already set - setting timeout would overwrite it.");if(te<0)throw new Error("timeout cannot be negative");if(te>0){var $=Math.floor(Date.now()/1e3)+te;this.timebounds===null?this.timebounds={minTime:0,maxTime:$}:this.timebounds={minTime:this.timebounds.minTime,maxTime:$}}else this.timebounds={minTime:0,maxTime:0};return this}},{key:"setTimebounds",value:function(te,$){if(typeof te=="number"&&(te=new Date(1e3*te)),typeof $=="number"&&($=new Date(1e3*$)),this.timebounds!==null)throw new Error("TimeBounds has been already set - setting timebounds would overwrite it.");var P=Math.floor(te.valueOf()/1e3),A=Math.floor($.valueOf()/1e3);if(P<0)throw new Error("min_time cannot be negative");if(A<0)throw new Error("max_time cannot be negative");if(A>0&&P>A)throw new Error("min_time cannot be greater than max_time");return this.timebounds={minTime:P,maxTime:A},this}},{key:"setLedgerbounds",value:function(te,$){if(this.ledgerbounds!==null)throw new Error("LedgerBounds has been already set - setting ledgerbounds would overwrite it.");if(te<0)throw new Error("min_ledger cannot be negative");if($<0)throw new Error("max_ledger cannot be negative");if($>0&&te>$)throw new Error("min_ledger cannot be greater than max_ledger");return this.ledgerbounds={minLedger:te,maxLedger:$},this}},{key:"setMinAccountSequence",value:function(te){if(this.minAccountSequence!==null)throw new Error("min_account_sequence has been already set - setting min_account_sequence would overwrite it.");return this.minAccountSequence=te,this}},{key:"setMinAccountSequenceAge",value:function(te){if(typeof te!="number")throw new Error("min_account_sequence_age must be a number");if(this.minAccountSequenceAge!==null)throw new Error("min_account_sequence_age has been already set - setting min_account_sequence_age would overwrite it.");if(te<0)throw new Error("min_account_sequence_age cannot be negative");return this.minAccountSequenceAge=te,this}},{key:"setMinAccountSequenceLedgerGap",value:function(te){if(this.minAccountSequenceLedgerGap!==null)throw new Error("min_account_sequence_ledger_gap has been already set - setting min_account_sequence_ledger_gap would overwrite it.");if(te<0)throw new Error("min_account_sequence_ledger_gap cannot be negative");return this.minAccountSequenceLedgerGap=te,this}},{key:"setExtraSigners",value:function(te){if(!Array.isArray(te))throw new Error("extra_signers must be an array of strings.");if(this.extraSigners!==null)throw new Error("extra_signers has been already set - setting extra_signers would overwrite it.");if(te.length>2)throw new Error("extra_signers cannot be longer than 2 elements.");return this.extraSigners=x(te),this}},{key:"setNetworkPassphrase",value:function(te){return this.networkPassphrase=te,this}},{key:"setSorobanData",value:function(te){return this.sorobanData=new p.SorobanDataBuilder(te).build(),this}},{key:"build",value:function(){var te=new s.default(this.source.sequenceNumber()).plus(1),$={fee:new s.default(this.baseFee).times(this.operations.length).toNumber(),seqNum:o.default.SequenceNumber.fromString(te.toString()),memo:this.memo?this.memo.toXDRObject():null};if(this.timebounds===null||this.timebounds.minTime===void 0||this.timebounds.maxTime===void 0)throw new Error("TimeBounds has to be set or you must call setTimeout(TimeoutInfinite).");L(this.timebounds.minTime)&&(this.timebounds.minTime=this.timebounds.minTime.getTime()/1e3),L(this.timebounds.maxTime)&&(this.timebounds.maxTime=this.timebounds.maxTime.getTime()/1e3),this.timebounds.minTime=t.UnsignedHyper.fromString(this.timebounds.minTime.toString()),this.timebounds.maxTime=t.UnsignedHyper.fromString(this.timebounds.maxTime.toString());var P=new o.default.TimeBounds(this.timebounds);if(this.hasV2Preconditions()){var A=null;this.ledgerbounds!==null&&(A=new o.default.LedgerBounds(this.ledgerbounds));var O=this.minAccountSequence||"0";O=o.default.SequenceNumber.fromString(O);var z=t.UnsignedHyper.fromString(this.minAccountSequenceAge!==null?this.minAccountSequenceAge.toString():"0"),G=this.minAccountSequenceLedgerGap||0,re=this.extraSigners!==null?this.extraSigners.map(d.SignerKey.decodeAddress):[];$.cond=o.default.Preconditions.precondV2(new o.default.PreconditionsV2({timeBounds:P,ledgerBounds:A,minSeqNum:O,minSeqAge:z,minSeqLedgerGap:G,extraSigners:re}))}else $.cond=o.default.Preconditions.precondTime(P);$.sourceAccount=(0,u.decodeAddressToMuxedAccount)(this.source.accountId()),this.sorobanData?$.ext=new o.default.TransactionExt(1,this.sorobanData):$.ext=new o.default.TransactionExt(0,o.default.Void);var X=new o.default.Transaction($);X.operations(this.operations);var be=new o.default.TransactionEnvelope.envelopeTypeTx(new o.default.TransactionV1Envelope({tx:X})),Be=new h.Transaction(be,this.networkPassphrase);return this.source.incrementSequenceNumber(),Be}},{key:"hasV2Preconditions",value:function(){return this.ledgerbounds!==null||this.minAccountSequence!==null||this.minAccountSequenceAge!==null||this.minAccountSequenceLedgerGap!==null||this.extraSigners!==null&&this.extraSigners.length>0}}])&&R(U.prototype,Z),se&&R(U,se),Object.defineProperty(U,"prototype",{writable:!1}),Q}();function L(Q){return Q instanceof Date&&!isNaN(Q)}},9449:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.verifyChecksum=function(i,t){if(i.length!==t.length)return!1;if(i.length===0)return!0;for(var s=0;s{Object.defineProperty(a,"__esModule",{value:!0}),a.best_r=function(c){for(var u,h,b=new s.default(c),p=[[new s.default(0),new s.default(1)],[new s.default(1),new s.default(0)]],k=2;!b.gt(e);){u=b.integerValue(s.default.ROUND_FLOOR),h=b.minus(u);var d=u.times(p[k-1][0]).plus(p[k-2][0]),w=u.times(p[k-1][1]).plus(p[k-2][1]);if(d.gt(e)||w.gt(e)||(p.push([d,w]),h.eq(0)))break;b=new s.default(1).div(h),k+=1}var y=function(E,S){return function(C){if(Array.isArray(C))return C}(E)||function(C,T){var R=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(R!=null){var W,j,L,Q,U=[],Z=!0,se=!1;try{if(L=(R=R.call(C)).next,T===0){if(Object(R)!==R)return;Z=!1}else for(;!(Z=(W=L.call(R)).done)&&(U.push(W.value),U.length!==T);Z=!0);}catch(te){se=!0,j=te}finally{try{if(!Z&&R.return!=null&&(Q=R.return(),Object(Q)!==Q))return}finally{if(se)throw j}}return U}}(E,S)||function(C,T){if(C){if(typeof C=="string")return o(C,T);var R=Object.prototype.toString.call(C).slice(8,-1);if(R==="Object"&&C.constructor&&(R=C.constructor.name),R==="Map"||R==="Set")return Array.from(C);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(C,T)}}(E,S)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(p[p.length-1],2),_=y[0],x=y[1];if(_.isZero()||x.isZero())throw new Error("Couldn't find approximation");return[_.toNumber(),x.toNumber()]};var t,s=(t=i(4431))&&t.__esModule?t:{default:t};function o(c,u){(u==null||u>c.length)&&(u=c.length);for(var h=0,b=new Array(u);h{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.decodeAddressToMuxedAccount=c,a.encodeMuxedAccount=function(h,b){if(!e.StrKey.isValidEd25519PublicKey(h))throw new Error("address should be a Stellar account ID (G...)");if(typeof b!="string")throw new Error("id should be a string representing a number (uint64)");return o.default.MuxedAccount.keyTypeMuxedEd25519(new o.default.MuxedAccountMed25519({id:o.default.Uint64.fromString(b),ed25519:e.StrKey.decodeEd25519PublicKey(h)}))},a.encodeMuxedAccountToAddress=u,a.extractBaseAddress=function(h){if(e.StrKey.isValidEd25519PublicKey(h))return h;if(!e.StrKey.isValidMed25519PublicKey(h))throw new TypeError("expected muxed account (M...), got ".concat(h));var b=c(h);return e.StrKey.encodeEd25519PublicKey(b.med25519().ed25519())};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(8385);function c(h){return e.StrKey.isValidMed25519PublicKey(h)?function(b){var p=e.StrKey.decodeMed25519PublicKey(b);return o.default.MuxedAccount.keyTypeMuxedEd25519(new o.default.MuxedAccountMed25519({id:o.default.Uint64.fromXDR(p.subarray(-8)),ed25519:p.subarray(0,-8)}))}(h):o.default.MuxedAccount.keyTypeEd25519(e.StrKey.decodeEd25519PublicKey(h))}function u(h){return h.switch().value===o.default.CryptoKeyType.keyTypeMuxedEd25519().value?function(b){if(b.switch()===o.default.CryptoKeyType.keyTypeEd25519())return u(b);var p=b.med25519();return e.StrKey.encodeMed25519PublicKey(t.concat([p.ed25519(),p.id().toXDR("raw")]))}(h):e.StrKey.encodeEd25519PublicKey(h.ed25519())}},6006:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trimEnd=void 0,a.trimEnd=function(i,t){for(var s=typeof i=="number",o=String(i);o.endsWith(t);)o=o.slice(0,-1);return s?Number(o):o}},4081:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t,s=(t=i(7701))&&t.__esModule?t:{default:t};a.default=s.default},7586:(f,a,i)=>{(function(t){var s=function(me){var we,xe=new Float64Array(16);if(me)for(we=0;we>24&255,me[we+1]=xe>>16&255,me[we+2]=xe>>8&255,me[we+3]=255&xe,me[we+4]=V>>24&255,me[we+5]=V>>16&255,me[we+6]=V>>8&255,me[we+7]=255&V}function x(me,we,xe,V,Y){var ke,$e=0;for(ke=0;ke>>8)-1}function E(me,we,xe,V){return x(me,we,xe,V,16)}function S(me,we,xe,V){return x(me,we,xe,V,32)}function C(me,we,xe,V){(function(Y,ke,$e,ze){for(var je,ut=255&ze[0]|(255&ze[1])<<8|(255&ze[2])<<16|(255&ze[3])<<24,nt=255&$e[0]|(255&$e[1])<<8|(255&$e[2])<<16|(255&$e[3])<<24,at=255&$e[4]|(255&$e[5])<<8|(255&$e[6])<<16|(255&$e[7])<<24,It=255&$e[8]|(255&$e[9])<<8|(255&$e[10])<<16|(255&$e[11])<<24,Nt=255&$e[12]|(255&$e[13])<<8|(255&$e[14])<<16|(255&$e[15])<<24,Rt=255&ze[4]|(255&ze[5])<<8|(255&ze[6])<<16|(255&ze[7])<<24,Gt=255&ke[0]|(255&ke[1])<<8|(255&ke[2])<<16|(255&ke[3])<<24,Jt=255&ke[4]|(255&ke[5])<<8|(255&ke[6])<<16|(255&ke[7])<<24,Ht=255&ke[8]|(255&ke[9])<<8|(255&ke[10])<<16|(255&ke[11])<<24,Zt=255&ke[12]|(255&ke[13])<<8|(255&ke[14])<<16|(255&ke[15])<<24,Vt=255&ze[8]|(255&ze[9])<<8|(255&ze[10])<<16|(255&ze[11])<<24,Ut=255&$e[16]|(255&$e[17])<<8|(255&$e[18])<<16|(255&$e[19])<<24,Qt=255&$e[20]|(255&$e[21])<<8|(255&$e[22])<<16|(255&$e[23])<<24,en=255&$e[24]|(255&$e[25])<<8|(255&$e[26])<<16|(255&$e[27])<<24,Wt=255&$e[28]|(255&$e[29])<<8|(255&$e[30])<<16|(255&$e[31])<<24,mt=255&ze[12]|(255&ze[13])<<8|(255&ze[14])<<16|(255&ze[15])<<24,St=ut,Bt=nt,Tt=at,Ot=It,kt=Nt,ln=Rt,ce=Gt,Ce=Jt,Ve=Ht,Qe=Zt,Je=Vt,Ye=Ut,Ze=Qt,yt=en,wt=Wt,ht=mt,ct=0;ct<20;ct+=2)St^=(je=(Ze^=(je=(Ve^=(je=(kt^=(je=St+Ze|0)<<7|je>>>25)+St|0)<<9|je>>>23)+kt|0)<<13|je>>>19)+Ve|0)<<18|je>>>14,ln^=(je=(Bt^=(je=(yt^=(je=(Qe^=(je=ln+Bt|0)<<7|je>>>25)+ln|0)<<9|je>>>23)+Qe|0)<<13|je>>>19)+yt|0)<<18|je>>>14,Je^=(je=(ce^=(je=(Tt^=(je=(wt^=(je=Je+ce|0)<<7|je>>>25)+Je|0)<<9|je>>>23)+wt|0)<<13|je>>>19)+Tt|0)<<18|je>>>14,ht^=(je=(Ye^=(je=(Ce^=(je=(Ot^=(je=ht+Ye|0)<<7|je>>>25)+ht|0)<<9|je>>>23)+Ot|0)<<13|je>>>19)+Ce|0)<<18|je>>>14,St^=(je=(Ot^=(je=(Tt^=(je=(Bt^=(je=St+Ot|0)<<7|je>>>25)+St|0)<<9|je>>>23)+Bt|0)<<13|je>>>19)+Tt|0)<<18|je>>>14,ln^=(je=(kt^=(je=(Ce^=(je=(ce^=(je=ln+kt|0)<<7|je>>>25)+ln|0)<<9|je>>>23)+ce|0)<<13|je>>>19)+Ce|0)<<18|je>>>14,Je^=(je=(Qe^=(je=(Ve^=(je=(Ye^=(je=Je+Qe|0)<<7|je>>>25)+Je|0)<<9|je>>>23)+Ye|0)<<13|je>>>19)+Ve|0)<<18|je>>>14,ht^=(je=(wt^=(je=(yt^=(je=(Ze^=(je=ht+wt|0)<<7|je>>>25)+ht|0)<<9|je>>>23)+Ze|0)<<13|je>>>19)+yt|0)<<18|je>>>14;St=St+ut|0,Bt=Bt+nt|0,Tt=Tt+at|0,Ot=Ot+It|0,kt=kt+Nt|0,ln=ln+Rt|0,ce=ce+Gt|0,Ce=Ce+Jt|0,Ve=Ve+Ht|0,Qe=Qe+Zt|0,Je=Je+Vt|0,Ye=Ye+Ut|0,Ze=Ze+Qt|0,yt=yt+en|0,wt=wt+Wt|0,ht=ht+mt|0,Y[0]=St>>>0&255,Y[1]=St>>>8&255,Y[2]=St>>>16&255,Y[3]=St>>>24&255,Y[4]=Bt>>>0&255,Y[5]=Bt>>>8&255,Y[6]=Bt>>>16&255,Y[7]=Bt>>>24&255,Y[8]=Tt>>>0&255,Y[9]=Tt>>>8&255,Y[10]=Tt>>>16&255,Y[11]=Tt>>>24&255,Y[12]=Ot>>>0&255,Y[13]=Ot>>>8&255,Y[14]=Ot>>>16&255,Y[15]=Ot>>>24&255,Y[16]=kt>>>0&255,Y[17]=kt>>>8&255,Y[18]=kt>>>16&255,Y[19]=kt>>>24&255,Y[20]=ln>>>0&255,Y[21]=ln>>>8&255,Y[22]=ln>>>16&255,Y[23]=ln>>>24&255,Y[24]=ce>>>0&255,Y[25]=ce>>>8&255,Y[26]=ce>>>16&255,Y[27]=ce>>>24&255,Y[28]=Ce>>>0&255,Y[29]=Ce>>>8&255,Y[30]=Ce>>>16&255,Y[31]=Ce>>>24&255,Y[32]=Ve>>>0&255,Y[33]=Ve>>>8&255,Y[34]=Ve>>>16&255,Y[35]=Ve>>>24&255,Y[36]=Qe>>>0&255,Y[37]=Qe>>>8&255,Y[38]=Qe>>>16&255,Y[39]=Qe>>>24&255,Y[40]=Je>>>0&255,Y[41]=Je>>>8&255,Y[42]=Je>>>16&255,Y[43]=Je>>>24&255,Y[44]=Ye>>>0&255,Y[45]=Ye>>>8&255,Y[46]=Ye>>>16&255,Y[47]=Ye>>>24&255,Y[48]=Ze>>>0&255,Y[49]=Ze>>>8&255,Y[50]=Ze>>>16&255,Y[51]=Ze>>>24&255,Y[52]=yt>>>0&255,Y[53]=yt>>>8&255,Y[54]=yt>>>16&255,Y[55]=yt>>>24&255,Y[56]=wt>>>0&255,Y[57]=wt>>>8&255,Y[58]=wt>>>16&255,Y[59]=wt>>>24&255,Y[60]=ht>>>0&255,Y[61]=ht>>>8&255,Y[62]=ht>>>16&255,Y[63]=ht>>>24&255})(me,we,xe,V)}function T(me,we,xe,V){(function(Y,ke,$e,ze){for(var je,ut=255&ze[0]|(255&ze[1])<<8|(255&ze[2])<<16|(255&ze[3])<<24,nt=255&$e[0]|(255&$e[1])<<8|(255&$e[2])<<16|(255&$e[3])<<24,at=255&$e[4]|(255&$e[5])<<8|(255&$e[6])<<16|(255&$e[7])<<24,It=255&$e[8]|(255&$e[9])<<8|(255&$e[10])<<16|(255&$e[11])<<24,Nt=255&$e[12]|(255&$e[13])<<8|(255&$e[14])<<16|(255&$e[15])<<24,Rt=255&ze[4]|(255&ze[5])<<8|(255&ze[6])<<16|(255&ze[7])<<24,Gt=255&ke[0]|(255&ke[1])<<8|(255&ke[2])<<16|(255&ke[3])<<24,Jt=255&ke[4]|(255&ke[5])<<8|(255&ke[6])<<16|(255&ke[7])<<24,Ht=255&ke[8]|(255&ke[9])<<8|(255&ke[10])<<16|(255&ke[11])<<24,Zt=255&ke[12]|(255&ke[13])<<8|(255&ke[14])<<16|(255&ke[15])<<24,Vt=255&ze[8]|(255&ze[9])<<8|(255&ze[10])<<16|(255&ze[11])<<24,Ut=255&$e[16]|(255&$e[17])<<8|(255&$e[18])<<16|(255&$e[19])<<24,Qt=255&$e[20]|(255&$e[21])<<8|(255&$e[22])<<16|(255&$e[23])<<24,en=255&$e[24]|(255&$e[25])<<8|(255&$e[26])<<16|(255&$e[27])<<24,Wt=255&$e[28]|(255&$e[29])<<8|(255&$e[30])<<16|(255&$e[31])<<24,mt=255&ze[12]|(255&ze[13])<<8|(255&ze[14])<<16|(255&ze[15])<<24,St=0;St<20;St+=2)ut^=(je=(Qt^=(je=(Ht^=(je=(Nt^=(je=ut+Qt|0)<<7|je>>>25)+ut|0)<<9|je>>>23)+Nt|0)<<13|je>>>19)+Ht|0)<<18|je>>>14,Rt^=(je=(nt^=(je=(en^=(je=(Zt^=(je=Rt+nt|0)<<7|je>>>25)+Rt|0)<<9|je>>>23)+Zt|0)<<13|je>>>19)+en|0)<<18|je>>>14,Vt^=(je=(Gt^=(je=(at^=(je=(Wt^=(je=Vt+Gt|0)<<7|je>>>25)+Vt|0)<<9|je>>>23)+Wt|0)<<13|je>>>19)+at|0)<<18|je>>>14,mt^=(je=(Ut^=(je=(Jt^=(je=(It^=(je=mt+Ut|0)<<7|je>>>25)+mt|0)<<9|je>>>23)+It|0)<<13|je>>>19)+Jt|0)<<18|je>>>14,ut^=(je=(It^=(je=(at^=(je=(nt^=(je=ut+It|0)<<7|je>>>25)+ut|0)<<9|je>>>23)+nt|0)<<13|je>>>19)+at|0)<<18|je>>>14,Rt^=(je=(Nt^=(je=(Jt^=(je=(Gt^=(je=Rt+Nt|0)<<7|je>>>25)+Rt|0)<<9|je>>>23)+Gt|0)<<13|je>>>19)+Jt|0)<<18|je>>>14,Vt^=(je=(Zt^=(je=(Ht^=(je=(Ut^=(je=Vt+Zt|0)<<7|je>>>25)+Vt|0)<<9|je>>>23)+Ut|0)<<13|je>>>19)+Ht|0)<<18|je>>>14,mt^=(je=(Wt^=(je=(en^=(je=(Qt^=(je=mt+Wt|0)<<7|je>>>25)+mt|0)<<9|je>>>23)+Qt|0)<<13|je>>>19)+en|0)<<18|je>>>14;Y[0]=ut>>>0&255,Y[1]=ut>>>8&255,Y[2]=ut>>>16&255,Y[3]=ut>>>24&255,Y[4]=Rt>>>0&255,Y[5]=Rt>>>8&255,Y[6]=Rt>>>16&255,Y[7]=Rt>>>24&255,Y[8]=Vt>>>0&255,Y[9]=Vt>>>8&255,Y[10]=Vt>>>16&255,Y[11]=Vt>>>24&255,Y[12]=mt>>>0&255,Y[13]=mt>>>8&255,Y[14]=mt>>>16&255,Y[15]=mt>>>24&255,Y[16]=Gt>>>0&255,Y[17]=Gt>>>8&255,Y[18]=Gt>>>16&255,Y[19]=Gt>>>24&255,Y[20]=Jt>>>0&255,Y[21]=Jt>>>8&255,Y[22]=Jt>>>16&255,Y[23]=Jt>>>24&255,Y[24]=Ht>>>0&255,Y[25]=Ht>>>8&255,Y[26]=Ht>>>16&255,Y[27]=Ht>>>24&255,Y[28]=Zt>>>0&255,Y[29]=Zt>>>8&255,Y[30]=Zt>>>16&255,Y[31]=Zt>>>24&255})(me,we,xe,V)}var R=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function W(me,we,xe,V,Y,ke,$e){var ze,je,ut=new Uint8Array(16),nt=new Uint8Array(64);for(je=0;je<16;je++)ut[je]=0;for(je=0;je<8;je++)ut[je]=ke[je];for(;Y>=64;){for(C(nt,ut,$e,R),je=0;je<64;je++)me[we+je]=xe[V+je]^nt[je];for(ze=1,je=8;je<16;je++)ze=ze+(255&ut[je])|0,ut[je]=255&ze,ze>>>=8;Y-=64,we+=64,V+=64}if(Y>0)for(C(nt,ut,$e,R),je=0;je=64;){for(C(je,ze,Y,R),$e=0;$e<64;$e++)me[we+$e]=je[$e];for(ke=1,$e=8;$e<16;$e++)ke=ke+(255&ze[$e])|0,ze[$e]=255&ke,ke>>>=8;xe-=64,we+=64}if(xe>0)for(C(je,ze,Y,R),$e=0;$e>>13|xe<<3),V=255&me[4]|(255&me[5])<<8,this.r[2]=7939&(xe>>>10|V<<6),Y=255&me[6]|(255&me[7])<<8,this.r[3]=8191&(V>>>7|Y<<9),ke=255&me[8]|(255&me[9])<<8,this.r[4]=255&(Y>>>4|ke<<12),this.r[5]=ke>>>1&8190,$e=255&me[10]|(255&me[11])<<8,this.r[6]=8191&(ke>>>14|$e<<2),ze=255&me[12]|(255&me[13])<<8,this.r[7]=8065&($e>>>11|ze<<5),je=255&me[14]|(255&me[15])<<8,this.r[8]=8191&(ze>>>8|je<<8),this.r[9]=je>>>5&127,this.pad[0]=255&me[16]|(255&me[17])<<8,this.pad[1]=255&me[18]|(255&me[19])<<8,this.pad[2]=255&me[20]|(255&me[21])<<8,this.pad[3]=255&me[22]|(255&me[23])<<8,this.pad[4]=255&me[24]|(255&me[25])<<8,this.pad[5]=255&me[26]|(255&me[27])<<8,this.pad[6]=255&me[28]|(255&me[29])<<8,this.pad[7]=255&me[30]|(255&me[31])<<8};function Z(me,we,xe,V,Y,ke){var $e=new U(ke);return $e.update(xe,V,Y),$e.finish(me,we),0}function se(me,we,xe,V,Y,ke){var $e=new Uint8Array(16);return Z($e,0,xe,V,Y,ke),E(me,we,$e,0)}function te(me,we,xe,V,Y){var ke;if(xe<32)return-1;for(Q(me,0,we,0,xe,V,Y),Z(me,16,me,32,xe-32,me),ke=0;ke<16;ke++)me[ke]=0;return 0}function $(me,we,xe,V,Y){var ke,$e=new Uint8Array(32);if(xe<32||(L($e,0,32,V,Y),se(we,16,we,32,xe-32,$e)!==0))return-1;for(Q(me,0,we,0,xe,V,Y),ke=0;ke<32;ke++)me[ke]=0;return 0}function P(me,we){var xe;for(xe=0;xe<16;xe++)me[xe]=0|we[xe]}function A(me){var we,xe,V=1;for(we=0;we<16;we++)xe=me[we]+V+65535,V=Math.floor(xe/65536),me[we]=xe-65536*V;me[0]+=V-1+37*(V-1)}function O(me,we,xe){for(var V,Y=~(xe-1),ke=0;ke<16;ke++)V=Y&(me[ke]^we[ke]),me[ke]^=V,we[ke]^=V}function z(me,we){var xe,V,Y,ke=s(),$e=s();for(xe=0;xe<16;xe++)$e[xe]=we[xe];for(A($e),A($e),A($e),V=0;V<2;V++){for(ke[0]=$e[0]-65517,xe=1;xe<15;xe++)ke[xe]=$e[xe]-65535-(ke[xe-1]>>16&1),ke[xe-1]&=65535;ke[15]=$e[15]-32767-(ke[14]>>16&1),Y=ke[15]>>16&1,ke[14]&=65535,O($e,ke,1-Y)}for(xe=0;xe<16;xe++)me[2*xe]=255&$e[xe],me[2*xe+1]=$e[xe]>>8}function G(me,we){var xe=new Uint8Array(32),V=new Uint8Array(32);return z(xe,me),z(V,we),S(xe,0,V,0)}function re(me){var we=new Uint8Array(32);return z(we,me),1&we[0]}function X(me,we){var xe;for(xe=0;xe<16;xe++)me[xe]=we[2*xe]+(we[2*xe+1]<<8);me[15]&=32767}function be(me,we,xe){for(var V=0;V<16;V++)me[V]=we[V]+xe[V]}function Be(me,we,xe){for(var V=0;V<16;V++)me[V]=we[V]-xe[V]}function ve(me,we,xe){var V,Y,ke=0,$e=0,ze=0,je=0,ut=0,nt=0,at=0,It=0,Nt=0,Rt=0,Gt=0,Jt=0,Ht=0,Zt=0,Vt=0,Ut=0,Qt=0,en=0,Wt=0,mt=0,St=0,Bt=0,Tt=0,Ot=0,kt=0,ln=0,ce=0,Ce=0,Ve=0,Qe=0,Je=0,Ye=xe[0],Ze=xe[1],yt=xe[2],wt=xe[3],ht=xe[4],ct=xe[5],Mt=xe[6],jt=xe[7],zt=xe[8],Dt=xe[9],tn=xe[10],an=xe[11],fn=xe[12],wn=xe[13],bn=xe[14],En=xe[15];ke+=(V=we[0])*Ye,$e+=V*Ze,ze+=V*yt,je+=V*wt,ut+=V*ht,nt+=V*ct,at+=V*Mt,It+=V*jt,Nt+=V*zt,Rt+=V*Dt,Gt+=V*tn,Jt+=V*an,Ht+=V*fn,Zt+=V*wn,Vt+=V*bn,Ut+=V*En,$e+=(V=we[1])*Ye,ze+=V*Ze,je+=V*yt,ut+=V*wt,nt+=V*ht,at+=V*ct,It+=V*Mt,Nt+=V*jt,Rt+=V*zt,Gt+=V*Dt,Jt+=V*tn,Ht+=V*an,Zt+=V*fn,Vt+=V*wn,Ut+=V*bn,Qt+=V*En,ze+=(V=we[2])*Ye,je+=V*Ze,ut+=V*yt,nt+=V*wt,at+=V*ht,It+=V*ct,Nt+=V*Mt,Rt+=V*jt,Gt+=V*zt,Jt+=V*Dt,Ht+=V*tn,Zt+=V*an,Vt+=V*fn,Ut+=V*wn,Qt+=V*bn,en+=V*En,je+=(V=we[3])*Ye,ut+=V*Ze,nt+=V*yt,at+=V*wt,It+=V*ht,Nt+=V*ct,Rt+=V*Mt,Gt+=V*jt,Jt+=V*zt,Ht+=V*Dt,Zt+=V*tn,Vt+=V*an,Ut+=V*fn,Qt+=V*wn,en+=V*bn,Wt+=V*En,ut+=(V=we[4])*Ye,nt+=V*Ze,at+=V*yt,It+=V*wt,Nt+=V*ht,Rt+=V*ct,Gt+=V*Mt,Jt+=V*jt,Ht+=V*zt,Zt+=V*Dt,Vt+=V*tn,Ut+=V*an,Qt+=V*fn,en+=V*wn,Wt+=V*bn,mt+=V*En,nt+=(V=we[5])*Ye,at+=V*Ze,It+=V*yt,Nt+=V*wt,Rt+=V*ht,Gt+=V*ct,Jt+=V*Mt,Ht+=V*jt,Zt+=V*zt,Vt+=V*Dt,Ut+=V*tn,Qt+=V*an,en+=V*fn,Wt+=V*wn,mt+=V*bn,St+=V*En,at+=(V=we[6])*Ye,It+=V*Ze,Nt+=V*yt,Rt+=V*wt,Gt+=V*ht,Jt+=V*ct,Ht+=V*Mt,Zt+=V*jt,Vt+=V*zt,Ut+=V*Dt,Qt+=V*tn,en+=V*an,Wt+=V*fn,mt+=V*wn,St+=V*bn,Bt+=V*En,It+=(V=we[7])*Ye,Nt+=V*Ze,Rt+=V*yt,Gt+=V*wt,Jt+=V*ht,Ht+=V*ct,Zt+=V*Mt,Vt+=V*jt,Ut+=V*zt,Qt+=V*Dt,en+=V*tn,Wt+=V*an,mt+=V*fn,St+=V*wn,Bt+=V*bn,Tt+=V*En,Nt+=(V=we[8])*Ye,Rt+=V*Ze,Gt+=V*yt,Jt+=V*wt,Ht+=V*ht,Zt+=V*ct,Vt+=V*Mt,Ut+=V*jt,Qt+=V*zt,en+=V*Dt,Wt+=V*tn,mt+=V*an,St+=V*fn,Bt+=V*wn,Tt+=V*bn,Ot+=V*En,Rt+=(V=we[9])*Ye,Gt+=V*Ze,Jt+=V*yt,Ht+=V*wt,Zt+=V*ht,Vt+=V*ct,Ut+=V*Mt,Qt+=V*jt,en+=V*zt,Wt+=V*Dt,mt+=V*tn,St+=V*an,Bt+=V*fn,Tt+=V*wn,Ot+=V*bn,kt+=V*En,Gt+=(V=we[10])*Ye,Jt+=V*Ze,Ht+=V*yt,Zt+=V*wt,Vt+=V*ht,Ut+=V*ct,Qt+=V*Mt,en+=V*jt,Wt+=V*zt,mt+=V*Dt,St+=V*tn,Bt+=V*an,Tt+=V*fn,Ot+=V*wn,kt+=V*bn,ln+=V*En,Jt+=(V=we[11])*Ye,Ht+=V*Ze,Zt+=V*yt,Vt+=V*wt,Ut+=V*ht,Qt+=V*ct,en+=V*Mt,Wt+=V*jt,mt+=V*zt,St+=V*Dt,Bt+=V*tn,Tt+=V*an,Ot+=V*fn,kt+=V*wn,ln+=V*bn,ce+=V*En,Ht+=(V=we[12])*Ye,Zt+=V*Ze,Vt+=V*yt,Ut+=V*wt,Qt+=V*ht,en+=V*ct,Wt+=V*Mt,mt+=V*jt,St+=V*zt,Bt+=V*Dt,Tt+=V*tn,Ot+=V*an,kt+=V*fn,ln+=V*wn,ce+=V*bn,Ce+=V*En,Zt+=(V=we[13])*Ye,Vt+=V*Ze,Ut+=V*yt,Qt+=V*wt,en+=V*ht,Wt+=V*ct,mt+=V*Mt,St+=V*jt,Bt+=V*zt,Tt+=V*Dt,Ot+=V*tn,kt+=V*an,ln+=V*fn,ce+=V*wn,Ce+=V*bn,Ve+=V*En,Vt+=(V=we[14])*Ye,Ut+=V*Ze,Qt+=V*yt,en+=V*wt,Wt+=V*ht,mt+=V*ct,St+=V*Mt,Bt+=V*jt,Tt+=V*zt,Ot+=V*Dt,kt+=V*tn,ln+=V*an,ce+=V*fn,Ce+=V*wn,Ve+=V*bn,Qe+=V*En,Ut+=(V=we[15])*Ye,$e+=38*(en+=V*yt),ze+=38*(Wt+=V*wt),je+=38*(mt+=V*ht),ut+=38*(St+=V*ct),nt+=38*(Bt+=V*Mt),at+=38*(Tt+=V*jt),It+=38*(Ot+=V*zt),Nt+=38*(kt+=V*Dt),Rt+=38*(ln+=V*tn),Gt+=38*(ce+=V*an),Jt+=38*(Ce+=V*fn),Ht+=38*(Ve+=V*wn),Zt+=38*(Qe+=V*bn),Vt+=38*(Je+=V*En),ke=(V=(ke+=38*(Qt+=V*Ze))+(Y=1)+65535)-65536*(Y=Math.floor(V/65536)),$e=(V=$e+Y+65535)-65536*(Y=Math.floor(V/65536)),ze=(V=ze+Y+65535)-65536*(Y=Math.floor(V/65536)),je=(V=je+Y+65535)-65536*(Y=Math.floor(V/65536)),ut=(V=ut+Y+65535)-65536*(Y=Math.floor(V/65536)),nt=(V=nt+Y+65535)-65536*(Y=Math.floor(V/65536)),at=(V=at+Y+65535)-65536*(Y=Math.floor(V/65536)),It=(V=It+Y+65535)-65536*(Y=Math.floor(V/65536)),Nt=(V=Nt+Y+65535)-65536*(Y=Math.floor(V/65536)),Rt=(V=Rt+Y+65535)-65536*(Y=Math.floor(V/65536)),Gt=(V=Gt+Y+65535)-65536*(Y=Math.floor(V/65536)),Jt=(V=Jt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ht=(V=Ht+Y+65535)-65536*(Y=Math.floor(V/65536)),Zt=(V=Zt+Y+65535)-65536*(Y=Math.floor(V/65536)),Vt=(V=Vt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ut=(V=Ut+Y+65535)-65536*(Y=Math.floor(V/65536)),ke=(V=(ke+=Y-1+37*(Y-1))+(Y=1)+65535)-65536*(Y=Math.floor(V/65536)),$e=(V=$e+Y+65535)-65536*(Y=Math.floor(V/65536)),ze=(V=ze+Y+65535)-65536*(Y=Math.floor(V/65536)),je=(V=je+Y+65535)-65536*(Y=Math.floor(V/65536)),ut=(V=ut+Y+65535)-65536*(Y=Math.floor(V/65536)),nt=(V=nt+Y+65535)-65536*(Y=Math.floor(V/65536)),at=(V=at+Y+65535)-65536*(Y=Math.floor(V/65536)),It=(V=It+Y+65535)-65536*(Y=Math.floor(V/65536)),Nt=(V=Nt+Y+65535)-65536*(Y=Math.floor(V/65536)),Rt=(V=Rt+Y+65535)-65536*(Y=Math.floor(V/65536)),Gt=(V=Gt+Y+65535)-65536*(Y=Math.floor(V/65536)),Jt=(V=Jt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ht=(V=Ht+Y+65535)-65536*(Y=Math.floor(V/65536)),Zt=(V=Zt+Y+65535)-65536*(Y=Math.floor(V/65536)),Vt=(V=Vt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ut=(V=Ut+Y+65535)-65536*(Y=Math.floor(V/65536)),ke+=Y-1+37*(Y-1),me[0]=ke,me[1]=$e,me[2]=ze,me[3]=je,me[4]=ut,me[5]=nt,me[6]=at,me[7]=It,me[8]=Nt,me[9]=Rt,me[10]=Gt,me[11]=Jt,me[12]=Ht,me[13]=Zt,me[14]=Vt,me[15]=Ut}function he(me,we){ve(me,we,we)}function le(me,we){var xe,V=s();for(xe=0;xe<16;xe++)V[xe]=we[xe];for(xe=253;xe>=0;xe--)he(V,V),xe!==2&&xe!==4&&ve(V,V,we);for(xe=0;xe<16;xe++)me[xe]=V[xe]}function ge(me,we){var xe,V=s();for(xe=0;xe<16;xe++)V[xe]=we[xe];for(xe=250;xe>=0;xe--)he(V,V),xe!==1&&ve(V,V,we);for(xe=0;xe<16;xe++)me[xe]=V[xe]}function Ne(me,we,xe){var V,Y,ke=new Uint8Array(32),$e=new Float64Array(80),ze=s(),je=s(),ut=s(),nt=s(),at=s(),It=s();for(Y=0;Y<31;Y++)ke[Y]=we[Y];for(ke[31]=127&we[31]|64,ke[0]&=248,X($e,xe),Y=0;Y<16;Y++)je[Y]=$e[Y],nt[Y]=ze[Y]=ut[Y]=0;for(ze[0]=nt[0]=1,Y=254;Y>=0;--Y)O(ze,je,V=ke[Y>>>3]>>>(7&Y)&1),O(ut,nt,V),be(at,ze,ut),Be(ze,ze,ut),be(ut,je,nt),Be(je,je,nt),he(nt,at),he(It,ze),ve(ze,ut,ze),ve(ut,je,at),be(at,ze,ut),Be(ze,ze,ut),he(je,ze),Be(ut,nt,It),ve(ze,ut,b),be(ze,ze,nt),ve(ut,ut,ze),ve(ze,nt,It),ve(nt,je,$e),he(je,at),O(ze,je,V),O(ut,nt,V);for(Y=0;Y<16;Y++)$e[Y+16]=ze[Y],$e[Y+32]=ut[Y],$e[Y+48]=je[Y],$e[Y+64]=nt[Y];var Nt=$e.subarray(32),Rt=$e.subarray(16);return le(Nt,Nt),ve(Rt,Rt,Nt),z(me,Rt),0}function Ue(me,we){return Ne(me,we,c)}function Le(me,we){return o(we,32),Ue(me,we)}function De(me,we,xe){var V=new Uint8Array(32);return Ne(V,xe,we),T(me,e,V,R)}U.prototype.blocks=function(me,we,xe){for(var V,Y,ke,$e,ze,je,ut,nt,at,It,Nt,Rt,Gt,Jt,Ht,Zt,Vt,Ut,Qt,en=this.fin?0:2048,Wt=this.h[0],mt=this.h[1],St=this.h[2],Bt=this.h[3],Tt=this.h[4],Ot=this.h[5],kt=this.h[6],ln=this.h[7],ce=this.h[8],Ce=this.h[9],Ve=this.r[0],Qe=this.r[1],Je=this.r[2],Ye=this.r[3],Ze=this.r[4],yt=this.r[5],wt=this.r[6],ht=this.r[7],ct=this.r[8],Mt=this.r[9];xe>=16;)It=at=0,It+=(Wt+=8191&(V=255&me[we+0]|(255&me[we+1])<<8))*Ve,It+=(mt+=8191&(V>>>13|(Y=255&me[we+2]|(255&me[we+3])<<8)<<3))*(5*Mt),It+=(St+=8191&(Y>>>10|(ke=255&me[we+4]|(255&me[we+5])<<8)<<6))*(5*ct),It+=(Bt+=8191&(ke>>>7|($e=255&me[we+6]|(255&me[we+7])<<8)<<9))*(5*ht),at=(It+=(Tt+=8191&($e>>>4|(ze=255&me[we+8]|(255&me[we+9])<<8)<<12))*(5*wt))>>>13,It&=8191,It+=(Ot+=ze>>>1&8191)*(5*yt),It+=(kt+=8191&(ze>>>14|(je=255&me[we+10]|(255&me[we+11])<<8)<<2))*(5*Ze),It+=(ln+=8191&(je>>>11|(ut=255&me[we+12]|(255&me[we+13])<<8)<<5))*(5*Ye),It+=(ce+=8191&(ut>>>8|(nt=255&me[we+14]|(255&me[we+15])<<8)<<8))*(5*Je),Nt=at+=(It+=(Ce+=nt>>>5|en)*(5*Qe))>>>13,Nt+=Wt*Qe,Nt+=mt*Ve,Nt+=St*(5*Mt),Nt+=Bt*(5*ct),at=(Nt+=Tt*(5*ht))>>>13,Nt&=8191,Nt+=Ot*(5*wt),Nt+=kt*(5*yt),Nt+=ln*(5*Ze),Nt+=ce*(5*Ye),at+=(Nt+=Ce*(5*Je))>>>13,Nt&=8191,Rt=at,Rt+=Wt*Je,Rt+=mt*Qe,Rt+=St*Ve,Rt+=Bt*(5*Mt),at=(Rt+=Tt*(5*ct))>>>13,Rt&=8191,Rt+=Ot*(5*ht),Rt+=kt*(5*wt),Rt+=ln*(5*yt),Rt+=ce*(5*Ze),Gt=at+=(Rt+=Ce*(5*Ye))>>>13,Gt+=Wt*Ye,Gt+=mt*Je,Gt+=St*Qe,Gt+=Bt*Ve,at=(Gt+=Tt*(5*Mt))>>>13,Gt&=8191,Gt+=Ot*(5*ct),Gt+=kt*(5*ht),Gt+=ln*(5*wt),Gt+=ce*(5*yt),Jt=at+=(Gt+=Ce*(5*Ze))>>>13,Jt+=Wt*Ze,Jt+=mt*Ye,Jt+=St*Je,Jt+=Bt*Qe,at=(Jt+=Tt*Ve)>>>13,Jt&=8191,Jt+=Ot*(5*Mt),Jt+=kt*(5*ct),Jt+=ln*(5*ht),Jt+=ce*(5*wt),Ht=at+=(Jt+=Ce*(5*yt))>>>13,Ht+=Wt*yt,Ht+=mt*Ze,Ht+=St*Ye,Ht+=Bt*Je,at=(Ht+=Tt*Qe)>>>13,Ht&=8191,Ht+=Ot*Ve,Ht+=kt*(5*Mt),Ht+=ln*(5*ct),Ht+=ce*(5*ht),Zt=at+=(Ht+=Ce*(5*wt))>>>13,Zt+=Wt*wt,Zt+=mt*yt,Zt+=St*Ze,Zt+=Bt*Ye,at=(Zt+=Tt*Je)>>>13,Zt&=8191,Zt+=Ot*Qe,Zt+=kt*Ve,Zt+=ln*(5*Mt),Zt+=ce*(5*ct),Vt=at+=(Zt+=Ce*(5*ht))>>>13,Vt+=Wt*ht,Vt+=mt*wt,Vt+=St*yt,Vt+=Bt*Ze,at=(Vt+=Tt*Ye)>>>13,Vt&=8191,Vt+=Ot*Je,Vt+=kt*Qe,Vt+=ln*Ve,Vt+=ce*(5*Mt),Ut=at+=(Vt+=Ce*(5*ct))>>>13,Ut+=Wt*ct,Ut+=mt*ht,Ut+=St*wt,Ut+=Bt*yt,at=(Ut+=Tt*Ze)>>>13,Ut&=8191,Ut+=Ot*Ye,Ut+=kt*Je,Ut+=ln*Qe,Ut+=ce*Ve,Qt=at+=(Ut+=Ce*(5*Mt))>>>13,Qt+=Wt*Mt,Qt+=mt*ct,Qt+=St*ht,Qt+=Bt*wt,at=(Qt+=Tt*yt)>>>13,Qt&=8191,Qt+=Ot*Ze,Qt+=kt*Ye,Qt+=ln*Je,Qt+=ce*Qe,Wt=It=8191&(at=(at=((at+=(Qt+=Ce*Ve)>>>13)<<2)+at|0)+(It&=8191)|0),mt=Nt+=at>>>=13,St=Rt&=8191,Bt=Gt&=8191,Tt=Jt&=8191,Ot=Ht&=8191,kt=Zt&=8191,ln=Vt&=8191,ce=Ut&=8191,Ce=Qt&=8191,we+=16,xe-=16;this.h[0]=Wt,this.h[1]=mt,this.h[2]=St,this.h[3]=Bt,this.h[4]=Tt,this.h[5]=Ot,this.h[6]=kt,this.h[7]=ln,this.h[8]=ce,this.h[9]=Ce},U.prototype.finish=function(me,we){var xe,V,Y,ke,$e=new Uint16Array(10);if(this.leftover){for(ke=this.leftover,this.buffer[ke++]=1;ke<16;ke++)this.buffer[ke]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(xe=this.h[1]>>>13,this.h[1]&=8191,ke=2;ke<10;ke++)this.h[ke]+=xe,xe=this.h[ke]>>>13,this.h[ke]&=8191;for(this.h[0]+=5*xe,xe=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=xe,xe=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=xe,$e[0]=this.h[0]+5,xe=$e[0]>>>13,$e[0]&=8191,ke=1;ke<10;ke++)$e[ke]=this.h[ke]+xe,xe=$e[ke]>>>13,$e[ke]&=8191;for($e[9]-=8192,V=(1^xe)-1,ke=0;ke<10;ke++)$e[ke]&=V;for(V=~V,ke=0;ke<10;ke++)this.h[ke]=this.h[ke]&V|$e[ke];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),Y=this.h[0]+this.pad[0],this.h[0]=65535&Y,ke=1;ke<8;ke++)Y=(this.h[ke]+this.pad[ke]|0)+(Y>>>16)|0,this.h[ke]=65535&Y;me[we+0]=this.h[0]>>>0&255,me[we+1]=this.h[0]>>>8&255,me[we+2]=this.h[1]>>>0&255,me[we+3]=this.h[1]>>>8&255,me[we+4]=this.h[2]>>>0&255,me[we+5]=this.h[2]>>>8&255,me[we+6]=this.h[3]>>>0&255,me[we+7]=this.h[3]>>>8&255,me[we+8]=this.h[4]>>>0&255,me[we+9]=this.h[4]>>>8&255,me[we+10]=this.h[5]>>>0&255,me[we+11]=this.h[5]>>>8&255,me[we+12]=this.h[6]>>>0&255,me[we+13]=this.h[6]>>>8&255,me[we+14]=this.h[7]>>>0&255,me[we+15]=this.h[7]>>>8&255},U.prototype.update=function(me,we,xe){var V,Y;if(this.leftover){for((Y=16-this.leftover)>xe&&(Y=xe),V=0;V=16&&(Y=xe-xe%16,this.blocks(me,we,Y),we+=Y,xe-=Y),xe){for(V=0;V=128;){for(en=0;en<16;en++)Wt=8*en+fn,ln[en]=xe[Wt+0]<<24|xe[Wt+1]<<16|xe[Wt+2]<<8|xe[Wt+3],ce[en]=xe[Wt+4]<<24|xe[Wt+5]<<16|xe[Wt+6]<<8|xe[Wt+7];for(en=0;en<80;en++)if(Y=Ce,ke=Ve,$e=Qe,ze=Je,je=Ye,ut=Ze,nt=yt,It=ht,Nt=ct,Rt=Mt,Gt=jt,Jt=zt,Ht=Dt,Zt=tn,Bt=65535&(St=an),Tt=St>>>16,Ot=65535&(mt=wt),kt=mt>>>16,Bt+=65535&(St=(zt>>>14|Ye<<18)^(zt>>>18|Ye<<14)^(Ye>>>9|zt<<23)),Tt+=St>>>16,Ot+=65535&(mt=(Ye>>>14|zt<<18)^(Ye>>>18|zt<<14)^(zt>>>9|Ye<<23)),kt+=mt>>>16,Bt+=65535&(St=zt&Dt^~zt&tn),Tt+=St>>>16,Ot+=65535&(mt=Ye&Ze^~Ye&yt),kt+=mt>>>16,mt=We[2*en],Bt+=65535&(St=We[2*en+1]),Tt+=St>>>16,Ot+=65535&mt,kt+=mt>>>16,mt=ln[en%16],Tt+=(St=ce[en%16])>>>16,Ot+=65535&mt,kt+=mt>>>16,Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16,Bt=65535&(St=Qt=65535&Bt|Tt<<16),Tt=St>>>16,Ot=65535&(mt=Ut=65535&Ot|(kt+=Ot>>>16)<<16),kt=mt>>>16,Bt+=65535&(St=(ht>>>28|Ce<<4)^(Ce>>>2|ht<<30)^(Ce>>>7|ht<<25)),Tt+=St>>>16,Ot+=65535&(mt=(Ce>>>28|ht<<4)^(ht>>>2|Ce<<30)^(ht>>>7|Ce<<25)),kt+=mt>>>16,Tt+=(St=ht&ct^ht&Mt^ct&Mt)>>>16,Ot+=65535&(mt=Ce&Ve^Ce&Qe^Ve&Qe),kt+=mt>>>16,at=65535&(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)|(kt+=Ot>>>16)<<16,Vt=65535&Bt|Tt<<16,Bt=65535&(St=Gt),Tt=St>>>16,Ot=65535&(mt=ze),kt=mt>>>16,Tt+=(St=Qt)>>>16,Ot+=65535&(mt=Ut),kt+=mt>>>16,Ve=Y,Qe=ke,Je=$e,Ye=ze=65535&(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)|(kt+=Ot>>>16)<<16,Ze=je,yt=ut,wt=nt,Ce=at,ct=It,Mt=Nt,jt=Rt,zt=Gt=65535&Bt|Tt<<16,Dt=Jt,tn=Ht,an=Zt,ht=Vt,en%16==15)for(Wt=0;Wt<16;Wt++)mt=ln[Wt],Bt=65535&(St=ce[Wt]),Tt=St>>>16,Ot=65535&mt,kt=mt>>>16,mt=ln[(Wt+9)%16],Bt+=65535&(St=ce[(Wt+9)%16]),Tt+=St>>>16,Ot+=65535&mt,kt+=mt>>>16,Ut=ln[(Wt+1)%16],Bt+=65535&(St=((Qt=ce[(Wt+1)%16])>>>1|Ut<<31)^(Qt>>>8|Ut<<24)^(Qt>>>7|Ut<<25)),Tt+=St>>>16,Ot+=65535&(mt=(Ut>>>1|Qt<<31)^(Ut>>>8|Qt<<24)^Ut>>>7),kt+=mt>>>16,Ut=ln[(Wt+14)%16],Tt+=(St=((Qt=ce[(Wt+14)%16])>>>19|Ut<<13)^(Ut>>>29|Qt<<3)^(Qt>>>6|Ut<<26))>>>16,Ot+=65535&(mt=(Ut>>>19|Qt<<13)^(Qt>>>29|Ut<<3)^Ut>>>6),kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,ln[Wt]=65535&Ot|kt<<16,ce[Wt]=65535&Bt|Tt<<16;Bt=65535&(St=ht),Tt=St>>>16,Ot=65535&(mt=Ce),kt=mt>>>16,mt=me[0],Tt+=(St=we[0])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[0]=Ce=65535&Ot|kt<<16,we[0]=ht=65535&Bt|Tt<<16,Bt=65535&(St=ct),Tt=St>>>16,Ot=65535&(mt=Ve),kt=mt>>>16,mt=me[1],Tt+=(St=we[1])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[1]=Ve=65535&Ot|kt<<16,we[1]=ct=65535&Bt|Tt<<16,Bt=65535&(St=Mt),Tt=St>>>16,Ot=65535&(mt=Qe),kt=mt>>>16,mt=me[2],Tt+=(St=we[2])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[2]=Qe=65535&Ot|kt<<16,we[2]=Mt=65535&Bt|Tt<<16,Bt=65535&(St=jt),Tt=St>>>16,Ot=65535&(mt=Je),kt=mt>>>16,mt=me[3],Tt+=(St=we[3])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[3]=Je=65535&Ot|kt<<16,we[3]=jt=65535&Bt|Tt<<16,Bt=65535&(St=zt),Tt=St>>>16,Ot=65535&(mt=Ye),kt=mt>>>16,mt=me[4],Tt+=(St=we[4])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[4]=Ye=65535&Ot|kt<<16,we[4]=zt=65535&Bt|Tt<<16,Bt=65535&(St=Dt),Tt=St>>>16,Ot=65535&(mt=Ze),kt=mt>>>16,mt=me[5],Tt+=(St=we[5])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[5]=Ze=65535&Ot|kt<<16,we[5]=Dt=65535&Bt|Tt<<16,Bt=65535&(St=tn),Tt=St>>>16,Ot=65535&(mt=yt),kt=mt>>>16,mt=me[6],Tt+=(St=we[6])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[6]=yt=65535&Ot|kt<<16,we[6]=tn=65535&Bt|Tt<<16,Bt=65535&(St=an),Tt=St>>>16,Ot=65535&(mt=wt),kt=mt>>>16,mt=me[7],Tt+=(St=we[7])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[7]=wt=65535&Ot|kt<<16,we[7]=an=65535&Bt|Tt<<16,fn+=128,V-=128}return V}function Ke(me,we,xe){var V,Y=new Int32Array(8),ke=new Int32Array(8),$e=new Uint8Array(256),ze=xe;for(Y[0]=1779033703,Y[1]=3144134277,Y[2]=1013904242,Y[3]=2773480762,Y[4]=1359893119,Y[5]=2600822924,Y[6]=528734635,Y[7]=1541459225,ke[0]=4089235720,ke[1]=2227873595,ke[2]=4271175723,ke[3]=1595750129,ke[4]=2917565137,ke[5]=725511199,ke[6]=4215389547,ke[7]=327033209,ot(Y,ke,we,xe),xe%=128,V=0;V=0;--Y)H(me,we,V=xe[Y/8|0]>>(7&Y)&1),B(we,me),B(me,me),H(me,we,V)}function ue(me,we){var xe=[s(),s(),s(),s()];P(xe[0],d),P(xe[1],w),P(xe[2],h),ve(xe[3],d,w),J(me,xe,we)}function F(me,we,xe){var V,Y=new Uint8Array(64),ke=[s(),s(),s(),s()];for(xe||o(we,32),Ke(Y,we,32),Y[0]&=248,Y[31]&=127,Y[31]|=64,ue(ke,Y),M(me,ke),V=0;V<32;V++)we[V+32]=me[V];return 0}var N=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function q(me,we){var xe,V,Y,ke;for(V=63;V>=32;--V){for(xe=0,Y=V-32,ke=V-12;Y>4)*N[Y],xe=we[Y]>>8,we[Y]&=255;for(Y=0;Y<32;Y++)we[Y]-=xe*N[Y];for(V=0;V<32;V++)we[V+1]+=we[V]>>8,me[V]=255&we[V]}function I(me){var we,xe=new Float64Array(64);for(we=0;we<64;we++)xe[we]=me[we];for(we=0;we<64;we++)me[we]=0;q(me,xe)}function K(me,we,xe,V){var Y,ke,$e=new Uint8Array(64),ze=new Uint8Array(64),je=new Uint8Array(64),ut=new Float64Array(64),nt=[s(),s(),s(),s()];Ke($e,V,32),$e[0]&=248,$e[31]&=127,$e[31]|=64;var at=xe+64;for(Y=0;Y>7&&Be(ut[0],u,ut[0]),ve(ut[3],ut[0],ut[1]),0)}(je,V))return-1;for(Y=0;Y=0},t.sign.keyPair=function(){var me=new Uint8Array(rt),we=new Uint8Array(lt);return F(me,we),{publicKey:me,secretKey:we}},t.sign.keyPair.fromSecretKey=function(me){if(_t(me),me.length!==lt)throw new Error("bad secret key size");for(var we=new Uint8Array(rt),xe=0;xe{i.r(a),i.d(a,{StellarBase:()=>o,axios:()=>e.Z,default:()=>c});var t=i(8026),s={};for(const u in t)["default","StellarBase","axios"].indexOf(u)<0&&(s[u]=()=>t[u]);i.d(a,s);var o=i(4172),e=i(1257);const c=(f=i.hmd(f)).exports},7939:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}function s(h,b){for(var p=0;pu});var e={allowHttp:!1,timeout:0},c=Object.assign({},e),u=function(){function h(){(function(d,w){if(!(d instanceof w))throw new TypeError("Cannot call a class as a function")})(this,h)}var b,p,k;return b=h,k=[{key:"setAllowHttp",value:function(d){c.allowHttp=d}},{key:"setTimeout",value:function(d){c.timeout=d}},{key:"isAllowHttp",value:function(){return c.allowHttp}},{key:"getTimeout",value:function(){return c.timeout}},{key:"setDefault",value:function(){c=Object.assign({},e)}}],(p=null)&&s(b.prototype,p),k&&s(b,k),Object.defineProperty(b,"prototype",{writable:!1}),h}()},936:(f,a,i)=>{i.d(a,{o:()=>y});var t=i(8026),s=i(8764).Buffer;function o(j,L){var Q=Object.keys(j);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(j);L&&(U=U.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),Q.push.apply(Q,U)}return Q}function e(j){for(var L=1;L=j.length?{done:!0}:{done:!1,value:j[U++]}},e:function(P){throw P},f:Z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se,te=!0,$=!1;return{s:function(){Q=Q.call(j)},n:function(){var P=Q.next();return te=P.done,P},e:function(P){$=!0,se=P},f:function(){try{te||Q.return==null||Q.return()}finally{if($)throw se}}}}function u(j){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},u(j)}function h(j,L){for(var Q=0;Qj.length)&&(L=j.length);for(var Q=0,U=new Array(L);Q1)throw new Error("Multiple outputs not supported");var P=te[0];return P.switch().value===t.xdr.ScSpecType.scSpecTypeResult().value?this.scValToNative(se,P.result().okType()):this.scValToNative(se,P)}},{key:"findEntry",value:function(U){var Z=this.entries.find(function(se){return se.value().name().toString()===U});if(!Z)throw new Error("no such entry: ".concat(U));return Z}},{key:"nativeToScVal",value:function(U,Z){var se=this,te=Z.switch(),$=te.value;if(te.value===t.xdr.ScSpecType.scSpecTypeUdt().value){var P=Z.udt();return this.nativeToUdt(U,P.name().toString())}if($===t.xdr.ScSpecType.scSpecTypeOption().value){var A=Z.option();return U===void 0?t.xdr.ScVal.scvVoid():this.nativeToScVal(U,A.valueType())}switch(u(U)){case"object":var O,z,G;if(U===null){if($===t.xdr.ScSpecType.scSpecTypeVoid().value)return t.xdr.ScVal.scvVoid();throw new TypeError("Type ".concat(Z," was not void, but value was null"))}if(U instanceof t.xdr.ScVal)return U;if(U instanceof t.Address){if(Z.switch().value!==t.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(Z," was not address, but value was Address"));return U.toScVal()}if(U instanceof t.Contract){if(Z.switch().value!==t.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(Z," was not address, but value was Address"));return U.address().toScVal()}if(U instanceof Uint8Array||s.isBuffer(U)){var re=Uint8Array.from(U);switch($){case t.xdr.ScSpecType.scSpecTypeBytesN().value:var X=Z.bytesN();if(re.length!==X.n())throw new TypeError("expected ".concat(X.n()," bytes, but got ").concat(re.length));return t.xdr.ScVal.scvBytes(re);case t.xdr.ScSpecType.scSpecTypeBytes().value:return t.xdr.ScVal.scvBytes(re);default:throw new TypeError("invalid type (".concat(Z,") specified for Bytes and BytesN"))}}if(Array.isArray(U))switch($){case t.xdr.ScSpecType.scSpecTypeVec().value:var be=Z.vec().elementType();return t.xdr.ScVal.scvVec(U.map(function(B){return se.nativeToScVal(B,be)}));case t.xdr.ScSpecType.scSpecTypeTuple().value:var Be=Z.tuple().valueTypes();if(U.length!==Be.length)throw new TypeError("Tuple expects ".concat(Be.length," values, but ").concat(U.length," were provided"));return t.xdr.ScVal.scvVec(U.map(function(B,H){return se.nativeToScVal(B,Be[H])}));case t.xdr.ScSpecType.scSpecTypeMap().value:var ve=Z.map(),he=ve.keyType(),le=ve.valueType();return t.xdr.ScVal.scvMap(U.map(function(B){var H=se.nativeToScVal(B[0],he),M=se.nativeToScVal(B[1],le);return new t.xdr.ScMapEntry({key:H,val:M})}));default:throw new TypeError("Type ".concat(Z," was not vec, but value was Array"))}if(U.constructor===Map){if($!==t.xdr.ScSpecType.scSpecTypeMap().value)throw new TypeError("Type ".concat(Z," was not map, but value was Map"));for(var ge=Z.map(),Ne=[],Ue=U.entries(),Le=Ue.next();!Le.done;){var De=k(Le.value,2),Fe=De[0],Oe=De[1],We=this.nativeToScVal(Fe,ge.keyType()),ot=this.nativeToScVal(Oe,ge.valueType());Ne.push(new t.xdr.ScMapEntry({key:We,val:ot})),Le=Ue.next()}return t.xdr.ScVal.scvMap(Ne)}throw((O=(z=U.constructor)===null||z===void 0?void 0:z.name)!==null&&O!==void 0?O:"")!=="Object"?new TypeError("cannot interpret ".concat((G=U.constructor)===null||G===void 0?void 0:G.name," value as ScVal (").concat(JSON.stringify(U),")")):new TypeError("Received object ".concat(U," did not match the provided type ").concat(Z));case"number":case"bigint":switch($){case t.xdr.ScSpecType.scSpecTypeU32().value:return t.xdr.ScVal.scvU32(U);case t.xdr.ScSpecType.scSpecTypeI32().value:return t.xdr.ScVal.scvI32(U);case t.xdr.ScSpecType.scSpecTypeU64().value:case t.xdr.ScSpecType.scSpecTypeI64().value:case t.xdr.ScSpecType.scSpecTypeU128().value:case t.xdr.ScSpecType.scSpecTypeI128().value:case t.xdr.ScSpecType.scSpecTypeU256().value:case t.xdr.ScSpecType.scSpecTypeI256().value:var Ke=te.name.substring(10).toLowerCase();return new t.XdrLargeInt(Ke,U).toScVal();default:throw new TypeError("invalid type (".concat(Z,") specified for integer"))}case"string":return function(B,H){switch(H.value){case t.xdr.ScSpecType.scSpecTypeString().value:return t.xdr.ScVal.scvString(B);case t.xdr.ScSpecType.scSpecTypeSymbol().value:return t.xdr.ScVal.scvSymbol(B);case t.xdr.ScSpecType.scSpecTypeAddress().value:var M=t.Address.fromString(B);return t.xdr.ScVal.scvAddress(M.toScAddress());case t.xdr.ScSpecType.scSpecTypeU64().value:return new t.XdrLargeInt("u64",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI64().value:return new t.XdrLargeInt("i64",B).toScVal();case t.xdr.ScSpecType.scSpecTypeU128().value:return new t.XdrLargeInt("u128",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI128().value:return new t.XdrLargeInt("i128",B).toScVal();case t.xdr.ScSpecType.scSpecTypeU256().value:return new t.XdrLargeInt("u256",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI256().value:return new t.XdrLargeInt("i256",B).toScVal();case t.xdr.ScSpecType.scSpecTypeBytes().value:case t.xdr.ScSpecType.scSpecTypeBytesN().value:return t.xdr.ScVal.scvBytes(s.from(B,"base64"));default:throw new TypeError("invalid type ".concat(H.name," specified for string value"))}}(U,te);case"boolean":if($!==t.xdr.ScSpecType.scSpecTypeBool().value)throw TypeError("Type ".concat(Z," was not bool, but value was bool"));return t.xdr.ScVal.scvBool(U);case"undefined":if(!Z)return t.xdr.ScVal.scvVoid();switch($){case t.xdr.ScSpecType.scSpecTypeVoid().value:case t.xdr.ScSpecType.scSpecTypeOption().value:return t.xdr.ScVal.scvVoid();default:throw new TypeError("Type ".concat(Z," was not void, but value was undefined"))}case"function":return this.nativeToScVal(U(),Z);default:throw new TypeError("failed to convert typeof ".concat(u(U)," (").concat(U,")"))}}},{key:"nativeToUdt",value:function(U,Z){var se=this.findEntry(Z);switch(se.switch()){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():if(typeof U!="number")throw new TypeError("expected number for enum ".concat(Z,", but got ").concat(u(U)));return this.nativeToEnum(U,se.udtEnumV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.nativeToStruct(U,se.udtStructV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.nativeToUnion(U,se.udtUnionV0());default:throw new Error("failed to parse udt ".concat(Z))}}},{key:"nativeToUnion",value:function(U,Z){var se=this,te=U.tag,$=Z.cases().find(function(z){return z.value().name().toString()===te});if(!$)throw new TypeError("no such enum entry: ".concat(te," in ").concat(Z));var P=t.xdr.ScVal.scvSymbol(te);switch($.switch()){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0():return t.xdr.ScVal.scvVec([P]);case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0():var A=$.tupleCase().type();if(Array.isArray(U.values)){if(U.values.length!=A.length)throw new TypeError("union ".concat(Z," expects ").concat(A.length," values, but got ").concat(U.values.length));var O=U.values.map(function(z,G){return se.nativeToScVal(z,A[G])});return O.unshift(P),t.xdr.ScVal.scvVec(O)}throw new Error("failed to parse union case ".concat($," with ").concat(U));default:throw new Error("failed to parse union ".concat(Z," with ").concat(U))}}},{key:"nativeToStruct",value:function(U,Z){var se=this,te=Z.fields();if(te.some(_)){if(!te.every(_))throw new Error("mixed numeric and non-numeric field names are not allowed");return t.xdr.ScVal.scvVec(te.map(function($,P){return se.nativeToScVal(U[P],te[P].type())}))}return t.xdr.ScVal.scvMap(te.map(function($){var P=$.name().toString();return new t.xdr.ScMapEntry({key:se.nativeToScVal(P,t.xdr.ScSpecTypeDef.scSpecTypeSymbol()),val:se.nativeToScVal(U[P],$.type())})}))}},{key:"nativeToEnum",value:function(U,Z){if(Z.cases().some(function(se){return se.value()===U}))return t.xdr.ScVal.scvU32(U);throw new TypeError("no such enum entry: ".concat(U," in ").concat(Z))}},{key:"scValStrToNative",value:function(U,Z){return this.scValToNative(t.xdr.ScVal.fromXDR(U,"base64"),Z)}},{key:"scValToNative",value:function(U,Z){var se=this,te=Z.switch(),$=te.value;if($===t.xdr.ScSpecType.scSpecTypeUdt().value)return this.scValUdtToNative(U,Z.udt());switch(U.switch().value){case t.xdr.ScValType.scvVoid().value:return;case t.xdr.ScValType.scvU64().value:case t.xdr.ScValType.scvI64().value:case t.xdr.ScValType.scvU128().value:case t.xdr.ScValType.scvI128().value:case t.xdr.ScValType.scvU256().value:case t.xdr.ScValType.scvI256().value:return(0,t.scValToBigInt)(U);case t.xdr.ScValType.scvVec().value:if($==t.xdr.ScSpecType.scSpecTypeVec().value){var P,A=Z.vec();return((P=U.vec())!==null&&P!==void 0?P:[]).map(function(he){return se.scValToNative(he,A.elementType())})}if($==t.xdr.ScSpecType.scSpecTypeTuple().value){var O,z=Z.tuple().valueTypes();return((O=U.vec())!==null&&O!==void 0?O:[]).map(function(he,le){return se.scValToNative(he,z[le])})}throw new TypeError("Type ".concat(Z," was not vec, but ").concat(U," is"));case t.xdr.ScValType.scvAddress().value:return t.Address.fromScVal(U).toString();case t.xdr.ScValType.scvMap().value:var G,re=(G=U.map())!==null&&G!==void 0?G:[];if($==t.xdr.ScSpecType.scSpecTypeMap().value){var X=Z.map(),be=X.keyType(),Be=X.valueType();return re.map(function(he){return[se.scValToNative(he.key(),be),se.scValToNative(he.val(),Be)]})}throw new TypeError("ScSpecType ".concat(te.name," was not map, but ").concat(JSON.stringify(U,null,2)," is"));case t.xdr.ScValType.scvBool().value:case t.xdr.ScValType.scvU32().value:case t.xdr.ScValType.scvI32().value:case t.xdr.ScValType.scvBytes().value:return U.value();case t.xdr.ScValType.scvString().value:case t.xdr.ScValType.scvSymbol().value:var ve;if($!==t.xdr.ScSpecType.scSpecTypeString().value&&$!==t.xdr.ScSpecType.scSpecTypeSymbol().value)throw new Error("ScSpecType ".concat(te.name," was not string or symbol, but ").concat(JSON.stringify(U,null,2)," is"));return(ve=U.value())===null||ve===void 0?void 0:ve.toString();case t.xdr.ScValType.scvTimepoint().value:case t.xdr.ScValType.scvDuration().value:return(0,t.scValToBigInt)(t.xdr.ScVal.scvU64(U.u64()));default:throw new TypeError("failed to convert ".concat(JSON.stringify(U,null,2)," to native type from type ").concat(te.name))}}},{key:"scValUdtToNative",value:function(U,Z){var se=this.findEntry(Z.name().toString());switch(se.switch()){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():return this.enumToNative(U);case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.structToNative(U,se.udtStructV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.unionToNative(U,se.udtUnionV0());default:throw new Error("failed to parse udt ".concat(Z.name().toString(),": ").concat(se))}}},{key:"unionToNative",value:function(U,Z){var se=this,te=U.vec();if(!te)throw new Error("".concat(JSON.stringify(U,null,2)," is not a vec"));if(te.length===0&&Z.cases.length!==0)throw new Error("".concat(U," has length 0, but the there are at least one case in the union"));var $=te[0].sym().toString();if(te[0].switch().value!=t.xdr.ScValType.scvSymbol().value)throw new Error("{vec[0]} is not a symbol");var P=Z.cases().find(function(z){return function(G){switch(G.switch().value){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:return G.tupleCase().name().toString()===z;case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:return G.voidCase().name().toString()===z;default:return!1}}}($));if(!P)throw new Error("failed to find entry ".concat($," in union {udt.name().toString()}"));var A={tag:$};if(P.switch().value===t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value){var O=P.tupleCase().type().map(function(z,G){return se.scValToNative(te[G+1],z)});A.values=O}return A}},{key:"structToNative",value:function(U,Z){var se,te,$=this,P={},A=Z.fields();return A.some(_)?(te=U.vec())===null||te===void 0?void 0:te.map(function(O,z){return $.scValToNative(O,A[z].type())}):((se=U.map())===null||se===void 0||se.forEach(function(O,z){var G=A[z];P[G.name().toString()]=$.scValToNative(O.val(),G.type())}),P)}},{key:"enumToNative",value:function(U){if(U.switch().value!==t.xdr.ScValType.scvU32().value)throw new Error("Enum must have a u32 value");return U.u32()}},{key:"jsonSchema",value:function(U){var Z,se={},te=c(this.entries);try{for(te.s();!(Z=te.n()).done;){var $=Z.value;switch($.switch().value){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0().value:var P=$.udtEnumV0();se[P.name().toString()]=W(P);break;case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0().value:var A=$.udtStructV0();se[A.name().toString()]=S(A);break;case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0().value:var O=$.udtUnionV0();se[O.name().toString()]=R(O);break;case t.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value:var z=$.functionV0(),G=z.name().toString(),re=T(z).input;se[G]=re;case t.xdr.ScSpecEntryKind.scSpecEntryUdtErrorEnumV0().value:}}}catch(be){te.e(be)}finally{te.f()}var X={$schema:"http://json-schema.org/draft-07/schema#",definitions:e(e({},x),se)};return U&&(X.$ref="#/definitions/".concat(U)),X}}])&&h(L.prototype,Q),Object.defineProperty(L,"prototype",{writable:!1}),j}();function _(j){return/^\d+$/.test(j.name().toString())}var x={U32:{type:"integer",minimum:0,maximum:4294967295},I32:{type:"integer",minimum:-2147483648,maximum:2147483647},U64:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:20},I64:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:21},U128:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:39},I128:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:40},U256:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:78},I256:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:79},Address:{type:"string",format:"address",description:"Address can be a public key or contract id"},ScString:{type:"string",description:"ScString is a string"},ScSymbol:{type:"string",description:"ScString is a string"},DataUrl:{type:"string",pattern:"^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$"}};function E(j){var L;switch(j.switch().value){case t.xdr.ScSpecType.scSpecTypeVal().value:L="Val";break;case t.xdr.ScSpecType.scSpecTypeBool().value:return{type:"boolean"};case t.xdr.ScSpecType.scSpecTypeVoid().value:return{type:"null"};case t.xdr.ScSpecType.scSpecTypeError().value:L="Error";break;case t.xdr.ScSpecType.scSpecTypeU32().value:L="U32";break;case t.xdr.ScSpecType.scSpecTypeI32().value:L="I32";break;case t.xdr.ScSpecType.scSpecTypeU64().value:L="U64";break;case t.xdr.ScSpecType.scSpecTypeI64().value:L="I64";break;case t.xdr.ScSpecType.scSpecTypeTimepoint().value:throw new Error("Timepoint type not supported");case t.xdr.ScSpecType.scSpecTypeDuration().value:throw new Error("Duration not supported");case t.xdr.ScSpecType.scSpecTypeU128().value:L="U128";break;case t.xdr.ScSpecType.scSpecTypeI128().value:L="I128";break;case t.xdr.ScSpecType.scSpecTypeU256().value:L="U256";break;case t.xdr.ScSpecType.scSpecTypeI256().value:L="I256";break;case t.xdr.ScSpecType.scSpecTypeBytes().value:L="DataUrl";break;case t.xdr.ScSpecType.scSpecTypeString().value:L="ScString";break;case t.xdr.ScSpecType.scSpecTypeSymbol().value:L="ScSymbol";break;case t.xdr.ScSpecType.scSpecTypeAddress().value:L="Address";break;case t.xdr.ScSpecType.scSpecTypeOption().value:return E(j.option().valueType());case t.xdr.ScSpecType.scSpecTypeResult().value:break;case t.xdr.ScSpecType.scSpecTypeVec().value:return{type:"array",items:E(j.vec().elementType())};case t.xdr.ScSpecType.scSpecTypeMap().value:var Q=j.map();return{type:"array",items:{type:"array",items:[E(Q.keyType()),E(Q.valueType())],minItems:2,maxItems:2}};case t.xdr.ScSpecType.scSpecTypeTuple().value:var U=j.tuple(),Z=U.valueTypes().length,se=Z;return{type:"array",items:U.valueTypes().map(E),minItems:Z,maxItems:se};case t.xdr.ScSpecType.scSpecTypeBytesN().value:return{$ref:"#/definitions/DataUrl",maxLength:j.bytesN().n()};case t.xdr.ScSpecType.scSpecTypeUdt().value:L=j.udt().name().toString()}return{$ref:"#/definitions/".concat(L)}}function S(j){var L=j.fields();if(L.some(_)){if(!L.every(_))throw new Error("mixed numeric and non-numeric field names are not allowed");return{type:"array",items:L.map(function(te,$){return E(L[$].type())}),minItems:L.length,maxItems:L.length}}var Q=j.doc().toString(),U=C(L),Z=U.properties,se=U.required;return Z.additionalProperties=!1,{description:Q,properties:Z,required:se,type:"object"}}function C(j){var L,Q={},U=[],Z=c(j);try{for(Z.s();!(L=Z.n()).done;){var se=L.value,te=se.type(),$=se.name().toString();Q[$]=E(te),te.switch().value!=t.xdr.ScSpecType.scSpecTypeOption().value&&U.push($)}}catch(A){Z.e(A)}finally{Z.f()}var P={properties:Q};return U.length>0&&(P.required=U),P}function T(j){var L=C(j.inputs()),Q=L.properties,U=L.required,Z={additionalProperties:!1,properties:Q,type:"object"};(U==null?void 0:U.length)>0&&(Z.required=U);var se={properties:{args:Z}},te=j.outputs(),$=te.length>0?E(te[0]):E(t.xdr.ScSpecTypeDef.scSpecTypeVoid()),P=j.doc().toString();return P.length>0&&(se.description=P),se.additionalProperties=!1,$.additionalProperties=!1,{input:se,output:$}}function R(j){var L,Q=j.doc().toString(),U=[],Z=c(j.cases());try{for(Z.s();!(L=Z.n()).done;){var se=L.value;switch(se.switch().value){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:var te=se.voidCase().name().toString();U.push({type:"object",title:te,properties:{tag:te},additionalProperties:!1,required:["tag"]});break;case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:var $=se.tupleCase(),P=$.name().toString();U.push({type:"object",title:P,properties:{tag:P,values:{type:"array",items:$.type().map(E)}},required:["tag","values"],additionalProperties:!1})}}}catch(O){Z.e(O)}finally{Z.f()}var A={oneOf:U};return Q.length>0&&(A.description=Q),A}function W(j){var L,Q=j.doc().toString(),U=[],Z=c(j.cases());try{for(Z.s();!(L=Z.n()).done;){var se=L.value,te=se.name().toString(),$=se.doc().toString();U.push({description:$,title:te,enum:[se.value()],type:"number"})}}catch(A){Z.e(A)}finally{Z.f()}var P={oneOf:U};return Q.length>0&&(P.description=Q),P}},6086:(f,a,i)=>{function t(C){return t=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},t(C)}function s(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function o(C,T){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(C,T){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R},d(C,T)}function w(C){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},w(C)}i.d(a,{F7:()=>y,Fz:()=>E,dR:()=>_,hs:()=>S,oY:()=>x});var y=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W)).__proto__=Q,L.constructor=R,L.response=j,L}return e(R,[{key:"getResponse",value:function(){return this.response}}]),R}(b(Error)),_=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="NotFoundError",L}return e(R)}(y),x=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="BadRequestError",L}return e(R)}(y),E=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="BadResponseError",L}return e(R)}(y),S=function(C){u(R,C);var T=h(R);function R(W,j,L){var Q;s(this,R);var U=(this instanceof R?this.constructor:void 0).prototype;return(Q=T.call(this,W)).__proto__=U,Q.constructor=R,Q.name="AccountRequiresMemoError",Q.accountId=j,Q.operationIndex=L,Q}return e(R)}(b(Error))},2761:(f,a,i)=>{i.r(a),i.d(a,{Api:()=>t,FEDERATION_RESPONSE_MAX_SIZE:()=>S,Server:()=>C});var t={};i.r(t),i.d(t,{Api:()=>{}});var s=i(1257),o=i(4172),e=i(4998),c=i.n(e),u=i(7939),h=i(6086),b=i(4700);function p(T){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},p(T)}function k(T,R){return function(W){if(Array.isArray(W))return W}(T)||function(W,j){var L=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(L!=null){var Q,U,Z,se,te=[],$=!0,P=!1;try{if(Z=(L=L.call(W)).next,j===0){if(Object(L)!==L)return;$=!1}else for(;!($=(Q=Z.call(L)).done)&&(te.push(Q.value),te.length!==j);$=!0);}catch(A){P=!0,U=A}finally{try{if(!$&&L.return!=null&&(se=L.return(),Object(se)!==se))return}finally{if(P)throw U}}return te}}(T,R)||function(W,j){if(W){if(typeof W=="string")return d(W,j);var L=Object.prototype.toString.call(W).slice(8,-1);if(L==="Object"&&W.constructor&&(L=W.constructor.name),L==="Map"||L==="Set")return Array.from(W);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return d(W,j)}}(T,R)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d(T,R){(R==null||R>T.length)&&(R=T.length);for(var W=0,j=new Array(R);W=0;--M){var J=this.tryEntries[M],ue=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var F=j.call(J,"catchLoc"),N=j.call(J,"finallyLoc");if(F&&N){if(this.prev=0;--H){var M=this.tryEntries[H];if(M.tryLoc<=this.prev&&j.call(M,"finallyLoc")&&this.prev=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===Ke)return this.complete(H.completion,H.afterLoc),Oe(H),re}},catch:function(Ke){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===Ke){var M=H.completion;if(M.type==="throw"){var J=M.arg;Oe(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(Ke,B,H){return this.delegate={iterator:ot(Ke),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=T),re}},R}function y(T,R,W,j,L,Q,U){try{var Z=T[Q](U),se=Z.value}catch(te){return void W(te)}Z.done?R(se):Promise.resolve(se).then(j,L)}function _(T){return function(){var R=this,W=arguments;return new Promise(function(j,L){var Q=T.apply(R,W);function U(se){y(Q,j,L,U,Z,"next",se)}function Z(se){y(Q,j,L,U,Z,"throw",se)}U(void 0)})}}function x(T,R){for(var W=0;W2&&arguments[2]!==void 0?arguments[2]:{};(function(z,G){if(!(z instanceof G))throw new TypeError("Cannot call a class as a function")})(this,T),this.serverURL=c()($),this.domain=P;var O=A.allowHttp===void 0?u.D.isAllowHttp():A.allowHttp;if(this.timeout=A.timeout===void 0?u.D.getTimeout():A.timeout,this.serverURL.protocol()!=="https"&&!O)throw new Error("Cannot connect to insecure federation server")}var R,W,j,L,Q,U,Z,se,te;return R=T,W=[{key:"resolveAddress",value:(te=_(w().mark(function $(P){var A,O;return w().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(A=P,!(P.indexOf("*")<0)){z.next=5;break}if(this.domain){z.next=4;break}return z.abrupt("return",Promise.reject(new Error("Unknown domain. Make sure `address` contains a domain (ex. `bob*stellar.org`) or pass `domain` parameter when instantiating the server object.")));case 4:A="".concat(P,"*").concat(this.domain);case 5:return O=this.serverURL.query({type:"name",q:A}),z.abrupt("return",this._sendRequest(O));case 7:case"end":return z.stop()}},$,this)})),function($){return te.apply(this,arguments)})},{key:"resolveAccountId",value:(se=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.serverURL.query({type:"id",q:P}),O.abrupt("return",this._sendRequest(A));case 2:case"end":return O.stop()}},$,this)})),function($){return se.apply(this,arguments)})},{key:"resolveTransactionId",value:(Z=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.serverURL.query({type:"txid",q:P}),O.abrupt("return",this._sendRequest(A));case 2:case"end":return O.stop()}},$,this)})),function($){return Z.apply(this,arguments)})},{key:"_sendRequest",value:(U=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.timeout,O.abrupt("return",s.Z.get(P.toString(),{maxContentLength:S,timeout:A}).then(function(z){if(z.data.memo!==void 0&&typeof z.data.memo!="string")throw new Error("memo value should be of type string");return z.data}).catch(function(z){if(z instanceof Error){if(z.message.match(/^maxContentLength size/))throw new Error("federation response exceeds allowed size of ".concat(S));return Promise.reject(z)}return Promise.reject(new h.Fz("Server query failed. Server responded: ".concat(z.status," ").concat(z.statusText),z.data))}));case 2:case"end":return O.stop()}},$,this)})),function($){return U.apply(this,arguments)})}],j=[{key:"resolve",value:(Q=_(w().mark(function $(P){var A,O,z,G,re,X=arguments;return w().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(A=X.length>1&&X[1]!==void 0?X[1]:{},!(P.indexOf("*")<0)){be.next=5;break}if(o.StrKey.isValidEd25519PublicKey(P)){be.next=4;break}return be.abrupt("return",Promise.reject(new Error("Invalid Account ID")));case 4:return be.abrupt("return",Promise.resolve({account_id:P}));case 5:if(O=P.split("*"),z=k(O,2),G=z[1],O.length===2&&G){be.next=9;break}return be.abrupt("return",Promise.reject(new Error("Invalid Stellar address")));case 9:return be.next=11,T.createForDomain(G,A);case 11:return re=be.sent,be.abrupt("return",re.resolveAddress(P));case 13:case"end":return be.stop()}},$)})),function($){return Q.apply(this,arguments)})},{key:"createForDomain",value:(L=_(w().mark(function $(P){var A,O,z=arguments;return w().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return A=z.length>1&&z[1]!==void 0?z[1]:{},G.next=3,b.Resolver.resolve(P,A);case 3:if((O=G.sent).FEDERATION_SERVER){G.next=6;break}return G.abrupt("return",Promise.reject(new Error("stellar.toml does not contain FEDERATION_SERVER field")));case 6:return G.abrupt("return",new T(O.FEDERATION_SERVER,P,A));case 7:case"end":return G.stop()}},$)})),function($){return L.apply(this,arguments)})}],W&&x(R.prototype,W),j&&x(R,j),Object.defineProperty(R,"prototype",{writable:!1}),T}()},197:(f,a,i)=>{i.r(a),i.d(a,{Api:()=>{}})},6881:(f,a,i)=>{var t,s;i.r(a),i.d(a,{AccountResponse:()=>p,AxiosClient:()=>he,HorizonApi:()=>t,SERVER_TIME_MAP:()=>be,Server:()=>Dn,ServerApi:()=>s,default:()=>pn,getCurrentServerTime:()=>le}),function(Te){var ie=function(ne){return ne.constantProduct="constant_product",ne}({});Te.LiquidityPoolType=ie;var pe=function(ne){return ne.createAccount="create_account",ne.payment="payment",ne.pathPayment="path_payment_strict_receive",ne.createPassiveOffer="create_passive_sell_offer",ne.manageOffer="manage_sell_offer",ne.setOptions="set_options",ne.changeTrust="change_trust",ne.allowTrust="allow_trust",ne.accountMerge="account_merge",ne.inflation="inflation",ne.manageData="manage_data",ne.bumpSequence="bump_sequence",ne.manageBuyOffer="manage_buy_offer",ne.pathPaymentStrictSend="path_payment_strict_send",ne.createClaimableBalance="create_claimable_balance",ne.claimClaimableBalance="claim_claimable_balance",ne.beginSponsoringFutureReserves="begin_sponsoring_future_reserves",ne.endSponsoringFutureReserves="end_sponsoring_future_reserves",ne.revokeSponsorship="revoke_sponsorship",ne.clawback="clawback",ne.clawbackClaimableBalance="clawback_claimable_balance",ne.setTrustLineFlags="set_trust_line_flags",ne.liquidityPoolDeposit="liquidity_pool_deposit",ne.liquidityPoolWithdraw="liquidity_pool_withdraw",ne.invokeHostFunction="invoke_host_function",ne.bumpFootprintExpiration="bump_footprint_expiration",ne.restoreFootprint="restore_footprint",ne}({});Te.OperationResponseType=pe;var Se=function(ne){return ne[ne.createAccount=0]="createAccount",ne[ne.payment=1]="payment",ne[ne.pathPayment=2]="pathPayment",ne[ne.createPassiveOffer=3]="createPassiveOffer",ne[ne.manageOffer=4]="manageOffer",ne[ne.setOptions=5]="setOptions",ne[ne.changeTrust=6]="changeTrust",ne[ne.allowTrust=7]="allowTrust",ne[ne.accountMerge=8]="accountMerge",ne[ne.inflation=9]="inflation",ne[ne.manageData=10]="manageData",ne[ne.bumpSequence=11]="bumpSequence",ne[ne.manageBuyOffer=12]="manageBuyOffer",ne[ne.pathPaymentStrictSend=13]="pathPaymentStrictSend",ne[ne.createClaimableBalance=14]="createClaimableBalance",ne[ne.claimClaimableBalance=15]="claimClaimableBalance",ne[ne.beginSponsoringFutureReserves=16]="beginSponsoringFutureReserves",ne[ne.endSponsoringFutureReserves=17]="endSponsoringFutureReserves",ne[ne.revokeSponsorship=18]="revokeSponsorship",ne[ne.clawback=19]="clawback",ne[ne.clawbackClaimableBalance=20]="clawbackClaimableBalance",ne[ne.setTrustLineFlags=21]="setTrustLineFlags",ne[ne.liquidityPoolDeposit=22]="liquidityPoolDeposit",ne[ne.liquidityPoolWithdraw=23]="liquidityPoolWithdraw",ne[ne.invokeHostFunction=24]="invokeHostFunction",ne[ne.bumpFootprintExpiration=25]="bumpFootprintExpiration",ne[ne.restoreFootprint=26]="restoreFootprint",ne}({});Te.OperationResponseTypeI=Se;var He=function(ne){return ne.TX_FAILED="tx_failed",ne.TX_BAD_SEQ="tx_bad_seq",ne.TX_BAD_AUTH="tx_bad_auth",ne.TX_BAD_AUTH_EXTRA="tx_bad_auth_extra",ne.TX_FEE_BUMP_INNER_SUCCESS="tx_fee_bump_inner_success",ne.TX_FEE_BUMP_INNER_FAILED="tx_fee_bump_inner_failed",ne.TX_NOT_SUPPORTED="tx_not_supported",ne.TX_SUCCESS="tx_success",ne.TX_TOO_EARLY="tx_too_early",ne.TX_TOO_LATE="tx_too_late",ne.TX_MISSING_OPERATION="tx_missing_operation",ne.TX_INSUFFICIENT_BALANCE="tx_insufficient_balance",ne.TX_NO_SOURCE_ACCOUNT="tx_no_source_account",ne.TX_INSUFFICIENT_FEE="tx_insufficient_fee",ne.TX_INTERNAL_ERROR="tx_internal_error",ne}({});Te.TransactionFailedResultCodes=He}(t||(t={})),function(Te){var ie=function(pe){return pe.all="all",pe.liquidityPools="liquidity_pool",pe.orderbook="orderbook",pe}({});Te.TradeType=ie,t.OperationResponseType,t.OperationResponseTypeI}(s||(s={}));var o=i(4172);function e(Te){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},e(Te)}function c(Te,ie){return function(pe){if(Array.isArray(pe))return pe}(Te)||function(pe,Se){var He=pe==null?null:typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(He!=null){var ne,D,fe,Ee,_e=[],Re=!0,qe=!1;try{if(fe=(He=He.call(pe)).next,Se===0){if(Object(He)!==He)return;Re=!1}else for(;!(Re=(ne=fe.call(He)).done)&&(_e.push(ne.value),_e.length!==Se);Re=!0);}catch(Ie){qe=!0,D=Ie}finally{try{if(!Re&&He.return!=null&&(Ee=He.return(),Object(Ee)!==Ee))return}finally{if(qe)throw D}}return _e}}(Te,ie)||function(pe,Se){if(pe){if(typeof pe=="string")return u(pe,Se);var He=Object.prototype.toString.call(pe).slice(8,-1);if(He==="Object"&&pe.constructor&&(He=pe.constructor.name),He==="Map"||He==="Set")return Array.from(pe);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return u(pe,Se)}}(Te,ie)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(Te,ie){(ie==null||ie>Te.length)&&(ie=Te.length);for(var pe=0,Se=new Array(ie);pe0||Te===ie?ie:ie-1}function j(Te){for(var ie,pe,Se=1,He=Te.length,ne=Te[0]+"";Se_e^pe?1:-1;for(fe=(Ee=He.length)<(_e=ne.length)?Ee:_e,D=0;Dne[D]^pe?1:-1;return Ee==_e?0:Ee>_e^pe?1:-1}function Q(Te,ie,pe,Se){if(Tepe||Te!==w(Te))throw Error(y+(Se||"Argument")+(typeof Te=="number"?Tepe?" out of range: ":" not an integer: ":" not a primitive number: ")+String(Te))}function U(Te){var ie=Te.c.length-1;return W(Te.e/E)==ie&&Te.c[ie]%2!=0}function Z(Te,ie){return(Te.length>1?Te.charAt(0)+"."+Te.slice(1):Te)+(ie<0?"e":"e+")+ie}function se(Te,ie,pe){var Se,He;if(ie<0){for(He=pe+".";++ie;He+=pe);Te=He+Te}else if(++ie>(Se=Te.length)){for(He=pe,ie-=Se;--ie;He+=pe);Te+=He}else ieXt?st.c=st.e=null:ae.e=10;tt/=10,Xe++);return void(Xe>Xt?st.c=st.e=null:(st.e=Xe,st.c=[ae]))}ft=String(ae)}else{if(!k.test(ft=String(ae)))return He(st,ft,et);st.s=ft.charCodeAt(0)==45?(ft=ft.slice(1),-1):1}(Xe=ft.indexOf("."))>-1&&(ft=ft.replace(".","")),(tt=ft.search(/e/i))>0?(Xe<0&&(Xe=tt),Xe+=+ft.slice(tt+1),ft=ft.substring(0,tt)):Xe<0&&(Xe=ft.length)}else{if(Q(de,2,cn.length,"Base"),de==10&&dn)return hn(st=new Et(ae),dt+st.e+1,pt);if(ft=String(ae),et=typeof ae=="number"){if(0*ae!=0)return He(st,ft,et,de);if(st.s=1/ae<0?(ft=ft.slice(1),-1):1,Et.DEBUG&&ft.replace(/^0\.0*|\./,"").length>15)throw Error(_+ae)}else st.s=ft.charCodeAt(0)===45?(ft=ft.slice(1),-1):1;for(Ae=cn.slice(0,de),Xe=tt=0,it=ft.length;ttXe){Xe=it;continue}}else if(!Me&&(ft==ft.toUpperCase()&&(ft=ft.toLowerCase())||ft==ft.toLowerCase()&&(ft=ft.toUpperCase()))){Me=!0,tt=-1,Xe=0;continue}return He(st,String(ae),et,de)}et=!1,(Xe=(ft=Se(ft,de,10,st.s)).indexOf("."))>-1?ft=ft.replace(".",""):Xe=ft.length}for(tt=0;ft.charCodeAt(tt)===48;tt++);for(it=ft.length;ft.charCodeAt(--it)===48;);if(ft=ft.slice(tt,++it)){if(it-=tt,et&&Et.DEBUG&&it>15&&(ae>S||ae!==w(ae)))throw Error(_+st.s*ae);if((Xe=Xe-tt-1)>Xt)st.c=st.e=null;else if(Xe=Lt)?Z(it,tt):se(it,tt,"0");else if(Xe=(ae=hn(new Et(ae),de,Ae)).e,et=(it=j(ae.c)).length,Ge==1||Ge==2&&(de<=Xe||Xe<=xt)){for(;etet){if(--de>0)for(it+=".";de--;it+="0");}else if((de+=Xe-et)>0)for(Xe+1==et&&(it+=".");de--;it+="0");return ae.s<0&&Me?"-"+it:it}function Fn(ae,de){for(var Ae,Ge,Me=1,Xe=new Et(ae[0]);Me=10;Me/=10,Ge++);return(Ae=Ge+Ae*E-1)>Xt?ae.c=ae.e=null:Ae=10;et/=10,Me++);if((Xe=de-Me)<0)Xe+=E,tt=de,it=Pt[ft=0],st=w(it/on[Me-tt-1]%10);else if((ft=d((Xe+1)/E))>=Pt.length){if(!Ge)break e;for(;Pt.length<=ft;Pt.push(0));it=st=0,Me=1,tt=(Xe%=E)-E+1}else{for(it=et=Pt[ft],Me=1;et>=10;et/=10,Me++);st=(tt=(Xe%=E)-E+Me)<0?0:w(it/on[Me-tt-1]%10)}if(Ge=Ge||de<0||Pt[ft+1]!=null||(tt<0?it:it%on[Me-tt-1]),Ge=Ae<4?(st||Ge)&&(Ae==0||Ae==(ae.s<0?3:2)):st>5||st==5&&(Ae==4||Ge||Ae==6&&(Xe>0?tt>0?it/on[Me-tt]:0:Pt[ft-1])%10&1||Ae==(ae.s<0?8:7)),de<1||!Pt[0])return Pt.length=0,Ge?(de-=ae.e+1,Pt[0]=on[(E-de%E)%E],ae.e=-de||0):Pt[0]=ae.e=0,ae;if(Xe==0?(Pt.length=ft,et=1,ft--):(Pt.length=ft+1,et=on[E-Xe],Pt[ft]=tt>0?w(it/on[Me-tt]%on[tt])*et:0),Ge)for(;;){if(ft==0){for(Xe=1,tt=Pt[0];tt>=10;tt/=10,Xe++);for(tt=Pt[0]+=et,et=1;tt>=10;tt/=10,et++);Xe!=et&&(ae.e++,Pt[0]==x&&(Pt[0]=1));break}if(Pt[ft]+=et,Pt[ft]!=x)break;Pt[ft--]=0,et=1}for(Xe=Pt.length;Pt[--Xe]===0;Pt.pop());}ae.e>Xt?ae.c=ae.e=null:ae.e=Lt?Z(de,Ae):se(de,Ae,"0"),ae.s<0?"-"+de:de)}return Et.clone=Te,Et.ROUND_UP=0,Et.ROUND_DOWN=1,Et.ROUND_CEIL=2,Et.ROUND_FLOOR=3,Et.ROUND_HALF_UP=4,Et.ROUND_HALF_DOWN=5,Et.ROUND_HALF_EVEN=6,Et.ROUND_HALF_CEIL=7,Et.ROUND_HALF_FLOOR=8,Et.EUCLID=9,Et.config=Et.set=function(ae){var de,Ae;if(ae!=null){if(typeof ae!="object")throw Error(y+"Object expected: "+ae);if(ae.hasOwnProperty(de="DECIMAL_PLACES")&&(Q(Ae=ae[de],0,R,de),dt=Ae),ae.hasOwnProperty(de="ROUNDING_MODE")&&(Q(Ae=ae[de],0,8,de),pt=Ae),ae.hasOwnProperty(de="EXPONENTIAL_AT")&&((Ae=ae[de])&&Ae.pop?(Q(Ae[0],-R,0,de),Q(Ae[1],0,R,de),xt=Ae[0],Lt=Ae[1]):(Q(Ae,-R,R,de),xt=-(Lt=Ae<0?-Ae:Ae))),ae.hasOwnProperty(de="RANGE"))if((Ae=ae[de])&&Ae.pop)Q(Ae[0],-R,-1,de),Q(Ae[1],1,R,de),bt=Ae[0],Xt=Ae[1];else{if(Q(Ae,-R,R,de),!Ae)throw Error(y+de+" cannot be zero: "+Ae);bt=-(Xt=Ae<0?-Ae:Ae)}if(ae.hasOwnProperty(de="CRYPTO")){if((Ae=ae[de])!==!!Ae)throw Error(y+de+" not true or false: "+Ae);if(Ae){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw sn=!Ae,Error(y+"crypto unavailable");sn=Ae}else sn=Ae}if(ae.hasOwnProperty(de="MODULO_MODE")&&(Q(Ae=ae[de],0,9,de),nn=Ae),ae.hasOwnProperty(de="POW_PRECISION")&&(Q(Ae=ae[de],0,R,de),rn=Ae),ae.hasOwnProperty(de="FORMAT")){if(typeof(Ae=ae[de])!="object")throw Error(y+de+" not an object: "+Ae);Yt=Ae}if(ae.hasOwnProperty(de="ALPHABET")){if(typeof(Ae=ae[de])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(Ae))throw Error(y+de+" invalid: "+Ae);dn=Ae.slice(0,10)=="0123456789",cn=Ae}}return{DECIMAL_PLACES:dt,ROUNDING_MODE:pt,EXPONENTIAL_AT:[xt,Lt],RANGE:[bt,Xt],CRYPTO:sn,MODULO_MODE:nn,POW_PRECISION:rn,FORMAT:Yt,ALPHABET:cn}},Et.isBigNumber=function(ae){if(!ae||ae._isBigNumber!==!0)return!1;if(!Et.DEBUG)return!0;var de,Ae,Ge=ae.c,Me=ae.e,Xe=ae.s;e:if({}.toString.call(Ge)=="[object Array]"){if((Xe===1||Xe===-1)&&Me>=-R&&Me<=R&&Me===w(Me)){if(Ge[0]===0){if(Me===0&&Ge.length===1)return!0;break e}if((de=(Me+1)%E)<1&&(de+=E),String(Ge[0]).length==de){for(de=0;de=x||Ae!==w(Ae))break e;if(Ae!==0)return!0}}}else if(Ge===null&&Me===null&&(Xe===null||Xe===1||Xe===-1))return!0;throw Error(y+"Invalid BigNumber: "+ae)},Et.maximum=Et.max=function(){return Fn(arguments,-1)},Et.minimum=Et.min=function(){return Fn(arguments,1)},Et.random=(ne=9007199254740992,D=Math.random()*ne&2097151?function(){return w(Math.random()*ne)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(ae){var de,Ae,Ge,Me,Xe,tt=0,et=[],it=new Et(gt);if(ae==null?ae=dt:Q(ae,0,R),Me=d(ae/E),sn)if(crypto.getRandomValues){for(de=crypto.getRandomValues(new Uint32Array(Me*=2));tt>>11))>=9e15?(Ae=crypto.getRandomValues(new Uint32Array(2)),de[tt]=Ae[0],de[tt+1]=Ae[1]):(et.push(Xe%1e14),tt+=2);tt=Me/2}else{if(!crypto.randomBytes)throw sn=!1,Error(y+"crypto unavailable");for(de=crypto.randomBytes(Me*=7);tt=9e15?crypto.randomBytes(7).copy(de,tt):(et.push(Xe%1e14),tt+=7);tt=Me/7}if(!sn)for(;tt=10;Xe/=10,tt++);ttMe-1&&(it[tt+1]==null&&(it[tt+1]=0),it[tt+1]+=it[tt]/Me|0,it[tt]%=Me)}return it.reverse()}return function(Ae,Ge,Me,Xe,tt){var et,it,ft,st,Pt,on,un,mn,An=Ae.indexOf("."),xn=dt,gn=pt;for(An>=0&&(st=rn,rn=0,Ae=Ae.replace(".",""),on=(mn=new Et(Ge)).pow(Ae.length-An),rn=st,mn.c=de(se(j(on.c),on.e,"0"),10,Me,ae),mn.e=mn.c.length),ft=st=(un=de(Ae,Ge,Me,tt?(et=cn,ae):(et=ae,cn))).length;un[--st]==0;un.pop());if(!un[0])return et.charAt(0);if(An<0?--ft:(on.c=un,on.e=ft,on.s=Xe,un=(on=pe(on,mn,xn,gn,Me)).c,Pt=on.r,ft=on.e),An=un[it=ft+xn+1],st=Me/2,Pt=Pt||it<0||un[it+1]!=null,Pt=gn<4?(An!=null||Pt)&&(gn==0||gn==(on.s<0?3:2)):An>st||An==st&&(gn==4||Pt||gn==6&&1&un[it-1]||gn==(on.s<0?8:7)),it<1||!un[0])Ae=Pt?se(et.charAt(1),-xn,et.charAt(0)):et.charAt(0);else{if(un.length=it,Pt)for(--Me;++un[--it]>Me;)un[it]=0,it||(++ft,un=[1].concat(un));for(st=un.length;!un[--st];);for(An=0,Ae="";An<=st;Ae+=et.charAt(un[An++]));Ae=se(Ae,ft,et.charAt(0))}return Ae}}(),pe=function(){function ae(Ge,Me,Xe){var tt,et,it,ft,st=0,Pt=Ge.length,on=Me%T,un=Me/T|0;for(Ge=Ge.slice();Pt--;)st=((et=on*(it=Ge[Pt]%T)+(tt=un*it+(ft=Ge[Pt]/T|0)*on)%T*T+st)/Xe|0)+(tt/T|0)+un*ft,Ge[Pt]=et%Xe;return st&&(Ge=[st].concat(Ge)),Ge}function de(Ge,Me,Xe,tt){var et,it;if(Xe!=tt)it=Xe>tt?1:-1;else for(et=it=0;etMe[et]?1:-1;break}return it}function Ae(Ge,Me,Xe,tt){for(var et=0;Xe--;)Ge[Xe]-=et,et=Ge[Xe]1;Ge.splice(0,1));}return function(Ge,Me,Xe,tt,et){var it,ft,st,Pt,on,un,mn,An,xn,gn,vn,Rn,br,kr,Sr,Un,ar,Mn=Ge.s==Me.s?1:-1,Bn=Ge.c,Sn=Me.c;if(!(Bn&&Bn[0]&&Sn&&Sn[0]))return new Et(Ge.s&&Me.s&&(Bn?!Sn||Bn[0]!=Sn[0]:Sn)?Bn&&Bn[0]==0||!Sn?0*Mn:Mn/0:NaN);for(xn=(An=new Et(Mn)).c=[],Mn=Xe+(ft=Ge.e-Me.e)+1,et||(et=x,ft=W(Ge.e/E)-W(Me.e/E),Mn=Mn/E|0),st=0;Sn[st]==(Bn[st]||0);st++);if(Sn[st]>(Bn[st]||0)&&ft--,Mn<0)xn.push(1),Pt=!0;else{for(kr=Bn.length,Un=Sn.length,st=0,Mn+=2,(on=w(et/(Sn[0]+1)))>1&&(Sn=ae(Sn,on,et),Bn=ae(Bn,on,et),Un=Sn.length,kr=Bn.length),br=Un,vn=(gn=Bn.slice(0,Un)).length;vn=et/2&&Sr++;do{if(on=0,(it=de(Sn,gn,Un,vn))<0){if(Rn=gn[0],Un!=vn&&(Rn=Rn*et+(gn[1]||0)),(on=w(Rn/Sr))>1)for(on>=et&&(on=et-1),mn=(un=ae(Sn,on,et)).length,vn=gn.length;de(un,gn,mn,vn)==1;)on--,Ae(un,Un=10;Mn/=10,st++);hn(An,Xe+(An.e=st+ft*E-1)+1,tt,Pt)}else An.e=ft,An.r=+Pt;return An}}(),fe=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ee=/^([^.]+)\.$/,_e=/^\.([^.]+)$/,Re=/^-?(Infinity|NaN)$/,qe=/^\s*\+(?=[\w.])|^\s+|\s+$/g,He=function(ae,de,Ae,Ge){var Me,Xe=Ae?de:de.replace(qe,"");if(Re.test(Xe))ae.s=isNaN(Xe)?null:Xe<0?-1:1;else{if(!Ae&&(Xe=Xe.replace(fe,function(tt,et,it){return Me=(it=it.toLowerCase())=="x"?16:it=="b"?2:8,Ge&&Ge!=Me?tt:et}),Ge&&(Me=Ge,Xe=Xe.replace(Ee,"$1").replace(_e,"0.$1")),de!=Xe))return new Et(Xe,Me);if(Et.DEBUG)throw Error(y+"Not a"+(Ge?" base "+Ge:"")+" number: "+de);ae.s=null}ae.c=ae.e=null},Ie.absoluteValue=Ie.abs=function(){var ae=new Et(this);return ae.s<0&&(ae.s=1),ae},Ie.comparedTo=function(ae,de){return L(this,new Et(ae,de))},Ie.decimalPlaces=Ie.dp=function(ae,de){var Ae,Ge,Me,Xe=this;if(ae!=null)return Q(ae,0,R),de==null?de=pt:Q(de,0,8),hn(new Et(Xe),ae+Xe.e+1,de);if(!(Ae=Xe.c))return null;if(Ge=((Me=Ae.length-1)-W(this.e/E))*E,Me=Ae[Me])for(;Me%10==0;Me/=10,Ge--);return Ge<0&&(Ge=0),Ge},Ie.dividedBy=Ie.div=function(ae,de){return pe(this,new Et(ae,de),dt,pt)},Ie.dividedToIntegerBy=Ie.idiv=function(ae,de){return pe(this,new Et(ae,de),0,1)},Ie.exponentiatedBy=Ie.pow=function(ae,de){var Ae,Ge,Me,Xe,tt,et,it,ft,st=this;if((ae=new Et(ae)).c&&!ae.isInteger())throw Error(y+"Exponent not an integer: "+_n(ae));if(de!=null&&(de=new Et(de)),tt=ae.e>14,!st.c||!st.c[0]||st.c[0]==1&&!st.e&&st.c.length==1||!ae.c||!ae.c[0])return ft=new Et(Math.pow(+_n(st),tt?ae.s*(2-U(ae)):+_n(ae))),de?ft.mod(de):ft;if(et=ae.s<0,de){if(de.c?!de.c[0]:!de.s)return new Et(NaN);(Ge=!et&&st.isInteger()&&de.isInteger())&&(st=st.mod(de))}else{if(ae.e>9&&(st.e>0||st.e<-1||(st.e==0?st.c[0]>1||tt&&st.c[1]>=24e7:st.c[0]<8e13||tt&&st.c[0]<=9999975e7)))return Xe=st.s<0&&U(ae)?-0:0,st.e>-1&&(Xe=1/Xe),new Et(et?1/Xe:Xe);rn&&(Xe=d(rn/E+2))}for(tt?(Ae=new Et(.5),et&&(ae.s=1),it=U(ae)):it=(Me=Math.abs(+_n(ae)))%2,ft=new Et(gt);;){if(it){if(!(ft=ft.times(st)).c)break;Xe?ft.c.length>Xe&&(ft.c.length=Xe):Ge&&(ft=ft.mod(de))}if(Me){if((Me=w(Me/2))===0)break;it=Me%2}else if(hn(ae=ae.times(Ae),ae.e+1,1),ae.e>14)it=U(ae);else{if((Me=+_n(ae))==0)break;it=Me%2}st=st.times(st),Xe?st.c&&st.c.length>Xe&&(st.c.length=Xe):Ge&&(st=st.mod(de))}return Ge?ft:(et&&(ft=gt.div(ft)),de?ft.mod(de):Xe?hn(ft,rn,pt,void 0):ft)},Ie.integerValue=function(ae){var de=new Et(this);return ae==null?ae=pt:Q(ae,0,8),hn(de,de.e+1,ae)},Ie.isEqualTo=Ie.eq=function(ae,de){return L(this,new Et(ae,de))===0},Ie.isFinite=function(){return!!this.c},Ie.isGreaterThan=Ie.gt=function(ae,de){return L(this,new Et(ae,de))>0},Ie.isGreaterThanOrEqualTo=Ie.gte=function(ae,de){return(de=L(this,new Et(ae,de)))===1||de===0},Ie.isInteger=function(){return!!this.c&&W(this.e/E)>this.c.length-2},Ie.isLessThan=Ie.lt=function(ae,de){return L(this,new Et(ae,de))<0},Ie.isLessThanOrEqualTo=Ie.lte=function(ae,de){return(de=L(this,new Et(ae,de)))===-1||de===0},Ie.isNaN=function(){return!this.s},Ie.isNegative=function(){return this.s<0},Ie.isPositive=function(){return this.s>0},Ie.isZero=function(){return!!this.c&&this.c[0]==0},Ie.minus=function(ae,de){var Ae,Ge,Me,Xe,tt=this,et=tt.s;if(de=(ae=new Et(ae,de)).s,!et||!de)return new Et(NaN);if(et!=de)return ae.s=-de,tt.plus(ae);var it=tt.e/E,ft=ae.e/E,st=tt.c,Pt=ae.c;if(!it||!ft){if(!st||!Pt)return st?(ae.s=-de,ae):new Et(Pt?tt:NaN);if(!st[0]||!Pt[0])return Pt[0]?(ae.s=-de,ae):new Et(st[0]?tt:pt==3?-0:0)}if(it=W(it),ft=W(ft),st=st.slice(),et=it-ft){for((Xe=et<0)?(et=-et,Me=st):(ft=it,Me=Pt),Me.reverse(),de=et;de--;Me.push(0));Me.reverse()}else for(Ge=(Xe=(et=st.length)<(de=Pt.length))?et:de,et=de=0;de0)for(;de--;st[Ae++]=0);for(de=x-1;Ge>et;){if(st[--Ge]=0;){for(Ae=0,on=Rn[Me]%xn,un=Rn[Me]/xn|0,Xe=Me+(tt=it);Xe>Me;)Ae=((ft=on*(ft=vn[--tt]%xn)+(et=un*ft+(st=vn[tt]/xn|0)*on)%xn*xn+mn[Xe]+Ae)/An|0)+(et/xn|0)+un*st,mn[Xe--]=ft%An;mn[Xe]=Ae}return Ae?++Ge:mn.splice(0,1),Tn(ae,mn,Ge)},Ie.negated=function(){var ae=new Et(this);return ae.s=-ae.s||null,ae},Ie.plus=function(ae,de){var Ae,Ge=this,Me=Ge.s;if(de=(ae=new Et(ae,de)).s,!Me||!de)return new Et(NaN);if(Me!=de)return ae.s=-de,Ge.minus(ae);var Xe=Ge.e/E,tt=ae.e/E,et=Ge.c,it=ae.c;if(!Xe||!tt){if(!et||!it)return new Et(Me/0);if(!et[0]||!it[0])return it[0]?ae:new Et(et[0]?Ge:0*Me)}if(Xe=W(Xe),tt=W(tt),et=et.slice(),Me=Xe-tt){for(Me>0?(tt=Xe,Ae=it):(Me=-Me,Ae=et),Ae.reverse();Me--;Ae.push(0));Ae.reverse()}for((Me=et.length)-(de=it.length)<0&&(Ae=it,it=et,et=Ae,de=Me),Me=0;de;)Me=(et[--de]=et[de]+it[de]+Me)/x|0,et[de]=x===et[de]?0:et[de]%x;return Me&&(et=[Me].concat(et),++tt),Tn(ae,et,tt)},Ie.precision=Ie.sd=function(ae,de){var Ae,Ge,Me,Xe=this;if(ae!=null&&ae!==!!ae)return Q(ae,1,R),de==null?de=pt:Q(de,0,8),hn(new Et(Xe),ae,de);if(!(Ae=Xe.c))return null;if(Ge=(Me=Ae.length-1)*E+1,Me=Ae[Me]){for(;Me%10==0;Me/=10,Ge--);for(Me=Ae[0];Me>=10;Me/=10,Ge++);}return ae&&Xe.e+1>Ge&&(Ge=Xe.e+1),Ge},Ie.shiftedBy=function(ae){return Q(ae,-9007199254740991,S),this.times("1e"+ae)},Ie.squareRoot=Ie.sqrt=function(){var ae,de,Ae,Ge,Me,Xe=this,tt=Xe.c,et=Xe.s,it=Xe.e,ft=dt+4,st=new Et("0.5");if(et!==1||!tt||!tt[0])return new Et(!et||et<0&&(!tt||tt[0])?NaN:tt?Xe:1/0);if((et=Math.sqrt(+_n(Xe)))==0||et==1/0?(((de=j(tt)).length+it)%2==0&&(de+="0"),et=Math.sqrt(+de),it=W((it+1)/2)-(it<0||it%2),Ae=new Et(de=et==1/0?"5e"+it:(de=et.toExponential()).slice(0,de.indexOf("e")+1)+it)):Ae=new Et(et+""),Ae.c[0]){for((et=(it=Ae.e)+ft)<3&&(et=0);;)if(Me=Ae,Ae=st.times(Me.plus(pe(Xe,Me,ft,1))),j(Me.c).slice(0,et)===(de=j(Ae.c)).slice(0,et)){if(Ae.e0&&mn>0){for(Xe=mn%et||et,st=un.substr(0,Xe);Xe0&&(st+=ft+un.slice(Xe)),on&&(st="-"+st)}Ge=Pt?st+(Ae.decimalSeparator||"")+((it=+Ae.fractionGroupSize)?Pt.replace(new RegExp("\\d{"+it+"}\\B","g"),"$&"+(Ae.fractionGroupSeparator||"")):Pt):st}return(Ae.prefix||"")+Ge+(Ae.suffix||"")},Ie.toFraction=function(ae){var de,Ae,Ge,Me,Xe,tt,et,it,ft,st,Pt,on,un=this,mn=un.c;if(ae!=null&&(!(et=new Et(ae)).isInteger()&&(et.c||et.s!==1)||et.lt(gt)))throw Error(y+"Argument "+(et.isInteger()?"out of range: ":"not an integer: ")+_n(et));if(!mn)return new Et(un);for(de=new Et(gt),ft=Ae=new Et(gt),Ge=it=new Et(gt),on=j(mn),Xe=de.e=on.length-un.e-1,de.c[0]=C[(tt=Xe%E)<0?E+tt:tt],ae=!ae||et.comparedTo(de)>0?Xe>0?de:ft:et,tt=Xt,Xt=1/0,et=new Et(on),it.c[0]=0;st=pe(et,de,0,1),(Me=Ae.plus(st.times(Ge))).comparedTo(ae)!=1;)Ae=Ge,Ge=Me,ft=it.plus(st.times(Me=ft)),it=Me,de=et.minus(st.times(Me=de)),et=Me;return Me=pe(ae.minus(Ae),Ge,0,1),it=it.plus(Me.times(ft)),Ae=Ae.plus(Me.times(Ge)),it.s=ft.s=un.s,Pt=pe(ft,Ge,Xe*=2,pt).minus(un).abs().comparedTo(pe(it,Ae,Xe,pt).minus(un).abs())<1?[ft,Ge]:[it,Ae],Xt=tt,Pt},Ie.toNumber=function(){return+_n(this)},Ie.toPrecision=function(ae,de){return ae!=null&&Q(ae,1,R),yn(this,ae,de,2)},Ie.toString=function(ae){var de,Ae=this,Ge=Ae.s,Me=Ae.e;return Me===null?Ge?(de="Infinity",Ge<0&&(de="-"+de)):de="NaN":(ae==null?de=Me<=xt||Me>=Lt?Z(j(Ae.c),Me):se(j(Ae.c),Me,"0"):ae===10&&dn?de=se(j((Ae=hn(new Et(Ae),dt+Me+1,pt)).c),Ae.e,"0"):(Q(ae,2,cn.length,"Base"),de=Se(se(j(Ae.c),Me,"0"),10,ae,Ge,!0)),Ge<0&&Ae.c[0]&&(de="-"+de)),de},Ie.valueOf=Ie.toJSON=function(){return _n(this)},Ie._isBigNumber=!0,Ie[Symbol.toStringTag]="BigNumber",Ie[Symbol.for("nodejs.util.inspect.custom")]=Ie.valueOf,ie!=null&&Et.set(ie),Et}();const $=te;var P=i(4998),A=i.n(P),O=i(1950),z=i.n(O),G=i(6086),re=i(1257),X=i(4147).i8,be={},Be=re.Z.create({headers:{"X-Client-Name":"js-stellar-sdk","X-Client-Version":X}});function ve(Te){return Math.floor(Te/1e3)}Be.interceptors.response.use(function(Te){var ie=A()(Te.config.url).hostname(),pe=ve(Date.parse(Te.headers.date)),Se=ve(new Date().getTime());return isNaN(pe)||(be[ie]={serverTime:pe,localTimeRecorded:Se}),Te});const he=Be;function le(Te){var ie=be[Te];if(!ie||!ie.localTimeRecorded||!ie.serverTime)return null;var pe=ie.serverTime,Se=ie.localTimeRecorded,He=ve(new Date().getTime());return He-Se>300?null:He-Se+pe}function ge(Te){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ge(Te)}var Ne,Ue,Le;function De(){De=function(){return ie};var Te,ie={},pe=Object.prototype,Se=pe.hasOwnProperty,He=Object.defineProperty||function(ae,de,Ae){ae[de]=Ae.value},ne=typeof Symbol=="function"?Symbol:{},D=ne.iterator||"@@iterator",fe=ne.asyncIterator||"@@asyncIterator",Ee=ne.toStringTag||"@@toStringTag";function _e(ae,de,Ae){return Object.defineProperty(ae,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}),ae[de]}try{_e({},"")}catch{_e=function(de,Ae,Ge){return de[Ae]=Ge}}function Re(ae,de,Ae,Ge){var Me=de&&de.prototype instanceof Lt?de:Lt,Xe=Object.create(Me.prototype),tt=new hn(Ge||[]);return He(Xe,"_invoke",{value:Et(ae,Ae,tt)}),Xe}function qe(ae,de,Ae){try{return{type:"normal",arg:ae.call(de,Ae)}}catch(Ge){return{type:"throw",arg:Ge}}}ie.wrap=Re;var Ie="suspendedStart",gt="suspendedYield",dt="executing",pt="completed",xt={};function Lt(){}function bt(){}function Xt(){}var sn={};_e(sn,D,function(){return this});var nn=Object.getPrototypeOf,rn=nn&&nn(nn(_n([])));rn&&rn!==pe&&Se.call(rn,D)&&(sn=rn);var Yt=Xt.prototype=Lt.prototype=Object.create(sn);function cn(ae){["next","throw","return"].forEach(function(de){_e(ae,de,function(Ae){return this._invoke(de,Ae)})})}function dn(ae,de){function Ae(Me,Xe,tt,et){var it=qe(ae[Me],ae,Xe);if(it.type!=="throw"){var ft=it.arg,st=ft.value;return st&&ge(st)=="object"&&Se.call(st,"__await")?de.resolve(st.__await).then(function(Pt){Ae("next",Pt,tt,et)},function(Pt){Ae("throw",Pt,tt,et)}):de.resolve(st).then(function(Pt){ft.value=Pt,tt(ft)},function(Pt){return Ae("throw",Pt,tt,et)})}et(it.arg)}var Ge;He(this,"_invoke",{value:function(Me,Xe){function tt(){return new de(function(et,it){Ae(Me,Xe,et,it)})}return Ge=Ge?Ge.then(tt,tt):tt()}})}function Et(ae,de,Ae){var Ge=Ie;return function(Me,Xe){if(Ge===dt)throw new Error("Generator is already running");if(Ge===pt){if(Me==="throw")throw Xe;return{value:Te,done:!0}}for(Ae.method=Me,Ae.arg=Xe;;){var tt=Ae.delegate;if(tt){var et=yn(tt,Ae);if(et){if(et===xt)continue;return et}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ge===Ie)throw Ge=pt,Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ge=dt;var it=qe(ae,de,Ae);if(it.type==="normal"){if(Ge=Ae.done?pt:gt,it.arg===xt)continue;return{value:it.arg,done:Ae.done}}it.type==="throw"&&(Ge=pt,Ae.method="throw",Ae.arg=it.arg)}}}function yn(ae,de){var Ae=de.method,Ge=ae.iterator[Ae];if(Ge===Te)return de.delegate=null,Ae==="throw"&&ae.iterator.return&&(de.method="return",de.arg=Te,yn(ae,de),de.method==="throw")||Ae!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ae+"' method")),xt;var Me=qe(Ge,ae.iterator,de.arg);if(Me.type==="throw")return de.method="throw",de.arg=Me.arg,de.delegate=null,xt;var Xe=Me.arg;return Xe?Xe.done?(de[ae.resultName]=Xe.value,de.next=ae.nextLoc,de.method!=="return"&&(de.method="next",de.arg=Te),de.delegate=null,xt):Xe:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,xt)}function Fn(ae){var de={tryLoc:ae[0]};1 in ae&&(de.catchLoc=ae[1]),2 in ae&&(de.finallyLoc=ae[2],de.afterLoc=ae[3]),this.tryEntries.push(de)}function Tn(ae){var de=ae.completion||{};de.type="normal",delete de.arg,ae.completion=de}function hn(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(Fn,this),this.reset(!0)}function _n(ae){if(ae||ae===""){var de=ae[D];if(de)return de.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var Ae=-1,Ge=function Me(){for(;++Ae=0;--Ge){var Me=this.tryEntries[Ge],Xe=Me.completion;if(Me.tryLoc==="root")return Ae("end");if(Me.tryLoc<=this.prev){var tt=Se.call(Me,"catchLoc"),et=Se.call(Me,"finallyLoc");if(tt&&et){if(this.prev=0;--Ae){var Ge=this.tryEntries[Ae];if(Ge.tryLoc<=this.prev&&Se.call(Ge,"finallyLoc")&&this.prev=0;--de){var Ae=this.tryEntries[de];if(Ae.finallyLoc===ae)return this.complete(Ae.completion,Ae.afterLoc),Tn(Ae),xt}},catch:function(ae){for(var de=this.tryEntries.length-1;de>=0;--de){var Ae=this.tryEntries[de];if(Ae.tryLoc===ae){var Ge=Ae.completion;if(Ge.type==="throw"){var Me=Ge.arg;Tn(Ae)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(ae,de,Ae){return this.delegate={iterator:_n(ae),resultName:de,nextLoc:Ae},this.method==="next"&&(this.arg=Te),xt}},ie}function Fe(Te,ie,pe,Se,He,ne,D){try{var fe=Te[ne](D),Ee=fe.value}catch(_e){return void pe(_e)}fe.done?ie(Ee):Promise.resolve(Ee).then(Se,He)}function Oe(Te){return function(){var ie=this,pe=arguments;return new Promise(function(Se,He){var ne=Te.apply(ie,pe);function D(Ee){Fe(ne,Se,He,D,fe,"next",Ee)}function fe(Ee){Fe(ne,Se,He,D,fe,"throw",Ee)}D(void 0)})}}function We(Te,ie){for(var pe=0;pe1&&arguments[1]!==void 0?arguments[1]:"";(function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")})(this,Te),this.url=ne.clone(),this.filter=[],this.originalSegments=this.url.segment()||[],this.neighborRoot=D}var ie,pe,Se,He;return ie=Te,pe=[{key:"call",value:function(){var ne=this;return this.checkFilter(),this._sendNormalRequest(this.url).then(function(D){return ne._parseResponse(D)})}},{key:"stream",value:function(){var ne,D,fe=this,Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.checkFilter(),this.url.setQuery("X-Client-Name","js-stellar-sdk"),this.url.setQuery("X-Client-Version",X);var _e=function(){D=setTimeout(function(){var qe;(qe=ne)===null||qe===void 0||qe.close(),ne=Re()},Ee.reconnectTimeout||15e3)},Re=function qe(){try{ne=new H(fe.url.toString())}catch(xt){Ee.onerror&&Ee.onerror(xt)}if(_e(),!ne)return ne;var Ie=!1,gt=function(){Ie||(clearTimeout(D),ne.close(),qe(),Ie=!0)},dt=function(xt){if(xt.type!=="close"){var Lt=xt.data?fe._parseRecord(JSON.parse(xt.data)):xt;Lt.paging_token&&fe.url.setQuery("cursor",Lt.paging_token),clearTimeout(D),_e(),Ee.onmessage!==void 0&&Ee.onmessage(Lt)}else gt()},pt=function(xt){Ee.onerror&&Ee.onerror(xt)};return ne.addEventListener?(ne.addEventListener("message",dt.bind(fe)),ne.addEventListener("error",pt.bind(fe)),ne.addEventListener("close",gt.bind(fe))):(ne.onmessage=dt.bind(fe),ne.onerror=pt.bind(fe)),ne};return Re(),function(){var qe;clearTimeout(D),(qe=ne)===null||qe===void 0||qe.close()}}},{key:"cursor",value:function(ne){return this.url.setQuery("cursor",ne),this}},{key:"limit",value:function(ne){return this.url.setQuery("limit",ne.toString()),this}},{key:"order",value:function(ne){return this.url.setQuery("order",ne),this}},{key:"join",value:function(ne){return this.url.setQuery("join",ne),this}},{key:"forEndpoint",value:function(ne,D){if(this.neighborRoot==="")throw new Error("Invalid usage: neighborRoot not set in constructor");return this.filter.push([ne,D,this.neighborRoot]),this}},{key:"checkFilter",value:function(){if(this.filter.length>=2)throw new G.oY("Too many filters specified",this.filter);if(this.filter.length===1){var ne=this.originalSegments.concat(this.filter[0]);this.url.segment(ne)}}},{key:"_requestFnForLink",value:function(ne){var D=this;return Oe(De().mark(function fe(){var Ee,_e,Re,qe,Ie=arguments;return De().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return Ee=Ie.length>0&&Ie[0]!==void 0?Ie[0]:{},ne.templated?(Re=z()(ne.href),_e=A()(Re.expand(Ee))):_e=A()(ne.href),gt.next=4,D._sendNormalRequest(_e);case 4:return qe=gt.sent,gt.abrupt("return",D._parseResponse(qe));case 6:case"end":return gt.stop()}},fe)}))}},{key:"_parseRecord",value:function(ne){var D=this;if(!ne._links)return ne;for(var fe=function(){var Re=_e[Ee],qe=ne._links[Re],Ie=!1;if(ne[Re]!==void 0&&(ne["".concat(Re,"_attr")]=ne[Re],Ie=!0),Ie&&Ke.indexOf(Re)>=0){var gt=D._parseRecord(ne[Re]);ne[Re]=Oe(De().mark(function dt(){return De().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.abrupt("return",gt);case 1:case"end":return pt.stop()}},dt)}))}else ne[Re]=D._requestFnForLink(qe)},Ee=0,_e=Object.keys(ne._links);Ee<_e.length;Ee++)fe();return ne}},{key:"_sendNormalRequest",value:(He=Oe(De().mark(function ne(D){var fe;return De().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return(fe=D).authority()===""&&(fe=fe.authority(this.url.authority())),fe.protocol()===""&&(fe=fe.protocol(this.url.protocol())),Ee.abrupt("return",Be.get(fe.toString()).then(function(_e){return _e.data}).catch(this._handleNetworkError));case 4:case"end":return Ee.stop()}},ne,this)})),function(ne){return He.apply(this,arguments)})},{key:"_parseResponse",value:function(ne){return ne._embedded&&ne._embedded.records?this._toCollectionPage(ne):this._parseRecord(ne)}},{key:"_toCollectionPage",value:function(ne){for(var D,fe,Ee=this,_e=0;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=K(Te);if(ie){var He=K(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ue(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function K(Te){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},K(Te)}var oe=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&q(ne,D)})(He,Te);var ie,pe,Se=I(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("accounts"),D}return ie=He,(pe=[{key:"accountId",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forSigner",value:function(ne){return this.url.setQuery("signer",ne),this}},{key:"forAsset",value:function(ne){return this.url.setQuery("asset","".concat(ne)),this}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"forLiquidityPool",value:function(ne){return this.url.setQuery("liquidity_pool",ne),this}}])&&F(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ye(Te){return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ye(Te)}function Pe(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=_t(Te);if(ie){var He=_t(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ye(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function _t(Te){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},_t(Te)}var qt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&<(ne,D)})(He,Te);var ie,pe,Se=vt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("assets"),D}return ie=He,(pe=[{key:"forCode",value:function(ne){return this.url.setQuery("asset_code",ne),this}},{key:"forIssuer",value:function(ne){return this.url.setQuery("asset_issuer",ne),this}}])&&Pe(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function me(Te){return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},me(Te)}function we(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=ke(Te);if(ie){var He=ke(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(me(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function ke(Te){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ke(Te)}var $e=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&V(ne,D)})(He,Te);var ie,pe,Se=Y(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("claimable_balances"),D}return ie=He,(pe=[{key:"claimableBalance",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"claimant",value:function(ne){return this.url.setQuery("claimant",ne),this}},{key:"asset",value:function(ne){return this.url.setQuery("asset",ne.toString()),this}}])&&we(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ze(Te){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ze(Te)}function je(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=It(Te);if(ie){var He=It(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ze(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function It(Te){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},It(Te)}var Nt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&nt(ne,D)})(He,Te);var ie,pe,Se=at(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"effects")).url.segment("effects"),D}return ie=He,(pe=[{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}},{key:"forOperation",value:function(ne){return this.forEndpoint("operations",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}}])&&je(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Rt(Te){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Rt(Te)}function Gt(Te,ie){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Gt(Te,ie)}function Jt(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Ht(Te);if(ie){var He=Ht(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Rt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Ht(Te){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Ht(Te)}var Zt=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Gt(He,ne)})(Se,Te);var ie,pe=Jt(Se);function Se(He,ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,Se),(D=pe.call(this,He)).url.segment("friendbot"),D.url.setQuery("addr",ne),D}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function Vt(Te){return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Vt(Te)}function Ut(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=mt(Te);if(ie){var He=mt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Vt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function mt(Te){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},mt(Te)}var St=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&en(ne,D)})(He,Te);var ie,pe,Se=Wt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("ledgers"),D}return ie=He,(pe=[{key:"ledger",value:function(ne){return this.filter.push(["ledgers",ne.toString()]),this}}])&&Ut(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Bt(Te){return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Bt(Te)}function Tt(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=ce(Te);if(ie){var He=ce(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Bt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function ce(Te){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ce(Te)}var Ce=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&kt(ne,D)})(He,Te);var ie,pe,Se=ln(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("liquidity_pools"),D}return ie=He,pe=[{key:"forAssets",value:function(){for(var ne=arguments.length,D=new Array(ne),fe=0;fe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=yt(Te);if(ie){var He=yt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Ve(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function yt(Te){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},yt(Te)}var wt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Ye(ne,D)})(He,Te);var ie,pe,Se=Ze(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"offers")).url.segment("offers"),D}return ie=He,(pe=[{key:"offer",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"buying",value:function(ne){return ne.isNative()?this.url.setQuery("buying_asset_type","native"):(this.url.setQuery("buying_asset_type",ne.getAssetType()),this.url.setQuery("buying_asset_code",ne.getCode()),this.url.setQuery("buying_asset_issuer",ne.getIssuer())),this}},{key:"selling",value:function(ne){return ne.isNative()?this.url.setQuery("selling_asset_type","native"):(this.url.setQuery("selling_asset_type",ne.getAssetType()),this.url.setQuery("selling_asset_code",ne.getCode()),this.url.setQuery("selling_asset_issuer",ne.getIssuer())),this}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"seller",value:function(ne){return this.url.setQuery("seller",ne),this}}])&&Qe(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ht(Te){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ht(Te)}function ct(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Dt(Te);if(ie){var He=Dt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ht(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Dt(Te){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Dt(Te)}var tn=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&jt(ne,D)})(He,Te);var ie,pe,Se=zt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"operations")).url.segment("operations"),D}return ie=He,(pe=[{key:"operation",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forClaimableBalance",value:function(ne){return this.forEndpoint("claimable_balances",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}},{key:"includeFailed",value:function(ne){return this.url.setQuery("include_failed",ne.toString()),this}}])&&ct(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function an(Te){return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},an(Te)}function fn(Te,ie){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},fn(Te,ie)}function wn(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=bn(Te);if(ie){var He=bn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(an(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function bn(Te){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},bn(Te)}var En=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&fn(He,ne)})(Se,Te);var ie,pe=wn(Se);function Se(He,ne,D){var fe;return function(Ee,_e){if(!(Ee instanceof _e))throw new TypeError("Cannot call a class as a function")}(this,Se),(fe=pe.call(this,He)).url.segment("order_book"),ne.isNative()?fe.url.setQuery("selling_asset_type","native"):(fe.url.setQuery("selling_asset_type",ne.getAssetType()),fe.url.setQuery("selling_asset_code",ne.getCode()),fe.url.setQuery("selling_asset_issuer",ne.getIssuer())),D.isNative()?fe.url.setQuery("buying_asset_type","native"):(fe.url.setQuery("buying_asset_type",D.getAssetType()),fe.url.setQuery("buying_asset_code",D.getCode()),fe.url.setQuery("buying_asset_issuer",D.getIssuer())),fe}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function qn(Te){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},qn(Te)}function lr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Jn(Te);if(ie){var He=Jn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(qn(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Jn(Te){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Jn(Te)}var ee=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Yn(ne,D)})(He,Te);var ie,pe,Se=ur(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"payments")).url.segment("payments"),D}return ie=He,(pe=[{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}}])&&lr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Kt(Te){return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Kt(Te)}function Vn(Te,ie){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Vn(Te,ie)}function nr(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Wn(Te);if(ie){var He=Wn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Kt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Wn(Te){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Wn(Te)}var rr=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Vn(He,ne)})(Se,Te);var ie,pe=nr(Se);function Se(He,ne,D,fe){var Ee;if(function(Re,qe){if(!(Re instanceof qe))throw new TypeError("Cannot call a class as a function")}(this,Se),(Ee=pe.call(this,He)).url.segment("paths/strict-receive"),typeof ne=="string")Ee.url.setQuery("source_account",ne);else{var _e=ne.map(function(Re){return Re.isNative()?"native":"".concat(Re.getCode(),":").concat(Re.getIssuer())}).join(",");Ee.url.setQuery("source_assets",_e)}return Ee.url.setQuery("destination_amount",fe),D.isNative()?Ee.url.setQuery("destination_asset_type","native"):(Ee.url.setQuery("destination_asset_type",D.getAssetType()),Ee.url.setQuery("destination_asset_code",D.getCode()),Ee.url.setQuery("destination_asset_issuer",D.getIssuer())),Ee}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function At(Te){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},At(Te)}function Ct(Te,ie){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Ct(Te,ie)}function Cn(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=kn(Te);if(ie){var He=kn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(At(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function kn(Te){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},kn(Te)}var or=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Ct(He,ne)})(Se,Te);var ie,pe=Cn(Se);function Se(He,ne,D,fe){var Ee;if(function(Re,qe){if(!(Re instanceof qe))throw new TypeError("Cannot call a class as a function")}(this,Se),(Ee=pe.call(this,He)).url.segment("paths/strict-send"),ne.isNative()?Ee.url.setQuery("source_asset_type","native"):(Ee.url.setQuery("source_asset_type",ne.getAssetType()),Ee.url.setQuery("source_asset_code",ne.getCode()),Ee.url.setQuery("source_asset_issuer",ne.getIssuer())),Ee.url.setQuery("source_amount",D),typeof fe=="string")Ee.url.setQuery("destination_account",fe);else{var _e=fe.map(function(Re){return Re.isNative()?"native":"".concat(Re.getCode(),":").concat(Re.getIssuer())}).join(",");Ee.url.setQuery("destination_assets",_e)}return Ee}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function Ft(Te){return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Ft(Te)}function wr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Gn(Te);if(ie){var He=Gn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Ft(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Gn(Te){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Gn(Te)}var fr=[6e4,3e5,9e5,36e5,864e5,6048e5],dr=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Zn(ne,D)})(He,Te);var ie,pe,Se=er(He);function He(ne,D,fe,Ee,_e,Re,qe){var Ie;if(function(gt,dt){if(!(gt instanceof dt))throw new TypeError("Cannot call a class as a function")}(this,He),(Ie=Se.call(this,ne)).url.segment("trade_aggregations"),D.isNative()?Ie.url.setQuery("base_asset_type","native"):(Ie.url.setQuery("base_asset_type",D.getAssetType()),Ie.url.setQuery("base_asset_code",D.getCode()),Ie.url.setQuery("base_asset_issuer",D.getIssuer())),fe.isNative()?Ie.url.setQuery("counter_asset_type","native"):(Ie.url.setQuery("counter_asset_type",fe.getAssetType()),Ie.url.setQuery("counter_asset_code",fe.getCode()),Ie.url.setQuery("counter_asset_issuer",fe.getIssuer())),typeof Ee!="number"||typeof _e!="number")throw new G.oY("Invalid time bounds",[Ee,_e]);if(Ie.url.setQuery("start_time",Ee.toString()),Ie.url.setQuery("end_time",_e.toString()),!Ie.isValidResolution(Re))throw new G.oY("Invalid resolution",Re);if(Ie.url.setQuery("resolution",Re.toString()),!Ie.isValidOffset(qe,Re))throw new G.oY("Invalid offset",qe);return Ie.url.setQuery("offset",qe.toString()),Ie}return ie=He,(pe=[{key:"isValidResolution",value:function(ne){for(var D=0,fe=fr;DD||ne>=24*fe||ne%fe!=0)}}])&&wr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function In(Te){return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},In(Te)}function ir(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Xn(Te);if(ie){var He=Xn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(In(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Xn(Te){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Xn(Te)}var pr=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&tr(ne,D)})(He,Te);var ie,pe,Se=hr(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"trades")).url.segment("trades"),D}return ie=He,(pe=[{key:"forAssetPair",value:function(ne,D){return ne.isNative()?this.url.setQuery("base_asset_type","native"):(this.url.setQuery("base_asset_type",ne.getAssetType()),this.url.setQuery("base_asset_code",ne.getCode()),this.url.setQuery("base_asset_issuer",ne.getIssuer())),D.isNative()?this.url.setQuery("counter_asset_type","native"):(this.url.setQuery("counter_asset_type",D.getAssetType()),this.url.setQuery("counter_asset_code",D.getCode()),this.url.setQuery("counter_asset_issuer",D.getIssuer())),this}},{key:"forOffer",value:function(ne){return this.url.setQuery("offer_id",ne),this}},{key:"forType",value:function(ne){return this.url.setQuery("trade_type",ne),this}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}}])&&ir(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Hn(Te){return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Hn(Te)}function gr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=zn(Te);if(ie){var He=zn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Hn(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function zn(Te){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},zn(Te)}var Pn=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Qn(ne,D)})(He,Te);var ie,pe,Se=yr(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"transactions")).url.segment("transactions"),D}return ie=He,(pe=[{key:"transaction",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forClaimableBalance",value:function(ne){return this.forEndpoint("claimable_balances",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}},{key:"includeFailed",value:function(ne){return this.url.setQuery("include_failed",ne.toString()),this}}])&&gr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Nn(Te){return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Nn(Te)}function On(){On=function(){return ie};var Te,ie={},pe=Object.prototype,Se=pe.hasOwnProperty,He=Object.defineProperty||function(ae,de,Ae){ae[de]=Ae.value},ne=typeof Symbol=="function"?Symbol:{},D=ne.iterator||"@@iterator",fe=ne.asyncIterator||"@@asyncIterator",Ee=ne.toStringTag||"@@toStringTag";function _e(ae,de,Ae){return Object.defineProperty(ae,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}),ae[de]}try{_e({},"")}catch{_e=function(de,Ae,Ge){return de[Ae]=Ge}}function Re(ae,de,Ae,Ge){var Me=de&&de.prototype instanceof Lt?de:Lt,Xe=Object.create(Me.prototype),tt=new hn(Ge||[]);return He(Xe,"_invoke",{value:Et(ae,Ae,tt)}),Xe}function qe(ae,de,Ae){try{return{type:"normal",arg:ae.call(de,Ae)}}catch(Ge){return{type:"throw",arg:Ge}}}ie.wrap=Re;var Ie="suspendedStart",gt="suspendedYield",dt="executing",pt="completed",xt={};function Lt(){}function bt(){}function Xt(){}var sn={};_e(sn,D,function(){return this});var nn=Object.getPrototypeOf,rn=nn&&nn(nn(_n([])));rn&&rn!==pe&&Se.call(rn,D)&&(sn=rn);var Yt=Xt.prototype=Lt.prototype=Object.create(sn);function cn(ae){["next","throw","return"].forEach(function(de){_e(ae,de,function(Ae){return this._invoke(de,Ae)})})}function dn(ae,de){function Ae(Me,Xe,tt,et){var it=qe(ae[Me],ae,Xe);if(it.type!=="throw"){var ft=it.arg,st=ft.value;return st&&Nn(st)=="object"&&Se.call(st,"__await")?de.resolve(st.__await).then(function(Pt){Ae("next",Pt,tt,et)},function(Pt){Ae("throw",Pt,tt,et)}):de.resolve(st).then(function(Pt){ft.value=Pt,tt(ft)},function(Pt){return Ae("throw",Pt,tt,et)})}et(it.arg)}var Ge;He(this,"_invoke",{value:function(Me,Xe){function tt(){return new de(function(et,it){Ae(Me,Xe,et,it)})}return Ge=Ge?Ge.then(tt,tt):tt()}})}function Et(ae,de,Ae){var Ge=Ie;return function(Me,Xe){if(Ge===dt)throw new Error("Generator is already running");if(Ge===pt){if(Me==="throw")throw Xe;return{value:Te,done:!0}}for(Ae.method=Me,Ae.arg=Xe;;){var tt=Ae.delegate;if(tt){var et=yn(tt,Ae);if(et){if(et===xt)continue;return et}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ge===Ie)throw Ge=pt,Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ge=dt;var it=qe(ae,de,Ae);if(it.type==="normal"){if(Ge=Ae.done?pt:gt,it.arg===xt)continue;return{value:it.arg,done:Ae.done}}it.type==="throw"&&(Ge=pt,Ae.method="throw",Ae.arg=it.arg)}}}function yn(ae,de){var Ae=de.method,Ge=ae.iterator[Ae];if(Ge===Te)return de.delegate=null,Ae==="throw"&&ae.iterator.return&&(de.method="return",de.arg=Te,yn(ae,de),de.method==="throw")||Ae!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ae+"' method")),xt;var Me=qe(Ge,ae.iterator,de.arg);if(Me.type==="throw")return de.method="throw",de.arg=Me.arg,de.delegate=null,xt;var Xe=Me.arg;return Xe?Xe.done?(de[ae.resultName]=Xe.value,de.next=ae.nextLoc,de.method!=="return"&&(de.method="next",de.arg=Te),de.delegate=null,xt):Xe:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,xt)}function Fn(ae){var de={tryLoc:ae[0]};1 in ae&&(de.catchLoc=ae[1]),2 in ae&&(de.finallyLoc=ae[2],de.afterLoc=ae[3]),this.tryEntries.push(de)}function Tn(ae){var de=ae.completion||{};de.type="normal",delete de.arg,ae.completion=de}function hn(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(Fn,this),this.reset(!0)}function _n(ae){if(ae||ae===""){var de=ae[D];if(de)return de.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var Ae=-1,Ge=function Me(){for(;++Ae=0;--Ge){var Me=this.tryEntries[Ge],Xe=Me.completion;if(Me.tryLoc==="root")return Ae("end");if(Me.tryLoc<=this.prev){var tt=Se.call(Me,"catchLoc"),et=Se.call(Me,"finallyLoc");if(tt&&et){if(this.prev=0;--Ae){var Ge=this.tryEntries[Ae];if(Ge.tryLoc<=this.prev&&Se.call(Ge,"finallyLoc")&&this.prev=0;--de){var Ae=this.tryEntries[de];if(Ae.finallyLoc===ae)return this.complete(Ae.completion,Ae.afterLoc),Tn(Ae),xt}},catch:function(ae){for(var de=this.tryEntries.length-1;de>=0;--de){var Ae=this.tryEntries[de];if(Ae.tryLoc===ae){var Ge=Ae.completion;if(Ge.type==="throw"){var Me=Ge.arg;Tn(Ae)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(ae,de,Ae){return this.delegate={iterator:_n(ae),resultName:de,nextLoc:Ae},this.method==="next"&&(this.arg=Te),xt}},ie}function sr(Te,ie,pe,Se,He,ne,D){try{var fe=Te[ne](D),Ee=fe.value}catch(_e){return void pe(_e)}fe.done?ie(Ee):Promise.resolve(Ee).then(Se,He)}function $t(Te){return function(){var ie=this,pe=arguments;return new Promise(function(Se,He){var ne=Te.apply(ie,pe);function D(Ee){sr(ne,Se,He,D,fe,"next",Ee)}function fe(Ee){sr(ne,Se,He,D,fe,"throw",Ee)}D(void 0)})}}function Ln(Te,ie){for(var pe=0;pe1&&arguments[1]!==void 0?arguments[1]:{};(function(gt,dt){if(!(gt instanceof dt))throw new TypeError("Cannot call a class as a function")})(this,Te),this.serverURL=A()(_e);var qe=Re.allowHttp===void 0?J.D.isAllowHttp():Re.allowHttp,Ie={};if(Re.appName&&(Ie["X-App-Name"]=Re.appName),Re.appVersion&&(Ie["X-App-Version"]=Re.appVersion),Re.authToken&&(Ie["X-Auth-Token"]=Re.authToken),Object.keys(Ie).length>0&&he.interceptors.request.use(function(gt){return gt.headers=Object.assign(gt.headers,Ie),gt}),this.serverURL.protocol()!=="https"&&!qe)throw new Error("Cannot connect to insecure horizon server")}var ie,pe,Se,He,ne,D,fe,Ee;return ie=Te,pe=[{key:"fetchTimebounds",value:(Ee=$t(On().mark(function _e(Re){var qe,Ie,gt=arguments;return On().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(qe=gt.length>1&>[1]!==void 0&>[1],!(Ie=le(this.serverURL.hostname()))){dt.next=4;break}return dt.abrupt("return",{minTime:0,maxTime:Ie+Re});case 4:if(!qe){dt.next=6;break}return dt.abrupt("return",{minTime:0,maxTime:Math.floor(new Date().getTime()/1e3)+Re});case 6:return dt.next=8,he.get(A()(this.serverURL).toString());case 8:return dt.next=10,this.fetchTimebounds(Re,!0);case 10:return dt.abrupt("return",dt.sent);case 11:case"end":return dt.stop()}},_e,this)})),function(_e){return Ee.apply(this,arguments)})},{key:"fetchBaseFee",value:(fe=$t(On().mark(function _e(){var Re;return On().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,this.feeStats();case 2:return Re=qe.sent,qe.abrupt("return",parseInt(Re.last_ledger_base_fee,10)||100);case 4:case"end":return qe.stop()}},_e,this)})),function(){return fe.apply(this,arguments)})},{key:"feeStats",value:(D=$t(On().mark(function _e(){var Re;return On().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return(Re=new M(A()(this.serverURL))).filter.push(["fee_stats"]),qe.abrupt("return",Re.call());case 3:case"end":return qe.stop()}},_e,this)})),function(){return D.apply(this,arguments)})},{key:"submitTransaction",value:(ne=$t(On().mark(function _e(Re){var qe,Ie=arguments;return On().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if((Ie.length>1&&Ie[1]!==void 0?Ie[1]:{skipMemoRequiredCheck:!1}).skipMemoRequiredCheck){gt.next=4;break}return gt.next=4,this.checkMemoRequired(Re);case 4:return qe=encodeURIComponent(Re.toEnvelope().toXDR().toString("base64")),gt.abrupt("return",he.post(A()(this.serverURL).segment("transactions").toString(),"tx=".concat(qe),{timeout:6e4}).then(function(dt){if(!dt.data.result_xdr)return dt.data;var pt,xt,Lt=o.xdr.TransactionResult.fromXDR(dt.data.result_xdr,"base64").result().value();return Lt.length&&(pt=Lt.map(function(bt,Xt){if(bt.value().switch().name!=="manageBuyOffer"&&bt.value().switch().name!=="manageSellOffer")return null;xt=!0;var sn,nn=new $(0),rn=new $(0),Yt=bt.value().value().success(),cn=Yt.offersClaimed().map(function(Tn){var hn=Tn.value(),_n="";switch(Tn.switch()){case o.xdr.ClaimAtomType.claimAtomTypeV0():_n=o.StrKey.encodeEd25519PublicKey(hn.sellerEd25519());break;case o.xdr.ClaimAtomType.claimAtomTypeOrderBook():_n=o.StrKey.encodeEd25519PublicKey(hn.sellerId().ed25519());break;default:throw new Error("Invalid offer result type: "+Tn.switch())}var ae=new $(hn.amountBought().toString()),de=new $(hn.amountSold().toString());nn=nn.plus(de),rn=rn.plus(ae);var Ae=o.Asset.fromOperation(hn.assetSold()),Ge=o.Asset.fromOperation(hn.assetBought()),Me={type:Ae.getAssetType(),assetCode:Ae.getCode(),issuer:Ae.getIssuer()},Xe={type:Ge.getAssetType(),assetCode:Ge.getCode(),issuer:Ge.getIssuer()};return{sellerId:_n,offerId:hn.offerId().toString(),assetSold:Me,amountSold:$n(de),assetBought:Xe,amountBought:$n(ae)}}),dn=Yt.offer().switch().name;if(typeof Yt.offer().value=="function"&&Yt.offer().value()){var Et=Yt.offer().value();sn={offerId:Et.offerId().toString(),selling:{},buying:{},amount:$n(Et.amount().toString()),price:{n:Et.price().n(),d:Et.price().d()}};var yn=o.Asset.fromOperation(Et.selling());sn.selling={type:yn.getAssetType(),assetCode:yn.getCode(),issuer:yn.getIssuer()};var Fn=o.Asset.fromOperation(Et.buying());sn.buying={type:Fn.getAssetType(),assetCode:Fn.getCode(),issuer:Fn.getIssuer()}}return{offersClaimed:cn,effect:dn,operationIndex:Xt,currentOffer:sn,amountBought:$n(nn),amountSold:$n(rn),isFullyOpen:!cn.length&&dn!=="manageOfferDeleted",wasPartiallyFilled:!!cn.length&&dn!=="manageOfferDeleted",wasImmediatelyFilled:!!cn.length&&dn==="manageOfferDeleted",wasImmediatelyDeleted:!cn.length&&dn==="manageOfferDeleted"}}).filter(function(bt){return!!bt})),Object.assign({},dt.data,{offerResults:xt?pt:void 0})}).catch(function(dt){return dt instanceof Error?Promise.reject(dt):Promise.reject(new G.Fz("Transaction submission failed. Server responded: ".concat(dt.status," ").concat(dt.statusText),dt.data))}));case 6:case"end":return gt.stop()}},_e,this)})),function(_e){return ne.apply(this,arguments)})},{key:"accounts",value:function(){return new oe(A()(this.serverURL))}},{key:"claimableBalances",value:function(){return new $e(A()(this.serverURL))}},{key:"ledgers",value:function(){return new St(A()(this.serverURL))}},{key:"transactions",value:function(){return new Pn(A()(this.serverURL))}},{key:"offers",value:function(){return new wt(A()(this.serverURL))}},{key:"orderbook",value:function(_e,Re){return new En(A()(this.serverURL),_e,Re)}},{key:"trades",value:function(){return new pr(A()(this.serverURL))}},{key:"operations",value:function(){return new tn(A()(this.serverURL))}},{key:"liquidityPools",value:function(){return new Ce(A()(this.serverURL))}},{key:"strictReceivePaths",value:function(_e,Re,qe){return new rr(A()(this.serverURL),_e,Re,qe)}},{key:"strictSendPaths",value:function(_e,Re,qe){return new or(A()(this.serverURL),_e,Re,qe)}},{key:"payments",value:function(){return new ee(A()(this.serverURL))}},{key:"effects",value:function(){return new Nt(A()(this.serverURL))}},{key:"friendbot",value:function(_e){return new Zt(A()(this.serverURL),_e)}},{key:"assets",value:function(){return new qt(A()(this.serverURL))}},{key:"loadAccount",value:(He=$t(On().mark(function _e(Re){var qe;return On().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,this.accounts().accountId(Re).call();case 2:return qe=Ie.sent,Ie.abrupt("return",new p(qe));case 4:case"end":return Ie.stop()}},_e,this)})),function(_e){return He.apply(this,arguments)})},{key:"tradeAggregation",value:function(_e,Re,qe,Ie,gt,dt){return new dr(A()(this.serverURL),_e,Re,qe,Ie,gt,dt)}},{key:"checkMemoRequired",value:(Se=$t(On().mark(function _e(Re){var qe,Ie,gt,dt;return On().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(Re instanceof o.FeeBumpTransaction&&(Re=Re.innerTransaction),Re.memo.type==="none"){pt.next=3;break}return pt.abrupt("return");case 3:qe=new Set,Ie=0;case 5:if(!(Ie{i.r(a),i.d(a,{AccountRequiresMemoError:()=>t.hs,BadRequestError:()=>t.oY,BadResponseError:()=>t.Fz,Config:()=>s.D,ContractSpec:()=>k.o,Federation:()=>c,Friendbot:()=>h,Horizon:()=>b,NetworkError:()=>t.F7,NotFoundError:()=>t.dR,SorobanRpc:()=>p,StellarToml:()=>e,Utils:()=>o.c,WebAuth:()=>u,default:()=>y});var t=i(6086),s=i(7939),o=i(1557),e=i(4700),c=i(2761),u=i(273),h=i(197),b=i(6881),p=i(8491),k=i(936),d=i(4172),w={};for(const _ in d)["default","Config","Utils","StellarToml","Federation","WebAuth","Friendbot","Horizon","SorobanRpc","ContractSpec","AccountRequiresMemoError","BadRequestError","BadResponseError","NetworkError","NotFoundError"].indexOf(_)<0&&(w[_]=()=>d[_]);i.d(a,w);const y=(f=i.hmd(f)).exports},8491:(f,a,i)=>{var t;i.r(a),i.d(a,{Api:()=>t,AxiosClient:()=>h,Durability:()=>be,Server:()=>Be,assembleTransaction:()=>U,default:()=>he,parseRawEvents:()=>j,parseRawSimulation:()=>Q}),function(le){var ge=function(Ue){return Ue.SUCCESS="SUCCESS",Ue.NOT_FOUND="NOT_FOUND",Ue.FAILED="FAILED",Ue}({});function Ne(Ue){return"transactionData"in Ue}le.GetTransactionStatus=ge,le.isSimulationError=function(Ue){return"error"in Ue},le.isSimulationSuccess=Ne,le.isSimulationRestore=function(Ue){return Ne(Ue)&&"restorePreamble"in Ue&&!!Ue.restorePreamble.transactionData},le.isSimulationRaw=function(Ue){return!Ue._parsed}}(t||(t={}));var s=i(4998),o=i.n(s),e=i(4172),c=i(1257),u=i(4147).i8;const h=c.Z.create({headers:{"X-Client-Name":"js-soroban-client","X-Client-Version":u}});function b(le){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},b(le)}function p(){p=function(){return ge};var le,ge={},Ne=Object.prototype,Ue=Ne.hasOwnProperty,Le=Object.defineProperty||function(V,Y,ke){V[Y]=ke.value},De=typeof Symbol=="function"?Symbol:{},Fe=De.iterator||"@@iterator",Oe=De.asyncIterator||"@@asyncIterator",We=De.toStringTag||"@@toStringTag";function ot(V,Y,ke){return Object.defineProperty(V,Y,{value:ke,enumerable:!0,configurable:!0,writable:!0}),V[Y]}try{ot({},"")}catch{ot=function(Y,ke,$e){return Y[ke]=$e}}function Ke(V,Y,ke,$e){var ze=Y&&Y.prototype instanceof N?Y:N,je=Object.create(ze.prototype),ut=new we($e||[]);return Le(je,"_invoke",{value:vt(V,ke,ut)}),je}function B(V,Y,ke){try{return{type:"normal",arg:V.call(Y,ke)}}catch($e){return{type:"throw",arg:$e}}}ge.wrap=Ke;var H="suspendedStart",M="suspendedYield",J="executing",ue="completed",F={};function N(){}function q(){}function I(){}var K={};ot(K,Fe,function(){return this});var oe=Object.getPrototypeOf,ye=oe&&oe(oe(xe([])));ye&&ye!==Ne&&Ue.call(ye,Fe)&&(K=ye);var Pe=I.prototype=N.prototype=Object.create(K);function rt(V){["next","throw","return"].forEach(function(Y){ot(V,Y,function(ke){return this._invoke(Y,ke)})})}function lt(V,Y){function ke(ze,je,ut,nt){var at=B(V[ze],V,je);if(at.type!=="throw"){var It=at.arg,Nt=It.value;return Nt&&b(Nt)=="object"&&Ue.call(Nt,"__await")?Y.resolve(Nt.__await).then(function(Rt){ke("next",Rt,ut,nt)},function(Rt){ke("throw",Rt,ut,nt)}):Y.resolve(Nt).then(function(Rt){It.value=Rt,ut(It)},function(Rt){return ke("throw",Rt,ut,nt)})}nt(at.arg)}var $e;Le(this,"_invoke",{value:function(ze,je){function ut(){return new Y(function(nt,at){ke(ze,je,nt,at)})}return $e=$e?$e.then(ut,ut):ut()}})}function vt(V,Y,ke){var $e=H;return function(ze,je){if($e===J)throw new Error("Generator is already running");if($e===ue){if(ze==="throw")throw je;return{value:le,done:!0}}for(ke.method=ze,ke.arg=je;;){var ut=ke.delegate;if(ut){var nt=_t(ut,ke);if(nt){if(nt===F)continue;return nt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if($e===H)throw $e=ue,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);$e=J;var at=B(V,Y,ke);if(at.type==="normal"){if($e=ke.done?ue:M,at.arg===F)continue;return{value:at.arg,done:ke.done}}at.type==="throw"&&($e=ue,ke.method="throw",ke.arg=at.arg)}}}function _t(V,Y){var ke=Y.method,$e=V.iterator[ke];if($e===le)return Y.delegate=null,ke==="throw"&&V.iterator.return&&(Y.method="return",Y.arg=le,_t(V,Y),Y.method==="throw")||ke!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+ke+"' method")),F;var ze=B($e,V.iterator,Y.arg);if(ze.type==="throw")return Y.method="throw",Y.arg=ze.arg,Y.delegate=null,F;var je=ze.arg;return je?je.done?(Y[V.resultName]=je.value,Y.next=V.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=le),Y.delegate=null,F):je:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,F)}function qt(V){var Y={tryLoc:V[0]};1 in V&&(Y.catchLoc=V[1]),2 in V&&(Y.finallyLoc=V[2],Y.afterLoc=V[3]),this.tryEntries.push(Y)}function me(V){var Y=V.completion||{};Y.type="normal",delete Y.arg,V.completion=Y}function we(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(qt,this),this.reset(!0)}function xe(V){if(V||V===""){var Y=V[Fe];if(Y)return Y.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var ke=-1,$e=function ze(){for(;++ke=0;--$e){var ze=this.tryEntries[$e],je=ze.completion;if(ze.tryLoc==="root")return ke("end");if(ze.tryLoc<=this.prev){var ut=Ue.call(ze,"catchLoc"),nt=Ue.call(ze,"finallyLoc");if(ut&&nt){if(this.prev=0;--ke){var $e=this.tryEntries[ke];if($e.tryLoc<=this.prev&&Ue.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var ze=$e;break}}ze&&(V==="break"||V==="continue")&&ze.tryLoc<=Y&&Y<=ze.finallyLoc&&(ze=null);var je=ze?ze.completion:{};return je.type=V,je.arg=Y,ze?(this.method="next",this.next=ze.finallyLoc,F):this.complete(je)},complete:function(V,Y){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Y&&(this.next=Y),F},finish:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.finallyLoc===V)return this.complete(ke.completion,ke.afterLoc),me(ke),F}},catch:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.tryLoc===V){var $e=ke.completion;if($e.type==="throw"){var ze=$e.arg;me(ke)}return ze}}throw new Error("illegal catch attempt")},delegateYield:function(V,Y,ke){return this.delegate={iterator:xe(V),resultName:Y,nextLoc:ke},this.method==="next"&&(this.arg=le),F}},ge}function k(le,ge,Ne,Ue,Le,De,Fe){try{var Oe=le[De](Fe),We=Oe.value}catch(ot){return void Ne(ot)}Oe.done?ge(We):Promise.resolve(We).then(Ue,Le)}function d(le){return function(){var ge=this,Ne=arguments;return new Promise(function(Ue,Le){var De=le.apply(ge,Ne);function Fe(We){k(De,Ue,Le,Fe,Oe,"next",We)}function Oe(We){k(De,Ue,Le,Fe,Oe,"throw",We)}Fe(void 0)})}}function w(le,ge){return y.apply(this,arguments)}function y(){return y=d(p().mark(function le(ge,Ne){var Ue,Le,De,Fe,Oe,We=arguments;return p().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:for(Ue=We.length,Le=new Array(Ue>2?Ue-2:0),De=2;De0?We:Ue.result.auth}))}return Fe}function Z(le){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},Z(le)}function se(le,ge){var Ne=typeof Symbol<"u"&&le[Symbol.iterator]||le["@@iterator"];if(!Ne){if(Array.isArray(le)||(Ne=function(We,ot){if(We){if(typeof We=="string")return te(We,ot);var Ke=Object.prototype.toString.call(We).slice(8,-1);if(Ke==="Object"&&We.constructor&&(Ke=We.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(We);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return te(We,ot)}}(le))||ge&&le&&typeof le.length=="number"){Ne&&(le=Ne);var Ue=0,Le=function(){};return{s:Le,n:function(){return Ue>=le.length?{done:!0}:{done:!1,value:le[Ue++]}},e:function(We){throw We},f:Le}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var De,Fe=!0,Oe=!1;return{s:function(){Ne=Ne.call(le)},n:function(){var We=Ne.next();return Fe=We.done,We},e:function(We){Oe=!0,De=We},f:function(){try{Fe||Ne.return==null||Ne.return()}finally{if(Oe)throw De}}}}function te(le,ge){(ge==null||ge>le.length)&&(ge=le.length);for(var Ne=0,Ue=new Array(ge);Ne=0;--$e){var ze=this.tryEntries[$e],je=ze.completion;if(ze.tryLoc==="root")return ke("end");if(ze.tryLoc<=this.prev){var ut=Ue.call(ze,"catchLoc"),nt=Ue.call(ze,"finallyLoc");if(ut&&nt){if(this.prev=0;--ke){var $e=this.tryEntries[ke];if($e.tryLoc<=this.prev&&Ue.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var ze=$e;break}}ze&&(V==="break"||V==="continue")&&ze.tryLoc<=Y&&Y<=ze.finallyLoc&&(ze=null);var je=ze?ze.completion:{};return je.type=V,je.arg=Y,ze?(this.method="next",this.next=ze.finallyLoc,F):this.complete(je)},complete:function(V,Y){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Y&&(this.next=Y),F},finish:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.finallyLoc===V)return this.complete(ke.completion,ke.afterLoc),me(ke),F}},catch:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.tryLoc===V){var $e=ke.completion;if($e.type==="throw"){var ze=$e.arg;me(ke)}return ze}}throw new Error("illegal catch attempt")},delegateYield:function(V,Y,ke){return this.delegate={iterator:xe(V),resultName:Y,nextLoc:ke},this.method==="next"&&(this.arg=le),F}},ge}function z(le,ge,Ne,Ue,Le,De,Fe){try{var Oe=le[De](Fe),We=Oe.value}catch(ot){return void Ne(ot)}Oe.done?ge(We):Promise.resolve(We).then(Ue,Le)}function G(le){return function(){var ge=this,Ne=arguments;return new Promise(function(Ue,Le){var De=le.apply(ge,Ne);function Fe(We){z(De,Ue,Le,Fe,Oe,"next",We)}function Oe(We){z(De,Ue,Le,Fe,Oe,"throw",We)}Fe(void 0)})}}function re(le,ge){for(var Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:{};if(function(ye,Pe){if(!(ye instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,le),this.serverURL=o()(K),oe.headers&&Object.keys(oe.headers).length===0&&h.interceptors.request.use(function(ye){return ye.headers=Object.assign(ye.headers,oe.headers),ye}),this.serverURL.protocol()!=="https"&&!oe.allowHttp)throw new Error("Cannot connect to insecure Soroban RPC server if `allowHttp` isn't set")}var ge,Ne,Ue,Le,De,Fe,Oe,We,ot,Ke,B,H,M,J,ue,F,N,q,I;return ge=le,Ne=[{key:"getAccount",value:(I=G(O().mark(function K(oe){var ye,Pe,rt;return O().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return ye=e.xdr.LedgerKey.account(new e.xdr.LedgerKeyAccount({accountId:e.Keypair.fromPublicKey(oe).xdrPublicKey()})),lt.next=3,this.getLedgerEntries(ye);case 3:if((Pe=lt.sent).entries.length!==0){lt.next=6;break}return lt.abrupt("return",Promise.reject({code:404,message:"Account not found: ".concat(oe)}));case 6:return rt=Pe.entries[0].val.account(),lt.abrupt("return",new e.Account(oe,rt.seqNum().toString()));case 8:case"end":return lt.stop()}},K,this)})),function(K){return I.apply(this,arguments)})},{key:"getHealth",value:(q=G(O().mark(function K(){return O().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",w(this.serverURL.toString(),"getHealth"));case 1:case"end":return oe.stop()}},K,this)})),function(){return q.apply(this,arguments)})},{key:"getContractData",value:(N=G(O().mark(function K(oe,ye){var Pe,rt,lt,vt,_t=arguments;return O().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(Pe=_t.length>2&&_t[2]!==void 0?_t[2]:be.Persistent,typeof oe!="string"){qt.next=5;break}rt=new e.Contract(oe).address().toScAddress(),qt.next=14;break;case 5:if(!(oe instanceof e.Address)){qt.next=9;break}rt=oe.toScAddress(),qt.next=14;break;case 9:if(!(oe instanceof e.Contract)){qt.next=13;break}rt=oe.address().toScAddress(),qt.next=14;break;case 13:throw new TypeError("unknown contract type: ".concat(oe));case 14:qt.t0=Pe,qt.next=qt.t0===be.Temporary?17:qt.t0===be.Persistent?19:21;break;case 17:return lt=e.xdr.ContractDataDurability.temporary(),qt.abrupt("break",22);case 19:return lt=e.xdr.ContractDataDurability.persistent(),qt.abrupt("break",22);case 21:throw new TypeError("invalid durability: ".concat(Pe));case 22:return vt=e.xdr.LedgerKey.contractData(new e.xdr.LedgerKeyContractData({key:ye,contract:rt,durability:lt})),qt.abrupt("return",this.getLedgerEntries(vt).then(function(me){return me.entries.length===0?Promise.reject({code:404,message:"Contract data not found. Contract: ".concat(e.Address.fromScAddress(rt).toString(),", Key: ").concat(ye.toXDR("base64"),", Durability: ").concat(Pe)}):me.entries[0]}));case 24:case"end":return qt.stop()}},K,this)})),function(K,oe){return N.apply(this,arguments)})},{key:"getLedgerEntries",value:(F=G(O().mark(function K(){var oe=arguments;return O().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",this._getLedgerEntries.apply(this,oe).then(L));case 1:case"end":return ye.stop()}},K,this)})),function(){return F.apply(this,arguments)})},{key:"_getLedgerEntries",value:(ue=G(O().mark(function K(){var oe,ye,Pe,rt=arguments;return O().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:for(oe=rt.length,ye=new Array(oe),Pe=0;Pe{i.r(a),i.d(a,{Api:()=>{},Resolver:()=>w,STELLAR_TOML_MAX_SIZE:()=>k});var t=i(1257),s=i(5424),o=i.n(s),e=i(7939);function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(y)}function u(){u=function(){return _};var y,_={},x=Object.prototype,E=x.hasOwnProperty,S=Object.defineProperty||function(Le,De,Fe){Le[De]=Fe.value},C=typeof Symbol=="function"?Symbol:{},T=C.iterator||"@@iterator",R=C.asyncIterator||"@@asyncIterator",W=C.toStringTag||"@@toStringTag";function j(Le,De,Fe){return Object.defineProperty(Le,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}),Le[De]}try{j({},"")}catch{j=function(De,Fe,Oe){return De[Fe]=Oe}}function L(Le,De,Fe,Oe){var We=De&&De.prototype instanceof P?De:P,ot=Object.create(We.prototype),Ke=new Ne(Oe||[]);return S(ot,"_invoke",{value:ve(Le,Fe,Ke)}),ot}function Q(Le,De,Fe){try{return{type:"normal",arg:Le.call(De,Fe)}}catch(Oe){return{type:"throw",arg:Oe}}}_.wrap=L;var U="suspendedStart",Z="suspendedYield",se="executing",te="completed",$={};function P(){}function A(){}function O(){}var z={};j(z,T,function(){return this});var G=Object.getPrototypeOf,re=G&&G(G(Ue([])));re&&re!==x&&E.call(re,T)&&(z=re);var X=O.prototype=P.prototype=Object.create(z);function be(Le){["next","throw","return"].forEach(function(De){j(Le,De,function(Fe){return this._invoke(De,Fe)})})}function Be(Le,De){function Fe(We,ot,Ke,B){var H=Q(Le[We],Le,ot);if(H.type!=="throw"){var M=H.arg,J=M.value;return J&&c(J)=="object"&&E.call(J,"__await")?De.resolve(J.__await).then(function(ue){Fe("next",ue,Ke,B)},function(ue){Fe("throw",ue,Ke,B)}):De.resolve(J).then(function(ue){M.value=ue,Ke(M)},function(ue){return Fe("throw",ue,Ke,B)})}B(H.arg)}var Oe;S(this,"_invoke",{value:function(We,ot){function Ke(){return new De(function(B,H){Fe(We,ot,B,H)})}return Oe=Oe?Oe.then(Ke,Ke):Ke()}})}function ve(Le,De,Fe){var Oe=U;return function(We,ot){if(Oe===se)throw new Error("Generator is already running");if(Oe===te){if(We==="throw")throw ot;return{value:y,done:!0}}for(Fe.method=We,Fe.arg=ot;;){var Ke=Fe.delegate;if(Ke){var B=he(Ke,Fe);if(B){if(B===$)continue;return B}}if(Fe.method==="next")Fe.sent=Fe._sent=Fe.arg;else if(Fe.method==="throw"){if(Oe===U)throw Oe=te,Fe.arg;Fe.dispatchException(Fe.arg)}else Fe.method==="return"&&Fe.abrupt("return",Fe.arg);Oe=se;var H=Q(Le,De,Fe);if(H.type==="normal"){if(Oe=Fe.done?te:Z,H.arg===$)continue;return{value:H.arg,done:Fe.done}}H.type==="throw"&&(Oe=te,Fe.method="throw",Fe.arg=H.arg)}}}function he(Le,De){var Fe=De.method,Oe=Le.iterator[Fe];if(Oe===y)return De.delegate=null,Fe==="throw"&&Le.iterator.return&&(De.method="return",De.arg=y,he(Le,De),De.method==="throw")||Fe!=="return"&&(De.method="throw",De.arg=new TypeError("The iterator does not provide a '"+Fe+"' method")),$;var We=Q(Oe,Le.iterator,De.arg);if(We.type==="throw")return De.method="throw",De.arg=We.arg,De.delegate=null,$;var ot=We.arg;return ot?ot.done?(De[Le.resultName]=ot.value,De.next=Le.nextLoc,De.method!=="return"&&(De.method="next",De.arg=y),De.delegate=null,$):ot:(De.method="throw",De.arg=new TypeError("iterator result is not an object"),De.delegate=null,$)}function le(Le){var De={tryLoc:Le[0]};1 in Le&&(De.catchLoc=Le[1]),2 in Le&&(De.finallyLoc=Le[2],De.afterLoc=Le[3]),this.tryEntries.push(De)}function ge(Le){var De=Le.completion||{};De.type="normal",delete De.arg,Le.completion=De}function Ne(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(le,this),this.reset(!0)}function Ue(Le){if(Le||Le===""){var De=Le[T];if(De)return De.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Fe=-1,Oe=function We(){for(;++Fe=0;--Oe){var We=this.tryEntries[Oe],ot=We.completion;if(We.tryLoc==="root")return Fe("end");if(We.tryLoc<=this.prev){var Ke=E.call(We,"catchLoc"),B=E.call(We,"finallyLoc");if(Ke&&B){if(this.prev=0;--Fe){var Oe=this.tryEntries[Fe];if(Oe.tryLoc<=this.prev&&E.call(Oe,"finallyLoc")&&this.prev=0;--De){var Fe=this.tryEntries[De];if(Fe.finallyLoc===Le)return this.complete(Fe.completion,Fe.afterLoc),ge(Fe),$}},catch:function(Le){for(var De=this.tryEntries.length-1;De>=0;--De){var Fe=this.tryEntries[De];if(Fe.tryLoc===Le){var Oe=Fe.completion;if(Oe.type==="throw"){var We=Oe.arg;ge(Fe)}return We}}throw new Error("illegal catch attempt")},delegateYield:function(Le,De,Fe){return this.delegate={iterator:Ue(Le),resultName:De,nextLoc:Fe},this.method==="next"&&(this.arg=y),$}},_}function h(y,_,x,E,S,C,T){try{var R=y[C](T),W=R.value}catch(j){return void x(j)}R.done?_(W):Promise.resolve(W).then(E,S)}function b(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,p(E.key),E)}}function p(y){var _=function(x,E){if(c(x)!="object"||!x)return x;var S=x[Symbol.toPrimitive];if(S!==void 0){var C=S.call(x,E||"default");if(c(C)!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(x)}(y,"string");return c(_)=="symbol"?_:String(_)}var k=102400,d=t.Z.CancelToken,w=function(){function y(){(function(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")})(this,y)}var _,x,E,S,C;return _=y,x=null,E=[{key:"resolve",value:(S=u().mark(function T(R){var W,j,L,Q,U=arguments;return u().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return j=(W=U.length>1&&U[1]!==void 0?U[1]:{}).allowHttp===void 0?e.D.isAllowHttp():W.allowHttp,L=W.timeout===void 0?e.D.getTimeout():W.timeout,Q=j?"http":"https",Z.abrupt("return",t.Z.get("".concat(Q,"://").concat(R,"/.well-known/stellar.toml"),{maxContentLength:k,cancelToken:L?new d(function(se){return setTimeout(function(){return se("timeout of ".concat(L,"ms exceeded"))},L)}):void 0,timeout:L}).then(function(se){try{var te=o().parse(se.data);return Promise.resolve(te)}catch($){return Promise.reject(new Error("stellar.toml is invalid - Parsing error on line ".concat($.line,", column ").concat($.column,": ").concat($.message)))}}).catch(function(se){throw se.message.match(/^maxContentLength size/)?new Error("stellar.toml file exceeds allowed size of ".concat(k)):se}));case 5:case"end":return Z.stop()}},T)}),C=function(){var T=this,R=arguments;return new Promise(function(W,j){var L=S.apply(T,R);function Q(Z){h(L,W,j,Q,U,"next",Z)}function U(Z){h(L,W,j,Q,U,"throw",Z)}Q(void 0)})},function(T){return C.apply(this,arguments)})}],x&&b(_.prototype,x),E&&b(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}()},1557:(f,a,i)=>{function t(c){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t(c)}function s(c,u){for(var h=0;he});var e=function(){function c(){(function(p,k){if(!(p instanceof k))throw new TypeError("Cannot call a class as a function")})(this,c)}var u,h,b;return u=c,b=[{key:"validateTimebounds",value:function(p){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!p.timeBounds)return!1;var d=Math.floor(Date.now()/1e3),w=p.timeBounds,y=w.minTime,_=w.maxTime;return d>=Number.parseInt(y,10)-k&&d<=Number.parseInt(_,10)+k}}],(h=null)&&s(u.prototype,h),b&&s(u,b),Object.defineProperty(u,"prototype",{writable:!1}),c}()},273:(f,a,i)=>{i.r(a),i.d(a,{InvalidChallengeError:()=>w,buildChallengeTx:()=>W,gatherTxSigners:()=>Z,readChallengeTx:()=>j,verifyChallengeTxSigners:()=>Q,verifyChallengeTxThreshold:()=>L,verifyTxSignedBy:()=>U});var t=i(1798),s=i.n(t),o=i(4172),e=i(1557);function c(se){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},c(se)}function u(se){var te=p();return function(){var $,P=d(se);if(te){var A=d(this).constructor;$=Reflect.construct(P,arguments,A)}else $=P.apply(this,arguments);return function(O,z){if(z&&(c(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(O)}(this,$)}}function h(se){var te=typeof Map=="function"?new Map:void 0;return h=function($){if($===null||!function(A){try{return Function.toString.call(A).indexOf("[native code]")!==-1}catch{return typeof A=="function"}}($))return $;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(te!==void 0){if(te.has($))return te.get($);te.set($,P)}function P(){return b($,arguments,d(this).constructor)}return P.prototype=Object.create($.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),k(P,$)},h(se)}function b(se,te,$){return b=p()?Reflect.construct.bind():function(P,A,O){var z=[null];z.push.apply(z,A);var G=new(Function.bind.apply(P,z));return O&&k(G,O.prototype),G},b.apply(null,arguments)}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(se,te){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,P){return $.__proto__=P,$},k(se,te)}function d(se){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},d(se)}var w=function(se){(function(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),O&&k(A,O)})(P,se);var te,$=u(P);function P(A){var O;(function(G,re){if(!(G instanceof re))throw new TypeError("Cannot call a class as a function")})(this,P);var z=(this instanceof P?this.constructor:void 0).prototype;return(O=$.call(this,A)).__proto__=z,O.constructor=P,O.name="InvalidChallengeError",O}return te=P,Object.defineProperty(te,"prototype",{writable:!1}),te}(h(Error)),y=i(8764).Buffer;function _(se){return function(te){if(Array.isArray(te))return T(te)}(se)||R(se)||C(se)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`;function aceeditor_value_binding(l){code=l,$$invalidate(0,code)}function aceeditor_value_binding_1(l){code_mainnet=l,$$invalidate(3,code_mainnet)}function aceeditor_value_binding_2(l){bottom_code=l,$$invalidate(1,bottom_code)}function aceeditor_value_binding_3(l){bottom_code_mainnet=l,$$invalidate(2,bottom_code_mainnet)}return[code,bottom_code,bottom_code_mainnet,code_mainnet,$testnet,executeCode,executeCodeMainnet,aceeditor_value_binding,aceeditor_value_binding_1,aceeditor_value_binding_2,aceeditor_value_binding_3]}class SorobanPage extends SvelteComponent{constructor(r){super(),init(this,r,instance$8,create_fragment$8,safe_not_equal,{})}}var stellarSdk_min={exports:{}};/*! For license information please see stellar-sdk.min.js.LICENSE.txt */(function(l,r){(function(g,p){l.exports=p()})(self,()=>(()=>{var g={6263:function(f){var a;a=()=>(()=>{var i={899:(o,e,c)=>{const u=c(10);o.exports=u},10:(o,e,c)=>{c.r(e),c.d(e,{Array:()=>le,Bool:()=>G,Double:()=>O,Enum:()=>Le,Float:()=>A,Hyper:()=>se,Int:()=>L,LargeInt:()=>Z,Opaque:()=>Be,Option:()=>Ne,Quadruple:()=>z,Reference:()=>De,String:()=>X,Struct:()=>Fe,Union:()=>We,UnsignedHyper:()=>P,UnsignedInt:()=>$,VarArray:()=>ge,VarOpaque:()=>he,Void:()=>Ue,config:()=>N});class u extends TypeError{constructor(I){super(`XDR Write Error: ${I}`)}}class h extends TypeError{constructor(I){super(`XDR Read Error: ${I}`)}}class b extends TypeError{constructor(I){super(`XDR Type Definition Error: ${I}`)}}class m extends b{constructor(){super("method not implemented, it should be overloaded in the descendant class.")}}var k=c(764).lW;class d{constructor(I){jn(this,"_buffer");jn(this,"_length");jn(this,"_index");if(!k.isBuffer(I)){if(!(I instanceof Array))throw new h("source not specified");I=k.from(I)}this._buffer=I,this._length=I.length,this._index=0}get eof(){return this._index===this._length}advance(I){const K=this._index;if(this._index+=I,this._length0){for(let ye=0;ye0){const ye=this.alloc(oe);this._buffer.fill(0,ye,this._index)}}writeInt32BE(I){const K=this.alloc(4);this._buffer.writeInt32BE(I,K)}writeUInt32BE(I){const K=this.alloc(4);this._buffer.writeUInt32BE(I,K)}writeBigInt64BE(I){const K=this.alloc(8);this._buffer.writeBigInt64BE(I,K)}writeBigUInt64BE(I){const K=this.alloc(8);this._buffer.writeBigUInt64BE(I,K)}writeFloatBE(I){const K=this.alloc(4);this._buffer.writeFloatBE(I,K)}writeDoubleBE(I){const K=this.alloc(8);this._buffer.writeDoubleBE(I,K)}}jn(_,"bufferChunkSize",y);var x=c(764).lW;class E{toXDR(I="raw"){if(!this.write)return this.constructor.toXDR(this,I);const K=new _;return this.write(this,K),R(K.finalize(),I)}fromXDR(I,K="raw"){if(!this.read)return this.constructor.fromXDR(I,K);const oe=new d(W(I,K)),ye=this.read(oe);return oe.ensureInputConsumed(),ye}validateXDR(I,K="raw"){try{return this.fromXDR(I,K),!0}catch{return!1}}static toXDR(I,K="raw"){const oe=new _;return this.write(I,oe),R(oe.finalize(),K)}static fromXDR(I,K="raw"){const oe=new d(W(I,K)),ye=this.read(oe);return oe.ensureInputConsumed(),ye}static validateXDR(I,K="raw"){try{return this.fromXDR(I,K),!0}catch{return!1}}}class S extends E{static read(I){throw new m}static write(I,K){throw new m}static isValid(I){return!1}}class C extends E{isValid(I){return!1}}class T extends TypeError{constructor(I){super(`Invalid format ${I}, must be one of "raw", "hex", "base64"`)}}function R(q,I){switch(I){case"raw":return q;case"hex":return q.toString("hex");case"base64":return q.toString("base64");default:throw new T(I)}}function W(q,I){switch(I){case"raw":return q;case"hex":return x.from(q,"hex");case"base64":return x.from(q,"base64");default:throw new T(I)}}const j=2147483647;class L extends S{static read(I){return I.readInt32BE()}static write(I,K){if(typeof I!="number")throw new u("not a number");if((0|I)!==I)throw new u("invalid i32 value");K.writeInt32BE(I)}static isValid(I){return typeof I=="number"&&(0|I)===I&&I>=-2147483648&&I<=j}}function Q(q,I,K){if(typeof q!="bigint")throw new TypeError("Expected bigint 'value', got "+typeof q);const oe=I/K;if(oe===1)return[q];if(K<32||K>128||oe!==2&&oe!==4&&oe!==8)throw new TypeError(`invalid bigint (${q}) and slice size (${I} -> ${K}) combination`);const ye=BigInt(K),Pe=new Array(oe);for(let rt=0;rt>=ye;return Pe}function U(q,I){if(I)return[0n,(1n<=lt&&rt<=vt)return rt;throw new TypeError(`bigint values [${K}] for ${function(_t,qt){return`${qt?"u":"i"}${_t}`}(oe,ye)} out of range [${lt}, ${vt}]: ${rt}`)}(I,this.size,this.unsigned)}get unsigned(){throw new m}get size(){throw new m}slice(I){return Q(this._value,this.size,I)}toString(){return this._value.toString()}toJSON(){return{_value:this._value.toString()}}toBigInt(){return BigInt(this._value)}static read(I){const{size:K}=this.prototype;return K===64?new this(I.readBigUInt64BE()):new this(...Array.from({length:K/64},()=>I.readBigUInt64BE()).reverse())}static write(I,K){if(I instanceof this)I=I._value;else if(typeof I!="bigint"||I>this.MAX_VALUE||I>32n)>>0}get size(){return 64}get unsigned(){return!1}static fromBits(I,K){return new this(I,K)}}se.defineIntBoundaries();const te=4294967295;class $ extends S{static read(I){return I.readUInt32BE()}static write(I,K){if(typeof I!="number"||!(I>=0&&I<=te)||I%1!=0)throw new u("invalid u32 value");K.writeUInt32BE(I)}static isValid(I){return typeof I=="number"&&I%1==0&&I>=0&&I<=te}}$.MAX_VALUE=te,$.MIN_VALUE=0;class P extends Z{constructor(...I){super(I)}get low(){return Number(0xffffffffn&this._value)<<0}get high(){return Number(this._value>>32n)>>0}get size(){return 64}get unsigned(){return!0}static fromBits(I,K){return new this(I,K)}}P.defineIntBoundaries();class A extends S{static read(I){return I.readFloatBE()}static write(I,K){if(typeof I!="number")throw new u("not a number");K.writeFloatBE(I)}static isValid(I){return typeof I=="number"}}class O extends S{static read(I){return I.readDoubleBE()}static write(I,K){if(typeof I!="number")throw new u("not a number");K.writeDoubleBE(I)}static isValid(I){return typeof I=="number"}}class z extends S{static read(){throw new b("quadruple not supported")}static write(){throw new b("quadruple not supported")}static isValid(){return!1}}class G extends S{static read(I){const K=L.read(I);switch(K){case 0:return!1;case 1:return!0;default:throw new h(`got ${K} when trying to read a bool`)}}static write(I,K){const oe=I?1:0;L.write(oe,K)}static isValid(I){return typeof I=="boolean"}}var re=c(764).lW;class X extends C{constructor(I=$.MAX_VALUE){super(),this._maxLength=I}read(I){const K=$.read(I);if(K>this._maxLength)throw new h(`saw ${K} length String, max allowed is ${this._maxLength}`);return I.read(K)}readString(I){return this.read(I).toString("utf8")}write(I,K){const oe=typeof I=="string"?re.byteLength(I,"utf8"):I.length;if(oe>this._maxLength)throw new u(`got ${I.length} bytes, max allowed is ${this._maxLength}`);$.write(oe,K),K.write(I,oe)}isValid(I){return typeof I=="string"?re.byteLength(I,"utf8")<=this._maxLength:!!(I instanceof Array||re.isBuffer(I))&&I.length<=this._maxLength}}var be=c(764).lW;class Be extends C{constructor(I){super(),this._length=I}read(I){return I.read(this._length)}write(I,K){const{length:oe}=I;if(oe!==this._length)throw new u(`got ${I.length} bytes, expected ${this._length}`);K.write(I,oe)}isValid(I){return be.isBuffer(I)&&I.length===this._length}}var ve=c(764).lW;class he extends C{constructor(I=$.MAX_VALUE){super(),this._maxLength=I}read(I){const K=$.read(I);if(K>this._maxLength)throw new h(`saw ${K} length VarOpaque, max allowed is ${this._maxLength}`);return I.read(K)}write(I,K){const{length:oe}=I;if(I.length>this._maxLength)throw new u(`got ${I.length} bytes, max allowed is ${this._maxLength}`);$.write(oe,K),K.write(I,oe)}isValid(I){return ve.isBuffer(I)&&I.length<=this._maxLength}}class le extends C{constructor(I,K){super(),this._childType=I,this._length=K}read(I){const K=new c.g.Array(this._length);for(let oe=0;oethis._maxLength)throw new h(`saw ${K} length VarArray, max allowed is ${this._maxLength}`);const oe=new Array(K);for(let ye=0;yethis._maxLength)throw new u(`got array of size ${I.length}, max allowed is ${this._maxLength}`);$.write(I.length,K);for(const oe of I)this._childType.write(oe,K)}isValid(I){if(!(I instanceof Array)||I.length>this._maxLength)return!1;for(const K of I)if(!this._childType.isValid(K))return!1;return!0}}class Ne extends S{constructor(I){super(),this._childType=I}read(I){if(G.read(I))return this._childType.read(I)}write(I,K){const oe=I!=null;G.write(oe,K),oe&&this._childType.write(I,K)}isValid(I){return I==null||this._childType.isValid(I)}}class Ue extends S{static read(){}static write(I){if(I!==void 0)throw new u("trying to write value to a void slot")}static isValid(I){return I===void 0}}class Le extends S{constructor(I,K){super(),this.name=I,this.value=K}static read(I){const K=L.read(I),oe=this._byValue[K];if(oe===void 0)throw new h(`unknown ${this.enumName} member for value ${K}`);return oe}static write(I,K){if(!(I instanceof this))throw new u(`unknown ${I} is not a ${this.enumName}`);L.write(I.value,K)}static isValid(I){return I instanceof this}static members(){return this._members}static values(){return Object.values(this._members)}static fromName(I){const K=this._members[I];if(!K)throw new TypeError(`${I} is not a member of ${this.enumName}`);return K}static fromValue(I){const K=this._byValue[I];if(K===void 0)throw new TypeError(`${I} is not a value of any member of ${this.enumName}`);return K}static create(I,K,oe){const ye=class extends Le{};ye.enumName=K,I.results[K]=ye,ye._members={},ye._byValue={};for(const[Pe,rt]of Object.entries(oe)){const lt=new ye(Pe,rt);ye._members[Pe]=lt,ye._byValue[rt]=lt,ye[Pe]=()=>lt}return ye}}class De extends S{resolve(){throw new b('"resolve" method should be implemented in the descendant class')}}class Fe extends S{constructor(I){super(),this._attributes=I||{}}static read(I){const K={};for(const[oe,ye]of this._fields)K[oe]=ye.read(I);return new this(K)}static write(I,K){if(!(I instanceof this))throw new u(`${I} is not a ${this.structName}`);for(const[oe,ye]of this._fields){const Pe=I._attributes[oe];ye.write(Pe,K)}}static isValid(I){return I instanceof this}static create(I,K,oe){const ye=class extends Fe{};ye.structName=K,I.results[K]=ye;const Pe=new Array(oe.length);for(let rt=0;rt{e.byteLength=function(w){var y=k(w),_=y[0],x=y[1];return 3*(_+x)/4-x},e.toByteArray=function(w){var y,_,x=k(w),E=x[0],S=x[1],C=new h(function(W,j,L){return 3*(j+L)/4-L}(0,E,S)),T=0,R=S>0?E-4:E;for(_=0;_>16&255,C[T++]=y>>8&255,C[T++]=255&y;return S===2&&(y=u[w.charCodeAt(_)]<<2|u[w.charCodeAt(_+1)]>>4,C[T++]=255&y),S===1&&(y=u[w.charCodeAt(_)]<<10|u[w.charCodeAt(_+1)]<<4|u[w.charCodeAt(_+2)]>>2,C[T++]=y>>8&255,C[T++]=255&y),C},e.fromByteArray=function(w){for(var y,_=w.length,x=_%3,E=[],S=16383,C=0,T=_-x;CT?T:C+S));return x===1?(y=w[_-1],E.push(c[y>>2]+c[y<<4&63]+"==")):x===2&&(y=(w[_-2]<<8)+w[_-1],E.push(c[y>>10]+c[y>>4&63]+c[y<<2&63]+"=")),E.join("")};for(var c=[],u=[],h=typeof Uint8Array<"u"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0;m<64;++m)c[m]=b[m],u[b.charCodeAt(m)]=m;function k(w){var y=w.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=w.indexOf("=");return _===-1&&(_=y),[_,_===y?0:4-_%4]}function d(w,y,_){for(var x,E,S=[],C=y;C<_;C+=3)x=(w[C]<<16&16711680)+(w[C+1]<<8&65280)+(255&w[C+2]),S.push(c[(E=x)>>18&63]+c[E>>12&63]+c[E>>6&63]+c[63&E]);return S.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},764:(o,e,c)=>{const u=c(742),h=c(645),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=d,e.h2=50;const m=2147483647;function k(F){if(F>m)throw new RangeError('The value "'+F+'" is invalid for option "size"');const N=new Uint8Array(F);return Object.setPrototypeOf(N,d.prototype),N}function d(F,N,q){if(typeof F=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(F)}return w(F,N,q)}function w(F,N,q){if(typeof F=="string")return function(oe,ye){if(typeof ye=="string"&&ye!==""||(ye="utf8"),!d.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);const Pe=0|C(oe,ye);let rt=k(Pe);const lt=rt.write(oe,ye);return lt!==Pe&&(rt=rt.slice(0,lt)),rt}(F,N);if(ArrayBuffer.isView(F))return function(oe){if(B(oe,Uint8Array)){const ye=new Uint8Array(oe);return E(ye.buffer,ye.byteOffset,ye.byteLength)}return x(oe)}(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(B(F,ArrayBuffer)||F&&B(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(B(F,SharedArrayBuffer)||F&&B(F.buffer,SharedArrayBuffer)))return E(F,N,q);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const I=F.valueOf&&F.valueOf();if(I!=null&&I!==F)return d.from(I,N,q);const K=function(oe){if(d.isBuffer(oe)){const ye=0|S(oe.length),Pe=k(ye);return Pe.length===0||oe.copy(Pe,0,0,ye),Pe}return oe.length!==void 0?typeof oe.length!="number"||H(oe.length)?k(0):x(oe):oe.type==="Buffer"&&Array.isArray(oe.data)?x(oe.data):void 0}(F);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return d.from(F[Symbol.toPrimitive]("string"),N,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}function y(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function _(F){return y(F),k(F<0?0:0|S(F))}function x(F){const N=F.length<0?0:0|S(F.length),q=k(N);for(let I=0;I=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return 0|F}function C(F,N){if(d.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||B(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const q=F.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&q===0)return 0;let K=!1;for(;;)switch(N){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return We(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*q;case"hex":return q>>>1;case"base64":return ot(F).length;default:if(K)return I?-1:We(F).length;N=(""+N).toLowerCase(),K=!0}}function T(F,N,q){let I=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0)<=(N>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return z(this,N,q);case"utf8":case"utf-8":return $(this,N,q);case"ascii":return A(this,N,q);case"latin1":case"binary":return O(this,N,q);case"base64":return te(this,N,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,N,q);default:if(I)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),I=!0}}function R(F,N,q){const I=F[N];F[N]=F[q],F[q]=I}function W(F,N,q,I,K){if(F.length===0)return-1;if(typeof q=="string"?(I=q,q=0):q>2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),H(q=+q)&&(q=K?0:F.length-1),q<0&&(q=F.length+q),q>=F.length){if(K)return-1;q=F.length-1}else if(q<0){if(!K)return-1;q=0}if(typeof N=="string"&&(N=d.from(N,I)),d.isBuffer(N))return N.length===0?-1:j(F,N,q,I,K);if(typeof N=="number")return N&=255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(F,N,q):Uint8Array.prototype.lastIndexOf.call(F,N,q):j(F,[N],q,I,K);throw new TypeError("val must be string, number or Buffer")}function j(F,N,q,I,K){let oe,ye=1,Pe=F.length,rt=N.length;if(I!==void 0&&((I=String(I).toLowerCase())==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(F.length<2||N.length<2)return-1;ye=2,Pe/=2,rt/=2,q/=2}function lt(vt,_t){return ye===1?vt[_t]:vt.readUInt16BE(_t*ye)}if(K){let vt=-1;for(oe=q;oePe&&(q=Pe-rt),oe=q;oe>=0;oe--){let vt=!0;for(let _t=0;_tK&&(I=K):I=K;const oe=N.length;let ye;for(I>oe/2&&(I=oe/2),ye=0;ye>8,rt=ye%256,lt.push(rt),lt.push(Pe);return lt}(N,F.length-q),F,q,I)}function te(F,N,q){return N===0&&q===F.length?u.fromByteArray(F):u.fromByteArray(F.slice(N,q))}function $(F,N,q){q=Math.min(F.length,q);const I=[];let K=N;for(;K239?4:oe>223?3:oe>191?2:1;if(K+Pe<=q){let rt,lt,vt,_t;switch(Pe){case 1:oe<128&&(ye=oe);break;case 2:rt=F[K+1],(192&rt)==128&&(_t=(31&oe)<<6|63&rt,_t>127&&(ye=_t));break;case 3:rt=F[K+1],lt=F[K+2],(192&rt)==128&&(192<)==128&&(_t=(15&oe)<<12|(63&rt)<<6|63<,_t>2047&&(_t<55296||_t>57343)&&(ye=_t));break;case 4:rt=F[K+1],lt=F[K+2],vt=F[K+3],(192&rt)==128&&(192<)==128&&(192&vt)==128&&(_t=(15&oe)<<18|(63&rt)<<12|(63<)<<6|63&vt,_t>65535&&_t<1114112&&(ye=_t))}}ye===null?(ye=65533,Pe=1):ye>65535&&(ye-=65536,I.push(ye>>>10&1023|55296),ye=56320|1023&ye),I.push(ye),K+=Pe}return function(oe){const ye=oe.length;if(ye<=P)return String.fromCharCode.apply(String,oe);let Pe="",rt=0;for(;rt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(F,N,q){return w(F,N,q)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(F,N,q){return function(I,K,oe){return y(I),I<=0?k(I):K!==void 0?typeof oe=="string"?k(I).fill(K,oe):k(I).fill(K):k(I)}(F,N,q)},d.allocUnsafe=function(F){return _(F)},d.allocUnsafeSlow=function(F){return _(F)},d.isBuffer=function(F){return F!=null&&F._isBuffer===!0&&F!==d.prototype},d.compare=function(F,N){if(B(F,Uint8Array)&&(F=d.from(F,F.offset,F.byteLength)),B(N,Uint8Array)&&(N=d.from(N,N.offset,N.byteLength)),!d.isBuffer(F)||!d.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(F===N)return 0;let q=F.length,I=N.length;for(let K=0,oe=Math.min(q,I);KI.length?(d.isBuffer(oe)||(oe=d.from(oe)),oe.copy(I,K)):Uint8Array.prototype.set.call(I,oe,K);else{if(!d.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(I,K)}K+=oe.length}return I},d.byteLength=C,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const F=this.length;if(F%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(F+=" ... "),""},b&&(d.prototype[b]=d.prototype.inspect),d.prototype.compare=function(F,N,q,I,K){if(B(F,Uint8Array)&&(F=d.from(F,F.offset,F.byteLength)),!d.isBuffer(F))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof F);if(N===void 0&&(N=0),q===void 0&&(q=F?F.length:0),I===void 0&&(I=0),K===void 0&&(K=this.length),N<0||q>F.length||I<0||K>this.length)throw new RangeError("out of range index");if(I>=K&&N>=q)return 0;if(I>=K)return-1;if(N>=q)return 1;if(this===F)return 0;let oe=(K>>>=0)-(I>>>=0),ye=(q>>>=0)-(N>>>=0);const Pe=Math.min(oe,ye),rt=this.slice(I,K),lt=F.slice(N,q);for(let vt=0;vt>>=0,isFinite(q)?(q>>>=0,I===void 0&&(I="utf8")):(I=q,q=void 0)}const K=this.length-N;if((q===void 0||q>K)&&(q=K),F.length>0&&(q<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let oe=!1;for(;;)switch(I){case"hex":return L(this,F,N,q);case"utf8":case"utf-8":return Q(this,F,N,q);case"ascii":case"latin1":case"binary":return U(this,F,N,q);case"base64":return Z(this,F,N,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,F,N,q);default:if(oe)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),oe=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function A(F,N,q){let I="";q=Math.min(F.length,q);for(let K=N;KI)&&(q=I);let K="";for(let oe=N;oeq)throw new RangeError("Trying to access beyond buffer length")}function X(F,N,q,I,K,oe){if(!d.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>K||NF.length)throw new RangeError("Index out of range")}function be(F,N,q,I,K){Le(N,I,K,F,q,7);let oe=Number(N&BigInt(4294967295));F[q++]=oe,oe>>=8,F[q++]=oe,oe>>=8,F[q++]=oe,oe>>=8,F[q++]=oe;let ye=Number(N>>BigInt(32)&BigInt(4294967295));return F[q++]=ye,ye>>=8,F[q++]=ye,ye>>=8,F[q++]=ye,ye>>=8,F[q++]=ye,q}function Be(F,N,q,I,K){Le(N,I,K,F,q,7);let oe=Number(N&BigInt(4294967295));F[q+7]=oe,oe>>=8,F[q+6]=oe,oe>>=8,F[q+5]=oe,oe>>=8,F[q+4]=oe;let ye=Number(N>>BigInt(32)&BigInt(4294967295));return F[q+3]=ye,ye>>=8,F[q+2]=ye,ye>>=8,F[q+1]=ye,ye>>=8,F[q]=ye,q+8}function ve(F,N,q,I,K,oe){if(q+I>F.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function he(F,N,q,I,K){return N=+N,q>>>=0,K||ve(F,0,q,4),h.write(F,N,q,I,23,4),q+4}function le(F,N,q,I,K){return N=+N,q>>>=0,K||ve(F,0,q,8),h.write(F,N,q,I,52,8),q+8}d.prototype.slice=function(F,N){const q=this.length;(F=~~F)<0?(F+=q)<0&&(F=0):F>q&&(F=q),(N=N===void 0?q:~~N)<0?(N+=q)<0&&(N=0):N>q&&(N=q),N>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F],K=1,oe=0;for(;++oe>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F+--N],K=1;for(;N>0&&(K*=256);)I+=this[F+--N]*K;return I},d.prototype.readUint8=d.prototype.readUInt8=function(F,N){return F>>>=0,N||re(F,1,this.length),this[F]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(F,N){return F>>>=0,N||re(F,2,this.length),this[F]|this[F+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(F,N){return F>>>=0,N||re(F,2,this.length),this[F]<<8|this[F+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(F,N){return F>>>=0,N||re(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+16777216*this[F+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(F,N){return F>>>=0,N||re(F,4,this.length),16777216*this[F]+(this[F+1]<<16|this[F+2]<<8|this[F+3])},d.prototype.readBigUInt64LE=J(function(F){De(F>>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=N+256*this[++F]+65536*this[++F]+this[++F]*2**24,K=this[++F]+256*this[++F]+65536*this[++F]+q*2**24;return BigInt(I)+(BigInt(K)<>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=N*2**24+65536*this[++F]+256*this[++F]+this[++F],K=this[++F]*2**24+65536*this[++F]+256*this[++F]+q;return(BigInt(I)<>>=0,N>>>=0,q||re(F,N,this.length);let I=this[F],K=1,oe=0;for(;++oe=K&&(I-=Math.pow(2,8*N)),I},d.prototype.readIntBE=function(F,N,q){F>>>=0,N>>>=0,q||re(F,N,this.length);let I=N,K=1,oe=this[F+--I];for(;I>0&&(K*=256);)oe+=this[F+--I]*K;return K*=128,oe>=K&&(oe-=Math.pow(2,8*N)),oe},d.prototype.readInt8=function(F,N){return F>>>=0,N||re(F,1,this.length),128&this[F]?-1*(255-this[F]+1):this[F]},d.prototype.readInt16LE=function(F,N){F>>>=0,N||re(F,2,this.length);const q=this[F]|this[F+1]<<8;return 32768&q?4294901760|q:q},d.prototype.readInt16BE=function(F,N){F>>>=0,N||re(F,2,this.length);const q=this[F+1]|this[F]<<8;return 32768&q?4294901760|q:q},d.prototype.readInt32LE=function(F,N){return F>>>=0,N||re(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},d.prototype.readInt32BE=function(F,N){return F>>>=0,N||re(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},d.prototype.readBigInt64LE=J(function(F){De(F>>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=this[F+4]+256*this[F+5]+65536*this[F+6]+(q<<24);return(BigInt(I)<>>=0,"offset");const N=this[F],q=this[F+7];N!==void 0&&q!==void 0||Fe(F,this.length-8);const I=(N<<24)+65536*this[++F]+256*this[++F]+this[++F];return(BigInt(I)<>>=0,N||re(F,4,this.length),h.read(this,F,!0,23,4)},d.prototype.readFloatBE=function(F,N){return F>>>=0,N||re(F,4,this.length),h.read(this,F,!1,23,4)},d.prototype.readDoubleLE=function(F,N){return F>>>=0,N||re(F,8,this.length),h.read(this,F,!0,52,8)},d.prototype.readDoubleBE=function(F,N){return F>>>=0,N||re(F,8,this.length),h.read(this,F,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(F,N,q,I){F=+F,N>>>=0,q>>>=0,I||X(this,F,N,q,Math.pow(2,8*q)-1,0);let K=1,oe=0;for(this[N]=255&F;++oe>>=0,q>>>=0,I||X(this,F,N,q,Math.pow(2,8*q)-1,0);let K=q-1,oe=1;for(this[N+K]=255&F;--K>=0&&(oe*=256);)this[N+K]=F/oe&255;return N+q},d.prototype.writeUint8=d.prototype.writeUInt8=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,1,255,0),this[N]=255&F,N+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,65535,0),this[N]=255&F,this[N+1]=F>>>8,N+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,65535,0),this[N]=F>>>8,this[N+1]=255&F,N+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,4294967295,0),this[N+3]=F>>>24,this[N+2]=F>>>16,this[N+1]=F>>>8,this[N]=255&F,N+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,4294967295,0),this[N]=F>>>24,this[N+1]=F>>>16,this[N+2]=F>>>8,this[N+3]=255&F,N+4},d.prototype.writeBigUInt64LE=J(function(F,N=0){return be(this,F,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=J(function(F,N=0){return Be(this,F,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(F,N,q,I){if(F=+F,N>>>=0,!I){const Pe=Math.pow(2,8*q-1);X(this,F,N,q,Pe-1,-Pe)}let K=0,oe=1,ye=0;for(this[N]=255&F;++K>0)-ye&255;return N+q},d.prototype.writeIntBE=function(F,N,q,I){if(F=+F,N>>>=0,!I){const Pe=Math.pow(2,8*q-1);X(this,F,N,q,Pe-1,-Pe)}let K=q-1,oe=1,ye=0;for(this[N+K]=255&F;--K>=0&&(oe*=256);)F<0&&ye===0&&this[N+K+1]!==0&&(ye=1),this[N+K]=(F/oe>>0)-ye&255;return N+q},d.prototype.writeInt8=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,1,127,-128),F<0&&(F=255+F+1),this[N]=255&F,N+1},d.prototype.writeInt16LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,32767,-32768),this[N]=255&F,this[N+1]=F>>>8,N+2},d.prototype.writeInt16BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,2,32767,-32768),this[N]=F>>>8,this[N+1]=255&F,N+2},d.prototype.writeInt32LE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,2147483647,-2147483648),this[N]=255&F,this[N+1]=F>>>8,this[N+2]=F>>>16,this[N+3]=F>>>24,N+4},d.prototype.writeInt32BE=function(F,N,q){return F=+F,N>>>=0,q||X(this,F,N,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),this[N]=F>>>24,this[N+1]=F>>>16,this[N+2]=F>>>8,this[N+3]=255&F,N+4},d.prototype.writeBigInt64LE=J(function(F,N=0){return be(this,F,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=J(function(F,N=0){return Be(this,F,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeFloatLE=function(F,N,q){return he(this,F,N,!0,q)},d.prototype.writeFloatBE=function(F,N,q){return he(this,F,N,!1,q)},d.prototype.writeDoubleLE=function(F,N,q){return le(this,F,N,!0,q)},d.prototype.writeDoubleBE=function(F,N,q){return le(this,F,N,!1,q)},d.prototype.copy=function(F,N,q,I){if(!d.isBuffer(F))throw new TypeError("argument should be a Buffer");if(q||(q=0),I||I===0||(I=this.length),N>=F.length&&(N=F.length),N||(N=0),I>0&&I=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),F.length-N>>=0,q=q===void 0?this.length:q>>>0,F||(F=0),typeof F=="number")for(K=N;K=I+4;q-=3)N=`_${F.slice(q-3,q)}${N}`;return`${F.slice(0,q)}${N}`}function Le(F,N,q,I,K,oe){if(F>q||F3?N===0||N===BigInt(0)?`>= 0${ye} and < 2${ye} ** ${8*(oe+1)}${ye}`:`>= -(2${ye} ** ${8*(oe+1)-1}${ye}) and < 2 ** ${8*(oe+1)-1}${ye}`:`>= ${N}${ye} and <= ${q}${ye}`,new ge.ERR_OUT_OF_RANGE("value",Pe,F)}(function(ye,Pe,rt){De(Pe,"offset"),ye[Pe]!==void 0&&ye[Pe+rt]!==void 0||Fe(Pe,ye.length-(rt+1))})(I,K,oe)}function De(F,N){if(typeof F!="number")throw new ge.ERR_INVALID_ARG_TYPE(N,"number",F)}function Fe(F,N,q){throw Math.floor(F)!==F?(De(F,q),new ge.ERR_OUT_OF_RANGE(q||"offset","an integer",F)):N<0?new ge.ERR_BUFFER_OUT_OF_BOUNDS:new ge.ERR_OUT_OF_RANGE(q||"offset",`>= ${q?1:0} and <= ${N}`,F)}Ne("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ne("ERR_INVALID_ARG_TYPE",function(F,N){return`The "${F}" argument must be of type number. Received type ${typeof N}`},TypeError),Ne("ERR_OUT_OF_RANGE",function(F,N,q){let I=`The value of "${F}" is out of range.`,K=q;return Number.isInteger(q)&&Math.abs(q)>4294967296?K=Ue(String(q)):typeof q=="bigint"&&(K=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(K=Ue(K)),K+="n"),I+=` It must be ${N}. Received ${K}`,I},RangeError);const Oe=/[^+/0-9A-Za-z-_]/g;function We(F,N){let q;N=N||1/0;const I=F.length;let K=null;const oe=[];for(let ye=0;ye55295&&q<57344){if(!K){if(q>56319){(N-=3)>-1&&oe.push(239,191,189);continue}if(ye+1===I){(N-=3)>-1&&oe.push(239,191,189);continue}K=q;continue}if(q<56320){(N-=3)>-1&&oe.push(239,191,189),K=q;continue}q=65536+(K-55296<<10|q-56320)}else K&&(N-=3)>-1&&oe.push(239,191,189);if(K=null,q<128){if((N-=1)<0)break;oe.push(q)}else if(q<2048){if((N-=2)<0)break;oe.push(q>>6|192,63&q|128)}else if(q<65536){if((N-=3)<0)break;oe.push(q>>12|224,q>>6&63|128,63&q|128)}else{if(!(q<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;oe.push(q>>18|240,q>>12&63|128,q>>6&63|128,63&q|128)}}return oe}function ot(F){return u.toByteArray(function(N){if((N=(N=N.split("=")[0]).trim().replace(Oe,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}(F))}function Ke(F,N,q,I){let K;for(K=0;K=N.length||K>=F.length);++K)N[K+q]=F[K];return K}function B(F,N){return F instanceof N||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===N.name}function H(F){return F!=F}const M=function(){const F="0123456789abcdef",N=new Array(256);for(let q=0;q<16;++q){const I=16*q;for(let K=0;K<16;++K)N[I+K]=F[q]+F[K]}return N}();function J(F){return typeof BigInt>"u"?ue:F}function ue(){throw new Error("BigInt not supported")}},645:(o,e)=>{e.read=function(c,u,h,b,m){var k,d,w=8*m-b-1,y=(1<>1,x=-7,E=h?m-1:0,S=h?-1:1,C=c[u+E];for(E+=S,k=C&(1<<-x)-1,C>>=-x,x+=w;x>0;k=256*k+c[u+E],E+=S,x-=8);for(d=k&(1<<-x)-1,k>>=-x,x+=b;x>0;d=256*d+c[u+E],E+=S,x-=8);if(k===0)k=1-_;else{if(k===y)return d?NaN:1/0*(C?-1:1);d+=Math.pow(2,b),k-=_}return(C?-1:1)*d*Math.pow(2,k-b)},e.write=function(c,u,h,b,m,k){var d,w,y,_=8*k-m-1,x=(1<<_)-1,E=x>>1,S=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=b?0:k-1,T=b?1:-1,R=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(w=isNaN(u)?1:0,d=x):(d=Math.floor(Math.log(u)/Math.LN2),u*(y=Math.pow(2,-d))<1&&(d--,y*=2),(u+=d+E>=1?S/y:S*Math.pow(2,1-E))*y>=2&&(d++,y/=2),d+E>=x?(w=0,d=x):d+E>=1?(w=(u*y-1)*Math.pow(2,m),d+=E):(w=u*Math.pow(2,E-1)*Math.pow(2,m),d=0));m>=8;c[h+C]=255&w,C+=T,w/=256,m-=8);for(d=d<0;c[h+C]=255&d,C+=T,d/=256,_-=8);c[h+C-T]|=128*R}}},t={};function s(o){var e=t[o];if(e!==void 0)return e.exports;var c=t[o]={exports:{}};return i[o](c,c.exports,s),c.exports}return s.d=(o,e)=>{for(var c in e)s.o(e,c)&&!s.o(o,c)&&Object.defineProperty(o,c,{enumerable:!0,get:e[c]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),s.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s(899)})(),f.exports=a()},3217:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Account=void 0;var t,s=(t=i(4431))&&t.__esModule?t:{default:t},o=i(8385);function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{Object.defineProperty(a,"__esModule",{value:!0}),a.Address=void 0;var t,s=i(8385),o=(t=i(4081))&&t.__esModule?t:{default:t};function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.Asset=void 0;var s,o=i(6006),e=(s=i(4081))&&s.__esModule?s:{default:s},c=i(6437),u=i(8385),h=i(9622);function b(d){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(d)}function m(d,w){for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:e.default.Asset;if(this.isNative())return S.assetTypeNative();this.code.length<=4?(x=e.default.AlphaNum4,E="assetTypeCreditAlphanum4"):(x=e.default.AlphaNum12,E="assetTypeCreditAlphanum12");var C=this.code.length<=4?4:12;return new S(E,new x({assetCode:this.code.padEnd(C,"\0"),issuer:c.Keypair.fromPublicKey(this.issuer).xdrAccountId()}))}},{key:"getCode",value:function(){if(this.code!==void 0)return String(this.code)}},{key:"getIssuer",value:function(){if(this.issuer!==void 0)return String(this.issuer)}},{key:"getAssetType",value:function(){switch(this.getRawAssetType()){case e.default.AssetType.assetTypeNative():return"native";case e.default.AssetType.assetTypeCreditAlphanum4():return"credit_alphanum4";case e.default.AssetType.assetTypeCreditAlphanum12():return"credit_alphanum12";default:return"unknown"}}},{key:"getRawAssetType",value:function(){return this.isNative()?e.default.AssetType.assetTypeNative():this.code.length<=4?e.default.AssetType.assetTypeCreditAlphanum4():e.default.AssetType.assetTypeCreditAlphanum12()}},{key:"isNative",value:function(){return!this.issuer}},{key:"equals",value:function(x){return this.code===x.getCode()&&this.issuer===x.getIssuer()}},{key:"toString",value:function(){return this.isNative()?"native":"".concat(this.getCode(),":").concat(this.getIssuer())}}],_=[{key:"native",value:function(){return new d("XLM")}},{key:"fromOperation",value:function(x){var E,S;switch(x.switch()){case e.default.AssetType.assetTypeNative():return this.native();case e.default.AssetType.assetTypeCreditAlphanum4():E=x.alphaNum4();case e.default.AssetType.assetTypeCreditAlphanum12():return E=E||x.alphaNum12(),S=u.StrKey.encodeEd25519PublicKey(E.issuer().ed25519()),new this((0,o.trimEnd)(E.assetCode(),"\0"),S);default:throw new Error("Invalid asset type: ".concat(x.switch().name))}}},{key:"compare",value:function(x,E){if(!(x&&x instanceof d))throw new Error("assetA is invalid");if(!(E&&E instanceof d))throw new Error("assetB is invalid");if(x.equals(E))return 0;var S=x.getRawAssetType().value,C=E.getRawAssetType().value;if(S!==C)return S{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.authorizeEntry=y,a.authorizeInvocation=function(x,E,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u.Networks.FUTURENET,R=e.Keypair.random().rawPublicKey(),W=new o.default.Int64((L=R,L.subarray(0,8).reduce(function(Q,U){return Q<<8|U},0))),j=C||x.publicKey(),L;if(!j)throw new Error("authorizeInvocation requires publicKey parameter");return y(new o.default.SorobanAuthorizationEntry({rootInvocation:S,credentials:o.default.SorobanCredentials.sorobanCredentialsAddress(new o.default.SorobanAddressCredentials({address:new b.Address(j).toScAddress(),nonce:W,signatureExpirationLedger:0,signature:o.default.ScVal.scvVec([])}))}),x,E,T)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(8385),u=i(2844),h=i(9622),b=i(3471),m=i(5567);function k(x){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(x)}function d(){d=function(){return E};var x,E={},S=Object.prototype,C=S.hasOwnProperty,T=Object.defineProperty||function(Fe,Oe,We){Fe[Oe]=We.value},R=typeof Symbol=="function"?Symbol:{},W=R.iterator||"@@iterator",j=R.asyncIterator||"@@asyncIterator",L=R.toStringTag||"@@toStringTag";function Q(Fe,Oe,We){return Object.defineProperty(Fe,Oe,{value:We,enumerable:!0,configurable:!0,writable:!0}),Fe[Oe]}try{Q({},"")}catch{Q=function(Oe,We,ot){return Oe[We]=ot}}function U(Fe,Oe,We,ot){var Ke=Oe&&Oe.prototype instanceof O?Oe:O,B=Object.create(Ke.prototype),H=new Le(ot||[]);return T(B,"_invoke",{value:le(Fe,We,H)}),B}function Z(Fe,Oe,We){try{return{type:"normal",arg:Fe.call(Oe,We)}}catch(ot){return{type:"throw",arg:ot}}}E.wrap=U;var se="suspendedStart",te="suspendedYield",$="executing",P="completed",A={};function O(){}function z(){}function G(){}var re={};Q(re,W,function(){return this});var X=Object.getPrototypeOf,be=X&&X(X(De([])));be&&be!==S&&C.call(be,W)&&(re=be);var Be=G.prototype=O.prototype=Object.create(re);function ve(Fe){["next","throw","return"].forEach(function(Oe){Q(Fe,Oe,function(We){return this._invoke(Oe,We)})})}function he(Fe,Oe){function We(Ke,B,H,M){var J=Z(Fe[Ke],Fe,B);if(J.type!=="throw"){var ue=J.arg,F=ue.value;return F&&k(F)=="object"&&C.call(F,"__await")?Oe.resolve(F.__await).then(function(N){We("next",N,H,M)},function(N){We("throw",N,H,M)}):Oe.resolve(F).then(function(N){ue.value=N,H(ue)},function(N){return We("throw",N,H,M)})}M(J.arg)}var ot;T(this,"_invoke",{value:function(Ke,B){function H(){return new Oe(function(M,J){We(Ke,B,M,J)})}return ot=ot?ot.then(H,H):H()}})}function le(Fe,Oe,We){var ot=se;return function(Ke,B){if(ot===$)throw new Error("Generator is already running");if(ot===P){if(Ke==="throw")throw B;return{value:x,done:!0}}for(We.method=Ke,We.arg=B;;){var H=We.delegate;if(H){var M=ge(H,We);if(M){if(M===A)continue;return M}}if(We.method==="next")We.sent=We._sent=We.arg;else if(We.method==="throw"){if(ot===se)throw ot=P,We.arg;We.dispatchException(We.arg)}else We.method==="return"&&We.abrupt("return",We.arg);ot=$;var J=Z(Fe,Oe,We);if(J.type==="normal"){if(ot=We.done?P:te,J.arg===A)continue;return{value:J.arg,done:We.done}}J.type==="throw"&&(ot=P,We.method="throw",We.arg=J.arg)}}}function ge(Fe,Oe){var We=Oe.method,ot=Fe.iterator[We];if(ot===x)return Oe.delegate=null,We==="throw"&&Fe.iterator.return&&(Oe.method="return",Oe.arg=x,ge(Fe,Oe),Oe.method==="throw")||We!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+We+"' method")),A;var Ke=Z(ot,Fe.iterator,Oe.arg);if(Ke.type==="throw")return Oe.method="throw",Oe.arg=Ke.arg,Oe.delegate=null,A;var B=Ke.arg;return B?B.done?(Oe[Fe.resultName]=B.value,Oe.next=Fe.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=x),Oe.delegate=null,A):B:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,A)}function Ne(Fe){var Oe={tryLoc:Fe[0]};1 in Fe&&(Oe.catchLoc=Fe[1]),2 in Fe&&(Oe.finallyLoc=Fe[2],Oe.afterLoc=Fe[3]),this.tryEntries.push(Oe)}function Ue(Fe){var Oe=Fe.completion||{};Oe.type="normal",delete Oe.arg,Fe.completion=Oe}function Le(Fe){this.tryEntries=[{tryLoc:"root"}],Fe.forEach(Ne,this),this.reset(!0)}function De(Fe){if(Fe||Fe===""){var Oe=Fe[W];if(Oe)return Oe.call(Fe);if(typeof Fe.next=="function")return Fe;if(!isNaN(Fe.length)){var We=-1,ot=function Ke(){for(;++We=0;--ot){var Ke=this.tryEntries[ot],B=Ke.completion;if(Ke.tryLoc==="root")return We("end");if(Ke.tryLoc<=this.prev){var H=C.call(Ke,"catchLoc"),M=C.call(Ke,"finallyLoc");if(H&&M){if(this.prev=0;--We){var ot=this.tryEntries[We];if(ot.tryLoc<=this.prev&&C.call(ot,"finallyLoc")&&this.prev=0;--Oe){var We=this.tryEntries[Oe];if(We.finallyLoc===Fe)return this.complete(We.completion,We.afterLoc),Ue(We),A}},catch:function(Fe){for(var Oe=this.tryEntries.length-1;Oe>=0;--Oe){var We=this.tryEntries[Oe];if(We.tryLoc===Fe){var ot=We.completion;if(ot.type==="throw"){var Ke=ot.arg;Ue(We)}return Ke}}throw new Error("illegal catch attempt")},delegateYield:function(Fe,Oe,We){return this.delegate={iterator:De(Fe),resultName:Oe,nextLoc:We},this.method==="next"&&(this.arg=x),A}},E}function w(x,E,S,C,T,R,W){try{var j=x[R](W),L=j.value}catch(Q){return void S(Q)}j.done?E(L):Promise.resolve(L).then(C,T)}function y(x,E,S){return _.apply(this,arguments)}function _(){var x;return x=d().mark(function E(S,C,T){var R,W,j,L,Q,U,Z,se,te,$=arguments;return d().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(R=$.length>3&&$[3]!==void 0?$[3]:u.Networks.FUTURENET,S.credentials().switch().value===o.default.SorobanCredentialsType.sorobanCredentialsAddress().value){P.next=3;break}return P.abrupt("return",S);case 3:if(W=o.default.SorobanAuthorizationEntry.fromXDR(S.toXDR()),(j=W.credentials().address()).signatureExpirationLedger(T),L=(0,h.hash)(t.from(R)),Q=o.default.HashIdPreimage.envelopeTypeSorobanAuthorization(new o.default.HashIdPreimageSorobanAuthorization({networkId:L,nonce:j.nonce(),invocation:W.rootInvocation(),signatureExpirationLedger:j.signatureExpirationLedger()})),U=(0,h.hash)(Q.toXDR()),typeof C!="function"){P.next=17;break}return P.t0=t,P.next=13,C(Q);case 13:P.t1=P.sent,Z=P.t0.from.call(P.t0,P.t1),P.next=18;break;case 17:Z=t.from(C.sign(U));case 18:if(se=b.Address.fromScAddress(j.address()).toString(),e.Keypair.fromPublicKey(se).verify(U,Z)){P.next=21;break}throw new Error("signature doesn't match payload");case 21:return te=(0,m.nativeToScVal)({public_key:c.StrKey.decodeEd25519PublicKey(se),signature:Z},{type:{public_key:["symbol",null],signature:["symbol",null]}}),j.signature(o.default.ScVal.scvVec([te])),P.abrupt("return",W);case 24:case"end":return P.stop()}},E)}),_=function(){var E=this,S=arguments;return new Promise(function(C,T){var R=x.apply(E,S);function W(L){w(R,C,T,W,j,"next",L)}function j(L){w(R,C,T,W,j,"throw",L)}W(void 0)})},_.apply(this,arguments)}},1842:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Claimant=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385);function c(h){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},c(h)}function u(h,b){for(var m=0;m{Object.defineProperty(a,"__esModule",{value:!0}),a.Contract=void 0;var t,s=i(3471),o=i(4585),e=(t=i(4081))&&t.__esModule?t:{default:t},c=i(8385);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},u(b)}function h(b,m){for(var k=0;k1?w-1:0),_=1;_{Object.defineProperty(a,"__esModule",{value:!0}),a.humanizeEvents=function(u){return u.map(function(h){return h instanceof s.default.DiagnosticEvent?c(h.event()):c(h)})};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385),e=i(5567);function c(u){return{contractId:u.contractId()===null?"":o.StrKey.encodeContract(u.contractId()),type:u.type().name,topics:u.body().value().topics().map(function(h){return(0,e.scValToNative)(h)}),data:(0,e.scValToNative)(u.body().value().data())}}},1462:(f,a,i)=>{var t=i(8764).Buffer;function s(y){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},s(y)}Object.defineProperty(a,"__esModule",{value:!0}),a.FeeBumpTransaction=void 0;var o,e=(o=i(4081))&&o.__esModule?o:{default:o},c=i(9622),u=i(1388),h=i(1065),b=i(6880);function m(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(s(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(s(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),s(C)==="symbol"?C:String(C)),E)}var S,C}function k(y,_){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,E){return x.__proto__=E,x},k(y,_)}function d(y){var _=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var x,E=w(y);if(_){var S=w(this).constructor;x=Reflect.construct(E,arguments,S)}else x=E.apply(this,arguments);return function(C,T){if(T&&(s(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(C)}(this,x)}}function w(y){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},w(y)}a.FeeBumpTransaction=function(y){(function(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),T&&k(C,T)})(S,y);var _,x,E=d(S);function S(C,T){var R;if(function(te,$){if(!(te instanceof $))throw new TypeError("Cannot call a class as a function")}(this,S),typeof C=="string"){var W=t.from(C,"base64");C=e.default.TransactionEnvelope.fromXDR(W)}var j=C.switch();if(j!==e.default.EnvelopeType.envelopeTypeTxFeeBump())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxFeeBump but received an ".concat(j.name,"."));var L=C.value(),Q=L.tx(),U=Q.fee().toString(),Z=(L.signatures()||[]).slice();R=E.call(this,Q,Z,U,T);var se=e.default.TransactionEnvelope.envelopeTypeTx(Q.innerTx().v1());return R._feeSource=(0,b.encodeMuxedAccountToAddress)(R.tx.feeSource()),R._innerTransaction=new u.Transaction(se,T),R}return _=S,(x=[{key:"innerTransaction",get:function(){return this._innerTransaction}},{key:"operations",get:function(){return this._innerTransaction.operations}},{key:"feeSource",get:function(){return this._feeSource}},{key:"signatureBase",value:function(){var C=new e.default.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTxFeeBump(this.tx);return new e.default.TransactionSignaturePayload({networkId:e.default.Hash.fromXDR((0,c.hash)(this.networkPassphrase)),taggedTransaction:C}).toXDR()}},{key:"toEnvelope",value:function(){var C=new e.default.FeeBumpTransactionEnvelope({tx:e.default.FeeBumpTransaction.fromXDR(this.tx.toXDR()),signatures:this.signatures.slice()});return new e.default.TransactionEnvelope.envelopeTypeTxFeeBump(C)}}])&&m(_.prototype,x),Object.defineProperty(_,"prototype",{writable:!1}),S}(h.TransactionBase)},7701:(f,a,i)=>{function t(e){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(e)}function s(e){if(typeof WeakMap!="function")return null;var c=new WeakMap,u=new WeakMap;return(s=function(h){return h?u:c})(e)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=function(e,c){if(!c&&e&&e.__esModule)return e;if(e===null||t(e)!="object"&&typeof e!="function")return{default:e};var u=s(c);if(u&&u.has(e))return u.get(e);var h={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in e)if(m!=="default"&&Object.prototype.hasOwnProperty.call(e,m)){var k=b?Object.getOwnPropertyDescriptor(e,m):null;k&&(k.get||k.set)?Object.defineProperty(h,m,k):h[m]=e[m]}return h.default=e,u&&u.set(e,h),h}(i(6263)).config(function(e){var c=1024;e.typedef("Value",e.varOpaque()),e.struct("ScpBallot",[["counter",e.lookup("Uint32")],["value",e.lookup("Value")]]),e.enum("ScpStatementType",{scpStPrepare:0,scpStConfirm:1,scpStExternalize:2,scpStNominate:3}),e.struct("ScpNomination",[["quorumSetHash",e.lookup("Hash")],["votes",e.varArray(e.lookup("Value"),2147483647)],["accepted",e.varArray(e.lookup("Value"),2147483647)]]),e.struct("ScpStatementPrepare",[["quorumSetHash",e.lookup("Hash")],["ballot",e.lookup("ScpBallot")],["prepared",e.option(e.lookup("ScpBallot"))],["preparedPrime",e.option(e.lookup("ScpBallot"))],["nC",e.lookup("Uint32")],["nH",e.lookup("Uint32")]]),e.struct("ScpStatementConfirm",[["ballot",e.lookup("ScpBallot")],["nPrepared",e.lookup("Uint32")],["nCommit",e.lookup("Uint32")],["nH",e.lookup("Uint32")],["quorumSetHash",e.lookup("Hash")]]),e.struct("ScpStatementExternalize",[["commit",e.lookup("ScpBallot")],["nH",e.lookup("Uint32")],["commitQuorumSetHash",e.lookup("Hash")]]),e.union("ScpStatementPledges",{switchOn:e.lookup("ScpStatementType"),switchName:"type",switches:[["scpStPrepare","prepare"],["scpStConfirm","confirm"],["scpStExternalize","externalize"],["scpStNominate","nominate"]],arms:{prepare:e.lookup("ScpStatementPrepare"),confirm:e.lookup("ScpStatementConfirm"),externalize:e.lookup("ScpStatementExternalize"),nominate:e.lookup("ScpNomination")}}),e.struct("ScpStatement",[["nodeId",e.lookup("NodeId")],["slotIndex",e.lookup("Uint64")],["pledges",e.lookup("ScpStatementPledges")]]),e.struct("ScpEnvelope",[["statement",e.lookup("ScpStatement")],["signature",e.lookup("Signature")]]),e.struct("ScpQuorumSet",[["threshold",e.lookup("Uint32")],["validators",e.varArray(e.lookup("NodeId"),2147483647)],["innerSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)]]),e.typedef("Thresholds",e.opaque(4)),e.typedef("String32",e.string(32)),e.typedef("String64",e.string(64)),e.typedef("SequenceNumber",e.lookup("Int64")),e.typedef("DataValue",e.varOpaque(64)),e.typedef("PoolId",e.lookup("Hash")),e.typedef("AssetCode4",e.opaque(4)),e.typedef("AssetCode12",e.opaque(12)),e.enum("AssetType",{assetTypeNative:0,assetTypeCreditAlphanum4:1,assetTypeCreditAlphanum12:2,assetTypePoolShare:3}),e.union("AssetCode",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeCreditAlphanum4","assetCode4"],["assetTypeCreditAlphanum12","assetCode12"]],arms:{assetCode4:e.lookup("AssetCode4"),assetCode12:e.lookup("AssetCode12")}}),e.struct("AlphaNum4",[["assetCode",e.lookup("AssetCode4")],["issuer",e.lookup("AccountId")]]),e.struct("AlphaNum12",[["assetCode",e.lookup("AssetCode12")],["issuer",e.lookup("AccountId")]]),e.union("Asset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12")}}),e.struct("Price",[["n",e.lookup("Int32")],["d",e.lookup("Int32")]]),e.struct("Liabilities",[["buying",e.lookup("Int64")],["selling",e.lookup("Int64")]]),e.enum("ThresholdIndices",{thresholdMasterWeight:0,thresholdLow:1,thresholdMed:2,thresholdHigh:3}),e.enum("LedgerEntryType",{account:0,trustline:1,offer:2,data:3,claimableBalance:4,liquidityPool:5,contractData:6,contractCode:7,configSetting:8,ttl:9}),e.struct("Signer",[["key",e.lookup("SignerKey")],["weight",e.lookup("Uint32")]]),e.enum("AccountFlags",{authRequiredFlag:1,authRevocableFlag:2,authImmutableFlag:4,authClawbackEnabledFlag:8}),e.const("MASK_ACCOUNT_FLAGS",7),e.const("MASK_ACCOUNT_FLAGS_V17",15),e.const("MAX_SIGNERS",20),e.typedef("SponsorshipDescriptor",e.option(e.lookup("AccountId"))),e.struct("AccountEntryExtensionV3",[["ext",e.lookup("ExtensionPoint")],["seqLedger",e.lookup("Uint32")],["seqTime",e.lookup("TimePoint")]]),e.union("AccountEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[3,"v3"]],arms:{v3:e.lookup("AccountEntryExtensionV3")}}),e.struct("AccountEntryExtensionV2",[["numSponsored",e.lookup("Uint32")],["numSponsoring",e.lookup("Uint32")],["signerSponsoringIDs",e.varArray(e.lookup("SponsorshipDescriptor"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExtensionV2Ext")]]),e.union("AccountEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("AccountEntryExtensionV2")}}),e.struct("AccountEntryExtensionV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("AccountEntryExtensionV1Ext")]]),e.union("AccountEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("AccountEntryExtensionV1")}}),e.struct("AccountEntry",[["accountId",e.lookup("AccountId")],["balance",e.lookup("Int64")],["seqNum",e.lookup("SequenceNumber")],["numSubEntries",e.lookup("Uint32")],["inflationDest",e.option(e.lookup("AccountId"))],["flags",e.lookup("Uint32")],["homeDomain",e.lookup("String32")],["thresholds",e.lookup("Thresholds")],["signers",e.varArray(e.lookup("Signer"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExt")]]),e.enum("TrustLineFlags",{authorizedFlag:1,authorizedToMaintainLiabilitiesFlag:2,trustlineClawbackEnabledFlag:4}),e.const("MASK_TRUSTLINE_FLAGS",1),e.const("MASK_TRUSTLINE_FLAGS_V13",3),e.const("MASK_TRUSTLINE_FLAGS_V17",7),e.enum("LiquidityPoolType",{liquidityPoolConstantProduct:0}),e.union("TrustLineAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPoolId"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPoolId:e.lookup("PoolId")}}),e.union("TrustLineEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TrustLineEntryExtensionV2",[["liquidityPoolUseCount",e.lookup("Int32")],["ext",e.lookup("TrustLineEntryExtensionV2Ext")]]),e.union("TrustLineEntryV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("TrustLineEntryExtensionV2")}}),e.struct("TrustLineEntryV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("TrustLineEntryV1Ext")]]),e.union("TrustLineEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("TrustLineEntryV1")}}),e.struct("TrustLineEntry",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")],["balance",e.lookup("Int64")],["limit",e.lookup("Int64")],["flags",e.lookup("Uint32")],["ext",e.lookup("TrustLineEntryExt")]]),e.enum("OfferEntryFlags",{passiveFlag:1}),e.const("MASK_OFFERENTRY_FLAGS",1),e.union("OfferEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("OfferEntry",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["flags",e.lookup("Uint32")],["ext",e.lookup("OfferEntryExt")]]),e.union("DataEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("DataEntry",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")],["dataValue",e.lookup("DataValue")],["ext",e.lookup("DataEntryExt")]]),e.enum("ClaimPredicateType",{claimPredicateUnconditional:0,claimPredicateAnd:1,claimPredicateOr:2,claimPredicateNot:3,claimPredicateBeforeAbsoluteTime:4,claimPredicateBeforeRelativeTime:5}),e.union("ClaimPredicate",{switchOn:e.lookup("ClaimPredicateType"),switchName:"type",switches:[["claimPredicateUnconditional",e.void()],["claimPredicateAnd","andPredicates"],["claimPredicateOr","orPredicates"],["claimPredicateNot","notPredicate"],["claimPredicateBeforeAbsoluteTime","absBefore"],["claimPredicateBeforeRelativeTime","relBefore"]],arms:{andPredicates:e.varArray(e.lookup("ClaimPredicate"),2),orPredicates:e.varArray(e.lookup("ClaimPredicate"),2),notPredicate:e.option(e.lookup("ClaimPredicate")),absBefore:e.lookup("Int64"),relBefore:e.lookup("Int64")}}),e.enum("ClaimantType",{claimantTypeV0:0}),e.struct("ClaimantV0",[["destination",e.lookup("AccountId")],["predicate",e.lookup("ClaimPredicate")]]),e.union("Claimant",{switchOn:e.lookup("ClaimantType"),switchName:"type",switches:[["claimantTypeV0","v0"]],arms:{v0:e.lookup("ClaimantV0")}}),e.enum("ClaimableBalanceIdType",{claimableBalanceIdTypeV0:0}),e.union("ClaimableBalanceId",{switchOn:e.lookup("ClaimableBalanceIdType"),switchName:"type",switches:[["claimableBalanceIdTypeV0","v0"]],arms:{v0:e.lookup("Hash")}}),e.enum("ClaimableBalanceFlags",{claimableBalanceClawbackEnabledFlag:1}),e.const("MASK_CLAIMABLE_BALANCE_FLAGS",1),e.union("ClaimableBalanceEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("ClaimableBalanceEntryExtensionV1",[["ext",e.lookup("ClaimableBalanceEntryExtensionV1Ext")],["flags",e.lookup("Uint32")]]),e.union("ClaimableBalanceEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("ClaimableBalanceEntryExtensionV1")}}),e.struct("ClaimableBalanceEntry",[["balanceId",e.lookup("ClaimableBalanceId")],["claimants",e.varArray(e.lookup("Claimant"),10)],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["ext",e.lookup("ClaimableBalanceEntryExt")]]),e.struct("LiquidityPoolConstantProductParameters",[["assetA",e.lookup("Asset")],["assetB",e.lookup("Asset")],["fee",e.lookup("Int32")]]),e.struct("LiquidityPoolEntryConstantProduct",[["params",e.lookup("LiquidityPoolConstantProductParameters")],["reserveA",e.lookup("Int64")],["reserveB",e.lookup("Int64")],["totalPoolShares",e.lookup("Int64")],["poolSharesTrustLineCount",e.lookup("Int64")]]),e.union("LiquidityPoolEntryBody",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolEntryConstantProduct")}}),e.struct("LiquidityPoolEntry",[["liquidityPoolId",e.lookup("PoolId")],["body",e.lookup("LiquidityPoolEntryBody")]]),e.enum("ContractDataDurability",{temporary:0,persistent:1}),e.struct("ContractDataEntry",[["ext",e.lookup("ExtensionPoint")],["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")],["val",e.lookup("ScVal")]]),e.struct("ContractCodeEntry",[["ext",e.lookup("ExtensionPoint")],["hash",e.lookup("Hash")],["code",e.varOpaque()]]),e.struct("TtlEntry",[["keyHash",e.lookup("Hash")],["liveUntilLedgerSeq",e.lookup("Uint32")]]),e.union("LedgerEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerEntryExtensionV1",[["sponsoringId",e.lookup("SponsorshipDescriptor")],["ext",e.lookup("LedgerEntryExtensionV1Ext")]]),e.union("LedgerEntryData",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("AccountEntry"),trustLine:e.lookup("TrustLineEntry"),offer:e.lookup("OfferEntry"),data:e.lookup("DataEntry"),claimableBalance:e.lookup("ClaimableBalanceEntry"),liquidityPool:e.lookup("LiquidityPoolEntry"),contractData:e.lookup("ContractDataEntry"),contractCode:e.lookup("ContractCodeEntry"),configSetting:e.lookup("ConfigSettingEntry"),ttl:e.lookup("TtlEntry")}}),e.union("LedgerEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerEntryExtensionV1")}}),e.struct("LedgerEntry",[["lastModifiedLedgerSeq",e.lookup("Uint32")],["data",e.lookup("LedgerEntryData")],["ext",e.lookup("LedgerEntryExt")]]),e.struct("LedgerKeyAccount",[["accountId",e.lookup("AccountId")]]),e.struct("LedgerKeyTrustLine",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")]]),e.struct("LedgerKeyOffer",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")]]),e.struct("LedgerKeyData",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")]]),e.struct("LedgerKeyClaimableBalance",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("LedgerKeyLiquidityPool",[["liquidityPoolId",e.lookup("PoolId")]]),e.struct("LedgerKeyContractData",[["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")]]),e.struct("LedgerKeyContractCode",[["hash",e.lookup("Hash")]]),e.struct("LedgerKeyConfigSetting",[["configSettingId",e.lookup("ConfigSettingId")]]),e.struct("LedgerKeyTtl",[["keyHash",e.lookup("Hash")]]),e.union("LedgerKey",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("LedgerKeyAccount"),trustLine:e.lookup("LedgerKeyTrustLine"),offer:e.lookup("LedgerKeyOffer"),data:e.lookup("LedgerKeyData"),claimableBalance:e.lookup("LedgerKeyClaimableBalance"),liquidityPool:e.lookup("LedgerKeyLiquidityPool"),contractData:e.lookup("LedgerKeyContractData"),contractCode:e.lookup("LedgerKeyContractCode"),configSetting:e.lookup("LedgerKeyConfigSetting"),ttl:e.lookup("LedgerKeyTtl")}}),e.enum("EnvelopeType",{envelopeTypeTxV0:0,envelopeTypeScp:1,envelopeTypeTx:2,envelopeTypeAuth:3,envelopeTypeScpvalue:4,envelopeTypeTxFeeBump:5,envelopeTypeOpId:6,envelopeTypePoolRevokeOpId:7,envelopeTypeContractId:8,envelopeTypeSorobanAuthorization:9}),e.typedef("UpgradeType",e.varOpaque(128)),e.enum("StellarValueType",{stellarValueBasic:0,stellarValueSigned:1}),e.struct("LedgerCloseValueSignature",[["nodeId",e.lookup("NodeId")],["signature",e.lookup("Signature")]]),e.union("StellarValueExt",{switchOn:e.lookup("StellarValueType"),switchName:"v",switches:[["stellarValueBasic",e.void()],["stellarValueSigned","lcValueSignature"]],arms:{lcValueSignature:e.lookup("LedgerCloseValueSignature")}}),e.struct("StellarValue",[["txSetHash",e.lookup("Hash")],["closeTime",e.lookup("TimePoint")],["upgrades",e.varArray(e.lookup("UpgradeType"),6)],["ext",e.lookup("StellarValueExt")]]),e.const("MASK_LEDGER_HEADER_FLAGS",7),e.enum("LedgerHeaderFlags",{disableLiquidityPoolTradingFlag:1,disableLiquidityPoolDepositFlag:2,disableLiquidityPoolWithdrawalFlag:4}),e.union("LedgerHeaderExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderExtensionV1",[["flags",e.lookup("Uint32")],["ext",e.lookup("LedgerHeaderExtensionV1Ext")]]),e.union("LedgerHeaderExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerHeaderExtensionV1")}}),e.struct("LedgerHeader",[["ledgerVersion",e.lookup("Uint32")],["previousLedgerHash",e.lookup("Hash")],["scpValue",e.lookup("StellarValue")],["txSetResultHash",e.lookup("Hash")],["bucketListHash",e.lookup("Hash")],["ledgerSeq",e.lookup("Uint32")],["totalCoins",e.lookup("Int64")],["feePool",e.lookup("Int64")],["inflationSeq",e.lookup("Uint32")],["idPool",e.lookup("Uint64")],["baseFee",e.lookup("Uint32")],["baseReserve",e.lookup("Uint32")],["maxTxSetSize",e.lookup("Uint32")],["skipList",e.array(e.lookup("Hash"),4)],["ext",e.lookup("LedgerHeaderExt")]]),e.enum("LedgerUpgradeType",{ledgerUpgradeVersion:1,ledgerUpgradeBaseFee:2,ledgerUpgradeMaxTxSetSize:3,ledgerUpgradeBaseReserve:4,ledgerUpgradeFlags:5,ledgerUpgradeConfig:6,ledgerUpgradeMaxSorobanTxSetSize:7}),e.struct("ConfigUpgradeSetKey",[["contractId",e.lookup("Hash")],["contentHash",e.lookup("Hash")]]),e.union("LedgerUpgrade",{switchOn:e.lookup("LedgerUpgradeType"),switchName:"type",switches:[["ledgerUpgradeVersion","newLedgerVersion"],["ledgerUpgradeBaseFee","newBaseFee"],["ledgerUpgradeMaxTxSetSize","newMaxTxSetSize"],["ledgerUpgradeBaseReserve","newBaseReserve"],["ledgerUpgradeFlags","newFlags"],["ledgerUpgradeConfig","newConfig"],["ledgerUpgradeMaxSorobanTxSetSize","newMaxSorobanTxSetSize"]],arms:{newLedgerVersion:e.lookup("Uint32"),newBaseFee:e.lookup("Uint32"),newMaxTxSetSize:e.lookup("Uint32"),newBaseReserve:e.lookup("Uint32"),newFlags:e.lookup("Uint32"),newConfig:e.lookup("ConfigUpgradeSetKey"),newMaxSorobanTxSetSize:e.lookup("Uint32")}}),e.struct("ConfigUpgradeSet",[["updatedEntry",e.varArray(e.lookup("ConfigSettingEntry"),2147483647)]]),e.enum("BucketEntryType",{metaentry:-1,liveentry:0,deadentry:1,initentry:2}),e.union("BucketMetadataExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("BucketMetadata",[["ledgerVersion",e.lookup("Uint32")],["ext",e.lookup("BucketMetadataExt")]]),e.union("BucketEntry",{switchOn:e.lookup("BucketEntryType"),switchName:"type",switches:[["liveentry","liveEntry"],["initentry","liveEntry"],["deadentry","deadEntry"],["metaentry","metaEntry"]],arms:{liveEntry:e.lookup("LedgerEntry"),deadEntry:e.lookup("LedgerKey"),metaEntry:e.lookup("BucketMetadata")}}),e.enum("TxSetComponentType",{txsetCompTxsMaybeDiscountedFee:0}),e.struct("TxSetComponentTxsMaybeDiscountedFee",[["baseFee",e.option(e.lookup("Int64"))],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.union("TxSetComponent",{switchOn:e.lookup("TxSetComponentType"),switchName:"type",switches:[["txsetCompTxsMaybeDiscountedFee","txsMaybeDiscountedFee"]],arms:{txsMaybeDiscountedFee:e.lookup("TxSetComponentTxsMaybeDiscountedFee")}}),e.union("TransactionPhase",{switchOn:e.int(),switchName:"v",switches:[[0,"v0Components"]],arms:{v0Components:e.varArray(e.lookup("TxSetComponent"),2147483647)}}),e.struct("TransactionSet",[["previousLedgerHash",e.lookup("Hash")],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.struct("TransactionSetV1",[["previousLedgerHash",e.lookup("Hash")],["phases",e.varArray(e.lookup("TransactionPhase"),2147483647)]]),e.union("GeneralizedTransactionSet",{switchOn:e.int(),switchName:"v",switches:[[1,"v1TxSet"]],arms:{v1TxSet:e.lookup("TransactionSetV1")}}),e.struct("TransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("TransactionResult")]]),e.struct("TransactionResultSet",[["results",e.varArray(e.lookup("TransactionResultPair"),2147483647)]]),e.union("TransactionHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"generalizedTxSet"]],arms:{generalizedTxSet:e.lookup("GeneralizedTransactionSet")}}),e.struct("TransactionHistoryEntry",[["ledgerSeq",e.lookup("Uint32")],["txSet",e.lookup("TransactionSet")],["ext",e.lookup("TransactionHistoryEntryExt")]]),e.union("TransactionHistoryResultEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionHistoryResultEntry",[["ledgerSeq",e.lookup("Uint32")],["txResultSet",e.lookup("TransactionResultSet")],["ext",e.lookup("TransactionHistoryResultEntryExt")]]),e.union("LedgerHeaderHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderHistoryEntry",[["hash",e.lookup("Hash")],["header",e.lookup("LedgerHeader")],["ext",e.lookup("LedgerHeaderHistoryEntryExt")]]),e.struct("LedgerScpMessages",[["ledgerSeq",e.lookup("Uint32")],["messages",e.varArray(e.lookup("ScpEnvelope"),2147483647)]]),e.struct("ScpHistoryEntryV0",[["quorumSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)],["ledgerMessages",e.lookup("LedgerScpMessages")]]),e.union("ScpHistoryEntry",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ScpHistoryEntryV0")}}),e.enum("LedgerEntryChangeType",{ledgerEntryCreated:0,ledgerEntryUpdated:1,ledgerEntryRemoved:2,ledgerEntryState:3}),e.union("LedgerEntryChange",{switchOn:e.lookup("LedgerEntryChangeType"),switchName:"type",switches:[["ledgerEntryCreated","created"],["ledgerEntryUpdated","updated"],["ledgerEntryRemoved","removed"],["ledgerEntryState","state"]],arms:{created:e.lookup("LedgerEntry"),updated:e.lookup("LedgerEntry"),removed:e.lookup("LedgerKey"),state:e.lookup("LedgerEntry")}}),e.typedef("LedgerEntryChanges",e.varArray(e.lookup("LedgerEntryChange"),2147483647)),e.struct("OperationMeta",[["changes",e.lookup("LedgerEntryChanges")]]),e.struct("TransactionMetaV1",[["txChanges",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)]]),e.struct("TransactionMetaV2",[["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")]]),e.enum("ContractEventType",{system:0,contract:1,diagnostic:2}),e.struct("ContractEventV0",[["topics",e.varArray(e.lookup("ScVal"),2147483647)],["data",e.lookup("ScVal")]]),e.union("ContractEventBody",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ContractEventV0")}}),e.struct("ContractEvent",[["ext",e.lookup("ExtensionPoint")],["contractId",e.option(e.lookup("Hash"))],["type",e.lookup("ContractEventType")],["body",e.lookup("ContractEventBody")]]),e.struct("DiagnosticEvent",[["inSuccessfulContractCall",e.bool()],["event",e.lookup("ContractEvent")]]),e.struct("SorobanTransactionMeta",[["ext",e.lookup("ExtensionPoint")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)],["returnValue",e.lookup("ScVal")],["diagnosticEvents",e.varArray(e.lookup("DiagnosticEvent"),2147483647)]]),e.struct("TransactionMetaV3",[["ext",e.lookup("ExtensionPoint")],["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")],["sorobanMeta",e.option(e.lookup("SorobanTransactionMeta"))]]),e.struct("InvokeHostFunctionSuccessPreImage",[["returnValue",e.lookup("ScVal")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)]]),e.union("TransactionMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"operations"],[1,"v1"],[2,"v2"],[3,"v3"]],arms:{operations:e.varArray(e.lookup("OperationMeta"),2147483647),v1:e.lookup("TransactionMetaV1"),v2:e.lookup("TransactionMetaV2"),v3:e.lookup("TransactionMetaV3")}}),e.struct("TransactionResultMeta",[["result",e.lookup("TransactionResultPair")],["feeProcessing",e.lookup("LedgerEntryChanges")],["txApplyProcessing",e.lookup("TransactionMeta")]]),e.struct("UpgradeEntryMeta",[["upgrade",e.lookup("LedgerUpgrade")],["changes",e.lookup("LedgerEntryChanges")]]),e.struct("LedgerCloseMetaV0",[["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("TransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)]]),e.struct("LedgerCloseMetaV1",[["ext",e.lookup("ExtensionPoint")],["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("GeneralizedTransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)],["totalByteSizeOfBucketList",e.lookup("Uint64")],["evictedTemporaryLedgerKeys",e.varArray(e.lookup("LedgerKey"),2147483647)],["evictedPersistentLedgerEntries",e.varArray(e.lookup("LedgerEntry"),2147483647)]]),e.union("LedgerCloseMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"],[1,"v1"]],arms:{v0:e.lookup("LedgerCloseMetaV0"),v1:e.lookup("LedgerCloseMetaV1")}}),e.enum("ErrorCode",{errMisc:0,errData:1,errConf:2,errAuth:3,errLoad:4}),e.struct("Error",[["code",e.lookup("ErrorCode")],["msg",e.string(100)]]),e.struct("SendMore",[["numMessages",e.lookup("Uint32")]]),e.struct("SendMoreExtended",[["numMessages",e.lookup("Uint32")],["numBytes",e.lookup("Uint32")]]),e.struct("AuthCert",[["pubkey",e.lookup("Curve25519Public")],["expiration",e.lookup("Uint64")],["sig",e.lookup("Signature")]]),e.struct("Hello",[["ledgerVersion",e.lookup("Uint32")],["overlayVersion",e.lookup("Uint32")],["overlayMinVersion",e.lookup("Uint32")],["networkId",e.lookup("Hash")],["versionStr",e.string(100)],["listeningPort",e.int()],["peerId",e.lookup("NodeId")],["cert",e.lookup("AuthCert")],["nonce",e.lookup("Uint256")]]),e.const("AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED",200),e.struct("Auth",[["flags",e.int()]]),e.enum("IpAddrType",{iPv4:0,iPv6:1}),e.union("PeerAddressIp",{switchOn:e.lookup("IpAddrType"),switchName:"type",switches:[["iPv4","ipv4"],["iPv6","ipv6"]],arms:{ipv4:e.opaque(4),ipv6:e.opaque(16)}}),e.struct("PeerAddress",[["ip",e.lookup("PeerAddressIp")],["port",e.lookup("Uint32")],["numFailures",e.lookup("Uint32")]]),e.enum("MessageType",{errorMsg:0,auth:2,dontHave:3,getPeers:4,peers:5,getTxSet:6,txSet:7,generalizedTxSet:17,transaction:8,getScpQuorumset:9,scpQuorumset:10,scpMessage:11,getScpState:12,hello:13,surveyRequest:14,surveyResponse:15,sendMore:16,sendMoreExtended:20,floodAdvert:18,floodDemand:19}),e.struct("DontHave",[["type",e.lookup("MessageType")],["reqHash",e.lookup("Uint256")]]),e.enum("SurveyMessageCommandType",{surveyTopology:0}),e.enum("SurveyMessageResponseType",{surveyTopologyResponseV0:0,surveyTopologyResponseV1:1}),e.struct("SurveyRequestMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["encryptionKey",e.lookup("Curve25519Public")],["commandType",e.lookup("SurveyMessageCommandType")]]),e.struct("SignedSurveyRequestMessage",[["requestSignature",e.lookup("Signature")],["request",e.lookup("SurveyRequestMessage")]]),e.typedef("EncryptedBody",e.varOpaque(64e3)),e.struct("SurveyResponseMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["commandType",e.lookup("SurveyMessageCommandType")],["encryptedBody",e.lookup("EncryptedBody")]]),e.struct("SignedSurveyResponseMessage",[["responseSignature",e.lookup("Signature")],["response",e.lookup("SurveyResponseMessage")]]),e.struct("PeerStats",[["id",e.lookup("NodeId")],["versionStr",e.string(100)],["messagesRead",e.lookup("Uint64")],["messagesWritten",e.lookup("Uint64")],["bytesRead",e.lookup("Uint64")],["bytesWritten",e.lookup("Uint64")],["secondsConnected",e.lookup("Uint64")],["uniqueFloodBytesRecv",e.lookup("Uint64")],["duplicateFloodBytesRecv",e.lookup("Uint64")],["uniqueFetchBytesRecv",e.lookup("Uint64")],["duplicateFetchBytesRecv",e.lookup("Uint64")],["uniqueFloodMessageRecv",e.lookup("Uint64")],["duplicateFloodMessageRecv",e.lookup("Uint64")],["uniqueFetchMessageRecv",e.lookup("Uint64")],["duplicateFetchMessageRecv",e.lookup("Uint64")]]),e.typedef("PeerStatList",e.varArray(e.lookup("PeerStats"),25)),e.struct("TopologyResponseBodyV0",[["inboundPeers",e.lookup("PeerStatList")],["outboundPeers",e.lookup("PeerStatList")],["totalInboundPeerCount",e.lookup("Uint32")],["totalOutboundPeerCount",e.lookup("Uint32")]]),e.struct("TopologyResponseBodyV1",[["inboundPeers",e.lookup("PeerStatList")],["outboundPeers",e.lookup("PeerStatList")],["totalInboundPeerCount",e.lookup("Uint32")],["totalOutboundPeerCount",e.lookup("Uint32")],["maxInboundPeerCount",e.lookup("Uint32")],["maxOutboundPeerCount",e.lookup("Uint32")]]),e.union("SurveyResponseBody",{switchOn:e.lookup("SurveyMessageResponseType"),switchName:"type",switches:[["surveyTopologyResponseV0","topologyResponseBodyV0"],["surveyTopologyResponseV1","topologyResponseBodyV1"]],arms:{topologyResponseBodyV0:e.lookup("TopologyResponseBodyV0"),topologyResponseBodyV1:e.lookup("TopologyResponseBodyV1")}}),e.const("TX_ADVERT_VECTOR_MAX_SIZE",1e3),e.typedef("TxAdvertVector",e.varArray(e.lookup("Hash"),e.lookup("TX_ADVERT_VECTOR_MAX_SIZE"))),e.struct("FloodAdvert",[["txHashes",e.lookup("TxAdvertVector")]]),e.const("TX_DEMAND_VECTOR_MAX_SIZE",1e3),e.typedef("TxDemandVector",e.varArray(e.lookup("Hash"),e.lookup("TX_DEMAND_VECTOR_MAX_SIZE"))),e.struct("FloodDemand",[["txHashes",e.lookup("TxDemandVector")]]),e.union("StellarMessage",{switchOn:e.lookup("MessageType"),switchName:"type",switches:[["errorMsg","error"],["hello","hello"],["auth","auth"],["dontHave","dontHave"],["getPeers",e.void()],["peers","peers"],["getTxSet","txSetHash"],["txSet","txSet"],["generalizedTxSet","generalizedTxSet"],["transaction","transaction"],["surveyRequest","signedSurveyRequestMessage"],["surveyResponse","signedSurveyResponseMessage"],["getScpQuorumset","qSetHash"],["scpQuorumset","qSet"],["scpMessage","envelope"],["getScpState","getScpLedgerSeq"],["sendMore","sendMoreMessage"],["sendMoreExtended","sendMoreExtendedMessage"],["floodAdvert","floodAdvert"],["floodDemand","floodDemand"]],arms:{error:e.lookup("Error"),hello:e.lookup("Hello"),auth:e.lookup("Auth"),dontHave:e.lookup("DontHave"),peers:e.varArray(e.lookup("PeerAddress"),100),txSetHash:e.lookup("Uint256"),txSet:e.lookup("TransactionSet"),generalizedTxSet:e.lookup("GeneralizedTransactionSet"),transaction:e.lookup("TransactionEnvelope"),signedSurveyRequestMessage:e.lookup("SignedSurveyRequestMessage"),signedSurveyResponseMessage:e.lookup("SignedSurveyResponseMessage"),qSetHash:e.lookup("Uint256"),qSet:e.lookup("ScpQuorumSet"),envelope:e.lookup("ScpEnvelope"),getScpLedgerSeq:e.lookup("Uint32"),sendMoreMessage:e.lookup("SendMore"),sendMoreExtendedMessage:e.lookup("SendMoreExtended"),floodAdvert:e.lookup("FloodAdvert"),floodDemand:e.lookup("FloodDemand")}}),e.struct("AuthenticatedMessageV0",[["sequence",e.lookup("Uint64")],["message",e.lookup("StellarMessage")],["mac",e.lookup("HmacSha256Mac")]]),e.union("AuthenticatedMessage",{switchOn:e.lookup("Uint32"),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("AuthenticatedMessageV0")}}),e.const("MAX_OPS_PER_TX",100),e.union("LiquidityPoolParameters",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolConstantProductParameters")}}),e.struct("MuxedAccountMed25519",[["id",e.lookup("Uint64")],["ed25519",e.lookup("Uint256")]]),e.union("MuxedAccount",{switchOn:e.lookup("CryptoKeyType"),switchName:"type",switches:[["keyTypeEd25519","ed25519"],["keyTypeMuxedEd25519","med25519"]],arms:{ed25519:e.lookup("Uint256"),med25519:e.lookup("MuxedAccountMed25519")}}),e.struct("DecoratedSignature",[["hint",e.lookup("SignatureHint")],["signature",e.lookup("Signature")]]),e.enum("OperationType",{createAccount:0,payment:1,pathPaymentStrictReceive:2,manageSellOffer:3,createPassiveSellOffer:4,setOptions:5,changeTrust:6,allowTrust:7,accountMerge:8,inflation:9,manageData:10,bumpSequence:11,manageBuyOffer:12,pathPaymentStrictSend:13,createClaimableBalance:14,claimClaimableBalance:15,beginSponsoringFutureReserves:16,endSponsoringFutureReserves:17,revokeSponsorship:18,clawback:19,clawbackClaimableBalance:20,setTrustLineFlags:21,liquidityPoolDeposit:22,liquidityPoolWithdraw:23,invokeHostFunction:24,extendFootprintTtl:25,restoreFootprint:26}),e.struct("CreateAccountOp",[["destination",e.lookup("AccountId")],["startingBalance",e.lookup("Int64")]]),e.struct("PaymentOp",[["destination",e.lookup("MuxedAccount")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveOp",[["sendAsset",e.lookup("Asset")],["sendMax",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destAmount",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("PathPaymentStrictSendOp",[["sendAsset",e.lookup("Asset")],["sendAmount",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destMin",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("ManageSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("ManageBuyOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["buyAmount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("CreatePassiveSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")]]),e.struct("SetOptionsOp",[["inflationDest",e.option(e.lookup("AccountId"))],["clearFlags",e.option(e.lookup("Uint32"))],["setFlags",e.option(e.lookup("Uint32"))],["masterWeight",e.option(e.lookup("Uint32"))],["lowThreshold",e.option(e.lookup("Uint32"))],["medThreshold",e.option(e.lookup("Uint32"))],["highThreshold",e.option(e.lookup("Uint32"))],["homeDomain",e.option(e.lookup("String32"))],["signer",e.option(e.lookup("Signer"))]]),e.union("ChangeTrustAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPool"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPool:e.lookup("LiquidityPoolParameters")}}),e.struct("ChangeTrustOp",[["line",e.lookup("ChangeTrustAsset")],["limit",e.lookup("Int64")]]),e.struct("AllowTrustOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("AssetCode")],["authorize",e.lookup("Uint32")]]),e.struct("ManageDataOp",[["dataName",e.lookup("String64")],["dataValue",e.option(e.lookup("DataValue"))]]),e.struct("BumpSequenceOp",[["bumpTo",e.lookup("SequenceNumber")]]),e.struct("CreateClaimableBalanceOp",[["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["claimants",e.varArray(e.lookup("Claimant"),10)]]),e.struct("ClaimClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("BeginSponsoringFutureReservesOp",[["sponsoredId",e.lookup("AccountId")]]),e.enum("RevokeSponsorshipType",{revokeSponsorshipLedgerEntry:0,revokeSponsorshipSigner:1}),e.struct("RevokeSponsorshipOpSigner",[["accountId",e.lookup("AccountId")],["signerKey",e.lookup("SignerKey")]]),e.union("RevokeSponsorshipOp",{switchOn:e.lookup("RevokeSponsorshipType"),switchName:"type",switches:[["revokeSponsorshipLedgerEntry","ledgerKey"],["revokeSponsorshipSigner","signer"]],arms:{ledgerKey:e.lookup("LedgerKey"),signer:e.lookup("RevokeSponsorshipOpSigner")}}),e.struct("ClawbackOp",[["asset",e.lookup("Asset")],["from",e.lookup("MuxedAccount")],["amount",e.lookup("Int64")]]),e.struct("ClawbackClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("SetTrustLineFlagsOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("Asset")],["clearFlags",e.lookup("Uint32")],["setFlags",e.lookup("Uint32")]]),e.const("LIQUIDITY_POOL_FEE_V18",30),e.struct("LiquidityPoolDepositOp",[["liquidityPoolId",e.lookup("PoolId")],["maxAmountA",e.lookup("Int64")],["maxAmountB",e.lookup("Int64")],["minPrice",e.lookup("Price")],["maxPrice",e.lookup("Price")]]),e.struct("LiquidityPoolWithdrawOp",[["liquidityPoolId",e.lookup("PoolId")],["amount",e.lookup("Int64")],["minAmountA",e.lookup("Int64")],["minAmountB",e.lookup("Int64")]]),e.enum("HostFunctionType",{hostFunctionTypeInvokeContract:0,hostFunctionTypeCreateContract:1,hostFunctionTypeUploadContractWasm:2}),e.enum("ContractIdPreimageType",{contractIdPreimageFromAddress:0,contractIdPreimageFromAsset:1}),e.struct("ContractIdPreimageFromAddress",[["address",e.lookup("ScAddress")],["salt",e.lookup("Uint256")]]),e.union("ContractIdPreimage",{switchOn:e.lookup("ContractIdPreimageType"),switchName:"type",switches:[["contractIdPreimageFromAddress","fromAddress"],["contractIdPreimageFromAsset","fromAsset"]],arms:{fromAddress:e.lookup("ContractIdPreimageFromAddress"),fromAsset:e.lookup("Asset")}}),e.struct("CreateContractArgs",[["contractIdPreimage",e.lookup("ContractIdPreimage")],["executable",e.lookup("ContractExecutable")]]),e.struct("InvokeContractArgs",[["contractAddress",e.lookup("ScAddress")],["functionName",e.lookup("ScSymbol")],["args",e.varArray(e.lookup("ScVal"),2147483647)]]),e.union("HostFunction",{switchOn:e.lookup("HostFunctionType"),switchName:"type",switches:[["hostFunctionTypeInvokeContract","invokeContract"],["hostFunctionTypeCreateContract","createContract"],["hostFunctionTypeUploadContractWasm","wasm"]],arms:{invokeContract:e.lookup("InvokeContractArgs"),createContract:e.lookup("CreateContractArgs"),wasm:e.varOpaque()}}),e.enum("SorobanAuthorizedFunctionType",{sorobanAuthorizedFunctionTypeContractFn:0,sorobanAuthorizedFunctionTypeCreateContractHostFn:1}),e.union("SorobanAuthorizedFunction",{switchOn:e.lookup("SorobanAuthorizedFunctionType"),switchName:"type",switches:[["sorobanAuthorizedFunctionTypeContractFn","contractFn"],["sorobanAuthorizedFunctionTypeCreateContractHostFn","createContractHostFn"]],arms:{contractFn:e.lookup("InvokeContractArgs"),createContractHostFn:e.lookup("CreateContractArgs")}}),e.struct("SorobanAuthorizedInvocation",[["function",e.lookup("SorobanAuthorizedFunction")],["subInvocations",e.varArray(e.lookup("SorobanAuthorizedInvocation"),2147483647)]]),e.struct("SorobanAddressCredentials",[["address",e.lookup("ScAddress")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["signature",e.lookup("ScVal")]]),e.enum("SorobanCredentialsType",{sorobanCredentialsSourceAccount:0,sorobanCredentialsAddress:1}),e.union("SorobanCredentials",{switchOn:e.lookup("SorobanCredentialsType"),switchName:"type",switches:[["sorobanCredentialsSourceAccount",e.void()],["sorobanCredentialsAddress","address"]],arms:{address:e.lookup("SorobanAddressCredentials")}}),e.struct("SorobanAuthorizationEntry",[["credentials",e.lookup("SorobanCredentials")],["rootInvocation",e.lookup("SorobanAuthorizedInvocation")]]),e.struct("InvokeHostFunctionOp",[["hostFunction",e.lookup("HostFunction")],["auth",e.varArray(e.lookup("SorobanAuthorizationEntry"),2147483647)]]),e.struct("ExtendFootprintTtlOp",[["ext",e.lookup("ExtensionPoint")],["extendTo",e.lookup("Uint32")]]),e.struct("RestoreFootprintOp",[["ext",e.lookup("ExtensionPoint")]]),e.union("OperationBody",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountOp"],["payment","paymentOp"],["pathPaymentStrictReceive","pathPaymentStrictReceiveOp"],["manageSellOffer","manageSellOfferOp"],["createPassiveSellOffer","createPassiveSellOfferOp"],["setOptions","setOptionsOp"],["changeTrust","changeTrustOp"],["allowTrust","allowTrustOp"],["accountMerge","destination"],["inflation",e.void()],["manageData","manageDataOp"],["bumpSequence","bumpSequenceOp"],["manageBuyOffer","manageBuyOfferOp"],["pathPaymentStrictSend","pathPaymentStrictSendOp"],["createClaimableBalance","createClaimableBalanceOp"],["claimClaimableBalance","claimClaimableBalanceOp"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesOp"],["endSponsoringFutureReserves",e.void()],["revokeSponsorship","revokeSponsorshipOp"],["clawback","clawbackOp"],["clawbackClaimableBalance","clawbackClaimableBalanceOp"],["setTrustLineFlags","setTrustLineFlagsOp"],["liquidityPoolDeposit","liquidityPoolDepositOp"],["liquidityPoolWithdraw","liquidityPoolWithdrawOp"],["invokeHostFunction","invokeHostFunctionOp"],["extendFootprintTtl","extendFootprintTtlOp"],["restoreFootprint","restoreFootprintOp"]],arms:{createAccountOp:e.lookup("CreateAccountOp"),paymentOp:e.lookup("PaymentOp"),pathPaymentStrictReceiveOp:e.lookup("PathPaymentStrictReceiveOp"),manageSellOfferOp:e.lookup("ManageSellOfferOp"),createPassiveSellOfferOp:e.lookup("CreatePassiveSellOfferOp"),setOptionsOp:e.lookup("SetOptionsOp"),changeTrustOp:e.lookup("ChangeTrustOp"),allowTrustOp:e.lookup("AllowTrustOp"),destination:e.lookup("MuxedAccount"),manageDataOp:e.lookup("ManageDataOp"),bumpSequenceOp:e.lookup("BumpSequenceOp"),manageBuyOfferOp:e.lookup("ManageBuyOfferOp"),pathPaymentStrictSendOp:e.lookup("PathPaymentStrictSendOp"),createClaimableBalanceOp:e.lookup("CreateClaimableBalanceOp"),claimClaimableBalanceOp:e.lookup("ClaimClaimableBalanceOp"),beginSponsoringFutureReservesOp:e.lookup("BeginSponsoringFutureReservesOp"),revokeSponsorshipOp:e.lookup("RevokeSponsorshipOp"),clawbackOp:e.lookup("ClawbackOp"),clawbackClaimableBalanceOp:e.lookup("ClawbackClaimableBalanceOp"),setTrustLineFlagsOp:e.lookup("SetTrustLineFlagsOp"),liquidityPoolDepositOp:e.lookup("LiquidityPoolDepositOp"),liquidityPoolWithdrawOp:e.lookup("LiquidityPoolWithdrawOp"),invokeHostFunctionOp:e.lookup("InvokeHostFunctionOp"),extendFootprintTtlOp:e.lookup("ExtendFootprintTtlOp"),restoreFootprintOp:e.lookup("RestoreFootprintOp")}}),e.struct("Operation",[["sourceAccount",e.option(e.lookup("MuxedAccount"))],["body",e.lookup("OperationBody")]]),e.struct("HashIdPreimageOperationId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")]]),e.struct("HashIdPreimageRevokeId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")],["liquidityPoolId",e.lookup("PoolId")],["asset",e.lookup("Asset")]]),e.struct("HashIdPreimageContractId",[["networkId",e.lookup("Hash")],["contractIdPreimage",e.lookup("ContractIdPreimage")]]),e.struct("HashIdPreimageSorobanAuthorization",[["networkId",e.lookup("Hash")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["invocation",e.lookup("SorobanAuthorizedInvocation")]]),e.union("HashIdPreimage",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeOpId","operationId"],["envelopeTypePoolRevokeOpId","revokeId"],["envelopeTypeContractId","contractId"],["envelopeTypeSorobanAuthorization","sorobanAuthorization"]],arms:{operationId:e.lookup("HashIdPreimageOperationId"),revokeId:e.lookup("HashIdPreimageRevokeId"),contractId:e.lookup("HashIdPreimageContractId"),sorobanAuthorization:e.lookup("HashIdPreimageSorobanAuthorization")}}),e.enum("MemoType",{memoNone:0,memoText:1,memoId:2,memoHash:3,memoReturn:4}),e.union("Memo",{switchOn:e.lookup("MemoType"),switchName:"type",switches:[["memoNone",e.void()],["memoText","text"],["memoId","id"],["memoHash","hash"],["memoReturn","retHash"]],arms:{text:e.string(28),id:e.lookup("Uint64"),hash:e.lookup("Hash"),retHash:e.lookup("Hash")}}),e.struct("TimeBounds",[["minTime",e.lookup("TimePoint")],["maxTime",e.lookup("TimePoint")]]),e.struct("LedgerBounds",[["minLedger",e.lookup("Uint32")],["maxLedger",e.lookup("Uint32")]]),e.struct("PreconditionsV2",[["timeBounds",e.option(e.lookup("TimeBounds"))],["ledgerBounds",e.option(e.lookup("LedgerBounds"))],["minSeqNum",e.option(e.lookup("SequenceNumber"))],["minSeqAge",e.lookup("Duration")],["minSeqLedgerGap",e.lookup("Uint32")],["extraSigners",e.varArray(e.lookup("SignerKey"),2)]]),e.enum("PreconditionType",{precondNone:0,precondTime:1,precondV2:2}),e.union("Preconditions",{switchOn:e.lookup("PreconditionType"),switchName:"type",switches:[["precondNone",e.void()],["precondTime","timeBounds"],["precondV2","v2"]],arms:{timeBounds:e.lookup("TimeBounds"),v2:e.lookup("PreconditionsV2")}}),e.struct("LedgerFootprint",[["readOnly",e.varArray(e.lookup("LedgerKey"),2147483647)],["readWrite",e.varArray(e.lookup("LedgerKey"),2147483647)]]),e.struct("SorobanResources",[["footprint",e.lookup("LedgerFootprint")],["instructions",e.lookup("Uint32")],["readBytes",e.lookup("Uint32")],["writeBytes",e.lookup("Uint32")]]),e.struct("SorobanTransactionData",[["ext",e.lookup("ExtensionPoint")],["resources",e.lookup("SorobanResources")],["resourceFee",e.lookup("Int64")]]),e.union("TransactionV0Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionV0",[["sourceAccountEd25519",e.lookup("Uint256")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["timeBounds",e.option(e.lookup("TimeBounds"))],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionV0Ext")]]),e.struct("TransactionV0Envelope",[["tx",e.lookup("TransactionV0")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"sorobanData"]],arms:{sorobanData:e.lookup("SorobanTransactionData")}}),e.struct("Transaction",[["sourceAccount",e.lookup("MuxedAccount")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["cond",e.lookup("Preconditions")],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionExt")]]),e.struct("TransactionV1Envelope",[["tx",e.lookup("Transaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("FeeBumpTransactionInnerTx",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","v1"]],arms:{v1:e.lookup("TransactionV1Envelope")}}),e.union("FeeBumpTransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("FeeBumpTransaction",[["feeSource",e.lookup("MuxedAccount")],["fee",e.lookup("Int64")],["innerTx",e.lookup("FeeBumpTransactionInnerTx")],["ext",e.lookup("FeeBumpTransactionExt")]]),e.struct("FeeBumpTransactionEnvelope",[["tx",e.lookup("FeeBumpTransaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionEnvelope",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTxV0","v0"],["envelopeTypeTx","v1"],["envelopeTypeTxFeeBump","feeBump"]],arms:{v0:e.lookup("TransactionV0Envelope"),v1:e.lookup("TransactionV1Envelope"),feeBump:e.lookup("FeeBumpTransactionEnvelope")}}),e.union("TransactionSignaturePayloadTaggedTransaction",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","tx"],["envelopeTypeTxFeeBump","feeBump"]],arms:{tx:e.lookup("Transaction"),feeBump:e.lookup("FeeBumpTransaction")}}),e.struct("TransactionSignaturePayload",[["networkId",e.lookup("Hash")],["taggedTransaction",e.lookup("TransactionSignaturePayloadTaggedTransaction")]]),e.enum("ClaimAtomType",{claimAtomTypeV0:0,claimAtomTypeOrderBook:1,claimAtomTypeLiquidityPool:2}),e.struct("ClaimOfferAtomV0",[["sellerEd25519",e.lookup("Uint256")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimOfferAtom",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimLiquidityAtom",[["liquidityPoolId",e.lookup("PoolId")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.union("ClaimAtom",{switchOn:e.lookup("ClaimAtomType"),switchName:"type",switches:[["claimAtomTypeV0","v0"],["claimAtomTypeOrderBook","orderBook"],["claimAtomTypeLiquidityPool","liquidityPool"]],arms:{v0:e.lookup("ClaimOfferAtomV0"),orderBook:e.lookup("ClaimOfferAtom"),liquidityPool:e.lookup("ClaimLiquidityAtom")}}),e.enum("CreateAccountResultCode",{createAccountSuccess:0,createAccountMalformed:-1,createAccountUnderfunded:-2,createAccountLowReserve:-3,createAccountAlreadyExist:-4}),e.union("CreateAccountResult",{switchOn:e.lookup("CreateAccountResultCode"),switchName:"code",switches:[["createAccountSuccess",e.void()],["createAccountMalformed",e.void()],["createAccountUnderfunded",e.void()],["createAccountLowReserve",e.void()],["createAccountAlreadyExist",e.void()]],arms:{}}),e.enum("PaymentResultCode",{paymentSuccess:0,paymentMalformed:-1,paymentUnderfunded:-2,paymentSrcNoTrust:-3,paymentSrcNotAuthorized:-4,paymentNoDestination:-5,paymentNoTrust:-6,paymentNotAuthorized:-7,paymentLineFull:-8,paymentNoIssuer:-9}),e.union("PaymentResult",{switchOn:e.lookup("PaymentResultCode"),switchName:"code",switches:[["paymentSuccess",e.void()],["paymentMalformed",e.void()],["paymentUnderfunded",e.void()],["paymentSrcNoTrust",e.void()],["paymentSrcNotAuthorized",e.void()],["paymentNoDestination",e.void()],["paymentNoTrust",e.void()],["paymentNotAuthorized",e.void()],["paymentLineFull",e.void()],["paymentNoIssuer",e.void()]],arms:{}}),e.enum("PathPaymentStrictReceiveResultCode",{pathPaymentStrictReceiveSuccess:0,pathPaymentStrictReceiveMalformed:-1,pathPaymentStrictReceiveUnderfunded:-2,pathPaymentStrictReceiveSrcNoTrust:-3,pathPaymentStrictReceiveSrcNotAuthorized:-4,pathPaymentStrictReceiveNoDestination:-5,pathPaymentStrictReceiveNoTrust:-6,pathPaymentStrictReceiveNotAuthorized:-7,pathPaymentStrictReceiveLineFull:-8,pathPaymentStrictReceiveNoIssuer:-9,pathPaymentStrictReceiveTooFewOffers:-10,pathPaymentStrictReceiveOfferCrossSelf:-11,pathPaymentStrictReceiveOverSendmax:-12}),e.struct("SimplePaymentResult",[["destination",e.lookup("AccountId")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictReceiveResult",{switchOn:e.lookup("PathPaymentStrictReceiveResultCode"),switchName:"code",switches:[["pathPaymentStrictReceiveSuccess","success"],["pathPaymentStrictReceiveMalformed",e.void()],["pathPaymentStrictReceiveUnderfunded",e.void()],["pathPaymentStrictReceiveSrcNoTrust",e.void()],["pathPaymentStrictReceiveSrcNotAuthorized",e.void()],["pathPaymentStrictReceiveNoDestination",e.void()],["pathPaymentStrictReceiveNoTrust",e.void()],["pathPaymentStrictReceiveNotAuthorized",e.void()],["pathPaymentStrictReceiveLineFull",e.void()],["pathPaymentStrictReceiveNoIssuer","noIssuer"],["pathPaymentStrictReceiveTooFewOffers",e.void()],["pathPaymentStrictReceiveOfferCrossSelf",e.void()],["pathPaymentStrictReceiveOverSendmax",e.void()]],arms:{success:e.lookup("PathPaymentStrictReceiveResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("PathPaymentStrictSendResultCode",{pathPaymentStrictSendSuccess:0,pathPaymentStrictSendMalformed:-1,pathPaymentStrictSendUnderfunded:-2,pathPaymentStrictSendSrcNoTrust:-3,pathPaymentStrictSendSrcNotAuthorized:-4,pathPaymentStrictSendNoDestination:-5,pathPaymentStrictSendNoTrust:-6,pathPaymentStrictSendNotAuthorized:-7,pathPaymentStrictSendLineFull:-8,pathPaymentStrictSendNoIssuer:-9,pathPaymentStrictSendTooFewOffers:-10,pathPaymentStrictSendOfferCrossSelf:-11,pathPaymentStrictSendUnderDestmin:-12}),e.struct("PathPaymentStrictSendResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictSendResult",{switchOn:e.lookup("PathPaymentStrictSendResultCode"),switchName:"code",switches:[["pathPaymentStrictSendSuccess","success"],["pathPaymentStrictSendMalformed",e.void()],["pathPaymentStrictSendUnderfunded",e.void()],["pathPaymentStrictSendSrcNoTrust",e.void()],["pathPaymentStrictSendSrcNotAuthorized",e.void()],["pathPaymentStrictSendNoDestination",e.void()],["pathPaymentStrictSendNoTrust",e.void()],["pathPaymentStrictSendNotAuthorized",e.void()],["pathPaymentStrictSendLineFull",e.void()],["pathPaymentStrictSendNoIssuer","noIssuer"],["pathPaymentStrictSendTooFewOffers",e.void()],["pathPaymentStrictSendOfferCrossSelf",e.void()],["pathPaymentStrictSendUnderDestmin",e.void()]],arms:{success:e.lookup("PathPaymentStrictSendResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("ManageSellOfferResultCode",{manageSellOfferSuccess:0,manageSellOfferMalformed:-1,manageSellOfferSellNoTrust:-2,manageSellOfferBuyNoTrust:-3,manageSellOfferSellNotAuthorized:-4,manageSellOfferBuyNotAuthorized:-5,manageSellOfferLineFull:-6,manageSellOfferUnderfunded:-7,manageSellOfferCrossSelf:-8,manageSellOfferSellNoIssuer:-9,manageSellOfferBuyNoIssuer:-10,manageSellOfferNotFound:-11,manageSellOfferLowReserve:-12}),e.enum("ManageOfferEffect",{manageOfferCreated:0,manageOfferUpdated:1,manageOfferDeleted:2}),e.union("ManageOfferSuccessResultOffer",{switchOn:e.lookup("ManageOfferEffect"),switchName:"effect",switches:[["manageOfferCreated","offer"],["manageOfferUpdated","offer"],["manageOfferDeleted",e.void()]],arms:{offer:e.lookup("OfferEntry")}}),e.struct("ManageOfferSuccessResult",[["offersClaimed",e.varArray(e.lookup("ClaimAtom"),2147483647)],["offer",e.lookup("ManageOfferSuccessResultOffer")]]),e.union("ManageSellOfferResult",{switchOn:e.lookup("ManageSellOfferResultCode"),switchName:"code",switches:[["manageSellOfferSuccess","success"],["manageSellOfferMalformed",e.void()],["manageSellOfferSellNoTrust",e.void()],["manageSellOfferBuyNoTrust",e.void()],["manageSellOfferSellNotAuthorized",e.void()],["manageSellOfferBuyNotAuthorized",e.void()],["manageSellOfferLineFull",e.void()],["manageSellOfferUnderfunded",e.void()],["manageSellOfferCrossSelf",e.void()],["manageSellOfferSellNoIssuer",e.void()],["manageSellOfferBuyNoIssuer",e.void()],["manageSellOfferNotFound",e.void()],["manageSellOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("ManageBuyOfferResultCode",{manageBuyOfferSuccess:0,manageBuyOfferMalformed:-1,manageBuyOfferSellNoTrust:-2,manageBuyOfferBuyNoTrust:-3,manageBuyOfferSellNotAuthorized:-4,manageBuyOfferBuyNotAuthorized:-5,manageBuyOfferLineFull:-6,manageBuyOfferUnderfunded:-7,manageBuyOfferCrossSelf:-8,manageBuyOfferSellNoIssuer:-9,manageBuyOfferBuyNoIssuer:-10,manageBuyOfferNotFound:-11,manageBuyOfferLowReserve:-12}),e.union("ManageBuyOfferResult",{switchOn:e.lookup("ManageBuyOfferResultCode"),switchName:"code",switches:[["manageBuyOfferSuccess","success"],["manageBuyOfferMalformed",e.void()],["manageBuyOfferSellNoTrust",e.void()],["manageBuyOfferBuyNoTrust",e.void()],["manageBuyOfferSellNotAuthorized",e.void()],["manageBuyOfferBuyNotAuthorized",e.void()],["manageBuyOfferLineFull",e.void()],["manageBuyOfferUnderfunded",e.void()],["manageBuyOfferCrossSelf",e.void()],["manageBuyOfferSellNoIssuer",e.void()],["manageBuyOfferBuyNoIssuer",e.void()],["manageBuyOfferNotFound",e.void()],["manageBuyOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("SetOptionsResultCode",{setOptionsSuccess:0,setOptionsLowReserve:-1,setOptionsTooManySigners:-2,setOptionsBadFlags:-3,setOptionsInvalidInflation:-4,setOptionsCantChange:-5,setOptionsUnknownFlag:-6,setOptionsThresholdOutOfRange:-7,setOptionsBadSigner:-8,setOptionsInvalidHomeDomain:-9,setOptionsAuthRevocableRequired:-10}),e.union("SetOptionsResult",{switchOn:e.lookup("SetOptionsResultCode"),switchName:"code",switches:[["setOptionsSuccess",e.void()],["setOptionsLowReserve",e.void()],["setOptionsTooManySigners",e.void()],["setOptionsBadFlags",e.void()],["setOptionsInvalidInflation",e.void()],["setOptionsCantChange",e.void()],["setOptionsUnknownFlag",e.void()],["setOptionsThresholdOutOfRange",e.void()],["setOptionsBadSigner",e.void()],["setOptionsInvalidHomeDomain",e.void()],["setOptionsAuthRevocableRequired",e.void()]],arms:{}}),e.enum("ChangeTrustResultCode",{changeTrustSuccess:0,changeTrustMalformed:-1,changeTrustNoIssuer:-2,changeTrustInvalidLimit:-3,changeTrustLowReserve:-4,changeTrustSelfNotAllowed:-5,changeTrustTrustLineMissing:-6,changeTrustCannotDelete:-7,changeTrustNotAuthMaintainLiabilities:-8}),e.union("ChangeTrustResult",{switchOn:e.lookup("ChangeTrustResultCode"),switchName:"code",switches:[["changeTrustSuccess",e.void()],["changeTrustMalformed",e.void()],["changeTrustNoIssuer",e.void()],["changeTrustInvalidLimit",e.void()],["changeTrustLowReserve",e.void()],["changeTrustSelfNotAllowed",e.void()],["changeTrustTrustLineMissing",e.void()],["changeTrustCannotDelete",e.void()],["changeTrustNotAuthMaintainLiabilities",e.void()]],arms:{}}),e.enum("AllowTrustResultCode",{allowTrustSuccess:0,allowTrustMalformed:-1,allowTrustNoTrustLine:-2,allowTrustTrustNotRequired:-3,allowTrustCantRevoke:-4,allowTrustSelfNotAllowed:-5,allowTrustLowReserve:-6}),e.union("AllowTrustResult",{switchOn:e.lookup("AllowTrustResultCode"),switchName:"code",switches:[["allowTrustSuccess",e.void()],["allowTrustMalformed",e.void()],["allowTrustNoTrustLine",e.void()],["allowTrustTrustNotRequired",e.void()],["allowTrustCantRevoke",e.void()],["allowTrustSelfNotAllowed",e.void()],["allowTrustLowReserve",e.void()]],arms:{}}),e.enum("AccountMergeResultCode",{accountMergeSuccess:0,accountMergeMalformed:-1,accountMergeNoAccount:-2,accountMergeImmutableSet:-3,accountMergeHasSubEntries:-4,accountMergeSeqnumTooFar:-5,accountMergeDestFull:-6,accountMergeIsSponsor:-7}),e.union("AccountMergeResult",{switchOn:e.lookup("AccountMergeResultCode"),switchName:"code",switches:[["accountMergeSuccess","sourceAccountBalance"],["accountMergeMalformed",e.void()],["accountMergeNoAccount",e.void()],["accountMergeImmutableSet",e.void()],["accountMergeHasSubEntries",e.void()],["accountMergeSeqnumTooFar",e.void()],["accountMergeDestFull",e.void()],["accountMergeIsSponsor",e.void()]],arms:{sourceAccountBalance:e.lookup("Int64")}}),e.enum("InflationResultCode",{inflationSuccess:0,inflationNotTime:-1}),e.struct("InflationPayout",[["destination",e.lookup("AccountId")],["amount",e.lookup("Int64")]]),e.union("InflationResult",{switchOn:e.lookup("InflationResultCode"),switchName:"code",switches:[["inflationSuccess","payouts"],["inflationNotTime",e.void()]],arms:{payouts:e.varArray(e.lookup("InflationPayout"),2147483647)}}),e.enum("ManageDataResultCode",{manageDataSuccess:0,manageDataNotSupportedYet:-1,manageDataNameNotFound:-2,manageDataLowReserve:-3,manageDataInvalidName:-4}),e.union("ManageDataResult",{switchOn:e.lookup("ManageDataResultCode"),switchName:"code",switches:[["manageDataSuccess",e.void()],["manageDataNotSupportedYet",e.void()],["manageDataNameNotFound",e.void()],["manageDataLowReserve",e.void()],["manageDataInvalidName",e.void()]],arms:{}}),e.enum("BumpSequenceResultCode",{bumpSequenceSuccess:0,bumpSequenceBadSeq:-1}),e.union("BumpSequenceResult",{switchOn:e.lookup("BumpSequenceResultCode"),switchName:"code",switches:[["bumpSequenceSuccess",e.void()],["bumpSequenceBadSeq",e.void()]],arms:{}}),e.enum("CreateClaimableBalanceResultCode",{createClaimableBalanceSuccess:0,createClaimableBalanceMalformed:-1,createClaimableBalanceLowReserve:-2,createClaimableBalanceNoTrust:-3,createClaimableBalanceNotAuthorized:-4,createClaimableBalanceUnderfunded:-5}),e.union("CreateClaimableBalanceResult",{switchOn:e.lookup("CreateClaimableBalanceResultCode"),switchName:"code",switches:[["createClaimableBalanceSuccess","balanceId"],["createClaimableBalanceMalformed",e.void()],["createClaimableBalanceLowReserve",e.void()],["createClaimableBalanceNoTrust",e.void()],["createClaimableBalanceNotAuthorized",e.void()],["createClaimableBalanceUnderfunded",e.void()]],arms:{balanceId:e.lookup("ClaimableBalanceId")}}),e.enum("ClaimClaimableBalanceResultCode",{claimClaimableBalanceSuccess:0,claimClaimableBalanceDoesNotExist:-1,claimClaimableBalanceCannotClaim:-2,claimClaimableBalanceLineFull:-3,claimClaimableBalanceNoTrust:-4,claimClaimableBalanceNotAuthorized:-5}),e.union("ClaimClaimableBalanceResult",{switchOn:e.lookup("ClaimClaimableBalanceResultCode"),switchName:"code",switches:[["claimClaimableBalanceSuccess",e.void()],["claimClaimableBalanceDoesNotExist",e.void()],["claimClaimableBalanceCannotClaim",e.void()],["claimClaimableBalanceLineFull",e.void()],["claimClaimableBalanceNoTrust",e.void()],["claimClaimableBalanceNotAuthorized",e.void()]],arms:{}}),e.enum("BeginSponsoringFutureReservesResultCode",{beginSponsoringFutureReservesSuccess:0,beginSponsoringFutureReservesMalformed:-1,beginSponsoringFutureReservesAlreadySponsored:-2,beginSponsoringFutureReservesRecursive:-3}),e.union("BeginSponsoringFutureReservesResult",{switchOn:e.lookup("BeginSponsoringFutureReservesResultCode"),switchName:"code",switches:[["beginSponsoringFutureReservesSuccess",e.void()],["beginSponsoringFutureReservesMalformed",e.void()],["beginSponsoringFutureReservesAlreadySponsored",e.void()],["beginSponsoringFutureReservesRecursive",e.void()]],arms:{}}),e.enum("EndSponsoringFutureReservesResultCode",{endSponsoringFutureReservesSuccess:0,endSponsoringFutureReservesNotSponsored:-1}),e.union("EndSponsoringFutureReservesResult",{switchOn:e.lookup("EndSponsoringFutureReservesResultCode"),switchName:"code",switches:[["endSponsoringFutureReservesSuccess",e.void()],["endSponsoringFutureReservesNotSponsored",e.void()]],arms:{}}),e.enum("RevokeSponsorshipResultCode",{revokeSponsorshipSuccess:0,revokeSponsorshipDoesNotExist:-1,revokeSponsorshipNotSponsor:-2,revokeSponsorshipLowReserve:-3,revokeSponsorshipOnlyTransferable:-4,revokeSponsorshipMalformed:-5}),e.union("RevokeSponsorshipResult",{switchOn:e.lookup("RevokeSponsorshipResultCode"),switchName:"code",switches:[["revokeSponsorshipSuccess",e.void()],["revokeSponsorshipDoesNotExist",e.void()],["revokeSponsorshipNotSponsor",e.void()],["revokeSponsorshipLowReserve",e.void()],["revokeSponsorshipOnlyTransferable",e.void()],["revokeSponsorshipMalformed",e.void()]],arms:{}}),e.enum("ClawbackResultCode",{clawbackSuccess:0,clawbackMalformed:-1,clawbackNotClawbackEnabled:-2,clawbackNoTrust:-3,clawbackUnderfunded:-4}),e.union("ClawbackResult",{switchOn:e.lookup("ClawbackResultCode"),switchName:"code",switches:[["clawbackSuccess",e.void()],["clawbackMalformed",e.void()],["clawbackNotClawbackEnabled",e.void()],["clawbackNoTrust",e.void()],["clawbackUnderfunded",e.void()]],arms:{}}),e.enum("ClawbackClaimableBalanceResultCode",{clawbackClaimableBalanceSuccess:0,clawbackClaimableBalanceDoesNotExist:-1,clawbackClaimableBalanceNotIssuer:-2,clawbackClaimableBalanceNotClawbackEnabled:-3}),e.union("ClawbackClaimableBalanceResult",{switchOn:e.lookup("ClawbackClaimableBalanceResultCode"),switchName:"code",switches:[["clawbackClaimableBalanceSuccess",e.void()],["clawbackClaimableBalanceDoesNotExist",e.void()],["clawbackClaimableBalanceNotIssuer",e.void()],["clawbackClaimableBalanceNotClawbackEnabled",e.void()]],arms:{}}),e.enum("SetTrustLineFlagsResultCode",{setTrustLineFlagsSuccess:0,setTrustLineFlagsMalformed:-1,setTrustLineFlagsNoTrustLine:-2,setTrustLineFlagsCantRevoke:-3,setTrustLineFlagsInvalidState:-4,setTrustLineFlagsLowReserve:-5}),e.union("SetTrustLineFlagsResult",{switchOn:e.lookup("SetTrustLineFlagsResultCode"),switchName:"code",switches:[["setTrustLineFlagsSuccess",e.void()],["setTrustLineFlagsMalformed",e.void()],["setTrustLineFlagsNoTrustLine",e.void()],["setTrustLineFlagsCantRevoke",e.void()],["setTrustLineFlagsInvalidState",e.void()],["setTrustLineFlagsLowReserve",e.void()]],arms:{}}),e.enum("LiquidityPoolDepositResultCode",{liquidityPoolDepositSuccess:0,liquidityPoolDepositMalformed:-1,liquidityPoolDepositNoTrust:-2,liquidityPoolDepositNotAuthorized:-3,liquidityPoolDepositUnderfunded:-4,liquidityPoolDepositLineFull:-5,liquidityPoolDepositBadPrice:-6,liquidityPoolDepositPoolFull:-7}),e.union("LiquidityPoolDepositResult",{switchOn:e.lookup("LiquidityPoolDepositResultCode"),switchName:"code",switches:[["liquidityPoolDepositSuccess",e.void()],["liquidityPoolDepositMalformed",e.void()],["liquidityPoolDepositNoTrust",e.void()],["liquidityPoolDepositNotAuthorized",e.void()],["liquidityPoolDepositUnderfunded",e.void()],["liquidityPoolDepositLineFull",e.void()],["liquidityPoolDepositBadPrice",e.void()],["liquidityPoolDepositPoolFull",e.void()]],arms:{}}),e.enum("LiquidityPoolWithdrawResultCode",{liquidityPoolWithdrawSuccess:0,liquidityPoolWithdrawMalformed:-1,liquidityPoolWithdrawNoTrust:-2,liquidityPoolWithdrawUnderfunded:-3,liquidityPoolWithdrawLineFull:-4,liquidityPoolWithdrawUnderMinimum:-5}),e.union("LiquidityPoolWithdrawResult",{switchOn:e.lookup("LiquidityPoolWithdrawResultCode"),switchName:"code",switches:[["liquidityPoolWithdrawSuccess",e.void()],["liquidityPoolWithdrawMalformed",e.void()],["liquidityPoolWithdrawNoTrust",e.void()],["liquidityPoolWithdrawUnderfunded",e.void()],["liquidityPoolWithdrawLineFull",e.void()],["liquidityPoolWithdrawUnderMinimum",e.void()]],arms:{}}),e.enum("InvokeHostFunctionResultCode",{invokeHostFunctionSuccess:0,invokeHostFunctionMalformed:-1,invokeHostFunctionTrapped:-2,invokeHostFunctionResourceLimitExceeded:-3,invokeHostFunctionEntryArchived:-4,invokeHostFunctionInsufficientRefundableFee:-5}),e.union("InvokeHostFunctionResult",{switchOn:e.lookup("InvokeHostFunctionResultCode"),switchName:"code",switches:[["invokeHostFunctionSuccess","success"],["invokeHostFunctionMalformed",e.void()],["invokeHostFunctionTrapped",e.void()],["invokeHostFunctionResourceLimitExceeded",e.void()],["invokeHostFunctionEntryArchived",e.void()],["invokeHostFunctionInsufficientRefundableFee",e.void()]],arms:{success:e.lookup("Hash")}}),e.enum("ExtendFootprintTtlResultCode",{extendFootprintTtlSuccess:0,extendFootprintTtlMalformed:-1,extendFootprintTtlResourceLimitExceeded:-2,extendFootprintTtlInsufficientRefundableFee:-3}),e.union("ExtendFootprintTtlResult",{switchOn:e.lookup("ExtendFootprintTtlResultCode"),switchName:"code",switches:[["extendFootprintTtlSuccess",e.void()],["extendFootprintTtlMalformed",e.void()],["extendFootprintTtlResourceLimitExceeded",e.void()],["extendFootprintTtlInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("RestoreFootprintResultCode",{restoreFootprintSuccess:0,restoreFootprintMalformed:-1,restoreFootprintResourceLimitExceeded:-2,restoreFootprintInsufficientRefundableFee:-3}),e.union("RestoreFootprintResult",{switchOn:e.lookup("RestoreFootprintResultCode"),switchName:"code",switches:[["restoreFootprintSuccess",e.void()],["restoreFootprintMalformed",e.void()],["restoreFootprintResourceLimitExceeded",e.void()],["restoreFootprintInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("OperationResultCode",{opInner:0,opBadAuth:-1,opNoAccount:-2,opNotSupported:-3,opTooManySubentries:-4,opExceededWorkLimit:-5,opTooManySponsoring:-6}),e.union("OperationResultTr",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountResult"],["payment","paymentResult"],["pathPaymentStrictReceive","pathPaymentStrictReceiveResult"],["manageSellOffer","manageSellOfferResult"],["createPassiveSellOffer","createPassiveSellOfferResult"],["setOptions","setOptionsResult"],["changeTrust","changeTrustResult"],["allowTrust","allowTrustResult"],["accountMerge","accountMergeResult"],["inflation","inflationResult"],["manageData","manageDataResult"],["bumpSequence","bumpSeqResult"],["manageBuyOffer","manageBuyOfferResult"],["pathPaymentStrictSend","pathPaymentStrictSendResult"],["createClaimableBalance","createClaimableBalanceResult"],["claimClaimableBalance","claimClaimableBalanceResult"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesResult"],["endSponsoringFutureReserves","endSponsoringFutureReservesResult"],["revokeSponsorship","revokeSponsorshipResult"],["clawback","clawbackResult"],["clawbackClaimableBalance","clawbackClaimableBalanceResult"],["setTrustLineFlags","setTrustLineFlagsResult"],["liquidityPoolDeposit","liquidityPoolDepositResult"],["liquidityPoolWithdraw","liquidityPoolWithdrawResult"],["invokeHostFunction","invokeHostFunctionResult"],["extendFootprintTtl","extendFootprintTtlResult"],["restoreFootprint","restoreFootprintResult"]],arms:{createAccountResult:e.lookup("CreateAccountResult"),paymentResult:e.lookup("PaymentResult"),pathPaymentStrictReceiveResult:e.lookup("PathPaymentStrictReceiveResult"),manageSellOfferResult:e.lookup("ManageSellOfferResult"),createPassiveSellOfferResult:e.lookup("ManageSellOfferResult"),setOptionsResult:e.lookup("SetOptionsResult"),changeTrustResult:e.lookup("ChangeTrustResult"),allowTrustResult:e.lookup("AllowTrustResult"),accountMergeResult:e.lookup("AccountMergeResult"),inflationResult:e.lookup("InflationResult"),manageDataResult:e.lookup("ManageDataResult"),bumpSeqResult:e.lookup("BumpSequenceResult"),manageBuyOfferResult:e.lookup("ManageBuyOfferResult"),pathPaymentStrictSendResult:e.lookup("PathPaymentStrictSendResult"),createClaimableBalanceResult:e.lookup("CreateClaimableBalanceResult"),claimClaimableBalanceResult:e.lookup("ClaimClaimableBalanceResult"),beginSponsoringFutureReservesResult:e.lookup("BeginSponsoringFutureReservesResult"),endSponsoringFutureReservesResult:e.lookup("EndSponsoringFutureReservesResult"),revokeSponsorshipResult:e.lookup("RevokeSponsorshipResult"),clawbackResult:e.lookup("ClawbackResult"),clawbackClaimableBalanceResult:e.lookup("ClawbackClaimableBalanceResult"),setTrustLineFlagsResult:e.lookup("SetTrustLineFlagsResult"),liquidityPoolDepositResult:e.lookup("LiquidityPoolDepositResult"),liquidityPoolWithdrawResult:e.lookup("LiquidityPoolWithdrawResult"),invokeHostFunctionResult:e.lookup("InvokeHostFunctionResult"),extendFootprintTtlResult:e.lookup("ExtendFootprintTtlResult"),restoreFootprintResult:e.lookup("RestoreFootprintResult")}}),e.union("OperationResult",{switchOn:e.lookup("OperationResultCode"),switchName:"code",switches:[["opInner","tr"],["opBadAuth",e.void()],["opNoAccount",e.void()],["opNotSupported",e.void()],["opTooManySubentries",e.void()],["opExceededWorkLimit",e.void()],["opTooManySponsoring",e.void()]],arms:{tr:e.lookup("OperationResultTr")}}),e.enum("TransactionResultCode",{txFeeBumpInnerSuccess:1,txSuccess:0,txFailed:-1,txTooEarly:-2,txTooLate:-3,txMissingOperation:-4,txBadSeq:-5,txBadAuth:-6,txInsufficientBalance:-7,txNoAccount:-8,txInsufficientFee:-9,txBadAuthExtra:-10,txInternalError:-11,txNotSupported:-12,txFeeBumpInnerFailed:-13,txBadSponsorship:-14,txBadMinSeqAgeOrGap:-15,txMalformed:-16,txSorobanInvalid:-17}),e.union("InnerTransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("InnerTransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("InnerTransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("InnerTransactionResultResult")],["ext",e.lookup("InnerTransactionResultExt")]]),e.struct("InnerTransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("InnerTransactionResult")]]),e.union("TransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txFeeBumpInnerSuccess","innerResultPair"],["txFeeBumpInnerFailed","innerResultPair"],["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{innerResultPair:e.lookup("InnerTransactionResultPair"),results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("TransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("TransactionResultResult")],["ext",e.lookup("TransactionResultExt")]]),e.typedef("Hash",e.opaque(32)),e.typedef("Uint256",e.opaque(32)),e.typedef("Uint32",e.uint()),e.typedef("Int32",e.int()),e.typedef("Uint64",e.uhyper()),e.typedef("Int64",e.hyper()),e.typedef("TimePoint",e.lookup("Uint64")),e.typedef("Duration",e.lookup("Uint64")),e.union("ExtensionPoint",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.enum("CryptoKeyType",{keyTypeEd25519:0,keyTypePreAuthTx:1,keyTypeHashX:2,keyTypeEd25519SignedPayload:3,keyTypeMuxedEd25519:256}),e.enum("PublicKeyType",{publicKeyTypeEd25519:0}),e.enum("SignerKeyType",{signerKeyTypeEd25519:0,signerKeyTypePreAuthTx:1,signerKeyTypeHashX:2,signerKeyTypeEd25519SignedPayload:3}),e.union("PublicKey",{switchOn:e.lookup("PublicKeyType"),switchName:"type",switches:[["publicKeyTypeEd25519","ed25519"]],arms:{ed25519:e.lookup("Uint256")}}),e.struct("SignerKeyEd25519SignedPayload",[["ed25519",e.lookup("Uint256")],["payload",e.varOpaque(64)]]),e.union("SignerKey",{switchOn:e.lookup("SignerKeyType"),switchName:"type",switches:[["signerKeyTypeEd25519","ed25519"],["signerKeyTypePreAuthTx","preAuthTx"],["signerKeyTypeHashX","hashX"],["signerKeyTypeEd25519SignedPayload","ed25519SignedPayload"]],arms:{ed25519:e.lookup("Uint256"),preAuthTx:e.lookup("Uint256"),hashX:e.lookup("Uint256"),ed25519SignedPayload:e.lookup("SignerKeyEd25519SignedPayload")}}),e.typedef("Signature",e.varOpaque(64)),e.typedef("SignatureHint",e.opaque(4)),e.typedef("NodeId",e.lookup("PublicKey")),e.typedef("AccountId",e.lookup("PublicKey")),e.struct("Curve25519Secret",[["key",e.opaque(32)]]),e.struct("Curve25519Public",[["key",e.opaque(32)]]),e.struct("HmacSha256Key",[["key",e.opaque(32)]]),e.struct("HmacSha256Mac",[["mac",e.opaque(32)]]),e.enum("ScValType",{scvBool:0,scvVoid:1,scvError:2,scvU32:3,scvI32:4,scvU64:5,scvI64:6,scvTimepoint:7,scvDuration:8,scvU128:9,scvI128:10,scvU256:11,scvI256:12,scvBytes:13,scvString:14,scvSymbol:15,scvVec:16,scvMap:17,scvAddress:18,scvContractInstance:19,scvLedgerKeyContractInstance:20,scvLedgerKeyNonce:21}),e.enum("ScErrorType",{sceContract:0,sceWasmVm:1,sceContext:2,sceStorage:3,sceObject:4,sceCrypto:5,sceEvents:6,sceBudget:7,sceValue:8,sceAuth:9}),e.enum("ScErrorCode",{scecArithDomain:0,scecIndexBounds:1,scecInvalidInput:2,scecMissingValue:3,scecExistingValue:4,scecExceededLimit:5,scecInvalidAction:6,scecInternalError:7,scecUnexpectedType:8,scecUnexpectedSize:9}),e.union("ScError",{switchOn:e.lookup("ScErrorType"),switchName:"type",switches:[["sceContract","contractCode"],["sceWasmVm","code"],["sceContext","code"],["sceStorage","code"],["sceObject","code"],["sceCrypto","code"],["sceEvents","code"],["sceBudget","code"],["sceValue","code"],["sceAuth","code"]],arms:{contractCode:e.lookup("Uint32"),code:e.lookup("ScErrorCode")}}),e.struct("UInt128Parts",[["hi",e.lookup("Uint64")],["lo",e.lookup("Uint64")]]),e.struct("Int128Parts",[["hi",e.lookup("Int64")],["lo",e.lookup("Uint64")]]),e.struct("UInt256Parts",[["hiHi",e.lookup("Uint64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.struct("Int256Parts",[["hiHi",e.lookup("Int64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.enum("ContractExecutableType",{contractExecutableWasm:0,contractExecutableStellarAsset:1}),e.union("ContractExecutable",{switchOn:e.lookup("ContractExecutableType"),switchName:"type",switches:[["contractExecutableWasm","wasmHash"],["contractExecutableStellarAsset",e.void()]],arms:{wasmHash:e.lookup("Hash")}}),e.enum("ScAddressType",{scAddressTypeAccount:0,scAddressTypeContract:1}),e.union("ScAddress",{switchOn:e.lookup("ScAddressType"),switchName:"type",switches:[["scAddressTypeAccount","accountId"],["scAddressTypeContract","contractId"]],arms:{accountId:e.lookup("AccountId"),contractId:e.lookup("Hash")}}),e.const("SCSYMBOL_LIMIT",32),e.typedef("ScVec",e.varArray(e.lookup("ScVal"),2147483647)),e.typedef("ScMap",e.varArray(e.lookup("ScMapEntry"),2147483647)),e.typedef("ScBytes",e.varOpaque()),e.typedef("ScString",e.string()),e.typedef("ScSymbol",e.string(32)),e.struct("ScNonceKey",[["nonce",e.lookup("Int64")]]),e.struct("ScContractInstance",[["executable",e.lookup("ContractExecutable")],["storage",e.option(e.lookup("ScMap"))]]),e.union("ScVal",{switchOn:e.lookup("ScValType"),switchName:"type",switches:[["scvBool","b"],["scvVoid",e.void()],["scvError","error"],["scvU32","u32"],["scvI32","i32"],["scvU64","u64"],["scvI64","i64"],["scvTimepoint","timepoint"],["scvDuration","duration"],["scvU128","u128"],["scvI128","i128"],["scvU256","u256"],["scvI256","i256"],["scvBytes","bytes"],["scvString","str"],["scvSymbol","sym"],["scvVec","vec"],["scvMap","map"],["scvAddress","address"],["scvLedgerKeyContractInstance",e.void()],["scvLedgerKeyNonce","nonceKey"],["scvContractInstance","instance"]],arms:{b:e.bool(),error:e.lookup("ScError"),u32:e.lookup("Uint32"),i32:e.lookup("Int32"),u64:e.lookup("Uint64"),i64:e.lookup("Int64"),timepoint:e.lookup("TimePoint"),duration:e.lookup("Duration"),u128:e.lookup("UInt128Parts"),i128:e.lookup("Int128Parts"),u256:e.lookup("UInt256Parts"),i256:e.lookup("Int256Parts"),bytes:e.lookup("ScBytes"),str:e.lookup("ScString"),sym:e.lookup("ScSymbol"),vec:e.option(e.lookup("ScVec")),map:e.option(e.lookup("ScMap")),address:e.lookup("ScAddress"),nonceKey:e.lookup("ScNonceKey"),instance:e.lookup("ScContractInstance")}}),e.struct("ScMapEntry",[["key",e.lookup("ScVal")],["val",e.lookup("ScVal")]]),e.enum("ScEnvMetaKind",{scEnvMetaKindInterfaceVersion:0}),e.union("ScEnvMetaEntry",{switchOn:e.lookup("ScEnvMetaKind"),switchName:"kind",switches:[["scEnvMetaKindInterfaceVersion","interfaceVersion"]],arms:{interfaceVersion:e.lookup("Uint64")}}),e.struct("ScMetaV0",[["key",e.string()],["val",e.string()]]),e.enum("ScMetaKind",{scMetaV0:0}),e.union("ScMetaEntry",{switchOn:e.lookup("ScMetaKind"),switchName:"kind",switches:[["scMetaV0","v0"]],arms:{v0:e.lookup("ScMetaV0")}}),e.const("SC_SPEC_DOC_LIMIT",1024),e.enum("ScSpecType",{scSpecTypeVal:0,scSpecTypeBool:1,scSpecTypeVoid:2,scSpecTypeError:3,scSpecTypeU32:4,scSpecTypeI32:5,scSpecTypeU64:6,scSpecTypeI64:7,scSpecTypeTimepoint:8,scSpecTypeDuration:9,scSpecTypeU128:10,scSpecTypeI128:11,scSpecTypeU256:12,scSpecTypeI256:13,scSpecTypeBytes:14,scSpecTypeString:16,scSpecTypeSymbol:17,scSpecTypeAddress:19,scSpecTypeOption:1e3,scSpecTypeResult:1001,scSpecTypeVec:1002,scSpecTypeMap:1004,scSpecTypeTuple:1005,scSpecTypeBytesN:1006,scSpecTypeUdt:2e3}),e.struct("ScSpecTypeOption",[["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeResult",[["okType",e.lookup("ScSpecTypeDef")],["errorType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeVec",[["elementType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeMap",[["keyType",e.lookup("ScSpecTypeDef")],["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeTuple",[["valueTypes",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.struct("ScSpecTypeBytesN",[["n",e.lookup("Uint32")]]),e.struct("ScSpecTypeUdt",[["name",e.string(60)]]),e.union("ScSpecTypeDef",{switchOn:e.lookup("ScSpecType"),switchName:"type",switches:[["scSpecTypeVal",e.void()],["scSpecTypeBool",e.void()],["scSpecTypeVoid",e.void()],["scSpecTypeError",e.void()],["scSpecTypeU32",e.void()],["scSpecTypeI32",e.void()],["scSpecTypeU64",e.void()],["scSpecTypeI64",e.void()],["scSpecTypeTimepoint",e.void()],["scSpecTypeDuration",e.void()],["scSpecTypeU128",e.void()],["scSpecTypeI128",e.void()],["scSpecTypeU256",e.void()],["scSpecTypeI256",e.void()],["scSpecTypeBytes",e.void()],["scSpecTypeString",e.void()],["scSpecTypeSymbol",e.void()],["scSpecTypeAddress",e.void()],["scSpecTypeOption","option"],["scSpecTypeResult","result"],["scSpecTypeVec","vec"],["scSpecTypeMap","map"],["scSpecTypeTuple","tuple"],["scSpecTypeBytesN","bytesN"],["scSpecTypeUdt","udt"]],arms:{option:e.lookup("ScSpecTypeOption"),result:e.lookup("ScSpecTypeResult"),vec:e.lookup("ScSpecTypeVec"),map:e.lookup("ScSpecTypeMap"),tuple:e.lookup("ScSpecTypeTuple"),bytesN:e.lookup("ScSpecTypeBytesN"),udt:e.lookup("ScSpecTypeUdt")}}),e.struct("ScSpecUdtStructFieldV0",[["doc",e.string(c)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecUdtStructV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["fields",e.varArray(e.lookup("ScSpecUdtStructFieldV0"),40)]]),e.struct("ScSpecUdtUnionCaseVoidV0",[["doc",e.string(c)],["name",e.string(60)]]),e.struct("ScSpecUdtUnionCaseTupleV0",[["doc",e.string(c)],["name",e.string(60)],["type",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.enum("ScSpecUdtUnionCaseV0Kind",{scSpecUdtUnionCaseVoidV0:0,scSpecUdtUnionCaseTupleV0:1}),e.union("ScSpecUdtUnionCaseV0",{switchOn:e.lookup("ScSpecUdtUnionCaseV0Kind"),switchName:"kind",switches:[["scSpecUdtUnionCaseVoidV0","voidCase"],["scSpecUdtUnionCaseTupleV0","tupleCase"]],arms:{voidCase:e.lookup("ScSpecUdtUnionCaseVoidV0"),tupleCase:e.lookup("ScSpecUdtUnionCaseTupleV0")}}),e.struct("ScSpecUdtUnionV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtUnionCaseV0"),50)]]),e.struct("ScSpecUdtEnumCaseV0",[["doc",e.string(c)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtEnumV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtEnumCaseV0"),50)]]),e.struct("ScSpecUdtErrorEnumCaseV0",[["doc",e.string(c)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtErrorEnumV0",[["doc",e.string(c)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtErrorEnumCaseV0"),50)]]),e.struct("ScSpecFunctionInputV0",[["doc",e.string(c)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecFunctionV0",[["doc",e.string(c)],["name",e.lookup("ScSymbol")],["inputs",e.varArray(e.lookup("ScSpecFunctionInputV0"),10)],["outputs",e.varArray(e.lookup("ScSpecTypeDef"),1)]]),e.enum("ScSpecEntryKind",{scSpecEntryFunctionV0:0,scSpecEntryUdtStructV0:1,scSpecEntryUdtUnionV0:2,scSpecEntryUdtEnumV0:3,scSpecEntryUdtErrorEnumV0:4}),e.union("ScSpecEntry",{switchOn:e.lookup("ScSpecEntryKind"),switchName:"kind",switches:[["scSpecEntryFunctionV0","functionV0"],["scSpecEntryUdtStructV0","udtStructV0"],["scSpecEntryUdtUnionV0","udtUnionV0"],["scSpecEntryUdtEnumV0","udtEnumV0"],["scSpecEntryUdtErrorEnumV0","udtErrorEnumV0"]],arms:{functionV0:e.lookup("ScSpecFunctionV0"),udtStructV0:e.lookup("ScSpecUdtStructV0"),udtUnionV0:e.lookup("ScSpecUdtUnionV0"),udtEnumV0:e.lookup("ScSpecUdtEnumV0"),udtErrorEnumV0:e.lookup("ScSpecUdtErrorEnumV0")}}),e.struct("ConfigSettingContractExecutionLanesV0",[["ledgerMaxTxCount",e.lookup("Uint32")]]),e.struct("ConfigSettingContractComputeV0",[["ledgerMaxInstructions",e.lookup("Int64")],["txMaxInstructions",e.lookup("Int64")],["feeRatePerInstructionsIncrement",e.lookup("Int64")],["txMemoryLimit",e.lookup("Uint32")]]),e.struct("ConfigSettingContractLedgerCostV0",[["ledgerMaxReadLedgerEntries",e.lookup("Uint32")],["ledgerMaxReadBytes",e.lookup("Uint32")],["ledgerMaxWriteLedgerEntries",e.lookup("Uint32")],["ledgerMaxWriteBytes",e.lookup("Uint32")],["txMaxReadLedgerEntries",e.lookup("Uint32")],["txMaxReadBytes",e.lookup("Uint32")],["txMaxWriteLedgerEntries",e.lookup("Uint32")],["txMaxWriteBytes",e.lookup("Uint32")],["feeReadLedgerEntry",e.lookup("Int64")],["feeWriteLedgerEntry",e.lookup("Int64")],["feeRead1Kb",e.lookup("Int64")],["bucketListTargetSizeBytes",e.lookup("Int64")],["writeFee1KbBucketListLow",e.lookup("Int64")],["writeFee1KbBucketListHigh",e.lookup("Int64")],["bucketListWriteFeeGrowthFactor",e.lookup("Uint32")]]),e.struct("ConfigSettingContractHistoricalDataV0",[["feeHistorical1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractEventsV0",[["txMaxContractEventsSizeBytes",e.lookup("Uint32")],["feeContractEvents1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractBandwidthV0",[["ledgerMaxTxsSizeBytes",e.lookup("Uint32")],["txMaxSizeBytes",e.lookup("Uint32")],["feeTxSize1Kb",e.lookup("Int64")]]),e.enum("ContractCostType",{wasmInsnExec:0,memAlloc:1,memCpy:2,memCmp:3,dispatchHostFunction:4,visitObject:5,valSer:6,valDeser:7,computeSha256Hash:8,computeEd25519PubKey:9,verifyEd25519Sig:10,vmInstantiation:11,vmCachedInstantiation:12,invokeVmFunction:13,computeKeccak256Hash:14,computeEcdsaSecp256k1Sig:15,recoverEcdsaSecp256k1Key:16,int256AddSub:17,int256Mul:18,int256Div:19,int256Pow:20,int256Shift:21,chaCha20DrawBytes:22}),e.struct("ContractCostParamEntry",[["ext",e.lookup("ExtensionPoint")],["constTerm",e.lookup("Int64")],["linearTerm",e.lookup("Int64")]]),e.struct("StateArchivalSettings",[["maxEntryTtl",e.lookup("Uint32")],["minTemporaryTtl",e.lookup("Uint32")],["minPersistentTtl",e.lookup("Uint32")],["persistentRentRateDenominator",e.lookup("Int64")],["tempRentRateDenominator",e.lookup("Int64")],["maxEntriesToArchive",e.lookup("Uint32")],["bucketListSizeWindowSampleSize",e.lookup("Uint32")],["evictionScanSize",e.lookup("Uint64")],["startingEvictionScanLevel",e.lookup("Uint32")]]),e.struct("EvictionIterator",[["bucketListLevel",e.lookup("Uint32")],["isCurrBucket",e.bool()],["bucketFileOffset",e.lookup("Uint64")]]),e.const("CONTRACT_COST_COUNT_LIMIT",1024),e.typedef("ContractCostParams",e.varArray(e.lookup("ContractCostParamEntry"),e.lookup("CONTRACT_COST_COUNT_LIMIT"))),e.enum("ConfigSettingId",{configSettingContractMaxSizeBytes:0,configSettingContractComputeV0:1,configSettingContractLedgerCostV0:2,configSettingContractHistoricalDataV0:3,configSettingContractEventsV0:4,configSettingContractBandwidthV0:5,configSettingContractCostParamsCpuInstructions:6,configSettingContractCostParamsMemoryBytes:7,configSettingContractDataKeySizeBytes:8,configSettingContractDataEntrySizeBytes:9,configSettingStateArchival:10,configSettingContractExecutionLanes:11,configSettingBucketlistSizeWindow:12,configSettingEvictionIterator:13}),e.union("ConfigSettingEntry",{switchOn:e.lookup("ConfigSettingId"),switchName:"configSettingId",switches:[["configSettingContractMaxSizeBytes","contractMaxSizeBytes"],["configSettingContractComputeV0","contractCompute"],["configSettingContractLedgerCostV0","contractLedgerCost"],["configSettingContractHistoricalDataV0","contractHistoricalData"],["configSettingContractEventsV0","contractEvents"],["configSettingContractBandwidthV0","contractBandwidth"],["configSettingContractCostParamsCpuInstructions","contractCostParamsCpuInsns"],["configSettingContractCostParamsMemoryBytes","contractCostParamsMemBytes"],["configSettingContractDataKeySizeBytes","contractDataKeySizeBytes"],["configSettingContractDataEntrySizeBytes","contractDataEntrySizeBytes"],["configSettingStateArchival","stateArchivalSettings"],["configSettingContractExecutionLanes","contractExecutionLanes"],["configSettingBucketlistSizeWindow","bucketListSizeWindow"],["configSettingEvictionIterator","evictionIterator"]],arms:{contractMaxSizeBytes:e.lookup("Uint32"),contractCompute:e.lookup("ConfigSettingContractComputeV0"),contractLedgerCost:e.lookup("ConfigSettingContractLedgerCostV0"),contractHistoricalData:e.lookup("ConfigSettingContractHistoricalDataV0"),contractEvents:e.lookup("ConfigSettingContractEventsV0"),contractBandwidth:e.lookup("ConfigSettingContractBandwidthV0"),contractCostParamsCpuInsns:e.lookup("ContractCostParams"),contractCostParamsMemBytes:e.lookup("ContractCostParams"),contractDataKeySizeBytes:e.lookup("Uint32"),contractDataEntrySizeBytes:e.lookup("Uint32"),stateArchivalSettings:e.lookup("StateArchivalSettings"),contractExecutionLanes:e.lookup("ConfigSettingContractExecutionLanesV0"),bucketListSizeWindow:e.varArray(e.lookup("Uint64"),2147483647),evictionIterator:e.lookup("EvictionIterator")}})});a.default=o},9396:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolFeeV18=void 0,a.getLiquidityPoolId=function(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h!=="constant_product")throw new Error("liquidityPoolType is invalid");var m=b.assetA,k=b.assetB,d=b.fee;if(!(m&&m instanceof e.Asset))throw new Error("assetA is invalid");if(!(k&&k instanceof e.Asset))throw new Error("assetB is invalid");if(!d||d!==u)throw new Error("fee is invalid");if(e.Asset.compare(m,k)!==-1)throw new Error("Assets are not in lexicographic order");var w=o.default.LiquidityPoolType.liquidityPoolConstantProduct().toXDR(),y=new o.default.LiquidityPoolConstantProductParameters({assetA:m.toXDRObject(),assetB:k.toXDRObject(),fee:d}).toXDR(),_=t.concat([w,y]);return(0,c.hash)(_)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(3469),c=i(9622),u=a.LiquidityPoolFeeV18=30},9622:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.hash=function(s){var o=new t.sha256;return o.update(s,"utf8"),o.digest()};var t=i(9072)},4172:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0});var t={xdr:!0,hash:!0,sign:!0,verify:!0,FastSigning:!0,getLiquidityPoolId:!0,LiquidityPoolFeeV18:!0,Keypair:!0,UnsignedHyper:!0,Hyper:!0,TransactionBase:!0,Transaction:!0,FeeBumpTransaction:!0,TransactionBuilder:!0,TimeoutInfinite:!0,BASE_FEE:!0,Asset:!0,LiquidityPoolAsset:!0,LiquidityPoolId:!0,Operation:!0,AuthRequiredFlag:!0,AuthRevocableFlag:!0,AuthImmutableFlag:!0,AuthClawbackEnabledFlag:!0,Account:!0,MuxedAccount:!0,Claimant:!0,Networks:!0,StrKey:!0,SignerKey:!0,Soroban:!0,decodeAddressToMuxedAccount:!0,encodeMuxedAccountToAddress:!0,extractBaseAddress:!0,encodeMuxedAccount:!0,Contract:!0,Address:!0};Object.defineProperty(a,"Account",{enumerable:!0,get:function(){return C.Account}}),Object.defineProperty(a,"Address",{enumerable:!0,get:function(){return se.Address}}),Object.defineProperty(a,"Asset",{enumerable:!0,get:function(){return y.Asset}}),Object.defineProperty(a,"AuthClawbackEnabledFlag",{enumerable:!0,get:function(){return E.AuthClawbackEnabledFlag}}),Object.defineProperty(a,"AuthImmutableFlag",{enumerable:!0,get:function(){return E.AuthImmutableFlag}}),Object.defineProperty(a,"AuthRequiredFlag",{enumerable:!0,get:function(){return E.AuthRequiredFlag}}),Object.defineProperty(a,"AuthRevocableFlag",{enumerable:!0,get:function(){return E.AuthRevocableFlag}}),Object.defineProperty(a,"BASE_FEE",{enumerable:!0,get:function(){return w.BASE_FEE}}),Object.defineProperty(a,"Claimant",{enumerable:!0,get:function(){return R.Claimant}}),Object.defineProperty(a,"Contract",{enumerable:!0,get:function(){return Z.Contract}}),Object.defineProperty(a,"FastSigning",{enumerable:!0,get:function(){return c.FastSigning}}),Object.defineProperty(a,"FeeBumpTransaction",{enumerable:!0,get:function(){return d.FeeBumpTransaction}}),Object.defineProperty(a,"Hyper",{enumerable:!0,get:function(){return b.Hyper}}),Object.defineProperty(a,"Keypair",{enumerable:!0,get:function(){return h.Keypair}}),Object.defineProperty(a,"LiquidityPoolAsset",{enumerable:!0,get:function(){return _.LiquidityPoolAsset}}),Object.defineProperty(a,"LiquidityPoolFeeV18",{enumerable:!0,get:function(){return u.LiquidityPoolFeeV18}}),Object.defineProperty(a,"LiquidityPoolId",{enumerable:!0,get:function(){return x.LiquidityPoolId}}),Object.defineProperty(a,"MuxedAccount",{enumerable:!0,get:function(){return T.MuxedAccount}}),Object.defineProperty(a,"Networks",{enumerable:!0,get:function(){return W.Networks}}),Object.defineProperty(a,"Operation",{enumerable:!0,get:function(){return E.Operation}}),Object.defineProperty(a,"SignerKey",{enumerable:!0,get:function(){return L.SignerKey}}),Object.defineProperty(a,"Soroban",{enumerable:!0,get:function(){return Q.Soroban}}),Object.defineProperty(a,"StrKey",{enumerable:!0,get:function(){return j.StrKey}}),Object.defineProperty(a,"TimeoutInfinite",{enumerable:!0,get:function(){return w.TimeoutInfinite}}),Object.defineProperty(a,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(a,"TransactionBase",{enumerable:!0,get:function(){return m.TransactionBase}}),Object.defineProperty(a,"TransactionBuilder",{enumerable:!0,get:function(){return w.TransactionBuilder}}),Object.defineProperty(a,"UnsignedHyper",{enumerable:!0,get:function(){return b.UnsignedHyper}}),Object.defineProperty(a,"decodeAddressToMuxedAccount",{enumerable:!0,get:function(){return U.decodeAddressToMuxedAccount}}),a.default=void 0,Object.defineProperty(a,"encodeMuxedAccount",{enumerable:!0,get:function(){return U.encodeMuxedAccount}}),Object.defineProperty(a,"encodeMuxedAccountToAddress",{enumerable:!0,get:function(){return U.encodeMuxedAccountToAddress}}),Object.defineProperty(a,"extractBaseAddress",{enumerable:!0,get:function(){return U.extractBaseAddress}}),Object.defineProperty(a,"getLiquidityPoolId",{enumerable:!0,get:function(){return u.getLiquidityPoolId}}),Object.defineProperty(a,"hash",{enumerable:!0,get:function(){return e.hash}}),Object.defineProperty(a,"sign",{enumerable:!0,get:function(){return c.sign}}),Object.defineProperty(a,"verify",{enumerable:!0,get:function(){return c.verify}}),Object.defineProperty(a,"xdr",{enumerable:!0,get:function(){return o.default}});var s=G(i(4431)),o=G(i(4081)),e=i(9622),c=i(5687),u=i(9396),h=i(6437),b=i(6263),m=i(1065),k=i(1388),d=i(1462),w=i(624),y=i(3469),_=i(1486),x=i(7287),E=i(4585),S=i(4856);Object.keys(S).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===S[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return S[re]}}))});var C=i(3217),T=i(9022),R=i(1842),W=i(2844),j=i(8385),L=i(5822),Q=i(251),U=i(6880),Z=i(5618),se=i(3471),te=i(3180);Object.keys(te).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===te[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return te[re]}}))});var $=i(5567);Object.keys($).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===$[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return $[re]}}))});var P=i(3761);Object.keys(P).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===P[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return P[re]}}))});var A=i(5096);Object.keys(A).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===A[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return A[re]}}))});var O=i(1687);Object.keys(O).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===O[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return O[re]}}))});var z=i(3812);function G(re){return re&&re.__esModule?re:{default:re}}Object.keys(z).forEach(function(re){re!=="default"&&re!=="__esModule"&&(Object.prototype.hasOwnProperty.call(t,re)||re in a&&a[re]===z[re]||Object.defineProperty(a,re,{enumerable:!0,get:function(){return z[re]}}))}),s.default.DEBUG=!0,a.default=f.exports},3812:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.buildInvocationTree=function c(u){var h=u.function(),b={},m=h.value();switch(h.switch().value){case 0:b.type="execute",b.args={source:s.Address.fromScAddress(m.contractAddress()).toString(),function:m.functionName(),args:m.args().map(function(_){return(0,o.scValToNative)(_)})};break;case 1:b.type="create",b.args={};var k=[m.executable(),m.contractIdPreimage()],d=k[0],w=k[1];if(!!d.switch().value!=!!w.switch().value)throw new Error("creation function appears invalid: ".concat(JSON.stringify(m)," (should be wasm+address or token+asset)"));switch(d.switch().value){case 0:var y=w.fromAddress();b.args.type="wasm",b.args.wasm={salt:y.salt().toString("hex"),hash:d.wasmHash().toString("hex"),address:s.Address.fromScAddress(y.address()).toString()};break;case 1:b.args.type="sac",b.args.asset=t.Asset.fromOperation(w.fromAsset()).toString();break;default:throw new Error("unknown creation type: ".concat(JSON.stringify(d)))}break;default:throw new Error("unknown invocation type (".concat(h.switch(),"): ").concat(JSON.stringify(h)))}return b.invocations=u.subInvocations().map(function(_){return c(_)}),b},a.walkInvocationTree=function(c,u){e(c,1,u)};var t=i(3469),s=i(3471),o=i(5567);function e(c,u,h,b){h(c,u,b)!==!1&&c.subInvocations().forEach(function(m){return e(m,u+1,h,c)})}},6437:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.Keypair=void 0;var s=h(i(7586)),o=i(5687),e=i(8385),c=i(9622),u=h(i(4081));function h(k){return k&&k.__esModule?k:{default:k}}function b(k){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},b(k)}function m(k,d){for(var w=0;w{Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolAsset=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3469),e=i(9396);function c(d){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(d)}function u(d,w){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(d);w&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(d,x).enumerable})),y.push.apply(y,_)}return y}function h(d){for(var w=1;w{Object.defineProperty(a,"__esModule",{value:!0}),a.LiquidityPoolId=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(c){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o(c)}function e(c,u){for(var h=0;h{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.MemoText=a.MemoReturn=a.MemoNone=a.MemoID=a.MemoHash=a.Memo=void 0;var s=i(6263),o=c(i(4431)),e=c(i(4081));function c(y){return y&&y.__esModule?y:{default:y}}function u(y){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(y)}function h(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(u(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(u(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),u(C)==="symbol"?C:String(C)),E)}var S,C}var b=a.MemoNone="none",m=a.MemoID="id",k=a.MemoText="text",d=a.MemoHash="hash",w=a.MemoReturn="return";a.Memo=function(){function y(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;switch(function(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}(this,y),this._type=S,this._value=C,this._type){case b:break;case m:y._validateIdValue(C);break;case k:y._validateTextValue(C);break;case d:case w:y._validateHashValue(C),typeof C=="string"&&(this._value=t.from(C,"hex"));break;default:throw new Error("Invalid memo type")}}var _,x,E;return _=y,E=[{key:"_validateIdValue",value:function(S){var C,T=new Error("Expects a int64 as a string. Got ".concat(S));if(typeof S!="string")throw T;try{C=new o.default(S)}catch{throw T}if(!C.isFinite()||C.isNaN())throw T}},{key:"_validateTextValue",value:function(S){if(!e.default.Memo.armTypeForArm("text").isValid(S))throw new Error("Expects string, array or buffer, max 28 bytes")}},{key:"_validateHashValue",value:function(S){var C,T=new Error("Expects a 32 byte hash value or hex encoded string. Got ".concat(S));if(S==null)throw T;if(typeof S=="string"){if(!/^[0-9A-Fa-f]{64}$/g.test(S))throw T;C=t.from(S,"hex")}else{if(!t.isBuffer(S))throw T;C=t.from(S)}if(!C.length||C.length!==32)throw T}},{key:"none",value:function(){return new y(b)}},{key:"text",value:function(S){return new y(k,S)}},{key:"id",value:function(S){return new y(m,S)}},{key:"hash",value:function(S){return new y(d,S)}},{key:"return",value:function(S){return new y(w,S)}},{key:"fromXDRObject",value:function(S){switch(S.arm()){case"id":return y.id(S.value().toString());case"text":return y.text(S.value());case"hash":return y.hash(S.value());case"retHash":return y.return(S.value())}if(S.value()===void 0)return y.none();throw new Error("Unknown type")}}],(x=[{key:"type",get:function(){return this._type},set:function(S){throw new Error("Memo is immutable")}},{key:"value",get:function(){switch(this._type){case b:return null;case m:case k:return this._value;case d:case w:return t.from(this._value);default:throw new Error("Invalid memo type")}},set:function(S){throw new Error("Memo is immutable")}},{key:"toXDRObject",value:function(){switch(this._type){case b:return e.default.Memo.memoNone();case m:return e.default.Memo.memoId(s.UnsignedHyper.fromString(this._value));case k:return e.default.Memo.memoText(this._value);case d:return e.default.Memo.memoHash(this._value);case w:return e.default.Memo.memoReturn(this._value);default:return null}}}])&&h(_.prototype,x),E&&h(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}()},9022:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MuxedAccount=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3217),e=i(8385),c=i(6880);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},u(b)}function h(b,m){for(var k=0;k{Object.defineProperty(a,"__esModule",{value:!0}),a.Networks=void 0,a.Networks={PUBLIC:"Public Global Stellar Network ; September 2015",TESTNET:"Test SDF Network ; September 2015",FUTURENET:"Test SDF Future Network ; October 2022",SANDBOX:"Local Sandbox Stellar Network ; September 2022",STANDALONE:"Standalone Network ; February 2017"}},3180:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"Int128",{enumerable:!0,get:function(){return e.Int128}}),Object.defineProperty(a,"Int256",{enumerable:!0,get:function(){return c.Int256}}),Object.defineProperty(a,"ScInt",{enumerable:!0,get:function(){return u.ScInt}}),Object.defineProperty(a,"Uint128",{enumerable:!0,get:function(){return s.Uint128}}),Object.defineProperty(a,"Uint256",{enumerable:!0,get:function(){return o.Uint256}}),Object.defineProperty(a,"XdrLargeInt",{enumerable:!0,get:function(){return t.XdrLargeInt}}),a.scValToBigInt=function(h){var b=t.XdrLargeInt.getType(h.switch().name);switch(h.switch().name){case"scvU32":case"scvI32":return BigInt(h.value());case"scvU64":case"scvI64":return new t.XdrLargeInt(b,h.value()).toBigInt();case"scvU128":case"scvI128":return new t.XdrLargeInt(b,[h.value().lo(),h.value().hi()]).toBigInt();case"scvU256":case"scvI256":return new t.XdrLargeInt(b,[h.value().loLo(),h.value().loHi(),h.value().hiLo(),h.value().hiHi()]).toBigInt();default:throw TypeError("expected integer type, got ".concat(h.switch()))}};var t=i(6836),s=i(4006),o=i(7882),e=i(9982),c=i(7292),u=i(883)},9982:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Int128=void 0;var s=i(6263);function o(h,b){for(var m=0;m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,k=u(h);if(b){var d=u(this).constructor;m=Reflect.construct(k,arguments,d)}else m=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,m)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Int128=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,m,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Int256=void 0;var s=i(6263);function o(h,b){for(var m=0;m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,k=u(h);if(b){var d=u(this).constructor;m=Reflect.construct(k,arguments,d)}else m=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,m)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Int256=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,m,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(u){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(u)}Object.defineProperty(a,"__esModule",{value:!0}),a.ScInt=void 0;var s=i(6836);function o(u,h){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,m){return b.__proto__=m,b},o(u,h)}function e(u){var h=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,m=c(u);if(h){var k=c(this).constructor;b=Reflect.construct(m,arguments,k)}else b=m.apply(this,arguments);return function(d,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(d)}(this,b)}}function c(u){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},c(u)}a.ScInt=function(u){(function(k,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(d&&d.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),d&&o(k,d)})(m,u);var h,b=e(m);function m(k,d){var w;(function(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")})(this,m);var y=k<0,_=(w=d==null?void 0:d.type)!==null&&w!==void 0?w:"";if(_.startsWith("u")&&y)throw TypeError("specified type ".concat(d.type," yet negative (").concat(k,")"));if(_===""){_=y?"i":"u";var x=function(E){var S,C=E.toString(2).length;return(S=[64,128,256].find(function(T){return C<=T}))!==null&&S!==void 0?S:C}(k);switch(x){case 64:case 128:case 256:_+=x.toString();break;default:throw RangeError("expected 64/128/256 bits for input (".concat(k,"), got ").concat(x))}}return b.call(this,_,k)}return h=m,Object.defineProperty(h,"prototype",{writable:!1}),h}(s.XdrLargeInt)},4006:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Uint128=void 0;var s=i(6263);function o(h,b){for(var m=0;m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,k=u(h);if(b){var d=u(this).constructor;m=Reflect.construct(k,arguments,d)}else m=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,m)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Uint128=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,m,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(a,"__esModule",{value:!0}),a.Uint256=void 0;var s=i(6263);function o(h,b){for(var m=0;m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,k=u(h);if(b){var d=u(this).constructor;m=Reflect.construct(k,arguments,d)}else m=k.apply(this,arguments);return function(w,y){if(y&&(t(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(w)}(this,m)}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},u(h)}(a.Uint256=function(h){(function(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),y&&e(w,y)})(d,h);var b,m,k=c(d);function d(){(function(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d);for(var w=arguments.length,y=new Array(w),_=0;_{Object.defineProperty(a,"__esModule",{value:!0}),a.XdrLargeInt=void 0;var t,s=i(6263),o=i(4006),e=i(7882),c=i(9982),u=i(7292),h=(t=i(4081))&&t.__esModule?t:{default:t};function b(w){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},b(w)}function m(w,y){for(var _=0;_Number.MAX_SAFE_INTEGER||E>64n),C=BigInt.asUintN(64,E);return h.default.ScVal.scvI128(new h.default.Int128Parts({hi:new h.default.Int64(S),lo:new h.default.Uint64(C)}))}},{key:"toU128",value:function(){this._sizeCheck(128);var E=this.int.toBigInt();return h.default.ScVal.scvU128(new h.default.UInt128Parts({hi:new h.default.Uint64(BigInt.asUintN(64,E>>64n)),lo:new h.default.Uint64(BigInt.asUintN(64,E))}))}},{key:"toI256",value:function(){var E=this.int.toBigInt(),S=BigInt.asIntN(64,E>>192n),C=BigInt.asUintN(64,E>>128n),T=BigInt.asUintN(64,E>>64n),R=BigInt.asUintN(64,E);return h.default.ScVal.scvI256(new h.default.Int256Parts({hiHi:new h.default.Int64(S),hiLo:new h.default.Uint64(C),loHi:new h.default.Uint64(T),loLo:new h.default.Uint64(R)}))}},{key:"toU256",value:function(){var E=this.int.toBigInt(),S=BigInt.asUintN(64,E>>192n),C=BigInt.asUintN(64,E>>128n),T=BigInt.asUintN(64,E>>64n),R=BigInt.asUintN(64,E);return h.default.ScVal.scvU256(new h.default.UInt256Parts({hiHi:new h.default.Uint64(S),hiLo:new h.default.Uint64(C),loHi:new h.default.Uint64(T),loLo:new h.default.Uint64(R)}))}},{key:"toScVal",value:function(){switch(this.type){case"i64":return this.toI64();case"i128":return this.toI128();case"i256":return this.toI256();case"u64":return this.toU64();case"u128":return this.toU128();case"u256":return this.toU256();default:throw TypeError("invalid type: ".concat(this.type))}}},{key:"valueOf",value:function(){return this.int.valueOf()}},{key:"toString",value:function(){return this.int.toString()}},{key:"toJSON",value:function(){return{value:this.toBigInt().toString(),type:this.type}}},{key:"_sizeCheck",value:function(E){if(this.int.size>E)throw RangeError("value too large for ".concat(E," bits (").concat(this.type,")"))}}])&&m(y.prototype,_),x&&m(y,x),Object.defineProperty(y,"prototype",{writable:!1}),w}()},4585:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Operation=a.AuthRevocableFlag=a.AuthRequiredFlag=a.AuthImmutableFlag=a.AuthClawbackEnabledFlag=void 0;var t=i(6263),s=_(i(4431)),o=i(6006),e=i(5908),c=i(3469),u=i(1486),h=i(1842),b=i(8385),m=i(7287),k=_(i(4081)),d=function(R,W){if(!W&&R&&R.__esModule)return R;if(R===null||x(R)!="object"&&typeof R!="function")return{default:R};var j=y(W);if(j&&j.has(R))return j.get(R);var L={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in R)if(U!=="default"&&Object.prototype.hasOwnProperty.call(R,U)){var Z=Q?Object.getOwnPropertyDescriptor(R,U):null;Z&&(Z.get||Z.set)?Object.defineProperty(L,U,Z):L[U]=R[U]}return L.default=R,j&&j.set(R,L),L}(i(1138)),w=i(6880);function y(R){if(typeof WeakMap!="function")return null;var W=new WeakMap,j=new WeakMap;return(y=function(L){return L?j:W})(R)}function _(R){return R&&R.__esModule?R:{default:R}}function x(R){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},x(R)}function E(R,W){for(var j=0;j1&&arguments[1]!==void 0&&arguments[1];if(typeof Q!="string")return!1;try{U=new s.default(Q)}catch{return!1}return!(!Z&&U.isZero()||U.isNegative()||U.times(S).gt(new s.default("9223372036854775807").toString())||U.decimalPlaces()>7||U.isNaN()||!U.isFinite())}},{key:"constructAmountRequirementsError",value:function(Q){return"".concat(Q," argument must be of type String, represent a positive number and have at most 7 digits after the decimal")}},{key:"_checkUnsignedIntValue",value:function(Q,U){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(U!==void 0)switch(typeof U=="string"&&(U=parseFloat(U)),!0){case(typeof U!="number"||!Number.isFinite(U)||U%1!=0):throw new Error("".concat(Q," value is invalid"));case U<0:throw new Error("".concat(Q," value must be unsigned"));case(!Z||Z&&Z(U,Q)):return U;default:throw new Error("".concat(Q," value is invalid"))}}},{key:"_toXDRAmount",value:function(Q){var U=new s.default(Q).times(S);return t.Hyper.fromString(U.toString())}},{key:"_fromXDRAmount",value:function(Q){return new s.default(Q).div(S).toFixed(7)}},{key:"_fromXDRPrice",value:function(Q){return new s.default(Q.n()).div(new s.default(Q.d())).toString()}},{key:"_toXDRPrice",value:function(Q){var U;if(Q.n&&Q.d)U=new k.default.Price(Q);else{var Z=(0,e.best_r)(Q);U=new k.default.Price({n:parseInt(Z[0],10),d:parseInt(Z[1],10)})}if(U.n()<0||U.d()<0)throw new Error("price must be positive");return U}}],(j=null)&&E(W.prototype,j),L&&E(W,L),Object.defineProperty(W,"prototype",{writable:!1}),R}());function T(R){return b.StrKey.encodeEd25519PublicKey(R.ed25519())}C.accountMerge=d.accountMerge,C.allowTrust=d.allowTrust,C.bumpSequence=d.bumpSequence,C.changeTrust=d.changeTrust,C.createAccount=d.createAccount,C.createClaimableBalance=d.createClaimableBalance,C.claimClaimableBalance=d.claimClaimableBalance,C.clawbackClaimableBalance=d.clawbackClaimableBalance,C.createPassiveSellOffer=d.createPassiveSellOffer,C.inflation=d.inflation,C.manageData=d.manageData,C.manageSellOffer=d.manageSellOffer,C.manageBuyOffer=d.manageBuyOffer,C.pathPaymentStrictReceive=d.pathPaymentStrictReceive,C.pathPaymentStrictSend=d.pathPaymentStrictSend,C.payment=d.payment,C.setOptions=d.setOptions,C.beginSponsoringFutureReserves=d.beginSponsoringFutureReserves,C.endSponsoringFutureReserves=d.endSponsoringFutureReserves,C.revokeAccountSponsorship=d.revokeAccountSponsorship,C.revokeTrustlineSponsorship=d.revokeTrustlineSponsorship,C.revokeOfferSponsorship=d.revokeOfferSponsorship,C.revokeDataSponsorship=d.revokeDataSponsorship,C.revokeClaimableBalanceSponsorship=d.revokeClaimableBalanceSponsorship,C.revokeLiquidityPoolSponsorship=d.revokeLiquidityPoolSponsorship,C.revokeSignerSponsorship=d.revokeSignerSponsorship,C.clawback=d.clawback,C.setTrustLineFlags=d.setTrustLineFlags,C.liquidityPoolDeposit=d.liquidityPoolDeposit,C.liquidityPoolWithdraw=d.liquidityPoolWithdraw,C.invokeHostFunction=d.invokeHostFunction,C.extendFootprintTtl=d.extendFootprintTtl,C.restoreFootprint=d.restoreFootprint,C.createStellarAssetContract=d.createStellarAssetContract,C.invokeContractFunction=d.invokeContractFunction,C.createCustomContract=d.createCustomContract,C.uploadContractWasm=d.uploadContractWasm},7703:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.accountMerge=function(e){var c={};try{c.body=s.default.OperationBody.accountMerge((0,o.decodeAddressToMuxedAccount)(e.destination))}catch{throw new Error("destination is invalid")}return this.setSourceAccount(c,e),new s.default.Operation(c)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},6583:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.allowTrust=function(c){if(!e.StrKey.isValidEd25519PublicKey(c.trustor))throw new Error("trustor is invalid");var u={};if(u.trustor=o.Keypair.fromPublicKey(c.trustor).xdrAccountId(),c.assetCode.length<=4){var h=c.assetCode.padEnd(4,"\0");u.asset=s.default.AssetCode.assetTypeCreditAlphanum4(h)}else{if(!(c.assetCode.length<=12))throw new Error("Asset code must be 12 characters at max.");var b=c.assetCode.padEnd(12,"\0");u.asset=s.default.AssetCode.assetTypeCreditAlphanum12(b)}typeof c.authorize=="boolean"?c.authorize?u.authorize=s.default.TrustLineFlags.authorizedFlag().value:u.authorize=0:u.authorize=c.authorize;var m=new s.default.AllowTrustOp(u),k={};return k.body=s.default.OperationBody.allowTrust(m),this.setSourceAccount(k,c),new s.default.Operation(k)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385)},6318:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.beginSponsoringFutureReserves=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!o.StrKey.isValidEd25519PublicKey(c.sponsoredId))throw new Error("sponsoredId is invalid");var u=new s.default.BeginSponsoringFutureReservesOp({sponsoredId:e.Keypair.fromPublicKey(c.sponsoredId).xdrAccountId()}),h={};return h.body=s.default.OperationBody.beginSponsoringFutureReserves(u),this.setSourceAccount(h,c),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385),e=i(6437)},3593:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.bumpSequence=function(c){var u={};if(typeof c.bumpTo!="string")throw new Error("bumpTo must be a string");try{new s.default(c.bumpTo)}catch{throw new Error("bumpTo must be a stringified number")}u.bumpTo=t.Hyper.fromString(c.bumpTo);var h=new o.default.BumpSequenceOp(u),b={};return b.body=o.default.OperationBody.bumpSequence(h),this.setSourceAccount(b,c),new o.default.Operation(b)};var t=i(6263),s=e(i(4431)),o=e(i(4081));function e(c){return c&&c.__esModule?c:{default:c}}},3960:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.changeTrust=function(b){var m={};if(b.asset instanceof e.Asset)m.line=b.asset.toChangeTrustXDRObject();else{if(!(b.asset instanceof c.LiquidityPoolAsset))throw new TypeError("asset must be Asset or LiquidityPoolAsset");m.line=b.asset.toXDRObject()}if(b.limit!==void 0&&!this.isValidAmount(b.limit,!0))throw new TypeError(this.constructAmountRequirementsError("limit"));b.limit?m.limit=this._toXDRAmount(b.limit):m.limit=t.Hyper.fromString(new s.default(h).toString()),b.source&&(m.source=b.source.masterKeypair);var k=new o.default.ChangeTrustOp(m),d={};return d.body=o.default.OperationBody.changeTrust(k),this.setSourceAccount(d,b),new o.default.Operation(d)};var t=i(6263),s=u(i(4431)),o=u(i(4081)),e=i(3469),c=i(1486);function u(b){return b&&b.__esModule?b:{default:b}}var h="9223372036854775807"},57:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.claimClaimableBalance=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o(e.balanceId);var c={};c.balanceId=s.default.ClaimableBalanceId.fromXDR(e.balanceId,"hex");var u=new s.default.ClaimClaimableBalanceOp(c),h={};return h.body=s.default.OperationBody.claimClaimableBalance(u),this.setSourceAccount(h,e),new s.default.Operation(h)},a.validateClaimableBalanceId=o;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(e){if(typeof e!="string"||e.length!==72)throw new Error("must provide a valid claimable balance id")}},6015:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clawback=function(e){var c={};if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));c.amount=this._toXDRAmount(e.amount),c.asset=e.asset.toXDRObject();try{c.from=(0,o.decodeAddressToMuxedAccount)(e.from)}catch{throw new Error("from address is invalid")}var u={body:s.default.OperationBody.clawback(new s.default.ClawbackOp(c))};return this.setSourceAccount(u,e),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},4283:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clawbackClaimableBalance=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,o.validateClaimableBalanceId)(e.balanceId);var c={balanceId:s.default.ClaimableBalanceId.fromXDR(e.balanceId,"hex")},u={body:s.default.OperationBody.clawbackClaimableBalance(new s.default.ClawbackClaimableBalanceOp(c))};return this.setSourceAccount(u,e),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(57)},7861:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createAccount=function(c){if(!e.StrKey.isValidEd25519PublicKey(c.destination))throw new Error("destination is invalid");if(!this.isValidAmount(c.startingBalance,!0))throw new TypeError(this.constructAmountRequirementsError("startingBalance"));var u={};u.destination=o.Keypair.fromPublicKey(c.destination).xdrAccountId(),u.startingBalance=this._toXDRAmount(c.startingBalance);var h=new s.default.CreateAccountOp(u),b={};return b.body=s.default.OperationBody.createAccount(h),this.setSourceAccount(b,c),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437),e=i(8385)},9471:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createClaimableBalance=function(e){if(!(e.asset instanceof o.Asset))throw new Error("must provide an asset for create claimable balance operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(!Array.isArray(e.claimants)||e.claimants.length===0)throw new Error("must provide at least one claimant");var c={};c.asset=e.asset.toXDRObject(),c.amount=this._toXDRAmount(e.amount),c.claimants=Object.values(e.claimants).map(function(b){return b.toXDRObject()});var u=new s.default.CreateClaimableBalanceOp(c),h={};return h.body=s.default.OperationBody.createClaimableBalance(u),this.setSourceAccount(h,e),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(3469)},3427:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createPassiveSellOffer=function(o){var e={};if(e.selling=o.selling.toXDRObject(),e.buying=o.buying.toXDRObject(),!this.isValidAmount(o.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(e.amount=this._toXDRAmount(o.amount),o.price===void 0)throw new TypeError("price argument is required");e.price=this._toXDRPrice(o.price);var c=new s.default.CreatePassiveSellOfferOp(e),u={};return u.body=s.default.OperationBody.createPassiveSellOffer(c),this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},729:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.endSponsoringFutureReserves=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};return e.body=s.default.OperationBody.endSponsoringFutureReserves(),this.setSourceAccount(e,o),new s.default.Operation(e)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},4774:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.extendFootprintTtl=function(o){var e;if(((e=o.extendTo)!==null&&e!==void 0?e:-1)<=0)throw new RangeError("extendTo isn't a ledger quantity (uint32)");var c=new s.default.ExtendFootprintTtlOp({ext:new s.default.ExtensionPoint(0),extendTo:o.extendTo}),u={body:s.default.OperationBody.extendFootprintTtl(c)};return this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},1138:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"accountMerge",{enumerable:!0,get:function(){return o.accountMerge}}),Object.defineProperty(a,"allowTrust",{enumerable:!0,get:function(){return e.allowTrust}}),Object.defineProperty(a,"beginSponsoringFutureReserves",{enumerable:!0,get:function(){return C.beginSponsoringFutureReserves}}),Object.defineProperty(a,"bumpSequence",{enumerable:!0,get:function(){return c.bumpSequence}}),Object.defineProperty(a,"changeTrust",{enumerable:!0,get:function(){return u.changeTrust}}),Object.defineProperty(a,"claimClaimableBalance",{enumerable:!0,get:function(){return m.claimClaimableBalance}}),Object.defineProperty(a,"clawback",{enumerable:!0,get:function(){return W.clawback}}),Object.defineProperty(a,"clawbackClaimableBalance",{enumerable:!0,get:function(){return k.clawbackClaimableBalance}}),Object.defineProperty(a,"createAccount",{enumerable:!0,get:function(){return h.createAccount}}),Object.defineProperty(a,"createClaimableBalance",{enumerable:!0,get:function(){return b.createClaimableBalance}}),Object.defineProperty(a,"createCustomContract",{enumerable:!0,get:function(){return U.createCustomContract}}),Object.defineProperty(a,"createPassiveSellOffer",{enumerable:!0,get:function(){return s.createPassiveSellOffer}}),Object.defineProperty(a,"createStellarAssetContract",{enumerable:!0,get:function(){return U.createStellarAssetContract}}),Object.defineProperty(a,"endSponsoringFutureReserves",{enumerable:!0,get:function(){return T.endSponsoringFutureReserves}}),Object.defineProperty(a,"extendFootprintTtl",{enumerable:!0,get:function(){return Z.extendFootprintTtl}}),Object.defineProperty(a,"inflation",{enumerable:!0,get:function(){return d.inflation}}),Object.defineProperty(a,"invokeContractFunction",{enumerable:!0,get:function(){return U.invokeContractFunction}}),Object.defineProperty(a,"invokeHostFunction",{enumerable:!0,get:function(){return U.invokeHostFunction}}),Object.defineProperty(a,"liquidityPoolDeposit",{enumerable:!0,get:function(){return L.liquidityPoolDeposit}}),Object.defineProperty(a,"liquidityPoolWithdraw",{enumerable:!0,get:function(){return Q.liquidityPoolWithdraw}}),Object.defineProperty(a,"manageBuyOffer",{enumerable:!0,get:function(){return y.manageBuyOffer}}),Object.defineProperty(a,"manageData",{enumerable:!0,get:function(){return w.manageData}}),Object.defineProperty(a,"manageSellOffer",{enumerable:!0,get:function(){return t.manageSellOffer}}),Object.defineProperty(a,"pathPaymentStrictReceive",{enumerable:!0,get:function(){return _.pathPaymentStrictReceive}}),Object.defineProperty(a,"pathPaymentStrictSend",{enumerable:!0,get:function(){return x.pathPaymentStrictSend}}),Object.defineProperty(a,"payment",{enumerable:!0,get:function(){return E.payment}}),Object.defineProperty(a,"restoreFootprint",{enumerable:!0,get:function(){return se.restoreFootprint}}),Object.defineProperty(a,"revokeAccountSponsorship",{enumerable:!0,get:function(){return R.revokeAccountSponsorship}}),Object.defineProperty(a,"revokeClaimableBalanceSponsorship",{enumerable:!0,get:function(){return R.revokeClaimableBalanceSponsorship}}),Object.defineProperty(a,"revokeDataSponsorship",{enumerable:!0,get:function(){return R.revokeDataSponsorship}}),Object.defineProperty(a,"revokeLiquidityPoolSponsorship",{enumerable:!0,get:function(){return R.revokeLiquidityPoolSponsorship}}),Object.defineProperty(a,"revokeOfferSponsorship",{enumerable:!0,get:function(){return R.revokeOfferSponsorship}}),Object.defineProperty(a,"revokeSignerSponsorship",{enumerable:!0,get:function(){return R.revokeSignerSponsorship}}),Object.defineProperty(a,"revokeTrustlineSponsorship",{enumerable:!0,get:function(){return R.revokeTrustlineSponsorship}}),Object.defineProperty(a,"setOptions",{enumerable:!0,get:function(){return S.setOptions}}),Object.defineProperty(a,"setTrustLineFlags",{enumerable:!0,get:function(){return j.setTrustLineFlags}}),Object.defineProperty(a,"uploadContractWasm",{enumerable:!0,get:function(){return U.uploadContractWasm}});var t=i(9606),s=i(3427),o=i(7703),e=i(6583),c=i(3593),u=i(3960),h=i(7861),b=i(9471),m=i(57),k=i(4283),d=i(6804),w=i(3941),y=i(6e3),_=i(4),x=i(8778),E=i(7937),S=i(6106),C=i(6318),T=i(729),R=i(6416),W=i(6015),j=i(1214),L=i(2205),Q=i(9401),U=i(9456),Z=i(4774),se=i(2671)},6804:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.inflation=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};return e.body=s.default.OperationBody.inflation(),this.setSourceAccount(e,o),new s.default.Operation(e)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},9456:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.createCustomContract=function(b){var m=t.from(b.salt||e.Keypair.random().xdrPublicKey().value());if(!b.wasmHash||b.wasmHash.length!==32)throw new TypeError("expected hash(contract WASM) in 'opts.wasmHash', got ".concat(b.wasmHash));if(m.length!==32)throw new TypeError("expected 32-byte salt in 'opts.salt', got ".concat(b.wasmHash));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeCreateContract(new o.default.CreateContractArgs({executable:o.default.ContractExecutable.contractExecutableWasm(t.from(b.wasmHash)),contractIdPreimage:o.default.ContractIdPreimage.contractIdPreimageFromAddress(new o.default.ContractIdPreimageFromAddress({address:b.address.toScAddress(),salt:m}))}))})},a.createStellarAssetContract=function(b){var m=b.asset;if(typeof m=="string"){var k=m.split(":"),d=(x=2,function(E){if(Array.isArray(E))return E}(_=k)||function(E,S){var C=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(C!=null){var T,R,W,j,L=[],Q=!0,U=!1;try{if(W=(C=C.call(E)).next,S===0){if(Object(C)!==C)return;Q=!1}else for(;!(Q=(T=W.call(C)).done)&&(L.push(T.value),L.length!==S);Q=!0);}catch(Z){U=!0,R=Z}finally{try{if(!Q&&C.return!=null&&(j=C.return(),Object(j)!==j))return}finally{if(U)throw R}}return L}}(_,x)||function(E,S){if(E){if(typeof E=="string")return h(E,S);var C=Object.prototype.toString.call(E).slice(8,-1);return C==="Object"&&E.constructor&&(C=E.constructor.name),C==="Map"||C==="Set"?Array.from(E):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?h(E,S):void 0}}(_,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),w=d[0],y=d[1];m=new u.Asset(w,y)}var _,x;if(!(m instanceof u.Asset))throw new TypeError("expected Asset in 'opts.asset', got ".concat(m));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeCreateContract(new o.default.CreateContractArgs({executable:o.default.ContractExecutable.contractExecutableStellarAsset(),contractIdPreimage:o.default.ContractIdPreimage.contractIdPreimageFromAsset(m.toXDRObject())}))})},a.invokeContractFunction=function(b){var m=new c.Address(b.contract);if(m._type!=="contract")throw new TypeError("expected contract strkey instance, got ".concat(m));return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeInvokeContract(new o.default.InvokeContractArgs({contractAddress:m.toScAddress(),functionName:b.function,args:b.args}))})},a.invokeHostFunction=function(b){if(!b.func)throw new TypeError("host function invocation ('func') required (got ".concat(JSON.stringify(b),")"));var m=new o.default.InvokeHostFunctionOp({hostFunction:b.func,auth:b.auth||[]}),k={body:o.default.OperationBody.invokeHostFunction(m)};return this.setSourceAccount(k,b),new o.default.Operation(k)},a.uploadContractWasm=function(b){return this.invokeHostFunction({source:b.source,auth:b.auth,func:o.default.HostFunction.hostFunctionTypeUploadContractWasm(t.from(b.wasm))})};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(3471),u=i(3469);function h(b,m){(m==null||m>b.length)&&(m=b.length);for(var k=0,d=new Array(m);k{Object.defineProperty(a,"__esModule",{value:!0}),a.liquidityPoolDeposit=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=o.liquidityPoolId,c=o.maxAmountA,u=o.maxAmountB,h=o.minPrice,b=o.maxPrice,m={};if(!e)throw new TypeError("liquidityPoolId argument is required");if(m.liquidityPoolId=s.default.PoolId.fromXDR(e,"hex"),!this.isValidAmount(c,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountA"));if(m.maxAmountA=this._toXDRAmount(c),!this.isValidAmount(u,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountB"));if(m.maxAmountB=this._toXDRAmount(u),h===void 0)throw new TypeError("minPrice argument is required");if(m.minPrice=this._toXDRPrice(h),b===void 0)throw new TypeError("maxPrice argument is required");m.maxPrice=this._toXDRPrice(b);var k=new s.default.LiquidityPoolDepositOp(m),d={body:s.default.OperationBody.liquidityPoolDeposit(k)};return this.setSourceAccount(d,o),new s.default.Operation(d)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},9401:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.liquidityPoolWithdraw=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={};if(!o.liquidityPoolId)throw new TypeError("liquidityPoolId argument is required");if(e.liquidityPoolId=s.default.PoolId.fromXDR(o.liquidityPoolId,"hex"),!this.isValidAmount(o.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(e.amount=this._toXDRAmount(o.amount),!this.isValidAmount(o.minAmountA,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountA"));if(e.minAmountA=this._toXDRAmount(o.minAmountA),!this.isValidAmount(o.minAmountB,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountB"));e.minAmountB=this._toXDRAmount(o.minAmountB);var c=new s.default.LiquidityPoolWithdrawOp(e),u={body:s.default.OperationBody.liquidityPoolWithdraw(c)};return this.setSourceAccount(u,o),new s.default.Operation(u)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},6e3:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.manageBuyOffer=function(e){var c={};if(c.selling=e.selling.toXDRObject(),c.buying=e.buying.toXDRObject(),!this.isValidAmount(e.buyAmount,!0))throw new TypeError(this.constructAmountRequirementsError("buyAmount"));if(c.buyAmount=this._toXDRAmount(e.buyAmount),e.price===void 0)throw new TypeError("price argument is required");c.price=this._toXDRPrice(e.price),e.offerId!==void 0?e.offerId=e.offerId.toString():e.offerId="0",c.offerId=s.Hyper.fromString(e.offerId);var u=new o.default.ManageBuyOfferOp(c),h={};return h.body=o.default.OperationBody.manageBuyOffer(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var t,s=i(6263),o=(t=i(4081))&&t.__esModule?t:{default:t}},3941:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.manageData=function(e){var c={};if(!(typeof e.name=="string"&&e.name.length<=64))throw new Error("name must be a string, up to 64 characters");if(c.dataName=e.name,typeof e.value!="string"&&!t.isBuffer(e.value)&&e.value!==null)throw new Error("value must be a string, Buffer or null");if(typeof e.value=="string"?c.dataValue=t.from(e.value):c.dataValue=e.value,c.dataValue!==null&&c.dataValue.length>64)throw new Error("value cannot be longer that 64 bytes");var u=new o.default.ManageDataOp(c),h={};return h.body=o.default.OperationBody.manageData(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s}},9606:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.manageSellOffer=function(e){var c={};if(c.selling=e.selling.toXDRObject(),c.buying=e.buying.toXDRObject(),!this.isValidAmount(e.amount,!0))throw new TypeError(this.constructAmountRequirementsError("amount"));if(c.amount=this._toXDRAmount(e.amount),e.price===void 0)throw new TypeError("price argument is required");c.price=this._toXDRPrice(e.price),e.offerId!==void 0?e.offerId=e.offerId.toString():e.offerId="0",c.offerId=s.Hyper.fromString(e.offerId);var u=new o.default.ManageSellOfferOp(c),h={};return h.body=o.default.OperationBody.manageSellOffer(u),this.setSourceAccount(h,e),new o.default.Operation(h)};var t,s=i(6263),o=(t=i(4081))&&t.__esModule?t:{default:t}},4:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pathPaymentStrictReceive=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendMax):throw new TypeError(this.constructAmountRequirementsError("sendMax"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destAmount):throw new TypeError(this.constructAmountRequirementsError("destAmount"))}var c={};c.sendAsset=e.sendAsset.toXDRObject(),c.sendMax=this._toXDRAmount(e.sendMax);try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.destAsset=e.destAsset.toXDRObject(),c.destAmount=this._toXDRAmount(e.destAmount);var u=e.path?e.path:[];c.path=u.map(function(m){return m.toXDRObject()});var h=new s.default.PathPaymentStrictReceiveOp(c),b={};return b.body=s.default.OperationBody.pathPaymentStrictReceive(h),this.setSourceAccount(b,e),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},8778:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pathPaymentStrictSend=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendAmount):throw new TypeError(this.constructAmountRequirementsError("sendAmount"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destMin):throw new TypeError(this.constructAmountRequirementsError("destMin"))}var c={};c.sendAsset=e.sendAsset.toXDRObject(),c.sendAmount=this._toXDRAmount(e.sendAmount);try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.destAsset=e.destAsset.toXDRObject(),c.destMin=this._toXDRAmount(e.destMin);var u=e.path?e.path:[];c.path=u.map(function(m){return m.toXDRObject()});var h=new s.default.PathPaymentStrictSendOp(c),b={};return b.body=s.default.OperationBody.pathPaymentStrictSend(h),this.setSourceAccount(b,e),new s.default.Operation(b)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},7937:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.payment=function(e){if(!e.asset)throw new Error("Must provide an asset for a payment operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));var c={};try{c.destination=(0,o.decodeAddressToMuxedAccount)(e.destination)}catch{throw new Error("destination is invalid")}c.asset=e.asset.toXDRObject(),c.amount=this._toXDRAmount(e.amount);var u=new s.default.PaymentOp(c),h={};return h.body=s.default.OperationBody.payment(u),this.setSourceAccount(h,e),new s.default.Operation(h)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6880)},2671:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.restoreFootprint=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=new s.default.RestoreFootprintOp({ext:new s.default.ExtensionPoint(0)}),c={body:s.default.OperationBody.restoreFootprint(e)};return this.setSourceAccount(c,o??{}),new s.default.Operation(c)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t}},6416:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.revokeAccountSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.account))throw new Error("account is invalid");var m=o.default.LedgerKey.account(new o.default.LedgerKeyAccount({accountId:c.Keypair.fromPublicKey(b.account).xdrAccountId()})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeClaimableBalanceSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof b.balanceId!="string")throw new Error("balanceId is invalid");var m=o.default.LedgerKey.claimableBalance(new o.default.LedgerKeyClaimableBalance({balanceId:o.default.ClaimableBalanceId.fromXDR(b.balanceId,"hex")})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeDataSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.account))throw new Error("account is invalid");if(typeof b.name!="string"||b.name.length>64)throw new Error("name must be a string, up to 64 characters");var m=o.default.LedgerKey.data(new o.default.LedgerKeyData({accountId:c.Keypair.fromPublicKey(b.account).xdrAccountId(),dataName:b.name})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeLiquidityPoolSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof b.liquidityPoolId!="string")throw new Error("liquidityPoolId is invalid");var m=o.default.LedgerKey.liquidityPool(new o.default.LedgerKeyLiquidityPool({liquidityPoolId:o.default.PoolId.fromXDR(b.liquidityPoolId,"hex")})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),d={body:o.default.OperationBody.revokeSponsorship(k)};return this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeOfferSponsorship=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(b.seller))throw new Error("seller is invalid");if(typeof b.offerId!="string")throw new Error("offerId is invalid");var m=o.default.LedgerKey.offer(new o.default.LedgerKeyOffer({sellerId:c.Keypair.fromPublicKey(b.seller).xdrAccountId(),offerId:o.default.Int64.fromString(b.offerId)})),k=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),d={};return d.body=o.default.OperationBody.revokeSponsorship(k),this.setSourceAccount(d,b),new o.default.Operation(d)},a.revokeSignerSponsorship=function(){var b,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(m.account))throw new Error("account is invalid");if(m.signer.ed25519PublicKey){if(!e.StrKey.isValidEd25519PublicKey(m.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var k=e.StrKey.decodeEd25519PublicKey(m.signer.ed25519PublicKey);b=new o.default.SignerKey.signerKeyTypeEd25519(k)}else if(m.signer.preAuthTx){var d;if(d=typeof m.signer.preAuthTx=="string"?t.from(m.signer.preAuthTx,"hex"):m.signer.preAuthTx,!t.isBuffer(d)||d.length!==32)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");b=new o.default.SignerKey.signerKeyTypePreAuthTx(d)}else{if(!m.signer.sha256Hash)throw new Error("signer is invalid");var w;if(w=typeof m.signer.sha256Hash=="string"?t.from(m.signer.sha256Hash,"hex"):m.signer.sha256Hash,!t.isBuffer(w)||w.length!==32)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");b=new o.default.SignerKey.signerKeyTypeHashX(w)}var y=new o.default.RevokeSponsorshipOpSigner({accountId:c.Keypair.fromPublicKey(m.account).xdrAccountId(),signerKey:b}),_=o.default.RevokeSponsorshipOp.revokeSponsorshipSigner(y),x={};return x.body=o.default.OperationBody.revokeSponsorship(_),this.setSourceAccount(x,m),new o.default.Operation(x)},a.revokeTrustlineSponsorship=function(){var b,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.StrKey.isValidEd25519PublicKey(m.account))throw new Error("account is invalid");if(m.asset instanceof u.Asset)b=m.asset.toTrustLineXDRObject();else{if(!(m.asset instanceof h.LiquidityPoolId))throw new TypeError("asset must be an Asset or LiquidityPoolId");b=m.asset.toXDRObject()}var k=o.default.LedgerKey.trustline(new o.default.LedgerKeyTrustLine({accountId:c.Keypair.fromPublicKey(m.account).xdrAccountId(),asset:b})),d=o.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(k),w={};return w.body=o.default.OperationBody.revokeSponsorship(d),this.setSourceAccount(w,m),new o.default.Operation(w)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(8385),c=i(6437),u=i(3469),h=i(7287)},6106:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.setOptions=function(h){var b={};if(h.inflationDest){if(!c.StrKey.isValidEd25519PublicKey(h.inflationDest))throw new Error("inflationDest is invalid");b.inflationDest=e.Keypair.fromPublicKey(h.inflationDest).xdrAccountId()}if(b.clearFlags=this._checkUnsignedIntValue("clearFlags",h.clearFlags),b.setFlags=this._checkUnsignedIntValue("setFlags",h.setFlags),b.masterWeight=this._checkUnsignedIntValue("masterWeight",h.masterWeight,u),b.lowThreshold=this._checkUnsignedIntValue("lowThreshold",h.lowThreshold,u),b.medThreshold=this._checkUnsignedIntValue("medThreshold",h.medThreshold,u),b.highThreshold=this._checkUnsignedIntValue("highThreshold",h.highThreshold,u),h.homeDomain!==void 0&&typeof h.homeDomain!="string")throw new TypeError("homeDomain argument must be of type String");if(b.homeDomain=h.homeDomain,h.signer){var m,k=this._checkUnsignedIntValue("signer.weight",h.signer.weight,u),d=0;if(h.signer.ed25519PublicKey){if(!c.StrKey.isValidEd25519PublicKey(h.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var w=c.StrKey.decodeEd25519PublicKey(h.signer.ed25519PublicKey);m=new o.default.SignerKey.signerKeyTypeEd25519(w),d+=1}if(h.signer.preAuthTx){if(typeof h.signer.preAuthTx=="string"&&(h.signer.preAuthTx=t.from(h.signer.preAuthTx,"hex")),!t.isBuffer(h.signer.preAuthTx)||h.signer.preAuthTx.length!==32)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");m=new o.default.SignerKey.signerKeyTypePreAuthTx(h.signer.preAuthTx),d+=1}if(h.signer.sha256Hash){if(typeof h.signer.sha256Hash=="string"&&(h.signer.sha256Hash=t.from(h.signer.sha256Hash,"hex")),!t.isBuffer(h.signer.sha256Hash)||h.signer.sha256Hash.length!==32)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");m=new o.default.SignerKey.signerKeyTypeHashX(h.signer.sha256Hash),d+=1}if(h.signer.ed25519SignedPayload){if(!c.StrKey.isValidSignedPayload(h.signer.ed25519SignedPayload))throw new Error("signer.ed25519SignedPayload is invalid.");var y=c.StrKey.decodeSignedPayload(h.signer.ed25519SignedPayload),_=o.default.SignerKeyEd25519SignedPayload.fromXDR(y);m=o.default.SignerKey.signerKeyTypeEd25519SignedPayload(_),d+=1}if(d!==1)throw new Error("Signer object must contain exactly one of signer.ed25519PublicKey, signer.sha256Hash, signer.preAuthTx.");b.signer=new o.default.Signer({key:m,weight:k})}var x=new o.default.SetOptionsOp(b),E={};return E.body=o.default.OperationBody.setOptions(x),this.setSourceAccount(E,h),new o.default.Operation(E)};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(6437),c=i(8385);function u(h,b){if(h>=0&&h<=255)return!0;throw new Error("".concat(b," value must be between 0 and 255"))}},1214:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.setTrustLineFlags=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u={};if(e(c.flags)!=="object"||Object.keys(c.flags).length===0)throw new Error("opts.flags must be a map of boolean flags to modify");var h={authorized:s.default.TrustLineFlags.authorizedFlag(),authorizedToMaintainLiabilities:s.default.TrustLineFlags.authorizedToMaintainLiabilitiesFlag(),clawbackEnabled:s.default.TrustLineFlags.trustlineClawbackEnabledFlag()},b=0,m=0;Object.keys(c.flags).forEach(function(d){if(!Object.prototype.hasOwnProperty.call(h,d))throw new Error("unsupported flag name specified: ".concat(d));var w=c.flags[d],y=h[d].value;w===!0?m|=y:w===!1&&(b|=y)}),u.trustor=o.Keypair.fromPublicKey(c.trustor).xdrAccountId(),u.asset=c.asset.toXDRObject(),u.clearFlags=b,u.setFlags=m;var k={body:s.default.OperationBody.setTrustLineFlags(new s.default.SetTrustLineFlagsOp(u))};return this.setSourceAccount(k,c),new s.default.Operation(k)};var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(6437);function e(c){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(c)}},5567:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.nativeToScVal=function k(d){var w,y,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(m(d)){case"object":if(d===null)return o.default.ScVal.scvVoid();if(d instanceof o.default.ScVal)return d;if(d instanceof e.Address)return d.toScVal();if(d instanceof c.Contract)return d.address().toScVal();if(d instanceof Uint8Array||t.isBuffer(d)){var x,E=Uint8Array.from(d);switch((x=_==null?void 0:_.type)!==null&&x!==void 0?x:"bytes"){case"bytes":return o.default.ScVal.scvBytes(E);case"symbol":return o.default.ScVal.scvSymbol(E);case"string":return o.default.ScVal.scvString(E);default:throw new TypeError("invalid type (".concat(_.type,") specified for bytes-like value"))}}if(Array.isArray(d)){if(d.length>0&&d.some(function(R){return m(R)!==m(d[0])}))throw new TypeError("array values (".concat(d,") must have the same type (types: ").concat(d.map(function(R){return m(R)}).join(","),")"));return o.default.ScVal.scvVec(d.map(function(R){return k(R,_)}))}var S;if(((w=(y=d.constructor)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"")!=="Object")throw new TypeError("cannot interpret ".concat((S=d.constructor)===null||S===void 0?void 0:S.name," value as ScVal (").concat(JSON.stringify(d),")"));return o.default.ScVal.scvMap(Object.entries(d).map(function(R){var W,j,L=h(R,2),Q=L[0],U=L[1],Z=h((W=((j=_==null?void 0:_.type)!==null&&j!==void 0?j:{})[Q])!==null&&W!==void 0?W:[null,null],2),se=Z[0],te=Z[1],$=se?{type:se}:{},P=te?{type:te}:{};return new o.default.ScMapEntry({key:k(Q,$),val:k(U,P)})}));case"number":case"bigint":switch(_==null?void 0:_.type){case"u32":return o.default.ScVal.scvU32(d);case"i32":return o.default.ScVal.scvI32(d)}return new u.ScInt(d,{type:_==null?void 0:_.type}).toScVal();case"string":var C,T=(C=_==null?void 0:_.type)!==null&&C!==void 0?C:"string";switch(T){case"string":return o.default.ScVal.scvString(d);case"symbol":return o.default.ScVal.scvSymbol(d);case"address":return new e.Address(d).toScVal();default:if(u.XdrLargeInt.isType(T))return new u.XdrLargeInt(T,d).toScVal();throw new TypeError("invalid type (".concat(_.type,") specified for string value"))}case"boolean":return o.default.ScVal.scvBool(d);case"undefined":return o.default.ScVal.scvVoid();case"function":return k(d());default:throw new TypeError("failed to convert typeof ".concat(m(d)," (").concat(d,")"))}},a.scValToNative=function k(d){var w,y;switch(d.switch().value){case o.default.ScValType.scvVoid().value:return null;case o.default.ScValType.scvU64().value:case o.default.ScValType.scvI64().value:return d.value().toBigInt();case o.default.ScValType.scvU128().value:case o.default.ScValType.scvI128().value:case o.default.ScValType.scvU256().value:case o.default.ScValType.scvI256().value:return(0,u.scValToBigInt)(d);case o.default.ScValType.scvVec().value:return((w=d.vec())!==null&&w!==void 0?w:[]).map(k);case o.default.ScValType.scvAddress().value:return e.Address.fromScVal(d).toString();case o.default.ScValType.scvMap().value:return Object.fromEntries(((y=d.map())!==null&&y!==void 0?y:[]).map(function(x){return[k(x.key()),k(x.val())]}));case o.default.ScValType.scvBool().value:case o.default.ScValType.scvU32().value:case o.default.ScValType.scvI32().value:case o.default.ScValType.scvBytes().value:return d.value();case o.default.ScValType.scvSymbol().value:case o.default.ScValType.scvString().value:var _=d.value();if(t.isBuffer(_)||ArrayBuffer.isView(_))try{return new TextDecoder().decode(_)}catch{return new Uint8Array(_.buffer)}return _;case o.default.ScValType.scvTimepoint().value:case o.default.ScValType.scvDuration().value:return new o.default.Uint64(d.value()).toBigInt();case o.default.ScValType.scvStatus().value:switch(d.value().switch()){case o.default.ScStatusType.sstOk().value:case o.default.ScStatusType.sstUnknownError().value:case o.default.ScStatusType.sstHostValueError().value:case o.default.ScStatusType.sstHostObjectError().value:case o.default.ScStatusType.sstHostFunctionError().value:case o.default.ScStatusType.sstHostStorageError().value:case o.default.ScStatusType.sstHostContextError().value:case o.default.ScStatusType.sstVmError().value:case o.default.ScStatusType.sstContractError().value:case o.default.ScStatusType.sstHostAuthError().value:}default:return d.value()}};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(3471),c=i(5618),u=i(3180);function h(k,d){return function(w){if(Array.isArray(w))return w}(k)||function(w,y){var _=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(_!=null){var x,E,S,C,T=[],R=!0,W=!1;try{if(S=(_=_.call(w)).next,y===0){if(Object(_)!==_)return;R=!1}else for(;!(R=(x=S.call(_)).done)&&(T.push(x.value),T.length!==y);R=!0);}catch(j){W=!0,E=j}finally{try{if(!R&&_.return!=null&&(C=_.return(),Object(C)!==C))return}finally{if(W)throw E}}return T}}(k,d)||function(w,y){if(w){if(typeof w=="string")return b(w,y);var _=Object.prototype.toString.call(w).slice(8,-1);if(_==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set")return Array.from(w);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return b(w,y)}}(k,d)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(k,d){(d==null||d>k.length)&&(d=k.length);for(var w=0,y=new Array(d);w{Object.defineProperty(a,"__esModule",{value:!0}),a.SignerKey=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t},o=i(8385);function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function c(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.FastSigning=void 0,a.generate=function(e){return s.generate(e)},a.sign=function(e,c){return s.sign(e,c)},a.verify=function(e,c,u){return s.verify(e,c,u)};var s={};a.FastSigning=typeof window>"u"?function(){var e;try{e=i(Object(function(){var c=new Error("Cannot find module 'sodium-native'");throw c.code="MODULE_NOT_FOUND",c}()))}catch{return o()}return Object.keys(e).length?(s.generate=function(c){var u=t.alloc(e.crypto_sign_PUBLICKEYBYTES),h=t.alloc(e.crypto_sign_SECRETKEYBYTES);return e.crypto_sign_seed_keypair(u,h,c),u},s.sign=function(c,u){c=t.from(c);var h=t.alloc(e.crypto_sign_BYTES);return e.crypto_sign_detached(h,c,u),h},s.verify=function(c,u,h){c=t.from(c);try{return e.crypto_sign_verify_detached(u,c,h)}catch{return!1}},!0):o()}():o();function o(){var e=i(7586);return s.generate=function(c){var u=new Uint8Array(c),h=e.sign.keyPair.fromSeed(u);return t.from(h.publicKey)},s.sign=function(c,u){c=t.from(c),c=new Uint8Array(c.toJSON().data),u=new Uint8Array(u.toJSON().data);var h=e.sign.detached(c,u);return t.from(h)},s.verify=function(c,u,h){return c=t.from(c),c=new Uint8Array(c.toJSON().data),u=new Uint8Array(u.toJSON().data),h=new Uint8Array(h.toJSON().data),e.sign.detached.verify(c,u,h)},!1}},251:(f,a)=>{function i(e){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(e)}function t(e){return function(c){if(Array.isArray(c))return c}(e)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(e)||function(c,u){if(c){if(typeof c=="string")return s(c,u);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(c);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return s(c,u)}}(e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function s(e,c){(c==null||c>e.length)&&(c=e.length);for(var u=0,h=new Array(c);u0&&(k=m>k.length?["0",k.toString().padStart(m,"0")].join("."):[k.slice(0,-m),k.slice(-m)].join(".")),k.replace(/(\.\d*?)0+$/,"$1")}},{key:"parseTokenAmount",value:function(b,m){var k,d=t(b.split(".").slice()),w=d[0],y=d[1];if(d.slice(2).length)throw new Error("Invalid decimal value: ".concat(b));return BigInt(w+((k=y==null?void 0:y.padEnd(m,"0"))!==null&&k!==void 0?k:"0".repeat(m))).toString()}}],(u=null)&&o(c.prototype,u),h&&o(c,h),Object.defineProperty(c,"prototype",{writable:!1}),e}()},5096:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SorobanDataBuilder=void 0;var t,s=(t=i(4081))&&t.__esModule?t:{default:t};function o(u){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},o(u)}function e(u,h){for(var b=0;b{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.StrKey=void 0,a.decodeCheck=k,a.encodeCheck=d;var s,o=(s=i(6906))&&s.__esModule?s:{default:s},e=i(9449);function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(y)}function u(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,(S=E.key,C=void 0,C=function(T,R){if(c(T)!=="object"||T===null)return T;var W=T[Symbol.toPrimitive];if(W!==void 0){var j=W.call(T,R||"default");if(c(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(T)}(S,"string"),c(C)==="symbol"?C:String(C)),E)}var S,C}var h={ed25519PublicKey:48,ed25519SecretSeed:144,med25519PublicKey:96,preAuthTx:152,sha256Hash:184,signedPayload:120,contract:16},b={G:"ed25519PublicKey",S:"ed25519SecretSeed",M:"med25519PublicKey",T:"preAuthTx",X:"sha256Hash",P:"signedPayload",C:"contract"};a.StrKey=function(){function y(){(function(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")})(this,y)}var _,x,E;return _=y,E=[{key:"encodeEd25519PublicKey",value:function(S){return d("ed25519PublicKey",S)}},{key:"decodeEd25519PublicKey",value:function(S){return k("ed25519PublicKey",S)}},{key:"isValidEd25519PublicKey",value:function(S){return m("ed25519PublicKey",S)}},{key:"encodeEd25519SecretSeed",value:function(S){return d("ed25519SecretSeed",S)}},{key:"decodeEd25519SecretSeed",value:function(S){return k("ed25519SecretSeed",S)}},{key:"isValidEd25519SecretSeed",value:function(S){return m("ed25519SecretSeed",S)}},{key:"encodeMed25519PublicKey",value:function(S){return d("med25519PublicKey",S)}},{key:"decodeMed25519PublicKey",value:function(S){return k("med25519PublicKey",S)}},{key:"isValidMed25519PublicKey",value:function(S){return m("med25519PublicKey",S)}},{key:"encodePreAuthTx",value:function(S){return d("preAuthTx",S)}},{key:"decodePreAuthTx",value:function(S){return k("preAuthTx",S)}},{key:"encodeSha256Hash",value:function(S){return d("sha256Hash",S)}},{key:"decodeSha256Hash",value:function(S){return k("sha256Hash",S)}},{key:"encodeSignedPayload",value:function(S){return d("signedPayload",S)}},{key:"decodeSignedPayload",value:function(S){return k("signedPayload",S)}},{key:"isValidSignedPayload",value:function(S){return m("signedPayload",S)}},{key:"encodeContract",value:function(S){return d("contract",S)}},{key:"decodeContract",value:function(S){return k("contract",S)}},{key:"isValidContract",value:function(S){return m("contract",S)}},{key:"getVersionByteForPrefix",value:function(S){return b[S[0]]}}],(x=null)&&u(_.prototype,x),E&&u(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}();function m(y,_){if(typeof _!="string")return!1;switch(y){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":if(_.length!==56)return!1;break;case"med25519PublicKey":if(_.length!==69)return!1;break;case"signedPayload":if(_.length<56||_.length>165)return!1;break;default:return!1}var x="";try{x=k(y,_)}catch{return!1}switch(y){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":return x.length===32;case"med25519PublicKey":return x.length===40;case"signedPayload":return x.length>=40&&x.length<=100;default:return!1}}function k(y,_){if(typeof _!="string")throw new TypeError("encoded argument must be of type String");var x=o.default.decode(_),E=x[0],S=x.slice(0,-2),C=S.slice(1),T=x.slice(-2);if(_!==o.default.encode(x))throw new Error("invalid encoded string");var R=h[y];if(R===void 0)throw new Error("".concat(y," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(h).join(", ")));if(E!==R)throw new Error("invalid version byte. expected ".concat(R,", got ").concat(E));var W=w(S);if(!(0,e.verifyChecksum)(W,T))throw new Error("invalid checksum");return t.from(C)}function d(y,_){if(_==null)throw new Error("cannot encode null data");var x=h[y];if(x===void 0)throw new Error("".concat(y," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(h).join(", ")));_=t.from(_);var E=t.from([x]),S=t.concat([E,_]),C=w(S),T=t.concat([S,C]);return o.default.encode(T)}function w(y){for(var _=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920],x=0,E=0;E>8^y[E]],x&=65535;var S=new Uint8Array(2);return S[0]=255&x,S[1]=x>>8&255,S}},1388:(f,a,i)=>{var t=i(8764).Buffer;function s(x){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},s(x)}Object.defineProperty(a,"__esModule",{value:!0}),a.Transaction=void 0;var o,e=(o=i(4081))&&o.__esModule?o:{default:o},c=i(9622),u=i(8385),h=i(4585),b=i(4856),m=i(1065),k=i(6880);function d(x,E){for(var S=0;S"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var S,C=_(x);if(E){var T=_(this).constructor;S=Reflect.construct(C,arguments,T)}else S=C.apply(this,arguments);return function(R,W){if(W&&(s(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}(R)}(this,S)}}function _(x){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},_(x)}a.Transaction=function(x){(function(R,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&w(R,W)})(T,x);var E,S,C=y(T);function T(R,W){var j;if(function(G,re){if(!(G instanceof re))throw new TypeError("Cannot call a class as a function")}(this,T),typeof R=="string"){var L=t.from(R,"base64");R=e.default.TransactionEnvelope.fromXDR(L)}var Q=R.switch();if(Q!==e.default.EnvelopeType.envelopeTypeTxV0()&&Q!==e.default.EnvelopeType.envelopeTypeTx())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(Q.name,"."));var U=R.value(),Z=U.tx(),se=Z.fee().toString(),te=(U.signatures()||[]).slice();(j=C.call(this,Z,te,se,W))._envelopeType=Q,j._memo=Z.memo(),j._sequence=Z.seqNum().toString(),j._envelopeType===e.default.EnvelopeType.envelopeTypeTxV0()?j._source=u.StrKey.encodeEd25519PublicKey(j.tx.sourceAccountEd25519()):j._source=(0,k.encodeMuxedAccountToAddress)(j.tx.sourceAccount());var $=null,P=null;switch(j._envelopeType){case e.default.EnvelopeType.envelopeTypeTxV0():P=Z.timeBounds();break;case e.default.EnvelopeType.envelopeTypeTx():switch(Z.cond().switch()){case e.default.PreconditionType.precondTime():P=Z.cond().timeBounds();break;case e.default.PreconditionType.precondV2():P=($=Z.cond().v2()).timeBounds()}}if(P&&(j._timeBounds={minTime:P.minTime().toString(),maxTime:P.maxTime().toString()}),$){var A=$.ledgerBounds();A&&(j._ledgerBounds={minLedger:A.minLedger(),maxLedger:A.maxLedger()});var O=$.minSeqNum();O&&(j._minAccountSequence=O.toString()),j._minAccountSequenceAge=$.minSeqAge(),j._minAccountSequenceLedgerGap=$.minSeqLedgerGap(),j._extraSigners=$.extraSigners()}var z=Z.operations()||[];return j._operations=z.map(function(G){return h.Operation.fromXDRObject(G)}),j}return E=T,(S=[{key:"timeBounds",get:function(){return this._timeBounds},set:function(R){throw new Error("Transaction is immutable")}},{key:"ledgerBounds",get:function(){return this._ledgerBounds},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequence",get:function(){return this._minAccountSequence},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceAge",get:function(){return this._minAccountSequenceAge},set:function(R){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceLedgerGap",get:function(){return this._minAccountSequenceLedgerGap},set:function(R){throw new Error("Transaction is immutable")}},{key:"extraSigners",get:function(){return this._extraSigners},set:function(R){throw new Error("Transaction is immutable")}},{key:"sequence",get:function(){return this._sequence},set:function(R){throw new Error("Transaction is immutable")}},{key:"source",get:function(){return this._source},set:function(R){throw new Error("Transaction is immutable")}},{key:"operations",get:function(){return this._operations},set:function(R){throw new Error("Transaction is immutable")}},{key:"memo",get:function(){return b.Memo.fromXDRObject(this._memo)},set:function(R){throw new Error("Transaction is immutable")}},{key:"signatureBase",value:function(){var R=this.tx;this._envelopeType===e.default.EnvelopeType.envelopeTypeTxV0()&&(R=e.default.Transaction.fromXDR(t.concat([e.default.PublicKeyType.publicKeyTypeEd25519().toXDR(),R.toXDR()])));var W=new e.default.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTx(R);return new e.default.TransactionSignaturePayload({networkId:e.default.Hash.fromXDR((0,c.hash)(this.networkPassphrase)),taggedTransaction:W}).toXDR()}},{key:"toEnvelope",value:function(){var R,W=this.tx.toXDR(),j=this.signatures.slice();switch(this._envelopeType){case e.default.EnvelopeType.envelopeTypeTxV0():R=new e.default.TransactionEnvelope.envelopeTypeTxV0(new e.default.TransactionV0Envelope({tx:e.default.TransactionV0.fromXDR(W),signatures:j}));break;case e.default.EnvelopeType.envelopeTypeTx():R=new e.default.TransactionEnvelope.envelopeTypeTx(new e.default.TransactionV1Envelope({tx:e.default.Transaction.fromXDR(W),signatures:j}));break;default:throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(this._envelopeType.name,"."))}return R}},{key:"getClaimableBalanceId",value:function(R){if(!Number.isInteger(R)||R<0||R>=this.operations.length)throw new RangeError("invalid operation index");var W=this.operations[R];try{W=h.Operation.createClaimableBalance(W)}catch(U){throw new TypeError("expected createClaimableBalance, got ".concat(W.type,": ").concat(U))}var j=u.StrKey.decodeEd25519PublicKey((0,k.extractBaseAddress)(this.source)),L=e.default.HashIdPreimage.envelopeTypeOpId(new e.default.HashIdPreimageOperationId({sourceAccount:e.default.AccountId.publicKeyTypeEd25519(j),seqNum:e.default.SequenceNumber.fromString(this.sequence),opNum:R})),Q=(0,c.hash)(L.toXDR("raw"));return e.default.ClaimableBalanceId.claimableBalanceIdTypeV0(Q).toXDR("hex")}}])&&d(E.prototype,S),Object.defineProperty(E,"prototype",{writable:!1}),T}(m.TransactionBase)},1065:(f,a,i)=>{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.TransactionBase=void 0;var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(9622),c=i(6437);function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},u(b)}function h(b,m){for(var k=0;k0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(!_||typeof _!="string")throw new Error("Invalid signature");if(!y||typeof y!="string")throw new Error("Invalid publicKey");var x=t.from(_,"base64");try{w=(d=c.Keypair.fromPublicKey(y)).signatureHint()}catch{throw new Error("Invalid publicKey")}if(!d.verify(this.hash(),x))throw new Error("Invalid signature");this.signatures.push(new o.default.DecoratedSignature({hint:w,signature:x}))}},{key:"addDecoratedSignature",value:function(d){this.signatures.push(d)}},{key:"signHashX",value:function(d){if(typeof d=="string"&&(d=t.from(d,"hex")),d.length>64)throw new Error("preimage cannnot be longer than 64 bytes");var w=d,y=(0,e.hash)(d),_=y.slice(y.length-4);this.signatures.push(new o.default.DecoratedSignature({hint:_,signature:w}))}},{key:"hash",value:function(){return(0,e.hash)(this.signatureBase())}},{key:"signatureBase",value:function(){throw new Error("Implement in subclass")}},{key:"toEnvelope",value:function(){throw new Error("Implement in subclass")}},{key:"toXDR",value:function(){return this.toEnvelope().toXDR().toString("base64")}}],k&&h(m.prototype,k),Object.defineProperty(m,"prototype",{writable:!1}),b}()},624:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TransactionBuilder=a.TimeoutInfinite=a.BASE_FEE=void 0,a.isValidDate=L;var t=i(6263),s=y(i(4431)),o=y(i(4081)),e=i(3217),c=i(9022),u=i(6880),h=i(1388),b=i(1462),m=i(5096),k=i(8385),d=i(5822),w=i(4856);function y(Q){return Q&&Q.__esModule?Q:{default:Q}}function _(Q){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},_(Q)}function x(Q){return function(U){if(Array.isArray(U))return E(U)}(Q)||function(U){if(typeof Symbol<"u"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(Q)||function(U,Z){if(U){if(typeof U=="string")return E(U,Z);var se=Object.prototype.toString.call(U).slice(8,-1);if(se==="Object"&&U.constructor&&(se=U.constructor.name),se==="Map"||se==="Set")return Array.from(U);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return E(U,Z)}}(Q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(Q,U){(U==null||U>Q.length)&&(U=Q.length);for(var Z=0,se=new Array(U);Z1&&arguments[1]!==void 0?arguments[1]:{};if(function(P,A){if(!(P instanceof A))throw new TypeError("Cannot call a class as a function")}(this,Q),!te)throw new Error("must specify source account for the transaction");if($.fee===void 0)throw new Error("must specify fee for the transaction (in stroops)");this.source=te,this.operations=[],this.baseFee=$.fee,this.timebounds=$.timebounds?C({},$.timebounds):null,this.ledgerbounds=$.ledgerbounds?C({},$.ledgerbounds):null,this.minAccountSequence=$.minAccountSequence||null,this.minAccountSequenceAge=$.minAccountSequenceAge||null,this.minAccountSequenceLedgerGap=$.minAccountSequenceLedgerGap||null,this.extraSigners=$.extraSigners?x($.extraSigners):null,this.memo=$.memo||w.Memo.none(),this.networkPassphrase=$.networkPassphrase||null,this.sorobanData=$.sorobanData?new m.SorobanDataBuilder($.sorobanData).build():null}var U,Z,se;return U=Q,se=[{key:"cloneFrom",value:function(te){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(te instanceof h.Transaction))throw new TypeError("expected a 'Transaction', got: ".concat(te));var P,A=(BigInt(te.sequence)-1n).toString();if(k.StrKey.isValidMed25519PublicKey(te.source))P=c.MuxedAccount.fromAddress(te.source,A);else{if(!k.StrKey.isValidEd25519PublicKey(te.source))throw new TypeError("unsupported tx source account: ".concat(te.source));P=new e.Account(te.source,A)}var O=new Q(P,C({fee:(parseInt(te.fee,10)/te.operations.length||j).toString(),memo:te.memo,networkPassphrase:te.networkPassphrase,timebounds:te.timeBounds,ledgerbounds:te.ledgerBounds,minAccountSequence:te.minAccountSequence,minAccountSequenceAge:te.minAccountSequenceAge,minAccountSequenceLedgerGap:te.minAccountSequenceLedgerGap,extraSigners:te.extraSigners},$));return te._tx.operations().forEach(function(z){return O.addOperation(z)}),O}},{key:"buildFeeBumpTransaction",value:function(te,$,P,A){var O=P.operations.length,z=new s.default(P.fee).div(O),G=new s.default($);if(G.lt(z))throw new Error("Invalid baseFee, it should be at least ".concat(z," stroops."));var re=new s.default(j);if(G.lt(re))throw new Error("Invalid baseFee, it should be at least ".concat(re," stroops."));var X,be=P.toEnvelope();if(be.switch()===o.default.EnvelopeType.envelopeTypeTxV0()){var Be=be.v0().tx(),ve=new o.default.Transaction({sourceAccount:new o.default.MuxedAccount.keyTypeEd25519(Be.sourceAccountEd25519()),fee:Be.fee(),seqNum:Be.seqNum(),cond:o.default.Preconditions.precondTime(Be.timeBounds()),memo:Be.memo(),operations:Be.operations(),ext:new o.default.TransactionExt(0)});be=new o.default.TransactionEnvelope.envelopeTypeTx(new o.default.TransactionV1Envelope({tx:ve,signatures:be.v0().signatures()}))}X=typeof te=="string"?(0,u.decodeAddressToMuxedAccount)(te):te.xdrMuxedAccount();var he=new o.default.FeeBumpTransaction({feeSource:X,fee:o.default.Int64.fromString(G.times(O+1).toString()),innerTx:o.default.FeeBumpTransactionInnerTx.envelopeTypeTx(be.v1()),ext:new o.default.FeeBumpTransactionExt(0)}),le=new o.default.FeeBumpTransactionEnvelope({tx:he,signatures:[]}),ge=new o.default.TransactionEnvelope.envelopeTypeTxFeeBump(le);return new b.FeeBumpTransaction(ge,A)}},{key:"fromXDR",value:function(te,$){return typeof te=="string"&&(te=o.default.TransactionEnvelope.fromXDR(te,"base64")),te.switch()===o.default.EnvelopeType.envelopeTypeTxFeeBump()?new b.FeeBumpTransaction(te,$):new h.Transaction(te,$)}}],(Z=[{key:"addOperation",value:function(te){return this.operations.push(te),this}},{key:"clearOperations",value:function(){return this.operations=[],this}},{key:"addMemo",value:function(te){return this.memo=te,this}},{key:"setTimeout",value:function(te){if(this.timebounds!==null&&this.timebounds.maxTime>0)throw new Error("TimeBounds.max_time has been already set - setting timeout would overwrite it.");if(te<0)throw new Error("timeout cannot be negative");if(te>0){var $=Math.floor(Date.now()/1e3)+te;this.timebounds===null?this.timebounds={minTime:0,maxTime:$}:this.timebounds={minTime:this.timebounds.minTime,maxTime:$}}else this.timebounds={minTime:0,maxTime:0};return this}},{key:"setTimebounds",value:function(te,$){if(typeof te=="number"&&(te=new Date(1e3*te)),typeof $=="number"&&($=new Date(1e3*$)),this.timebounds!==null)throw new Error("TimeBounds has been already set - setting timebounds would overwrite it.");var P=Math.floor(te.valueOf()/1e3),A=Math.floor($.valueOf()/1e3);if(P<0)throw new Error("min_time cannot be negative");if(A<0)throw new Error("max_time cannot be negative");if(A>0&&P>A)throw new Error("min_time cannot be greater than max_time");return this.timebounds={minTime:P,maxTime:A},this}},{key:"setLedgerbounds",value:function(te,$){if(this.ledgerbounds!==null)throw new Error("LedgerBounds has been already set - setting ledgerbounds would overwrite it.");if(te<0)throw new Error("min_ledger cannot be negative");if($<0)throw new Error("max_ledger cannot be negative");if($>0&&te>$)throw new Error("min_ledger cannot be greater than max_ledger");return this.ledgerbounds={minLedger:te,maxLedger:$},this}},{key:"setMinAccountSequence",value:function(te){if(this.minAccountSequence!==null)throw new Error("min_account_sequence has been already set - setting min_account_sequence would overwrite it.");return this.minAccountSequence=te,this}},{key:"setMinAccountSequenceAge",value:function(te){if(typeof te!="number")throw new Error("min_account_sequence_age must be a number");if(this.minAccountSequenceAge!==null)throw new Error("min_account_sequence_age has been already set - setting min_account_sequence_age would overwrite it.");if(te<0)throw new Error("min_account_sequence_age cannot be negative");return this.minAccountSequenceAge=te,this}},{key:"setMinAccountSequenceLedgerGap",value:function(te){if(this.minAccountSequenceLedgerGap!==null)throw new Error("min_account_sequence_ledger_gap has been already set - setting min_account_sequence_ledger_gap would overwrite it.");if(te<0)throw new Error("min_account_sequence_ledger_gap cannot be negative");return this.minAccountSequenceLedgerGap=te,this}},{key:"setExtraSigners",value:function(te){if(!Array.isArray(te))throw new Error("extra_signers must be an array of strings.");if(this.extraSigners!==null)throw new Error("extra_signers has been already set - setting extra_signers would overwrite it.");if(te.length>2)throw new Error("extra_signers cannot be longer than 2 elements.");return this.extraSigners=x(te),this}},{key:"setNetworkPassphrase",value:function(te){return this.networkPassphrase=te,this}},{key:"setSorobanData",value:function(te){return this.sorobanData=new m.SorobanDataBuilder(te).build(),this}},{key:"build",value:function(){var te=new s.default(this.source.sequenceNumber()).plus(1),$={fee:new s.default(this.baseFee).times(this.operations.length).toNumber(),seqNum:o.default.SequenceNumber.fromString(te.toString()),memo:this.memo?this.memo.toXDRObject():null};if(this.timebounds===null||this.timebounds.minTime===void 0||this.timebounds.maxTime===void 0)throw new Error("TimeBounds has to be set or you must call setTimeout(TimeoutInfinite).");L(this.timebounds.minTime)&&(this.timebounds.minTime=this.timebounds.minTime.getTime()/1e3),L(this.timebounds.maxTime)&&(this.timebounds.maxTime=this.timebounds.maxTime.getTime()/1e3),this.timebounds.minTime=t.UnsignedHyper.fromString(this.timebounds.minTime.toString()),this.timebounds.maxTime=t.UnsignedHyper.fromString(this.timebounds.maxTime.toString());var P=new o.default.TimeBounds(this.timebounds);if(this.hasV2Preconditions()){var A=null;this.ledgerbounds!==null&&(A=new o.default.LedgerBounds(this.ledgerbounds));var O=this.minAccountSequence||"0";O=o.default.SequenceNumber.fromString(O);var z=t.UnsignedHyper.fromString(this.minAccountSequenceAge!==null?this.minAccountSequenceAge.toString():"0"),G=this.minAccountSequenceLedgerGap||0,re=this.extraSigners!==null?this.extraSigners.map(d.SignerKey.decodeAddress):[];$.cond=o.default.Preconditions.precondV2(new o.default.PreconditionsV2({timeBounds:P,ledgerBounds:A,minSeqNum:O,minSeqAge:z,minSeqLedgerGap:G,extraSigners:re}))}else $.cond=o.default.Preconditions.precondTime(P);$.sourceAccount=(0,u.decodeAddressToMuxedAccount)(this.source.accountId()),this.sorobanData?$.ext=new o.default.TransactionExt(1,this.sorobanData):$.ext=new o.default.TransactionExt(0,o.default.Void);var X=new o.default.Transaction($);X.operations(this.operations);var be=new o.default.TransactionEnvelope.envelopeTypeTx(new o.default.TransactionV1Envelope({tx:X})),Be=new h.Transaction(be,this.networkPassphrase);return this.source.incrementSequenceNumber(),Be}},{key:"hasV2Preconditions",value:function(){return this.ledgerbounds!==null||this.minAccountSequence!==null||this.minAccountSequenceAge!==null||this.minAccountSequenceLedgerGap!==null||this.extraSigners!==null&&this.extraSigners.length>0}}])&&R(U.prototype,Z),se&&R(U,se),Object.defineProperty(U,"prototype",{writable:!1}),Q}();function L(Q){return Q instanceof Date&&!isNaN(Q)}},9449:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.verifyChecksum=function(i,t){if(i.length!==t.length)return!1;if(i.length===0)return!0;for(var s=0;s{Object.defineProperty(a,"__esModule",{value:!0}),a.best_r=function(c){for(var u,h,b=new s.default(c),m=[[new s.default(0),new s.default(1)],[new s.default(1),new s.default(0)]],k=2;!b.gt(e);){u=b.integerValue(s.default.ROUND_FLOOR),h=b.minus(u);var d=u.times(m[k-1][0]).plus(m[k-2][0]),w=u.times(m[k-1][1]).plus(m[k-2][1]);if(d.gt(e)||w.gt(e)||(m.push([d,w]),h.eq(0)))break;b=new s.default(1).div(h),k+=1}var y=function(E,S){return function(C){if(Array.isArray(C))return C}(E)||function(C,T){var R=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(R!=null){var W,j,L,Q,U=[],Z=!0,se=!1;try{if(L=(R=R.call(C)).next,T===0){if(Object(R)!==R)return;Z=!1}else for(;!(Z=(W=L.call(R)).done)&&(U.push(W.value),U.length!==T);Z=!0);}catch(te){se=!0,j=te}finally{try{if(!Z&&R.return!=null&&(Q=R.return(),Object(Q)!==Q))return}finally{if(se)throw j}}return U}}(E,S)||function(C,T){if(C){if(typeof C=="string")return o(C,T);var R=Object.prototype.toString.call(C).slice(8,-1);if(R==="Object"&&C.constructor&&(R=C.constructor.name),R==="Map"||R==="Set")return Array.from(C);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(C,T)}}(E,S)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(m[m.length-1],2),_=y[0],x=y[1];if(_.isZero()||x.isZero())throw new Error("Couldn't find approximation");return[_.toNumber(),x.toNumber()]};var t,s=(t=i(4431))&&t.__esModule?t:{default:t};function o(c,u){(u==null||u>c.length)&&(u=c.length);for(var h=0,b=new Array(u);h{var t=i(8764).Buffer;Object.defineProperty(a,"__esModule",{value:!0}),a.decodeAddressToMuxedAccount=c,a.encodeMuxedAccount=function(h,b){if(!e.StrKey.isValidEd25519PublicKey(h))throw new Error("address should be a Stellar account ID (G...)");if(typeof b!="string")throw new Error("id should be a string representing a number (uint64)");return o.default.MuxedAccount.keyTypeMuxedEd25519(new o.default.MuxedAccountMed25519({id:o.default.Uint64.fromString(b),ed25519:e.StrKey.decodeEd25519PublicKey(h)}))},a.encodeMuxedAccountToAddress=u,a.extractBaseAddress=function(h){if(e.StrKey.isValidEd25519PublicKey(h))return h;if(!e.StrKey.isValidMed25519PublicKey(h))throw new TypeError("expected muxed account (M...), got ".concat(h));var b=c(h);return e.StrKey.encodeEd25519PublicKey(b.med25519().ed25519())};var s,o=(s=i(4081))&&s.__esModule?s:{default:s},e=i(8385);function c(h){return e.StrKey.isValidMed25519PublicKey(h)?function(b){var m=e.StrKey.decodeMed25519PublicKey(b);return o.default.MuxedAccount.keyTypeMuxedEd25519(new o.default.MuxedAccountMed25519({id:o.default.Uint64.fromXDR(m.subarray(-8)),ed25519:m.subarray(0,-8)}))}(h):o.default.MuxedAccount.keyTypeEd25519(e.StrKey.decodeEd25519PublicKey(h))}function u(h){return h.switch().value===o.default.CryptoKeyType.keyTypeMuxedEd25519().value?function(b){if(b.switch()===o.default.CryptoKeyType.keyTypeEd25519())return u(b);var m=b.med25519();return e.StrKey.encodeMed25519PublicKey(t.concat([m.ed25519(),m.id().toXDR("raw")]))}(h):e.StrKey.encodeEd25519PublicKey(h.ed25519())}},6006:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trimEnd=void 0,a.trimEnd=function(i,t){for(var s=typeof i=="number",o=String(i);o.endsWith(t);)o=o.slice(0,-1);return s?Number(o):o}},4081:(f,a,i)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t,s=(t=i(7701))&&t.__esModule?t:{default:t};a.default=s.default},7586:(f,a,i)=>{(function(t){var s=function(me){var we,xe=new Float64Array(16);if(me)for(we=0;we>24&255,me[we+1]=xe>>16&255,me[we+2]=xe>>8&255,me[we+3]=255&xe,me[we+4]=V>>24&255,me[we+5]=V>>16&255,me[we+6]=V>>8&255,me[we+7]=255&V}function x(me,we,xe,V,Y){var ke,$e=0;for(ke=0;ke>>8)-1}function E(me,we,xe,V){return x(me,we,xe,V,16)}function S(me,we,xe,V){return x(me,we,xe,V,32)}function C(me,we,xe,V){(function(Y,ke,$e,ze){for(var je,ut=255&ze[0]|(255&ze[1])<<8|(255&ze[2])<<16|(255&ze[3])<<24,nt=255&$e[0]|(255&$e[1])<<8|(255&$e[2])<<16|(255&$e[3])<<24,at=255&$e[4]|(255&$e[5])<<8|(255&$e[6])<<16|(255&$e[7])<<24,It=255&$e[8]|(255&$e[9])<<8|(255&$e[10])<<16|(255&$e[11])<<24,Nt=255&$e[12]|(255&$e[13])<<8|(255&$e[14])<<16|(255&$e[15])<<24,Rt=255&ze[4]|(255&ze[5])<<8|(255&ze[6])<<16|(255&ze[7])<<24,Gt=255&ke[0]|(255&ke[1])<<8|(255&ke[2])<<16|(255&ke[3])<<24,Jt=255&ke[4]|(255&ke[5])<<8|(255&ke[6])<<16|(255&ke[7])<<24,Ht=255&ke[8]|(255&ke[9])<<8|(255&ke[10])<<16|(255&ke[11])<<24,Zt=255&ke[12]|(255&ke[13])<<8|(255&ke[14])<<16|(255&ke[15])<<24,Vt=255&ze[8]|(255&ze[9])<<8|(255&ze[10])<<16|(255&ze[11])<<24,Ut=255&$e[16]|(255&$e[17])<<8|(255&$e[18])<<16|(255&$e[19])<<24,Qt=255&$e[20]|(255&$e[21])<<8|(255&$e[22])<<16|(255&$e[23])<<24,en=255&$e[24]|(255&$e[25])<<8|(255&$e[26])<<16|(255&$e[27])<<24,Wt=255&$e[28]|(255&$e[29])<<8|(255&$e[30])<<16|(255&$e[31])<<24,mt=255&ze[12]|(255&ze[13])<<8|(255&ze[14])<<16|(255&ze[15])<<24,St=ut,Bt=nt,Tt=at,Ot=It,kt=Nt,ln=Rt,ce=Gt,Ce=Jt,Ve=Ht,Qe=Zt,Je=Vt,Ye=Ut,Ze=Qt,yt=en,wt=Wt,ht=mt,ct=0;ct<20;ct+=2)St^=(je=(Ze^=(je=(Ve^=(je=(kt^=(je=St+Ze|0)<<7|je>>>25)+St|0)<<9|je>>>23)+kt|0)<<13|je>>>19)+Ve|0)<<18|je>>>14,ln^=(je=(Bt^=(je=(yt^=(je=(Qe^=(je=ln+Bt|0)<<7|je>>>25)+ln|0)<<9|je>>>23)+Qe|0)<<13|je>>>19)+yt|0)<<18|je>>>14,Je^=(je=(ce^=(je=(Tt^=(je=(wt^=(je=Je+ce|0)<<7|je>>>25)+Je|0)<<9|je>>>23)+wt|0)<<13|je>>>19)+Tt|0)<<18|je>>>14,ht^=(je=(Ye^=(je=(Ce^=(je=(Ot^=(je=ht+Ye|0)<<7|je>>>25)+ht|0)<<9|je>>>23)+Ot|0)<<13|je>>>19)+Ce|0)<<18|je>>>14,St^=(je=(Ot^=(je=(Tt^=(je=(Bt^=(je=St+Ot|0)<<7|je>>>25)+St|0)<<9|je>>>23)+Bt|0)<<13|je>>>19)+Tt|0)<<18|je>>>14,ln^=(je=(kt^=(je=(Ce^=(je=(ce^=(je=ln+kt|0)<<7|je>>>25)+ln|0)<<9|je>>>23)+ce|0)<<13|je>>>19)+Ce|0)<<18|je>>>14,Je^=(je=(Qe^=(je=(Ve^=(je=(Ye^=(je=Je+Qe|0)<<7|je>>>25)+Je|0)<<9|je>>>23)+Ye|0)<<13|je>>>19)+Ve|0)<<18|je>>>14,ht^=(je=(wt^=(je=(yt^=(je=(Ze^=(je=ht+wt|0)<<7|je>>>25)+ht|0)<<9|je>>>23)+Ze|0)<<13|je>>>19)+yt|0)<<18|je>>>14;St=St+ut|0,Bt=Bt+nt|0,Tt=Tt+at|0,Ot=Ot+It|0,kt=kt+Nt|0,ln=ln+Rt|0,ce=ce+Gt|0,Ce=Ce+Jt|0,Ve=Ve+Ht|0,Qe=Qe+Zt|0,Je=Je+Vt|0,Ye=Ye+Ut|0,Ze=Ze+Qt|0,yt=yt+en|0,wt=wt+Wt|0,ht=ht+mt|0,Y[0]=St>>>0&255,Y[1]=St>>>8&255,Y[2]=St>>>16&255,Y[3]=St>>>24&255,Y[4]=Bt>>>0&255,Y[5]=Bt>>>8&255,Y[6]=Bt>>>16&255,Y[7]=Bt>>>24&255,Y[8]=Tt>>>0&255,Y[9]=Tt>>>8&255,Y[10]=Tt>>>16&255,Y[11]=Tt>>>24&255,Y[12]=Ot>>>0&255,Y[13]=Ot>>>8&255,Y[14]=Ot>>>16&255,Y[15]=Ot>>>24&255,Y[16]=kt>>>0&255,Y[17]=kt>>>8&255,Y[18]=kt>>>16&255,Y[19]=kt>>>24&255,Y[20]=ln>>>0&255,Y[21]=ln>>>8&255,Y[22]=ln>>>16&255,Y[23]=ln>>>24&255,Y[24]=ce>>>0&255,Y[25]=ce>>>8&255,Y[26]=ce>>>16&255,Y[27]=ce>>>24&255,Y[28]=Ce>>>0&255,Y[29]=Ce>>>8&255,Y[30]=Ce>>>16&255,Y[31]=Ce>>>24&255,Y[32]=Ve>>>0&255,Y[33]=Ve>>>8&255,Y[34]=Ve>>>16&255,Y[35]=Ve>>>24&255,Y[36]=Qe>>>0&255,Y[37]=Qe>>>8&255,Y[38]=Qe>>>16&255,Y[39]=Qe>>>24&255,Y[40]=Je>>>0&255,Y[41]=Je>>>8&255,Y[42]=Je>>>16&255,Y[43]=Je>>>24&255,Y[44]=Ye>>>0&255,Y[45]=Ye>>>8&255,Y[46]=Ye>>>16&255,Y[47]=Ye>>>24&255,Y[48]=Ze>>>0&255,Y[49]=Ze>>>8&255,Y[50]=Ze>>>16&255,Y[51]=Ze>>>24&255,Y[52]=yt>>>0&255,Y[53]=yt>>>8&255,Y[54]=yt>>>16&255,Y[55]=yt>>>24&255,Y[56]=wt>>>0&255,Y[57]=wt>>>8&255,Y[58]=wt>>>16&255,Y[59]=wt>>>24&255,Y[60]=ht>>>0&255,Y[61]=ht>>>8&255,Y[62]=ht>>>16&255,Y[63]=ht>>>24&255})(me,we,xe,V)}function T(me,we,xe,V){(function(Y,ke,$e,ze){for(var je,ut=255&ze[0]|(255&ze[1])<<8|(255&ze[2])<<16|(255&ze[3])<<24,nt=255&$e[0]|(255&$e[1])<<8|(255&$e[2])<<16|(255&$e[3])<<24,at=255&$e[4]|(255&$e[5])<<8|(255&$e[6])<<16|(255&$e[7])<<24,It=255&$e[8]|(255&$e[9])<<8|(255&$e[10])<<16|(255&$e[11])<<24,Nt=255&$e[12]|(255&$e[13])<<8|(255&$e[14])<<16|(255&$e[15])<<24,Rt=255&ze[4]|(255&ze[5])<<8|(255&ze[6])<<16|(255&ze[7])<<24,Gt=255&ke[0]|(255&ke[1])<<8|(255&ke[2])<<16|(255&ke[3])<<24,Jt=255&ke[4]|(255&ke[5])<<8|(255&ke[6])<<16|(255&ke[7])<<24,Ht=255&ke[8]|(255&ke[9])<<8|(255&ke[10])<<16|(255&ke[11])<<24,Zt=255&ke[12]|(255&ke[13])<<8|(255&ke[14])<<16|(255&ke[15])<<24,Vt=255&ze[8]|(255&ze[9])<<8|(255&ze[10])<<16|(255&ze[11])<<24,Ut=255&$e[16]|(255&$e[17])<<8|(255&$e[18])<<16|(255&$e[19])<<24,Qt=255&$e[20]|(255&$e[21])<<8|(255&$e[22])<<16|(255&$e[23])<<24,en=255&$e[24]|(255&$e[25])<<8|(255&$e[26])<<16|(255&$e[27])<<24,Wt=255&$e[28]|(255&$e[29])<<8|(255&$e[30])<<16|(255&$e[31])<<24,mt=255&ze[12]|(255&ze[13])<<8|(255&ze[14])<<16|(255&ze[15])<<24,St=0;St<20;St+=2)ut^=(je=(Qt^=(je=(Ht^=(je=(Nt^=(je=ut+Qt|0)<<7|je>>>25)+ut|0)<<9|je>>>23)+Nt|0)<<13|je>>>19)+Ht|0)<<18|je>>>14,Rt^=(je=(nt^=(je=(en^=(je=(Zt^=(je=Rt+nt|0)<<7|je>>>25)+Rt|0)<<9|je>>>23)+Zt|0)<<13|je>>>19)+en|0)<<18|je>>>14,Vt^=(je=(Gt^=(je=(at^=(je=(Wt^=(je=Vt+Gt|0)<<7|je>>>25)+Vt|0)<<9|je>>>23)+Wt|0)<<13|je>>>19)+at|0)<<18|je>>>14,mt^=(je=(Ut^=(je=(Jt^=(je=(It^=(je=mt+Ut|0)<<7|je>>>25)+mt|0)<<9|je>>>23)+It|0)<<13|je>>>19)+Jt|0)<<18|je>>>14,ut^=(je=(It^=(je=(at^=(je=(nt^=(je=ut+It|0)<<7|je>>>25)+ut|0)<<9|je>>>23)+nt|0)<<13|je>>>19)+at|0)<<18|je>>>14,Rt^=(je=(Nt^=(je=(Jt^=(je=(Gt^=(je=Rt+Nt|0)<<7|je>>>25)+Rt|0)<<9|je>>>23)+Gt|0)<<13|je>>>19)+Jt|0)<<18|je>>>14,Vt^=(je=(Zt^=(je=(Ht^=(je=(Ut^=(je=Vt+Zt|0)<<7|je>>>25)+Vt|0)<<9|je>>>23)+Ut|0)<<13|je>>>19)+Ht|0)<<18|je>>>14,mt^=(je=(Wt^=(je=(en^=(je=(Qt^=(je=mt+Wt|0)<<7|je>>>25)+mt|0)<<9|je>>>23)+Qt|0)<<13|je>>>19)+en|0)<<18|je>>>14;Y[0]=ut>>>0&255,Y[1]=ut>>>8&255,Y[2]=ut>>>16&255,Y[3]=ut>>>24&255,Y[4]=Rt>>>0&255,Y[5]=Rt>>>8&255,Y[6]=Rt>>>16&255,Y[7]=Rt>>>24&255,Y[8]=Vt>>>0&255,Y[9]=Vt>>>8&255,Y[10]=Vt>>>16&255,Y[11]=Vt>>>24&255,Y[12]=mt>>>0&255,Y[13]=mt>>>8&255,Y[14]=mt>>>16&255,Y[15]=mt>>>24&255,Y[16]=Gt>>>0&255,Y[17]=Gt>>>8&255,Y[18]=Gt>>>16&255,Y[19]=Gt>>>24&255,Y[20]=Jt>>>0&255,Y[21]=Jt>>>8&255,Y[22]=Jt>>>16&255,Y[23]=Jt>>>24&255,Y[24]=Ht>>>0&255,Y[25]=Ht>>>8&255,Y[26]=Ht>>>16&255,Y[27]=Ht>>>24&255,Y[28]=Zt>>>0&255,Y[29]=Zt>>>8&255,Y[30]=Zt>>>16&255,Y[31]=Zt>>>24&255})(me,we,xe,V)}var R=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function W(me,we,xe,V,Y,ke,$e){var ze,je,ut=new Uint8Array(16),nt=new Uint8Array(64);for(je=0;je<16;je++)ut[je]=0;for(je=0;je<8;je++)ut[je]=ke[je];for(;Y>=64;){for(C(nt,ut,$e,R),je=0;je<64;je++)me[we+je]=xe[V+je]^nt[je];for(ze=1,je=8;je<16;je++)ze=ze+(255&ut[je])|0,ut[je]=255&ze,ze>>>=8;Y-=64,we+=64,V+=64}if(Y>0)for(C(nt,ut,$e,R),je=0;je=64;){for(C(je,ze,Y,R),$e=0;$e<64;$e++)me[we+$e]=je[$e];for(ke=1,$e=8;$e<16;$e++)ke=ke+(255&ze[$e])|0,ze[$e]=255&ke,ke>>>=8;xe-=64,we+=64}if(xe>0)for(C(je,ze,Y,R),$e=0;$e>>13|xe<<3),V=255&me[4]|(255&me[5])<<8,this.r[2]=7939&(xe>>>10|V<<6),Y=255&me[6]|(255&me[7])<<8,this.r[3]=8191&(V>>>7|Y<<9),ke=255&me[8]|(255&me[9])<<8,this.r[4]=255&(Y>>>4|ke<<12),this.r[5]=ke>>>1&8190,$e=255&me[10]|(255&me[11])<<8,this.r[6]=8191&(ke>>>14|$e<<2),ze=255&me[12]|(255&me[13])<<8,this.r[7]=8065&($e>>>11|ze<<5),je=255&me[14]|(255&me[15])<<8,this.r[8]=8191&(ze>>>8|je<<8),this.r[9]=je>>>5&127,this.pad[0]=255&me[16]|(255&me[17])<<8,this.pad[1]=255&me[18]|(255&me[19])<<8,this.pad[2]=255&me[20]|(255&me[21])<<8,this.pad[3]=255&me[22]|(255&me[23])<<8,this.pad[4]=255&me[24]|(255&me[25])<<8,this.pad[5]=255&me[26]|(255&me[27])<<8,this.pad[6]=255&me[28]|(255&me[29])<<8,this.pad[7]=255&me[30]|(255&me[31])<<8};function Z(me,we,xe,V,Y,ke){var $e=new U(ke);return $e.update(xe,V,Y),$e.finish(me,we),0}function se(me,we,xe,V,Y,ke){var $e=new Uint8Array(16);return Z($e,0,xe,V,Y,ke),E(me,we,$e,0)}function te(me,we,xe,V,Y){var ke;if(xe<32)return-1;for(Q(me,0,we,0,xe,V,Y),Z(me,16,me,32,xe-32,me),ke=0;ke<16;ke++)me[ke]=0;return 0}function $(me,we,xe,V,Y){var ke,$e=new Uint8Array(32);if(xe<32||(L($e,0,32,V,Y),se(we,16,we,32,xe-32,$e)!==0))return-1;for(Q(me,0,we,0,xe,V,Y),ke=0;ke<32;ke++)me[ke]=0;return 0}function P(me,we){var xe;for(xe=0;xe<16;xe++)me[xe]=0|we[xe]}function A(me){var we,xe,V=1;for(we=0;we<16;we++)xe=me[we]+V+65535,V=Math.floor(xe/65536),me[we]=xe-65536*V;me[0]+=V-1+37*(V-1)}function O(me,we,xe){for(var V,Y=~(xe-1),ke=0;ke<16;ke++)V=Y&(me[ke]^we[ke]),me[ke]^=V,we[ke]^=V}function z(me,we){var xe,V,Y,ke=s(),$e=s();for(xe=0;xe<16;xe++)$e[xe]=we[xe];for(A($e),A($e),A($e),V=0;V<2;V++){for(ke[0]=$e[0]-65517,xe=1;xe<15;xe++)ke[xe]=$e[xe]-65535-(ke[xe-1]>>16&1),ke[xe-1]&=65535;ke[15]=$e[15]-32767-(ke[14]>>16&1),Y=ke[15]>>16&1,ke[14]&=65535,O($e,ke,1-Y)}for(xe=0;xe<16;xe++)me[2*xe]=255&$e[xe],me[2*xe+1]=$e[xe]>>8}function G(me,we){var xe=new Uint8Array(32),V=new Uint8Array(32);return z(xe,me),z(V,we),S(xe,0,V,0)}function re(me){var we=new Uint8Array(32);return z(we,me),1&we[0]}function X(me,we){var xe;for(xe=0;xe<16;xe++)me[xe]=we[2*xe]+(we[2*xe+1]<<8);me[15]&=32767}function be(me,we,xe){for(var V=0;V<16;V++)me[V]=we[V]+xe[V]}function Be(me,we,xe){for(var V=0;V<16;V++)me[V]=we[V]-xe[V]}function ve(me,we,xe){var V,Y,ke=0,$e=0,ze=0,je=0,ut=0,nt=0,at=0,It=0,Nt=0,Rt=0,Gt=0,Jt=0,Ht=0,Zt=0,Vt=0,Ut=0,Qt=0,en=0,Wt=0,mt=0,St=0,Bt=0,Tt=0,Ot=0,kt=0,ln=0,ce=0,Ce=0,Ve=0,Qe=0,Je=0,Ye=xe[0],Ze=xe[1],yt=xe[2],wt=xe[3],ht=xe[4],ct=xe[5],Mt=xe[6],jt=xe[7],zt=xe[8],Dt=xe[9],tn=xe[10],an=xe[11],fn=xe[12],wn=xe[13],bn=xe[14],En=xe[15];ke+=(V=we[0])*Ye,$e+=V*Ze,ze+=V*yt,je+=V*wt,ut+=V*ht,nt+=V*ct,at+=V*Mt,It+=V*jt,Nt+=V*zt,Rt+=V*Dt,Gt+=V*tn,Jt+=V*an,Ht+=V*fn,Zt+=V*wn,Vt+=V*bn,Ut+=V*En,$e+=(V=we[1])*Ye,ze+=V*Ze,je+=V*yt,ut+=V*wt,nt+=V*ht,at+=V*ct,It+=V*Mt,Nt+=V*jt,Rt+=V*zt,Gt+=V*Dt,Jt+=V*tn,Ht+=V*an,Zt+=V*fn,Vt+=V*wn,Ut+=V*bn,Qt+=V*En,ze+=(V=we[2])*Ye,je+=V*Ze,ut+=V*yt,nt+=V*wt,at+=V*ht,It+=V*ct,Nt+=V*Mt,Rt+=V*jt,Gt+=V*zt,Jt+=V*Dt,Ht+=V*tn,Zt+=V*an,Vt+=V*fn,Ut+=V*wn,Qt+=V*bn,en+=V*En,je+=(V=we[3])*Ye,ut+=V*Ze,nt+=V*yt,at+=V*wt,It+=V*ht,Nt+=V*ct,Rt+=V*Mt,Gt+=V*jt,Jt+=V*zt,Ht+=V*Dt,Zt+=V*tn,Vt+=V*an,Ut+=V*fn,Qt+=V*wn,en+=V*bn,Wt+=V*En,ut+=(V=we[4])*Ye,nt+=V*Ze,at+=V*yt,It+=V*wt,Nt+=V*ht,Rt+=V*ct,Gt+=V*Mt,Jt+=V*jt,Ht+=V*zt,Zt+=V*Dt,Vt+=V*tn,Ut+=V*an,Qt+=V*fn,en+=V*wn,Wt+=V*bn,mt+=V*En,nt+=(V=we[5])*Ye,at+=V*Ze,It+=V*yt,Nt+=V*wt,Rt+=V*ht,Gt+=V*ct,Jt+=V*Mt,Ht+=V*jt,Zt+=V*zt,Vt+=V*Dt,Ut+=V*tn,Qt+=V*an,en+=V*fn,Wt+=V*wn,mt+=V*bn,St+=V*En,at+=(V=we[6])*Ye,It+=V*Ze,Nt+=V*yt,Rt+=V*wt,Gt+=V*ht,Jt+=V*ct,Ht+=V*Mt,Zt+=V*jt,Vt+=V*zt,Ut+=V*Dt,Qt+=V*tn,en+=V*an,Wt+=V*fn,mt+=V*wn,St+=V*bn,Bt+=V*En,It+=(V=we[7])*Ye,Nt+=V*Ze,Rt+=V*yt,Gt+=V*wt,Jt+=V*ht,Ht+=V*ct,Zt+=V*Mt,Vt+=V*jt,Ut+=V*zt,Qt+=V*Dt,en+=V*tn,Wt+=V*an,mt+=V*fn,St+=V*wn,Bt+=V*bn,Tt+=V*En,Nt+=(V=we[8])*Ye,Rt+=V*Ze,Gt+=V*yt,Jt+=V*wt,Ht+=V*ht,Zt+=V*ct,Vt+=V*Mt,Ut+=V*jt,Qt+=V*zt,en+=V*Dt,Wt+=V*tn,mt+=V*an,St+=V*fn,Bt+=V*wn,Tt+=V*bn,Ot+=V*En,Rt+=(V=we[9])*Ye,Gt+=V*Ze,Jt+=V*yt,Ht+=V*wt,Zt+=V*ht,Vt+=V*ct,Ut+=V*Mt,Qt+=V*jt,en+=V*zt,Wt+=V*Dt,mt+=V*tn,St+=V*an,Bt+=V*fn,Tt+=V*wn,Ot+=V*bn,kt+=V*En,Gt+=(V=we[10])*Ye,Jt+=V*Ze,Ht+=V*yt,Zt+=V*wt,Vt+=V*ht,Ut+=V*ct,Qt+=V*Mt,en+=V*jt,Wt+=V*zt,mt+=V*Dt,St+=V*tn,Bt+=V*an,Tt+=V*fn,Ot+=V*wn,kt+=V*bn,ln+=V*En,Jt+=(V=we[11])*Ye,Ht+=V*Ze,Zt+=V*yt,Vt+=V*wt,Ut+=V*ht,Qt+=V*ct,en+=V*Mt,Wt+=V*jt,mt+=V*zt,St+=V*Dt,Bt+=V*tn,Tt+=V*an,Ot+=V*fn,kt+=V*wn,ln+=V*bn,ce+=V*En,Ht+=(V=we[12])*Ye,Zt+=V*Ze,Vt+=V*yt,Ut+=V*wt,Qt+=V*ht,en+=V*ct,Wt+=V*Mt,mt+=V*jt,St+=V*zt,Bt+=V*Dt,Tt+=V*tn,Ot+=V*an,kt+=V*fn,ln+=V*wn,ce+=V*bn,Ce+=V*En,Zt+=(V=we[13])*Ye,Vt+=V*Ze,Ut+=V*yt,Qt+=V*wt,en+=V*ht,Wt+=V*ct,mt+=V*Mt,St+=V*jt,Bt+=V*zt,Tt+=V*Dt,Ot+=V*tn,kt+=V*an,ln+=V*fn,ce+=V*wn,Ce+=V*bn,Ve+=V*En,Vt+=(V=we[14])*Ye,Ut+=V*Ze,Qt+=V*yt,en+=V*wt,Wt+=V*ht,mt+=V*ct,St+=V*Mt,Bt+=V*jt,Tt+=V*zt,Ot+=V*Dt,kt+=V*tn,ln+=V*an,ce+=V*fn,Ce+=V*wn,Ve+=V*bn,Qe+=V*En,Ut+=(V=we[15])*Ye,$e+=38*(en+=V*yt),ze+=38*(Wt+=V*wt),je+=38*(mt+=V*ht),ut+=38*(St+=V*ct),nt+=38*(Bt+=V*Mt),at+=38*(Tt+=V*jt),It+=38*(Ot+=V*zt),Nt+=38*(kt+=V*Dt),Rt+=38*(ln+=V*tn),Gt+=38*(ce+=V*an),Jt+=38*(Ce+=V*fn),Ht+=38*(Ve+=V*wn),Zt+=38*(Qe+=V*bn),Vt+=38*(Je+=V*En),ke=(V=(ke+=38*(Qt+=V*Ze))+(Y=1)+65535)-65536*(Y=Math.floor(V/65536)),$e=(V=$e+Y+65535)-65536*(Y=Math.floor(V/65536)),ze=(V=ze+Y+65535)-65536*(Y=Math.floor(V/65536)),je=(V=je+Y+65535)-65536*(Y=Math.floor(V/65536)),ut=(V=ut+Y+65535)-65536*(Y=Math.floor(V/65536)),nt=(V=nt+Y+65535)-65536*(Y=Math.floor(V/65536)),at=(V=at+Y+65535)-65536*(Y=Math.floor(V/65536)),It=(V=It+Y+65535)-65536*(Y=Math.floor(V/65536)),Nt=(V=Nt+Y+65535)-65536*(Y=Math.floor(V/65536)),Rt=(V=Rt+Y+65535)-65536*(Y=Math.floor(V/65536)),Gt=(V=Gt+Y+65535)-65536*(Y=Math.floor(V/65536)),Jt=(V=Jt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ht=(V=Ht+Y+65535)-65536*(Y=Math.floor(V/65536)),Zt=(V=Zt+Y+65535)-65536*(Y=Math.floor(V/65536)),Vt=(V=Vt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ut=(V=Ut+Y+65535)-65536*(Y=Math.floor(V/65536)),ke=(V=(ke+=Y-1+37*(Y-1))+(Y=1)+65535)-65536*(Y=Math.floor(V/65536)),$e=(V=$e+Y+65535)-65536*(Y=Math.floor(V/65536)),ze=(V=ze+Y+65535)-65536*(Y=Math.floor(V/65536)),je=(V=je+Y+65535)-65536*(Y=Math.floor(V/65536)),ut=(V=ut+Y+65535)-65536*(Y=Math.floor(V/65536)),nt=(V=nt+Y+65535)-65536*(Y=Math.floor(V/65536)),at=(V=at+Y+65535)-65536*(Y=Math.floor(V/65536)),It=(V=It+Y+65535)-65536*(Y=Math.floor(V/65536)),Nt=(V=Nt+Y+65535)-65536*(Y=Math.floor(V/65536)),Rt=(V=Rt+Y+65535)-65536*(Y=Math.floor(V/65536)),Gt=(V=Gt+Y+65535)-65536*(Y=Math.floor(V/65536)),Jt=(V=Jt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ht=(V=Ht+Y+65535)-65536*(Y=Math.floor(V/65536)),Zt=(V=Zt+Y+65535)-65536*(Y=Math.floor(V/65536)),Vt=(V=Vt+Y+65535)-65536*(Y=Math.floor(V/65536)),Ut=(V=Ut+Y+65535)-65536*(Y=Math.floor(V/65536)),ke+=Y-1+37*(Y-1),me[0]=ke,me[1]=$e,me[2]=ze,me[3]=je,me[4]=ut,me[5]=nt,me[6]=at,me[7]=It,me[8]=Nt,me[9]=Rt,me[10]=Gt,me[11]=Jt,me[12]=Ht,me[13]=Zt,me[14]=Vt,me[15]=Ut}function he(me,we){ve(me,we,we)}function le(me,we){var xe,V=s();for(xe=0;xe<16;xe++)V[xe]=we[xe];for(xe=253;xe>=0;xe--)he(V,V),xe!==2&&xe!==4&&ve(V,V,we);for(xe=0;xe<16;xe++)me[xe]=V[xe]}function ge(me,we){var xe,V=s();for(xe=0;xe<16;xe++)V[xe]=we[xe];for(xe=250;xe>=0;xe--)he(V,V),xe!==1&&ve(V,V,we);for(xe=0;xe<16;xe++)me[xe]=V[xe]}function Ne(me,we,xe){var V,Y,ke=new Uint8Array(32),$e=new Float64Array(80),ze=s(),je=s(),ut=s(),nt=s(),at=s(),It=s();for(Y=0;Y<31;Y++)ke[Y]=we[Y];for(ke[31]=127&we[31]|64,ke[0]&=248,X($e,xe),Y=0;Y<16;Y++)je[Y]=$e[Y],nt[Y]=ze[Y]=ut[Y]=0;for(ze[0]=nt[0]=1,Y=254;Y>=0;--Y)O(ze,je,V=ke[Y>>>3]>>>(7&Y)&1),O(ut,nt,V),be(at,ze,ut),Be(ze,ze,ut),be(ut,je,nt),Be(je,je,nt),he(nt,at),he(It,ze),ve(ze,ut,ze),ve(ut,je,at),be(at,ze,ut),Be(ze,ze,ut),he(je,ze),Be(ut,nt,It),ve(ze,ut,b),be(ze,ze,nt),ve(ut,ut,ze),ve(ze,nt,It),ve(nt,je,$e),he(je,at),O(ze,je,V),O(ut,nt,V);for(Y=0;Y<16;Y++)$e[Y+16]=ze[Y],$e[Y+32]=ut[Y],$e[Y+48]=je[Y],$e[Y+64]=nt[Y];var Nt=$e.subarray(32),Rt=$e.subarray(16);return le(Nt,Nt),ve(Rt,Rt,Nt),z(me,Rt),0}function Ue(me,we){return Ne(me,we,c)}function Le(me,we){return o(we,32),Ue(me,we)}function De(me,we,xe){var V=new Uint8Array(32);return Ne(V,xe,we),T(me,e,V,R)}U.prototype.blocks=function(me,we,xe){for(var V,Y,ke,$e,ze,je,ut,nt,at,It,Nt,Rt,Gt,Jt,Ht,Zt,Vt,Ut,Qt,en=this.fin?0:2048,Wt=this.h[0],mt=this.h[1],St=this.h[2],Bt=this.h[3],Tt=this.h[4],Ot=this.h[5],kt=this.h[6],ln=this.h[7],ce=this.h[8],Ce=this.h[9],Ve=this.r[0],Qe=this.r[1],Je=this.r[2],Ye=this.r[3],Ze=this.r[4],yt=this.r[5],wt=this.r[6],ht=this.r[7],ct=this.r[8],Mt=this.r[9];xe>=16;)It=at=0,It+=(Wt+=8191&(V=255&me[we+0]|(255&me[we+1])<<8))*Ve,It+=(mt+=8191&(V>>>13|(Y=255&me[we+2]|(255&me[we+3])<<8)<<3))*(5*Mt),It+=(St+=8191&(Y>>>10|(ke=255&me[we+4]|(255&me[we+5])<<8)<<6))*(5*ct),It+=(Bt+=8191&(ke>>>7|($e=255&me[we+6]|(255&me[we+7])<<8)<<9))*(5*ht),at=(It+=(Tt+=8191&($e>>>4|(ze=255&me[we+8]|(255&me[we+9])<<8)<<12))*(5*wt))>>>13,It&=8191,It+=(Ot+=ze>>>1&8191)*(5*yt),It+=(kt+=8191&(ze>>>14|(je=255&me[we+10]|(255&me[we+11])<<8)<<2))*(5*Ze),It+=(ln+=8191&(je>>>11|(ut=255&me[we+12]|(255&me[we+13])<<8)<<5))*(5*Ye),It+=(ce+=8191&(ut>>>8|(nt=255&me[we+14]|(255&me[we+15])<<8)<<8))*(5*Je),Nt=at+=(It+=(Ce+=nt>>>5|en)*(5*Qe))>>>13,Nt+=Wt*Qe,Nt+=mt*Ve,Nt+=St*(5*Mt),Nt+=Bt*(5*ct),at=(Nt+=Tt*(5*ht))>>>13,Nt&=8191,Nt+=Ot*(5*wt),Nt+=kt*(5*yt),Nt+=ln*(5*Ze),Nt+=ce*(5*Ye),at+=(Nt+=Ce*(5*Je))>>>13,Nt&=8191,Rt=at,Rt+=Wt*Je,Rt+=mt*Qe,Rt+=St*Ve,Rt+=Bt*(5*Mt),at=(Rt+=Tt*(5*ct))>>>13,Rt&=8191,Rt+=Ot*(5*ht),Rt+=kt*(5*wt),Rt+=ln*(5*yt),Rt+=ce*(5*Ze),Gt=at+=(Rt+=Ce*(5*Ye))>>>13,Gt+=Wt*Ye,Gt+=mt*Je,Gt+=St*Qe,Gt+=Bt*Ve,at=(Gt+=Tt*(5*Mt))>>>13,Gt&=8191,Gt+=Ot*(5*ct),Gt+=kt*(5*ht),Gt+=ln*(5*wt),Gt+=ce*(5*yt),Jt=at+=(Gt+=Ce*(5*Ze))>>>13,Jt+=Wt*Ze,Jt+=mt*Ye,Jt+=St*Je,Jt+=Bt*Qe,at=(Jt+=Tt*Ve)>>>13,Jt&=8191,Jt+=Ot*(5*Mt),Jt+=kt*(5*ct),Jt+=ln*(5*ht),Jt+=ce*(5*wt),Ht=at+=(Jt+=Ce*(5*yt))>>>13,Ht+=Wt*yt,Ht+=mt*Ze,Ht+=St*Ye,Ht+=Bt*Je,at=(Ht+=Tt*Qe)>>>13,Ht&=8191,Ht+=Ot*Ve,Ht+=kt*(5*Mt),Ht+=ln*(5*ct),Ht+=ce*(5*ht),Zt=at+=(Ht+=Ce*(5*wt))>>>13,Zt+=Wt*wt,Zt+=mt*yt,Zt+=St*Ze,Zt+=Bt*Ye,at=(Zt+=Tt*Je)>>>13,Zt&=8191,Zt+=Ot*Qe,Zt+=kt*Ve,Zt+=ln*(5*Mt),Zt+=ce*(5*ct),Vt=at+=(Zt+=Ce*(5*ht))>>>13,Vt+=Wt*ht,Vt+=mt*wt,Vt+=St*yt,Vt+=Bt*Ze,at=(Vt+=Tt*Ye)>>>13,Vt&=8191,Vt+=Ot*Je,Vt+=kt*Qe,Vt+=ln*Ve,Vt+=ce*(5*Mt),Ut=at+=(Vt+=Ce*(5*ct))>>>13,Ut+=Wt*ct,Ut+=mt*ht,Ut+=St*wt,Ut+=Bt*yt,at=(Ut+=Tt*Ze)>>>13,Ut&=8191,Ut+=Ot*Ye,Ut+=kt*Je,Ut+=ln*Qe,Ut+=ce*Ve,Qt=at+=(Ut+=Ce*(5*Mt))>>>13,Qt+=Wt*Mt,Qt+=mt*ct,Qt+=St*ht,Qt+=Bt*wt,at=(Qt+=Tt*yt)>>>13,Qt&=8191,Qt+=Ot*Ze,Qt+=kt*Ye,Qt+=ln*Je,Qt+=ce*Qe,Wt=It=8191&(at=(at=((at+=(Qt+=Ce*Ve)>>>13)<<2)+at|0)+(It&=8191)|0),mt=Nt+=at>>>=13,St=Rt&=8191,Bt=Gt&=8191,Tt=Jt&=8191,Ot=Ht&=8191,kt=Zt&=8191,ln=Vt&=8191,ce=Ut&=8191,Ce=Qt&=8191,we+=16,xe-=16;this.h[0]=Wt,this.h[1]=mt,this.h[2]=St,this.h[3]=Bt,this.h[4]=Tt,this.h[5]=Ot,this.h[6]=kt,this.h[7]=ln,this.h[8]=ce,this.h[9]=Ce},U.prototype.finish=function(me,we){var xe,V,Y,ke,$e=new Uint16Array(10);if(this.leftover){for(ke=this.leftover,this.buffer[ke++]=1;ke<16;ke++)this.buffer[ke]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(xe=this.h[1]>>>13,this.h[1]&=8191,ke=2;ke<10;ke++)this.h[ke]+=xe,xe=this.h[ke]>>>13,this.h[ke]&=8191;for(this.h[0]+=5*xe,xe=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=xe,xe=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=xe,$e[0]=this.h[0]+5,xe=$e[0]>>>13,$e[0]&=8191,ke=1;ke<10;ke++)$e[ke]=this.h[ke]+xe,xe=$e[ke]>>>13,$e[ke]&=8191;for($e[9]-=8192,V=(1^xe)-1,ke=0;ke<10;ke++)$e[ke]&=V;for(V=~V,ke=0;ke<10;ke++)this.h[ke]=this.h[ke]&V|$e[ke];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),Y=this.h[0]+this.pad[0],this.h[0]=65535&Y,ke=1;ke<8;ke++)Y=(this.h[ke]+this.pad[ke]|0)+(Y>>>16)|0,this.h[ke]=65535&Y;me[we+0]=this.h[0]>>>0&255,me[we+1]=this.h[0]>>>8&255,me[we+2]=this.h[1]>>>0&255,me[we+3]=this.h[1]>>>8&255,me[we+4]=this.h[2]>>>0&255,me[we+5]=this.h[2]>>>8&255,me[we+6]=this.h[3]>>>0&255,me[we+7]=this.h[3]>>>8&255,me[we+8]=this.h[4]>>>0&255,me[we+9]=this.h[4]>>>8&255,me[we+10]=this.h[5]>>>0&255,me[we+11]=this.h[5]>>>8&255,me[we+12]=this.h[6]>>>0&255,me[we+13]=this.h[6]>>>8&255,me[we+14]=this.h[7]>>>0&255,me[we+15]=this.h[7]>>>8&255},U.prototype.update=function(me,we,xe){var V,Y;if(this.leftover){for((Y=16-this.leftover)>xe&&(Y=xe),V=0;V=16&&(Y=xe-xe%16,this.blocks(me,we,Y),we+=Y,xe-=Y),xe){for(V=0;V=128;){for(en=0;en<16;en++)Wt=8*en+fn,ln[en]=xe[Wt+0]<<24|xe[Wt+1]<<16|xe[Wt+2]<<8|xe[Wt+3],ce[en]=xe[Wt+4]<<24|xe[Wt+5]<<16|xe[Wt+6]<<8|xe[Wt+7];for(en=0;en<80;en++)if(Y=Ce,ke=Ve,$e=Qe,ze=Je,je=Ye,ut=Ze,nt=yt,It=ht,Nt=ct,Rt=Mt,Gt=jt,Jt=zt,Ht=Dt,Zt=tn,Bt=65535&(St=an),Tt=St>>>16,Ot=65535&(mt=wt),kt=mt>>>16,Bt+=65535&(St=(zt>>>14|Ye<<18)^(zt>>>18|Ye<<14)^(Ye>>>9|zt<<23)),Tt+=St>>>16,Ot+=65535&(mt=(Ye>>>14|zt<<18)^(Ye>>>18|zt<<14)^(zt>>>9|Ye<<23)),kt+=mt>>>16,Bt+=65535&(St=zt&Dt^~zt&tn),Tt+=St>>>16,Ot+=65535&(mt=Ye&Ze^~Ye&yt),kt+=mt>>>16,mt=We[2*en],Bt+=65535&(St=We[2*en+1]),Tt+=St>>>16,Ot+=65535&mt,kt+=mt>>>16,mt=ln[en%16],Tt+=(St=ce[en%16])>>>16,Ot+=65535&mt,kt+=mt>>>16,Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16,Bt=65535&(St=Qt=65535&Bt|Tt<<16),Tt=St>>>16,Ot=65535&(mt=Ut=65535&Ot|(kt+=Ot>>>16)<<16),kt=mt>>>16,Bt+=65535&(St=(ht>>>28|Ce<<4)^(Ce>>>2|ht<<30)^(Ce>>>7|ht<<25)),Tt+=St>>>16,Ot+=65535&(mt=(Ce>>>28|ht<<4)^(ht>>>2|Ce<<30)^(ht>>>7|Ce<<25)),kt+=mt>>>16,Tt+=(St=ht&ct^ht&Mt^ct&Mt)>>>16,Ot+=65535&(mt=Ce&Ve^Ce&Qe^Ve&Qe),kt+=mt>>>16,at=65535&(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)|(kt+=Ot>>>16)<<16,Vt=65535&Bt|Tt<<16,Bt=65535&(St=Gt),Tt=St>>>16,Ot=65535&(mt=ze),kt=mt>>>16,Tt+=(St=Qt)>>>16,Ot+=65535&(mt=Ut),kt+=mt>>>16,Ve=Y,Qe=ke,Je=$e,Ye=ze=65535&(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)|(kt+=Ot>>>16)<<16,Ze=je,yt=ut,wt=nt,Ce=at,ct=It,Mt=Nt,jt=Rt,zt=Gt=65535&Bt|Tt<<16,Dt=Jt,tn=Ht,an=Zt,ht=Vt,en%16==15)for(Wt=0;Wt<16;Wt++)mt=ln[Wt],Bt=65535&(St=ce[Wt]),Tt=St>>>16,Ot=65535&mt,kt=mt>>>16,mt=ln[(Wt+9)%16],Bt+=65535&(St=ce[(Wt+9)%16]),Tt+=St>>>16,Ot+=65535&mt,kt+=mt>>>16,Ut=ln[(Wt+1)%16],Bt+=65535&(St=((Qt=ce[(Wt+1)%16])>>>1|Ut<<31)^(Qt>>>8|Ut<<24)^(Qt>>>7|Ut<<25)),Tt+=St>>>16,Ot+=65535&(mt=(Ut>>>1|Qt<<31)^(Ut>>>8|Qt<<24)^Ut>>>7),kt+=mt>>>16,Ut=ln[(Wt+14)%16],Tt+=(St=((Qt=ce[(Wt+14)%16])>>>19|Ut<<13)^(Ut>>>29|Qt<<3)^(Qt>>>6|Ut<<26))>>>16,Ot+=65535&(mt=(Ut>>>19|Qt<<13)^(Qt>>>29|Ut<<3)^Ut>>>6),kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,ln[Wt]=65535&Ot|kt<<16,ce[Wt]=65535&Bt|Tt<<16;Bt=65535&(St=ht),Tt=St>>>16,Ot=65535&(mt=Ce),kt=mt>>>16,mt=me[0],Tt+=(St=we[0])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[0]=Ce=65535&Ot|kt<<16,we[0]=ht=65535&Bt|Tt<<16,Bt=65535&(St=ct),Tt=St>>>16,Ot=65535&(mt=Ve),kt=mt>>>16,mt=me[1],Tt+=(St=we[1])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[1]=Ve=65535&Ot|kt<<16,we[1]=ct=65535&Bt|Tt<<16,Bt=65535&(St=Mt),Tt=St>>>16,Ot=65535&(mt=Qe),kt=mt>>>16,mt=me[2],Tt+=(St=we[2])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[2]=Qe=65535&Ot|kt<<16,we[2]=Mt=65535&Bt|Tt<<16,Bt=65535&(St=jt),Tt=St>>>16,Ot=65535&(mt=Je),kt=mt>>>16,mt=me[3],Tt+=(St=we[3])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[3]=Je=65535&Ot|kt<<16,we[3]=jt=65535&Bt|Tt<<16,Bt=65535&(St=zt),Tt=St>>>16,Ot=65535&(mt=Ye),kt=mt>>>16,mt=me[4],Tt+=(St=we[4])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[4]=Ye=65535&Ot|kt<<16,we[4]=zt=65535&Bt|Tt<<16,Bt=65535&(St=Dt),Tt=St>>>16,Ot=65535&(mt=Ze),kt=mt>>>16,mt=me[5],Tt+=(St=we[5])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[5]=Ze=65535&Ot|kt<<16,we[5]=Dt=65535&Bt|Tt<<16,Bt=65535&(St=tn),Tt=St>>>16,Ot=65535&(mt=yt),kt=mt>>>16,mt=me[6],Tt+=(St=we[6])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[6]=yt=65535&Ot|kt<<16,we[6]=tn=65535&Bt|Tt<<16,Bt=65535&(St=an),Tt=St>>>16,Ot=65535&(mt=wt),kt=mt>>>16,mt=me[7],Tt+=(St=we[7])>>>16,Ot+=65535&mt,kt+=mt>>>16,kt+=(Ot+=(Tt+=(Bt+=65535&St)>>>16)>>>16)>>>16,me[7]=wt=65535&Ot|kt<<16,we[7]=an=65535&Bt|Tt<<16,fn+=128,V-=128}return V}function Ke(me,we,xe){var V,Y=new Int32Array(8),ke=new Int32Array(8),$e=new Uint8Array(256),ze=xe;for(Y[0]=1779033703,Y[1]=3144134277,Y[2]=1013904242,Y[3]=2773480762,Y[4]=1359893119,Y[5]=2600822924,Y[6]=528734635,Y[7]=1541459225,ke[0]=4089235720,ke[1]=2227873595,ke[2]=4271175723,ke[3]=1595750129,ke[4]=2917565137,ke[5]=725511199,ke[6]=4215389547,ke[7]=327033209,ot(Y,ke,we,xe),xe%=128,V=0;V=0;--Y)H(me,we,V=xe[Y/8|0]>>(7&Y)&1),B(we,me),B(me,me),H(me,we,V)}function ue(me,we){var xe=[s(),s(),s(),s()];P(xe[0],d),P(xe[1],w),P(xe[2],h),ve(xe[3],d,w),J(me,xe,we)}function F(me,we,xe){var V,Y=new Uint8Array(64),ke=[s(),s(),s(),s()];for(xe||o(we,32),Ke(Y,we,32),Y[0]&=248,Y[31]&=127,Y[31]|=64,ue(ke,Y),M(me,ke),V=0;V<32;V++)we[V+32]=me[V];return 0}var N=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function q(me,we){var xe,V,Y,ke;for(V=63;V>=32;--V){for(xe=0,Y=V-32,ke=V-12;Y>4)*N[Y],xe=we[Y]>>8,we[Y]&=255;for(Y=0;Y<32;Y++)we[Y]-=xe*N[Y];for(V=0;V<32;V++)we[V+1]+=we[V]>>8,me[V]=255&we[V]}function I(me){var we,xe=new Float64Array(64);for(we=0;we<64;we++)xe[we]=me[we];for(we=0;we<64;we++)me[we]=0;q(me,xe)}function K(me,we,xe,V){var Y,ke,$e=new Uint8Array(64),ze=new Uint8Array(64),je=new Uint8Array(64),ut=new Float64Array(64),nt=[s(),s(),s(),s()];Ke($e,V,32),$e[0]&=248,$e[31]&=127,$e[31]|=64;var at=xe+64;for(Y=0;Y>7&&Be(ut[0],u,ut[0]),ve(ut[3],ut[0],ut[1]),0)}(je,V))return-1;for(Y=0;Y=0},t.sign.keyPair=function(){var me=new Uint8Array(rt),we=new Uint8Array(lt);return F(me,we),{publicKey:me,secretKey:we}},t.sign.keyPair.fromSecretKey=function(me){if(_t(me),me.length!==lt)throw new Error("bad secret key size");for(var we=new Uint8Array(rt),xe=0;xe{i.r(a),i.d(a,{StellarBase:()=>o,axios:()=>e.Z,default:()=>c});var t=i(8026),s={};for(const u in t)["default","StellarBase","axios"].indexOf(u)<0&&(s[u]=()=>t[u]);i.d(a,s);var o=i(4172),e=i(1257);const c=(f=i.hmd(f)).exports},7939:(f,a,i)=>{function t(h){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}function s(h,b){for(var m=0;mu});var e={allowHttp:!1,timeout:0},c=Object.assign({},e),u=function(){function h(){(function(d,w){if(!(d instanceof w))throw new TypeError("Cannot call a class as a function")})(this,h)}var b,m,k;return b=h,k=[{key:"setAllowHttp",value:function(d){c.allowHttp=d}},{key:"setTimeout",value:function(d){c.timeout=d}},{key:"isAllowHttp",value:function(){return c.allowHttp}},{key:"getTimeout",value:function(){return c.timeout}},{key:"setDefault",value:function(){c=Object.assign({},e)}}],(m=null)&&s(b.prototype,m),k&&s(b,k),Object.defineProperty(b,"prototype",{writable:!1}),h}()},936:(f,a,i)=>{i.d(a,{o:()=>y});var t=i(8026),s=i(8764).Buffer;function o(j,L){var Q=Object.keys(j);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(j);L&&(U=U.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),Q.push.apply(Q,U)}return Q}function e(j){for(var L=1;L=j.length?{done:!0}:{done:!1,value:j[U++]}},e:function(P){throw P},f:Z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se,te=!0,$=!1;return{s:function(){Q=Q.call(j)},n:function(){var P=Q.next();return te=P.done,P},e:function(P){$=!0,se=P},f:function(){try{te||Q.return==null||Q.return()}finally{if($)throw se}}}}function u(j){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},u(j)}function h(j,L){for(var Q=0;Qj.length)&&(L=j.length);for(var Q=0,U=new Array(L);Q1)throw new Error("Multiple outputs not supported");var P=te[0];return P.switch().value===t.xdr.ScSpecType.scSpecTypeResult().value?this.scValToNative(se,P.result().okType()):this.scValToNative(se,P)}},{key:"findEntry",value:function(U){var Z=this.entries.find(function(se){return se.value().name().toString()===U});if(!Z)throw new Error("no such entry: ".concat(U));return Z}},{key:"nativeToScVal",value:function(U,Z){var se=this,te=Z.switch(),$=te.value;if(te.value===t.xdr.ScSpecType.scSpecTypeUdt().value){var P=Z.udt();return this.nativeToUdt(U,P.name().toString())}if($===t.xdr.ScSpecType.scSpecTypeOption().value){var A=Z.option();return U===void 0?t.xdr.ScVal.scvVoid():this.nativeToScVal(U,A.valueType())}switch(u(U)){case"object":var O,z,G;if(U===null){if($===t.xdr.ScSpecType.scSpecTypeVoid().value)return t.xdr.ScVal.scvVoid();throw new TypeError("Type ".concat(Z," was not void, but value was null"))}if(U instanceof t.xdr.ScVal)return U;if(U instanceof t.Address){if(Z.switch().value!==t.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(Z," was not address, but value was Address"));return U.toScVal()}if(U instanceof t.Contract){if(Z.switch().value!==t.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(Z," was not address, but value was Address"));return U.address().toScVal()}if(U instanceof Uint8Array||s.isBuffer(U)){var re=Uint8Array.from(U);switch($){case t.xdr.ScSpecType.scSpecTypeBytesN().value:var X=Z.bytesN();if(re.length!==X.n())throw new TypeError("expected ".concat(X.n()," bytes, but got ").concat(re.length));return t.xdr.ScVal.scvBytes(re);case t.xdr.ScSpecType.scSpecTypeBytes().value:return t.xdr.ScVal.scvBytes(re);default:throw new TypeError("invalid type (".concat(Z,") specified for Bytes and BytesN"))}}if(Array.isArray(U))switch($){case t.xdr.ScSpecType.scSpecTypeVec().value:var be=Z.vec().elementType();return t.xdr.ScVal.scvVec(U.map(function(B){return se.nativeToScVal(B,be)}));case t.xdr.ScSpecType.scSpecTypeTuple().value:var Be=Z.tuple().valueTypes();if(U.length!==Be.length)throw new TypeError("Tuple expects ".concat(Be.length," values, but ").concat(U.length," were provided"));return t.xdr.ScVal.scvVec(U.map(function(B,H){return se.nativeToScVal(B,Be[H])}));case t.xdr.ScSpecType.scSpecTypeMap().value:var ve=Z.map(),he=ve.keyType(),le=ve.valueType();return t.xdr.ScVal.scvMap(U.map(function(B){var H=se.nativeToScVal(B[0],he),M=se.nativeToScVal(B[1],le);return new t.xdr.ScMapEntry({key:H,val:M})}));default:throw new TypeError("Type ".concat(Z," was not vec, but value was Array"))}if(U.constructor===Map){if($!==t.xdr.ScSpecType.scSpecTypeMap().value)throw new TypeError("Type ".concat(Z," was not map, but value was Map"));for(var ge=Z.map(),Ne=[],Ue=U.entries(),Le=Ue.next();!Le.done;){var De=k(Le.value,2),Fe=De[0],Oe=De[1],We=this.nativeToScVal(Fe,ge.keyType()),ot=this.nativeToScVal(Oe,ge.valueType());Ne.push(new t.xdr.ScMapEntry({key:We,val:ot})),Le=Ue.next()}return t.xdr.ScVal.scvMap(Ne)}throw((O=(z=U.constructor)===null||z===void 0?void 0:z.name)!==null&&O!==void 0?O:"")!=="Object"?new TypeError("cannot interpret ".concat((G=U.constructor)===null||G===void 0?void 0:G.name," value as ScVal (").concat(JSON.stringify(U),")")):new TypeError("Received object ".concat(U," did not match the provided type ").concat(Z));case"number":case"bigint":switch($){case t.xdr.ScSpecType.scSpecTypeU32().value:return t.xdr.ScVal.scvU32(U);case t.xdr.ScSpecType.scSpecTypeI32().value:return t.xdr.ScVal.scvI32(U);case t.xdr.ScSpecType.scSpecTypeU64().value:case t.xdr.ScSpecType.scSpecTypeI64().value:case t.xdr.ScSpecType.scSpecTypeU128().value:case t.xdr.ScSpecType.scSpecTypeI128().value:case t.xdr.ScSpecType.scSpecTypeU256().value:case t.xdr.ScSpecType.scSpecTypeI256().value:var Ke=te.name.substring(10).toLowerCase();return new t.XdrLargeInt(Ke,U).toScVal();default:throw new TypeError("invalid type (".concat(Z,") specified for integer"))}case"string":return function(B,H){switch(H.value){case t.xdr.ScSpecType.scSpecTypeString().value:return t.xdr.ScVal.scvString(B);case t.xdr.ScSpecType.scSpecTypeSymbol().value:return t.xdr.ScVal.scvSymbol(B);case t.xdr.ScSpecType.scSpecTypeAddress().value:var M=t.Address.fromString(B);return t.xdr.ScVal.scvAddress(M.toScAddress());case t.xdr.ScSpecType.scSpecTypeU64().value:return new t.XdrLargeInt("u64",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI64().value:return new t.XdrLargeInt("i64",B).toScVal();case t.xdr.ScSpecType.scSpecTypeU128().value:return new t.XdrLargeInt("u128",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI128().value:return new t.XdrLargeInt("i128",B).toScVal();case t.xdr.ScSpecType.scSpecTypeU256().value:return new t.XdrLargeInt("u256",B).toScVal();case t.xdr.ScSpecType.scSpecTypeI256().value:return new t.XdrLargeInt("i256",B).toScVal();case t.xdr.ScSpecType.scSpecTypeBytes().value:case t.xdr.ScSpecType.scSpecTypeBytesN().value:return t.xdr.ScVal.scvBytes(s.from(B,"base64"));default:throw new TypeError("invalid type ".concat(H.name," specified for string value"))}}(U,te);case"boolean":if($!==t.xdr.ScSpecType.scSpecTypeBool().value)throw TypeError("Type ".concat(Z," was not bool, but value was bool"));return t.xdr.ScVal.scvBool(U);case"undefined":if(!Z)return t.xdr.ScVal.scvVoid();switch($){case t.xdr.ScSpecType.scSpecTypeVoid().value:case t.xdr.ScSpecType.scSpecTypeOption().value:return t.xdr.ScVal.scvVoid();default:throw new TypeError("Type ".concat(Z," was not void, but value was undefined"))}case"function":return this.nativeToScVal(U(),Z);default:throw new TypeError("failed to convert typeof ".concat(u(U)," (").concat(U,")"))}}},{key:"nativeToUdt",value:function(U,Z){var se=this.findEntry(Z);switch(se.switch()){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():if(typeof U!="number")throw new TypeError("expected number for enum ".concat(Z,", but got ").concat(u(U)));return this.nativeToEnum(U,se.udtEnumV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.nativeToStruct(U,se.udtStructV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.nativeToUnion(U,se.udtUnionV0());default:throw new Error("failed to parse udt ".concat(Z))}}},{key:"nativeToUnion",value:function(U,Z){var se=this,te=U.tag,$=Z.cases().find(function(z){return z.value().name().toString()===te});if(!$)throw new TypeError("no such enum entry: ".concat(te," in ").concat(Z));var P=t.xdr.ScVal.scvSymbol(te);switch($.switch()){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0():return t.xdr.ScVal.scvVec([P]);case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0():var A=$.tupleCase().type();if(Array.isArray(U.values)){if(U.values.length!=A.length)throw new TypeError("union ".concat(Z," expects ").concat(A.length," values, but got ").concat(U.values.length));var O=U.values.map(function(z,G){return se.nativeToScVal(z,A[G])});return O.unshift(P),t.xdr.ScVal.scvVec(O)}throw new Error("failed to parse union case ".concat($," with ").concat(U));default:throw new Error("failed to parse union ".concat(Z," with ").concat(U))}}},{key:"nativeToStruct",value:function(U,Z){var se=this,te=Z.fields();if(te.some(_)){if(!te.every(_))throw new Error("mixed numeric and non-numeric field names are not allowed");return t.xdr.ScVal.scvVec(te.map(function($,P){return se.nativeToScVal(U[P],te[P].type())}))}return t.xdr.ScVal.scvMap(te.map(function($){var P=$.name().toString();return new t.xdr.ScMapEntry({key:se.nativeToScVal(P,t.xdr.ScSpecTypeDef.scSpecTypeSymbol()),val:se.nativeToScVal(U[P],$.type())})}))}},{key:"nativeToEnum",value:function(U,Z){if(Z.cases().some(function(se){return se.value()===U}))return t.xdr.ScVal.scvU32(U);throw new TypeError("no such enum entry: ".concat(U," in ").concat(Z))}},{key:"scValStrToNative",value:function(U,Z){return this.scValToNative(t.xdr.ScVal.fromXDR(U,"base64"),Z)}},{key:"scValToNative",value:function(U,Z){var se=this,te=Z.switch(),$=te.value;if($===t.xdr.ScSpecType.scSpecTypeUdt().value)return this.scValUdtToNative(U,Z.udt());switch(U.switch().value){case t.xdr.ScValType.scvVoid().value:return;case t.xdr.ScValType.scvU64().value:case t.xdr.ScValType.scvI64().value:case t.xdr.ScValType.scvU128().value:case t.xdr.ScValType.scvI128().value:case t.xdr.ScValType.scvU256().value:case t.xdr.ScValType.scvI256().value:return(0,t.scValToBigInt)(U);case t.xdr.ScValType.scvVec().value:if($==t.xdr.ScSpecType.scSpecTypeVec().value){var P,A=Z.vec();return((P=U.vec())!==null&&P!==void 0?P:[]).map(function(he){return se.scValToNative(he,A.elementType())})}if($==t.xdr.ScSpecType.scSpecTypeTuple().value){var O,z=Z.tuple().valueTypes();return((O=U.vec())!==null&&O!==void 0?O:[]).map(function(he,le){return se.scValToNative(he,z[le])})}throw new TypeError("Type ".concat(Z," was not vec, but ").concat(U," is"));case t.xdr.ScValType.scvAddress().value:return t.Address.fromScVal(U).toString();case t.xdr.ScValType.scvMap().value:var G,re=(G=U.map())!==null&&G!==void 0?G:[];if($==t.xdr.ScSpecType.scSpecTypeMap().value){var X=Z.map(),be=X.keyType(),Be=X.valueType();return re.map(function(he){return[se.scValToNative(he.key(),be),se.scValToNative(he.val(),Be)]})}throw new TypeError("ScSpecType ".concat(te.name," was not map, but ").concat(JSON.stringify(U,null,2)," is"));case t.xdr.ScValType.scvBool().value:case t.xdr.ScValType.scvU32().value:case t.xdr.ScValType.scvI32().value:case t.xdr.ScValType.scvBytes().value:return U.value();case t.xdr.ScValType.scvString().value:case t.xdr.ScValType.scvSymbol().value:var ve;if($!==t.xdr.ScSpecType.scSpecTypeString().value&&$!==t.xdr.ScSpecType.scSpecTypeSymbol().value)throw new Error("ScSpecType ".concat(te.name," was not string or symbol, but ").concat(JSON.stringify(U,null,2)," is"));return(ve=U.value())===null||ve===void 0?void 0:ve.toString();case t.xdr.ScValType.scvTimepoint().value:case t.xdr.ScValType.scvDuration().value:return(0,t.scValToBigInt)(t.xdr.ScVal.scvU64(U.u64()));default:throw new TypeError("failed to convert ".concat(JSON.stringify(U,null,2)," to native type from type ").concat(te.name))}}},{key:"scValUdtToNative",value:function(U,Z){var se=this.findEntry(Z.name().toString());switch(se.switch()){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():return this.enumToNative(U);case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.structToNative(U,se.udtStructV0());case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.unionToNative(U,se.udtUnionV0());default:throw new Error("failed to parse udt ".concat(Z.name().toString(),": ").concat(se))}}},{key:"unionToNative",value:function(U,Z){var se=this,te=U.vec();if(!te)throw new Error("".concat(JSON.stringify(U,null,2)," is not a vec"));if(te.length===0&&Z.cases.length!==0)throw new Error("".concat(U," has length 0, but the there are at least one case in the union"));var $=te[0].sym().toString();if(te[0].switch().value!=t.xdr.ScValType.scvSymbol().value)throw new Error("{vec[0]} is not a symbol");var P=Z.cases().find(function(z){return function(G){switch(G.switch().value){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:return G.tupleCase().name().toString()===z;case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:return G.voidCase().name().toString()===z;default:return!1}}}($));if(!P)throw new Error("failed to find entry ".concat($," in union {udt.name().toString()}"));var A={tag:$};if(P.switch().value===t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value){var O=P.tupleCase().type().map(function(z,G){return se.scValToNative(te[G+1],z)});A.values=O}return A}},{key:"structToNative",value:function(U,Z){var se,te,$=this,P={},A=Z.fields();return A.some(_)?(te=U.vec())===null||te===void 0?void 0:te.map(function(O,z){return $.scValToNative(O,A[z].type())}):((se=U.map())===null||se===void 0||se.forEach(function(O,z){var G=A[z];P[G.name().toString()]=$.scValToNative(O.val(),G.type())}),P)}},{key:"enumToNative",value:function(U){if(U.switch().value!==t.xdr.ScValType.scvU32().value)throw new Error("Enum must have a u32 value");return U.u32()}},{key:"jsonSchema",value:function(U){var Z,se={},te=c(this.entries);try{for(te.s();!(Z=te.n()).done;){var $=Z.value;switch($.switch().value){case t.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0().value:var P=$.udtEnumV0();se[P.name().toString()]=W(P);break;case t.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0().value:var A=$.udtStructV0();se[A.name().toString()]=S(A);break;case t.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0().value:var O=$.udtUnionV0();se[O.name().toString()]=R(O);break;case t.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value:var z=$.functionV0(),G=z.name().toString(),re=T(z).input;se[G]=re;case t.xdr.ScSpecEntryKind.scSpecEntryUdtErrorEnumV0().value:}}}catch(be){te.e(be)}finally{te.f()}var X={$schema:"http://json-schema.org/draft-07/schema#",definitions:e(e({},x),se)};return U&&(X.$ref="#/definitions/".concat(U)),X}}])&&h(L.prototype,Q),Object.defineProperty(L,"prototype",{writable:!1}),j}();function _(j){return/^\d+$/.test(j.name().toString())}var x={U32:{type:"integer",minimum:0,maximum:4294967295},I32:{type:"integer",minimum:-2147483648,maximum:2147483647},U64:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:20},I64:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:21},U128:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:39},I128:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:40},U256:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:78},I256:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:79},Address:{type:"string",format:"address",description:"Address can be a public key or contract id"},ScString:{type:"string",description:"ScString is a string"},ScSymbol:{type:"string",description:"ScString is a string"},DataUrl:{type:"string",pattern:"^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$"}};function E(j){var L;switch(j.switch().value){case t.xdr.ScSpecType.scSpecTypeVal().value:L="Val";break;case t.xdr.ScSpecType.scSpecTypeBool().value:return{type:"boolean"};case t.xdr.ScSpecType.scSpecTypeVoid().value:return{type:"null"};case t.xdr.ScSpecType.scSpecTypeError().value:L="Error";break;case t.xdr.ScSpecType.scSpecTypeU32().value:L="U32";break;case t.xdr.ScSpecType.scSpecTypeI32().value:L="I32";break;case t.xdr.ScSpecType.scSpecTypeU64().value:L="U64";break;case t.xdr.ScSpecType.scSpecTypeI64().value:L="I64";break;case t.xdr.ScSpecType.scSpecTypeTimepoint().value:throw new Error("Timepoint type not supported");case t.xdr.ScSpecType.scSpecTypeDuration().value:throw new Error("Duration not supported");case t.xdr.ScSpecType.scSpecTypeU128().value:L="U128";break;case t.xdr.ScSpecType.scSpecTypeI128().value:L="I128";break;case t.xdr.ScSpecType.scSpecTypeU256().value:L="U256";break;case t.xdr.ScSpecType.scSpecTypeI256().value:L="I256";break;case t.xdr.ScSpecType.scSpecTypeBytes().value:L="DataUrl";break;case t.xdr.ScSpecType.scSpecTypeString().value:L="ScString";break;case t.xdr.ScSpecType.scSpecTypeSymbol().value:L="ScSymbol";break;case t.xdr.ScSpecType.scSpecTypeAddress().value:L="Address";break;case t.xdr.ScSpecType.scSpecTypeOption().value:return E(j.option().valueType());case t.xdr.ScSpecType.scSpecTypeResult().value:break;case t.xdr.ScSpecType.scSpecTypeVec().value:return{type:"array",items:E(j.vec().elementType())};case t.xdr.ScSpecType.scSpecTypeMap().value:var Q=j.map();return{type:"array",items:{type:"array",items:[E(Q.keyType()),E(Q.valueType())],minItems:2,maxItems:2}};case t.xdr.ScSpecType.scSpecTypeTuple().value:var U=j.tuple(),Z=U.valueTypes().length,se=Z;return{type:"array",items:U.valueTypes().map(E),minItems:Z,maxItems:se};case t.xdr.ScSpecType.scSpecTypeBytesN().value:return{$ref:"#/definitions/DataUrl",maxLength:j.bytesN().n()};case t.xdr.ScSpecType.scSpecTypeUdt().value:L=j.udt().name().toString()}return{$ref:"#/definitions/".concat(L)}}function S(j){var L=j.fields();if(L.some(_)){if(!L.every(_))throw new Error("mixed numeric and non-numeric field names are not allowed");return{type:"array",items:L.map(function(te,$){return E(L[$].type())}),minItems:L.length,maxItems:L.length}}var Q=j.doc().toString(),U=C(L),Z=U.properties,se=U.required;return Z.additionalProperties=!1,{description:Q,properties:Z,required:se,type:"object"}}function C(j){var L,Q={},U=[],Z=c(j);try{for(Z.s();!(L=Z.n()).done;){var se=L.value,te=se.type(),$=se.name().toString();Q[$]=E(te),te.switch().value!=t.xdr.ScSpecType.scSpecTypeOption().value&&U.push($)}}catch(A){Z.e(A)}finally{Z.f()}var P={properties:Q};return U.length>0&&(P.required=U),P}function T(j){var L=C(j.inputs()),Q=L.properties,U=L.required,Z={additionalProperties:!1,properties:Q,type:"object"};(U==null?void 0:U.length)>0&&(Z.required=U);var se={properties:{args:Z}},te=j.outputs(),$=te.length>0?E(te[0]):E(t.xdr.ScSpecTypeDef.scSpecTypeVoid()),P=j.doc().toString();return P.length>0&&(se.description=P),se.additionalProperties=!1,$.additionalProperties=!1,{input:se,output:$}}function R(j){var L,Q=j.doc().toString(),U=[],Z=c(j.cases());try{for(Z.s();!(L=Z.n()).done;){var se=L.value;switch(se.switch().value){case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:var te=se.voidCase().name().toString();U.push({type:"object",title:te,properties:{tag:te},additionalProperties:!1,required:["tag"]});break;case t.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:var $=se.tupleCase(),P=$.name().toString();U.push({type:"object",title:P,properties:{tag:P,values:{type:"array",items:$.type().map(E)}},required:["tag","values"],additionalProperties:!1})}}}catch(O){Z.e(O)}finally{Z.f()}var A={oneOf:U};return Q.length>0&&(A.description=Q),A}function W(j){var L,Q=j.doc().toString(),U=[],Z=c(j.cases());try{for(Z.s();!(L=Z.n()).done;){var se=L.value,te=se.name().toString(),$=se.doc().toString();U.push({description:$,title:te,enum:[se.value()],type:"number"})}}catch(A){Z.e(A)}finally{Z.f()}var P={oneOf:U};return Q.length>0&&(P.description=Q),P}},6086:(f,a,i)=>{function t(C){return t=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},t(C)}function s(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function o(C,T){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(C,T){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R},d(C,T)}function w(C){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},w(C)}i.d(a,{F7:()=>y,Fz:()=>E,dR:()=>_,hs:()=>S,oY:()=>x});var y=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W)).__proto__=Q,L.constructor=R,L.response=j,L}return e(R,[{key:"getResponse",value:function(){return this.response}}]),R}(b(Error)),_=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="NotFoundError",L}return e(R)}(y),x=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="BadRequestError",L}return e(R)}(y),E=function(C){u(R,C);var T=h(R);function R(W,j){var L;s(this,R);var Q=(this instanceof R?this.constructor:void 0).prototype;return(L=T.call(this,W,j)).__proto__=Q,L.constructor=R,L.name="BadResponseError",L}return e(R)}(y),S=function(C){u(R,C);var T=h(R);function R(W,j,L){var Q;s(this,R);var U=(this instanceof R?this.constructor:void 0).prototype;return(Q=T.call(this,W)).__proto__=U,Q.constructor=R,Q.name="AccountRequiresMemoError",Q.accountId=j,Q.operationIndex=L,Q}return e(R)}(b(Error))},2761:(f,a,i)=>{i.r(a),i.d(a,{Api:()=>t,FEDERATION_RESPONSE_MAX_SIZE:()=>S,Server:()=>C});var t={};i.r(t),i.d(t,{Api:()=>{}});var s=i(1257),o=i(4172),e=i(4998),c=i.n(e),u=i(7939),h=i(6086),b=i(4700);function m(T){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},m(T)}function k(T,R){return function(W){if(Array.isArray(W))return W}(T)||function(W,j){var L=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(L!=null){var Q,U,Z,se,te=[],$=!0,P=!1;try{if(Z=(L=L.call(W)).next,j===0){if(Object(L)!==L)return;$=!1}else for(;!($=(Q=Z.call(L)).done)&&(te.push(Q.value),te.length!==j);$=!0);}catch(A){P=!0,U=A}finally{try{if(!$&&L.return!=null&&(se=L.return(),Object(se)!==se))return}finally{if(P)throw U}}return te}}(T,R)||function(W,j){if(W){if(typeof W=="string")return d(W,j);var L=Object.prototype.toString.call(W).slice(8,-1);if(L==="Object"&&W.constructor&&(L=W.constructor.name),L==="Map"||L==="Set")return Array.from(W);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return d(W,j)}}(T,R)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d(T,R){(R==null||R>T.length)&&(R=T.length);for(var W=0,j=new Array(R);W=0;--M){var J=this.tryEntries[M],ue=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var F=j.call(J,"catchLoc"),N=j.call(J,"finallyLoc");if(F&&N){if(this.prev=0;--H){var M=this.tryEntries[H];if(M.tryLoc<=this.prev&&j.call(M,"finallyLoc")&&this.prev=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===Ke)return this.complete(H.completion,H.afterLoc),Oe(H),re}},catch:function(Ke){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===Ke){var M=H.completion;if(M.type==="throw"){var J=M.arg;Oe(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(Ke,B,H){return this.delegate={iterator:ot(Ke),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=T),re}},R}function y(T,R,W,j,L,Q,U){try{var Z=T[Q](U),se=Z.value}catch(te){return void W(te)}Z.done?R(se):Promise.resolve(se).then(j,L)}function _(T){return function(){var R=this,W=arguments;return new Promise(function(j,L){var Q=T.apply(R,W);function U(se){y(Q,j,L,U,Z,"next",se)}function Z(se){y(Q,j,L,U,Z,"throw",se)}U(void 0)})}}function x(T,R){for(var W=0;W2&&arguments[2]!==void 0?arguments[2]:{};(function(z,G){if(!(z instanceof G))throw new TypeError("Cannot call a class as a function")})(this,T),this.serverURL=c()($),this.domain=P;var O=A.allowHttp===void 0?u.D.isAllowHttp():A.allowHttp;if(this.timeout=A.timeout===void 0?u.D.getTimeout():A.timeout,this.serverURL.protocol()!=="https"&&!O)throw new Error("Cannot connect to insecure federation server")}var R,W,j,L,Q,U,Z,se,te;return R=T,W=[{key:"resolveAddress",value:(te=_(w().mark(function $(P){var A,O;return w().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(A=P,!(P.indexOf("*")<0)){z.next=5;break}if(this.domain){z.next=4;break}return z.abrupt("return",Promise.reject(new Error("Unknown domain. Make sure `address` contains a domain (ex. `bob*stellar.org`) or pass `domain` parameter when instantiating the server object.")));case 4:A="".concat(P,"*").concat(this.domain);case 5:return O=this.serverURL.query({type:"name",q:A}),z.abrupt("return",this._sendRequest(O));case 7:case"end":return z.stop()}},$,this)})),function($){return te.apply(this,arguments)})},{key:"resolveAccountId",value:(se=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.serverURL.query({type:"id",q:P}),O.abrupt("return",this._sendRequest(A));case 2:case"end":return O.stop()}},$,this)})),function($){return se.apply(this,arguments)})},{key:"resolveTransactionId",value:(Z=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.serverURL.query({type:"txid",q:P}),O.abrupt("return",this._sendRequest(A));case 2:case"end":return O.stop()}},$,this)})),function($){return Z.apply(this,arguments)})},{key:"_sendRequest",value:(U=_(w().mark(function $(P){var A;return w().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=this.timeout,O.abrupt("return",s.Z.get(P.toString(),{maxContentLength:S,timeout:A}).then(function(z){if(z.data.memo!==void 0&&typeof z.data.memo!="string")throw new Error("memo value should be of type string");return z.data}).catch(function(z){if(z instanceof Error){if(z.message.match(/^maxContentLength size/))throw new Error("federation response exceeds allowed size of ".concat(S));return Promise.reject(z)}return Promise.reject(new h.Fz("Server query failed. Server responded: ".concat(z.status," ").concat(z.statusText),z.data))}));case 2:case"end":return O.stop()}},$,this)})),function($){return U.apply(this,arguments)})}],j=[{key:"resolve",value:(Q=_(w().mark(function $(P){var A,O,z,G,re,X=arguments;return w().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(A=X.length>1&&X[1]!==void 0?X[1]:{},!(P.indexOf("*")<0)){be.next=5;break}if(o.StrKey.isValidEd25519PublicKey(P)){be.next=4;break}return be.abrupt("return",Promise.reject(new Error("Invalid Account ID")));case 4:return be.abrupt("return",Promise.resolve({account_id:P}));case 5:if(O=P.split("*"),z=k(O,2),G=z[1],O.length===2&&G){be.next=9;break}return be.abrupt("return",Promise.reject(new Error("Invalid Stellar address")));case 9:return be.next=11,T.createForDomain(G,A);case 11:return re=be.sent,be.abrupt("return",re.resolveAddress(P));case 13:case"end":return be.stop()}},$)})),function($){return Q.apply(this,arguments)})},{key:"createForDomain",value:(L=_(w().mark(function $(P){var A,O,z=arguments;return w().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return A=z.length>1&&z[1]!==void 0?z[1]:{},G.next=3,b.Resolver.resolve(P,A);case 3:if((O=G.sent).FEDERATION_SERVER){G.next=6;break}return G.abrupt("return",Promise.reject(new Error("stellar.toml does not contain FEDERATION_SERVER field")));case 6:return G.abrupt("return",new T(O.FEDERATION_SERVER,P,A));case 7:case"end":return G.stop()}},$)})),function($){return L.apply(this,arguments)})}],W&&x(R.prototype,W),j&&x(R,j),Object.defineProperty(R,"prototype",{writable:!1}),T}()},197:(f,a,i)=>{i.r(a),i.d(a,{Api:()=>{}})},6881:(f,a,i)=>{var t,s;i.r(a),i.d(a,{AccountResponse:()=>m,AxiosClient:()=>he,HorizonApi:()=>t,SERVER_TIME_MAP:()=>be,Server:()=>Dn,ServerApi:()=>s,default:()=>pn,getCurrentServerTime:()=>le}),function(Te){var ie=function(ne){return ne.constantProduct="constant_product",ne}({});Te.LiquidityPoolType=ie;var pe=function(ne){return ne.createAccount="create_account",ne.payment="payment",ne.pathPayment="path_payment_strict_receive",ne.createPassiveOffer="create_passive_sell_offer",ne.manageOffer="manage_sell_offer",ne.setOptions="set_options",ne.changeTrust="change_trust",ne.allowTrust="allow_trust",ne.accountMerge="account_merge",ne.inflation="inflation",ne.manageData="manage_data",ne.bumpSequence="bump_sequence",ne.manageBuyOffer="manage_buy_offer",ne.pathPaymentStrictSend="path_payment_strict_send",ne.createClaimableBalance="create_claimable_balance",ne.claimClaimableBalance="claim_claimable_balance",ne.beginSponsoringFutureReserves="begin_sponsoring_future_reserves",ne.endSponsoringFutureReserves="end_sponsoring_future_reserves",ne.revokeSponsorship="revoke_sponsorship",ne.clawback="clawback",ne.clawbackClaimableBalance="clawback_claimable_balance",ne.setTrustLineFlags="set_trust_line_flags",ne.liquidityPoolDeposit="liquidity_pool_deposit",ne.liquidityPoolWithdraw="liquidity_pool_withdraw",ne.invokeHostFunction="invoke_host_function",ne.bumpFootprintExpiration="bump_footprint_expiration",ne.restoreFootprint="restore_footprint",ne}({});Te.OperationResponseType=pe;var Se=function(ne){return ne[ne.createAccount=0]="createAccount",ne[ne.payment=1]="payment",ne[ne.pathPayment=2]="pathPayment",ne[ne.createPassiveOffer=3]="createPassiveOffer",ne[ne.manageOffer=4]="manageOffer",ne[ne.setOptions=5]="setOptions",ne[ne.changeTrust=6]="changeTrust",ne[ne.allowTrust=7]="allowTrust",ne[ne.accountMerge=8]="accountMerge",ne[ne.inflation=9]="inflation",ne[ne.manageData=10]="manageData",ne[ne.bumpSequence=11]="bumpSequence",ne[ne.manageBuyOffer=12]="manageBuyOffer",ne[ne.pathPaymentStrictSend=13]="pathPaymentStrictSend",ne[ne.createClaimableBalance=14]="createClaimableBalance",ne[ne.claimClaimableBalance=15]="claimClaimableBalance",ne[ne.beginSponsoringFutureReserves=16]="beginSponsoringFutureReserves",ne[ne.endSponsoringFutureReserves=17]="endSponsoringFutureReserves",ne[ne.revokeSponsorship=18]="revokeSponsorship",ne[ne.clawback=19]="clawback",ne[ne.clawbackClaimableBalance=20]="clawbackClaimableBalance",ne[ne.setTrustLineFlags=21]="setTrustLineFlags",ne[ne.liquidityPoolDeposit=22]="liquidityPoolDeposit",ne[ne.liquidityPoolWithdraw=23]="liquidityPoolWithdraw",ne[ne.invokeHostFunction=24]="invokeHostFunction",ne[ne.bumpFootprintExpiration=25]="bumpFootprintExpiration",ne[ne.restoreFootprint=26]="restoreFootprint",ne}({});Te.OperationResponseTypeI=Se;var He=function(ne){return ne.TX_FAILED="tx_failed",ne.TX_BAD_SEQ="tx_bad_seq",ne.TX_BAD_AUTH="tx_bad_auth",ne.TX_BAD_AUTH_EXTRA="tx_bad_auth_extra",ne.TX_FEE_BUMP_INNER_SUCCESS="tx_fee_bump_inner_success",ne.TX_FEE_BUMP_INNER_FAILED="tx_fee_bump_inner_failed",ne.TX_NOT_SUPPORTED="tx_not_supported",ne.TX_SUCCESS="tx_success",ne.TX_TOO_EARLY="tx_too_early",ne.TX_TOO_LATE="tx_too_late",ne.TX_MISSING_OPERATION="tx_missing_operation",ne.TX_INSUFFICIENT_BALANCE="tx_insufficient_balance",ne.TX_NO_SOURCE_ACCOUNT="tx_no_source_account",ne.TX_INSUFFICIENT_FEE="tx_insufficient_fee",ne.TX_INTERNAL_ERROR="tx_internal_error",ne}({});Te.TransactionFailedResultCodes=He}(t||(t={})),function(Te){var ie=function(pe){return pe.all="all",pe.liquidityPools="liquidity_pool",pe.orderbook="orderbook",pe}({});Te.TradeType=ie,t.OperationResponseType,t.OperationResponseTypeI}(s||(s={}));var o=i(4172);function e(Te){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},e(Te)}function c(Te,ie){return function(pe){if(Array.isArray(pe))return pe}(Te)||function(pe,Se){var He=pe==null?null:typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(He!=null){var ne,D,fe,Ee,_e=[],Re=!0,qe=!1;try{if(fe=(He=He.call(pe)).next,Se===0){if(Object(He)!==He)return;Re=!1}else for(;!(Re=(ne=fe.call(He)).done)&&(_e.push(ne.value),_e.length!==Se);Re=!0);}catch(Ie){qe=!0,D=Ie}finally{try{if(!Re&&He.return!=null&&(Ee=He.return(),Object(Ee)!==Ee))return}finally{if(qe)throw D}}return _e}}(Te,ie)||function(pe,Se){if(pe){if(typeof pe=="string")return u(pe,Se);var He=Object.prototype.toString.call(pe).slice(8,-1);if(He==="Object"&&pe.constructor&&(He=pe.constructor.name),He==="Map"||He==="Set")return Array.from(pe);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return u(pe,Se)}}(Te,ie)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(Te,ie){(ie==null||ie>Te.length)&&(ie=Te.length);for(var pe=0,Se=new Array(ie);pe0||Te===ie?ie:ie-1}function j(Te){for(var ie,pe,Se=1,He=Te.length,ne=Te[0]+"";Se_e^pe?1:-1;for(fe=(Ee=He.length)<(_e=ne.length)?Ee:_e,D=0;Dne[D]^pe?1:-1;return Ee==_e?0:Ee>_e^pe?1:-1}function Q(Te,ie,pe,Se){if(Tepe||Te!==w(Te))throw Error(y+(Se||"Argument")+(typeof Te=="number"?Tepe?" out of range: ":" not an integer: ":" not a primitive number: ")+String(Te))}function U(Te){var ie=Te.c.length-1;return W(Te.e/E)==ie&&Te.c[ie]%2!=0}function Z(Te,ie){return(Te.length>1?Te.charAt(0)+"."+Te.slice(1):Te)+(ie<0?"e":"e+")+ie}function se(Te,ie,pe){var Se,He;if(ie<0){for(He=pe+".";++ie;He+=pe);Te=He+Te}else if(++ie>(Se=Te.length)){for(He=pe,ie-=Se;--ie;He+=pe);Te+=He}else ieXt?st.c=st.e=null:ae.e=10;tt/=10,Xe++);return void(Xe>Xt?st.c=st.e=null:(st.e=Xe,st.c=[ae]))}ft=String(ae)}else{if(!k.test(ft=String(ae)))return He(st,ft,et);st.s=ft.charCodeAt(0)==45?(ft=ft.slice(1),-1):1}(Xe=ft.indexOf("."))>-1&&(ft=ft.replace(".","")),(tt=ft.search(/e/i))>0?(Xe<0&&(Xe=tt),Xe+=+ft.slice(tt+1),ft=ft.substring(0,tt)):Xe<0&&(Xe=ft.length)}else{if(Q(de,2,cn.length,"Base"),de==10&&dn)return hn(st=new Et(ae),dt+st.e+1,pt);if(ft=String(ae),et=typeof ae=="number"){if(0*ae!=0)return He(st,ft,et,de);if(st.s=1/ae<0?(ft=ft.slice(1),-1):1,Et.DEBUG&&ft.replace(/^0\.0*|\./,"").length>15)throw Error(_+ae)}else st.s=ft.charCodeAt(0)===45?(ft=ft.slice(1),-1):1;for(Ae=cn.slice(0,de),Xe=tt=0,it=ft.length;ttXe){Xe=it;continue}}else if(!Me&&(ft==ft.toUpperCase()&&(ft=ft.toLowerCase())||ft==ft.toLowerCase()&&(ft=ft.toUpperCase()))){Me=!0,tt=-1,Xe=0;continue}return He(st,String(ae),et,de)}et=!1,(Xe=(ft=Se(ft,de,10,st.s)).indexOf("."))>-1?ft=ft.replace(".",""):Xe=ft.length}for(tt=0;ft.charCodeAt(tt)===48;tt++);for(it=ft.length;ft.charCodeAt(--it)===48;);if(ft=ft.slice(tt,++it)){if(it-=tt,et&&Et.DEBUG&&it>15&&(ae>S||ae!==w(ae)))throw Error(_+st.s*ae);if((Xe=Xe-tt-1)>Xt)st.c=st.e=null;else if(Xe=Lt)?Z(it,tt):se(it,tt,"0");else if(Xe=(ae=hn(new Et(ae),de,Ae)).e,et=(it=j(ae.c)).length,Ge==1||Ge==2&&(de<=Xe||Xe<=xt)){for(;etet){if(--de>0)for(it+=".";de--;it+="0");}else if((de+=Xe-et)>0)for(Xe+1==et&&(it+=".");de--;it+="0");return ae.s<0&&Me?"-"+it:it}function Fn(ae,de){for(var Ae,Ge,Me=1,Xe=new Et(ae[0]);Me=10;Me/=10,Ge++);return(Ae=Ge+Ae*E-1)>Xt?ae.c=ae.e=null:Ae=10;et/=10,Me++);if((Xe=de-Me)<0)Xe+=E,tt=de,it=Pt[ft=0],st=w(it/on[Me-tt-1]%10);else if((ft=d((Xe+1)/E))>=Pt.length){if(!Ge)break e;for(;Pt.length<=ft;Pt.push(0));it=st=0,Me=1,tt=(Xe%=E)-E+1}else{for(it=et=Pt[ft],Me=1;et>=10;et/=10,Me++);st=(tt=(Xe%=E)-E+Me)<0?0:w(it/on[Me-tt-1]%10)}if(Ge=Ge||de<0||Pt[ft+1]!=null||(tt<0?it:it%on[Me-tt-1]),Ge=Ae<4?(st||Ge)&&(Ae==0||Ae==(ae.s<0?3:2)):st>5||st==5&&(Ae==4||Ge||Ae==6&&(Xe>0?tt>0?it/on[Me-tt]:0:Pt[ft-1])%10&1||Ae==(ae.s<0?8:7)),de<1||!Pt[0])return Pt.length=0,Ge?(de-=ae.e+1,Pt[0]=on[(E-de%E)%E],ae.e=-de||0):Pt[0]=ae.e=0,ae;if(Xe==0?(Pt.length=ft,et=1,ft--):(Pt.length=ft+1,et=on[E-Xe],Pt[ft]=tt>0?w(it/on[Me-tt]%on[tt])*et:0),Ge)for(;;){if(ft==0){for(Xe=1,tt=Pt[0];tt>=10;tt/=10,Xe++);for(tt=Pt[0]+=et,et=1;tt>=10;tt/=10,et++);Xe!=et&&(ae.e++,Pt[0]==x&&(Pt[0]=1));break}if(Pt[ft]+=et,Pt[ft]!=x)break;Pt[ft--]=0,et=1}for(Xe=Pt.length;Pt[--Xe]===0;Pt.pop());}ae.e>Xt?ae.c=ae.e=null:ae.e=Lt?Z(de,Ae):se(de,Ae,"0"),ae.s<0?"-"+de:de)}return Et.clone=Te,Et.ROUND_UP=0,Et.ROUND_DOWN=1,Et.ROUND_CEIL=2,Et.ROUND_FLOOR=3,Et.ROUND_HALF_UP=4,Et.ROUND_HALF_DOWN=5,Et.ROUND_HALF_EVEN=6,Et.ROUND_HALF_CEIL=7,Et.ROUND_HALF_FLOOR=8,Et.EUCLID=9,Et.config=Et.set=function(ae){var de,Ae;if(ae!=null){if(typeof ae!="object")throw Error(y+"Object expected: "+ae);if(ae.hasOwnProperty(de="DECIMAL_PLACES")&&(Q(Ae=ae[de],0,R,de),dt=Ae),ae.hasOwnProperty(de="ROUNDING_MODE")&&(Q(Ae=ae[de],0,8,de),pt=Ae),ae.hasOwnProperty(de="EXPONENTIAL_AT")&&((Ae=ae[de])&&Ae.pop?(Q(Ae[0],-R,0,de),Q(Ae[1],0,R,de),xt=Ae[0],Lt=Ae[1]):(Q(Ae,-R,R,de),xt=-(Lt=Ae<0?-Ae:Ae))),ae.hasOwnProperty(de="RANGE"))if((Ae=ae[de])&&Ae.pop)Q(Ae[0],-R,-1,de),Q(Ae[1],1,R,de),bt=Ae[0],Xt=Ae[1];else{if(Q(Ae,-R,R,de),!Ae)throw Error(y+de+" cannot be zero: "+Ae);bt=-(Xt=Ae<0?-Ae:Ae)}if(ae.hasOwnProperty(de="CRYPTO")){if((Ae=ae[de])!==!!Ae)throw Error(y+de+" not true or false: "+Ae);if(Ae){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw sn=!Ae,Error(y+"crypto unavailable");sn=Ae}else sn=Ae}if(ae.hasOwnProperty(de="MODULO_MODE")&&(Q(Ae=ae[de],0,9,de),nn=Ae),ae.hasOwnProperty(de="POW_PRECISION")&&(Q(Ae=ae[de],0,R,de),rn=Ae),ae.hasOwnProperty(de="FORMAT")){if(typeof(Ae=ae[de])!="object")throw Error(y+de+" not an object: "+Ae);Yt=Ae}if(ae.hasOwnProperty(de="ALPHABET")){if(typeof(Ae=ae[de])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(Ae))throw Error(y+de+" invalid: "+Ae);dn=Ae.slice(0,10)=="0123456789",cn=Ae}}return{DECIMAL_PLACES:dt,ROUNDING_MODE:pt,EXPONENTIAL_AT:[xt,Lt],RANGE:[bt,Xt],CRYPTO:sn,MODULO_MODE:nn,POW_PRECISION:rn,FORMAT:Yt,ALPHABET:cn}},Et.isBigNumber=function(ae){if(!ae||ae._isBigNumber!==!0)return!1;if(!Et.DEBUG)return!0;var de,Ae,Ge=ae.c,Me=ae.e,Xe=ae.s;e:if({}.toString.call(Ge)=="[object Array]"){if((Xe===1||Xe===-1)&&Me>=-R&&Me<=R&&Me===w(Me)){if(Ge[0]===0){if(Me===0&&Ge.length===1)return!0;break e}if((de=(Me+1)%E)<1&&(de+=E),String(Ge[0]).length==de){for(de=0;de=x||Ae!==w(Ae))break e;if(Ae!==0)return!0}}}else if(Ge===null&&Me===null&&(Xe===null||Xe===1||Xe===-1))return!0;throw Error(y+"Invalid BigNumber: "+ae)},Et.maximum=Et.max=function(){return Fn(arguments,-1)},Et.minimum=Et.min=function(){return Fn(arguments,1)},Et.random=(ne=9007199254740992,D=Math.random()*ne&2097151?function(){return w(Math.random()*ne)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(ae){var de,Ae,Ge,Me,Xe,tt=0,et=[],it=new Et(gt);if(ae==null?ae=dt:Q(ae,0,R),Me=d(ae/E),sn)if(crypto.getRandomValues){for(de=crypto.getRandomValues(new Uint32Array(Me*=2));tt>>11))>=9e15?(Ae=crypto.getRandomValues(new Uint32Array(2)),de[tt]=Ae[0],de[tt+1]=Ae[1]):(et.push(Xe%1e14),tt+=2);tt=Me/2}else{if(!crypto.randomBytes)throw sn=!1,Error(y+"crypto unavailable");for(de=crypto.randomBytes(Me*=7);tt=9e15?crypto.randomBytes(7).copy(de,tt):(et.push(Xe%1e14),tt+=7);tt=Me/7}if(!sn)for(;tt=10;Xe/=10,tt++);ttMe-1&&(it[tt+1]==null&&(it[tt+1]=0),it[tt+1]+=it[tt]/Me|0,it[tt]%=Me)}return it.reverse()}return function(Ae,Ge,Me,Xe,tt){var et,it,ft,st,Pt,on,un,mn,An=Ae.indexOf("."),xn=dt,gn=pt;for(An>=0&&(st=rn,rn=0,Ae=Ae.replace(".",""),on=(mn=new Et(Ge)).pow(Ae.length-An),rn=st,mn.c=de(se(j(on.c),on.e,"0"),10,Me,ae),mn.e=mn.c.length),ft=st=(un=de(Ae,Ge,Me,tt?(et=cn,ae):(et=ae,cn))).length;un[--st]==0;un.pop());if(!un[0])return et.charAt(0);if(An<0?--ft:(on.c=un,on.e=ft,on.s=Xe,un=(on=pe(on,mn,xn,gn,Me)).c,Pt=on.r,ft=on.e),An=un[it=ft+xn+1],st=Me/2,Pt=Pt||it<0||un[it+1]!=null,Pt=gn<4?(An!=null||Pt)&&(gn==0||gn==(on.s<0?3:2)):An>st||An==st&&(gn==4||Pt||gn==6&&1&un[it-1]||gn==(on.s<0?8:7)),it<1||!un[0])Ae=Pt?se(et.charAt(1),-xn,et.charAt(0)):et.charAt(0);else{if(un.length=it,Pt)for(--Me;++un[--it]>Me;)un[it]=0,it||(++ft,un=[1].concat(un));for(st=un.length;!un[--st];);for(An=0,Ae="";An<=st;Ae+=et.charAt(un[An++]));Ae=se(Ae,ft,et.charAt(0))}return Ae}}(),pe=function(){function ae(Ge,Me,Xe){var tt,et,it,ft,st=0,Pt=Ge.length,on=Me%T,un=Me/T|0;for(Ge=Ge.slice();Pt--;)st=((et=on*(it=Ge[Pt]%T)+(tt=un*it+(ft=Ge[Pt]/T|0)*on)%T*T+st)/Xe|0)+(tt/T|0)+un*ft,Ge[Pt]=et%Xe;return st&&(Ge=[st].concat(Ge)),Ge}function de(Ge,Me,Xe,tt){var et,it;if(Xe!=tt)it=Xe>tt?1:-1;else for(et=it=0;etMe[et]?1:-1;break}return it}function Ae(Ge,Me,Xe,tt){for(var et=0;Xe--;)Ge[Xe]-=et,et=Ge[Xe]1;Ge.splice(0,1));}return function(Ge,Me,Xe,tt,et){var it,ft,st,Pt,on,un,mn,An,xn,gn,vn,Rn,br,kr,Sr,Un,ar,Mn=Ge.s==Me.s?1:-1,Bn=Ge.c,Sn=Me.c;if(!(Bn&&Bn[0]&&Sn&&Sn[0]))return new Et(Ge.s&&Me.s&&(Bn?!Sn||Bn[0]!=Sn[0]:Sn)?Bn&&Bn[0]==0||!Sn?0*Mn:Mn/0:NaN);for(xn=(An=new Et(Mn)).c=[],Mn=Xe+(ft=Ge.e-Me.e)+1,et||(et=x,ft=W(Ge.e/E)-W(Me.e/E),Mn=Mn/E|0),st=0;Sn[st]==(Bn[st]||0);st++);if(Sn[st]>(Bn[st]||0)&&ft--,Mn<0)xn.push(1),Pt=!0;else{for(kr=Bn.length,Un=Sn.length,st=0,Mn+=2,(on=w(et/(Sn[0]+1)))>1&&(Sn=ae(Sn,on,et),Bn=ae(Bn,on,et),Un=Sn.length,kr=Bn.length),br=Un,vn=(gn=Bn.slice(0,Un)).length;vn=et/2&&Sr++;do{if(on=0,(it=de(Sn,gn,Un,vn))<0){if(Rn=gn[0],Un!=vn&&(Rn=Rn*et+(gn[1]||0)),(on=w(Rn/Sr))>1)for(on>=et&&(on=et-1),mn=(un=ae(Sn,on,et)).length,vn=gn.length;de(un,gn,mn,vn)==1;)on--,Ae(un,Un=10;Mn/=10,st++);hn(An,Xe+(An.e=st+ft*E-1)+1,tt,Pt)}else An.e=ft,An.r=+Pt;return An}}(),fe=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ee=/^([^.]+)\.$/,_e=/^\.([^.]+)$/,Re=/^-?(Infinity|NaN)$/,qe=/^\s*\+(?=[\w.])|^\s+|\s+$/g,He=function(ae,de,Ae,Ge){var Me,Xe=Ae?de:de.replace(qe,"");if(Re.test(Xe))ae.s=isNaN(Xe)?null:Xe<0?-1:1;else{if(!Ae&&(Xe=Xe.replace(fe,function(tt,et,it){return Me=(it=it.toLowerCase())=="x"?16:it=="b"?2:8,Ge&&Ge!=Me?tt:et}),Ge&&(Me=Ge,Xe=Xe.replace(Ee,"$1").replace(_e,"0.$1")),de!=Xe))return new Et(Xe,Me);if(Et.DEBUG)throw Error(y+"Not a"+(Ge?" base "+Ge:"")+" number: "+de);ae.s=null}ae.c=ae.e=null},Ie.absoluteValue=Ie.abs=function(){var ae=new Et(this);return ae.s<0&&(ae.s=1),ae},Ie.comparedTo=function(ae,de){return L(this,new Et(ae,de))},Ie.decimalPlaces=Ie.dp=function(ae,de){var Ae,Ge,Me,Xe=this;if(ae!=null)return Q(ae,0,R),de==null?de=pt:Q(de,0,8),hn(new Et(Xe),ae+Xe.e+1,de);if(!(Ae=Xe.c))return null;if(Ge=((Me=Ae.length-1)-W(this.e/E))*E,Me=Ae[Me])for(;Me%10==0;Me/=10,Ge--);return Ge<0&&(Ge=0),Ge},Ie.dividedBy=Ie.div=function(ae,de){return pe(this,new Et(ae,de),dt,pt)},Ie.dividedToIntegerBy=Ie.idiv=function(ae,de){return pe(this,new Et(ae,de),0,1)},Ie.exponentiatedBy=Ie.pow=function(ae,de){var Ae,Ge,Me,Xe,tt,et,it,ft,st=this;if((ae=new Et(ae)).c&&!ae.isInteger())throw Error(y+"Exponent not an integer: "+_n(ae));if(de!=null&&(de=new Et(de)),tt=ae.e>14,!st.c||!st.c[0]||st.c[0]==1&&!st.e&&st.c.length==1||!ae.c||!ae.c[0])return ft=new Et(Math.pow(+_n(st),tt?ae.s*(2-U(ae)):+_n(ae))),de?ft.mod(de):ft;if(et=ae.s<0,de){if(de.c?!de.c[0]:!de.s)return new Et(NaN);(Ge=!et&&st.isInteger()&&de.isInteger())&&(st=st.mod(de))}else{if(ae.e>9&&(st.e>0||st.e<-1||(st.e==0?st.c[0]>1||tt&&st.c[1]>=24e7:st.c[0]<8e13||tt&&st.c[0]<=9999975e7)))return Xe=st.s<0&&U(ae)?-0:0,st.e>-1&&(Xe=1/Xe),new Et(et?1/Xe:Xe);rn&&(Xe=d(rn/E+2))}for(tt?(Ae=new Et(.5),et&&(ae.s=1),it=U(ae)):it=(Me=Math.abs(+_n(ae)))%2,ft=new Et(gt);;){if(it){if(!(ft=ft.times(st)).c)break;Xe?ft.c.length>Xe&&(ft.c.length=Xe):Ge&&(ft=ft.mod(de))}if(Me){if((Me=w(Me/2))===0)break;it=Me%2}else if(hn(ae=ae.times(Ae),ae.e+1,1),ae.e>14)it=U(ae);else{if((Me=+_n(ae))==0)break;it=Me%2}st=st.times(st),Xe?st.c&&st.c.length>Xe&&(st.c.length=Xe):Ge&&(st=st.mod(de))}return Ge?ft:(et&&(ft=gt.div(ft)),de?ft.mod(de):Xe?hn(ft,rn,pt,void 0):ft)},Ie.integerValue=function(ae){var de=new Et(this);return ae==null?ae=pt:Q(ae,0,8),hn(de,de.e+1,ae)},Ie.isEqualTo=Ie.eq=function(ae,de){return L(this,new Et(ae,de))===0},Ie.isFinite=function(){return!!this.c},Ie.isGreaterThan=Ie.gt=function(ae,de){return L(this,new Et(ae,de))>0},Ie.isGreaterThanOrEqualTo=Ie.gte=function(ae,de){return(de=L(this,new Et(ae,de)))===1||de===0},Ie.isInteger=function(){return!!this.c&&W(this.e/E)>this.c.length-2},Ie.isLessThan=Ie.lt=function(ae,de){return L(this,new Et(ae,de))<0},Ie.isLessThanOrEqualTo=Ie.lte=function(ae,de){return(de=L(this,new Et(ae,de)))===-1||de===0},Ie.isNaN=function(){return!this.s},Ie.isNegative=function(){return this.s<0},Ie.isPositive=function(){return this.s>0},Ie.isZero=function(){return!!this.c&&this.c[0]==0},Ie.minus=function(ae,de){var Ae,Ge,Me,Xe,tt=this,et=tt.s;if(de=(ae=new Et(ae,de)).s,!et||!de)return new Et(NaN);if(et!=de)return ae.s=-de,tt.plus(ae);var it=tt.e/E,ft=ae.e/E,st=tt.c,Pt=ae.c;if(!it||!ft){if(!st||!Pt)return st?(ae.s=-de,ae):new Et(Pt?tt:NaN);if(!st[0]||!Pt[0])return Pt[0]?(ae.s=-de,ae):new Et(st[0]?tt:pt==3?-0:0)}if(it=W(it),ft=W(ft),st=st.slice(),et=it-ft){for((Xe=et<0)?(et=-et,Me=st):(ft=it,Me=Pt),Me.reverse(),de=et;de--;Me.push(0));Me.reverse()}else for(Ge=(Xe=(et=st.length)<(de=Pt.length))?et:de,et=de=0;de0)for(;de--;st[Ae++]=0);for(de=x-1;Ge>et;){if(st[--Ge]=0;){for(Ae=0,on=Rn[Me]%xn,un=Rn[Me]/xn|0,Xe=Me+(tt=it);Xe>Me;)Ae=((ft=on*(ft=vn[--tt]%xn)+(et=un*ft+(st=vn[tt]/xn|0)*on)%xn*xn+mn[Xe]+Ae)/An|0)+(et/xn|0)+un*st,mn[Xe--]=ft%An;mn[Xe]=Ae}return Ae?++Ge:mn.splice(0,1),Tn(ae,mn,Ge)},Ie.negated=function(){var ae=new Et(this);return ae.s=-ae.s||null,ae},Ie.plus=function(ae,de){var Ae,Ge=this,Me=Ge.s;if(de=(ae=new Et(ae,de)).s,!Me||!de)return new Et(NaN);if(Me!=de)return ae.s=-de,Ge.minus(ae);var Xe=Ge.e/E,tt=ae.e/E,et=Ge.c,it=ae.c;if(!Xe||!tt){if(!et||!it)return new Et(Me/0);if(!et[0]||!it[0])return it[0]?ae:new Et(et[0]?Ge:0*Me)}if(Xe=W(Xe),tt=W(tt),et=et.slice(),Me=Xe-tt){for(Me>0?(tt=Xe,Ae=it):(Me=-Me,Ae=et),Ae.reverse();Me--;Ae.push(0));Ae.reverse()}for((Me=et.length)-(de=it.length)<0&&(Ae=it,it=et,et=Ae,de=Me),Me=0;de;)Me=(et[--de]=et[de]+it[de]+Me)/x|0,et[de]=x===et[de]?0:et[de]%x;return Me&&(et=[Me].concat(et),++tt),Tn(ae,et,tt)},Ie.precision=Ie.sd=function(ae,de){var Ae,Ge,Me,Xe=this;if(ae!=null&&ae!==!!ae)return Q(ae,1,R),de==null?de=pt:Q(de,0,8),hn(new Et(Xe),ae,de);if(!(Ae=Xe.c))return null;if(Ge=(Me=Ae.length-1)*E+1,Me=Ae[Me]){for(;Me%10==0;Me/=10,Ge--);for(Me=Ae[0];Me>=10;Me/=10,Ge++);}return ae&&Xe.e+1>Ge&&(Ge=Xe.e+1),Ge},Ie.shiftedBy=function(ae){return Q(ae,-9007199254740991,S),this.times("1e"+ae)},Ie.squareRoot=Ie.sqrt=function(){var ae,de,Ae,Ge,Me,Xe=this,tt=Xe.c,et=Xe.s,it=Xe.e,ft=dt+4,st=new Et("0.5");if(et!==1||!tt||!tt[0])return new Et(!et||et<0&&(!tt||tt[0])?NaN:tt?Xe:1/0);if((et=Math.sqrt(+_n(Xe)))==0||et==1/0?(((de=j(tt)).length+it)%2==0&&(de+="0"),et=Math.sqrt(+de),it=W((it+1)/2)-(it<0||it%2),Ae=new Et(de=et==1/0?"5e"+it:(de=et.toExponential()).slice(0,de.indexOf("e")+1)+it)):Ae=new Et(et+""),Ae.c[0]){for((et=(it=Ae.e)+ft)<3&&(et=0);;)if(Me=Ae,Ae=st.times(Me.plus(pe(Xe,Me,ft,1))),j(Me.c).slice(0,et)===(de=j(Ae.c)).slice(0,et)){if(Ae.e0&&mn>0){for(Xe=mn%et||et,st=un.substr(0,Xe);Xe0&&(st+=ft+un.slice(Xe)),on&&(st="-"+st)}Ge=Pt?st+(Ae.decimalSeparator||"")+((it=+Ae.fractionGroupSize)?Pt.replace(new RegExp("\\d{"+it+"}\\B","g"),"$&"+(Ae.fractionGroupSeparator||"")):Pt):st}return(Ae.prefix||"")+Ge+(Ae.suffix||"")},Ie.toFraction=function(ae){var de,Ae,Ge,Me,Xe,tt,et,it,ft,st,Pt,on,un=this,mn=un.c;if(ae!=null&&(!(et=new Et(ae)).isInteger()&&(et.c||et.s!==1)||et.lt(gt)))throw Error(y+"Argument "+(et.isInteger()?"out of range: ":"not an integer: ")+_n(et));if(!mn)return new Et(un);for(de=new Et(gt),ft=Ae=new Et(gt),Ge=it=new Et(gt),on=j(mn),Xe=de.e=on.length-un.e-1,de.c[0]=C[(tt=Xe%E)<0?E+tt:tt],ae=!ae||et.comparedTo(de)>0?Xe>0?de:ft:et,tt=Xt,Xt=1/0,et=new Et(on),it.c[0]=0;st=pe(et,de,0,1),(Me=Ae.plus(st.times(Ge))).comparedTo(ae)!=1;)Ae=Ge,Ge=Me,ft=it.plus(st.times(Me=ft)),it=Me,de=et.minus(st.times(Me=de)),et=Me;return Me=pe(ae.minus(Ae),Ge,0,1),it=it.plus(Me.times(ft)),Ae=Ae.plus(Me.times(Ge)),it.s=ft.s=un.s,Pt=pe(ft,Ge,Xe*=2,pt).minus(un).abs().comparedTo(pe(it,Ae,Xe,pt).minus(un).abs())<1?[ft,Ge]:[it,Ae],Xt=tt,Pt},Ie.toNumber=function(){return+_n(this)},Ie.toPrecision=function(ae,de){return ae!=null&&Q(ae,1,R),yn(this,ae,de,2)},Ie.toString=function(ae){var de,Ae=this,Ge=Ae.s,Me=Ae.e;return Me===null?Ge?(de="Infinity",Ge<0&&(de="-"+de)):de="NaN":(ae==null?de=Me<=xt||Me>=Lt?Z(j(Ae.c),Me):se(j(Ae.c),Me,"0"):ae===10&&dn?de=se(j((Ae=hn(new Et(Ae),dt+Me+1,pt)).c),Ae.e,"0"):(Q(ae,2,cn.length,"Base"),de=Se(se(j(Ae.c),Me,"0"),10,ae,Ge,!0)),Ge<0&&Ae.c[0]&&(de="-"+de)),de},Ie.valueOf=Ie.toJSON=function(){return _n(this)},Ie._isBigNumber=!0,Ie[Symbol.toStringTag]="BigNumber",Ie[Symbol.for("nodejs.util.inspect.custom")]=Ie.valueOf,ie!=null&&Et.set(ie),Et}();const $=te;var P=i(4998),A=i.n(P),O=i(1950),z=i.n(O),G=i(6086),re=i(1257),X=i(4147).i8,be={},Be=re.Z.create({headers:{"X-Client-Name":"js-stellar-sdk","X-Client-Version":X}});function ve(Te){return Math.floor(Te/1e3)}Be.interceptors.response.use(function(Te){var ie=A()(Te.config.url).hostname(),pe=ve(Date.parse(Te.headers.date)),Se=ve(new Date().getTime());return isNaN(pe)||(be[ie]={serverTime:pe,localTimeRecorded:Se}),Te});const he=Be;function le(Te){var ie=be[Te];if(!ie||!ie.localTimeRecorded||!ie.serverTime)return null;var pe=ie.serverTime,Se=ie.localTimeRecorded,He=ve(new Date().getTime());return He-Se>300?null:He-Se+pe}function ge(Te){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ge(Te)}var Ne,Ue,Le;function De(){De=function(){return ie};var Te,ie={},pe=Object.prototype,Se=pe.hasOwnProperty,He=Object.defineProperty||function(ae,de,Ae){ae[de]=Ae.value},ne=typeof Symbol=="function"?Symbol:{},D=ne.iterator||"@@iterator",fe=ne.asyncIterator||"@@asyncIterator",Ee=ne.toStringTag||"@@toStringTag";function _e(ae,de,Ae){return Object.defineProperty(ae,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}),ae[de]}try{_e({},"")}catch{_e=function(de,Ae,Ge){return de[Ae]=Ge}}function Re(ae,de,Ae,Ge){var Me=de&&de.prototype instanceof Lt?de:Lt,Xe=Object.create(Me.prototype),tt=new hn(Ge||[]);return He(Xe,"_invoke",{value:Et(ae,Ae,tt)}),Xe}function qe(ae,de,Ae){try{return{type:"normal",arg:ae.call(de,Ae)}}catch(Ge){return{type:"throw",arg:Ge}}}ie.wrap=Re;var Ie="suspendedStart",gt="suspendedYield",dt="executing",pt="completed",xt={};function Lt(){}function bt(){}function Xt(){}var sn={};_e(sn,D,function(){return this});var nn=Object.getPrototypeOf,rn=nn&&nn(nn(_n([])));rn&&rn!==pe&&Se.call(rn,D)&&(sn=rn);var Yt=Xt.prototype=Lt.prototype=Object.create(sn);function cn(ae){["next","throw","return"].forEach(function(de){_e(ae,de,function(Ae){return this._invoke(de,Ae)})})}function dn(ae,de){function Ae(Me,Xe,tt,et){var it=qe(ae[Me],ae,Xe);if(it.type!=="throw"){var ft=it.arg,st=ft.value;return st&&ge(st)=="object"&&Se.call(st,"__await")?de.resolve(st.__await).then(function(Pt){Ae("next",Pt,tt,et)},function(Pt){Ae("throw",Pt,tt,et)}):de.resolve(st).then(function(Pt){ft.value=Pt,tt(ft)},function(Pt){return Ae("throw",Pt,tt,et)})}et(it.arg)}var Ge;He(this,"_invoke",{value:function(Me,Xe){function tt(){return new de(function(et,it){Ae(Me,Xe,et,it)})}return Ge=Ge?Ge.then(tt,tt):tt()}})}function Et(ae,de,Ae){var Ge=Ie;return function(Me,Xe){if(Ge===dt)throw new Error("Generator is already running");if(Ge===pt){if(Me==="throw")throw Xe;return{value:Te,done:!0}}for(Ae.method=Me,Ae.arg=Xe;;){var tt=Ae.delegate;if(tt){var et=yn(tt,Ae);if(et){if(et===xt)continue;return et}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ge===Ie)throw Ge=pt,Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ge=dt;var it=qe(ae,de,Ae);if(it.type==="normal"){if(Ge=Ae.done?pt:gt,it.arg===xt)continue;return{value:it.arg,done:Ae.done}}it.type==="throw"&&(Ge=pt,Ae.method="throw",Ae.arg=it.arg)}}}function yn(ae,de){var Ae=de.method,Ge=ae.iterator[Ae];if(Ge===Te)return de.delegate=null,Ae==="throw"&&ae.iterator.return&&(de.method="return",de.arg=Te,yn(ae,de),de.method==="throw")||Ae!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ae+"' method")),xt;var Me=qe(Ge,ae.iterator,de.arg);if(Me.type==="throw")return de.method="throw",de.arg=Me.arg,de.delegate=null,xt;var Xe=Me.arg;return Xe?Xe.done?(de[ae.resultName]=Xe.value,de.next=ae.nextLoc,de.method!=="return"&&(de.method="next",de.arg=Te),de.delegate=null,xt):Xe:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,xt)}function Fn(ae){var de={tryLoc:ae[0]};1 in ae&&(de.catchLoc=ae[1]),2 in ae&&(de.finallyLoc=ae[2],de.afterLoc=ae[3]),this.tryEntries.push(de)}function Tn(ae){var de=ae.completion||{};de.type="normal",delete de.arg,ae.completion=de}function hn(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(Fn,this),this.reset(!0)}function _n(ae){if(ae||ae===""){var de=ae[D];if(de)return de.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var Ae=-1,Ge=function Me(){for(;++Ae=0;--Ge){var Me=this.tryEntries[Ge],Xe=Me.completion;if(Me.tryLoc==="root")return Ae("end");if(Me.tryLoc<=this.prev){var tt=Se.call(Me,"catchLoc"),et=Se.call(Me,"finallyLoc");if(tt&&et){if(this.prev=0;--Ae){var Ge=this.tryEntries[Ae];if(Ge.tryLoc<=this.prev&&Se.call(Ge,"finallyLoc")&&this.prev=0;--de){var Ae=this.tryEntries[de];if(Ae.finallyLoc===ae)return this.complete(Ae.completion,Ae.afterLoc),Tn(Ae),xt}},catch:function(ae){for(var de=this.tryEntries.length-1;de>=0;--de){var Ae=this.tryEntries[de];if(Ae.tryLoc===ae){var Ge=Ae.completion;if(Ge.type==="throw"){var Me=Ge.arg;Tn(Ae)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(ae,de,Ae){return this.delegate={iterator:_n(ae),resultName:de,nextLoc:Ae},this.method==="next"&&(this.arg=Te),xt}},ie}function Fe(Te,ie,pe,Se,He,ne,D){try{var fe=Te[ne](D),Ee=fe.value}catch(_e){return void pe(_e)}fe.done?ie(Ee):Promise.resolve(Ee).then(Se,He)}function Oe(Te){return function(){var ie=this,pe=arguments;return new Promise(function(Se,He){var ne=Te.apply(ie,pe);function D(Ee){Fe(ne,Se,He,D,fe,"next",Ee)}function fe(Ee){Fe(ne,Se,He,D,fe,"throw",Ee)}D(void 0)})}}function We(Te,ie){for(var pe=0;pe1&&arguments[1]!==void 0?arguments[1]:"";(function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")})(this,Te),this.url=ne.clone(),this.filter=[],this.originalSegments=this.url.segment()||[],this.neighborRoot=D}var ie,pe,Se,He;return ie=Te,pe=[{key:"call",value:function(){var ne=this;return this.checkFilter(),this._sendNormalRequest(this.url).then(function(D){return ne._parseResponse(D)})}},{key:"stream",value:function(){var ne,D,fe=this,Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.checkFilter(),this.url.setQuery("X-Client-Name","js-stellar-sdk"),this.url.setQuery("X-Client-Version",X);var _e=function(){D=setTimeout(function(){var qe;(qe=ne)===null||qe===void 0||qe.close(),ne=Re()},Ee.reconnectTimeout||15e3)},Re=function qe(){try{ne=new H(fe.url.toString())}catch(xt){Ee.onerror&&Ee.onerror(xt)}if(_e(),!ne)return ne;var Ie=!1,gt=function(){Ie||(clearTimeout(D),ne.close(),qe(),Ie=!0)},dt=function(xt){if(xt.type!=="close"){var Lt=xt.data?fe._parseRecord(JSON.parse(xt.data)):xt;Lt.paging_token&&fe.url.setQuery("cursor",Lt.paging_token),clearTimeout(D),_e(),Ee.onmessage!==void 0&&Ee.onmessage(Lt)}else gt()},pt=function(xt){Ee.onerror&&Ee.onerror(xt)};return ne.addEventListener?(ne.addEventListener("message",dt.bind(fe)),ne.addEventListener("error",pt.bind(fe)),ne.addEventListener("close",gt.bind(fe))):(ne.onmessage=dt.bind(fe),ne.onerror=pt.bind(fe)),ne};return Re(),function(){var qe;clearTimeout(D),(qe=ne)===null||qe===void 0||qe.close()}}},{key:"cursor",value:function(ne){return this.url.setQuery("cursor",ne),this}},{key:"limit",value:function(ne){return this.url.setQuery("limit",ne.toString()),this}},{key:"order",value:function(ne){return this.url.setQuery("order",ne),this}},{key:"join",value:function(ne){return this.url.setQuery("join",ne),this}},{key:"forEndpoint",value:function(ne,D){if(this.neighborRoot==="")throw new Error("Invalid usage: neighborRoot not set in constructor");return this.filter.push([ne,D,this.neighborRoot]),this}},{key:"checkFilter",value:function(){if(this.filter.length>=2)throw new G.oY("Too many filters specified",this.filter);if(this.filter.length===1){var ne=this.originalSegments.concat(this.filter[0]);this.url.segment(ne)}}},{key:"_requestFnForLink",value:function(ne){var D=this;return Oe(De().mark(function fe(){var Ee,_e,Re,qe,Ie=arguments;return De().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return Ee=Ie.length>0&&Ie[0]!==void 0?Ie[0]:{},ne.templated?(Re=z()(ne.href),_e=A()(Re.expand(Ee))):_e=A()(ne.href),gt.next=4,D._sendNormalRequest(_e);case 4:return qe=gt.sent,gt.abrupt("return",D._parseResponse(qe));case 6:case"end":return gt.stop()}},fe)}))}},{key:"_parseRecord",value:function(ne){var D=this;if(!ne._links)return ne;for(var fe=function(){var Re=_e[Ee],qe=ne._links[Re],Ie=!1;if(ne[Re]!==void 0&&(ne["".concat(Re,"_attr")]=ne[Re],Ie=!0),Ie&&Ke.indexOf(Re)>=0){var gt=D._parseRecord(ne[Re]);ne[Re]=Oe(De().mark(function dt(){return De().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.abrupt("return",gt);case 1:case"end":return pt.stop()}},dt)}))}else ne[Re]=D._requestFnForLink(qe)},Ee=0,_e=Object.keys(ne._links);Ee<_e.length;Ee++)fe();return ne}},{key:"_sendNormalRequest",value:(He=Oe(De().mark(function ne(D){var fe;return De().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return(fe=D).authority()===""&&(fe=fe.authority(this.url.authority())),fe.protocol()===""&&(fe=fe.protocol(this.url.protocol())),Ee.abrupt("return",Be.get(fe.toString()).then(function(_e){return _e.data}).catch(this._handleNetworkError));case 4:case"end":return Ee.stop()}},ne,this)})),function(ne){return He.apply(this,arguments)})},{key:"_parseResponse",value:function(ne){return ne._embedded&&ne._embedded.records?this._toCollectionPage(ne):this._parseRecord(ne)}},{key:"_toCollectionPage",value:function(ne){for(var D,fe,Ee=this,_e=0;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=K(Te);if(ie){var He=K(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ue(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function K(Te){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},K(Te)}var oe=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&q(ne,D)})(He,Te);var ie,pe,Se=I(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("accounts"),D}return ie=He,(pe=[{key:"accountId",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forSigner",value:function(ne){return this.url.setQuery("signer",ne),this}},{key:"forAsset",value:function(ne){return this.url.setQuery("asset","".concat(ne)),this}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"forLiquidityPool",value:function(ne){return this.url.setQuery("liquidity_pool",ne),this}}])&&F(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ye(Te){return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ye(Te)}function Pe(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=_t(Te);if(ie){var He=_t(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ye(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function _t(Te){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},_t(Te)}var qt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&<(ne,D)})(He,Te);var ie,pe,Se=vt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("assets"),D}return ie=He,(pe=[{key:"forCode",value:function(ne){return this.url.setQuery("asset_code",ne),this}},{key:"forIssuer",value:function(ne){return this.url.setQuery("asset_issuer",ne),this}}])&&Pe(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function me(Te){return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},me(Te)}function we(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=ke(Te);if(ie){var He=ke(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(me(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function ke(Te){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ke(Te)}var $e=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&V(ne,D)})(He,Te);var ie,pe,Se=Y(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("claimable_balances"),D}return ie=He,(pe=[{key:"claimableBalance",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"claimant",value:function(ne){return this.url.setQuery("claimant",ne),this}},{key:"asset",value:function(ne){return this.url.setQuery("asset",ne.toString()),this}}])&&we(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ze(Te){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ze(Te)}function je(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=It(Te);if(ie){var He=It(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ze(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function It(Te){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},It(Te)}var Nt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&nt(ne,D)})(He,Te);var ie,pe,Se=at(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"effects")).url.segment("effects"),D}return ie=He,(pe=[{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}},{key:"forOperation",value:function(ne){return this.forEndpoint("operations",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}}])&&je(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Rt(Te){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Rt(Te)}function Gt(Te,ie){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Gt(Te,ie)}function Jt(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Ht(Te);if(ie){var He=Ht(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Rt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Ht(Te){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Ht(Te)}var Zt=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Gt(He,ne)})(Se,Te);var ie,pe=Jt(Se);function Se(He,ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,Se),(D=pe.call(this,He)).url.segment("friendbot"),D.url.setQuery("addr",ne),D}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function Vt(Te){return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Vt(Te)}function Ut(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=mt(Te);if(ie){var He=mt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Vt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function mt(Te){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},mt(Te)}var St=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&en(ne,D)})(He,Te);var ie,pe,Se=Wt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("ledgers"),D}return ie=He,(pe=[{key:"ledger",value:function(ne){return this.filter.push(["ledgers",ne.toString()]),this}}])&&Ut(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Bt(Te){return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Bt(Te)}function Tt(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=ce(Te);if(ie){var He=ce(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Bt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function ce(Te){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ce(Te)}var Ce=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&kt(ne,D)})(He,Te);var ie,pe,Se=ln(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne)).url.segment("liquidity_pools"),D}return ie=He,pe=[{key:"forAssets",value:function(){for(var ne=arguments.length,D=new Array(ne),fe=0;fe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=yt(Te);if(ie){var He=yt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Ve(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function yt(Te){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},yt(Te)}var wt=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Ye(ne,D)})(He,Te);var ie,pe,Se=Ze(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"offers")).url.segment("offers"),D}return ie=He,(pe=[{key:"offer",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"buying",value:function(ne){return ne.isNative()?this.url.setQuery("buying_asset_type","native"):(this.url.setQuery("buying_asset_type",ne.getAssetType()),this.url.setQuery("buying_asset_code",ne.getCode()),this.url.setQuery("buying_asset_issuer",ne.getIssuer())),this}},{key:"selling",value:function(ne){return ne.isNative()?this.url.setQuery("selling_asset_type","native"):(this.url.setQuery("selling_asset_type",ne.getAssetType()),this.url.setQuery("selling_asset_code",ne.getCode()),this.url.setQuery("selling_asset_issuer",ne.getIssuer())),this}},{key:"sponsor",value:function(ne){return this.url.setQuery("sponsor",ne),this}},{key:"seller",value:function(ne){return this.url.setQuery("seller",ne),this}}])&&Qe(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function ht(Te){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ht(Te)}function ct(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Dt(Te);if(ie){var He=Dt(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(ht(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Dt(Te){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Dt(Te)}var tn=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&jt(ne,D)})(He,Te);var ie,pe,Se=zt(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"operations")).url.segment("operations"),D}return ie=He,(pe=[{key:"operation",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forClaimableBalance",value:function(ne){return this.forEndpoint("claimable_balances",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}},{key:"includeFailed",value:function(ne){return this.url.setQuery("include_failed",ne.toString()),this}}])&&ct(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function an(Te){return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},an(Te)}function fn(Te,ie){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},fn(Te,ie)}function wn(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=bn(Te);if(ie){var He=bn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(an(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function bn(Te){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},bn(Te)}var En=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&fn(He,ne)})(Se,Te);var ie,pe=wn(Se);function Se(He,ne,D){var fe;return function(Ee,_e){if(!(Ee instanceof _e))throw new TypeError("Cannot call a class as a function")}(this,Se),(fe=pe.call(this,He)).url.segment("order_book"),ne.isNative()?fe.url.setQuery("selling_asset_type","native"):(fe.url.setQuery("selling_asset_type",ne.getAssetType()),fe.url.setQuery("selling_asset_code",ne.getCode()),fe.url.setQuery("selling_asset_issuer",ne.getIssuer())),D.isNative()?fe.url.setQuery("buying_asset_type","native"):(fe.url.setQuery("buying_asset_type",D.getAssetType()),fe.url.setQuery("buying_asset_code",D.getCode()),fe.url.setQuery("buying_asset_issuer",D.getIssuer())),fe}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function qn(Te){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},qn(Te)}function lr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Jn(Te);if(ie){var He=Jn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(qn(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Jn(Te){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Jn(Te)}var ee=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Yn(ne,D)})(He,Te);var ie,pe,Se=ur(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"payments")).url.segment("payments"),D}return ie=He,(pe=[{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forTransaction",value:function(ne){return this.forEndpoint("transactions",ne)}}])&&lr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Kt(Te){return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Kt(Te)}function Vn(Te,ie){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Vn(Te,ie)}function nr(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Wn(Te);if(ie){var He=Wn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Kt(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Wn(Te){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Wn(Te)}var rr=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Vn(He,ne)})(Se,Te);var ie,pe=nr(Se);function Se(He,ne,D,fe){var Ee;if(function(Re,qe){if(!(Re instanceof qe))throw new TypeError("Cannot call a class as a function")}(this,Se),(Ee=pe.call(this,He)).url.segment("paths/strict-receive"),typeof ne=="string")Ee.url.setQuery("source_account",ne);else{var _e=ne.map(function(Re){return Re.isNative()?"native":"".concat(Re.getCode(),":").concat(Re.getIssuer())}).join(",");Ee.url.setQuery("source_assets",_e)}return Ee.url.setQuery("destination_amount",fe),D.isNative()?Ee.url.setQuery("destination_asset_type","native"):(Ee.url.setQuery("destination_asset_type",D.getAssetType()),Ee.url.setQuery("destination_asset_code",D.getCode()),Ee.url.setQuery("destination_asset_issuer",D.getIssuer())),Ee}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function At(Te){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},At(Te)}function Ct(Te,ie){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Se){return pe.__proto__=Se,pe},Ct(Te,ie)}function Cn(Te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=kn(Te);if(ie){var He=kn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(At(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function kn(Te){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},kn(Te)}var or=function(Te){(function(He,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");He.prototype=Object.create(ne&&ne.prototype,{constructor:{value:He,writable:!0,configurable:!0}}),Object.defineProperty(He,"prototype",{writable:!1}),ne&&Ct(He,ne)})(Se,Te);var ie,pe=Cn(Se);function Se(He,ne,D,fe){var Ee;if(function(Re,qe){if(!(Re instanceof qe))throw new TypeError("Cannot call a class as a function")}(this,Se),(Ee=pe.call(this,He)).url.segment("paths/strict-send"),ne.isNative()?Ee.url.setQuery("source_asset_type","native"):(Ee.url.setQuery("source_asset_type",ne.getAssetType()),Ee.url.setQuery("source_asset_code",ne.getCode()),Ee.url.setQuery("source_asset_issuer",ne.getIssuer())),Ee.url.setQuery("source_amount",D),typeof fe=="string")Ee.url.setQuery("destination_account",fe);else{var _e=fe.map(function(Re){return Re.isNative()?"native":"".concat(Re.getCode(),":").concat(Re.getIssuer())}).join(",");Ee.url.setQuery("destination_assets",_e)}return Ee}return ie=Se,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(M);function Ft(Te){return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Ft(Te)}function wr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Gn(Te);if(ie){var He=Gn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Ft(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Gn(Te){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Gn(Te)}var fr=[6e4,3e5,9e5,36e5,864e5,6048e5],dr=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Zn(ne,D)})(He,Te);var ie,pe,Se=er(He);function He(ne,D,fe,Ee,_e,Re,qe){var Ie;if(function(gt,dt){if(!(gt instanceof dt))throw new TypeError("Cannot call a class as a function")}(this,He),(Ie=Se.call(this,ne)).url.segment("trade_aggregations"),D.isNative()?Ie.url.setQuery("base_asset_type","native"):(Ie.url.setQuery("base_asset_type",D.getAssetType()),Ie.url.setQuery("base_asset_code",D.getCode()),Ie.url.setQuery("base_asset_issuer",D.getIssuer())),fe.isNative()?Ie.url.setQuery("counter_asset_type","native"):(Ie.url.setQuery("counter_asset_type",fe.getAssetType()),Ie.url.setQuery("counter_asset_code",fe.getCode()),Ie.url.setQuery("counter_asset_issuer",fe.getIssuer())),typeof Ee!="number"||typeof _e!="number")throw new G.oY("Invalid time bounds",[Ee,_e]);if(Ie.url.setQuery("start_time",Ee.toString()),Ie.url.setQuery("end_time",_e.toString()),!Ie.isValidResolution(Re))throw new G.oY("Invalid resolution",Re);if(Ie.url.setQuery("resolution",Re.toString()),!Ie.isValidOffset(qe,Re))throw new G.oY("Invalid offset",qe);return Ie.url.setQuery("offset",qe.toString()),Ie}return ie=He,(pe=[{key:"isValidResolution",value:function(ne){for(var D=0,fe=fr;DD||ne>=24*fe||ne%fe!=0)}}])&&wr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function In(Te){return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},In(Te)}function ir(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=Xn(Te);if(ie){var He=Xn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(In(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function Xn(Te){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},Xn(Te)}var pr=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&tr(ne,D)})(He,Te);var ie,pe,Se=hr(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"trades")).url.segment("trades"),D}return ie=He,(pe=[{key:"forAssetPair",value:function(ne,D){return ne.isNative()?this.url.setQuery("base_asset_type","native"):(this.url.setQuery("base_asset_type",ne.getAssetType()),this.url.setQuery("base_asset_code",ne.getCode()),this.url.setQuery("base_asset_issuer",ne.getIssuer())),D.isNative()?this.url.setQuery("counter_asset_type","native"):(this.url.setQuery("counter_asset_type",D.getAssetType()),this.url.setQuery("counter_asset_code",D.getCode()),this.url.setQuery("counter_asset_issuer",D.getIssuer())),this}},{key:"forOffer",value:function(ne){return this.url.setQuery("offer_id",ne),this}},{key:"forType",value:function(ne){return this.url.setQuery("trade_type",ne),this}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}}])&&ir(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Hn(Te){return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Hn(Te)}function gr(Te,ie){for(var pe=0;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,Se=zn(Te);if(ie){var He=zn(this).constructor;pe=Reflect.construct(Se,arguments,He)}else pe=Se.apply(this,arguments);return function(ne,D){if(D&&(Hn(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(ne)}(this,pe)}}function zn(Te){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},zn(Te)}var Pn=function(Te){(function(ne,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(D&&D.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),D&&Qn(ne,D)})(He,Te);var ie,pe,Se=yr(He);function He(ne){var D;return function(fe,Ee){if(!(fe instanceof Ee))throw new TypeError("Cannot call a class as a function")}(this,He),(D=Se.call(this,ne,"transactions")).url.segment("transactions"),D}return ie=He,(pe=[{key:"transaction",value:function(ne){var D=new M(this.url.clone());return D.filter.push([ne]),D}},{key:"forAccount",value:function(ne){return this.forEndpoint("accounts",ne)}},{key:"forClaimableBalance",value:function(ne){return this.forEndpoint("claimable_balances",ne)}},{key:"forLedger",value:function(ne){return this.forEndpoint("ledgers",ne.toString())}},{key:"forLiquidityPool",value:function(ne){return this.forEndpoint("liquidity_pools",ne)}},{key:"includeFailed",value:function(ne){return this.url.setQuery("include_failed",ne.toString()),this}}])&&gr(ie.prototype,pe),Object.defineProperty(ie,"prototype",{writable:!1}),He}(M);function Nn(Te){return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Nn(Te)}function On(){On=function(){return ie};var Te,ie={},pe=Object.prototype,Se=pe.hasOwnProperty,He=Object.defineProperty||function(ae,de,Ae){ae[de]=Ae.value},ne=typeof Symbol=="function"?Symbol:{},D=ne.iterator||"@@iterator",fe=ne.asyncIterator||"@@asyncIterator",Ee=ne.toStringTag||"@@toStringTag";function _e(ae,de,Ae){return Object.defineProperty(ae,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}),ae[de]}try{_e({},"")}catch{_e=function(de,Ae,Ge){return de[Ae]=Ge}}function Re(ae,de,Ae,Ge){var Me=de&&de.prototype instanceof Lt?de:Lt,Xe=Object.create(Me.prototype),tt=new hn(Ge||[]);return He(Xe,"_invoke",{value:Et(ae,Ae,tt)}),Xe}function qe(ae,de,Ae){try{return{type:"normal",arg:ae.call(de,Ae)}}catch(Ge){return{type:"throw",arg:Ge}}}ie.wrap=Re;var Ie="suspendedStart",gt="suspendedYield",dt="executing",pt="completed",xt={};function Lt(){}function bt(){}function Xt(){}var sn={};_e(sn,D,function(){return this});var nn=Object.getPrototypeOf,rn=nn&&nn(nn(_n([])));rn&&rn!==pe&&Se.call(rn,D)&&(sn=rn);var Yt=Xt.prototype=Lt.prototype=Object.create(sn);function cn(ae){["next","throw","return"].forEach(function(de){_e(ae,de,function(Ae){return this._invoke(de,Ae)})})}function dn(ae,de){function Ae(Me,Xe,tt,et){var it=qe(ae[Me],ae,Xe);if(it.type!=="throw"){var ft=it.arg,st=ft.value;return st&&Nn(st)=="object"&&Se.call(st,"__await")?de.resolve(st.__await).then(function(Pt){Ae("next",Pt,tt,et)},function(Pt){Ae("throw",Pt,tt,et)}):de.resolve(st).then(function(Pt){ft.value=Pt,tt(ft)},function(Pt){return Ae("throw",Pt,tt,et)})}et(it.arg)}var Ge;He(this,"_invoke",{value:function(Me,Xe){function tt(){return new de(function(et,it){Ae(Me,Xe,et,it)})}return Ge=Ge?Ge.then(tt,tt):tt()}})}function Et(ae,de,Ae){var Ge=Ie;return function(Me,Xe){if(Ge===dt)throw new Error("Generator is already running");if(Ge===pt){if(Me==="throw")throw Xe;return{value:Te,done:!0}}for(Ae.method=Me,Ae.arg=Xe;;){var tt=Ae.delegate;if(tt){var et=yn(tt,Ae);if(et){if(et===xt)continue;return et}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ge===Ie)throw Ge=pt,Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ge=dt;var it=qe(ae,de,Ae);if(it.type==="normal"){if(Ge=Ae.done?pt:gt,it.arg===xt)continue;return{value:it.arg,done:Ae.done}}it.type==="throw"&&(Ge=pt,Ae.method="throw",Ae.arg=it.arg)}}}function yn(ae,de){var Ae=de.method,Ge=ae.iterator[Ae];if(Ge===Te)return de.delegate=null,Ae==="throw"&&ae.iterator.return&&(de.method="return",de.arg=Te,yn(ae,de),de.method==="throw")||Ae!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ae+"' method")),xt;var Me=qe(Ge,ae.iterator,de.arg);if(Me.type==="throw")return de.method="throw",de.arg=Me.arg,de.delegate=null,xt;var Xe=Me.arg;return Xe?Xe.done?(de[ae.resultName]=Xe.value,de.next=ae.nextLoc,de.method!=="return"&&(de.method="next",de.arg=Te),de.delegate=null,xt):Xe:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,xt)}function Fn(ae){var de={tryLoc:ae[0]};1 in ae&&(de.catchLoc=ae[1]),2 in ae&&(de.finallyLoc=ae[2],de.afterLoc=ae[3]),this.tryEntries.push(de)}function Tn(ae){var de=ae.completion||{};de.type="normal",delete de.arg,ae.completion=de}function hn(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(Fn,this),this.reset(!0)}function _n(ae){if(ae||ae===""){var de=ae[D];if(de)return de.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var Ae=-1,Ge=function Me(){for(;++Ae=0;--Ge){var Me=this.tryEntries[Ge],Xe=Me.completion;if(Me.tryLoc==="root")return Ae("end");if(Me.tryLoc<=this.prev){var tt=Se.call(Me,"catchLoc"),et=Se.call(Me,"finallyLoc");if(tt&&et){if(this.prev=0;--Ae){var Ge=this.tryEntries[Ae];if(Ge.tryLoc<=this.prev&&Se.call(Ge,"finallyLoc")&&this.prev=0;--de){var Ae=this.tryEntries[de];if(Ae.finallyLoc===ae)return this.complete(Ae.completion,Ae.afterLoc),Tn(Ae),xt}},catch:function(ae){for(var de=this.tryEntries.length-1;de>=0;--de){var Ae=this.tryEntries[de];if(Ae.tryLoc===ae){var Ge=Ae.completion;if(Ge.type==="throw"){var Me=Ge.arg;Tn(Ae)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(ae,de,Ae){return this.delegate={iterator:_n(ae),resultName:de,nextLoc:Ae},this.method==="next"&&(this.arg=Te),xt}},ie}function sr(Te,ie,pe,Se,He,ne,D){try{var fe=Te[ne](D),Ee=fe.value}catch(_e){return void pe(_e)}fe.done?ie(Ee):Promise.resolve(Ee).then(Se,He)}function $t(Te){return function(){var ie=this,pe=arguments;return new Promise(function(Se,He){var ne=Te.apply(ie,pe);function D(Ee){sr(ne,Se,He,D,fe,"next",Ee)}function fe(Ee){sr(ne,Se,He,D,fe,"throw",Ee)}D(void 0)})}}function Ln(Te,ie){for(var pe=0;pe1&&arguments[1]!==void 0?arguments[1]:{};(function(gt,dt){if(!(gt instanceof dt))throw new TypeError("Cannot call a class as a function")})(this,Te),this.serverURL=A()(_e);var qe=Re.allowHttp===void 0?J.D.isAllowHttp():Re.allowHttp,Ie={};if(Re.appName&&(Ie["X-App-Name"]=Re.appName),Re.appVersion&&(Ie["X-App-Version"]=Re.appVersion),Re.authToken&&(Ie["X-Auth-Token"]=Re.authToken),Object.keys(Ie).length>0&&he.interceptors.request.use(function(gt){return gt.headers=Object.assign(gt.headers,Ie),gt}),this.serverURL.protocol()!=="https"&&!qe)throw new Error("Cannot connect to insecure horizon server")}var ie,pe,Se,He,ne,D,fe,Ee;return ie=Te,pe=[{key:"fetchTimebounds",value:(Ee=$t(On().mark(function _e(Re){var qe,Ie,gt=arguments;return On().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(qe=gt.length>1&>[1]!==void 0&>[1],!(Ie=le(this.serverURL.hostname()))){dt.next=4;break}return dt.abrupt("return",{minTime:0,maxTime:Ie+Re});case 4:if(!qe){dt.next=6;break}return dt.abrupt("return",{minTime:0,maxTime:Math.floor(new Date().getTime()/1e3)+Re});case 6:return dt.next=8,he.get(A()(this.serverURL).toString());case 8:return dt.next=10,this.fetchTimebounds(Re,!0);case 10:return dt.abrupt("return",dt.sent);case 11:case"end":return dt.stop()}},_e,this)})),function(_e){return Ee.apply(this,arguments)})},{key:"fetchBaseFee",value:(fe=$t(On().mark(function _e(){var Re;return On().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,this.feeStats();case 2:return Re=qe.sent,qe.abrupt("return",parseInt(Re.last_ledger_base_fee,10)||100);case 4:case"end":return qe.stop()}},_e,this)})),function(){return fe.apply(this,arguments)})},{key:"feeStats",value:(D=$t(On().mark(function _e(){var Re;return On().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return(Re=new M(A()(this.serverURL))).filter.push(["fee_stats"]),qe.abrupt("return",Re.call());case 3:case"end":return qe.stop()}},_e,this)})),function(){return D.apply(this,arguments)})},{key:"submitTransaction",value:(ne=$t(On().mark(function _e(Re){var qe,Ie=arguments;return On().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if((Ie.length>1&&Ie[1]!==void 0?Ie[1]:{skipMemoRequiredCheck:!1}).skipMemoRequiredCheck){gt.next=4;break}return gt.next=4,this.checkMemoRequired(Re);case 4:return qe=encodeURIComponent(Re.toEnvelope().toXDR().toString("base64")),gt.abrupt("return",he.post(A()(this.serverURL).segment("transactions").toString(),"tx=".concat(qe),{timeout:6e4}).then(function(dt){if(!dt.data.result_xdr)return dt.data;var pt,xt,Lt=o.xdr.TransactionResult.fromXDR(dt.data.result_xdr,"base64").result().value();return Lt.length&&(pt=Lt.map(function(bt,Xt){if(bt.value().switch().name!=="manageBuyOffer"&&bt.value().switch().name!=="manageSellOffer")return null;xt=!0;var sn,nn=new $(0),rn=new $(0),Yt=bt.value().value().success(),cn=Yt.offersClaimed().map(function(Tn){var hn=Tn.value(),_n="";switch(Tn.switch()){case o.xdr.ClaimAtomType.claimAtomTypeV0():_n=o.StrKey.encodeEd25519PublicKey(hn.sellerEd25519());break;case o.xdr.ClaimAtomType.claimAtomTypeOrderBook():_n=o.StrKey.encodeEd25519PublicKey(hn.sellerId().ed25519());break;default:throw new Error("Invalid offer result type: "+Tn.switch())}var ae=new $(hn.amountBought().toString()),de=new $(hn.amountSold().toString());nn=nn.plus(de),rn=rn.plus(ae);var Ae=o.Asset.fromOperation(hn.assetSold()),Ge=o.Asset.fromOperation(hn.assetBought()),Me={type:Ae.getAssetType(),assetCode:Ae.getCode(),issuer:Ae.getIssuer()},Xe={type:Ge.getAssetType(),assetCode:Ge.getCode(),issuer:Ge.getIssuer()};return{sellerId:_n,offerId:hn.offerId().toString(),assetSold:Me,amountSold:$n(de),assetBought:Xe,amountBought:$n(ae)}}),dn=Yt.offer().switch().name;if(typeof Yt.offer().value=="function"&&Yt.offer().value()){var Et=Yt.offer().value();sn={offerId:Et.offerId().toString(),selling:{},buying:{},amount:$n(Et.amount().toString()),price:{n:Et.price().n(),d:Et.price().d()}};var yn=o.Asset.fromOperation(Et.selling());sn.selling={type:yn.getAssetType(),assetCode:yn.getCode(),issuer:yn.getIssuer()};var Fn=o.Asset.fromOperation(Et.buying());sn.buying={type:Fn.getAssetType(),assetCode:Fn.getCode(),issuer:Fn.getIssuer()}}return{offersClaimed:cn,effect:dn,operationIndex:Xt,currentOffer:sn,amountBought:$n(nn),amountSold:$n(rn),isFullyOpen:!cn.length&&dn!=="manageOfferDeleted",wasPartiallyFilled:!!cn.length&&dn!=="manageOfferDeleted",wasImmediatelyFilled:!!cn.length&&dn==="manageOfferDeleted",wasImmediatelyDeleted:!cn.length&&dn==="manageOfferDeleted"}}).filter(function(bt){return!!bt})),Object.assign({},dt.data,{offerResults:xt?pt:void 0})}).catch(function(dt){return dt instanceof Error?Promise.reject(dt):Promise.reject(new G.Fz("Transaction submission failed. Server responded: ".concat(dt.status," ").concat(dt.statusText),dt.data))}));case 6:case"end":return gt.stop()}},_e,this)})),function(_e){return ne.apply(this,arguments)})},{key:"accounts",value:function(){return new oe(A()(this.serverURL))}},{key:"claimableBalances",value:function(){return new $e(A()(this.serverURL))}},{key:"ledgers",value:function(){return new St(A()(this.serverURL))}},{key:"transactions",value:function(){return new Pn(A()(this.serverURL))}},{key:"offers",value:function(){return new wt(A()(this.serverURL))}},{key:"orderbook",value:function(_e,Re){return new En(A()(this.serverURL),_e,Re)}},{key:"trades",value:function(){return new pr(A()(this.serverURL))}},{key:"operations",value:function(){return new tn(A()(this.serverURL))}},{key:"liquidityPools",value:function(){return new Ce(A()(this.serverURL))}},{key:"strictReceivePaths",value:function(_e,Re,qe){return new rr(A()(this.serverURL),_e,Re,qe)}},{key:"strictSendPaths",value:function(_e,Re,qe){return new or(A()(this.serverURL),_e,Re,qe)}},{key:"payments",value:function(){return new ee(A()(this.serverURL))}},{key:"effects",value:function(){return new Nt(A()(this.serverURL))}},{key:"friendbot",value:function(_e){return new Zt(A()(this.serverURL),_e)}},{key:"assets",value:function(){return new qt(A()(this.serverURL))}},{key:"loadAccount",value:(He=$t(On().mark(function _e(Re){var qe;return On().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,this.accounts().accountId(Re).call();case 2:return qe=Ie.sent,Ie.abrupt("return",new m(qe));case 4:case"end":return Ie.stop()}},_e,this)})),function(_e){return He.apply(this,arguments)})},{key:"tradeAggregation",value:function(_e,Re,qe,Ie,gt,dt){return new dr(A()(this.serverURL),_e,Re,qe,Ie,gt,dt)}},{key:"checkMemoRequired",value:(Se=$t(On().mark(function _e(Re){var qe,Ie,gt,dt;return On().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(Re instanceof o.FeeBumpTransaction&&(Re=Re.innerTransaction),Re.memo.type==="none"){pt.next=3;break}return pt.abrupt("return");case 3:qe=new Set,Ie=0;case 5:if(!(Ie{i.r(a),i.d(a,{AccountRequiresMemoError:()=>t.hs,BadRequestError:()=>t.oY,BadResponseError:()=>t.Fz,Config:()=>s.D,ContractSpec:()=>k.o,Federation:()=>c,Friendbot:()=>h,Horizon:()=>b,NetworkError:()=>t.F7,NotFoundError:()=>t.dR,SorobanRpc:()=>m,StellarToml:()=>e,Utils:()=>o.c,WebAuth:()=>u,default:()=>y});var t=i(6086),s=i(7939),o=i(1557),e=i(4700),c=i(2761),u=i(273),h=i(197),b=i(6881),m=i(8491),k=i(936),d=i(4172),w={};for(const _ in d)["default","Config","Utils","StellarToml","Federation","WebAuth","Friendbot","Horizon","SorobanRpc","ContractSpec","AccountRequiresMemoError","BadRequestError","BadResponseError","NetworkError","NotFoundError"].indexOf(_)<0&&(w[_]=()=>d[_]);i.d(a,w);const y=(f=i.hmd(f)).exports},8491:(f,a,i)=>{var t;i.r(a),i.d(a,{Api:()=>t,AxiosClient:()=>h,Durability:()=>be,Server:()=>Be,assembleTransaction:()=>U,default:()=>he,parseRawEvents:()=>j,parseRawSimulation:()=>Q}),function(le){var ge=function(Ue){return Ue.SUCCESS="SUCCESS",Ue.NOT_FOUND="NOT_FOUND",Ue.FAILED="FAILED",Ue}({});function Ne(Ue){return"transactionData"in Ue}le.GetTransactionStatus=ge,le.isSimulationError=function(Ue){return"error"in Ue},le.isSimulationSuccess=Ne,le.isSimulationRestore=function(Ue){return Ne(Ue)&&"restorePreamble"in Ue&&!!Ue.restorePreamble.transactionData},le.isSimulationRaw=function(Ue){return!Ue._parsed}}(t||(t={}));var s=i(4998),o=i.n(s),e=i(4172),c=i(1257),u=i(4147).i8;const h=c.Z.create({headers:{"X-Client-Name":"js-soroban-client","X-Client-Version":u}});function b(le){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},b(le)}function m(){m=function(){return ge};var le,ge={},Ne=Object.prototype,Ue=Ne.hasOwnProperty,Le=Object.defineProperty||function(V,Y,ke){V[Y]=ke.value},De=typeof Symbol=="function"?Symbol:{},Fe=De.iterator||"@@iterator",Oe=De.asyncIterator||"@@asyncIterator",We=De.toStringTag||"@@toStringTag";function ot(V,Y,ke){return Object.defineProperty(V,Y,{value:ke,enumerable:!0,configurable:!0,writable:!0}),V[Y]}try{ot({},"")}catch{ot=function(Y,ke,$e){return Y[ke]=$e}}function Ke(V,Y,ke,$e){var ze=Y&&Y.prototype instanceof N?Y:N,je=Object.create(ze.prototype),ut=new we($e||[]);return Le(je,"_invoke",{value:vt(V,ke,ut)}),je}function B(V,Y,ke){try{return{type:"normal",arg:V.call(Y,ke)}}catch($e){return{type:"throw",arg:$e}}}ge.wrap=Ke;var H="suspendedStart",M="suspendedYield",J="executing",ue="completed",F={};function N(){}function q(){}function I(){}var K={};ot(K,Fe,function(){return this});var oe=Object.getPrototypeOf,ye=oe&&oe(oe(xe([])));ye&&ye!==Ne&&Ue.call(ye,Fe)&&(K=ye);var Pe=I.prototype=N.prototype=Object.create(K);function rt(V){["next","throw","return"].forEach(function(Y){ot(V,Y,function(ke){return this._invoke(Y,ke)})})}function lt(V,Y){function ke(ze,je,ut,nt){var at=B(V[ze],V,je);if(at.type!=="throw"){var It=at.arg,Nt=It.value;return Nt&&b(Nt)=="object"&&Ue.call(Nt,"__await")?Y.resolve(Nt.__await).then(function(Rt){ke("next",Rt,ut,nt)},function(Rt){ke("throw",Rt,ut,nt)}):Y.resolve(Nt).then(function(Rt){It.value=Rt,ut(It)},function(Rt){return ke("throw",Rt,ut,nt)})}nt(at.arg)}var $e;Le(this,"_invoke",{value:function(ze,je){function ut(){return new Y(function(nt,at){ke(ze,je,nt,at)})}return $e=$e?$e.then(ut,ut):ut()}})}function vt(V,Y,ke){var $e=H;return function(ze,je){if($e===J)throw new Error("Generator is already running");if($e===ue){if(ze==="throw")throw je;return{value:le,done:!0}}for(ke.method=ze,ke.arg=je;;){var ut=ke.delegate;if(ut){var nt=_t(ut,ke);if(nt){if(nt===F)continue;return nt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if($e===H)throw $e=ue,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);$e=J;var at=B(V,Y,ke);if(at.type==="normal"){if($e=ke.done?ue:M,at.arg===F)continue;return{value:at.arg,done:ke.done}}at.type==="throw"&&($e=ue,ke.method="throw",ke.arg=at.arg)}}}function _t(V,Y){var ke=Y.method,$e=V.iterator[ke];if($e===le)return Y.delegate=null,ke==="throw"&&V.iterator.return&&(Y.method="return",Y.arg=le,_t(V,Y),Y.method==="throw")||ke!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+ke+"' method")),F;var ze=B($e,V.iterator,Y.arg);if(ze.type==="throw")return Y.method="throw",Y.arg=ze.arg,Y.delegate=null,F;var je=ze.arg;return je?je.done?(Y[V.resultName]=je.value,Y.next=V.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=le),Y.delegate=null,F):je:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,F)}function qt(V){var Y={tryLoc:V[0]};1 in V&&(Y.catchLoc=V[1]),2 in V&&(Y.finallyLoc=V[2],Y.afterLoc=V[3]),this.tryEntries.push(Y)}function me(V){var Y=V.completion||{};Y.type="normal",delete Y.arg,V.completion=Y}function we(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(qt,this),this.reset(!0)}function xe(V){if(V||V===""){var Y=V[Fe];if(Y)return Y.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var ke=-1,$e=function ze(){for(;++ke=0;--$e){var ze=this.tryEntries[$e],je=ze.completion;if(ze.tryLoc==="root")return ke("end");if(ze.tryLoc<=this.prev){var ut=Ue.call(ze,"catchLoc"),nt=Ue.call(ze,"finallyLoc");if(ut&&nt){if(this.prev=0;--ke){var $e=this.tryEntries[ke];if($e.tryLoc<=this.prev&&Ue.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var ze=$e;break}}ze&&(V==="break"||V==="continue")&&ze.tryLoc<=Y&&Y<=ze.finallyLoc&&(ze=null);var je=ze?ze.completion:{};return je.type=V,je.arg=Y,ze?(this.method="next",this.next=ze.finallyLoc,F):this.complete(je)},complete:function(V,Y){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Y&&(this.next=Y),F},finish:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.finallyLoc===V)return this.complete(ke.completion,ke.afterLoc),me(ke),F}},catch:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.tryLoc===V){var $e=ke.completion;if($e.type==="throw"){var ze=$e.arg;me(ke)}return ze}}throw new Error("illegal catch attempt")},delegateYield:function(V,Y,ke){return this.delegate={iterator:xe(V),resultName:Y,nextLoc:ke},this.method==="next"&&(this.arg=le),F}},ge}function k(le,ge,Ne,Ue,Le,De,Fe){try{var Oe=le[De](Fe),We=Oe.value}catch(ot){return void Ne(ot)}Oe.done?ge(We):Promise.resolve(We).then(Ue,Le)}function d(le){return function(){var ge=this,Ne=arguments;return new Promise(function(Ue,Le){var De=le.apply(ge,Ne);function Fe(We){k(De,Ue,Le,Fe,Oe,"next",We)}function Oe(We){k(De,Ue,Le,Fe,Oe,"throw",We)}Fe(void 0)})}}function w(le,ge){return y.apply(this,arguments)}function y(){return y=d(m().mark(function le(ge,Ne){var Ue,Le,De,Fe,Oe,We=arguments;return m().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:for(Ue=We.length,Le=new Array(Ue>2?Ue-2:0),De=2;De0?We:Ue.result.auth}))}return Fe}function Z(le){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},Z(le)}function se(le,ge){var Ne=typeof Symbol<"u"&&le[Symbol.iterator]||le["@@iterator"];if(!Ne){if(Array.isArray(le)||(Ne=function(We,ot){if(We){if(typeof We=="string")return te(We,ot);var Ke=Object.prototype.toString.call(We).slice(8,-1);if(Ke==="Object"&&We.constructor&&(Ke=We.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(We);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return te(We,ot)}}(le))||ge&&le&&typeof le.length=="number"){Ne&&(le=Ne);var Ue=0,Le=function(){};return{s:Le,n:function(){return Ue>=le.length?{done:!0}:{done:!1,value:le[Ue++]}},e:function(We){throw We},f:Le}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var De,Fe=!0,Oe=!1;return{s:function(){Ne=Ne.call(le)},n:function(){var We=Ne.next();return Fe=We.done,We},e:function(We){Oe=!0,De=We},f:function(){try{Fe||Ne.return==null||Ne.return()}finally{if(Oe)throw De}}}}function te(le,ge){(ge==null||ge>le.length)&&(ge=le.length);for(var Ne=0,Ue=new Array(ge);Ne=0;--$e){var ze=this.tryEntries[$e],je=ze.completion;if(ze.tryLoc==="root")return ke("end");if(ze.tryLoc<=this.prev){var ut=Ue.call(ze,"catchLoc"),nt=Ue.call(ze,"finallyLoc");if(ut&&nt){if(this.prev=0;--ke){var $e=this.tryEntries[ke];if($e.tryLoc<=this.prev&&Ue.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var ze=$e;break}}ze&&(V==="break"||V==="continue")&&ze.tryLoc<=Y&&Y<=ze.finallyLoc&&(ze=null);var je=ze?ze.completion:{};return je.type=V,je.arg=Y,ze?(this.method="next",this.next=ze.finallyLoc,F):this.complete(je)},complete:function(V,Y){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Y&&(this.next=Y),F},finish:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.finallyLoc===V)return this.complete(ke.completion,ke.afterLoc),me(ke),F}},catch:function(V){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ke=this.tryEntries[Y];if(ke.tryLoc===V){var $e=ke.completion;if($e.type==="throw"){var ze=$e.arg;me(ke)}return ze}}throw new Error("illegal catch attempt")},delegateYield:function(V,Y,ke){return this.delegate={iterator:xe(V),resultName:Y,nextLoc:ke},this.method==="next"&&(this.arg=le),F}},ge}function z(le,ge,Ne,Ue,Le,De,Fe){try{var Oe=le[De](Fe),We=Oe.value}catch(ot){return void Ne(ot)}Oe.done?ge(We):Promise.resolve(We).then(Ue,Le)}function G(le){return function(){var ge=this,Ne=arguments;return new Promise(function(Ue,Le){var De=le.apply(ge,Ne);function Fe(We){z(De,Ue,Le,Fe,Oe,"next",We)}function Oe(We){z(De,Ue,Le,Fe,Oe,"throw",We)}Fe(void 0)})}}function re(le,ge){for(var Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:{};if(function(ye,Pe){if(!(ye instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,le),this.serverURL=o()(K),oe.headers&&Object.keys(oe.headers).length===0&&h.interceptors.request.use(function(ye){return ye.headers=Object.assign(ye.headers,oe.headers),ye}),this.serverURL.protocol()!=="https"&&!oe.allowHttp)throw new Error("Cannot connect to insecure Soroban RPC server if `allowHttp` isn't set")}var ge,Ne,Ue,Le,De,Fe,Oe,We,ot,Ke,B,H,M,J,ue,F,N,q,I;return ge=le,Ne=[{key:"getAccount",value:(I=G(O().mark(function K(oe){var ye,Pe,rt;return O().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return ye=e.xdr.LedgerKey.account(new e.xdr.LedgerKeyAccount({accountId:e.Keypair.fromPublicKey(oe).xdrPublicKey()})),lt.next=3,this.getLedgerEntries(ye);case 3:if((Pe=lt.sent).entries.length!==0){lt.next=6;break}return lt.abrupt("return",Promise.reject({code:404,message:"Account not found: ".concat(oe)}));case 6:return rt=Pe.entries[0].val.account(),lt.abrupt("return",new e.Account(oe,rt.seqNum().toString()));case 8:case"end":return lt.stop()}},K,this)})),function(K){return I.apply(this,arguments)})},{key:"getHealth",value:(q=G(O().mark(function K(){return O().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",w(this.serverURL.toString(),"getHealth"));case 1:case"end":return oe.stop()}},K,this)})),function(){return q.apply(this,arguments)})},{key:"getContractData",value:(N=G(O().mark(function K(oe,ye){var Pe,rt,lt,vt,_t=arguments;return O().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(Pe=_t.length>2&&_t[2]!==void 0?_t[2]:be.Persistent,typeof oe!="string"){qt.next=5;break}rt=new e.Contract(oe).address().toScAddress(),qt.next=14;break;case 5:if(!(oe instanceof e.Address)){qt.next=9;break}rt=oe.toScAddress(),qt.next=14;break;case 9:if(!(oe instanceof e.Contract)){qt.next=13;break}rt=oe.address().toScAddress(),qt.next=14;break;case 13:throw new TypeError("unknown contract type: ".concat(oe));case 14:qt.t0=Pe,qt.next=qt.t0===be.Temporary?17:qt.t0===be.Persistent?19:21;break;case 17:return lt=e.xdr.ContractDataDurability.temporary(),qt.abrupt("break",22);case 19:return lt=e.xdr.ContractDataDurability.persistent(),qt.abrupt("break",22);case 21:throw new TypeError("invalid durability: ".concat(Pe));case 22:return vt=e.xdr.LedgerKey.contractData(new e.xdr.LedgerKeyContractData({key:ye,contract:rt,durability:lt})),qt.abrupt("return",this.getLedgerEntries(vt).then(function(me){return me.entries.length===0?Promise.reject({code:404,message:"Contract data not found. Contract: ".concat(e.Address.fromScAddress(rt).toString(),", Key: ").concat(ye.toXDR("base64"),", Durability: ").concat(Pe)}):me.entries[0]}));case 24:case"end":return qt.stop()}},K,this)})),function(K,oe){return N.apply(this,arguments)})},{key:"getLedgerEntries",value:(F=G(O().mark(function K(){var oe=arguments;return O().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",this._getLedgerEntries.apply(this,oe).then(L));case 1:case"end":return ye.stop()}},K,this)})),function(){return F.apply(this,arguments)})},{key:"_getLedgerEntries",value:(ue=G(O().mark(function K(){var oe,ye,Pe,rt=arguments;return O().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:for(oe=rt.length,ye=new Array(oe),Pe=0;Pe{i.r(a),i.d(a,{Api:()=>{},Resolver:()=>w,STELLAR_TOML_MAX_SIZE:()=>k});var t=i(1257),s=i(5424),o=i.n(s),e=i(7939);function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(y)}function u(){u=function(){return _};var y,_={},x=Object.prototype,E=x.hasOwnProperty,S=Object.defineProperty||function(Le,De,Fe){Le[De]=Fe.value},C=typeof Symbol=="function"?Symbol:{},T=C.iterator||"@@iterator",R=C.asyncIterator||"@@asyncIterator",W=C.toStringTag||"@@toStringTag";function j(Le,De,Fe){return Object.defineProperty(Le,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}),Le[De]}try{j({},"")}catch{j=function(De,Fe,Oe){return De[Fe]=Oe}}function L(Le,De,Fe,Oe){var We=De&&De.prototype instanceof P?De:P,ot=Object.create(We.prototype),Ke=new Ne(Oe||[]);return S(ot,"_invoke",{value:ve(Le,Fe,Ke)}),ot}function Q(Le,De,Fe){try{return{type:"normal",arg:Le.call(De,Fe)}}catch(Oe){return{type:"throw",arg:Oe}}}_.wrap=L;var U="suspendedStart",Z="suspendedYield",se="executing",te="completed",$={};function P(){}function A(){}function O(){}var z={};j(z,T,function(){return this});var G=Object.getPrototypeOf,re=G&&G(G(Ue([])));re&&re!==x&&E.call(re,T)&&(z=re);var X=O.prototype=P.prototype=Object.create(z);function be(Le){["next","throw","return"].forEach(function(De){j(Le,De,function(Fe){return this._invoke(De,Fe)})})}function Be(Le,De){function Fe(We,ot,Ke,B){var H=Q(Le[We],Le,ot);if(H.type!=="throw"){var M=H.arg,J=M.value;return J&&c(J)=="object"&&E.call(J,"__await")?De.resolve(J.__await).then(function(ue){Fe("next",ue,Ke,B)},function(ue){Fe("throw",ue,Ke,B)}):De.resolve(J).then(function(ue){M.value=ue,Ke(M)},function(ue){return Fe("throw",ue,Ke,B)})}B(H.arg)}var Oe;S(this,"_invoke",{value:function(We,ot){function Ke(){return new De(function(B,H){Fe(We,ot,B,H)})}return Oe=Oe?Oe.then(Ke,Ke):Ke()}})}function ve(Le,De,Fe){var Oe=U;return function(We,ot){if(Oe===se)throw new Error("Generator is already running");if(Oe===te){if(We==="throw")throw ot;return{value:y,done:!0}}for(Fe.method=We,Fe.arg=ot;;){var Ke=Fe.delegate;if(Ke){var B=he(Ke,Fe);if(B){if(B===$)continue;return B}}if(Fe.method==="next")Fe.sent=Fe._sent=Fe.arg;else if(Fe.method==="throw"){if(Oe===U)throw Oe=te,Fe.arg;Fe.dispatchException(Fe.arg)}else Fe.method==="return"&&Fe.abrupt("return",Fe.arg);Oe=se;var H=Q(Le,De,Fe);if(H.type==="normal"){if(Oe=Fe.done?te:Z,H.arg===$)continue;return{value:H.arg,done:Fe.done}}H.type==="throw"&&(Oe=te,Fe.method="throw",Fe.arg=H.arg)}}}function he(Le,De){var Fe=De.method,Oe=Le.iterator[Fe];if(Oe===y)return De.delegate=null,Fe==="throw"&&Le.iterator.return&&(De.method="return",De.arg=y,he(Le,De),De.method==="throw")||Fe!=="return"&&(De.method="throw",De.arg=new TypeError("The iterator does not provide a '"+Fe+"' method")),$;var We=Q(Oe,Le.iterator,De.arg);if(We.type==="throw")return De.method="throw",De.arg=We.arg,De.delegate=null,$;var ot=We.arg;return ot?ot.done?(De[Le.resultName]=ot.value,De.next=Le.nextLoc,De.method!=="return"&&(De.method="next",De.arg=y),De.delegate=null,$):ot:(De.method="throw",De.arg=new TypeError("iterator result is not an object"),De.delegate=null,$)}function le(Le){var De={tryLoc:Le[0]};1 in Le&&(De.catchLoc=Le[1]),2 in Le&&(De.finallyLoc=Le[2],De.afterLoc=Le[3]),this.tryEntries.push(De)}function ge(Le){var De=Le.completion||{};De.type="normal",delete De.arg,Le.completion=De}function Ne(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(le,this),this.reset(!0)}function Ue(Le){if(Le||Le===""){var De=Le[T];if(De)return De.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Fe=-1,Oe=function We(){for(;++Fe=0;--Oe){var We=this.tryEntries[Oe],ot=We.completion;if(We.tryLoc==="root")return Fe("end");if(We.tryLoc<=this.prev){var Ke=E.call(We,"catchLoc"),B=E.call(We,"finallyLoc");if(Ke&&B){if(this.prev=0;--Fe){var Oe=this.tryEntries[Fe];if(Oe.tryLoc<=this.prev&&E.call(Oe,"finallyLoc")&&this.prev=0;--De){var Fe=this.tryEntries[De];if(Fe.finallyLoc===Le)return this.complete(Fe.completion,Fe.afterLoc),ge(Fe),$}},catch:function(Le){for(var De=this.tryEntries.length-1;De>=0;--De){var Fe=this.tryEntries[De];if(Fe.tryLoc===Le){var Oe=Fe.completion;if(Oe.type==="throw"){var We=Oe.arg;ge(Fe)}return We}}throw new Error("illegal catch attempt")},delegateYield:function(Le,De,Fe){return this.delegate={iterator:Ue(Le),resultName:De,nextLoc:Fe},this.method==="next"&&(this.arg=y),$}},_}function h(y,_,x,E,S,C,T){try{var R=y[C](T),W=R.value}catch(j){return void x(j)}R.done?_(W):Promise.resolve(W).then(E,S)}function b(y,_){for(var x=0;x<_.length;x++){var E=_[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,m(E.key),E)}}function m(y){var _=function(x,E){if(c(x)!="object"||!x)return x;var S=x[Symbol.toPrimitive];if(S!==void 0){var C=S.call(x,E||"default");if(c(C)!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(x)}(y,"string");return c(_)=="symbol"?_:String(_)}var k=102400,d=t.Z.CancelToken,w=function(){function y(){(function(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")})(this,y)}var _,x,E,S,C;return _=y,x=null,E=[{key:"resolve",value:(S=u().mark(function T(R){var W,j,L,Q,U=arguments;return u().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return j=(W=U.length>1&&U[1]!==void 0?U[1]:{}).allowHttp===void 0?e.D.isAllowHttp():W.allowHttp,L=W.timeout===void 0?e.D.getTimeout():W.timeout,Q=j?"http":"https",Z.abrupt("return",t.Z.get("".concat(Q,"://").concat(R,"/.well-known/stellar.toml"),{maxContentLength:k,cancelToken:L?new d(function(se){return setTimeout(function(){return se("timeout of ".concat(L,"ms exceeded"))},L)}):void 0,timeout:L}).then(function(se){try{var te=o().parse(se.data);return Promise.resolve(te)}catch($){return Promise.reject(new Error("stellar.toml is invalid - Parsing error on line ".concat($.line,", column ").concat($.column,": ").concat($.message)))}}).catch(function(se){throw se.message.match(/^maxContentLength size/)?new Error("stellar.toml file exceeds allowed size of ".concat(k)):se}));case 5:case"end":return Z.stop()}},T)}),C=function(){var T=this,R=arguments;return new Promise(function(W,j){var L=S.apply(T,R);function Q(Z){h(L,W,j,Q,U,"next",Z)}function U(Z){h(L,W,j,Q,U,"throw",Z)}Q(void 0)})},function(T){return C.apply(this,arguments)})}],x&&b(_.prototype,x),E&&b(_,E),Object.defineProperty(_,"prototype",{writable:!1}),y}()},1557:(f,a,i)=>{function t(c){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t(c)}function s(c,u){for(var h=0;he});var e=function(){function c(){(function(m,k){if(!(m instanceof k))throw new TypeError("Cannot call a class as a function")})(this,c)}var u,h,b;return u=c,b=[{key:"validateTimebounds",value:function(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!m.timeBounds)return!1;var d=Math.floor(Date.now()/1e3),w=m.timeBounds,y=w.minTime,_=w.maxTime;return d>=Number.parseInt(y,10)-k&&d<=Number.parseInt(_,10)+k}}],(h=null)&&s(u.prototype,h),b&&s(u,b),Object.defineProperty(u,"prototype",{writable:!1}),c}()},273:(f,a,i)=>{i.r(a),i.d(a,{InvalidChallengeError:()=>w,buildChallengeTx:()=>W,gatherTxSigners:()=>Z,readChallengeTx:()=>j,verifyChallengeTxSigners:()=>Q,verifyChallengeTxThreshold:()=>L,verifyTxSignedBy:()=>U});var t=i(1798),s=i.n(t),o=i(4172),e=i(1557);function c(se){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},c(se)}function u(se){var te=m();return function(){var $,P=d(se);if(te){var A=d(this).constructor;$=Reflect.construct(P,arguments,A)}else $=P.apply(this,arguments);return function(O,z){if(z&&(c(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(O)}(this,$)}}function h(se){var te=typeof Map=="function"?new Map:void 0;return h=function($){if($===null||!function(A){try{return Function.toString.call(A).indexOf("[native code]")!==-1}catch{return typeof A=="function"}}($))return $;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(te!==void 0){if(te.has($))return te.get($);te.set($,P)}function P(){return b($,arguments,d(this).constructor)}return P.prototype=Object.create($.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),k(P,$)},h(se)}function b(se,te,$){return b=m()?Reflect.construct.bind():function(P,A,O){var z=[null];z.push.apply(z,A);var G=new(Function.bind.apply(P,z));return O&&k(G,O.prototype),G},b.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(se,te){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,P){return $.__proto__=P,$},k(se,te)}function d(se){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},d(se)}var w=function(se){(function(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),O&&k(A,O)})(P,se);var te,$=u(P);function P(A){var O;(function(G,re){if(!(G instanceof re))throw new TypeError("Cannot call a class as a function")})(this,P);var z=(this instanceof P?this.constructor:void 0).prototype;return(O=$.call(this,A)).__proto__=z,O.constructor=P,O.name="InvalidChallengeError",O}return te=P,Object.defineProperty(te,"prototype",{writable:!1}),te}(h(Error)),y=i(8764).Buffer;function _(se){return function(te){if(Array.isArray(te))return T(te)}(se)||R(se)||C(se)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function x(se,te){var $=typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(!$){if(Array.isArray(se)||($=C(se))||te&&se&&typeof se.length=="number"){$&&(se=$);var P=0,A=function(){};return{s:A,n:function(){return P>=se.length?{done:!0}:{done:!1,value:se[P++]}},e:function(re){throw re},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O,z=!0,G=!1;return{s:function(){$=$.call(se)},n:function(){var re=$.next();return z=re.done,re},e:function(re){G=!0,O=re},f:function(){try{z||$.return==null||$.return()}finally{if(G)throw O}}}}function E(se){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},E(se)}function S(se){return function(te){if(Array.isArray(te))return te}(se)||R(se)||C(se)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C(se,te){if(se){if(typeof se=="string")return T(se,te);var $=Object.prototype.toString.call(se).slice(8,-1);return $==="Object"&&se.constructor&&($=se.constructor.name),$==="Map"||$==="Set"?Array.from(se):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?T(se,te):void 0}}function T(se,te){(te==null||te>se.length)&&(te=se.length);for(var $=0,P=new Array(te);$3&&arguments[3]!==void 0?arguments[3]:300,A=arguments.length>4?arguments[4]:void 0,O=arguments.length>5?arguments[5]:void 0,z=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,G=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,re=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null;if(te.startsWith("M")&&z)throw Error("memo cannot be used if clientAccountID is a muxed account");var X=new o.Account(se.publicKey(),"-1"),be=Math.floor(Date.now()/1e3),Be=s()(48).toString("base64"),ve=new o.TransactionBuilder(X,{fee:o.BASE_FEE,networkPassphrase:A,timebounds:{minTime:be,maxTime:be+P}}).addOperation(o.Operation.manageData({name:"".concat($," auth"),value:Be,source:te})).addOperation(o.Operation.manageData({name:"web_auth_domain",value:O,source:X.accountId()}));if(G){if(!re)throw Error("clientSigningKey is required if clientDomain is provided");ve.addOperation(o.Operation.manageData({name:"client_domain",value:G,source:re}))}z&&ve.addMemo(o.Memo.id(z));var he=ve.build();return he.sign(se),he.toEnvelope().toXDR("base64").toString()}function j(se,te,$,P,A){var O,z;if(te.startsWith("M"))throw Error("Invalid serverAccountID: multiplexed accounts are not supported.");try{z=new o.Transaction(se,$)}catch{try{z=new o.FeeBumpTransaction(se,$)}catch{throw new w("Invalid challenge: unable to deserialize challengeTx transaction string")}throw new w("Invalid challenge: expected a Transaction but received a FeeBumpTransaction")}if(Number.parseInt(z.sequence,10)!==0)throw new w("The transaction sequence number should be zero");if(z.source!==te)throw new w("The transaction source account is not equal to the server's account");if(z.operations.length<1)throw new w("The transaction should contain at least one operation");var G=S(z.operations),re=G[0],X=G.slice(1);if(!re.source)throw new w("The transaction's operation should contain a source account");var be,Be=re.source,ve=null;if(z.memo.type!==o.MemoNone){if(Be.startsWith("M"))throw new w("The transaction has a memo but the client account ID is a muxed account");if(z.memo.type!==o.MemoID)throw new w("The transaction's memo must be of type `id`");ve=z.memo.value}if(re.type!=="manageData")throw new w("The transaction's operation type should be 'manageData'");if(z.timeBounds&&Number.parseInt((O=z.timeBounds)===null||O===void 0?void 0:O.maxTime,10)===o.TimeoutInfinite)throw new w("The transaction requires non-infinite timebounds");if(!e.c.validateTimebounds(z,300))throw new w("The transaction has expired");if(re.value===void 0)throw new w("The transaction's operation values should not be null");if(!re.value)throw new w("The transaction's operation value should not be null");if(y.from(re.value.toString(),"base64").length!==48)throw new w("The transaction's operation value should be a 64 bytes base64 random string");if(!P)throw new w("Invalid homeDomains: a home domain must be provided for verification");if(typeof P=="string")"".concat(P," auth")===re.name&&(be=P);else{if(!Array.isArray(P))throw new w("Invalid homeDomains: homeDomains type is ".concat(E(P)," but should be a string or an array"));be=P.find(function(Ne){return"".concat(Ne," auth")===re.name})}if(!be)throw new w("Invalid homeDomains: the transaction's operation key name does not match the expected home domain");var he,le=x(X);try{for(le.s();!(he=le.n()).done;){var ge=he.value;if(ge.type!=="manageData")throw new w("The transaction has operations that are not of type 'manageData'");if(ge.source!==te&&ge.name!=="client_domain")throw new w("The transaction has operations that are unrecognized");if(ge.name==="web_auth_domain"){if(ge.value===void 0)throw new w("'web_auth_domain' operation value should not be null");if(ge.value.compare(y.from(A)))throw new w("'web_auth_domain' operation value does not match ".concat(A))}}}catch(Ne){le.e(Ne)}finally{le.f()}if(!U(z,te))throw new w("Transaction not signed by server: '".concat(te,"'"));return{tx:z,clientAccountID:Be,matchedHomeDomain:be,memo:ve}}function L(se,te,$,P,A,O,z){for(var G=Q(se,te,$,A.map(function(ve){return ve.key}),O,z),re=0,X=function(){var ve,he=Be[be],le=((ve=A.find(function(ge){return ge.key===he}))===null||ve===void 0?void 0:ve.weight)||0;re+=le},be=0,Be=G;be{var i=function(u,h){return h||(h={}),u.split("").forEach(function(b,p){b in h||(h[b]=p)}),h},t={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};t.charmap=i(t.alphabet,t.charmap);var s={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};s.charmap=i(s.alphabet,s.charmap);var o={alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",charmap:{}};function e(u){if(this.buf=[],this.shift=8,this.carry=0,u){switch(u.type){case"rfc4648":this.charmap=a.rfc4648.charmap;break;case"crockford":this.charmap=a.crockford.charmap;break;case"base32hex":this.charmap=a.base32hex.charmap;break;default:throw new Error("invalid type")}u.charmap&&(this.charmap=u.charmap)}}function c(u){if(this.buf="",this.shift=3,this.carry=0,u){switch(u.type){case"rfc4648":this.alphabet=a.rfc4648.alphabet;break;case"crockford":this.alphabet=a.crockford.alphabet;break;case"base32hex":this.alphabet=a.base32hex.alphabet;break;default:throw new Error("invalid type")}u.alphabet?this.alphabet=u.alphabet:u.lc&&(this.alphabet=this.alphabet.toLowerCase())}}o.charmap=i(o.alphabet,o.charmap),e.prototype.charmap=t.charmap,e.prototype.write=function(u){var h=this.charmap,b=this.buf,p=this.shift,k=this.carry;return u.toUpperCase().split("").forEach(function(d){if(d!="="){var w=255&h[d];(p-=5)>0?k|=w<>-p),k=w<<(p+=8)&255):(b.push(k|w),p=8,k=0)}}),this.shift=p,this.carry=k,this},e.prototype.finalize=function(u){return u&&this.write(u),this.shift!==8&&this.carry!==0&&(this.buf.push(this.carry),this.shift=8,this.carry=0),this.buf},c.prototype.alphabet=t.alphabet,c.prototype.write=function(u){var h,b,p,k=this.shift,d=this.carry;for(p=0;p>k,this.buf+=this.alphabet[31&h],k>5&&(h=b>>(k-=5),this.buf+=this.alphabet[31&h]),d=b<<(k=5-k),k=8-k;return this.shift=k,this.carry=d,this},c.prototype.finalize=function(u){return u&&this.write(u),this.shift!==3&&(this.buf+=this.alphabet[31&this.carry],this.shift=3,this.carry=0),this.buf},a.encode=function(u,h){return new c(h).finalize(u)},a.decode=function(u,h){return new e(h).finalize(u)},a.Decoder=e,a.Encoder=c,a.charmap=i,a.crockford=s,a.rfc4648=t,a.base32hex=o},9742:(f,a)=>{a.byteLength=function(h){var b=c(h),p=b[0],k=b[1];return 3*(p+k)/4-k},a.toByteArray=function(h){var b,p,k=c(h),d=k[0],w=k[1],y=new s(function(E,S,C){return 3*(S+C)/4-C}(0,d,w)),_=0,x=w>0?d-4:d;for(p=0;p>16&255,y[_++]=b>>8&255,y[_++]=255&b;return w===2&&(b=t[h.charCodeAt(p)]<<2|t[h.charCodeAt(p+1)]>>4,y[_++]=255&b),w===1&&(b=t[h.charCodeAt(p)]<<10|t[h.charCodeAt(p+1)]<<4|t[h.charCodeAt(p+2)]>>2,y[_++]=b>>8&255,y[_++]=255&b),y},a.fromByteArray=function(h){for(var b,p=h.length,k=p%3,d=[],w=16383,y=0,_=p-k;y<_;y+=w)d.push(u(h,y,y+w>_?_:y+w));return k===1?(b=h[p-1],d.push(i[b>>2]+i[b<<4&63]+"==")):k===2&&(b=(h[p-2]<<8)+h[p-1],d.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),d.join("")};for(var i=[],t=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)i[e]=o[e],t[o.charCodeAt(e)]=e;function c(h){var b=h.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=h.indexOf("=");return p===-1&&(p=b),[p,p===b?0:4-p%4]}function u(h,b,p){for(var k,d,w=[],y=b;y>18&63]+i[d>>12&63]+i[d>>6&63]+i[63&d]);return w.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},4431:function(f,a,i){var t;(function(s){var o,e=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,c=Math.ceil,u=Math.floor,h="[BigNumber Error] ",b=h+"Number primitive has more than 15 significant digits: ",p=1e14,k=14,d=9007199254740991,w=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,_=1e9;function x(j){var L=0|j;return j>0||j===L?L:L-1}function E(j){for(var L,Q,U=1,Z=j.length,se=j[0]+"";UA^Q?1:-1;for($=(P=Z.length)<(A=se.length)?P:A,te=0;te<$;te++)if(Z[te]!=se[te])return Z[te]>se[te]^Q?1:-1;return P==A?0:P>A^Q?1:-1}function C(j,L,Q,U){if(jQ||j!==u(j))throw Error(h+(U||"Argument")+(typeof j=="number"?jQ?" out of range: ":" not an integer: ":" not a primitive number: ")+String(j))}function T(j){var L=j.c.length-1;return x(j.e/k)==L&&j.c[L]%2!=0}function R(j,L){return(j.length>1?j.charAt(0)+"."+j.slice(1):j)+(L<0?"e":"e+")+L}function W(j,L,Q){var U,Z;if(L<0){for(Z=Q+".";++L;Z+=Q);j=Z+j}else if(++L>(U=j.length)){for(Z=Q,L-=U;--L;Z+=Q);j+=Z}else Lle?Pe.c=Pe.e=null:M.e=10;I/=10,q++);return void(q>le?Pe.c=Pe.e=null:(Pe.e=q,Pe.c=[M]))}ye=String(M)}else{if(!e.test(ye=String(M)))return Z(Pe,ye,K);Pe.s=ye.charCodeAt(0)==45?(ye=ye.slice(1),-1):1}(q=ye.indexOf("."))>-1&&(ye=ye.replace(".","")),(I=ye.search(/e/i))>0?(q<0&&(q=I),q+=+ye.slice(I+1),ye=ye.substring(0,I)):q<0&&(q=ye.length)}else{if(C(J,2,De.length,"Base"),J==10&&Fe)return B(Pe=new Oe(M),X+Pe.e+1,be);if(ye=String(M),K=typeof M=="number"){if(0*M!=0)return Z(Pe,ye,K,J);if(Pe.s=1/M<0?(ye=ye.slice(1),-1):1,Oe.DEBUG&&ye.replace(/^0\.0*|\./,"").length>15)throw Error(b+M)}else Pe.s=ye.charCodeAt(0)===45?(ye=ye.slice(1),-1):1;for(ue=De.slice(0,J),q=I=0,oe=ye.length;Iq){q=oe;continue}}else if(!N&&(ye==ye.toUpperCase()&&(ye=ye.toLowerCase())||ye==ye.toLowerCase()&&(ye=ye.toUpperCase()))){N=!0,I=-1,q=0;continue}return Z(Pe,String(M),K,J)}K=!1,(q=(ye=U(ye,J,10,Pe.s)).indexOf("."))>-1?ye=ye.replace(".",""):q=ye.length}for(I=0;ye.charCodeAt(I)===48;I++);for(oe=ye.length;ye.charCodeAt(--oe)===48;);if(ye=ye.slice(I,++oe)){if(oe-=I,K&&Oe.DEBUG&&oe>15&&(M>d||M!==u(M)))throw Error(b+Pe.s*M);if((q=q-I-1)>le)Pe.c=Pe.e=null;else if(q=ve)?R(oe,I):W(oe,I,"0");else if(q=(M=B(new Oe(M),J,ue)).e,K=(oe=E(M.c)).length,F==1||F==2&&(J<=q||q<=Be)){for(;KK){if(--J>0)for(oe+=".";J--;oe+="0");}else if((J+=q-K)>0)for(q+1==K&&(oe+=".");J--;oe+="0");return M.s<0&&N?"-"+oe:oe}function ot(M,J){for(var ue,F,N=1,q=new Oe(M[0]);N=10;N/=10,F++);return(ue=F+ue*k-1)>le?M.c=M.e=null:ue=10;K/=10,N++);if((q=J-N)<0)q+=k,I=J,oe=rt[ye=0],Pe=u(oe/lt[N-I-1]%10);else if((ye=c((q+1)/k))>=rt.length){if(!F)break e;for(;rt.length<=ye;rt.push(0));oe=Pe=0,N=1,I=(q%=k)-k+1}else{for(oe=K=rt[ye],N=1;K>=10;K/=10,N++);Pe=(I=(q%=k)-k+N)<0?0:u(oe/lt[N-I-1]%10)}if(F=F||J<0||rt[ye+1]!=null||(I<0?oe:oe%lt[N-I-1]),F=ue<4?(Pe||F)&&(ue==0||ue==(M.s<0?3:2)):Pe>5||Pe==5&&(ue==4||F||ue==6&&(q>0?I>0?oe/lt[N-I]:0:rt[ye-1])%10&1||ue==(M.s<0?8:7)),J<1||!rt[0])return rt.length=0,F?(J-=M.e+1,rt[0]=lt[(k-J%k)%k],M.e=-J||0):rt[0]=M.e=0,M;if(q==0?(rt.length=ye,K=1,ye--):(rt.length=ye+1,K=lt[k-q],rt[ye]=I>0?u(oe/lt[N-I]%lt[I])*K:0),F)for(;;){if(ye==0){for(q=1,I=rt[0];I>=10;I/=10,q++);for(I=rt[0]+=K,K=1;I>=10;I/=10,K++);q!=K&&(M.e++,rt[0]==p&&(rt[0]=1));break}if(rt[ye]+=K,rt[ye]!=p)break;rt[ye--]=0,K=1}for(q=rt.length;rt[--q]===0;rt.pop());}M.e>le?M.c=M.e=null:M.e=ve?R(J,ue):W(J,ue,"0"),M.s<0?"-"+J:J)}return Oe.clone=j,Oe.ROUND_UP=0,Oe.ROUND_DOWN=1,Oe.ROUND_CEIL=2,Oe.ROUND_FLOOR=3,Oe.ROUND_HALF_UP=4,Oe.ROUND_HALF_DOWN=5,Oe.ROUND_HALF_EVEN=6,Oe.ROUND_HALF_CEIL=7,Oe.ROUND_HALF_FLOOR=8,Oe.EUCLID=9,Oe.config=Oe.set=function(M){var J,ue;if(M!=null){if(typeof M!="object")throw Error(h+"Object expected: "+M);if(M.hasOwnProperty(J="DECIMAL_PLACES")&&(C(ue=M[J],0,_,J),X=ue),M.hasOwnProperty(J="ROUNDING_MODE")&&(C(ue=M[J],0,8,J),be=ue),M.hasOwnProperty(J="EXPONENTIAL_AT")&&((ue=M[J])&&ue.pop?(C(ue[0],-_,0,J),C(ue[1],0,_,J),Be=ue[0],ve=ue[1]):(C(ue,-_,_,J),Be=-(ve=ue<0?-ue:ue))),M.hasOwnProperty(J="RANGE"))if((ue=M[J])&&ue.pop)C(ue[0],-_,-1,J),C(ue[1],1,_,J),he=ue[0],le=ue[1];else{if(C(ue,-_,_,J),!ue)throw Error(h+J+" cannot be zero: "+ue);he=-(le=ue<0?-ue:ue)}if(M.hasOwnProperty(J="CRYPTO")){if((ue=M[J])!==!!ue)throw Error(h+J+" not true or false: "+ue);if(ue){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw ge=!ue,Error(h+"crypto unavailable");ge=ue}else ge=ue}if(M.hasOwnProperty(J="MODULO_MODE")&&(C(ue=M[J],0,9,J),Ne=ue),M.hasOwnProperty(J="POW_PRECISION")&&(C(ue=M[J],0,_,J),Ue=ue),M.hasOwnProperty(J="FORMAT")){if(typeof(ue=M[J])!="object")throw Error(h+J+" not an object: "+ue);Le=ue}if(M.hasOwnProperty(J="ALPHABET")){if(typeof(ue=M[J])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(ue))throw Error(h+J+" invalid: "+ue);Fe=ue.slice(0,10)=="0123456789",De=ue}}return{DECIMAL_PLACES:X,ROUNDING_MODE:be,EXPONENTIAL_AT:[Be,ve],RANGE:[he,le],CRYPTO:ge,MODULO_MODE:Ne,POW_PRECISION:Ue,FORMAT:Le,ALPHABET:De}},Oe.isBigNumber=function(M){if(!M||M._isBigNumber!==!0)return!1;if(!Oe.DEBUG)return!0;var J,ue,F=M.c,N=M.e,q=M.s;e:if({}.toString.call(F)=="[object Array]"){if((q===1||q===-1)&&N>=-_&&N<=_&&N===u(N)){if(F[0]===0){if(N===0&&F.length===1)return!0;break e}if((J=(N+1)%k)<1&&(J+=k),String(F[0]).length==J){for(J=0;J=p||ue!==u(ue))break e;if(ue!==0)return!0}}}else if(F===null&&N===null&&(q===null||q===1||q===-1))return!0;throw Error(h+"Invalid BigNumber: "+M)},Oe.maximum=Oe.max=function(){return ot(arguments,-1)},Oe.minimum=Oe.min=function(){return ot(arguments,1)},Oe.random=(se=9007199254740992,te=Math.random()*se&2097151?function(){return u(Math.random()*se)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(M){var J,ue,F,N,q,I=0,K=[],oe=new Oe(re);if(M==null?M=X:C(M,0,_),N=c(M/k),ge)if(crypto.getRandomValues){for(J=crypto.getRandomValues(new Uint32Array(N*=2));I>>11))>=9e15?(ue=crypto.getRandomValues(new Uint32Array(2)),J[I]=ue[0],J[I+1]=ue[1]):(K.push(q%1e14),I+=2);I=N/2}else{if(!crypto.randomBytes)throw ge=!1,Error(h+"crypto unavailable");for(J=crypto.randomBytes(N*=7);I=9e15?crypto.randomBytes(7).copy(J,I):(K.push(q%1e14),I+=7);I=N/7}if(!ge)for(;I=10;q/=10,I++);IN-1&&(oe[I+1]==null&&(oe[I+1]=0),oe[I+1]+=oe[I]/N|0,oe[I]%=N)}return oe.reverse()}return function(ue,F,N,q,I){var K,oe,ye,Pe,rt,lt,vt,_t,qt=ue.indexOf("."),me=X,we=be;for(qt>=0&&(Pe=Ue,Ue=0,ue=ue.replace(".",""),lt=(_t=new Oe(F)).pow(ue.length-qt),Ue=Pe,_t.c=J(W(E(lt.c),lt.e,"0"),10,N,M),_t.e=_t.c.length),ye=Pe=(vt=J(ue,F,N,I?(K=De,M):(K=M,De))).length;vt[--Pe]==0;vt.pop());if(!vt[0])return K.charAt(0);if(qt<0?--ye:(lt.c=vt,lt.e=ye,lt.s=q,vt=(lt=Q(lt,_t,me,we,N)).c,rt=lt.r,ye=lt.e),qt=vt[oe=ye+me+1],Pe=N/2,rt=rt||oe<0||vt[oe+1]!=null,rt=we<4?(qt!=null||rt)&&(we==0||we==(lt.s<0?3:2)):qt>Pe||qt==Pe&&(we==4||rt||we==6&&1&vt[oe-1]||we==(lt.s<0?8:7)),oe<1||!vt[0])ue=rt?W(K.charAt(1),-me,K.charAt(0)):K.charAt(0);else{if(vt.length=oe,rt)for(--N;++vt[--oe]>N;)vt[oe]=0,oe||(++ye,vt=[1].concat(vt));for(Pe=vt.length;!vt[--Pe];);for(qt=0,ue="";qt<=Pe;ue+=K.charAt(vt[qt++]));ue=W(ue,ye,K.charAt(0))}return ue}}(),Q=function(){function M(F,N,q){var I,K,oe,ye,Pe=0,rt=F.length,lt=N%y,vt=N/y|0;for(F=F.slice();rt--;)Pe=((K=lt*(oe=F[rt]%y)+(I=vt*oe+(ye=F[rt]/y|0)*lt)%y*y+Pe)/q|0)+(I/y|0)+vt*ye,F[rt]=K%q;return Pe&&(F=[Pe].concat(F)),F}function J(F,N,q,I){var K,oe;if(q!=I)oe=q>I?1:-1;else for(K=oe=0;KN[K]?1:-1;break}return oe}function ue(F,N,q,I){for(var K=0;q--;)F[q]-=K,K=F[q]1;F.splice(0,1));}return function(F,N,q,I,K){var oe,ye,Pe,rt,lt,vt,_t,qt,me,we,xe,V,Y,ke,$e,ze,je,ut=F.s==N.s?1:-1,nt=F.c,at=N.c;if(!(nt&&nt[0]&&at&&at[0]))return new Oe(F.s&&N.s&&(nt?!at||nt[0]!=at[0]:at)?nt&&nt[0]==0||!at?0*ut:ut/0:NaN);for(me=(qt=new Oe(ut)).c=[],ut=q+(ye=F.e-N.e)+1,K||(K=p,ye=x(F.e/k)-x(N.e/k),ut=ut/k|0),Pe=0;at[Pe]==(nt[Pe]||0);Pe++);if(at[Pe]>(nt[Pe]||0)&&ye--,ut<0)me.push(1),rt=!0;else{for(ke=nt.length,ze=at.length,Pe=0,ut+=2,(lt=u(K/(at[0]+1)))>1&&(at=M(at,lt,K),nt=M(nt,lt,K),ze=at.length,ke=nt.length),Y=ze,xe=(we=nt.slice(0,ze)).length;xe=K/2&&$e++;do{if(lt=0,(oe=J(at,we,ze,xe))<0){if(V=we[0],ze!=xe&&(V=V*K+(we[1]||0)),(lt=u(V/$e))>1)for(lt>=K&&(lt=K-1),_t=(vt=M(at,lt,K)).length,xe=we.length;J(vt,we,_t,xe)==1;)lt--,ue(vt,ze<_t?je:at,_t,K),_t=vt.length,oe=1;else lt==0&&(oe=lt=1),_t=(vt=at.slice()).length;if(_t=10;ut/=10,Pe++);B(qt,q+(qt.e=Pe+ye*k-1)+1,I,rt)}else qt.e=ye,qt.r=+rt;return qt}}(),$=/^(-?)0([xbo])(?=\w[\w.]*$)/i,P=/^([^.]+)\.$/,A=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,z=/^\s*\+(?=[\w.])|^\s+|\s+$/g,Z=function(M,J,ue,F){var N,q=ue?J:J.replace(z,"");if(O.test(q))M.s=isNaN(q)?null:q<0?-1:1;else{if(!ue&&(q=q.replace($,function(I,K,oe){return N=(oe=oe.toLowerCase())=="x"?16:oe=="b"?2:8,F&&F!=N?I:K}),F&&(N=F,q=q.replace(P,"$1").replace(A,"0.$1")),J!=q))return new Oe(q,N);if(Oe.DEBUG)throw Error(h+"Not a"+(F?" base "+F:"")+" number: "+J);M.s=null}M.c=M.e=null},G.absoluteValue=G.abs=function(){var M=new Oe(this);return M.s<0&&(M.s=1),M},G.comparedTo=function(M,J){return S(this,new Oe(M,J))},G.decimalPlaces=G.dp=function(M,J){var ue,F,N,q=this;if(M!=null)return C(M,0,_),J==null?J=be:C(J,0,8),B(new Oe(q),M+q.e+1,J);if(!(ue=q.c))return null;if(F=((N=ue.length-1)-x(this.e/k))*k,N=ue[N])for(;N%10==0;N/=10,F--);return F<0&&(F=0),F},G.dividedBy=G.div=function(M,J){return Q(this,new Oe(M,J),X,be)},G.dividedToIntegerBy=G.idiv=function(M,J){return Q(this,new Oe(M,J),0,1)},G.exponentiatedBy=G.pow=function(M,J){var ue,F,N,q,I,K,oe,ye,Pe=this;if((M=new Oe(M)).c&&!M.isInteger())throw Error(h+"Exponent not an integer: "+H(M));if(J!=null&&(J=new Oe(J)),I=M.e>14,!Pe.c||!Pe.c[0]||Pe.c[0]==1&&!Pe.e&&Pe.c.length==1||!M.c||!M.c[0])return ye=new Oe(Math.pow(+H(Pe),I?M.s*(2-T(M)):+H(M))),J?ye.mod(J):ye;if(K=M.s<0,J){if(J.c?!J.c[0]:!J.s)return new Oe(NaN);(F=!K&&Pe.isInteger()&&J.isInteger())&&(Pe=Pe.mod(J))}else{if(M.e>9&&(Pe.e>0||Pe.e<-1||(Pe.e==0?Pe.c[0]>1||I&&Pe.c[1]>=24e7:Pe.c[0]<8e13||I&&Pe.c[0]<=9999975e7)))return q=Pe.s<0&&T(M)?-0:0,Pe.e>-1&&(q=1/q),new Oe(K?1/q:q);Ue&&(q=c(Ue/k+2))}for(I?(ue=new Oe(.5),K&&(M.s=1),oe=T(M)):oe=(N=Math.abs(+H(M)))%2,ye=new Oe(re);;){if(oe){if(!(ye=ye.times(Pe)).c)break;q?ye.c.length>q&&(ye.c.length=q):F&&(ye=ye.mod(J))}if(N){if((N=u(N/2))===0)break;oe=N%2}else if(B(M=M.times(ue),M.e+1,1),M.e>14)oe=T(M);else{if((N=+H(M))==0)break;oe=N%2}Pe=Pe.times(Pe),q?Pe.c&&Pe.c.length>q&&(Pe.c.length=q):F&&(Pe=Pe.mod(J))}return F?ye:(K&&(ye=re.div(ye)),J?ye.mod(J):q?B(ye,Ue,be,void 0):ye)},G.integerValue=function(M){var J=new Oe(this);return M==null?M=be:C(M,0,8),B(J,J.e+1,M)},G.isEqualTo=G.eq=function(M,J){return S(this,new Oe(M,J))===0},G.isFinite=function(){return!!this.c},G.isGreaterThan=G.gt=function(M,J){return S(this,new Oe(M,J))>0},G.isGreaterThanOrEqualTo=G.gte=function(M,J){return(J=S(this,new Oe(M,J)))===1||J===0},G.isInteger=function(){return!!this.c&&x(this.e/k)>this.c.length-2},G.isLessThan=G.lt=function(M,J){return S(this,new Oe(M,J))<0},G.isLessThanOrEqualTo=G.lte=function(M,J){return(J=S(this,new Oe(M,J)))===-1||J===0},G.isNaN=function(){return!this.s},G.isNegative=function(){return this.s<0},G.isPositive=function(){return this.s>0},G.isZero=function(){return!!this.c&&this.c[0]==0},G.minus=function(M,J){var ue,F,N,q,I=this,K=I.s;if(J=(M=new Oe(M,J)).s,!K||!J)return new Oe(NaN);if(K!=J)return M.s=-J,I.plus(M);var oe=I.e/k,ye=M.e/k,Pe=I.c,rt=M.c;if(!oe||!ye){if(!Pe||!rt)return Pe?(M.s=-J,M):new Oe(rt?I:NaN);if(!Pe[0]||!rt[0])return rt[0]?(M.s=-J,M):new Oe(Pe[0]?I:be==3?-0:0)}if(oe=x(oe),ye=x(ye),Pe=Pe.slice(),K=oe-ye){for((q=K<0)?(K=-K,N=Pe):(ye=oe,N=rt),N.reverse(),J=K;J--;N.push(0));N.reverse()}else for(F=(q=(K=Pe.length)<(J=rt.length))?K:J,K=J=0;J0)for(;J--;Pe[ue++]=0);for(J=p-1;F>K;){if(Pe[--F]=0;){for(ue=0,lt=V[N]%me,vt=V[N]/me|0,q=N+(I=oe);q>N;)ue=((ye=lt*(ye=xe[--I]%me)+(K=vt*ye+(Pe=xe[I]/me|0)*lt)%me*me+_t[q]+ue)/qt|0)+(K/me|0)+vt*Pe,_t[q--]=ye%qt;_t[q]=ue}return ue?++F:_t.splice(0,1),Ke(M,_t,F)},G.negated=function(){var M=new Oe(this);return M.s=-M.s||null,M},G.plus=function(M,J){var ue,F=this,N=F.s;if(J=(M=new Oe(M,J)).s,!N||!J)return new Oe(NaN);if(N!=J)return M.s=-J,F.minus(M);var q=F.e/k,I=M.e/k,K=F.c,oe=M.c;if(!q||!I){if(!K||!oe)return new Oe(N/0);if(!K[0]||!oe[0])return oe[0]?M:new Oe(K[0]?F:0*N)}if(q=x(q),I=x(I),K=K.slice(),N=q-I){for(N>0?(I=q,ue=oe):(N=-N,ue=K),ue.reverse();N--;ue.push(0));ue.reverse()}for((N=K.length)-(J=oe.length)<0&&(ue=oe,oe=K,K=ue,J=N),N=0;J;)N=(K[--J]=K[J]+oe[J]+N)/p|0,K[J]=p===K[J]?0:K[J]%p;return N&&(K=[N].concat(K),++I),Ke(M,K,I)},G.precision=G.sd=function(M,J){var ue,F,N,q=this;if(M!=null&&M!==!!M)return C(M,1,_),J==null?J=be:C(J,0,8),B(new Oe(q),M,J);if(!(ue=q.c))return null;if(F=(N=ue.length-1)*k+1,N=ue[N]){for(;N%10==0;N/=10,F--);for(N=ue[0];N>=10;N/=10,F++);}return M&&q.e+1>F&&(F=q.e+1),F},G.shiftedBy=function(M){return C(M,-9007199254740991,d),this.times("1e"+M)},G.squareRoot=G.sqrt=function(){var M,J,ue,F,N,q=this,I=q.c,K=q.s,oe=q.e,ye=X+4,Pe=new Oe("0.5");if(K!==1||!I||!I[0])return new Oe(!K||K<0&&(!I||I[0])?NaN:I?q:1/0);if((K=Math.sqrt(+H(q)))==0||K==1/0?(((J=E(I)).length+oe)%2==0&&(J+="0"),K=Math.sqrt(+J),oe=x((oe+1)/2)-(oe<0||oe%2),ue=new Oe(J=K==1/0?"5e"+oe:(J=K.toExponential()).slice(0,J.indexOf("e")+1)+oe)):ue=new Oe(K+""),ue.c[0]){for((K=(oe=ue.e)+ye)<3&&(K=0);;)if(N=ue,ue=Pe.times(N.plus(Q(q,N,ye,1))),E(N.c).slice(0,K)===(J=E(ue.c)).slice(0,K)){if(ue.e0&&_t>0){for(q=_t%K||K,Pe=vt.substr(0,q);q<_t;q+=K)Pe+=ye+vt.substr(q,K);oe>0&&(Pe+=ye+vt.slice(q)),lt&&(Pe="-"+Pe)}F=rt?Pe+(ue.decimalSeparator||"")+((oe=+ue.fractionGroupSize)?rt.replace(new RegExp("\\d{"+oe+"}\\B","g"),"$&"+(ue.fractionGroupSeparator||"")):rt):Pe}return(ue.prefix||"")+F+(ue.suffix||"")},G.toFraction=function(M){var J,ue,F,N,q,I,K,oe,ye,Pe,rt,lt,vt=this,_t=vt.c;if(M!=null&&(!(K=new Oe(M)).isInteger()&&(K.c||K.s!==1)||K.lt(re)))throw Error(h+"Argument "+(K.isInteger()?"out of range: ":"not an integer: ")+H(K));if(!_t)return new Oe(vt);for(J=new Oe(re),ye=ue=new Oe(re),F=oe=new Oe(re),lt=E(_t),q=J.e=lt.length-vt.e-1,J.c[0]=w[(I=q%k)<0?k+I:I],M=!M||K.comparedTo(J)>0?q>0?J:ye:K,I=le,le=1/0,K=new Oe(lt),oe.c[0]=0;Pe=Q(K,J,0,1),(N=ue.plus(Pe.times(F))).comparedTo(M)!=1;)ue=F,F=N,ye=oe.plus(Pe.times(N=ye)),oe=N,J=K.minus(Pe.times(N=J)),K=N;return N=Q(M.minus(ue),F,0,1),oe=oe.plus(N.times(ye)),ue=ue.plus(N.times(F)),oe.s=ye.s=vt.s,rt=Q(ye,F,q*=2,be).minus(vt).abs().comparedTo(Q(oe,ue,q,be).minus(vt).abs())<1?[ye,F]:[oe,ue],le=I,rt},G.toNumber=function(){return+H(this)},G.toPrecision=function(M,J){return M!=null&&C(M,1,_),We(this,M,J,2)},G.toString=function(M){var J,ue=this,F=ue.s,N=ue.e;return N===null?F?(J="Infinity",F<0&&(J="-"+J)):J="NaN":(M==null?J=N<=Be||N>=ve?R(E(ue.c),N):W(E(ue.c),N,"0"):M===10&&Fe?J=W(E((ue=B(new Oe(ue),X+N+1,be)).c),ue.e,"0"):(C(M,2,De.length,"Base"),J=U(W(E(ue.c),N,"0"),10,M,F,!0)),F<0&&ue.c[0]&&(J="-"+J)),J},G.valueOf=G.toJSON=function(){return H(this)},G._isBigNumber=!0,L!=null&&Oe.set(L),Oe}(),o.default=o.BigNumber=o,(t=(function(){return o}).call(a,i,a,f))===void 0||(f.exports=t)})()},8764:(f,a,i)=>{const t=i(9742),s=i(645),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=u,a.SlowBuffer=function(B){return+B!=B&&(B=0),u.alloc(+B)},a.INSPECT_MAX_BYTES=50;const e=2147483647;function c(B){if(B>e)throw new RangeError('The value "'+B+'" is invalid for option "size"');const H=new Uint8Array(B);return Object.setPrototypeOf(H,u.prototype),H}function u(B,H,M){if(typeof B=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(B)}return h(B,H,M)}function h(B,H,M){if(typeof B=="string")return function(F,N){if(typeof N=="string"&&N!==""||(N="utf8"),!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);const q=0|y(F,N);let I=c(q);const K=I.write(F,N);return K!==q&&(I=I.slice(0,K)),I}(B,H);if(ArrayBuffer.isView(B))return function(F){if(Fe(F,Uint8Array)){const N=new Uint8Array(F);return d(N.buffer,N.byteOffset,N.byteLength)}return k(F)}(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Fe(B,ArrayBuffer)||B&&Fe(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fe(B,SharedArrayBuffer)||B&&Fe(B.buffer,SharedArrayBuffer)))return d(B,H,M);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=B.valueOf&&B.valueOf();if(J!=null&&J!==B)return u.from(J,H,M);const ue=function(F){if(u.isBuffer(F)){const N=0|w(F.length),q=c(N);return q.length===0||F.copy(q,0,0,N),q}if(F.length!==void 0)return typeof F.length!="number"||Oe(F.length)?c(0):k(F);if(F.type==="Buffer"&&Array.isArray(F.data))return k(F.data)}(B);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return u.from(B[Symbol.toPrimitive]("string"),H,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function b(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function p(B){return b(B),c(B<0?0:0|w(B))}function k(B){const H=B.length<0?0:0|w(B.length),M=c(H);for(let J=0;J=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|B}function y(B,H){if(u.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Fe(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const M=B.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&M===0)return 0;let ue=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Ue(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*M;case"hex":return M>>>1;case"base64":return Le(B).length;default:if(ue)return J?-1:Ue(B).length;H=(""+H).toLowerCase(),ue=!0}}function _(B,H,M){let J=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0)<=(H>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return te(this,H,M);case"utf8":case"utf-8":return Q(this,H,M);case"ascii":return Z(this,H,M);case"latin1":case"binary":return se(this,H,M);case"base64":return L(this,H,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,H,M);default:if(J)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),J=!0}}function x(B,H,M){const J=B[H];B[H]=B[M],B[M]=J}function E(B,H,M,J,ue){if(B.length===0)return-1;if(typeof M=="string"?(J=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),Oe(M=+M)&&(M=ue?0:B.length-1),M<0&&(M=B.length+M),M>=B.length){if(ue)return-1;M=B.length-1}else if(M<0){if(!ue)return-1;M=0}if(typeof H=="string"&&(H=u.from(H,J)),u.isBuffer(H))return H.length===0?-1:S(B,H,M,J,ue);if(typeof H=="number")return H&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(B,H,M):Uint8Array.prototype.lastIndexOf.call(B,H,M):S(B,[H],M,J,ue);throw new TypeError("val must be string, number or Buffer")}function S(B,H,M,J,ue){let F,N=1,q=B.length,I=H.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(B.length<2||H.length<2)return-1;N=2,q/=2,I/=2,M/=2}function K(oe,ye){return N===1?oe[ye]:oe.readUInt16BE(ye*N)}if(ue){let oe=-1;for(F=M;Fq&&(M=q-I),F=M;F>=0;F--){let oe=!0;for(let ye=0;yeue&&(J=ue):J=ue;const F=H.length;let N;for(J>F/2&&(J=F/2),N=0;N>8,I=N%256,K.push(I),K.push(q);return K}(H,B.length-M),B,M,J)}function L(B,H,M){return H===0&&M===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(H,M))}function Q(B,H,M){M=Math.min(B.length,M);const J=[];let ue=H;for(;ue239?4:F>223?3:F>191?2:1;if(ue+q<=M){let I,K,oe,ye;switch(q){case 1:F<128&&(N=F);break;case 2:I=B[ue+1],(192&I)==128&&(ye=(31&F)<<6|63&I,ye>127&&(N=ye));break;case 3:I=B[ue+1],K=B[ue+2],(192&I)==128&&(192&K)==128&&(ye=(15&F)<<12|(63&I)<<6|63&K,ye>2047&&(ye<55296||ye>57343)&&(N=ye));break;case 4:I=B[ue+1],K=B[ue+2],oe=B[ue+3],(192&I)==128&&(192&K)==128&&(192&oe)==128&&(ye=(15&F)<<18|(63&I)<<12|(63&K)<<6|63&oe,ye>65535&&ye<1114112&&(N=ye))}}N===null?(N=65533,q=1):N>65535&&(N-=65536,J.push(N>>>10&1023|55296),N=56320|1023&N),J.push(N),ue+=q}return function(F){const N=F.length;if(N<=U)return String.fromCharCode.apply(String,F);let q="",I=0;for(;I"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(B,H,M){return h(B,H,M)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(B,H,M){return function(J,ue,F){return b(J),J<=0?c(J):ue!==void 0?typeof F=="string"?c(J).fill(ue,F):c(J).fill(ue):c(J)}(B,H,M)},u.allocUnsafe=function(B){return p(B)},u.allocUnsafeSlow=function(B){return p(B)},u.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==u.prototype},u.compare=function(B,H){if(Fe(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),Fe(H,Uint8Array)&&(H=u.from(H,H.offset,H.byteLength)),!u.isBuffer(B)||!u.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===H)return 0;let M=B.length,J=H.length;for(let ue=0,F=Math.min(M,J);ueJ.length?(u.isBuffer(F)||(F=u.from(F)),F.copy(J,ue)):Uint8Array.prototype.set.call(J,F,ue);else{if(!u.isBuffer(F))throw new TypeError('"list" argument must be an Array of Buffers');F.copy(J,ue)}ue+=F.length}return J},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(B+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(B,H,M,J,ue){if(Fe(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),!u.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(H===void 0&&(H=0),M===void 0&&(M=B?B.length:0),J===void 0&&(J=0),ue===void 0&&(ue=this.length),H<0||M>B.length||J<0||ue>this.length)throw new RangeError("out of range index");if(J>=ue&&H>=M)return 0;if(J>=ue)return-1;if(H>=M)return 1;if(this===B)return 0;let F=(ue>>>=0)-(J>>>=0),N=(M>>>=0)-(H>>>=0);const q=Math.min(F,N),I=this.slice(J,ue),K=B.slice(H,M);for(let oe=0;oe>>=0,isFinite(M)?(M>>>=0,J===void 0&&(J="utf8")):(J=M,M=void 0)}const ue=this.length-H;if((M===void 0||M>ue)&&(M=ue),B.length>0&&(M<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let F=!1;for(;;)switch(J){case"hex":return C(this,B,H,M);case"utf8":case"utf-8":return T(this,B,H,M);case"ascii":case"latin1":case"binary":return R(this,B,H,M);case"base64":return W(this,B,H,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,B,H,M);default:if(F)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),F=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const U=4096;function Z(B,H,M){let J="";M=Math.min(B.length,M);for(let ue=H;ueJ)&&(M=J);let ue="";for(let F=H;FM)throw new RangeError("Trying to access beyond buffer length")}function A(B,H,M,J,ue,F){if(!u.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>ue||HB.length)throw new RangeError("Index out of range")}function O(B,H,M,J,ue){he(H,J,ue,B,M,7);let F=Number(H&BigInt(4294967295));B[M++]=F,F>>=8,B[M++]=F,F>>=8,B[M++]=F,F>>=8,B[M++]=F;let N=Number(H>>BigInt(32)&BigInt(4294967295));return B[M++]=N,N>>=8,B[M++]=N,N>>=8,B[M++]=N,N>>=8,B[M++]=N,M}function z(B,H,M,J,ue){he(H,J,ue,B,M,7);let F=Number(H&BigInt(4294967295));B[M+7]=F,F>>=8,B[M+6]=F,F>>=8,B[M+5]=F,F>>=8,B[M+4]=F;let N=Number(H>>BigInt(32)&BigInt(4294967295));return B[M+3]=N,N>>=8,B[M+2]=N,N>>=8,B[M+1]=N,N>>=8,B[M]=N,M+8}function G(B,H,M,J,ue,F){if(M+J>B.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function re(B,H,M,J,ue){return H=+H,M>>>=0,ue||G(B,0,M,4),s.write(B,H,M,J,23,4),M+4}function X(B,H,M,J,ue){return H=+H,M>>>=0,ue||G(B,0,M,8),s.write(B,H,M,J,52,8),M+8}u.prototype.slice=function(B,H){const M=this.length;(B=~~B)<0?(B+=M)<0&&(B=0):B>M&&(B=M),(H=H===void 0?M:~~H)<0?(H+=M)<0&&(H=0):H>M&&(H=M),H>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B],ue=1,F=0;for(;++F>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B+--H],ue=1;for(;H>0&&(ue*=256);)J+=this[B+--H]*ue;return J},u.prototype.readUint8=u.prototype.readUInt8=function(B,H){return B>>>=0,H||P(B,1,this.length),this[B]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(B,H){return B>>>=0,H||P(B,2,this.length),this[B]|this[B+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(B,H){return B>>>=0,H||P(B,2,this.length),this[B]<<8|this[B+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(B,H){return B>>>=0,H||P(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(B,H){return B>>>=0,H||P(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},u.prototype.readBigUInt64LE=ot(function(B){le(B>>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=H+256*this[++B]+65536*this[++B]+this[++B]*2**24,ue=this[++B]+256*this[++B]+65536*this[++B]+M*2**24;return BigInt(J)+(BigInt(ue)<>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=H*2**24+65536*this[++B]+256*this[++B]+this[++B],ue=this[++B]*2**24+65536*this[++B]+256*this[++B]+M;return(BigInt(J)<>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B],ue=1,F=0;for(;++F=ue&&(J-=Math.pow(2,8*H)),J},u.prototype.readIntBE=function(B,H,M){B>>>=0,H>>>=0,M||P(B,H,this.length);let J=H,ue=1,F=this[B+--J];for(;J>0&&(ue*=256);)F+=this[B+--J]*ue;return ue*=128,F>=ue&&(F-=Math.pow(2,8*H)),F},u.prototype.readInt8=function(B,H){return B>>>=0,H||P(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},u.prototype.readInt16LE=function(B,H){B>>>=0,H||P(B,2,this.length);const M=this[B]|this[B+1]<<8;return 32768&M?4294901760|M:M},u.prototype.readInt16BE=function(B,H){B>>>=0,H||P(B,2,this.length);const M=this[B+1]|this[B]<<8;return 32768&M?4294901760|M:M},u.prototype.readInt32LE=function(B,H){return B>>>=0,H||P(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},u.prototype.readInt32BE=function(B,H){return B>>>=0,H||P(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},u.prototype.readBigInt64LE=ot(function(B){le(B>>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=this[B+4]+256*this[B+5]+65536*this[B+6]+(M<<24);return(BigInt(J)<>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=(H<<24)+65536*this[++B]+256*this[++B]+this[++B];return(BigInt(J)<>>=0,H||P(B,4,this.length),s.read(this,B,!0,23,4)},u.prototype.readFloatBE=function(B,H){return B>>>=0,H||P(B,4,this.length),s.read(this,B,!1,23,4)},u.prototype.readDoubleLE=function(B,H){return B>>>=0,H||P(B,8,this.length),s.read(this,B,!0,52,8)},u.prototype.readDoubleBE=function(B,H){return B>>>=0,H||P(B,8,this.length),s.read(this,B,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(B,H,M,J){B=+B,H>>>=0,M>>>=0,!J&&A(this,B,H,M,Math.pow(2,8*M)-1,0);let ue=1,F=0;for(this[H]=255&B;++F>>=0,M>>>=0,!J&&A(this,B,H,M,Math.pow(2,8*M)-1,0);let ue=M-1,F=1;for(this[H+ue]=255&B;--ue>=0&&(F*=256);)this[H+ue]=B/F&255;return H+M},u.prototype.writeUint8=u.prototype.writeUInt8=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,1,255,0),this[H]=255&B,H+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,65535,0),this[H]=255&B,this[H+1]=B>>>8,H+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,65535,0),this[H]=B>>>8,this[H+1]=255&B,H+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,4294967295,0),this[H+3]=B>>>24,this[H+2]=B>>>16,this[H+1]=B>>>8,this[H]=255&B,H+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,4294967295,0),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=255&B,H+4},u.prototype.writeBigUInt64LE=ot(function(B,H=0){return O(this,B,H,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ot(function(B,H=0){return z(this,B,H,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(B,H,M,J){if(B=+B,H>>>=0,!J){const q=Math.pow(2,8*M-1);A(this,B,H,M,q-1,-q)}let ue=0,F=1,N=0;for(this[H]=255&B;++ue>0)-N&255;return H+M},u.prototype.writeIntBE=function(B,H,M,J){if(B=+B,H>>>=0,!J){const q=Math.pow(2,8*M-1);A(this,B,H,M,q-1,-q)}let ue=M-1,F=1,N=0;for(this[H+ue]=255&B;--ue>=0&&(F*=256);)B<0&&N===0&&this[H+ue+1]!==0&&(N=1),this[H+ue]=(B/F>>0)-N&255;return H+M},u.prototype.writeInt8=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,1,127,-128),B<0&&(B=255+B+1),this[H]=255&B,H+1},u.prototype.writeInt16LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,32767,-32768),this[H]=255&B,this[H+1]=B>>>8,H+2},u.prototype.writeInt16BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,32767,-32768),this[H]=B>>>8,this[H+1]=255&B,H+2},u.prototype.writeInt32LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,2147483647,-2147483648),this[H]=255&B,this[H+1]=B>>>8,this[H+2]=B>>>16,this[H+3]=B>>>24,H+4},u.prototype.writeInt32BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=255&B,H+4},u.prototype.writeBigInt64LE=ot(function(B,H=0){return O(this,B,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ot(function(B,H=0){return z(this,B,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(B,H,M){return re(this,B,H,!0,M)},u.prototype.writeFloatBE=function(B,H,M){return re(this,B,H,!1,M)},u.prototype.writeDoubleLE=function(B,H,M){return X(this,B,H,!0,M)},u.prototype.writeDoubleBE=function(B,H,M){return X(this,B,H,!1,M)},u.prototype.copy=function(B,H,M,J){if(!u.isBuffer(B))throw new TypeError("argument should be a Buffer");if(M||(M=0),J||J===0||(J=this.length),H>=B.length&&(H=B.length),H||(H=0),J>0&&J=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),B.length-H>>=0,M=M===void 0?this.length:M>>>0,B||(B=0),typeof B=="number")for(ue=H;ue=J+4;M-=3)H=`_${B.slice(M-3,M)}${H}`;return`${B.slice(0,M)}${H}`}function he(B,H,M,J,ue,F){if(B>M||B3?H===0||H===BigInt(0)?`>= 0${N} and < 2${N} ** ${8*(F+1)}${N}`:`>= -(2${N} ** ${8*(F+1)-1}${N}) and < 2 ** ${8*(F+1)-1}${N}`:`>= ${H}${N} and <= ${M}${N}`,new be.ERR_OUT_OF_RANGE("value",q,B)}(function(N,q,I){le(q,"offset"),N[q]!==void 0&&N[q+I]!==void 0||ge(q,N.length-(I+1))})(J,ue,F)}function le(B,H){if(typeof B!="number")throw new be.ERR_INVALID_ARG_TYPE(H,"number",B)}function ge(B,H,M){throw Math.floor(B)!==B?(le(B,M),new be.ERR_OUT_OF_RANGE(M||"offset","an integer",B)):H<0?new be.ERR_BUFFER_OUT_OF_BOUNDS:new be.ERR_OUT_OF_RANGE(M||"offset",`>= ${M?1:0} and <= ${H}`,B)}Be("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Be("ERR_INVALID_ARG_TYPE",function(B,H){return`The "${B}" argument must be of type number. Received type ${typeof H}`},TypeError),Be("ERR_OUT_OF_RANGE",function(B,H,M){let J=`The value of "${B}" is out of range.`,ue=M;return Number.isInteger(M)&&Math.abs(M)>4294967296?ue=ve(String(M)):typeof M=="bigint"&&(ue=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(ue=ve(ue)),ue+="n"),J+=` It must be ${H}. Received ${ue}`,J},RangeError);const Ne=/[^+/0-9A-Za-z-_]/g;function Ue(B,H){let M;H=H||1/0;const J=B.length;let ue=null;const F=[];for(let N=0;N55295&&M<57344){if(!ue){if(M>56319){(H-=3)>-1&&F.push(239,191,189);continue}if(N+1===J){(H-=3)>-1&&F.push(239,191,189);continue}ue=M;continue}if(M<56320){(H-=3)>-1&&F.push(239,191,189),ue=M;continue}M=65536+(ue-55296<<10|M-56320)}else ue&&(H-=3)>-1&&F.push(239,191,189);if(ue=null,M<128){if((H-=1)<0)break;F.push(M)}else if(M<2048){if((H-=2)<0)break;F.push(M>>6|192,63&M|128)}else if(M<65536){if((H-=3)<0)break;F.push(M>>12|224,M>>6&63|128,63&M|128)}else{if(!(M<1114112))throw new Error("Invalid code point");if((H-=4)<0)break;F.push(M>>18|240,M>>12&63|128,M>>6&63|128,63&M|128)}}return F}function Le(B){return t.toByteArray(function(H){if((H=(H=H.split("=")[0]).trim().replace(Ne,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(B))}function De(B,H,M,J){let ue;for(ue=0;ue=H.length||ue>=B.length);++ue)H[ue+M]=B[ue];return ue}function Fe(B,H){return B instanceof H||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===H.name}function Oe(B){return B!=B}const We=function(){const B="0123456789abcdef",H=new Array(256);for(let M=0;M<16;++M){const J=16*M;for(let ue=0;ue<16;++ue)H[J+ue]=B[M]+B[ue]}return H}();function ot(B){return typeof BigInt>"u"?Ke:B}function Ke(){throw new Error("BigInt not supported")}},584:f=>{f.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(f,a,i)=>{var t=i(210),s=i(5559),o=s(t("String.prototype.indexOf"));f.exports=function(e,c){var u=t(e,!!c);return typeof u=="function"&&o(e,".prototype.")>-1?s(u):u}},5559:(f,a,i)=>{var t=i(8612),s=i(210),o=i(7771),e=s("%TypeError%"),c=s("%Function.prototype.apply%"),u=s("%Function.prototype.call%"),h=s("%Reflect.apply%",!0)||t.call(u,c),b=s("%Object.defineProperty%",!0),p=s("%Math.max%");if(b)try{b({},"a",{value:1})}catch{b=null}f.exports=function(d){if(typeof d!="function")throw new e("a function is required");var w=h(t,u,arguments);return o(w,1+p(0,d.length-(arguments.length-1)),!0)};var k=function(){return h(t,c,arguments)};b?b(f.exports,"apply",{value:k}):f.exports.apply=k},2296:(f,a,i)=>{var t=i(1044)(),s=i(210),o=t&&s("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch{o=!1}var e=s("%SyntaxError%"),c=s("%TypeError%"),u=i(7296);f.exports=function(h,b,p){if(!h||typeof h!="object"&&typeof h!="function")throw new c("`obj` must be an object or a function`");if(typeof b!="string"&&typeof b!="symbol")throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new c("`loose`, if provided, must be a boolean");var k=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,w=arguments.length>5?arguments[5]:null,y=arguments.length>6&&arguments[6],_=!!u&&u(h,b);if(o)o(h,b,{configurable:w===null&&_?_.configurable:!w,enumerable:k===null&&_?_.enumerable:!k,value:p,writable:d===null&&_?_.writable:!d});else{if(!y&&(k||d||w))throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");h[b]=p}}},7187:f=>{var a,i=typeof Reflect=="object"?Reflect:null,t=i&&typeof i.apply=="function"?i.apply:function(_,x,E){return Function.prototype.apply.call(_,x,E)};a=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var s=Number.isNaN||function(_){return _!=_};function o(){o.init.call(this)}f.exports=o,f.exports.once=function(_,x){return new Promise(function(E,S){function C(R){_.removeListener(x,T),S(R)}function T(){typeof _.removeListener=="function"&&_.removeListener("error",C),E([].slice.call(arguments))}y(_,x,T,{once:!0}),x!=="error"&&function(R,W,j){typeof R.on=="function"&&y(R,"error",W,j)}(_,C,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var e=10;function c(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function u(_){return _._maxListeners===void 0?o.defaultMaxListeners:_._maxListeners}function h(_,x,E,S){var C,T,R,W;if(c(E),(T=_._events)===void 0?(T=_._events=Object.create(null),_._eventsCount=0):(T.newListener!==void 0&&(_.emit("newListener",x,E.listener?E.listener:E),T=_._events),R=T[x]),R===void 0)R=T[x]=E,++_._eventsCount;else if(typeof R=="function"?R=T[x]=S?[E,R]:[R,E]:S?R.unshift(E):R.push(E),(C=u(_))>0&&R.length>C&&!R.warned){R.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=x,j.count=R.length,W=j,console&&console.warn&&console.warn(W)}return _}function b(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(_,x,E){var S={fired:!1,wrapFn:void 0,target:_,type:x,listener:E},C=b.bind(S);return C.listener=E,S.wrapFn=C,C}function k(_,x,E){var S=_._events;if(S===void 0)return[];var C=S[x];return C===void 0?[]:typeof C=="function"?E?[C.listener||C]:[C]:E?function(T){for(var R=new Array(T.length),W=0;W0&&(T=x[0]),T instanceof Error)throw T;var R=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw R.context=T,R}var W=C[_];if(W===void 0)return!1;if(typeof W=="function")t(W,this,x);else{var j=W.length,L=w(W,j);for(E=0;E=0;T--)if(E[T]===x||E[T].listener===x){R=E[T].listener,C=T;break}if(C<0)return this;C===0?E.shift():function(W,j){for(;j+1=0;S--)this.removeListener(_,x[S]);return this},o.prototype.listeners=function(_){return k(this,_,!0)},o.prototype.rawListeners=function(_){return k(this,_,!1)},o.listenerCount=function(_,x){return typeof _.listenerCount=="function"?_.listenerCount(x):d.call(_,x)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},8751:(f,a,i)=>{var t=i(8764).Buffer,s=i(8575).parse,o=i(7187),e=i(9267),c=i(8501),u=i(9539),h=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],b=[239,187,191],p=262144,k=/^(cookie|authorization)$/i;function d(_,x){var E=d.CONNECTING,S=x&&x.headers,C=!1;Object.defineProperty(this,"readyState",{get:function(){return E}}),Object.defineProperty(this,"url",{get:function(){return _}});var T,R=this;function W(P){E!==d.CLOSED&&(E=d.CONNECTING,te("error",new w("error",{message:P})),Z&&(_=Z,Z=null,C=!1),setTimeout(function(){E!==d.CONNECTING||R.connectionInProgress||(R.connectionInProgress=!0,se())},R.reconnectInterval))}R.reconnectInterval=1e3,R.connectionInProgress=!1;var j="";S&&S["Last-Event-ID"]&&(j=S["Last-Event-ID"],delete S["Last-Event-ID"]);var L=!1,Q="",U="",Z=null;function se(){var P=s(_),A=P.protocol==="https:";if(P.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},j&&(P.headers["Last-Event-ID"]=j),S){var O=C?function(Be){var ve={};for(var he in Be)k.test(he)||(ve[he]=Be[he]);return ve}(S):S;for(var z in O){var G=O[z];G&&(P.headers[z]=G)}}if(P.rejectUnauthorized=!(x&&!x.rejectUnauthorized),x&&x.createConnection!==void 0&&(P.createConnection=x.createConnection),x&&x.proxy){var re=s(x.proxy);A=re.protocol==="https:",P.protocol=A?"https:":"http:",P.path=_,P.headers.Host=P.host,P.hostname=re.hostname,P.host=re.host,P.port=re.port}if(x&&x.https){for(var X in x.https)if(h.indexOf(X)!==-1){var be=x.https[X];be!==void 0&&(P[X]=be)}}x&&x.withCredentials!==void 0&&(P.withCredentials=x.withCredentials),T=(A?e:c).request(P,function(Be){if(R.connectionInProgress=!1,Be.statusCode===500||Be.statusCode===502||Be.statusCode===503||Be.statusCode===504)return te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage})),void W();if(Be.statusCode===301||Be.statusCode===302||Be.statusCode===307){var ve=Be.headers.location;if(!ve)return void te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage}));var he=new URL(_).origin,le=new URL(ve).origin;return C=he!==le,Be.statusCode===307&&(Z=_),_=ve,void process.nextTick(se)}if(Be.statusCode!==200)return te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage})),R.close();var ge,Ne;E=d.OPEN,Be.on("close",function(){Be.removeAllListeners("close"),Be.removeAllListeners("end"),W()}),Be.on("end",function(){Be.removeAllListeners("close"),Be.removeAllListeners("end"),W()}),te("open",new w("open"));var Ue=0,Le=-1,De=0,Fe=0;Be.on("data",function(Oe){ge?(Oe.length>ge.length-Fe&&((De=2*ge.length+Oe.length)>p&&(De=ge.length+Oe.length+p),Ne=t.alloc(De),ge.copy(Ne,0,0,Fe),ge=Ne),Oe.copy(ge,Fe),Fe+=Oe.length):(function(J){return b.every(function(ue,F){return J[F]===ue})}(ge=Oe)&&(ge=ge.slice(b.length)),Fe=ge.length);for(var We=0,ot=Fe;We0&&(ge=ge.slice(We,Fe),Fe=ge.length)})}),T.on("error",function(Be){R.connectionInProgress=!1,W(Be.message)}),T.setNoDelay&&T.setNoDelay(!0),T.end()}function te(){R.listeners(arguments[0]).length>0&&R.emit.apply(R,arguments)}function $(P,A,O,z){if(z===0){if(Q.length>0){var G=U||"message";te(G,new y(G,{data:Q.slice(0,-1),lastEventId:j,origin:new URL(_).origin})),Q=""}U=void 0}else if(O>0){var re=O<0,X=0,be=P.slice(A,A+(re?z:O)).toString();A+=X=re?z:P[A+O+1]!==32?O+1:O+2;var Be=z-X,ve=P.slice(A,A+Be).toString();if(be==="data")Q+=ve+` -`;else if(be==="event")U=ve;else if(be==="id")j=ve;else if(be==="retry"){var he=parseInt(ve,10);Number.isNaN(he)||(R.reconnectInterval=he)}}}se(),this._close=function(){E!==d.CLOSED&&(E=d.CLOSED,T.abort&&T.abort(),T.xhr&&T.xhr.abort&&T.xhr.abort())}}function w(_,x){if(Object.defineProperty(this,"type",{writable:!1,value:_,enumerable:!0}),x)for(var E in x)x.hasOwnProperty(E)&&Object.defineProperty(this,E,{writable:!1,value:x[E],enumerable:!0})}function y(_,x){for(var E in Object.defineProperty(this,"type",{writable:!1,value:_,enumerable:!0}),x)x.hasOwnProperty(E)&&Object.defineProperty(this,E,{writable:!1,value:x[E],enumerable:!0})}f.exports=d,u.inherits(d,o.EventEmitter),d.prototype.constructor=d,["open","error","message"].forEach(function(_){Object.defineProperty(d.prototype,"on"+_,{get:function(){var x=this.listeners(_)[0];return x?x._listener?x._listener:x:void 0},set:function(x){this.removeAllListeners(_),this.addEventListener(_,x)}})}),Object.defineProperty(d,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(d,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(d,"CLOSED",{enumerable:!0,value:2}),d.prototype.CONNECTING=0,d.prototype.OPEN=1,d.prototype.CLOSED=2,d.prototype.close=function(){this._close()},d.prototype.addEventListener=function(_,x){typeof x=="function"&&(x._listener=x,this.on(_,x))},d.prototype.dispatchEvent=function(_){if(!_.type)throw new Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(_.type,_.detail)},d.prototype.removeEventListener=function(_,x){typeof x=="function"&&(x._listener=void 0,this.removeListener(_,x))}},4029:(f,a,i)=>{var t=i(5320),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty;f.exports=function(e,c,u){if(!t(c))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=u),s.call(e)==="[object Array]"?function(b,p,k){for(var d=0,w=b.length;d{var a=Object.prototype.toString,i=Math.max,t=function(s,o){for(var e=[],c=0;c{var t=i(7648);f.exports=Function.prototype.bind||t},210:(f,a,i)=>{var t,s=SyntaxError,o=Function,e=TypeError,c=function(te){try{return o('"use strict"; return ('+te+").constructor;")()}catch{}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch{u=null}var h=function(){throw new e},b=u?function(){try{return h}catch{try{return u(arguments,"callee").get}catch{return h}}}():h,p=i(1405)(),k=i(8185)(),d=Object.getPrototypeOf||(k?function(te){return te.__proto__}:null),w={},y=typeof Uint8Array<"u"&&d?d(Uint8Array):t,_={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":p&&d?d([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&d?d(d([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map<"u"&&p&&d?d(new Map()[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set<"u"&&p&&d?d(new Set()[Symbol.iterator]()):t,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&d?d(""[Symbol.iterator]()):t,"%Symbol%":p?Symbol:t,"%SyntaxError%":s,"%ThrowTypeError%":b,"%TypedArray%":y,"%TypeError%":e,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(d)try{null.error}catch(te){var x=d(d(te));_["%Error.prototype%"]=x}var E=function te($){var P;if($==="%AsyncFunction%")P=c("async function () {}");else if($==="%GeneratorFunction%")P=c("function* () {}");else if($==="%AsyncGeneratorFunction%")P=c("async function* () {}");else if($==="%AsyncGenerator%"){var A=te("%AsyncGeneratorFunction%");A&&(P=A.prototype)}else if($==="%AsyncIteratorPrototype%"){var O=te("%AsyncGenerator%");O&&d&&(P=d(O.prototype))}return _[$]=P,P},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=i(8612),T=i(8824),R=C.call(Function.call,Array.prototype.concat),W=C.call(Function.apply,Array.prototype.splice),j=C.call(Function.call,String.prototype.replace),L=C.call(Function.call,String.prototype.slice),Q=C.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,se=function(te,$){var P,A=te;if(T(S,A)&&(A="%"+(P=S[A])[0]+"%"),T(_,A)){var O=_[A];if(O===w&&(O=E(A)),O===void 0&&!$)throw new e("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:P,name:A,value:O}}throw new s("intrinsic "+te+" does not exist!")};f.exports=function(te,$){if(typeof te!="string"||te.length===0)throw new e("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new e('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,te)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=function(Ne){var Ue=L(Ne,0,1),Le=L(Ne,-1);if(Ue==="%"&&Le!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Le==="%"&&Ue!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var De=[];return j(Ne,U,function(Fe,Oe,We,ot){De[De.length]=We?j(ot,Z,"$1"):Oe||Fe}),De}(te),A=P.length>0?P[0]:"",O=se("%"+A+"%",$),z=O.name,G=O.value,re=!1,X=O.alias;X&&(A=X[0],W(P,R([0,1],X)));for(var be=1,Be=!0;be=P.length){var ge=u(G,ve);G=(Be=!!ge)&&"get"in ge&&!("originalValue"in ge.get)?ge.get:G[ve]}else Be=T(G,ve),G=G[ve];Be&&!re&&(_[z]=G)}}return G}},7296:(f,a,i)=>{var t=i(210)("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}f.exports=t},1044:(f,a,i)=>{var t=i(210)("%Object.defineProperty%",!0),s=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},f.exports=s},8185:f=>{var a={foo:{}},i=Object;f.exports=function(){return{__proto__:a}.foo===a.foo&&!({__proto__:null}instanceof i)}},1405:(f,a,i)=>{var t=typeof Symbol<"u"&&Symbol,s=i(5419);f.exports=function(){return typeof t=="function"&&typeof Symbol=="function"&&typeof t("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&s()}},5419:f=>{f.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},i=Symbol("test"),t=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;for(i in a[i]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var s=Object.getOwnPropertySymbols(a);if(s.length!==1||s[0]!==i||!Object.prototype.propertyIsEnumerable.call(a,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(a,i);if(o.value!==42||o.enumerable!==!0)return!1}return!0}},6410:(f,a,i)=>{var t=i(5419);f.exports=function(){return t()&&!!Symbol.toStringTag}},8824:(f,a,i)=>{var t=Function.prototype.call,s=Object.prototype.hasOwnProperty,o=i(8612);f.exports=o.call(t,s)},9267:(f,a,i)=>{var t=i(8501),s=i(8575),o=f.exports;for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);function c(u){if(typeof u=="string"&&(u=s.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}o.request=function(u,h){return u=c(u),t.request.call(this,u,h)},o.get=function(u,h){return u=c(u),t.get.call(this,u,h)}},645:(f,a)=>{a.read=function(i,t,s,o,e){var c,u,h=8*e-o-1,b=(1<>1,k=-7,d=s?e-1:0,w=s?-1:1,y=i[t+d];for(d+=w,c=y&(1<<-k)-1,y>>=-k,k+=h;k>0;c=256*c+i[t+d],d+=w,k-=8);for(u=c&(1<<-k)-1,c>>=-k,k+=o;k>0;u=256*u+i[t+d],d+=w,k-=8);if(c===0)c=1-p;else{if(c===b)return u?NaN:1/0*(y?-1:1);u+=Math.pow(2,o),c-=p}return(y?-1:1)*u*Math.pow(2,c-o)},a.write=function(i,t,s,o,e,c){var u,h,b,p=8*c-e-1,k=(1<>1,w=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:c-1,_=o?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,u=k):(u=Math.floor(Math.log(t)/Math.LN2),t*(b=Math.pow(2,-u))<1&&(u--,b*=2),(t+=u+d>=1?w/b:w*Math.pow(2,1-d))*b>=2&&(u++,b/=2),u+d>=k?(h=0,u=k):u+d>=1?(h=(t*b-1)*Math.pow(2,e),u+=d):(h=t*Math.pow(2,d-1)*Math.pow(2,e),u=0));e>=8;i[s+y]=255&h,y+=_,h/=256,e-=8);for(u=u<0;i[s+y]=255&u,y+=_,u/=256,p-=8);i[s+y-_]|=128*x}},5717:f=>{typeof Object.create=="function"?f.exports=function(a,i){i&&(a.super_=i,a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:f.exports=function(a,i){if(i){a.super_=i;var t=function(){};t.prototype=i.prototype,a.prototype=new t,a.prototype.constructor=a}}},2584:(f,a,i)=>{var t=i(6410)(),s=i(1924)("Object.prototype.toString"),o=function(u){return!(t&&u&&typeof u=="object"&&Symbol.toStringTag in u)&&s(u)==="[object Arguments]"},e=function(u){return!!o(u)||u!==null&&typeof u=="object"&&typeof u.length=="number"&&u.length>=0&&s(u)!=="[object Array]"&&s(u.callee)==="[object Function]"},c=function(){return o(arguments)}();o.isLegacyArguments=e,f.exports=c?o:e},5320:f=>{var a,i,t=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s(function(){throw 42},null,a)}catch(d){d!==i&&(s=null)}else s=null;var o=/^\s*class\b/,e=function(d){try{var w=t.call(d);return o.test(w)}catch{return!1}},c=function(d){try{return!e(d)&&(t.call(d),!0)}catch{return!1}},u=Object.prototype.toString,h=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),p=function(){return!1};if(typeof document=="object"){var k=document.all;u.call(k)===u.call(document.all)&&(p=function(d){if((b||!d)&&(d===void 0||typeof d=="object"))try{var w=u.call(d);return(w==="[object HTMLAllCollection]"||w==="[object HTML document.all class]"||w==="[object HTMLCollection]"||w==="[object Object]")&&d("")==null}catch{}return!1})}f.exports=s?function(d){if(p(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{s(d,null,a)}catch(w){if(w!==i)return!1}return!e(d)&&c(d)}:function(d){if(p(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(h)return c(d);if(e(d))return!1;var w=u.call(d);return!(w!=="[object Function]"&&w!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(w))&&c(d)}},8662:(f,a,i)=>{var t,s=Object.prototype.toString,o=Function.prototype.toString,e=/^\s*(?:function)?\*/,c=i(6410)(),u=Object.getPrototypeOf;f.exports=function(h){if(typeof h!="function")return!1;if(e.test(o.call(h)))return!0;if(!c)return s.call(h)==="[object GeneratorFunction]";if(!u)return!1;if(t===void 0){var b=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch{}}();t=!!b&&u(b)}return u(h)===t}},5692:(f,a,i)=>{var t=i(6430);f.exports=function(s){return!!t(s)}},631:(f,a,i)=>{var t=typeof Map=="function"&&Map.prototype,s=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=t&&s&&typeof s.get=="function"?s.get:null,e=t&&Map.prototype.forEach,c=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=c&&u&&typeof u.get=="function"?u.get:null,b=c&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap.prototype.has:null,k=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,x=String.prototype.match,E=String.prototype.slice,S=String.prototype.replace,C=String.prototype.toUpperCase,T=String.prototype.toLowerCase,R=RegExp.prototype.test,W=Array.prototype.concat,j=Array.prototype.join,L=Array.prototype.slice,Q=Math.floor,U=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,A=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(B){return B.__proto__}:null);function O(B,H){if(B===1/0||B===-1/0||B!=B||B&&B>-1e3&&B<1e3||R.call(/e/,H))return H;var M=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof B=="number"){var J=B<0?-Q(-B):Q(B);if(J!==B){var ue=String(J),F=E.call(H,ue.length+1);return S.call(ue,M,"$&_")+"."+S.call(S.call(F,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(H,M,"$&_")}var z=i(4654),G=z.custom,re=he(G)?G:null;function X(B,H,M){var J=(M.quoteStyle||H)==="double"?'"':"'";return J+B+J}function be(B){return S.call(String(B),/"/g,""")}function Be(B){return!(Ne(B)!=="[object Array]"||$&&typeof B=="object"&&$ in B)}function ve(B){return!(Ne(B)!=="[object RegExp]"||$&&typeof B=="object"&&$ in B)}function he(B){if(te)return B&&typeof B=="object"&&B instanceof Symbol;if(typeof B=="symbol")return!0;if(!B||typeof B!="object"||!se)return!1;try{return se.call(B),!0}catch{}return!1}f.exports=function B(H,M,J,ue){var F=M||{};if(ge(F,"quoteStyle")&&F.quoteStyle!=="single"&&F.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(F,"maxStringLength")&&(typeof F.maxStringLength=="number"?F.maxStringLength<0&&F.maxStringLength!==1/0:F.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!ge(F,"customInspect")||F.customInspect;if(typeof N!="boolean"&&N!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(F,"indent")&&F.indent!==null&&F.indent!==" "&&!(parseInt(F.indent,10)===F.indent&&F.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(F,"numericSeparator")&&typeof F.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=F.numericSeparator;if(H===void 0)return"undefined";if(H===null)return"null";if(typeof H=="boolean")return H?"true":"false";if(typeof H=="string")return Le(H,F);if(typeof H=="number"){if(H===0)return 1/0/H>0?"0":"-0";var I=String(H);return q?O(H,I):I}if(typeof H=="bigint"){var K=String(H)+"n";return q?O(H,K):K}var oe=F.depth===void 0?5:F.depth;if(J===void 0&&(J=0),J>=oe&&oe>0&&typeof H=="object")return Be(H)?"[Array]":"[Object]";var ye=function(nt,at){var It;if(nt.indent===" ")It=" ";else{if(!(typeof nt.indent=="number"&&nt.indent>0))return null;It=j.call(Array(nt.indent+1)," ")}return{base:It,prev:j.call(Array(at+1),It)}}(F,J);if(ue===void 0)ue=[];else if(Ue(ue,H)>=0)return"[Circular]";function Pe(nt,at,It){if(at&&(ue=L.call(ue)).push(at),It){var Nt={depth:F.depth};return ge(F,"quoteStyle")&&(Nt.quoteStyle=F.quoteStyle),B(nt,Nt,J+1,ue)}return B(nt,F,J+1,ue)}if(typeof H=="function"&&!ve(H)){var rt=function(nt){if(nt.name)return nt.name;var at=x.call(_.call(nt),/^function\s*([\w$]+)/);return at?at[1]:null}(H),lt=Ke(H,Pe);return"[Function"+(rt?": "+rt:" (anonymous)")+"]"+(lt.length>0?" { "+j.call(lt,", ")+" }":"")}if(he(H)){var vt=te?S.call(String(H),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(H);return typeof H!="object"||te?vt:Fe(vt)}if(function(nt){return!nt||typeof nt!="object"?!1:typeof HTMLElement<"u"&&nt instanceof HTMLElement?!0:typeof nt.nodeName=="string"&&typeof nt.getAttribute=="function"}(H)){for(var _t="<"+T.call(String(H.nodeName)),qt=H.attributes||[],me=0;me"}if(Be(H)){if(H.length===0)return"[]";var we=Ke(H,Pe);return ye&&!function(nt){for(var at=0;at=0)return!1;return!0}(we)?"["+ot(we,ye)+"]":"[ "+j.call(we,", ")+" ]"}if(function(nt){return!(Ne(nt)!=="[object Error]"||$&&typeof nt=="object"&&$ in nt)}(H)){var xe=Ke(H,Pe);return"cause"in Error.prototype||!("cause"in H)||P.call(H,"cause")?xe.length===0?"["+String(H)+"]":"{ ["+String(H)+"] "+j.call(xe,", ")+" }":"{ ["+String(H)+"] "+j.call(W.call("[cause]: "+Pe(H.cause),xe),", ")+" }"}if(typeof H=="object"&&N){if(re&&typeof H[re]=="function"&&z)return z(H,{depth:oe-J});if(N!=="symbol"&&typeof H.inspect=="function")return H.inspect()}if(function(nt){if(!o||!nt||typeof nt!="object")return!1;try{o.call(nt);try{h.call(nt)}catch{return!0}return nt instanceof Map}catch{}return!1}(H)){var V=[];return e&&e.call(H,function(nt,at){V.push(Pe(at,H,!0)+" => "+Pe(nt,H))}),We("Map",o.call(H),V,ye)}if(function(nt){if(!h||!nt||typeof nt!="object")return!1;try{h.call(nt);try{o.call(nt)}catch{return!0}return nt instanceof Set}catch{}return!1}(H)){var Y=[];return b&&b.call(H,function(nt){Y.push(Pe(nt,H))}),We("Set",h.call(H),Y,ye)}if(function(nt){if(!p||!nt||typeof nt!="object")return!1;try{p.call(nt,p);try{k.call(nt,k)}catch{return!0}return nt instanceof WeakMap}catch{}return!1}(H))return Oe("WeakMap");if(function(nt){if(!k||!nt||typeof nt!="object")return!1;try{k.call(nt,k);try{p.call(nt,p)}catch{return!0}return nt instanceof WeakSet}catch{}return!1}(H))return Oe("WeakSet");if(function(nt){if(!d||!nt||typeof nt!="object")return!1;try{return d.call(nt),!0}catch{}return!1}(H))return Oe("WeakRef");if(function(nt){return!(Ne(nt)!=="[object Number]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(Pe(Number(H)));if(function(nt){if(!nt||typeof nt!="object"||!U)return!1;try{return U.call(nt),!0}catch{}return!1}(H))return Fe(Pe(U.call(H)));if(function(nt){return!(Ne(nt)!=="[object Boolean]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(w.call(H));if(function(nt){return!(Ne(nt)!=="[object String]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(Pe(String(H)));if(typeof window<"u"&&H===window)return"{ [object Window] }";if(H===i.g)return"{ [object globalThis] }";if(!function(nt){return!(Ne(nt)!=="[object Date]"||$&&typeof nt=="object"&&$ in nt)}(H)&&!ve(H)){var ke=Ke(H,Pe),$e=A?A(H)===Object.prototype:H instanceof Object||H.constructor===Object,ze=H instanceof Object?"":"null prototype",je=!$e&&$&&Object(H)===H&&$ in H?E.call(Ne(H),8,-1):ze?"Object":"",ut=($e||typeof H.constructor!="function"?"":H.constructor.name?H.constructor.name+" ":"")+(je||ze?"["+j.call(W.call([],je||[],ze||[]),": ")+"] ":"");return ke.length===0?ut+"{}":ye?ut+"{"+ot(ke,ye)+"}":ut+"{ "+j.call(ke,", ")+" }"}return String(H)};var le=Object.prototype.hasOwnProperty||function(B){return B in this};function ge(B,H){return le.call(B,H)}function Ne(B){return y.call(B)}function Ue(B,H){if(B.indexOf)return B.indexOf(H);for(var M=0,J=B.length;MH.maxStringLength){var M=B.length-H.maxStringLength,J="... "+M+" more character"+(M>1?"s":"");return Le(E.call(B,0,H.maxStringLength),H)+J}return X(S.call(S.call(B,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,De),"single",H)}function De(B){var H=B.charCodeAt(0),M={8:"b",9:"t",10:"n",12:"f",13:"r"}[H];return M?"\\"+M:"\\x"+(H<16?"0":"")+C.call(H.toString(16))}function Fe(B){return"Object("+B+")"}function Oe(B){return B+" { ? }"}function We(B,H,M,J){return B+" ("+H+") {"+(J?ot(M,J):j.call(M,", "))+"}"}function ot(B,H){if(B.length===0)return"";var M=` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C(se,te){if(se){if(typeof se=="string")return T(se,te);var $=Object.prototype.toString.call(se).slice(8,-1);return $==="Object"&&se.constructor&&($=se.constructor.name),$==="Map"||$==="Set"?Array.from(se):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?T(se,te):void 0}}function T(se,te){(te==null||te>se.length)&&(te=se.length);for(var $=0,P=new Array(te);$3&&arguments[3]!==void 0?arguments[3]:300,A=arguments.length>4?arguments[4]:void 0,O=arguments.length>5?arguments[5]:void 0,z=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,G=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,re=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null;if(te.startsWith("M")&&z)throw Error("memo cannot be used if clientAccountID is a muxed account");var X=new o.Account(se.publicKey(),"-1"),be=Math.floor(Date.now()/1e3),Be=s()(48).toString("base64"),ve=new o.TransactionBuilder(X,{fee:o.BASE_FEE,networkPassphrase:A,timebounds:{minTime:be,maxTime:be+P}}).addOperation(o.Operation.manageData({name:"".concat($," auth"),value:Be,source:te})).addOperation(o.Operation.manageData({name:"web_auth_domain",value:O,source:X.accountId()}));if(G){if(!re)throw Error("clientSigningKey is required if clientDomain is provided");ve.addOperation(o.Operation.manageData({name:"client_domain",value:G,source:re}))}z&&ve.addMemo(o.Memo.id(z));var he=ve.build();return he.sign(se),he.toEnvelope().toXDR("base64").toString()}function j(se,te,$,P,A){var O,z;if(te.startsWith("M"))throw Error("Invalid serverAccountID: multiplexed accounts are not supported.");try{z=new o.Transaction(se,$)}catch{try{z=new o.FeeBumpTransaction(se,$)}catch{throw new w("Invalid challenge: unable to deserialize challengeTx transaction string")}throw new w("Invalid challenge: expected a Transaction but received a FeeBumpTransaction")}if(Number.parseInt(z.sequence,10)!==0)throw new w("The transaction sequence number should be zero");if(z.source!==te)throw new w("The transaction source account is not equal to the server's account");if(z.operations.length<1)throw new w("The transaction should contain at least one operation");var G=S(z.operations),re=G[0],X=G.slice(1);if(!re.source)throw new w("The transaction's operation should contain a source account");var be,Be=re.source,ve=null;if(z.memo.type!==o.MemoNone){if(Be.startsWith("M"))throw new w("The transaction has a memo but the client account ID is a muxed account");if(z.memo.type!==o.MemoID)throw new w("The transaction's memo must be of type `id`");ve=z.memo.value}if(re.type!=="manageData")throw new w("The transaction's operation type should be 'manageData'");if(z.timeBounds&&Number.parseInt((O=z.timeBounds)===null||O===void 0?void 0:O.maxTime,10)===o.TimeoutInfinite)throw new w("The transaction requires non-infinite timebounds");if(!e.c.validateTimebounds(z,300))throw new w("The transaction has expired");if(re.value===void 0)throw new w("The transaction's operation values should not be null");if(!re.value)throw new w("The transaction's operation value should not be null");if(y.from(re.value.toString(),"base64").length!==48)throw new w("The transaction's operation value should be a 64 bytes base64 random string");if(!P)throw new w("Invalid homeDomains: a home domain must be provided for verification");if(typeof P=="string")"".concat(P," auth")===re.name&&(be=P);else{if(!Array.isArray(P))throw new w("Invalid homeDomains: homeDomains type is ".concat(E(P)," but should be a string or an array"));be=P.find(function(Ne){return"".concat(Ne," auth")===re.name})}if(!be)throw new w("Invalid homeDomains: the transaction's operation key name does not match the expected home domain");var he,le=x(X);try{for(le.s();!(he=le.n()).done;){var ge=he.value;if(ge.type!=="manageData")throw new w("The transaction has operations that are not of type 'manageData'");if(ge.source!==te&&ge.name!=="client_domain")throw new w("The transaction has operations that are unrecognized");if(ge.name==="web_auth_domain"){if(ge.value===void 0)throw new w("'web_auth_domain' operation value should not be null");if(ge.value.compare(y.from(A)))throw new w("'web_auth_domain' operation value does not match ".concat(A))}}}catch(Ne){le.e(Ne)}finally{le.f()}if(!U(z,te))throw new w("Transaction not signed by server: '".concat(te,"'"));return{tx:z,clientAccountID:Be,matchedHomeDomain:be,memo:ve}}function L(se,te,$,P,A,O,z){for(var G=Q(se,te,$,A.map(function(ve){return ve.key}),O,z),re=0,X=function(){var ve,he=Be[be],le=((ve=A.find(function(ge){return ge.key===he}))===null||ve===void 0?void 0:ve.weight)||0;re+=le},be=0,Be=G;be{var i=function(u,h){return h||(h={}),u.split("").forEach(function(b,m){b in h||(h[b]=m)}),h},t={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};t.charmap=i(t.alphabet,t.charmap);var s={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};s.charmap=i(s.alphabet,s.charmap);var o={alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",charmap:{}};function e(u){if(this.buf=[],this.shift=8,this.carry=0,u){switch(u.type){case"rfc4648":this.charmap=a.rfc4648.charmap;break;case"crockford":this.charmap=a.crockford.charmap;break;case"base32hex":this.charmap=a.base32hex.charmap;break;default:throw new Error("invalid type")}u.charmap&&(this.charmap=u.charmap)}}function c(u){if(this.buf="",this.shift=3,this.carry=0,u){switch(u.type){case"rfc4648":this.alphabet=a.rfc4648.alphabet;break;case"crockford":this.alphabet=a.crockford.alphabet;break;case"base32hex":this.alphabet=a.base32hex.alphabet;break;default:throw new Error("invalid type")}u.alphabet?this.alphabet=u.alphabet:u.lc&&(this.alphabet=this.alphabet.toLowerCase())}}o.charmap=i(o.alphabet,o.charmap),e.prototype.charmap=t.charmap,e.prototype.write=function(u){var h=this.charmap,b=this.buf,m=this.shift,k=this.carry;return u.toUpperCase().split("").forEach(function(d){if(d!="="){var w=255&h[d];(m-=5)>0?k|=w<>-m),k=w<<(m+=8)&255):(b.push(k|w),m=8,k=0)}}),this.shift=m,this.carry=k,this},e.prototype.finalize=function(u){return u&&this.write(u),this.shift!==8&&this.carry!==0&&(this.buf.push(this.carry),this.shift=8,this.carry=0),this.buf},c.prototype.alphabet=t.alphabet,c.prototype.write=function(u){var h,b,m,k=this.shift,d=this.carry;for(m=0;m>k,this.buf+=this.alphabet[31&h],k>5&&(h=b>>(k-=5),this.buf+=this.alphabet[31&h]),d=b<<(k=5-k),k=8-k;return this.shift=k,this.carry=d,this},c.prototype.finalize=function(u){return u&&this.write(u),this.shift!==3&&(this.buf+=this.alphabet[31&this.carry],this.shift=3,this.carry=0),this.buf},a.encode=function(u,h){return new c(h).finalize(u)},a.decode=function(u,h){return new e(h).finalize(u)},a.Decoder=e,a.Encoder=c,a.charmap=i,a.crockford=s,a.rfc4648=t,a.base32hex=o},9742:(f,a)=>{a.byteLength=function(h){var b=c(h),m=b[0],k=b[1];return 3*(m+k)/4-k},a.toByteArray=function(h){var b,m,k=c(h),d=k[0],w=k[1],y=new s(function(E,S,C){return 3*(S+C)/4-C}(0,d,w)),_=0,x=w>0?d-4:d;for(m=0;m>16&255,y[_++]=b>>8&255,y[_++]=255&b;return w===2&&(b=t[h.charCodeAt(m)]<<2|t[h.charCodeAt(m+1)]>>4,y[_++]=255&b),w===1&&(b=t[h.charCodeAt(m)]<<10|t[h.charCodeAt(m+1)]<<4|t[h.charCodeAt(m+2)]>>2,y[_++]=b>>8&255,y[_++]=255&b),y},a.fromByteArray=function(h){for(var b,m=h.length,k=m%3,d=[],w=16383,y=0,_=m-k;y<_;y+=w)d.push(u(h,y,y+w>_?_:y+w));return k===1?(b=h[m-1],d.push(i[b>>2]+i[b<<4&63]+"==")):k===2&&(b=(h[m-2]<<8)+h[m-1],d.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),d.join("")};for(var i=[],t=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)i[e]=o[e],t[o.charCodeAt(e)]=e;function c(h){var b=h.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=h.indexOf("=");return m===-1&&(m=b),[m,m===b?0:4-m%4]}function u(h,b,m){for(var k,d,w=[],y=b;y>18&63]+i[d>>12&63]+i[d>>6&63]+i[63&d]);return w.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},4431:function(f,a,i){var t;(function(s){var o,e=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,c=Math.ceil,u=Math.floor,h="[BigNumber Error] ",b=h+"Number primitive has more than 15 significant digits: ",m=1e14,k=14,d=9007199254740991,w=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,_=1e9;function x(j){var L=0|j;return j>0||j===L?L:L-1}function E(j){for(var L,Q,U=1,Z=j.length,se=j[0]+"";UA^Q?1:-1;for($=(P=Z.length)<(A=se.length)?P:A,te=0;te<$;te++)if(Z[te]!=se[te])return Z[te]>se[te]^Q?1:-1;return P==A?0:P>A^Q?1:-1}function C(j,L,Q,U){if(jQ||j!==u(j))throw Error(h+(U||"Argument")+(typeof j=="number"?jQ?" out of range: ":" not an integer: ":" not a primitive number: ")+String(j))}function T(j){var L=j.c.length-1;return x(j.e/k)==L&&j.c[L]%2!=0}function R(j,L){return(j.length>1?j.charAt(0)+"."+j.slice(1):j)+(L<0?"e":"e+")+L}function W(j,L,Q){var U,Z;if(L<0){for(Z=Q+".";++L;Z+=Q);j=Z+j}else if(++L>(U=j.length)){for(Z=Q,L-=U;--L;Z+=Q);j+=Z}else Lle?Pe.c=Pe.e=null:M.e=10;I/=10,q++);return void(q>le?Pe.c=Pe.e=null:(Pe.e=q,Pe.c=[M]))}ye=String(M)}else{if(!e.test(ye=String(M)))return Z(Pe,ye,K);Pe.s=ye.charCodeAt(0)==45?(ye=ye.slice(1),-1):1}(q=ye.indexOf("."))>-1&&(ye=ye.replace(".","")),(I=ye.search(/e/i))>0?(q<0&&(q=I),q+=+ye.slice(I+1),ye=ye.substring(0,I)):q<0&&(q=ye.length)}else{if(C(J,2,De.length,"Base"),J==10&&Fe)return B(Pe=new Oe(M),X+Pe.e+1,be);if(ye=String(M),K=typeof M=="number"){if(0*M!=0)return Z(Pe,ye,K,J);if(Pe.s=1/M<0?(ye=ye.slice(1),-1):1,Oe.DEBUG&&ye.replace(/^0\.0*|\./,"").length>15)throw Error(b+M)}else Pe.s=ye.charCodeAt(0)===45?(ye=ye.slice(1),-1):1;for(ue=De.slice(0,J),q=I=0,oe=ye.length;Iq){q=oe;continue}}else if(!N&&(ye==ye.toUpperCase()&&(ye=ye.toLowerCase())||ye==ye.toLowerCase()&&(ye=ye.toUpperCase()))){N=!0,I=-1,q=0;continue}return Z(Pe,String(M),K,J)}K=!1,(q=(ye=U(ye,J,10,Pe.s)).indexOf("."))>-1?ye=ye.replace(".",""):q=ye.length}for(I=0;ye.charCodeAt(I)===48;I++);for(oe=ye.length;ye.charCodeAt(--oe)===48;);if(ye=ye.slice(I,++oe)){if(oe-=I,K&&Oe.DEBUG&&oe>15&&(M>d||M!==u(M)))throw Error(b+Pe.s*M);if((q=q-I-1)>le)Pe.c=Pe.e=null;else if(q=ve)?R(oe,I):W(oe,I,"0");else if(q=(M=B(new Oe(M),J,ue)).e,K=(oe=E(M.c)).length,F==1||F==2&&(J<=q||q<=Be)){for(;KK){if(--J>0)for(oe+=".";J--;oe+="0");}else if((J+=q-K)>0)for(q+1==K&&(oe+=".");J--;oe+="0");return M.s<0&&N?"-"+oe:oe}function ot(M,J){for(var ue,F,N=1,q=new Oe(M[0]);N=10;N/=10,F++);return(ue=F+ue*k-1)>le?M.c=M.e=null:ue=10;K/=10,N++);if((q=J-N)<0)q+=k,I=J,oe=rt[ye=0],Pe=u(oe/lt[N-I-1]%10);else if((ye=c((q+1)/k))>=rt.length){if(!F)break e;for(;rt.length<=ye;rt.push(0));oe=Pe=0,N=1,I=(q%=k)-k+1}else{for(oe=K=rt[ye],N=1;K>=10;K/=10,N++);Pe=(I=(q%=k)-k+N)<0?0:u(oe/lt[N-I-1]%10)}if(F=F||J<0||rt[ye+1]!=null||(I<0?oe:oe%lt[N-I-1]),F=ue<4?(Pe||F)&&(ue==0||ue==(M.s<0?3:2)):Pe>5||Pe==5&&(ue==4||F||ue==6&&(q>0?I>0?oe/lt[N-I]:0:rt[ye-1])%10&1||ue==(M.s<0?8:7)),J<1||!rt[0])return rt.length=0,F?(J-=M.e+1,rt[0]=lt[(k-J%k)%k],M.e=-J||0):rt[0]=M.e=0,M;if(q==0?(rt.length=ye,K=1,ye--):(rt.length=ye+1,K=lt[k-q],rt[ye]=I>0?u(oe/lt[N-I]%lt[I])*K:0),F)for(;;){if(ye==0){for(q=1,I=rt[0];I>=10;I/=10,q++);for(I=rt[0]+=K,K=1;I>=10;I/=10,K++);q!=K&&(M.e++,rt[0]==m&&(rt[0]=1));break}if(rt[ye]+=K,rt[ye]!=m)break;rt[ye--]=0,K=1}for(q=rt.length;rt[--q]===0;rt.pop());}M.e>le?M.c=M.e=null:M.e=ve?R(J,ue):W(J,ue,"0"),M.s<0?"-"+J:J)}return Oe.clone=j,Oe.ROUND_UP=0,Oe.ROUND_DOWN=1,Oe.ROUND_CEIL=2,Oe.ROUND_FLOOR=3,Oe.ROUND_HALF_UP=4,Oe.ROUND_HALF_DOWN=5,Oe.ROUND_HALF_EVEN=6,Oe.ROUND_HALF_CEIL=7,Oe.ROUND_HALF_FLOOR=8,Oe.EUCLID=9,Oe.config=Oe.set=function(M){var J,ue;if(M!=null){if(typeof M!="object")throw Error(h+"Object expected: "+M);if(M.hasOwnProperty(J="DECIMAL_PLACES")&&(C(ue=M[J],0,_,J),X=ue),M.hasOwnProperty(J="ROUNDING_MODE")&&(C(ue=M[J],0,8,J),be=ue),M.hasOwnProperty(J="EXPONENTIAL_AT")&&((ue=M[J])&&ue.pop?(C(ue[0],-_,0,J),C(ue[1],0,_,J),Be=ue[0],ve=ue[1]):(C(ue,-_,_,J),Be=-(ve=ue<0?-ue:ue))),M.hasOwnProperty(J="RANGE"))if((ue=M[J])&&ue.pop)C(ue[0],-_,-1,J),C(ue[1],1,_,J),he=ue[0],le=ue[1];else{if(C(ue,-_,_,J),!ue)throw Error(h+J+" cannot be zero: "+ue);he=-(le=ue<0?-ue:ue)}if(M.hasOwnProperty(J="CRYPTO")){if((ue=M[J])!==!!ue)throw Error(h+J+" not true or false: "+ue);if(ue){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw ge=!ue,Error(h+"crypto unavailable");ge=ue}else ge=ue}if(M.hasOwnProperty(J="MODULO_MODE")&&(C(ue=M[J],0,9,J),Ne=ue),M.hasOwnProperty(J="POW_PRECISION")&&(C(ue=M[J],0,_,J),Ue=ue),M.hasOwnProperty(J="FORMAT")){if(typeof(ue=M[J])!="object")throw Error(h+J+" not an object: "+ue);Le=ue}if(M.hasOwnProperty(J="ALPHABET")){if(typeof(ue=M[J])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(ue))throw Error(h+J+" invalid: "+ue);Fe=ue.slice(0,10)=="0123456789",De=ue}}return{DECIMAL_PLACES:X,ROUNDING_MODE:be,EXPONENTIAL_AT:[Be,ve],RANGE:[he,le],CRYPTO:ge,MODULO_MODE:Ne,POW_PRECISION:Ue,FORMAT:Le,ALPHABET:De}},Oe.isBigNumber=function(M){if(!M||M._isBigNumber!==!0)return!1;if(!Oe.DEBUG)return!0;var J,ue,F=M.c,N=M.e,q=M.s;e:if({}.toString.call(F)=="[object Array]"){if((q===1||q===-1)&&N>=-_&&N<=_&&N===u(N)){if(F[0]===0){if(N===0&&F.length===1)return!0;break e}if((J=(N+1)%k)<1&&(J+=k),String(F[0]).length==J){for(J=0;J=m||ue!==u(ue))break e;if(ue!==0)return!0}}}else if(F===null&&N===null&&(q===null||q===1||q===-1))return!0;throw Error(h+"Invalid BigNumber: "+M)},Oe.maximum=Oe.max=function(){return ot(arguments,-1)},Oe.minimum=Oe.min=function(){return ot(arguments,1)},Oe.random=(se=9007199254740992,te=Math.random()*se&2097151?function(){return u(Math.random()*se)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(M){var J,ue,F,N,q,I=0,K=[],oe=new Oe(re);if(M==null?M=X:C(M,0,_),N=c(M/k),ge)if(crypto.getRandomValues){for(J=crypto.getRandomValues(new Uint32Array(N*=2));I>>11))>=9e15?(ue=crypto.getRandomValues(new Uint32Array(2)),J[I]=ue[0],J[I+1]=ue[1]):(K.push(q%1e14),I+=2);I=N/2}else{if(!crypto.randomBytes)throw ge=!1,Error(h+"crypto unavailable");for(J=crypto.randomBytes(N*=7);I=9e15?crypto.randomBytes(7).copy(J,I):(K.push(q%1e14),I+=7);I=N/7}if(!ge)for(;I=10;q/=10,I++);IN-1&&(oe[I+1]==null&&(oe[I+1]=0),oe[I+1]+=oe[I]/N|0,oe[I]%=N)}return oe.reverse()}return function(ue,F,N,q,I){var K,oe,ye,Pe,rt,lt,vt,_t,qt=ue.indexOf("."),me=X,we=be;for(qt>=0&&(Pe=Ue,Ue=0,ue=ue.replace(".",""),lt=(_t=new Oe(F)).pow(ue.length-qt),Ue=Pe,_t.c=J(W(E(lt.c),lt.e,"0"),10,N,M),_t.e=_t.c.length),ye=Pe=(vt=J(ue,F,N,I?(K=De,M):(K=M,De))).length;vt[--Pe]==0;vt.pop());if(!vt[0])return K.charAt(0);if(qt<0?--ye:(lt.c=vt,lt.e=ye,lt.s=q,vt=(lt=Q(lt,_t,me,we,N)).c,rt=lt.r,ye=lt.e),qt=vt[oe=ye+me+1],Pe=N/2,rt=rt||oe<0||vt[oe+1]!=null,rt=we<4?(qt!=null||rt)&&(we==0||we==(lt.s<0?3:2)):qt>Pe||qt==Pe&&(we==4||rt||we==6&&1&vt[oe-1]||we==(lt.s<0?8:7)),oe<1||!vt[0])ue=rt?W(K.charAt(1),-me,K.charAt(0)):K.charAt(0);else{if(vt.length=oe,rt)for(--N;++vt[--oe]>N;)vt[oe]=0,oe||(++ye,vt=[1].concat(vt));for(Pe=vt.length;!vt[--Pe];);for(qt=0,ue="";qt<=Pe;ue+=K.charAt(vt[qt++]));ue=W(ue,ye,K.charAt(0))}return ue}}(),Q=function(){function M(F,N,q){var I,K,oe,ye,Pe=0,rt=F.length,lt=N%y,vt=N/y|0;for(F=F.slice();rt--;)Pe=((K=lt*(oe=F[rt]%y)+(I=vt*oe+(ye=F[rt]/y|0)*lt)%y*y+Pe)/q|0)+(I/y|0)+vt*ye,F[rt]=K%q;return Pe&&(F=[Pe].concat(F)),F}function J(F,N,q,I){var K,oe;if(q!=I)oe=q>I?1:-1;else for(K=oe=0;KN[K]?1:-1;break}return oe}function ue(F,N,q,I){for(var K=0;q--;)F[q]-=K,K=F[q]1;F.splice(0,1));}return function(F,N,q,I,K){var oe,ye,Pe,rt,lt,vt,_t,qt,me,we,xe,V,Y,ke,$e,ze,je,ut=F.s==N.s?1:-1,nt=F.c,at=N.c;if(!(nt&&nt[0]&&at&&at[0]))return new Oe(F.s&&N.s&&(nt?!at||nt[0]!=at[0]:at)?nt&&nt[0]==0||!at?0*ut:ut/0:NaN);for(me=(qt=new Oe(ut)).c=[],ut=q+(ye=F.e-N.e)+1,K||(K=m,ye=x(F.e/k)-x(N.e/k),ut=ut/k|0),Pe=0;at[Pe]==(nt[Pe]||0);Pe++);if(at[Pe]>(nt[Pe]||0)&&ye--,ut<0)me.push(1),rt=!0;else{for(ke=nt.length,ze=at.length,Pe=0,ut+=2,(lt=u(K/(at[0]+1)))>1&&(at=M(at,lt,K),nt=M(nt,lt,K),ze=at.length,ke=nt.length),Y=ze,xe=(we=nt.slice(0,ze)).length;xe=K/2&&$e++;do{if(lt=0,(oe=J(at,we,ze,xe))<0){if(V=we[0],ze!=xe&&(V=V*K+(we[1]||0)),(lt=u(V/$e))>1)for(lt>=K&&(lt=K-1),_t=(vt=M(at,lt,K)).length,xe=we.length;J(vt,we,_t,xe)==1;)lt--,ue(vt,ze<_t?je:at,_t,K),_t=vt.length,oe=1;else lt==0&&(oe=lt=1),_t=(vt=at.slice()).length;if(_t=10;ut/=10,Pe++);B(qt,q+(qt.e=Pe+ye*k-1)+1,I,rt)}else qt.e=ye,qt.r=+rt;return qt}}(),$=/^(-?)0([xbo])(?=\w[\w.]*$)/i,P=/^([^.]+)\.$/,A=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,z=/^\s*\+(?=[\w.])|^\s+|\s+$/g,Z=function(M,J,ue,F){var N,q=ue?J:J.replace(z,"");if(O.test(q))M.s=isNaN(q)?null:q<0?-1:1;else{if(!ue&&(q=q.replace($,function(I,K,oe){return N=(oe=oe.toLowerCase())=="x"?16:oe=="b"?2:8,F&&F!=N?I:K}),F&&(N=F,q=q.replace(P,"$1").replace(A,"0.$1")),J!=q))return new Oe(q,N);if(Oe.DEBUG)throw Error(h+"Not a"+(F?" base "+F:"")+" number: "+J);M.s=null}M.c=M.e=null},G.absoluteValue=G.abs=function(){var M=new Oe(this);return M.s<0&&(M.s=1),M},G.comparedTo=function(M,J){return S(this,new Oe(M,J))},G.decimalPlaces=G.dp=function(M,J){var ue,F,N,q=this;if(M!=null)return C(M,0,_),J==null?J=be:C(J,0,8),B(new Oe(q),M+q.e+1,J);if(!(ue=q.c))return null;if(F=((N=ue.length-1)-x(this.e/k))*k,N=ue[N])for(;N%10==0;N/=10,F--);return F<0&&(F=0),F},G.dividedBy=G.div=function(M,J){return Q(this,new Oe(M,J),X,be)},G.dividedToIntegerBy=G.idiv=function(M,J){return Q(this,new Oe(M,J),0,1)},G.exponentiatedBy=G.pow=function(M,J){var ue,F,N,q,I,K,oe,ye,Pe=this;if((M=new Oe(M)).c&&!M.isInteger())throw Error(h+"Exponent not an integer: "+H(M));if(J!=null&&(J=new Oe(J)),I=M.e>14,!Pe.c||!Pe.c[0]||Pe.c[0]==1&&!Pe.e&&Pe.c.length==1||!M.c||!M.c[0])return ye=new Oe(Math.pow(+H(Pe),I?M.s*(2-T(M)):+H(M))),J?ye.mod(J):ye;if(K=M.s<0,J){if(J.c?!J.c[0]:!J.s)return new Oe(NaN);(F=!K&&Pe.isInteger()&&J.isInteger())&&(Pe=Pe.mod(J))}else{if(M.e>9&&(Pe.e>0||Pe.e<-1||(Pe.e==0?Pe.c[0]>1||I&&Pe.c[1]>=24e7:Pe.c[0]<8e13||I&&Pe.c[0]<=9999975e7)))return q=Pe.s<0&&T(M)?-0:0,Pe.e>-1&&(q=1/q),new Oe(K?1/q:q);Ue&&(q=c(Ue/k+2))}for(I?(ue=new Oe(.5),K&&(M.s=1),oe=T(M)):oe=(N=Math.abs(+H(M)))%2,ye=new Oe(re);;){if(oe){if(!(ye=ye.times(Pe)).c)break;q?ye.c.length>q&&(ye.c.length=q):F&&(ye=ye.mod(J))}if(N){if((N=u(N/2))===0)break;oe=N%2}else if(B(M=M.times(ue),M.e+1,1),M.e>14)oe=T(M);else{if((N=+H(M))==0)break;oe=N%2}Pe=Pe.times(Pe),q?Pe.c&&Pe.c.length>q&&(Pe.c.length=q):F&&(Pe=Pe.mod(J))}return F?ye:(K&&(ye=re.div(ye)),J?ye.mod(J):q?B(ye,Ue,be,void 0):ye)},G.integerValue=function(M){var J=new Oe(this);return M==null?M=be:C(M,0,8),B(J,J.e+1,M)},G.isEqualTo=G.eq=function(M,J){return S(this,new Oe(M,J))===0},G.isFinite=function(){return!!this.c},G.isGreaterThan=G.gt=function(M,J){return S(this,new Oe(M,J))>0},G.isGreaterThanOrEqualTo=G.gte=function(M,J){return(J=S(this,new Oe(M,J)))===1||J===0},G.isInteger=function(){return!!this.c&&x(this.e/k)>this.c.length-2},G.isLessThan=G.lt=function(M,J){return S(this,new Oe(M,J))<0},G.isLessThanOrEqualTo=G.lte=function(M,J){return(J=S(this,new Oe(M,J)))===-1||J===0},G.isNaN=function(){return!this.s},G.isNegative=function(){return this.s<0},G.isPositive=function(){return this.s>0},G.isZero=function(){return!!this.c&&this.c[0]==0},G.minus=function(M,J){var ue,F,N,q,I=this,K=I.s;if(J=(M=new Oe(M,J)).s,!K||!J)return new Oe(NaN);if(K!=J)return M.s=-J,I.plus(M);var oe=I.e/k,ye=M.e/k,Pe=I.c,rt=M.c;if(!oe||!ye){if(!Pe||!rt)return Pe?(M.s=-J,M):new Oe(rt?I:NaN);if(!Pe[0]||!rt[0])return rt[0]?(M.s=-J,M):new Oe(Pe[0]?I:be==3?-0:0)}if(oe=x(oe),ye=x(ye),Pe=Pe.slice(),K=oe-ye){for((q=K<0)?(K=-K,N=Pe):(ye=oe,N=rt),N.reverse(),J=K;J--;N.push(0));N.reverse()}else for(F=(q=(K=Pe.length)<(J=rt.length))?K:J,K=J=0;J0)for(;J--;Pe[ue++]=0);for(J=m-1;F>K;){if(Pe[--F]=0;){for(ue=0,lt=V[N]%me,vt=V[N]/me|0,q=N+(I=oe);q>N;)ue=((ye=lt*(ye=xe[--I]%me)+(K=vt*ye+(Pe=xe[I]/me|0)*lt)%me*me+_t[q]+ue)/qt|0)+(K/me|0)+vt*Pe,_t[q--]=ye%qt;_t[q]=ue}return ue?++F:_t.splice(0,1),Ke(M,_t,F)},G.negated=function(){var M=new Oe(this);return M.s=-M.s||null,M},G.plus=function(M,J){var ue,F=this,N=F.s;if(J=(M=new Oe(M,J)).s,!N||!J)return new Oe(NaN);if(N!=J)return M.s=-J,F.minus(M);var q=F.e/k,I=M.e/k,K=F.c,oe=M.c;if(!q||!I){if(!K||!oe)return new Oe(N/0);if(!K[0]||!oe[0])return oe[0]?M:new Oe(K[0]?F:0*N)}if(q=x(q),I=x(I),K=K.slice(),N=q-I){for(N>0?(I=q,ue=oe):(N=-N,ue=K),ue.reverse();N--;ue.push(0));ue.reverse()}for((N=K.length)-(J=oe.length)<0&&(ue=oe,oe=K,K=ue,J=N),N=0;J;)N=(K[--J]=K[J]+oe[J]+N)/m|0,K[J]=m===K[J]?0:K[J]%m;return N&&(K=[N].concat(K),++I),Ke(M,K,I)},G.precision=G.sd=function(M,J){var ue,F,N,q=this;if(M!=null&&M!==!!M)return C(M,1,_),J==null?J=be:C(J,0,8),B(new Oe(q),M,J);if(!(ue=q.c))return null;if(F=(N=ue.length-1)*k+1,N=ue[N]){for(;N%10==0;N/=10,F--);for(N=ue[0];N>=10;N/=10,F++);}return M&&q.e+1>F&&(F=q.e+1),F},G.shiftedBy=function(M){return C(M,-9007199254740991,d),this.times("1e"+M)},G.squareRoot=G.sqrt=function(){var M,J,ue,F,N,q=this,I=q.c,K=q.s,oe=q.e,ye=X+4,Pe=new Oe("0.5");if(K!==1||!I||!I[0])return new Oe(!K||K<0&&(!I||I[0])?NaN:I?q:1/0);if((K=Math.sqrt(+H(q)))==0||K==1/0?(((J=E(I)).length+oe)%2==0&&(J+="0"),K=Math.sqrt(+J),oe=x((oe+1)/2)-(oe<0||oe%2),ue=new Oe(J=K==1/0?"5e"+oe:(J=K.toExponential()).slice(0,J.indexOf("e")+1)+oe)):ue=new Oe(K+""),ue.c[0]){for((K=(oe=ue.e)+ye)<3&&(K=0);;)if(N=ue,ue=Pe.times(N.plus(Q(q,N,ye,1))),E(N.c).slice(0,K)===(J=E(ue.c)).slice(0,K)){if(ue.e0&&_t>0){for(q=_t%K||K,Pe=vt.substr(0,q);q<_t;q+=K)Pe+=ye+vt.substr(q,K);oe>0&&(Pe+=ye+vt.slice(q)),lt&&(Pe="-"+Pe)}F=rt?Pe+(ue.decimalSeparator||"")+((oe=+ue.fractionGroupSize)?rt.replace(new RegExp("\\d{"+oe+"}\\B","g"),"$&"+(ue.fractionGroupSeparator||"")):rt):Pe}return(ue.prefix||"")+F+(ue.suffix||"")},G.toFraction=function(M){var J,ue,F,N,q,I,K,oe,ye,Pe,rt,lt,vt=this,_t=vt.c;if(M!=null&&(!(K=new Oe(M)).isInteger()&&(K.c||K.s!==1)||K.lt(re)))throw Error(h+"Argument "+(K.isInteger()?"out of range: ":"not an integer: ")+H(K));if(!_t)return new Oe(vt);for(J=new Oe(re),ye=ue=new Oe(re),F=oe=new Oe(re),lt=E(_t),q=J.e=lt.length-vt.e-1,J.c[0]=w[(I=q%k)<0?k+I:I],M=!M||K.comparedTo(J)>0?q>0?J:ye:K,I=le,le=1/0,K=new Oe(lt),oe.c[0]=0;Pe=Q(K,J,0,1),(N=ue.plus(Pe.times(F))).comparedTo(M)!=1;)ue=F,F=N,ye=oe.plus(Pe.times(N=ye)),oe=N,J=K.minus(Pe.times(N=J)),K=N;return N=Q(M.minus(ue),F,0,1),oe=oe.plus(N.times(ye)),ue=ue.plus(N.times(F)),oe.s=ye.s=vt.s,rt=Q(ye,F,q*=2,be).minus(vt).abs().comparedTo(Q(oe,ue,q,be).minus(vt).abs())<1?[ye,F]:[oe,ue],le=I,rt},G.toNumber=function(){return+H(this)},G.toPrecision=function(M,J){return M!=null&&C(M,1,_),We(this,M,J,2)},G.toString=function(M){var J,ue=this,F=ue.s,N=ue.e;return N===null?F?(J="Infinity",F<0&&(J="-"+J)):J="NaN":(M==null?J=N<=Be||N>=ve?R(E(ue.c),N):W(E(ue.c),N,"0"):M===10&&Fe?J=W(E((ue=B(new Oe(ue),X+N+1,be)).c),ue.e,"0"):(C(M,2,De.length,"Base"),J=U(W(E(ue.c),N,"0"),10,M,F,!0)),F<0&&ue.c[0]&&(J="-"+J)),J},G.valueOf=G.toJSON=function(){return H(this)},G._isBigNumber=!0,L!=null&&Oe.set(L),Oe}(),o.default=o.BigNumber=o,(t=(function(){return o}).call(a,i,a,f))===void 0||(f.exports=t)})()},8764:(f,a,i)=>{const t=i(9742),s=i(645),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=u,a.SlowBuffer=function(B){return+B!=B&&(B=0),u.alloc(+B)},a.INSPECT_MAX_BYTES=50;const e=2147483647;function c(B){if(B>e)throw new RangeError('The value "'+B+'" is invalid for option "size"');const H=new Uint8Array(B);return Object.setPrototypeOf(H,u.prototype),H}function u(B,H,M){if(typeof B=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(B)}return h(B,H,M)}function h(B,H,M){if(typeof B=="string")return function(F,N){if(typeof N=="string"&&N!==""||(N="utf8"),!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);const q=0|y(F,N);let I=c(q);const K=I.write(F,N);return K!==q&&(I=I.slice(0,K)),I}(B,H);if(ArrayBuffer.isView(B))return function(F){if(Fe(F,Uint8Array)){const N=new Uint8Array(F);return d(N.buffer,N.byteOffset,N.byteLength)}return k(F)}(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Fe(B,ArrayBuffer)||B&&Fe(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fe(B,SharedArrayBuffer)||B&&Fe(B.buffer,SharedArrayBuffer)))return d(B,H,M);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=B.valueOf&&B.valueOf();if(J!=null&&J!==B)return u.from(J,H,M);const ue=function(F){if(u.isBuffer(F)){const N=0|w(F.length),q=c(N);return q.length===0||F.copy(q,0,0,N),q}if(F.length!==void 0)return typeof F.length!="number"||Oe(F.length)?c(0):k(F);if(F.type==="Buffer"&&Array.isArray(F.data))return k(F.data)}(B);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return u.from(B[Symbol.toPrimitive]("string"),H,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function b(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function m(B){return b(B),c(B<0?0:0|w(B))}function k(B){const H=B.length<0?0:0|w(B.length),M=c(H);for(let J=0;J=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|B}function y(B,H){if(u.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Fe(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const M=B.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&M===0)return 0;let ue=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Ue(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*M;case"hex":return M>>>1;case"base64":return Le(B).length;default:if(ue)return J?-1:Ue(B).length;H=(""+H).toLowerCase(),ue=!0}}function _(B,H,M){let J=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0)<=(H>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return te(this,H,M);case"utf8":case"utf-8":return Q(this,H,M);case"ascii":return Z(this,H,M);case"latin1":case"binary":return se(this,H,M);case"base64":return L(this,H,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,H,M);default:if(J)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),J=!0}}function x(B,H,M){const J=B[H];B[H]=B[M],B[M]=J}function E(B,H,M,J,ue){if(B.length===0)return-1;if(typeof M=="string"?(J=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),Oe(M=+M)&&(M=ue?0:B.length-1),M<0&&(M=B.length+M),M>=B.length){if(ue)return-1;M=B.length-1}else if(M<0){if(!ue)return-1;M=0}if(typeof H=="string"&&(H=u.from(H,J)),u.isBuffer(H))return H.length===0?-1:S(B,H,M,J,ue);if(typeof H=="number")return H&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(B,H,M):Uint8Array.prototype.lastIndexOf.call(B,H,M):S(B,[H],M,J,ue);throw new TypeError("val must be string, number or Buffer")}function S(B,H,M,J,ue){let F,N=1,q=B.length,I=H.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(B.length<2||H.length<2)return-1;N=2,q/=2,I/=2,M/=2}function K(oe,ye){return N===1?oe[ye]:oe.readUInt16BE(ye*N)}if(ue){let oe=-1;for(F=M;Fq&&(M=q-I),F=M;F>=0;F--){let oe=!0;for(let ye=0;yeue&&(J=ue):J=ue;const F=H.length;let N;for(J>F/2&&(J=F/2),N=0;N>8,I=N%256,K.push(I),K.push(q);return K}(H,B.length-M),B,M,J)}function L(B,H,M){return H===0&&M===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(H,M))}function Q(B,H,M){M=Math.min(B.length,M);const J=[];let ue=H;for(;ue239?4:F>223?3:F>191?2:1;if(ue+q<=M){let I,K,oe,ye;switch(q){case 1:F<128&&(N=F);break;case 2:I=B[ue+1],(192&I)==128&&(ye=(31&F)<<6|63&I,ye>127&&(N=ye));break;case 3:I=B[ue+1],K=B[ue+2],(192&I)==128&&(192&K)==128&&(ye=(15&F)<<12|(63&I)<<6|63&K,ye>2047&&(ye<55296||ye>57343)&&(N=ye));break;case 4:I=B[ue+1],K=B[ue+2],oe=B[ue+3],(192&I)==128&&(192&K)==128&&(192&oe)==128&&(ye=(15&F)<<18|(63&I)<<12|(63&K)<<6|63&oe,ye>65535&&ye<1114112&&(N=ye))}}N===null?(N=65533,q=1):N>65535&&(N-=65536,J.push(N>>>10&1023|55296),N=56320|1023&N),J.push(N),ue+=q}return function(F){const N=F.length;if(N<=U)return String.fromCharCode.apply(String,F);let q="",I=0;for(;I"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(B,H,M){return h(B,H,M)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(B,H,M){return function(J,ue,F){return b(J),J<=0?c(J):ue!==void 0?typeof F=="string"?c(J).fill(ue,F):c(J).fill(ue):c(J)}(B,H,M)},u.allocUnsafe=function(B){return m(B)},u.allocUnsafeSlow=function(B){return m(B)},u.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==u.prototype},u.compare=function(B,H){if(Fe(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),Fe(H,Uint8Array)&&(H=u.from(H,H.offset,H.byteLength)),!u.isBuffer(B)||!u.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===H)return 0;let M=B.length,J=H.length;for(let ue=0,F=Math.min(M,J);ueJ.length?(u.isBuffer(F)||(F=u.from(F)),F.copy(J,ue)):Uint8Array.prototype.set.call(J,F,ue);else{if(!u.isBuffer(F))throw new TypeError('"list" argument must be an Array of Buffers');F.copy(J,ue)}ue+=F.length}return J},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(B+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(B,H,M,J,ue){if(Fe(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),!u.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(H===void 0&&(H=0),M===void 0&&(M=B?B.length:0),J===void 0&&(J=0),ue===void 0&&(ue=this.length),H<0||M>B.length||J<0||ue>this.length)throw new RangeError("out of range index");if(J>=ue&&H>=M)return 0;if(J>=ue)return-1;if(H>=M)return 1;if(this===B)return 0;let F=(ue>>>=0)-(J>>>=0),N=(M>>>=0)-(H>>>=0);const q=Math.min(F,N),I=this.slice(J,ue),K=B.slice(H,M);for(let oe=0;oe>>=0,isFinite(M)?(M>>>=0,J===void 0&&(J="utf8")):(J=M,M=void 0)}const ue=this.length-H;if((M===void 0||M>ue)&&(M=ue),B.length>0&&(M<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let F=!1;for(;;)switch(J){case"hex":return C(this,B,H,M);case"utf8":case"utf-8":return T(this,B,H,M);case"ascii":case"latin1":case"binary":return R(this,B,H,M);case"base64":return W(this,B,H,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,B,H,M);default:if(F)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),F=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const U=4096;function Z(B,H,M){let J="";M=Math.min(B.length,M);for(let ue=H;ueJ)&&(M=J);let ue="";for(let F=H;FM)throw new RangeError("Trying to access beyond buffer length")}function A(B,H,M,J,ue,F){if(!u.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>ue||HB.length)throw new RangeError("Index out of range")}function O(B,H,M,J,ue){he(H,J,ue,B,M,7);let F=Number(H&BigInt(4294967295));B[M++]=F,F>>=8,B[M++]=F,F>>=8,B[M++]=F,F>>=8,B[M++]=F;let N=Number(H>>BigInt(32)&BigInt(4294967295));return B[M++]=N,N>>=8,B[M++]=N,N>>=8,B[M++]=N,N>>=8,B[M++]=N,M}function z(B,H,M,J,ue){he(H,J,ue,B,M,7);let F=Number(H&BigInt(4294967295));B[M+7]=F,F>>=8,B[M+6]=F,F>>=8,B[M+5]=F,F>>=8,B[M+4]=F;let N=Number(H>>BigInt(32)&BigInt(4294967295));return B[M+3]=N,N>>=8,B[M+2]=N,N>>=8,B[M+1]=N,N>>=8,B[M]=N,M+8}function G(B,H,M,J,ue,F){if(M+J>B.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function re(B,H,M,J,ue){return H=+H,M>>>=0,ue||G(B,0,M,4),s.write(B,H,M,J,23,4),M+4}function X(B,H,M,J,ue){return H=+H,M>>>=0,ue||G(B,0,M,8),s.write(B,H,M,J,52,8),M+8}u.prototype.slice=function(B,H){const M=this.length;(B=~~B)<0?(B+=M)<0&&(B=0):B>M&&(B=M),(H=H===void 0?M:~~H)<0?(H+=M)<0&&(H=0):H>M&&(H=M),H>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B],ue=1,F=0;for(;++F>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B+--H],ue=1;for(;H>0&&(ue*=256);)J+=this[B+--H]*ue;return J},u.prototype.readUint8=u.prototype.readUInt8=function(B,H){return B>>>=0,H||P(B,1,this.length),this[B]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(B,H){return B>>>=0,H||P(B,2,this.length),this[B]|this[B+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(B,H){return B>>>=0,H||P(B,2,this.length),this[B]<<8|this[B+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(B,H){return B>>>=0,H||P(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(B,H){return B>>>=0,H||P(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},u.prototype.readBigUInt64LE=ot(function(B){le(B>>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=H+256*this[++B]+65536*this[++B]+this[++B]*2**24,ue=this[++B]+256*this[++B]+65536*this[++B]+M*2**24;return BigInt(J)+(BigInt(ue)<>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=H*2**24+65536*this[++B]+256*this[++B]+this[++B],ue=this[++B]*2**24+65536*this[++B]+256*this[++B]+M;return(BigInt(J)<>>=0,H>>>=0,M||P(B,H,this.length);let J=this[B],ue=1,F=0;for(;++F=ue&&(J-=Math.pow(2,8*H)),J},u.prototype.readIntBE=function(B,H,M){B>>>=0,H>>>=0,M||P(B,H,this.length);let J=H,ue=1,F=this[B+--J];for(;J>0&&(ue*=256);)F+=this[B+--J]*ue;return ue*=128,F>=ue&&(F-=Math.pow(2,8*H)),F},u.prototype.readInt8=function(B,H){return B>>>=0,H||P(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},u.prototype.readInt16LE=function(B,H){B>>>=0,H||P(B,2,this.length);const M=this[B]|this[B+1]<<8;return 32768&M?4294901760|M:M},u.prototype.readInt16BE=function(B,H){B>>>=0,H||P(B,2,this.length);const M=this[B+1]|this[B]<<8;return 32768&M?4294901760|M:M},u.prototype.readInt32LE=function(B,H){return B>>>=0,H||P(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},u.prototype.readInt32BE=function(B,H){return B>>>=0,H||P(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},u.prototype.readBigInt64LE=ot(function(B){le(B>>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=this[B+4]+256*this[B+5]+65536*this[B+6]+(M<<24);return(BigInt(J)<>>=0,"offset");const H=this[B],M=this[B+7];H!==void 0&&M!==void 0||ge(B,this.length-8);const J=(H<<24)+65536*this[++B]+256*this[++B]+this[++B];return(BigInt(J)<>>=0,H||P(B,4,this.length),s.read(this,B,!0,23,4)},u.prototype.readFloatBE=function(B,H){return B>>>=0,H||P(B,4,this.length),s.read(this,B,!1,23,4)},u.prototype.readDoubleLE=function(B,H){return B>>>=0,H||P(B,8,this.length),s.read(this,B,!0,52,8)},u.prototype.readDoubleBE=function(B,H){return B>>>=0,H||P(B,8,this.length),s.read(this,B,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(B,H,M,J){B=+B,H>>>=0,M>>>=0,!J&&A(this,B,H,M,Math.pow(2,8*M)-1,0);let ue=1,F=0;for(this[H]=255&B;++F>>=0,M>>>=0,!J&&A(this,B,H,M,Math.pow(2,8*M)-1,0);let ue=M-1,F=1;for(this[H+ue]=255&B;--ue>=0&&(F*=256);)this[H+ue]=B/F&255;return H+M},u.prototype.writeUint8=u.prototype.writeUInt8=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,1,255,0),this[H]=255&B,H+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,65535,0),this[H]=255&B,this[H+1]=B>>>8,H+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,65535,0),this[H]=B>>>8,this[H+1]=255&B,H+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,4294967295,0),this[H+3]=B>>>24,this[H+2]=B>>>16,this[H+1]=B>>>8,this[H]=255&B,H+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,4294967295,0),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=255&B,H+4},u.prototype.writeBigUInt64LE=ot(function(B,H=0){return O(this,B,H,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ot(function(B,H=0){return z(this,B,H,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(B,H,M,J){if(B=+B,H>>>=0,!J){const q=Math.pow(2,8*M-1);A(this,B,H,M,q-1,-q)}let ue=0,F=1,N=0;for(this[H]=255&B;++ue>0)-N&255;return H+M},u.prototype.writeIntBE=function(B,H,M,J){if(B=+B,H>>>=0,!J){const q=Math.pow(2,8*M-1);A(this,B,H,M,q-1,-q)}let ue=M-1,F=1,N=0;for(this[H+ue]=255&B;--ue>=0&&(F*=256);)B<0&&N===0&&this[H+ue+1]!==0&&(N=1),this[H+ue]=(B/F>>0)-N&255;return H+M},u.prototype.writeInt8=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,1,127,-128),B<0&&(B=255+B+1),this[H]=255&B,H+1},u.prototype.writeInt16LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,32767,-32768),this[H]=255&B,this[H+1]=B>>>8,H+2},u.prototype.writeInt16BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,2,32767,-32768),this[H]=B>>>8,this[H+1]=255&B,H+2},u.prototype.writeInt32LE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,2147483647,-2147483648),this[H]=255&B,this[H+1]=B>>>8,this[H+2]=B>>>16,this[H+3]=B>>>24,H+4},u.prototype.writeInt32BE=function(B,H,M){return B=+B,H>>>=0,M||A(this,B,H,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=255&B,H+4},u.prototype.writeBigInt64LE=ot(function(B,H=0){return O(this,B,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ot(function(B,H=0){return z(this,B,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(B,H,M){return re(this,B,H,!0,M)},u.prototype.writeFloatBE=function(B,H,M){return re(this,B,H,!1,M)},u.prototype.writeDoubleLE=function(B,H,M){return X(this,B,H,!0,M)},u.prototype.writeDoubleBE=function(B,H,M){return X(this,B,H,!1,M)},u.prototype.copy=function(B,H,M,J){if(!u.isBuffer(B))throw new TypeError("argument should be a Buffer");if(M||(M=0),J||J===0||(J=this.length),H>=B.length&&(H=B.length),H||(H=0),J>0&&J=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),B.length-H>>=0,M=M===void 0?this.length:M>>>0,B||(B=0),typeof B=="number")for(ue=H;ue=J+4;M-=3)H=`_${B.slice(M-3,M)}${H}`;return`${B.slice(0,M)}${H}`}function he(B,H,M,J,ue,F){if(B>M||B3?H===0||H===BigInt(0)?`>= 0${N} and < 2${N} ** ${8*(F+1)}${N}`:`>= -(2${N} ** ${8*(F+1)-1}${N}) and < 2 ** ${8*(F+1)-1}${N}`:`>= ${H}${N} and <= ${M}${N}`,new be.ERR_OUT_OF_RANGE("value",q,B)}(function(N,q,I){le(q,"offset"),N[q]!==void 0&&N[q+I]!==void 0||ge(q,N.length-(I+1))})(J,ue,F)}function le(B,H){if(typeof B!="number")throw new be.ERR_INVALID_ARG_TYPE(H,"number",B)}function ge(B,H,M){throw Math.floor(B)!==B?(le(B,M),new be.ERR_OUT_OF_RANGE(M||"offset","an integer",B)):H<0?new be.ERR_BUFFER_OUT_OF_BOUNDS:new be.ERR_OUT_OF_RANGE(M||"offset",`>= ${M?1:0} and <= ${H}`,B)}Be("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Be("ERR_INVALID_ARG_TYPE",function(B,H){return`The "${B}" argument must be of type number. Received type ${typeof H}`},TypeError),Be("ERR_OUT_OF_RANGE",function(B,H,M){let J=`The value of "${B}" is out of range.`,ue=M;return Number.isInteger(M)&&Math.abs(M)>4294967296?ue=ve(String(M)):typeof M=="bigint"&&(ue=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(ue=ve(ue)),ue+="n"),J+=` It must be ${H}. Received ${ue}`,J},RangeError);const Ne=/[^+/0-9A-Za-z-_]/g;function Ue(B,H){let M;H=H||1/0;const J=B.length;let ue=null;const F=[];for(let N=0;N55295&&M<57344){if(!ue){if(M>56319){(H-=3)>-1&&F.push(239,191,189);continue}if(N+1===J){(H-=3)>-1&&F.push(239,191,189);continue}ue=M;continue}if(M<56320){(H-=3)>-1&&F.push(239,191,189),ue=M;continue}M=65536+(ue-55296<<10|M-56320)}else ue&&(H-=3)>-1&&F.push(239,191,189);if(ue=null,M<128){if((H-=1)<0)break;F.push(M)}else if(M<2048){if((H-=2)<0)break;F.push(M>>6|192,63&M|128)}else if(M<65536){if((H-=3)<0)break;F.push(M>>12|224,M>>6&63|128,63&M|128)}else{if(!(M<1114112))throw new Error("Invalid code point");if((H-=4)<0)break;F.push(M>>18|240,M>>12&63|128,M>>6&63|128,63&M|128)}}return F}function Le(B){return t.toByteArray(function(H){if((H=(H=H.split("=")[0]).trim().replace(Ne,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(B))}function De(B,H,M,J){let ue;for(ue=0;ue=H.length||ue>=B.length);++ue)H[ue+M]=B[ue];return ue}function Fe(B,H){return B instanceof H||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===H.name}function Oe(B){return B!=B}const We=function(){const B="0123456789abcdef",H=new Array(256);for(let M=0;M<16;++M){const J=16*M;for(let ue=0;ue<16;++ue)H[J+ue]=B[M]+B[ue]}return H}();function ot(B){return typeof BigInt>"u"?Ke:B}function Ke(){throw new Error("BigInt not supported")}},584:f=>{f.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(f,a,i)=>{var t=i(210),s=i(5559),o=s(t("String.prototype.indexOf"));f.exports=function(e,c){var u=t(e,!!c);return typeof u=="function"&&o(e,".prototype.")>-1?s(u):u}},5559:(f,a,i)=>{var t=i(8612),s=i(210),o=i(7771),e=s("%TypeError%"),c=s("%Function.prototype.apply%"),u=s("%Function.prototype.call%"),h=s("%Reflect.apply%",!0)||t.call(u,c),b=s("%Object.defineProperty%",!0),m=s("%Math.max%");if(b)try{b({},"a",{value:1})}catch{b=null}f.exports=function(d){if(typeof d!="function")throw new e("a function is required");var w=h(t,u,arguments);return o(w,1+m(0,d.length-(arguments.length-1)),!0)};var k=function(){return h(t,c,arguments)};b?b(f.exports,"apply",{value:k}):f.exports.apply=k},2296:(f,a,i)=>{var t=i(1044)(),s=i(210),o=t&&s("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch{o=!1}var e=s("%SyntaxError%"),c=s("%TypeError%"),u=i(7296);f.exports=function(h,b,m){if(!h||typeof h!="object"&&typeof h!="function")throw new c("`obj` must be an object or a function`");if(typeof b!="string"&&typeof b!="symbol")throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new c("`loose`, if provided, must be a boolean");var k=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,w=arguments.length>5?arguments[5]:null,y=arguments.length>6&&arguments[6],_=!!u&&u(h,b);if(o)o(h,b,{configurable:w===null&&_?_.configurable:!w,enumerable:k===null&&_?_.enumerable:!k,value:m,writable:d===null&&_?_.writable:!d});else{if(!y&&(k||d||w))throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");h[b]=m}}},7187:f=>{var a,i=typeof Reflect=="object"?Reflect:null,t=i&&typeof i.apply=="function"?i.apply:function(_,x,E){return Function.prototype.apply.call(_,x,E)};a=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var s=Number.isNaN||function(_){return _!=_};function o(){o.init.call(this)}f.exports=o,f.exports.once=function(_,x){return new Promise(function(E,S){function C(R){_.removeListener(x,T),S(R)}function T(){typeof _.removeListener=="function"&&_.removeListener("error",C),E([].slice.call(arguments))}y(_,x,T,{once:!0}),x!=="error"&&function(R,W,j){typeof R.on=="function"&&y(R,"error",W,j)}(_,C,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var e=10;function c(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function u(_){return _._maxListeners===void 0?o.defaultMaxListeners:_._maxListeners}function h(_,x,E,S){var C,T,R,W;if(c(E),(T=_._events)===void 0?(T=_._events=Object.create(null),_._eventsCount=0):(T.newListener!==void 0&&(_.emit("newListener",x,E.listener?E.listener:E),T=_._events),R=T[x]),R===void 0)R=T[x]=E,++_._eventsCount;else if(typeof R=="function"?R=T[x]=S?[E,R]:[R,E]:S?R.unshift(E):R.push(E),(C=u(_))>0&&R.length>C&&!R.warned){R.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=x,j.count=R.length,W=j,console&&console.warn&&console.warn(W)}return _}function b(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(_,x,E){var S={fired:!1,wrapFn:void 0,target:_,type:x,listener:E},C=b.bind(S);return C.listener=E,S.wrapFn=C,C}function k(_,x,E){var S=_._events;if(S===void 0)return[];var C=S[x];return C===void 0?[]:typeof C=="function"?E?[C.listener||C]:[C]:E?function(T){for(var R=new Array(T.length),W=0;W0&&(T=x[0]),T instanceof Error)throw T;var R=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw R.context=T,R}var W=C[_];if(W===void 0)return!1;if(typeof W=="function")t(W,this,x);else{var j=W.length,L=w(W,j);for(E=0;E=0;T--)if(E[T]===x||E[T].listener===x){R=E[T].listener,C=T;break}if(C<0)return this;C===0?E.shift():function(W,j){for(;j+1=0;S--)this.removeListener(_,x[S]);return this},o.prototype.listeners=function(_){return k(this,_,!0)},o.prototype.rawListeners=function(_){return k(this,_,!1)},o.listenerCount=function(_,x){return typeof _.listenerCount=="function"?_.listenerCount(x):d.call(_,x)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},8751:(f,a,i)=>{var t=i(8764).Buffer,s=i(8575).parse,o=i(7187),e=i(9267),c=i(8501),u=i(9539),h=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],b=[239,187,191],m=262144,k=/^(cookie|authorization)$/i;function d(_,x){var E=d.CONNECTING,S=x&&x.headers,C=!1;Object.defineProperty(this,"readyState",{get:function(){return E}}),Object.defineProperty(this,"url",{get:function(){return _}});var T,R=this;function W(P){E!==d.CLOSED&&(E=d.CONNECTING,te("error",new w("error",{message:P})),Z&&(_=Z,Z=null,C=!1),setTimeout(function(){E!==d.CONNECTING||R.connectionInProgress||(R.connectionInProgress=!0,se())},R.reconnectInterval))}R.reconnectInterval=1e3,R.connectionInProgress=!1;var j="";S&&S["Last-Event-ID"]&&(j=S["Last-Event-ID"],delete S["Last-Event-ID"]);var L=!1,Q="",U="",Z=null;function se(){var P=s(_),A=P.protocol==="https:";if(P.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},j&&(P.headers["Last-Event-ID"]=j),S){var O=C?function(Be){var ve={};for(var he in Be)k.test(he)||(ve[he]=Be[he]);return ve}(S):S;for(var z in O){var G=O[z];G&&(P.headers[z]=G)}}if(P.rejectUnauthorized=!(x&&!x.rejectUnauthorized),x&&x.createConnection!==void 0&&(P.createConnection=x.createConnection),x&&x.proxy){var re=s(x.proxy);A=re.protocol==="https:",P.protocol=A?"https:":"http:",P.path=_,P.headers.Host=P.host,P.hostname=re.hostname,P.host=re.host,P.port=re.port}if(x&&x.https){for(var X in x.https)if(h.indexOf(X)!==-1){var be=x.https[X];be!==void 0&&(P[X]=be)}}x&&x.withCredentials!==void 0&&(P.withCredentials=x.withCredentials),T=(A?e:c).request(P,function(Be){if(R.connectionInProgress=!1,Be.statusCode===500||Be.statusCode===502||Be.statusCode===503||Be.statusCode===504)return te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage})),void W();if(Be.statusCode===301||Be.statusCode===302||Be.statusCode===307){var ve=Be.headers.location;if(!ve)return void te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage}));var he=new URL(_).origin,le=new URL(ve).origin;return C=he!==le,Be.statusCode===307&&(Z=_),_=ve,void process.nextTick(se)}if(Be.statusCode!==200)return te("error",new w("error",{status:Be.statusCode,message:Be.statusMessage})),R.close();var ge,Ne;E=d.OPEN,Be.on("close",function(){Be.removeAllListeners("close"),Be.removeAllListeners("end"),W()}),Be.on("end",function(){Be.removeAllListeners("close"),Be.removeAllListeners("end"),W()}),te("open",new w("open"));var Ue=0,Le=-1,De=0,Fe=0;Be.on("data",function(Oe){ge?(Oe.length>ge.length-Fe&&((De=2*ge.length+Oe.length)>m&&(De=ge.length+Oe.length+m),Ne=t.alloc(De),ge.copy(Ne,0,0,Fe),ge=Ne),Oe.copy(ge,Fe),Fe+=Oe.length):(function(J){return b.every(function(ue,F){return J[F]===ue})}(ge=Oe)&&(ge=ge.slice(b.length)),Fe=ge.length);for(var We=0,ot=Fe;We0&&(ge=ge.slice(We,Fe),Fe=ge.length)})}),T.on("error",function(Be){R.connectionInProgress=!1,W(Be.message)}),T.setNoDelay&&T.setNoDelay(!0),T.end()}function te(){R.listeners(arguments[0]).length>0&&R.emit.apply(R,arguments)}function $(P,A,O,z){if(z===0){if(Q.length>0){var G=U||"message";te(G,new y(G,{data:Q.slice(0,-1),lastEventId:j,origin:new URL(_).origin})),Q=""}U=void 0}else if(O>0){var re=O<0,X=0,be=P.slice(A,A+(re?z:O)).toString();A+=X=re?z:P[A+O+1]!==32?O+1:O+2;var Be=z-X,ve=P.slice(A,A+Be).toString();if(be==="data")Q+=ve+` +`;else if(be==="event")U=ve;else if(be==="id")j=ve;else if(be==="retry"){var he=parseInt(ve,10);Number.isNaN(he)||(R.reconnectInterval=he)}}}se(),this._close=function(){E!==d.CLOSED&&(E=d.CLOSED,T.abort&&T.abort(),T.xhr&&T.xhr.abort&&T.xhr.abort())}}function w(_,x){if(Object.defineProperty(this,"type",{writable:!1,value:_,enumerable:!0}),x)for(var E in x)x.hasOwnProperty(E)&&Object.defineProperty(this,E,{writable:!1,value:x[E],enumerable:!0})}function y(_,x){for(var E in Object.defineProperty(this,"type",{writable:!1,value:_,enumerable:!0}),x)x.hasOwnProperty(E)&&Object.defineProperty(this,E,{writable:!1,value:x[E],enumerable:!0})}f.exports=d,u.inherits(d,o.EventEmitter),d.prototype.constructor=d,["open","error","message"].forEach(function(_){Object.defineProperty(d.prototype,"on"+_,{get:function(){var x=this.listeners(_)[0];return x?x._listener?x._listener:x:void 0},set:function(x){this.removeAllListeners(_),this.addEventListener(_,x)}})}),Object.defineProperty(d,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(d,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(d,"CLOSED",{enumerable:!0,value:2}),d.prototype.CONNECTING=0,d.prototype.OPEN=1,d.prototype.CLOSED=2,d.prototype.close=function(){this._close()},d.prototype.addEventListener=function(_,x){typeof x=="function"&&(x._listener=x,this.on(_,x))},d.prototype.dispatchEvent=function(_){if(!_.type)throw new Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(_.type,_.detail)},d.prototype.removeEventListener=function(_,x){typeof x=="function"&&(x._listener=void 0,this.removeListener(_,x))}},4029:(f,a,i)=>{var t=i(5320),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty;f.exports=function(e,c,u){if(!t(c))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=u),s.call(e)==="[object Array]"?function(b,m,k){for(var d=0,w=b.length;d{var a=Object.prototype.toString,i=Math.max,t=function(s,o){for(var e=[],c=0;c{var t=i(7648);f.exports=Function.prototype.bind||t},210:(f,a,i)=>{var t,s=SyntaxError,o=Function,e=TypeError,c=function(te){try{return o('"use strict"; return ('+te+").constructor;")()}catch{}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch{u=null}var h=function(){throw new e},b=u?function(){try{return h}catch{try{return u(arguments,"callee").get}catch{return h}}}():h,m=i(1405)(),k=i(8185)(),d=Object.getPrototypeOf||(k?function(te){return te.__proto__}:null),w={},y=typeof Uint8Array<"u"&&d?d(Uint8Array):t,_={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":m&&d?d([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&d?d(d([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map<"u"&&m&&d?d(new Map()[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set<"u"&&m&&d?d(new Set()[Symbol.iterator]()):t,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&d?d(""[Symbol.iterator]()):t,"%Symbol%":m?Symbol:t,"%SyntaxError%":s,"%ThrowTypeError%":b,"%TypedArray%":y,"%TypeError%":e,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(d)try{null.error}catch(te){var x=d(d(te));_["%Error.prototype%"]=x}var E=function te($){var P;if($==="%AsyncFunction%")P=c("async function () {}");else if($==="%GeneratorFunction%")P=c("function* () {}");else if($==="%AsyncGeneratorFunction%")P=c("async function* () {}");else if($==="%AsyncGenerator%"){var A=te("%AsyncGeneratorFunction%");A&&(P=A.prototype)}else if($==="%AsyncIteratorPrototype%"){var O=te("%AsyncGenerator%");O&&d&&(P=d(O.prototype))}return _[$]=P,P},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=i(8612),T=i(8824),R=C.call(Function.call,Array.prototype.concat),W=C.call(Function.apply,Array.prototype.splice),j=C.call(Function.call,String.prototype.replace),L=C.call(Function.call,String.prototype.slice),Q=C.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,se=function(te,$){var P,A=te;if(T(S,A)&&(A="%"+(P=S[A])[0]+"%"),T(_,A)){var O=_[A];if(O===w&&(O=E(A)),O===void 0&&!$)throw new e("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:P,name:A,value:O}}throw new s("intrinsic "+te+" does not exist!")};f.exports=function(te,$){if(typeof te!="string"||te.length===0)throw new e("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new e('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,te)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=function(Ne){var Ue=L(Ne,0,1),Le=L(Ne,-1);if(Ue==="%"&&Le!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Le==="%"&&Ue!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var De=[];return j(Ne,U,function(Fe,Oe,We,ot){De[De.length]=We?j(ot,Z,"$1"):Oe||Fe}),De}(te),A=P.length>0?P[0]:"",O=se("%"+A+"%",$),z=O.name,G=O.value,re=!1,X=O.alias;X&&(A=X[0],W(P,R([0,1],X)));for(var be=1,Be=!0;be=P.length){var ge=u(G,ve);G=(Be=!!ge)&&"get"in ge&&!("originalValue"in ge.get)?ge.get:G[ve]}else Be=T(G,ve),G=G[ve];Be&&!re&&(_[z]=G)}}return G}},7296:(f,a,i)=>{var t=i(210)("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}f.exports=t},1044:(f,a,i)=>{var t=i(210)("%Object.defineProperty%",!0),s=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},f.exports=s},8185:f=>{var a={foo:{}},i=Object;f.exports=function(){return{__proto__:a}.foo===a.foo&&!({__proto__:null}instanceof i)}},1405:(f,a,i)=>{var t=typeof Symbol<"u"&&Symbol,s=i(5419);f.exports=function(){return typeof t=="function"&&typeof Symbol=="function"&&typeof t("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&s()}},5419:f=>{f.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},i=Symbol("test"),t=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;for(i in a[i]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var s=Object.getOwnPropertySymbols(a);if(s.length!==1||s[0]!==i||!Object.prototype.propertyIsEnumerable.call(a,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(a,i);if(o.value!==42||o.enumerable!==!0)return!1}return!0}},6410:(f,a,i)=>{var t=i(5419);f.exports=function(){return t()&&!!Symbol.toStringTag}},8824:(f,a,i)=>{var t=Function.prototype.call,s=Object.prototype.hasOwnProperty,o=i(8612);f.exports=o.call(t,s)},9267:(f,a,i)=>{var t=i(8501),s=i(8575),o=f.exports;for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);function c(u){if(typeof u=="string"&&(u=s.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}o.request=function(u,h){return u=c(u),t.request.call(this,u,h)},o.get=function(u,h){return u=c(u),t.get.call(this,u,h)}},645:(f,a)=>{a.read=function(i,t,s,o,e){var c,u,h=8*e-o-1,b=(1<>1,k=-7,d=s?e-1:0,w=s?-1:1,y=i[t+d];for(d+=w,c=y&(1<<-k)-1,y>>=-k,k+=h;k>0;c=256*c+i[t+d],d+=w,k-=8);for(u=c&(1<<-k)-1,c>>=-k,k+=o;k>0;u=256*u+i[t+d],d+=w,k-=8);if(c===0)c=1-m;else{if(c===b)return u?NaN:1/0*(y?-1:1);u+=Math.pow(2,o),c-=m}return(y?-1:1)*u*Math.pow(2,c-o)},a.write=function(i,t,s,o,e,c){var u,h,b,m=8*c-e-1,k=(1<>1,w=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:c-1,_=o?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,u=k):(u=Math.floor(Math.log(t)/Math.LN2),t*(b=Math.pow(2,-u))<1&&(u--,b*=2),(t+=u+d>=1?w/b:w*Math.pow(2,1-d))*b>=2&&(u++,b/=2),u+d>=k?(h=0,u=k):u+d>=1?(h=(t*b-1)*Math.pow(2,e),u+=d):(h=t*Math.pow(2,d-1)*Math.pow(2,e),u=0));e>=8;i[s+y]=255&h,y+=_,h/=256,e-=8);for(u=u<0;i[s+y]=255&u,y+=_,u/=256,m-=8);i[s+y-_]|=128*x}},5717:f=>{typeof Object.create=="function"?f.exports=function(a,i){i&&(a.super_=i,a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:f.exports=function(a,i){if(i){a.super_=i;var t=function(){};t.prototype=i.prototype,a.prototype=new t,a.prototype.constructor=a}}},2584:(f,a,i)=>{var t=i(6410)(),s=i(1924)("Object.prototype.toString"),o=function(u){return!(t&&u&&typeof u=="object"&&Symbol.toStringTag in u)&&s(u)==="[object Arguments]"},e=function(u){return!!o(u)||u!==null&&typeof u=="object"&&typeof u.length=="number"&&u.length>=0&&s(u)!=="[object Array]"&&s(u.callee)==="[object Function]"},c=function(){return o(arguments)}();o.isLegacyArguments=e,f.exports=c?o:e},5320:f=>{var a,i,t=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s(function(){throw 42},null,a)}catch(d){d!==i&&(s=null)}else s=null;var o=/^\s*class\b/,e=function(d){try{var w=t.call(d);return o.test(w)}catch{return!1}},c=function(d){try{return!e(d)&&(t.call(d),!0)}catch{return!1}},u=Object.prototype.toString,h=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),m=function(){return!1};if(typeof document=="object"){var k=document.all;u.call(k)===u.call(document.all)&&(m=function(d){if((b||!d)&&(d===void 0||typeof d=="object"))try{var w=u.call(d);return(w==="[object HTMLAllCollection]"||w==="[object HTML document.all class]"||w==="[object HTMLCollection]"||w==="[object Object]")&&d("")==null}catch{}return!1})}f.exports=s?function(d){if(m(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{s(d,null,a)}catch(w){if(w!==i)return!1}return!e(d)&&c(d)}:function(d){if(m(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(h)return c(d);if(e(d))return!1;var w=u.call(d);return!(w!=="[object Function]"&&w!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(w))&&c(d)}},8662:(f,a,i)=>{var t,s=Object.prototype.toString,o=Function.prototype.toString,e=/^\s*(?:function)?\*/,c=i(6410)(),u=Object.getPrototypeOf;f.exports=function(h){if(typeof h!="function")return!1;if(e.test(o.call(h)))return!0;if(!c)return s.call(h)==="[object GeneratorFunction]";if(!u)return!1;if(t===void 0){var b=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch{}}();t=!!b&&u(b)}return u(h)===t}},5692:(f,a,i)=>{var t=i(6430);f.exports=function(s){return!!t(s)}},631:(f,a,i)=>{var t=typeof Map=="function"&&Map.prototype,s=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=t&&s&&typeof s.get=="function"?s.get:null,e=t&&Map.prototype.forEach,c=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=c&&u&&typeof u.get=="function"?u.get:null,b=c&&Set.prototype.forEach,m=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap.prototype.has:null,k=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,x=String.prototype.match,E=String.prototype.slice,S=String.prototype.replace,C=String.prototype.toUpperCase,T=String.prototype.toLowerCase,R=RegExp.prototype.test,W=Array.prototype.concat,j=Array.prototype.join,L=Array.prototype.slice,Q=Math.floor,U=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,A=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(B){return B.__proto__}:null);function O(B,H){if(B===1/0||B===-1/0||B!=B||B&&B>-1e3&&B<1e3||R.call(/e/,H))return H;var M=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof B=="number"){var J=B<0?-Q(-B):Q(B);if(J!==B){var ue=String(J),F=E.call(H,ue.length+1);return S.call(ue,M,"$&_")+"."+S.call(S.call(F,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(H,M,"$&_")}var z=i(4654),G=z.custom,re=he(G)?G:null;function X(B,H,M){var J=(M.quoteStyle||H)==="double"?'"':"'";return J+B+J}function be(B){return S.call(String(B),/"/g,""")}function Be(B){return!(Ne(B)!=="[object Array]"||$&&typeof B=="object"&&$ in B)}function ve(B){return!(Ne(B)!=="[object RegExp]"||$&&typeof B=="object"&&$ in B)}function he(B){if(te)return B&&typeof B=="object"&&B instanceof Symbol;if(typeof B=="symbol")return!0;if(!B||typeof B!="object"||!se)return!1;try{return se.call(B),!0}catch{}return!1}f.exports=function B(H,M,J,ue){var F=M||{};if(ge(F,"quoteStyle")&&F.quoteStyle!=="single"&&F.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(F,"maxStringLength")&&(typeof F.maxStringLength=="number"?F.maxStringLength<0&&F.maxStringLength!==1/0:F.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!ge(F,"customInspect")||F.customInspect;if(typeof N!="boolean"&&N!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(F,"indent")&&F.indent!==null&&F.indent!==" "&&!(parseInt(F.indent,10)===F.indent&&F.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(F,"numericSeparator")&&typeof F.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=F.numericSeparator;if(H===void 0)return"undefined";if(H===null)return"null";if(typeof H=="boolean")return H?"true":"false";if(typeof H=="string")return Le(H,F);if(typeof H=="number"){if(H===0)return 1/0/H>0?"0":"-0";var I=String(H);return q?O(H,I):I}if(typeof H=="bigint"){var K=String(H)+"n";return q?O(H,K):K}var oe=F.depth===void 0?5:F.depth;if(J===void 0&&(J=0),J>=oe&&oe>0&&typeof H=="object")return Be(H)?"[Array]":"[Object]";var ye=function(nt,at){var It;if(nt.indent===" ")It=" ";else{if(!(typeof nt.indent=="number"&&nt.indent>0))return null;It=j.call(Array(nt.indent+1)," ")}return{base:It,prev:j.call(Array(at+1),It)}}(F,J);if(ue===void 0)ue=[];else if(Ue(ue,H)>=0)return"[Circular]";function Pe(nt,at,It){if(at&&(ue=L.call(ue)).push(at),It){var Nt={depth:F.depth};return ge(F,"quoteStyle")&&(Nt.quoteStyle=F.quoteStyle),B(nt,Nt,J+1,ue)}return B(nt,F,J+1,ue)}if(typeof H=="function"&&!ve(H)){var rt=function(nt){if(nt.name)return nt.name;var at=x.call(_.call(nt),/^function\s*([\w$]+)/);return at?at[1]:null}(H),lt=Ke(H,Pe);return"[Function"+(rt?": "+rt:" (anonymous)")+"]"+(lt.length>0?" { "+j.call(lt,", ")+" }":"")}if(he(H)){var vt=te?S.call(String(H),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(H);return typeof H!="object"||te?vt:Fe(vt)}if(function(nt){return!nt||typeof nt!="object"?!1:typeof HTMLElement<"u"&&nt instanceof HTMLElement?!0:typeof nt.nodeName=="string"&&typeof nt.getAttribute=="function"}(H)){for(var _t="<"+T.call(String(H.nodeName)),qt=H.attributes||[],me=0;me"}if(Be(H)){if(H.length===0)return"[]";var we=Ke(H,Pe);return ye&&!function(nt){for(var at=0;at=0)return!1;return!0}(we)?"["+ot(we,ye)+"]":"[ "+j.call(we,", ")+" ]"}if(function(nt){return!(Ne(nt)!=="[object Error]"||$&&typeof nt=="object"&&$ in nt)}(H)){var xe=Ke(H,Pe);return"cause"in Error.prototype||!("cause"in H)||P.call(H,"cause")?xe.length===0?"["+String(H)+"]":"{ ["+String(H)+"] "+j.call(xe,", ")+" }":"{ ["+String(H)+"] "+j.call(W.call("[cause]: "+Pe(H.cause),xe),", ")+" }"}if(typeof H=="object"&&N){if(re&&typeof H[re]=="function"&&z)return z(H,{depth:oe-J});if(N!=="symbol"&&typeof H.inspect=="function")return H.inspect()}if(function(nt){if(!o||!nt||typeof nt!="object")return!1;try{o.call(nt);try{h.call(nt)}catch{return!0}return nt instanceof Map}catch{}return!1}(H)){var V=[];return e&&e.call(H,function(nt,at){V.push(Pe(at,H,!0)+" => "+Pe(nt,H))}),We("Map",o.call(H),V,ye)}if(function(nt){if(!h||!nt||typeof nt!="object")return!1;try{h.call(nt);try{o.call(nt)}catch{return!0}return nt instanceof Set}catch{}return!1}(H)){var Y=[];return b&&b.call(H,function(nt){Y.push(Pe(nt,H))}),We("Set",h.call(H),Y,ye)}if(function(nt){if(!m||!nt||typeof nt!="object")return!1;try{m.call(nt,m);try{k.call(nt,k)}catch{return!0}return nt instanceof WeakMap}catch{}return!1}(H))return Oe("WeakMap");if(function(nt){if(!k||!nt||typeof nt!="object")return!1;try{k.call(nt,k);try{m.call(nt,m)}catch{return!0}return nt instanceof WeakSet}catch{}return!1}(H))return Oe("WeakSet");if(function(nt){if(!d||!nt||typeof nt!="object")return!1;try{return d.call(nt),!0}catch{}return!1}(H))return Oe("WeakRef");if(function(nt){return!(Ne(nt)!=="[object Number]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(Pe(Number(H)));if(function(nt){if(!nt||typeof nt!="object"||!U)return!1;try{return U.call(nt),!0}catch{}return!1}(H))return Fe(Pe(U.call(H)));if(function(nt){return!(Ne(nt)!=="[object Boolean]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(w.call(H));if(function(nt){return!(Ne(nt)!=="[object String]"||$&&typeof nt=="object"&&$ in nt)}(H))return Fe(Pe(String(H)));if(typeof window<"u"&&H===window)return"{ [object Window] }";if(H===i.g)return"{ [object globalThis] }";if(!function(nt){return!(Ne(nt)!=="[object Date]"||$&&typeof nt=="object"&&$ in nt)}(H)&&!ve(H)){var ke=Ke(H,Pe),$e=A?A(H)===Object.prototype:H instanceof Object||H.constructor===Object,ze=H instanceof Object?"":"null prototype",je=!$e&&$&&Object(H)===H&&$ in H?E.call(Ne(H),8,-1):ze?"Object":"",ut=($e||typeof H.constructor!="function"?"":H.constructor.name?H.constructor.name+" ":"")+(je||ze?"["+j.call(W.call([],je||[],ze||[]),": ")+"] ":"");return ke.length===0?ut+"{}":ye?ut+"{"+ot(ke,ye)+"}":ut+"{ "+j.call(ke,", ")+" }"}return String(H)};var le=Object.prototype.hasOwnProperty||function(B){return B in this};function ge(B,H){return le.call(B,H)}function Ne(B){return y.call(B)}function Ue(B,H){if(B.indexOf)return B.indexOf(H);for(var M=0,J=B.length;MH.maxStringLength){var M=B.length-H.maxStringLength,J="... "+M+" more character"+(M>1?"s":"");return Le(E.call(B,0,H.maxStringLength),H)+J}return X(S.call(S.call(B,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,De),"single",H)}function De(B){var H=B.charCodeAt(0),M={8:"b",9:"t",10:"n",12:"f",13:"r"}[H];return M?"\\"+M:"\\x"+(H<16?"0":"")+C.call(H.toString(16))}function Fe(B){return"Object("+B+")"}function Oe(B){return B+" { ? }"}function We(B,H,M,J){return B+" ("+H+") {"+(J?ot(M,J):j.call(M,", "))+"}"}function ot(B,H){if(B.length===0)return"";var M=` `+H.prev+H.base;return M+j.call(B,","+M)+` -`+H.prev}function Ke(B,H){var M=Be(B),J=[];if(M){J.length=B.length;for(var ue=0;ue{var a=String.prototype.replace,i=/%20/g,t="RFC1738",s="RFC3986";f.exports={default:s,formatters:{RFC1738:function(o){return a.call(o,i,"+")},RFC3986:function(o){return String(o)}},RFC1738:t,RFC3986:s}},129:(f,a,i)=>{var t=i(8261),s=i(5235),o=i(5798);f.exports={formats:o,parse:s,stringify:t}},5235:(f,a,i)=>{var t=i(2769),s=Object.prototype.hasOwnProperty,o=Array.isArray,e={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(b){return b.replace(/&#(\d+);/g,function(p,k){return String.fromCharCode(parseInt(k,10))})},u=function(b,p){return b&&typeof b=="string"&&p.comma&&b.indexOf(",")>-1?b.split(","):b},h=function(b,p,k,d){if(b){var w=k.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,y=/(\[[^[\]]*])/g,_=k.depth>0&&/(\[[^[\]]*])/.exec(w),x=_?w.slice(0,_.index):w,E=[];if(x){if(!k.plainObjects&&s.call(Object.prototype,x)&&!k.allowPrototypes)return;E.push(x)}for(var S=0;k.depth>0&&(_=y.exec(w))!==null&&S=0;--L){var Q,U=C[L];if(U==="[]"&&R.parseArrays)Q=[].concat(j);else{Q=R.plainObjects?Object.create(null):{};var Z=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,se=parseInt(Z,10);R.parseArrays||Z!==""?!isNaN(se)&&U!==Z&&String(se)===Z&&se>=0&&R.parseArrays&&se<=R.arrayLimit?(Q=[])[se]=j:Z!=="__proto__"&&(Q[Z]=j):Q={0:j}}j=Q}return j}(E,p,k,d)}};f.exports=function(b,p){var k=function(S){if(!S)return e;if(S.decoder!==null&&S.decoder!==void 0&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(S.charset!==void 0&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=S.charset===void 0?e.charset:S.charset;return{allowDots:S.allowDots===void 0?e.allowDots:!!S.allowDots,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:e.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:e.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:e.arrayLimit,charset:C,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:e.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:e.comma,decoder:typeof S.decoder=="function"?S.decoder:e.decoder,delimiter:typeof S.delimiter=="string"||t.isRegExp(S.delimiter)?S.delimiter:e.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:e.depth,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:e.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:e.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:e.plainObjects,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:e.strictNullHandling}}(p);if(b===""||b==null)return k.plainObjects?Object.create(null):{};for(var d=typeof b=="string"?function(S,C){var T,R={__proto__:null},W=C.ignoreQueryPrefix?S.replace(/^\?/,""):S,j=C.parameterLimit===1/0?void 0:C.parameterLimit,L=W.split(C.delimiter,j),Q=-1,U=C.charset;if(C.charsetSentinel)for(T=0;T-1&&(se=o(se)?[se]:se),s.call(R,Z)?R[Z]=t.combine(R[Z],se):R[Z]=se}return R}(b,k):b,w=k.plainObjects?Object.create(null):{},y=Object.keys(d),_=0;_{var t=i(7478),s=i(2769),o=i(5798),e=Object.prototype.hasOwnProperty,c={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,x){return _+"["+x+"]"},repeat:function(_){return _}},u=Array.isArray,h=Array.prototype.push,b=function(_,x){h.apply(_,u(x)?x:[x])},p=Date.prototype.toISOString,k=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:k,formatter:o.formatters[k],indices:!1,serializeDate:function(_){return p.call(_)},skipNulls:!1,strictNullHandling:!1},w={},y=function _(x,E,S,C,T,R,W,j,L,Q,U,Z,se,te,$,P){for(var A,O=x,z=P,G=0,re=!1;(z=z.get(w))!==void 0&&!re;){var X=z.get(x);if(G+=1,X!==void 0){if(X===G)throw new RangeError("Cyclic object value");re=!0}z.get(w)===void 0&&(G=0)}if(typeof j=="function"?O=j(E,O):O instanceof Date?O=U(O):S==="comma"&&u(O)&&(O=s.maybeMap(O,function(De){return De instanceof Date?U(De):De})),O===null){if(T)return W&&!te?W(E,d.encoder,$,"key",Z):E;O=""}if(typeof(A=O)=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"||s.isBuffer(O))return W?[se(te?E:W(E,d.encoder,$,"key",Z))+"="+se(W(O,d.encoder,$,"value",Z))]:[se(E)+"="+se(String(O))];var be,Be=[];if(O===void 0)return Be;if(S==="comma"&&u(O))te&&W&&(O=s.maybeMap(O,W)),be=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(j))be=j;else{var ve=Object.keys(O);be=L?ve.sort(L):ve}for(var he=C&&u(O)&&O.length===1?E+"[]":E,le=0;le0?se+Z:""}},2769:(f,a,i)=>{var t=i(5798),s=Object.prototype.hasOwnProperty,o=Array.isArray,e=function(){for(var u=[],h=0;h<256;++h)u.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return u}(),c=function(u,h){for(var b=h&&h.plainObjects?Object.create(null):{},p=0;p1;){var S=E.pop(),C=S.obj[S.prop];if(o(C)){for(var T=[],R=0;R=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||k===t.RFC1738&&(_===40||_===41)?w+=d.charAt(y):_<128?w+=e[_]:_<2048?w+=e[192|_>>6]+e[128|63&_]:_<55296||_>=57344?w+=e[224|_>>12]+e[128|_>>6&63]+e[128|63&_]:(y+=1,_=65536+((1023&_)<<10|1023&d.charCodeAt(y)),w+=e[240|_>>18]+e[128|_>>12&63]+e[128|_>>6&63]+e[128|63&_])}return w},isBuffer:function(u){return!(!u||typeof u!="object")&&!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},isRegExp:function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},maybeMap:function(u,h){if(o(u)){for(var b=[],p=0;p{var t=65536,s=4294967295,o=i(9509).Buffer,e=i.g.crypto||i.g.msCrypto;e&&e.getRandomValues?f.exports=function(c,u){if(c>s)throw new RangeError("requested too many random bytes");var h=o.allocUnsafe(c);if(c>0)if(c>t)for(var b=0;b{var a={};function i(s,o,e){e||(e=Error);var c=function(u){var h,b;function p(k,d,w){return u.call(this,function(y,_,x){return typeof o=="string"?o:o(y,_,x)}(k,d,w))||this}return b=u,(h=p).prototype=Object.create(b.prototype),h.prototype.constructor=h,h.__proto__=b,p}(e);c.prototype.name=e.name,c.prototype.code=s,a[s]=c}function t(s,o){if(Array.isArray(s)){var e=s.length;return s=s.map(function(c){return String(c)}),e>2?"one of ".concat(o," ").concat(s.slice(0,e-1).join(", "),", or ")+s[e-1]:e===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}return"of ".concat(o," ").concat(String(s))}i("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(s,o,e){var c,u,h;if(typeof o=="string"&&(u="not ",o.substr(0,u.length)===u)?(c="must not be",o=o.replace(/^not /,"")):c="must be",function(p,k,d){return(d===void 0||d>p.length)&&(d=p.length),p.substring(d-k.length,d)===k}(s," argument"))h="The ".concat(s," ").concat(c," ").concat(t(o,"type"));else{var b=function(p,k,d){return typeof d!="number"&&(d=0),!(d+k.length>p.length)&&p.indexOf(k,d)!==-1}(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(b," ").concat(c," ").concat(t(o,"type"))}return h+=". Received type ".concat(typeof e)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),f.exports.q=a},6753:(f,a,i)=>{var t=Object.keys||function(k){var d=[];for(var w in k)d.push(w);return d};f.exports=h;var s=i(9481),o=i(4229);i(5717)(h,s);for(var e=t(o.prototype),c=0;c{f.exports=s;var t=i(4605);function s(o){if(!(this instanceof s))return new s(o);t.call(this,o)}i(5717)(s,t),s.prototype._transform=function(o,e,c){c(null,o)}},9481:(f,a,i)=>{var t;f.exports=j,j.ReadableState=W,i(7187).EventEmitter;var s=function(ve,he){return ve.listeners(he).length},o=i(2503),e=i(8764).Buffer,c=(i.g!==void 0?i.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},u,h=i(4616);u=h&&h.debuglog?h.debuglog("stream"):function(){};var b,p,k,d=i(7327),w=i(1195),y=i(2457).getHighWaterMark,_=i(4281).q,x=_.ERR_INVALID_ARG_TYPE,E=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,C=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(5717)(j,o);var T=w.errorOrDestroy,R=["error","close","destroy","pause","resume"];function W(ve,he,le){t=t||i(6753),ve=ve||{},typeof le!="boolean"&&(le=he instanceof t),this.objectMode=!!ve.objectMode,le&&(this.objectMode=this.objectMode||!!ve.readableObjectMode),this.highWaterMark=y(this,ve,"readableHighWaterMark",le),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ve.emitClose!==!1,this.autoDestroy=!!ve.autoDestroy,this.destroyed=!1,this.defaultEncoding=ve.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ve.encoding&&(b||(b=i(2553).s),this.decoder=new b(ve.encoding),this.encoding=ve.encoding)}function j(ve){if(t=t||i(6753),!(this instanceof j))return new j(ve);var he=this instanceof t;this._readableState=new W(ve,this,he),this.readable=!0,ve&&(typeof ve.read=="function"&&(this._read=ve.read),typeof ve.destroy=="function"&&(this._destroy=ve.destroy)),o.call(this)}function L(ve,he,le,ge,Ne){u("readableAddChunk",he);var Ue,Le=ve._readableState;if(he===null)Le.reading=!1,function(De,Fe){if(u("onEofChunk"),!Fe.ended){if(Fe.decoder){var Oe=Fe.decoder.end();Oe&&Oe.length&&(Fe.buffer.push(Oe),Fe.length+=Fe.objectMode?1:Oe.length)}Fe.ended=!0,Fe.sync?se(De):(Fe.needReadable=!1,Fe.emittedReadable||(Fe.emittedReadable=!0,te(De)))}}(ve,Le);else if(Ne||(Ue=function(De,Fe){var Oe;We=Fe,e.isBuffer(We)||We instanceof c||typeof Fe=="string"||Fe===void 0||De.objectMode||(Oe=new x("chunk",["string","Buffer","Uint8Array"],Fe));var We;return Oe}(Le,he)),Ue)T(ve,Ue);else if(Le.objectMode||he&&he.length>0)if(typeof he=="string"||Le.objectMode||Object.getPrototypeOf(he)===e.prototype||(he=function(De){return e.from(De)}(he)),ge)Le.endEmitted?T(ve,new C):Q(ve,Le,he,!0);else if(Le.ended)T(ve,new E);else{if(Le.destroyed)return!1;Le.reading=!1,Le.decoder&&!le?(he=Le.decoder.write(he),Le.objectMode||he.length!==0?Q(ve,Le,he,!1):$(ve,Le)):Q(ve,Le,he,!1)}else ge||(Le.reading=!1,$(ve,Le));return!Le.ended&&(Le.lengthhe.highWaterMark&&(he.highWaterMark=function(le){return le>=U?le=U:(le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++),le}(ve)),ve<=he.length?ve:he.ended?he.length:(he.needReadable=!0,0))}function se(ve){var he=ve._readableState;u("emitReadable",he.needReadable,he.emittedReadable),he.needReadable=!1,he.emittedReadable||(u("emitReadable",he.flowing),he.emittedReadable=!0,process.nextTick(te,ve))}function te(ve){var he=ve._readableState;u("emitReadable_",he.destroyed,he.length,he.ended),he.destroyed||!he.length&&!he.ended||(ve.emit("readable"),he.emittedReadable=!1),he.needReadable=!he.flowing&&!he.ended&&he.length<=he.highWaterMark,G(ve)}function $(ve,he){he.readingMore||(he.readingMore=!0,process.nextTick(P,ve,he))}function P(ve,he){for(;!he.reading&&!he.ended&&(he.length0,he.resumeScheduled&&!he.paused?he.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function O(ve){u("readable nexttick read 0"),ve.read(0)}function z(ve,he){u("resume",he.reading),he.reading||ve.read(0),he.resumeScheduled=!1,ve.emit("resume"),G(ve),he.flowing&&!he.reading&&ve.read(0)}function G(ve){var he=ve._readableState;for(u("flow",he.flowing);he.flowing&&ve.read()!==null;);}function re(ve,he){return he.length===0?null:(he.objectMode?le=he.buffer.shift():!ve||ve>=he.length?(le=he.decoder?he.buffer.join(""):he.buffer.length===1?he.buffer.first():he.buffer.concat(he.length),he.buffer.clear()):le=he.buffer.consume(ve,he.decoder),le);var le}function X(ve){var he=ve._readableState;u("endReadable",he.endEmitted),he.endEmitted||(he.ended=!0,process.nextTick(be,he,ve))}function be(ve,he){if(u("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&ve.length===0&&(ve.endEmitted=!0,he.readable=!1,he.emit("end"),ve.autoDestroy)){var le=he._writableState;(!le||le.autoDestroy&&le.finished)&&he.destroy()}}function Be(ve,he){for(var le=0,ge=ve.length;le=he.highWaterMark:he.length>0)||he.ended))return u("read: emitReadable",he.length,he.ended),he.length===0&&he.ended?X(this):se(this),null;if((ve=Z(ve,he))===0&&he.ended)return he.length===0&&X(this),null;var ge,Ne=he.needReadable;return u("need readable",Ne),(he.length===0||he.length-ve0?re(ve,he):null)===null?(he.needReadable=he.length<=he.highWaterMark,ve=0):(he.length-=ve,he.awaitDrain=0),he.length===0&&(he.ended||(he.needReadable=!0),le!==ve&&he.ended&&X(this)),ge!==null&&this.emit("data",ge),ge},j.prototype._read=function(ve){T(this,new S("_read()"))},j.prototype.pipe=function(ve,he){var le=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=ve;break;case 1:ge.pipes=[ge.pipes,ve];break;default:ge.pipes.push(ve)}ge.pipesCount+=1,u("pipe count=%d opts=%j",ge.pipesCount,he);var Ne=(!he||he.end!==!1)&&ve!==process.stdout&&ve!==process.stderr?Le:B;function Ue(H,M){u("onunpipe"),H===le&&M&&M.hasUnpiped===!1&&(M.hasUnpiped=!0,u("cleanup"),ve.removeListener("close",ot),ve.removeListener("finish",Ke),ve.removeListener("drain",De),ve.removeListener("error",We),ve.removeListener("unpipe",Ue),le.removeListener("end",Le),le.removeListener("end",B),le.removeListener("data",Oe),Fe=!0,!ge.awaitDrain||ve._writableState&&!ve._writableState.needDrain||De())}function Le(){u("onend"),ve.end()}ge.endEmitted?process.nextTick(Ne):le.once("end",Ne),ve.on("unpipe",Ue);var De=function(H){return function(){var M=H._readableState;u("pipeOnDrain",M.awaitDrain),M.awaitDrain&&M.awaitDrain--,M.awaitDrain===0&&s(H,"data")&&(M.flowing=!0,G(H))}}(le);ve.on("drain",De);var Fe=!1;function Oe(H){u("ondata");var M=ve.write(H);u("dest.write",M),M===!1&&((ge.pipesCount===1&&ge.pipes===ve||ge.pipesCount>1&&Be(ge.pipes,ve)!==-1)&&!Fe&&(u("false write response, pause",ge.awaitDrain),ge.awaitDrain++),le.pause())}function We(H){u("onerror",H),B(),ve.removeListener("error",We),s(ve,"error")===0&&T(ve,H)}function ot(){ve.removeListener("finish",Ke),B()}function Ke(){u("onfinish"),ve.removeListener("close",ot),B()}function B(){u("unpipe"),le.unpipe(ve)}return le.on("data",Oe),function(H,M,J){if(typeof H.prependListener=="function")return H.prependListener(M,J);H._events&&H._events[M]?Array.isArray(H._events[M])?H._events[M].unshift(J):H._events[M]=[J,H._events[M]]:H.on(M,J)}(ve,"error",We),ve.once("close",ot),ve.once("finish",Ke),ve.emit("pipe",le),ge.flowing||(u("pipe resume"),le.resume()),ve},j.prototype.unpipe=function(ve){var he=this._readableState,le={hasUnpiped:!1};if(he.pipesCount===0)return this;if(he.pipesCount===1)return ve&&ve!==he.pipes||(ve||(ve=he.pipes),he.pipes=null,he.pipesCount=0,he.flowing=!1,ve&&ve.emit("unpipe",this,le)),this;if(!ve){var ge=he.pipes,Ne=he.pipesCount;he.pipes=null,he.pipesCount=0,he.flowing=!1;for(var Ue=0;Ue0,ge.flowing!==!1&&this.resume()):ve==="readable"&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,u("on readable",ge.length,ge.reading),ge.length?se(this):ge.reading||process.nextTick(O,this))),le},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(ve,he){var le=o.prototype.removeListener.call(this,ve,he);return ve==="readable"&&process.nextTick(A,this),le},j.prototype.removeAllListeners=function(ve){var he=o.prototype.removeAllListeners.apply(this,arguments);return ve!=="readable"&&ve!==void 0||process.nextTick(A,this),he},j.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(u("resume"),ve.flowing=!ve.readableListening,function(he,le){le.resumeScheduled||(le.resumeScheduled=!0,process.nextTick(z,he,le))}(this,ve)),ve.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(ve){var he=this,le=this._readableState,ge=!1;for(var Ne in ve.on("end",function(){if(u("wrapped end"),le.decoder&&!le.ended){var Le=le.decoder.end();Le&&Le.length&&he.push(Le)}he.push(null)}),ve.on("data",function(Le){u("wrapped data"),le.decoder&&(Le=le.decoder.write(Le)),le.objectMode&&Le==null||(le.objectMode||Le&&Le.length)&&(he.push(Le)||(ge=!0,ve.pause()))}),ve)this[Ne]===void 0&&typeof ve[Ne]=="function"&&(this[Ne]=function(Le){return function(){return ve[Le].apply(ve,arguments)}}(Ne));for(var Ue=0;Ue{f.exports=b;var t=i(4281).q,s=t.ERR_METHOD_NOT_IMPLEMENTED,o=t.ERR_MULTIPLE_CALLBACK,e=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=t.ERR_TRANSFORM_WITH_LENGTH_0,u=i(6753);function h(d,w){var y=this._transformState;y.transforming=!1;var _=y.writecb;if(_===null)return this.emit("error",new o);y.writechunk=null,y.writecb=null,w!=null&&this.push(w),_(d);var x=this._readableState;x.reading=!1,(x.needReadable||x.length{function t($){var P=this;this.next=null,this.entry=null,this.finish=function(){(function(A,O,z){var G=A.entry;for(A.entry=null;G;){var re=G.callback;O.pendingcb--,re(z),G=G.next}O.corkedRequestsFree.next=A})(P,$)}}var s;f.exports=j,j.WritableState=W;var o={deprecate:i(4927)},e=i(2503),c=i(8764).Buffer,u=(i.g!==void 0?i.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},h,b=i(1195),p=i(2457).getHighWaterMark,k=i(4281).q,d=k.ERR_INVALID_ARG_TYPE,w=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_MULTIPLE_CALLBACK,_=k.ERR_STREAM_CANNOT_PIPE,x=k.ERR_STREAM_DESTROYED,E=k.ERR_STREAM_NULL_VALUES,S=k.ERR_STREAM_WRITE_AFTER_END,C=k.ERR_UNKNOWN_ENCODING,T=b.errorOrDestroy;function R(){}function W($,P,A){s=s||i(6753),$=$||{},typeof A!="boolean"&&(A=P instanceof s),this.objectMode=!!$.objectMode,A&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=p(this,$,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=$.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){(function(G,re){var X=G._writableState,be=X.sync,Be=X.writecb;if(typeof Be!="function")throw new y;if(function(he){he.writing=!1,he.writecb=null,he.length-=he.writelen,he.writelen=0}(X),re)(function(he,le,ge,Ne,Ue){--le.pendingcb,ge?(process.nextTick(Ue,Ne),process.nextTick(te,he,le),he._writableState.errorEmitted=!0,T(he,Ne)):(Ue(Ne),he._writableState.errorEmitted=!0,T(he,Ne),te(he,le))})(G,X,be,re,Be);else{var ve=Z(X)||G.destroyed;ve||X.corked||X.bufferProcessing||!X.bufferedRequest||U(G,X),be?process.nextTick(Q,G,X,ve,Be):Q(G,X,ve,Be)}})(P,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function j($){var P=this instanceof(s=s||i(6753));if(!P&&!h.call(j,this))return new j($);this._writableState=new W($,this,P),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),e.call(this)}function L($,P,A,O,z,G,re){P.writelen=O,P.writecb=re,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new x("write")):A?$._writev(z,P.onwrite):$._write(z,G,P.onwrite),P.sync=!1}function Q($,P,A,O){A||function(z,G){G.length===0&&G.needDrain&&(G.needDrain=!1,z.emit("drain"))}($,P),P.pendingcb--,O(),te($,P)}function U($,P){P.bufferProcessing=!0;var A=P.bufferedRequest;if($._writev&&A&&A.next){var O=P.bufferedRequestCount,z=new Array(O),G=P.corkedRequestsFree;G.entry=A;for(var re=0,X=!0;A;)z[re]=A,A.isBuf||(X=!1),A=A.next,re+=1;z.allBuffers=X,L($,P,!0,P.length,z,"",G.finish),P.pendingcb++,P.lastBufferedRequest=null,G.next?(P.corkedRequestsFree=G.next,G.next=null):P.corkedRequestsFree=new t(P),P.bufferedRequestCount=0}else{for(;A;){var be=A.chunk,Be=A.encoding,ve=A.callback;if(L($,P,!1,P.objectMode?1:be.length,be,Be,ve),A=A.next,P.bufferedRequestCount--,P.writing)break}A===null&&(P.lastBufferedRequest=null)}P.bufferedRequest=A,P.bufferProcessing=!1}function Z($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function se($,P){$._final(function(A){P.pendingcb--,A&&T($,A),P.prefinished=!0,$.emit("prefinish"),te($,P)})}function te($,P){var A=Z(P);if(A&&(function(z,G){G.prefinished||G.finalCalled||(typeof z._final!="function"||G.destroyed?(G.prefinished=!0,z.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,process.nextTick(se,z,G)))}($,P),P.pendingcb===0&&(P.finished=!0,$.emit("finish"),P.autoDestroy))){var O=$._readableState;(!O||O.autoDestroy&&O.endEmitted)&&$.destroy()}return A}i(5717)(j,e),W.prototype.getBuffer=function(){for(var $=this.bufferedRequest,P=[];$;)P.push($),$=$.next;return P},function(){try{Object.defineProperty(W.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function($){return!!h.call(this,$)||this===j&&$&&$._writableState instanceof W}})):h=function($){return $ instanceof this},j.prototype.pipe=function(){T(this,new _)},j.prototype.write=function($,P,A){var O,z=this._writableState,G=!1,re=!z.objectMode&&(O=$,c.isBuffer(O)||O instanceof u);return re&&!c.isBuffer($)&&($=function(X){return c.from(X)}($)),typeof P=="function"&&(A=P,P=null),re?P="buffer":P||(P=z.defaultEncoding),typeof A!="function"&&(A=R),z.ending?function(X,be){var Be=new S;T(X,Be),process.nextTick(be,Be)}(this,A):(re||function(X,be,Be,ve){var he;return Be===null?he=new E:typeof Be=="string"||be.objectMode||(he=new d("chunk",["string","Buffer"],Be)),!he||(T(X,he),process.nextTick(ve,he),!1)}(this,z,$,A))&&(z.pendingcb++,G=function(X,be,Be,ve,he,le){if(!Be){var ge=function(De,Fe,Oe){return De.objectMode||De.decodeStrings===!1||typeof Fe!="string"||(Fe=c.from(Fe,Oe)),Fe}(be,ve,he);ve!==ge&&(Be=!0,he="buffer",ve=ge)}var Ne=be.objectMode?1:ve.length;be.length+=Ne;var Ue=be.length-1))throw new C($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function($,P,A){A(new w("_write()"))},j.prototype._writev=null,j.prototype.end=function($,P,A){var O=this._writableState;return typeof $=="function"?(A=$,$=null,P=null):typeof P=="function"&&(A=P,P=null),$!=null&&this.write($,P),O.corked&&(O.corked=1,this.uncork()),O.ending||function(z,G,re){G.ending=!0,te(z,G),re&&(G.finished?process.nextTick(re):z.once("finish",re)),G.ended=!0,z.writable=!1}(this,O,A),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),j.prototype.destroy=b.destroy,j.prototype._undestroy=b.undestroy,j.prototype._destroy=function($,P){P($)}},5850:(f,a,i)=>{var t;function s(E,S,C){return(S=function(T){var R=function(W,j){if(typeof W!="object"||W===null)return W;var L=W[Symbol.toPrimitive];if(L!==void 0){var Q=L.call(W,j||"default");if(typeof Q!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(W)}(T,"string");return typeof R=="symbol"?R:String(R)}(S))in E?Object.defineProperty(E,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[S]=C,E}var o=i(8610),e=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),b=Symbol("lastPromise"),p=Symbol("handlePromise"),k=Symbol("stream");function d(E,S){return{value:E,done:S}}function w(E){var S=E[e];if(S!==null){var C=E[k].read();C!==null&&(E[b]=null,E[e]=null,E[c]=null,S(d(C,!1)))}}function y(E){process.nextTick(w,E)}var _=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((s(t={get stream(){return this[k]},next:function(){var E=this,S=this[u];if(S!==null)return Promise.reject(S);if(this[h])return Promise.resolve(d(void 0,!0));if(this[k].destroyed)return new Promise(function(W,j){process.nextTick(function(){E[u]?j(E[u]):W(d(void 0,!0))})});var C,T=this[b];if(T)C=new Promise(function(W,j){return function(L,Q){W.then(function(){j[h]?L(d(void 0,!0)):j[p](L,Q)},Q)}}(T,this));else{var R=this[k].read();if(R!==null)return Promise.resolve(d(R,!1));C=new Promise(this[p])}return this[b]=C,C}},Symbol.asyncIterator,function(){return this}),s(t,"return",function(){var E=this;return new Promise(function(S,C){E[k].destroy(null,function(T){T?C(T):S(d(void 0,!0))})})}),t),_);f.exports=function(E){var S,C=Object.create(x,(s(S={},k,{value:E,writable:!0}),s(S,e,{value:null,writable:!0}),s(S,c,{value:null,writable:!0}),s(S,u,{value:null,writable:!0}),s(S,h,{value:E._readableState.endEmitted,writable:!0}),s(S,p,{value:function(T,R){var W=C[k].read();W?(C[b]=null,C[e]=null,C[c]=null,T(d(W,!1))):(C[e]=T,C[c]=R)},writable:!0}),S));return C[b]=null,o(E,function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R=C[c];return R!==null&&(C[b]=null,C[e]=null,C[c]=null,R(T)),void(C[u]=T)}var W=C[e];W!==null&&(C[b]=null,C[e]=null,C[c]=null,W(d(void 0,!0))),C[h]=!0}),E.on("readable",y.bind(null,C)),C}},7327:(f,a,i)=>{function t(p,k){var d=Object.keys(p);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(p);k&&(w=w.filter(function(y){return Object.getOwnPropertyDescriptor(p,y).enumerable})),d.push.apply(d,w)}return d}function s(p){for(var k=1;k0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(w){var y={data:w,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(this.length===0)return"";for(var y=this.head,_=""+y.data;y=y.next;)_+=w+y.data;return _}},{key:"concat",value:function(w){if(this.length===0)return u.alloc(0);for(var y,_,x,E=u.allocUnsafe(w>>>0),S=this.head,C=0;S;)y=S.data,_=E,x=C,u.prototype.copy.call(y,_,x),C+=S.data.length,S=S.next;return E}},{key:"consume",value:function(w,y){var _;return wE.length?E.length:w;if(S===E.length?x+=E:x+=E.slice(0,w),(w-=S)==0){S===E.length?(++_,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=E.slice(S));break}++_}return this.length-=_,x}},{key:"_getBuffer",value:function(w){var y=u.allocUnsafe(w),_=this.head,x=1;for(_.data.copy(y),w-=_.data.length;_=_.next;){var E=_.data,S=w>E.length?E.length:w;if(E.copy(y,y.length-w,0,S),(w-=S)==0){S===E.length?(++x,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=E.slice(S));break}++x}return this.length-=x,y}},{key:b,value:function(w,y){return h(this,s(s({},y),{},{depth:0,customInspect:!1}))}}])&&e(k.prototype,d),Object.defineProperty(k,"prototype",{writable:!1}),p}()},1195:f=>{function a(s,o){t(s,o),i(s)}function i(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function t(s,o){s.emit("error",o)}f.exports={destroy:function(s,o){var e=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(o?o(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(t,this,s)):process.nextTick(t,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(h){!o&&h?e._writableState?e._writableState.errorEmitted?process.nextTick(i,e):(e._writableState.errorEmitted=!0,process.nextTick(a,e,h)):process.nextTick(a,e,h):o?(process.nextTick(i,e),o(h)):process.nextTick(i,e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(s,o){var e=s._readableState,c=s._writableState;e&&e.autoDestroy||c&&c.autoDestroy?s.destroy(o):s.emit("error",o)}}},8610:(f,a,i)=>{var t=i(4281).q.ERR_STREAM_PREMATURE_CLOSE;function s(){}f.exports=function o(e,c,u){if(typeof c=="function")return o(e,null,c);c||(c={}),u=function(S){var C=!1;return function(){if(!C){C=!0;for(var T=arguments.length,R=new Array(T),W=0;W{f.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(f,a,i)=>{var t,s=i(4281).q,o=s.ERR_MISSING_ARGS,e=s.ERR_STREAM_DESTROYED;function c(b){if(b)throw b}function u(b){b()}function h(b,p){return b.pipe(p)}f.exports=function(){for(var b=arguments.length,p=new Array(b),k=0;k0,function(S){d||(d=S),S&&y.forEach(u),E||(y.forEach(u),w(d))})});return p.reduce(h)}},2457:(f,a,i)=>{var t=i(4281).q.ERR_INVALID_OPT_VALUE;f.exports={getHighWaterMark:function(s,o,e,c){var u=function(h,b,p){return h.highWaterMark!=null?h.highWaterMark:b?h[p]:null}(o,c,e);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new t(c?e:"highWaterMark",u);return Math.floor(u)}return s.objectMode?16:16384}}},2503:(f,a,i)=>{f.exports=i(7187).EventEmitter},8473:(f,a,i)=>{(a=f.exports=i(9481)).Stream=a,a.Readable=a,a.Writable=i(4229),a.Duplex=i(6753),a.Transform=i(4605),a.PassThrough=i(2725),a.finished=i(8610),a.pipeline=i(9946)},9509:(f,a,i)=>{var t=i(8764),s=t.Buffer;function o(c,u){for(var h in c)u[h]=c[h]}function e(c,u,h){return s(c,u,h)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?f.exports=t:(o(t,a),a.Buffer=e),e.prototype=Object.create(s.prototype),o(s,e),e.from=function(c,u,h){if(typeof c=="number")throw new TypeError("Argument must not be a number");return s(c,u,h)},e.alloc=function(c,u,h){if(typeof c!="number")throw new TypeError("Argument must be a number");var b=s(c);return u!==void 0?typeof h=="string"?b.fill(u,h):b.fill(u):b.fill(0),b},e.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return s(c)},e.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(c)}},7771:(f,a,i)=>{var t=i(210),s=i(2296),o=i(1044)(),e=i(7296),c=t("%TypeError%"),u=t("%Math.floor%");f.exports=function(h,b){if(typeof h!="function")throw new c("`fn` is not a function");if(typeof b!="number"||b<0||b>4294967295||u(b)!==b)throw new c("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],k=!0,d=!0;if("length"in h&&e){var w=e(h,"length");w&&!w.configurable&&(k=!1),w&&!w.writable&&(d=!1)}return(k||d||!p)&&(o?s(h,"length",b,!0,!0):s(h,"length",b)),h}},4189:(f,a,i)=>{var t=i(9509).Buffer;function s(o,e){this._block=t.alloc(o),this._finalSize=e,this._blockSize=o,this._len=0}s.prototype.update=function(o,e){typeof o=="string"&&(e=e||"utf8",o=t.from(o,e));for(var c=this._block,u=this._blockSize,h=o.length,b=this._len,p=0;p=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var u=(4294967295&c)>>>0,h=(c-u)/4294967296;this._block.writeUInt32BE(h,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var b=this._hash();return o?b.toString(o):b},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},f.exports=s},9072:(f,a,i)=>{var t=f.exports=function(s){s=s.toLowerCase();var o=t[s];if(!o)throw new Error(s+" is not supported (we accept pull requests)");return new o};t.sha=i(4448),t.sha1=i(8336),t.sha224=i(8432),t.sha256=i(7499),t.sha384=i(1686),t.sha512=i(7816)},4448:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(p){return p<<30|p>>>2}function b(p,k,d,w){return p===0?k&d|~k&w:p===2?k&d|k&w|d&w:k^d^w}t(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(p){for(var k,d=this._w,w=0|this._a,y=0|this._b,_=0|this._c,x=0|this._d,E=0|this._e,S=0;S<16;++S)d[S]=p.readInt32BE(4*S);for(;S<80;++S)d[S]=d[S-3]^d[S-8]^d[S-14]^d[S-16];for(var C=0;C<80;++C){var T=~~(C/20),R=0|((k=w)<<5|k>>>27)+b(T,y,_,x)+E+d[C]+e[T];E=x,x=_,_=h(y),y=w,w=R}this._a=w+this._a|0,this._b=y+this._b|0,this._c=_+this._c|0,this._d=x+this._d|0,this._e=E+this._e|0},u.prototype._hash=function(){var p=o.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},f.exports=u},8336:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(k){return k<<5|k>>>27}function b(k){return k<<30|k>>>2}function p(k,d,w,y){return k===0?d&w|~d&y:k===2?d&w|d&y|w&y:d^w^y}t(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(k){for(var d,w=this._w,y=0|this._a,_=0|this._b,x=0|this._c,E=0|this._d,S=0|this._e,C=0;C<16;++C)w[C]=k.readInt32BE(4*C);for(;C<80;++C)w[C]=(d=w[C-3]^w[C-8]^w[C-14]^w[C-16])<<1|d>>>31;for(var T=0;T<80;++T){var R=~~(T/20),W=h(y)+p(R,_,x,E)+S+w[T]+e[R]|0;S=E,E=x,x=b(_),_=y,y=W}this._a=y+this._a|0,this._b=_+this._b|0,this._c=x+this._c|0,this._d=E+this._d|0,this._e=S+this._e|0},u.prototype._hash=function(){var k=o.allocUnsafe(20);return k.writeInt32BE(0|this._a,0),k.writeInt32BE(0|this._b,4),k.writeInt32BE(0|this._c,8),k.writeInt32BE(0|this._d,12),k.writeInt32BE(0|this._e,16),k},f.exports=u},8432:(f,a,i)=>{var t=i(5717),s=i(7499),o=i(4189),e=i(9509).Buffer,c=new Array(64);function u(){this.init(),this._w=c,o.call(this,64,56)}t(u,s),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var h=e.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},f.exports=u},7499:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(w,y,_){return _^w&(y^_)}function b(w,y,_){return w&y|_&(w|y)}function p(w){return(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10)}function k(w){return(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7)}function d(w){return(w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3}t(u,s),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(w){for(var y,_=this._w,x=0|this._a,E=0|this._b,S=0|this._c,C=0|this._d,T=0|this._e,R=0|this._f,W=0|this._g,j=0|this._h,L=0;L<16;++L)_[L]=w.readInt32BE(4*L);for(;L<64;++L)_[L]=0|(((y=_[L-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+_[L-7]+d(_[L-15])+_[L-16];for(var Q=0;Q<64;++Q){var U=j+k(T)+h(T,R,W)+e[Q]+_[Q]|0,Z=p(x)+b(x,E,S)|0;j=W,W=R,R=T,T=C+U|0,C=S,S=E,E=x,x=U+Z|0}this._a=x+this._a|0,this._b=E+this._b|0,this._c=S+this._c|0,this._d=C+this._d|0,this._e=T+this._e|0,this._f=R+this._f|0,this._g=W+this._g|0,this._h=j+this._h|0},u.prototype._hash=function(){var w=o.allocUnsafe(32);return w.writeInt32BE(this._a,0),w.writeInt32BE(this._b,4),w.writeInt32BE(this._c,8),w.writeInt32BE(this._d,12),w.writeInt32BE(this._e,16),w.writeInt32BE(this._f,20),w.writeInt32BE(this._g,24),w.writeInt32BE(this._h,28),w},f.exports=u},1686:(f,a,i)=>{var t=i(5717),s=i(7816),o=i(4189),e=i(9509).Buffer,c=new Array(160);function u(){this.init(),this._w=c,o.call(this,128,112)}t(u,s),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var h=e.allocUnsafe(48);function b(p,k,d){h.writeInt32BE(p,d),h.writeInt32BE(k,d+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),h},f.exports=u},7816:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function u(){this.init(),this._w=c,s.call(this,128,112)}function h(E,S,C){return C^E&(S^C)}function b(E,S,C){return E&S|C&(E|S)}function p(E,S){return(E>>>28|S<<4)^(S>>>2|E<<30)^(S>>>7|E<<25)}function k(E,S){return(E>>>14|S<<18)^(E>>>18|S<<14)^(S>>>9|E<<23)}function d(E,S){return(E>>>1|S<<31)^(E>>>8|S<<24)^E>>>7}function w(E,S){return(E>>>1|S<<31)^(E>>>8|S<<24)^(E>>>7|S<<25)}function y(E,S){return(E>>>19|S<<13)^(S>>>29|E<<3)^E>>>6}function _(E,S){return(E>>>19|S<<13)^(S>>>29|E<<3)^(E>>>6|S<<26)}function x(E,S){return E>>>0>>0?1:0}t(u,s),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(E){for(var S=this._w,C=0|this._ah,T=0|this._bh,R=0|this._ch,W=0|this._dh,j=0|this._eh,L=0|this._fh,Q=0|this._gh,U=0|this._hh,Z=0|this._al,se=0|this._bl,te=0|this._cl,$=0|this._dl,P=0|this._el,A=0|this._fl,O=0|this._gl,z=0|this._hl,G=0;G<32;G+=2)S[G]=E.readInt32BE(4*G),S[G+1]=E.readInt32BE(4*G+4);for(;G<160;G+=2){var re=S[G-30],X=S[G-30+1],be=d(re,X),Be=w(X,re),ve=y(re=S[G-4],X=S[G-4+1]),he=_(X,re),le=S[G-14],ge=S[G-14+1],Ne=S[G-32],Ue=S[G-32+1],Le=Be+ge|0,De=be+le+x(Le,Be)|0;De=(De=De+ve+x(Le=Le+he|0,he)|0)+Ne+x(Le=Le+Ue|0,Ue)|0,S[G]=De,S[G+1]=Le}for(var Fe=0;Fe<160;Fe+=2){De=S[Fe],Le=S[Fe+1];var Oe=b(C,T,R),We=b(Z,se,te),ot=p(C,Z),Ke=p(Z,C),B=k(j,P),H=k(P,j),M=e[Fe],J=e[Fe+1],ue=h(j,L,Q),F=h(P,A,O),N=z+H|0,q=U+B+x(N,z)|0;q=(q=(q=q+ue+x(N=N+F|0,F)|0)+M+x(N=N+J|0,J)|0)+De+x(N=N+Le|0,Le)|0;var I=Ke+We|0,K=ot+Oe+x(I,Ke)|0;U=Q,z=O,Q=L,O=A,L=j,A=P,j=W+q+x(P=$+N|0,$)|0,W=R,$=te,R=T,te=se,T=C,se=Z,C=q+K+x(Z=N+I|0,N)|0}this._al=this._al+Z|0,this._bl=this._bl+se|0,this._cl=this._cl+te|0,this._dl=this._dl+$|0,this._el=this._el+P|0,this._fl=this._fl+A|0,this._gl=this._gl+O|0,this._hl=this._hl+z|0,this._ah=this._ah+C+x(this._al,Z)|0,this._bh=this._bh+T+x(this._bl,se)|0,this._ch=this._ch+R+x(this._cl,te)|0,this._dh=this._dh+W+x(this._dl,$)|0,this._eh=this._eh+j+x(this._el,P)|0,this._fh=this._fh+L+x(this._fl,A)|0,this._gh=this._gh+Q+x(this._gl,O)|0,this._hh=this._hh+U+x(this._hl,z)|0},u.prototype._hash=function(){var E=o.allocUnsafe(64);function S(C,T,R){E.writeInt32BE(C,R),E.writeInt32BE(T,R+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),E},f.exports=u},7478:(f,a,i)=>{var t=i(210),s=i(1924),o=i(631),e=t("%TypeError%"),c=t("%WeakMap%",!0),u=t("%Map%",!0),h=s("WeakMap.prototype.get",!0),b=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),k=s("Map.prototype.get",!0),d=s("Map.prototype.set",!0),w=s("Map.prototype.has",!0),y=function(_,x){for(var E,S=_;(E=S.next)!==null;S=E)if(E.key===x)return S.next=E.next,E.next=_.next,_.next=E,E};f.exports=function(){var _,x,E,S={assert:function(C){if(!S.has(C))throw new e("Side channel does not contain "+o(C))},get:function(C){if(c&&C&&(typeof C=="object"||typeof C=="function")){if(_)return h(_,C)}else if(u){if(x)return k(x,C)}else if(E)return function(T,R){var W=y(T,R);return W&&W.value}(E,C)},has:function(C){if(c&&C&&(typeof C=="object"||typeof C=="function")){if(_)return p(_,C)}else if(u){if(x)return w(x,C)}else if(E)return function(T,R){return!!y(T,R)}(E,C);return!1},set:function(C,T){c&&C&&(typeof C=="object"||typeof C=="function")?(_||(_=new c),b(_,C,T)):u?(x||(x=new u),d(x,C,T)):(E||(E={key:{},next:null}),function(R,W,j){var L=y(R,W);L?L.value=j:R.next={key:W,next:R.next,value:j}}(E,C,T))}};return S}},8501:(f,a,i)=>{var t=i(1989),s=i(5676),o=i(7529),e=i(584),c=i(8575),u=a;u.request=function(h,b){h=typeof h=="string"?c.parse(h):o(h);var p=i.g.location.protocol.search(/^https?:$/)===-1?"http:":"",k=h.protocol||p,d=h.hostname||h.host,w=h.port,y=h.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),h.url=(d?k+"//"+d:"")+(w?":"+w:"")+y,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var _=new t(h);return b&&_.on("response",b),_},u.get=function(h,b){var p=u.request(h,b);return p.end(),p},u.ClientRequest=t,u.IncomingMessage=s.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=e,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(f,a,i)=>{var t;function s(){if(t!==void 0)return t;if(i.g.XMLHttpRequest){t=new i.g.XMLHttpRequest;try{t.open("GET",i.g.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function o(c){var u=s();if(!u)return!1;try{return u.responseType=c,u.responseType===c}catch{}return!1}function e(c){return typeof c=="function"}a.fetch=e(i.g.fetch)&&e(i.g.ReadableStream),a.writableStream=e(i.g.WritableStream),a.abortController=e(i.g.AbortController),a.arraybuffer=a.fetch||o("arraybuffer"),a.msstream=!a.fetch&&o("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&o("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!s()&&e(s().overrideMimeType),t=null},1989:(f,a,i)=>{var t=i(8764).Buffer,s=i(8725),o=i(5717),e=i(5676),c=i(8473),u=e.IncomingMessage,h=e.readyStates,b=f.exports=function(k){var d,w=this;c.Writable.call(w),w._opts=k,w._body=[],w._headers={},k.auth&&w.setHeader("Authorization","Basic "+t.from(k.auth).toString("base64")),Object.keys(k.headers).forEach(function(_){w.setHeader(_,k.headers[_])});var y=!0;if(k.mode==="disable-fetch"||"requestTimeout"in k&&!s.abortController)y=!1,d=!0;else if(k.mode==="prefer-streaming")d=!1;else if(k.mode==="allow-wrong-content-type")d=!s.overrideMimeType;else{if(k.mode&&k.mode!=="default"&&k.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");d=!0}w._mode=function(_,x){return s.fetch&&x?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&_?"arraybuffer":"text"}(d,y),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})};o(b,c.Writable),b.prototype.setHeader=function(k,d){var w=k.toLowerCase();p.indexOf(w)===-1&&(this._headers[w]={name:k,value:d})},b.prototype.getHeader=function(k){var d=this._headers[k.toLowerCase()];return d?d.value:null},b.prototype.removeHeader=function(k){delete this._headers[k.toLowerCase()]},b.prototype._onFinish=function(){var k=this;if(!k._destroyed){var d=k._opts;"timeout"in d&&d.timeout!==0&&k.setTimeout(d.timeout);var w=k._headers,y=null;d.method!=="GET"&&d.method!=="HEAD"&&(y=new Blob(k._body,{type:(w["content-type"]||{}).value||""}));var _=[];if(Object.keys(w).forEach(function(C){var T=w[C].name,R=w[C].value;Array.isArray(R)?R.forEach(function(W){_.push([T,W])}):_.push([T,R])}),k._mode==="fetch"){var x=null;if(s.abortController){var E=new AbortController;x=E.signal,k._fetchAbortController=E,"requestTimeout"in d&&d.requestTimeout!==0&&(k._fetchTimer=i.g.setTimeout(function(){k.emit("requestTimeout"),k._fetchAbortController&&k._fetchAbortController.abort()},d.requestTimeout))}i.g.fetch(k._opts.url,{method:k._opts.method,headers:_,body:y||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:x}).then(function(C){k._fetchResponse=C,k._resetTimers(!1),k._connect()},function(C){k._resetTimers(!0),k._destroyed||k.emit("error",C)})}else{var S=k._xhr=new i.g.XMLHttpRequest;try{S.open(k._opts.method,k._opts.url,!0)}catch(C){return void process.nextTick(function(){k.emit("error",C)})}"responseType"in S&&(S.responseType=k._mode),"withCredentials"in S&&(S.withCredentials=!!d.withCredentials),k._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(S.timeout=d.requestTimeout,S.ontimeout=function(){k.emit("requestTimeout")}),_.forEach(function(C){S.setRequestHeader(C[0],C[1])}),k._response=null,S.onreadystatechange=function(){switch(S.readyState){case h.LOADING:case h.DONE:k._onXHRProgress()}},k._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){k._onXHRProgress()}),S.onerror=function(){k._destroyed||(k._resetTimers(!0),k.emit("error",new Error("XHR error")))};try{S.send(y)}catch(C){return void process.nextTick(function(){k.emit("error",C)})}}}},b.prototype._onXHRProgress=function(){var k=this;k._resetTimers(!1),function(d){try{var w=d.status;return w!==null&&w!==0}catch{return!1}}(k._xhr)&&!k._destroyed&&(k._response||k._connect(),k._response._onXHRProgress(k._resetTimers.bind(k)))},b.prototype._connect=function(){var k=this;k._destroyed||(k._response=new u(k._xhr,k._fetchResponse,k._mode,k._resetTimers.bind(k)),k._response.on("error",function(d){k.emit("error",d)}),k.emit("response",k._response))},b.prototype._write=function(k,d,w){this._body.push(k),w()},b.prototype._resetTimers=function(k){var d=this;i.g.clearTimeout(d._socketTimer),d._socketTimer=null,k?(i.g.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=i.g.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},b.prototype.abort=b.prototype.destroy=function(k){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),k&&d.emit("error",k)},b.prototype.end=function(k,d,w){typeof k=="function"&&(w=k,k=void 0),c.Writable.prototype.end.call(this,k,d,w)},b.prototype.setTimeout=function(k,d){var w=this;d&&w.once("timeout",d),w._socketTimeout=k,w._resetTimers(!1)},b.prototype.flushHeaders=function(){},b.prototype.setNoDelay=function(){},b.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(f,a,i)=>{var t=i(8764).Buffer,s=i(8725),o=i(5717),e=i(8473),c=a.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=a.IncomingMessage=function(h,b,p,k){var d=this;if(e.Readable.call(d),d._mode=p,d.headers={},d.rawHeaders=[],d.trailers={},d.rawTrailers=[],d.on("end",function(){process.nextTick(function(){d.emit("close")})}),p==="fetch"){if(d._fetchResponse=b,d.url=b.url,d.statusCode=b.status,d.statusMessage=b.statusText,b.headers.forEach(function(E,S){d.headers[S.toLowerCase()]=E,d.rawHeaders.push(S,E)}),s.writableStream){var w=new WritableStream({write:function(E){return k(!1),new Promise(function(S,C){d._destroyed?C():d.push(t.from(E))?S():d._resumeFetch=S})},close:function(){k(!0),d._destroyed||d.push(null)},abort:function(E){k(!0),d._destroyed||d.emit("error",E)}});try{return void b.body.pipeTo(w).catch(function(E){k(!0),d._destroyed||d.emit("error",E)})}catch{}}var y=b.body.getReader();(function E(){y.read().then(function(S){d._destroyed||(k(S.done),S.done?d.push(null):(d.push(t.from(S.value)),E()))}).catch(function(S){k(!0),d._destroyed||d.emit("error",S)})})()}else if(d._xhr=h,d._pos=0,d.url=h.responseURL,d.statusCode=h.status,d.statusMessage=h.statusText,h.getAllResponseHeaders().split(/\r?\n/).forEach(function(E){var S=E.match(/^([^:]+):\s*(.*)/);if(S){var C=S[1].toLowerCase();C==="set-cookie"?(d.headers[C]===void 0&&(d.headers[C]=[]),d.headers[C].push(S[2])):d.headers[C]!==void 0?d.headers[C]+=", "+S[2]:d.headers[C]=S[2],d.rawHeaders.push(S[1],S[2])}}),d._charset="x-user-defined",!s.overrideMimeType){var _=d.rawHeaders["mime-type"];if(_){var x=_.match(/;\s*charset=([^;])(;|$)/);x&&(d._charset=x[1].toLowerCase())}d._charset||(d._charset="utf-8")}};o(u,e.Readable),u.prototype._read=function(){var h=this._resumeFetch;h&&(this._resumeFetch=null,h())},u.prototype._onXHRProgress=function(h){var b=this,p=b._xhr,k=null;switch(b._mode){case"text":if((k=p.responseText).length>b._pos){var d=k.substr(b._pos);if(b._charset==="x-user-defined"){for(var w=t.alloc(d.length),y=0;yb._pos&&(b.push(t.from(new Uint8Array(_.result.slice(b._pos)))),b._pos=_.result.byteLength)},_.onload=function(){h(!0),b.push(null)},_.readAsArrayBuffer(k)}b._xhr.readyState===c.DONE&&b._mode!=="ms-stream"&&(h(!0),b.push(null))}},2553:(f,a,i)=>{var t=i(9509).Buffer,s=t.isEncoding||function(w){switch((w=""+w)&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(w){var y;switch(this.encoding=function(_){var x=function(E){if(!E)return"utf8";for(var S;;)switch(E){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return E;default:if(S)return;E=(""+E).toLowerCase(),S=!0}}(_);if(typeof x!="string"&&(t.isEncoding===s||!s(_)))throw new Error("Unknown encoding: "+_);return x||_}(w),this.encoding){case"utf16le":this.text=u,this.end=h,y=4;break;case"utf8":this.fillLast=c,y=4;break;case"base64":this.text=b,this.end=p,y=3;break;default:return this.write=k,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(y)}function e(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function c(w){var y=this.lastTotal-this.lastNeed,_=function(x,E,S){if((192&E[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&E.length>1){if((192&E[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&E.length>2&&(192&E[2])!=128)return x.lastNeed=2,"�"}}(this,w);return _!==void 0?_:this.lastNeed<=w.length?(w.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,y,0,w.length),void(this.lastNeed-=w.length))}function u(w,y){if((w.length-y)%2==0){var _=w.toString("utf16le",y);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",y,w.length-1)}function h(w){var y=w&&w.length?this.write(w):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,_)}return y}function b(w,y){var _=(w.length-y)%3;return _===0?w.toString("base64",y):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",y,w.length-_))}function p(w){var y=w&&w.length?this.write(w):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function k(w){return w.toString(this.encoding)}function d(w){return w&&w.length?this.write(w):""}a.s=o,o.prototype.write=function(w){if(w.length===0)return"";var y,_;if(this.lastNeed){if((y=this.fillLast(w))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(R>0&&(E.lastNeed=R-1),R):--T=0?(R>0&&(E.lastNeed=R-2),R):--T=0?(R>0&&(R===2?R=0:E.lastNeed=R-3),R):0))}(this,w,y);if(!this.lastNeed)return w.toString("utf8",y);this.lastTotal=_;var x=w.length-(_-this.lastNeed);return w.copy(this.lastChar,0,x),w.toString("utf8",y,x)},o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},5424:(f,a,i)=>{var t=i(8311),s=i(5133);f.exports={parse:function(o){var e=t.parse(o.toString());return s.compile(e)}}},5133:f=>{f.exports={compile:function(a){var i=[],t=[],s="",o=Object.create(null),e=o;return function(_){for(var x,E=0;E<_.length;E++)switch((x=_[E]).type){case"Assign":u(x);break;case"ObjectPath":k(x);break;case"ArrayPath":d(x)}return o}(a);function c(_,x,E){var S=new Error(_);throw S.line=x,S.column=E,S}function u(_){var x,E=_.key,S=_.value,C=_.line,T=_.column;x=s?s+"."+E:E,e[E]!==void 0&&c("Cannot redefine existing key '"+x+"'.",C,T),e[E]=b(S),h(x)||(i.push(x),t.push(x))}function h(_){return i.indexOf(_)!==-1}function b(_){return _.type==="Array"?function(x){for(var E=null,S=0;S-1&&c("Cannot redefine existing key '"+R+"'.",S,C),(W=W[L])instanceof Array&&W.length&&j-1?'"'+_+'"':_}}}},8311:f=>{f.exports=function(){function a(i,t,s,o,e,c){this.message=i,this.expected=t,this.found=s,this.offset=o,this.line=e,this.column=c,this.name="SyntaxError"}return function(i,t){function s(){this.constructor=i}s.prototype=t.prototype,i.prototype=new s}(a,Error),{SyntaxError:a,parse:function(i){var t,s=arguments.length>1?arguments[1]:{},o={},e={start:cr},c=cr,u=function(){return Se},h=o,b="#",p={type:"literal",value:"#",description:'"#"'},k=void 0,d={type:"any",description:"any character"},w="[",y={type:"literal",value:"[",description:'"["'},_="]",x={type:"literal",value:"]",description:'"]"'},E=function(D){He(ne("ObjectPath",D,Cn,kn))},S=function(D){He(ne("ArrayPath",D,Cn,kn))},C=function(D,fe){return D.concat(fe)},T=function(D){return[D]},R=function(D){return D},W=".",j={type:"literal",value:".",description:'"."'},L="=",Q={type:"literal",value:"=",description:'"="'},U=function(D,fe){He(ne("Assign",fe,Cn,kn,D))},Z=function(D){return D.join("")},se=function(D){return D.value},te='"""',$={type:"literal",value:'"""',description:'"\\"\\"\\""'},P=null,A=function(D){return ne("String",D.join(""),Cn,kn)},O='"',z={type:"literal",value:'"',description:'"\\""'},G="'''",re={type:"literal",value:"'''",description:`"'''"`},X="'",be={type:"literal",value:"'",description:`"'"`},Be=function(D){return D},ve=function(D){return D},he="\\",le={type:"literal",value:"\\",description:'"\\\\"'},ge=function(){return""},Ne="e",Ue={type:"literal",value:"e",description:'"e"'},Le="E",De={type:"literal",value:"E",description:'"E"'},Fe=function(D,fe){return ne("Float",parseFloat(D+"e"+fe),Cn,kn)},Oe=function(D){return ne("Float",parseFloat(D),Cn,kn)},We="+",ot={type:"literal",value:"+",description:'"+"'},Ke=function(D){return D.join("")},B="-",H={type:"literal",value:"-",description:'"-"'},M=function(D){return"-"+D.join("")},J=function(D){return ne("Integer",parseInt(D,10),Cn,kn)},ue="true",F={type:"literal",value:"true",description:'"true"'},N=function(){return ne("Boolean",!0,Cn,kn)},q="false",I={type:"literal",value:"false",description:'"false"'},K=function(){return ne("Boolean",!1,Cn,kn)},oe=function(){return ne("Array",[],Cn,kn)},ye=function(D){return ne("Array",D?[D]:[],Cn,kn)},Pe=function(D){return ne("Array",D,Cn,kn)},rt=function(D,fe){return ne("Array",D.concat(fe),Cn,kn)},lt=function(D){return D},vt=",",_t={type:"literal",value:",",description:'","'},qt="{",me={type:"literal",value:"{",description:'"{"'},we="}",xe={type:"literal",value:"}",description:'"}"'},V=function(D){return ne("InlineTable",D,Cn,kn)},Y=function(D,fe){return ne("InlineTableValue",fe,Cn,kn,D)},ke=function(D){return"."+D},$e=function(D){return D.join("")},ze=":",je={type:"literal",value:":",description:'":"'},ut=function(D){return D.join("")},nt="T",at={type:"literal",value:"T",description:'"T"'},It="Z",Nt={type:"literal",value:"Z",description:'"Z"'},Rt=function(D,fe){return ne("Date",new Date(D+"T"+fe+"Z"),Cn,kn)},Gt=function(D,fe){return ne("Date",new Date(D+"T"+fe),Cn,kn)},Jt=/^[ \t]/,Ht={type:"class",value:"[ \\t]",description:"[ \\t]"},Zt=` +`+H.prev}function Ke(B,H){var M=Be(B),J=[];if(M){J.length=B.length;for(var ue=0;ue{var a=String.prototype.replace,i=/%20/g,t="RFC1738",s="RFC3986";f.exports={default:s,formatters:{RFC1738:function(o){return a.call(o,i,"+")},RFC3986:function(o){return String(o)}},RFC1738:t,RFC3986:s}},129:(f,a,i)=>{var t=i(8261),s=i(5235),o=i(5798);f.exports={formats:o,parse:s,stringify:t}},5235:(f,a,i)=>{var t=i(2769),s=Object.prototype.hasOwnProperty,o=Array.isArray,e={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(b){return b.replace(/&#(\d+);/g,function(m,k){return String.fromCharCode(parseInt(k,10))})},u=function(b,m){return b&&typeof b=="string"&&m.comma&&b.indexOf(",")>-1?b.split(","):b},h=function(b,m,k,d){if(b){var w=k.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,y=/(\[[^[\]]*])/g,_=k.depth>0&&/(\[[^[\]]*])/.exec(w),x=_?w.slice(0,_.index):w,E=[];if(x){if(!k.plainObjects&&s.call(Object.prototype,x)&&!k.allowPrototypes)return;E.push(x)}for(var S=0;k.depth>0&&(_=y.exec(w))!==null&&S=0;--L){var Q,U=C[L];if(U==="[]"&&R.parseArrays)Q=[].concat(j);else{Q=R.plainObjects?Object.create(null):{};var Z=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,se=parseInt(Z,10);R.parseArrays||Z!==""?!isNaN(se)&&U!==Z&&String(se)===Z&&se>=0&&R.parseArrays&&se<=R.arrayLimit?(Q=[])[se]=j:Z!=="__proto__"&&(Q[Z]=j):Q={0:j}}j=Q}return j}(E,m,k,d)}};f.exports=function(b,m){var k=function(S){if(!S)return e;if(S.decoder!==null&&S.decoder!==void 0&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(S.charset!==void 0&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=S.charset===void 0?e.charset:S.charset;return{allowDots:S.allowDots===void 0?e.allowDots:!!S.allowDots,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:e.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:e.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:e.arrayLimit,charset:C,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:e.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:e.comma,decoder:typeof S.decoder=="function"?S.decoder:e.decoder,delimiter:typeof S.delimiter=="string"||t.isRegExp(S.delimiter)?S.delimiter:e.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:e.depth,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:e.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:e.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:e.plainObjects,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:e.strictNullHandling}}(m);if(b===""||b==null)return k.plainObjects?Object.create(null):{};for(var d=typeof b=="string"?function(S,C){var T,R={__proto__:null},W=C.ignoreQueryPrefix?S.replace(/^\?/,""):S,j=C.parameterLimit===1/0?void 0:C.parameterLimit,L=W.split(C.delimiter,j),Q=-1,U=C.charset;if(C.charsetSentinel)for(T=0;T-1&&(se=o(se)?[se]:se),s.call(R,Z)?R[Z]=t.combine(R[Z],se):R[Z]=se}return R}(b,k):b,w=k.plainObjects?Object.create(null):{},y=Object.keys(d),_=0;_{var t=i(7478),s=i(2769),o=i(5798),e=Object.prototype.hasOwnProperty,c={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,x){return _+"["+x+"]"},repeat:function(_){return _}},u=Array.isArray,h=Array.prototype.push,b=function(_,x){h.apply(_,u(x)?x:[x])},m=Date.prototype.toISOString,k=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:k,formatter:o.formatters[k],indices:!1,serializeDate:function(_){return m.call(_)},skipNulls:!1,strictNullHandling:!1},w={},y=function _(x,E,S,C,T,R,W,j,L,Q,U,Z,se,te,$,P){for(var A,O=x,z=P,G=0,re=!1;(z=z.get(w))!==void 0&&!re;){var X=z.get(x);if(G+=1,X!==void 0){if(X===G)throw new RangeError("Cyclic object value");re=!0}z.get(w)===void 0&&(G=0)}if(typeof j=="function"?O=j(E,O):O instanceof Date?O=U(O):S==="comma"&&u(O)&&(O=s.maybeMap(O,function(De){return De instanceof Date?U(De):De})),O===null){if(T)return W&&!te?W(E,d.encoder,$,"key",Z):E;O=""}if(typeof(A=O)=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"||s.isBuffer(O))return W?[se(te?E:W(E,d.encoder,$,"key",Z))+"="+se(W(O,d.encoder,$,"value",Z))]:[se(E)+"="+se(String(O))];var be,Be=[];if(O===void 0)return Be;if(S==="comma"&&u(O))te&&W&&(O=s.maybeMap(O,W)),be=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(j))be=j;else{var ve=Object.keys(O);be=L?ve.sort(L):ve}for(var he=C&&u(O)&&O.length===1?E+"[]":E,le=0;le0?se+Z:""}},2769:(f,a,i)=>{var t=i(5798),s=Object.prototype.hasOwnProperty,o=Array.isArray,e=function(){for(var u=[],h=0;h<256;++h)u.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return u}(),c=function(u,h){for(var b=h&&h.plainObjects?Object.create(null):{},m=0;m1;){var S=E.pop(),C=S.obj[S.prop];if(o(C)){for(var T=[],R=0;R=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||k===t.RFC1738&&(_===40||_===41)?w+=d.charAt(y):_<128?w+=e[_]:_<2048?w+=e[192|_>>6]+e[128|63&_]:_<55296||_>=57344?w+=e[224|_>>12]+e[128|_>>6&63]+e[128|63&_]:(y+=1,_=65536+((1023&_)<<10|1023&d.charCodeAt(y)),w+=e[240|_>>18]+e[128|_>>12&63]+e[128|_>>6&63]+e[128|63&_])}return w},isBuffer:function(u){return!(!u||typeof u!="object")&&!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},isRegExp:function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},maybeMap:function(u,h){if(o(u)){for(var b=[],m=0;m{var t=65536,s=4294967295,o=i(9509).Buffer,e=i.g.crypto||i.g.msCrypto;e&&e.getRandomValues?f.exports=function(c,u){if(c>s)throw new RangeError("requested too many random bytes");var h=o.allocUnsafe(c);if(c>0)if(c>t)for(var b=0;b{var a={};function i(s,o,e){e||(e=Error);var c=function(u){var h,b;function m(k,d,w){return u.call(this,function(y,_,x){return typeof o=="string"?o:o(y,_,x)}(k,d,w))||this}return b=u,(h=m).prototype=Object.create(b.prototype),h.prototype.constructor=h,h.__proto__=b,m}(e);c.prototype.name=e.name,c.prototype.code=s,a[s]=c}function t(s,o){if(Array.isArray(s)){var e=s.length;return s=s.map(function(c){return String(c)}),e>2?"one of ".concat(o," ").concat(s.slice(0,e-1).join(", "),", or ")+s[e-1]:e===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}return"of ".concat(o," ").concat(String(s))}i("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(s,o,e){var c,u,h;if(typeof o=="string"&&(u="not ",o.substr(0,u.length)===u)?(c="must not be",o=o.replace(/^not /,"")):c="must be",function(m,k,d){return(d===void 0||d>m.length)&&(d=m.length),m.substring(d-k.length,d)===k}(s," argument"))h="The ".concat(s," ").concat(c," ").concat(t(o,"type"));else{var b=function(m,k,d){return typeof d!="number"&&(d=0),!(d+k.length>m.length)&&m.indexOf(k,d)!==-1}(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(b," ").concat(c," ").concat(t(o,"type"))}return h+=". Received type ".concat(typeof e)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),f.exports.q=a},6753:(f,a,i)=>{var t=Object.keys||function(k){var d=[];for(var w in k)d.push(w);return d};f.exports=h;var s=i(9481),o=i(4229);i(5717)(h,s);for(var e=t(o.prototype),c=0;c{f.exports=s;var t=i(4605);function s(o){if(!(this instanceof s))return new s(o);t.call(this,o)}i(5717)(s,t),s.prototype._transform=function(o,e,c){c(null,o)}},9481:(f,a,i)=>{var t;f.exports=j,j.ReadableState=W,i(7187).EventEmitter;var s=function(ve,he){return ve.listeners(he).length},o=i(2503),e=i(8764).Buffer,c=(i.g!==void 0?i.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},u,h=i(4616);u=h&&h.debuglog?h.debuglog("stream"):function(){};var b,m,k,d=i(7327),w=i(1195),y=i(2457).getHighWaterMark,_=i(4281).q,x=_.ERR_INVALID_ARG_TYPE,E=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,C=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(5717)(j,o);var T=w.errorOrDestroy,R=["error","close","destroy","pause","resume"];function W(ve,he,le){t=t||i(6753),ve=ve||{},typeof le!="boolean"&&(le=he instanceof t),this.objectMode=!!ve.objectMode,le&&(this.objectMode=this.objectMode||!!ve.readableObjectMode),this.highWaterMark=y(this,ve,"readableHighWaterMark",le),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ve.emitClose!==!1,this.autoDestroy=!!ve.autoDestroy,this.destroyed=!1,this.defaultEncoding=ve.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ve.encoding&&(b||(b=i(2553).s),this.decoder=new b(ve.encoding),this.encoding=ve.encoding)}function j(ve){if(t=t||i(6753),!(this instanceof j))return new j(ve);var he=this instanceof t;this._readableState=new W(ve,this,he),this.readable=!0,ve&&(typeof ve.read=="function"&&(this._read=ve.read),typeof ve.destroy=="function"&&(this._destroy=ve.destroy)),o.call(this)}function L(ve,he,le,ge,Ne){u("readableAddChunk",he);var Ue,Le=ve._readableState;if(he===null)Le.reading=!1,function(De,Fe){if(u("onEofChunk"),!Fe.ended){if(Fe.decoder){var Oe=Fe.decoder.end();Oe&&Oe.length&&(Fe.buffer.push(Oe),Fe.length+=Fe.objectMode?1:Oe.length)}Fe.ended=!0,Fe.sync?se(De):(Fe.needReadable=!1,Fe.emittedReadable||(Fe.emittedReadable=!0,te(De)))}}(ve,Le);else if(Ne||(Ue=function(De,Fe){var Oe;We=Fe,e.isBuffer(We)||We instanceof c||typeof Fe=="string"||Fe===void 0||De.objectMode||(Oe=new x("chunk",["string","Buffer","Uint8Array"],Fe));var We;return Oe}(Le,he)),Ue)T(ve,Ue);else if(Le.objectMode||he&&he.length>0)if(typeof he=="string"||Le.objectMode||Object.getPrototypeOf(he)===e.prototype||(he=function(De){return e.from(De)}(he)),ge)Le.endEmitted?T(ve,new C):Q(ve,Le,he,!0);else if(Le.ended)T(ve,new E);else{if(Le.destroyed)return!1;Le.reading=!1,Le.decoder&&!le?(he=Le.decoder.write(he),Le.objectMode||he.length!==0?Q(ve,Le,he,!1):$(ve,Le)):Q(ve,Le,he,!1)}else ge||(Le.reading=!1,$(ve,Le));return!Le.ended&&(Le.lengthhe.highWaterMark&&(he.highWaterMark=function(le){return le>=U?le=U:(le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++),le}(ve)),ve<=he.length?ve:he.ended?he.length:(he.needReadable=!0,0))}function se(ve){var he=ve._readableState;u("emitReadable",he.needReadable,he.emittedReadable),he.needReadable=!1,he.emittedReadable||(u("emitReadable",he.flowing),he.emittedReadable=!0,process.nextTick(te,ve))}function te(ve){var he=ve._readableState;u("emitReadable_",he.destroyed,he.length,he.ended),he.destroyed||!he.length&&!he.ended||(ve.emit("readable"),he.emittedReadable=!1),he.needReadable=!he.flowing&&!he.ended&&he.length<=he.highWaterMark,G(ve)}function $(ve,he){he.readingMore||(he.readingMore=!0,process.nextTick(P,ve,he))}function P(ve,he){for(;!he.reading&&!he.ended&&(he.length0,he.resumeScheduled&&!he.paused?he.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function O(ve){u("readable nexttick read 0"),ve.read(0)}function z(ve,he){u("resume",he.reading),he.reading||ve.read(0),he.resumeScheduled=!1,ve.emit("resume"),G(ve),he.flowing&&!he.reading&&ve.read(0)}function G(ve){var he=ve._readableState;for(u("flow",he.flowing);he.flowing&&ve.read()!==null;);}function re(ve,he){return he.length===0?null:(he.objectMode?le=he.buffer.shift():!ve||ve>=he.length?(le=he.decoder?he.buffer.join(""):he.buffer.length===1?he.buffer.first():he.buffer.concat(he.length),he.buffer.clear()):le=he.buffer.consume(ve,he.decoder),le);var le}function X(ve){var he=ve._readableState;u("endReadable",he.endEmitted),he.endEmitted||(he.ended=!0,process.nextTick(be,he,ve))}function be(ve,he){if(u("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&ve.length===0&&(ve.endEmitted=!0,he.readable=!1,he.emit("end"),ve.autoDestroy)){var le=he._writableState;(!le||le.autoDestroy&&le.finished)&&he.destroy()}}function Be(ve,he){for(var le=0,ge=ve.length;le=he.highWaterMark:he.length>0)||he.ended))return u("read: emitReadable",he.length,he.ended),he.length===0&&he.ended?X(this):se(this),null;if((ve=Z(ve,he))===0&&he.ended)return he.length===0&&X(this),null;var ge,Ne=he.needReadable;return u("need readable",Ne),(he.length===0||he.length-ve0?re(ve,he):null)===null?(he.needReadable=he.length<=he.highWaterMark,ve=0):(he.length-=ve,he.awaitDrain=0),he.length===0&&(he.ended||(he.needReadable=!0),le!==ve&&he.ended&&X(this)),ge!==null&&this.emit("data",ge),ge},j.prototype._read=function(ve){T(this,new S("_read()"))},j.prototype.pipe=function(ve,he){var le=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=ve;break;case 1:ge.pipes=[ge.pipes,ve];break;default:ge.pipes.push(ve)}ge.pipesCount+=1,u("pipe count=%d opts=%j",ge.pipesCount,he);var Ne=(!he||he.end!==!1)&&ve!==process.stdout&&ve!==process.stderr?Le:B;function Ue(H,M){u("onunpipe"),H===le&&M&&M.hasUnpiped===!1&&(M.hasUnpiped=!0,u("cleanup"),ve.removeListener("close",ot),ve.removeListener("finish",Ke),ve.removeListener("drain",De),ve.removeListener("error",We),ve.removeListener("unpipe",Ue),le.removeListener("end",Le),le.removeListener("end",B),le.removeListener("data",Oe),Fe=!0,!ge.awaitDrain||ve._writableState&&!ve._writableState.needDrain||De())}function Le(){u("onend"),ve.end()}ge.endEmitted?process.nextTick(Ne):le.once("end",Ne),ve.on("unpipe",Ue);var De=function(H){return function(){var M=H._readableState;u("pipeOnDrain",M.awaitDrain),M.awaitDrain&&M.awaitDrain--,M.awaitDrain===0&&s(H,"data")&&(M.flowing=!0,G(H))}}(le);ve.on("drain",De);var Fe=!1;function Oe(H){u("ondata");var M=ve.write(H);u("dest.write",M),M===!1&&((ge.pipesCount===1&&ge.pipes===ve||ge.pipesCount>1&&Be(ge.pipes,ve)!==-1)&&!Fe&&(u("false write response, pause",ge.awaitDrain),ge.awaitDrain++),le.pause())}function We(H){u("onerror",H),B(),ve.removeListener("error",We),s(ve,"error")===0&&T(ve,H)}function ot(){ve.removeListener("finish",Ke),B()}function Ke(){u("onfinish"),ve.removeListener("close",ot),B()}function B(){u("unpipe"),le.unpipe(ve)}return le.on("data",Oe),function(H,M,J){if(typeof H.prependListener=="function")return H.prependListener(M,J);H._events&&H._events[M]?Array.isArray(H._events[M])?H._events[M].unshift(J):H._events[M]=[J,H._events[M]]:H.on(M,J)}(ve,"error",We),ve.once("close",ot),ve.once("finish",Ke),ve.emit("pipe",le),ge.flowing||(u("pipe resume"),le.resume()),ve},j.prototype.unpipe=function(ve){var he=this._readableState,le={hasUnpiped:!1};if(he.pipesCount===0)return this;if(he.pipesCount===1)return ve&&ve!==he.pipes||(ve||(ve=he.pipes),he.pipes=null,he.pipesCount=0,he.flowing=!1,ve&&ve.emit("unpipe",this,le)),this;if(!ve){var ge=he.pipes,Ne=he.pipesCount;he.pipes=null,he.pipesCount=0,he.flowing=!1;for(var Ue=0;Ue0,ge.flowing!==!1&&this.resume()):ve==="readable"&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,u("on readable",ge.length,ge.reading),ge.length?se(this):ge.reading||process.nextTick(O,this))),le},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(ve,he){var le=o.prototype.removeListener.call(this,ve,he);return ve==="readable"&&process.nextTick(A,this),le},j.prototype.removeAllListeners=function(ve){var he=o.prototype.removeAllListeners.apply(this,arguments);return ve!=="readable"&&ve!==void 0||process.nextTick(A,this),he},j.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(u("resume"),ve.flowing=!ve.readableListening,function(he,le){le.resumeScheduled||(le.resumeScheduled=!0,process.nextTick(z,he,le))}(this,ve)),ve.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(ve){var he=this,le=this._readableState,ge=!1;for(var Ne in ve.on("end",function(){if(u("wrapped end"),le.decoder&&!le.ended){var Le=le.decoder.end();Le&&Le.length&&he.push(Le)}he.push(null)}),ve.on("data",function(Le){u("wrapped data"),le.decoder&&(Le=le.decoder.write(Le)),le.objectMode&&Le==null||(le.objectMode||Le&&Le.length)&&(he.push(Le)||(ge=!0,ve.pause()))}),ve)this[Ne]===void 0&&typeof ve[Ne]=="function"&&(this[Ne]=function(Le){return function(){return ve[Le].apply(ve,arguments)}}(Ne));for(var Ue=0;Ue{f.exports=b;var t=i(4281).q,s=t.ERR_METHOD_NOT_IMPLEMENTED,o=t.ERR_MULTIPLE_CALLBACK,e=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=t.ERR_TRANSFORM_WITH_LENGTH_0,u=i(6753);function h(d,w){var y=this._transformState;y.transforming=!1;var _=y.writecb;if(_===null)return this.emit("error",new o);y.writechunk=null,y.writecb=null,w!=null&&this.push(w),_(d);var x=this._readableState;x.reading=!1,(x.needReadable||x.length{function t($){var P=this;this.next=null,this.entry=null,this.finish=function(){(function(A,O,z){var G=A.entry;for(A.entry=null;G;){var re=G.callback;O.pendingcb--,re(z),G=G.next}O.corkedRequestsFree.next=A})(P,$)}}var s;f.exports=j,j.WritableState=W;var o={deprecate:i(4927)},e=i(2503),c=i(8764).Buffer,u=(i.g!==void 0?i.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},h,b=i(1195),m=i(2457).getHighWaterMark,k=i(4281).q,d=k.ERR_INVALID_ARG_TYPE,w=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_MULTIPLE_CALLBACK,_=k.ERR_STREAM_CANNOT_PIPE,x=k.ERR_STREAM_DESTROYED,E=k.ERR_STREAM_NULL_VALUES,S=k.ERR_STREAM_WRITE_AFTER_END,C=k.ERR_UNKNOWN_ENCODING,T=b.errorOrDestroy;function R(){}function W($,P,A){s=s||i(6753),$=$||{},typeof A!="boolean"&&(A=P instanceof s),this.objectMode=!!$.objectMode,A&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=m(this,$,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=$.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){(function(G,re){var X=G._writableState,be=X.sync,Be=X.writecb;if(typeof Be!="function")throw new y;if(function(he){he.writing=!1,he.writecb=null,he.length-=he.writelen,he.writelen=0}(X),re)(function(he,le,ge,Ne,Ue){--le.pendingcb,ge?(process.nextTick(Ue,Ne),process.nextTick(te,he,le),he._writableState.errorEmitted=!0,T(he,Ne)):(Ue(Ne),he._writableState.errorEmitted=!0,T(he,Ne),te(he,le))})(G,X,be,re,Be);else{var ve=Z(X)||G.destroyed;ve||X.corked||X.bufferProcessing||!X.bufferedRequest||U(G,X),be?process.nextTick(Q,G,X,ve,Be):Q(G,X,ve,Be)}})(P,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function j($){var P=this instanceof(s=s||i(6753));if(!P&&!h.call(j,this))return new j($);this._writableState=new W($,this,P),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),e.call(this)}function L($,P,A,O,z,G,re){P.writelen=O,P.writecb=re,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new x("write")):A?$._writev(z,P.onwrite):$._write(z,G,P.onwrite),P.sync=!1}function Q($,P,A,O){A||function(z,G){G.length===0&&G.needDrain&&(G.needDrain=!1,z.emit("drain"))}($,P),P.pendingcb--,O(),te($,P)}function U($,P){P.bufferProcessing=!0;var A=P.bufferedRequest;if($._writev&&A&&A.next){var O=P.bufferedRequestCount,z=new Array(O),G=P.corkedRequestsFree;G.entry=A;for(var re=0,X=!0;A;)z[re]=A,A.isBuf||(X=!1),A=A.next,re+=1;z.allBuffers=X,L($,P,!0,P.length,z,"",G.finish),P.pendingcb++,P.lastBufferedRequest=null,G.next?(P.corkedRequestsFree=G.next,G.next=null):P.corkedRequestsFree=new t(P),P.bufferedRequestCount=0}else{for(;A;){var be=A.chunk,Be=A.encoding,ve=A.callback;if(L($,P,!1,P.objectMode?1:be.length,be,Be,ve),A=A.next,P.bufferedRequestCount--,P.writing)break}A===null&&(P.lastBufferedRequest=null)}P.bufferedRequest=A,P.bufferProcessing=!1}function Z($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function se($,P){$._final(function(A){P.pendingcb--,A&&T($,A),P.prefinished=!0,$.emit("prefinish"),te($,P)})}function te($,P){var A=Z(P);if(A&&(function(z,G){G.prefinished||G.finalCalled||(typeof z._final!="function"||G.destroyed?(G.prefinished=!0,z.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,process.nextTick(se,z,G)))}($,P),P.pendingcb===0&&(P.finished=!0,$.emit("finish"),P.autoDestroy))){var O=$._readableState;(!O||O.autoDestroy&&O.endEmitted)&&$.destroy()}return A}i(5717)(j,e),W.prototype.getBuffer=function(){for(var $=this.bufferedRequest,P=[];$;)P.push($),$=$.next;return P},function(){try{Object.defineProperty(W.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function($){return!!h.call(this,$)||this===j&&$&&$._writableState instanceof W}})):h=function($){return $ instanceof this},j.prototype.pipe=function(){T(this,new _)},j.prototype.write=function($,P,A){var O,z=this._writableState,G=!1,re=!z.objectMode&&(O=$,c.isBuffer(O)||O instanceof u);return re&&!c.isBuffer($)&&($=function(X){return c.from(X)}($)),typeof P=="function"&&(A=P,P=null),re?P="buffer":P||(P=z.defaultEncoding),typeof A!="function"&&(A=R),z.ending?function(X,be){var Be=new S;T(X,Be),process.nextTick(be,Be)}(this,A):(re||function(X,be,Be,ve){var he;return Be===null?he=new E:typeof Be=="string"||be.objectMode||(he=new d("chunk",["string","Buffer"],Be)),!he||(T(X,he),process.nextTick(ve,he),!1)}(this,z,$,A))&&(z.pendingcb++,G=function(X,be,Be,ve,he,le){if(!Be){var ge=function(De,Fe,Oe){return De.objectMode||De.decodeStrings===!1||typeof Fe!="string"||(Fe=c.from(Fe,Oe)),Fe}(be,ve,he);ve!==ge&&(Be=!0,he="buffer",ve=ge)}var Ne=be.objectMode?1:ve.length;be.length+=Ne;var Ue=be.length-1))throw new C($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function($,P,A){A(new w("_write()"))},j.prototype._writev=null,j.prototype.end=function($,P,A){var O=this._writableState;return typeof $=="function"?(A=$,$=null,P=null):typeof P=="function"&&(A=P,P=null),$!=null&&this.write($,P),O.corked&&(O.corked=1,this.uncork()),O.ending||function(z,G,re){G.ending=!0,te(z,G),re&&(G.finished?process.nextTick(re):z.once("finish",re)),G.ended=!0,z.writable=!1}(this,O,A),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),j.prototype.destroy=b.destroy,j.prototype._undestroy=b.undestroy,j.prototype._destroy=function($,P){P($)}},5850:(f,a,i)=>{var t;function s(E,S,C){return(S=function(T){var R=function(W,j){if(typeof W!="object"||W===null)return W;var L=W[Symbol.toPrimitive];if(L!==void 0){var Q=L.call(W,j||"default");if(typeof Q!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(W)}(T,"string");return typeof R=="symbol"?R:String(R)}(S))in E?Object.defineProperty(E,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[S]=C,E}var o=i(8610),e=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),b=Symbol("lastPromise"),m=Symbol("handlePromise"),k=Symbol("stream");function d(E,S){return{value:E,done:S}}function w(E){var S=E[e];if(S!==null){var C=E[k].read();C!==null&&(E[b]=null,E[e]=null,E[c]=null,S(d(C,!1)))}}function y(E){process.nextTick(w,E)}var _=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((s(t={get stream(){return this[k]},next:function(){var E=this,S=this[u];if(S!==null)return Promise.reject(S);if(this[h])return Promise.resolve(d(void 0,!0));if(this[k].destroyed)return new Promise(function(W,j){process.nextTick(function(){E[u]?j(E[u]):W(d(void 0,!0))})});var C,T=this[b];if(T)C=new Promise(function(W,j){return function(L,Q){W.then(function(){j[h]?L(d(void 0,!0)):j[m](L,Q)},Q)}}(T,this));else{var R=this[k].read();if(R!==null)return Promise.resolve(d(R,!1));C=new Promise(this[m])}return this[b]=C,C}},Symbol.asyncIterator,function(){return this}),s(t,"return",function(){var E=this;return new Promise(function(S,C){E[k].destroy(null,function(T){T?C(T):S(d(void 0,!0))})})}),t),_);f.exports=function(E){var S,C=Object.create(x,(s(S={},k,{value:E,writable:!0}),s(S,e,{value:null,writable:!0}),s(S,c,{value:null,writable:!0}),s(S,u,{value:null,writable:!0}),s(S,h,{value:E._readableState.endEmitted,writable:!0}),s(S,m,{value:function(T,R){var W=C[k].read();W?(C[b]=null,C[e]=null,C[c]=null,T(d(W,!1))):(C[e]=T,C[c]=R)},writable:!0}),S));return C[b]=null,o(E,function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R=C[c];return R!==null&&(C[b]=null,C[e]=null,C[c]=null,R(T)),void(C[u]=T)}var W=C[e];W!==null&&(C[b]=null,C[e]=null,C[c]=null,W(d(void 0,!0))),C[h]=!0}),E.on("readable",y.bind(null,C)),C}},7327:(f,a,i)=>{function t(m,k){var d=Object.keys(m);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(m);k&&(w=w.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),d.push.apply(d,w)}return d}function s(m){for(var k=1;k0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(w){var y={data:w,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(this.length===0)return"";for(var y=this.head,_=""+y.data;y=y.next;)_+=w+y.data;return _}},{key:"concat",value:function(w){if(this.length===0)return u.alloc(0);for(var y,_,x,E=u.allocUnsafe(w>>>0),S=this.head,C=0;S;)y=S.data,_=E,x=C,u.prototype.copy.call(y,_,x),C+=S.data.length,S=S.next;return E}},{key:"consume",value:function(w,y){var _;return wE.length?E.length:w;if(S===E.length?x+=E:x+=E.slice(0,w),(w-=S)==0){S===E.length?(++_,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=E.slice(S));break}++_}return this.length-=_,x}},{key:"_getBuffer",value:function(w){var y=u.allocUnsafe(w),_=this.head,x=1;for(_.data.copy(y),w-=_.data.length;_=_.next;){var E=_.data,S=w>E.length?E.length:w;if(E.copy(y,y.length-w,0,S),(w-=S)==0){S===E.length?(++x,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=E.slice(S));break}++x}return this.length-=x,y}},{key:b,value:function(w,y){return h(this,s(s({},y),{},{depth:0,customInspect:!1}))}}])&&e(k.prototype,d),Object.defineProperty(k,"prototype",{writable:!1}),m}()},1195:f=>{function a(s,o){t(s,o),i(s)}function i(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function t(s,o){s.emit("error",o)}f.exports={destroy:function(s,o){var e=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(o?o(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(t,this,s)):process.nextTick(t,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(h){!o&&h?e._writableState?e._writableState.errorEmitted?process.nextTick(i,e):(e._writableState.errorEmitted=!0,process.nextTick(a,e,h)):process.nextTick(a,e,h):o?(process.nextTick(i,e),o(h)):process.nextTick(i,e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(s,o){var e=s._readableState,c=s._writableState;e&&e.autoDestroy||c&&c.autoDestroy?s.destroy(o):s.emit("error",o)}}},8610:(f,a,i)=>{var t=i(4281).q.ERR_STREAM_PREMATURE_CLOSE;function s(){}f.exports=function o(e,c,u){if(typeof c=="function")return o(e,null,c);c||(c={}),u=function(S){var C=!1;return function(){if(!C){C=!0;for(var T=arguments.length,R=new Array(T),W=0;W{f.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(f,a,i)=>{var t,s=i(4281).q,o=s.ERR_MISSING_ARGS,e=s.ERR_STREAM_DESTROYED;function c(b){if(b)throw b}function u(b){b()}function h(b,m){return b.pipe(m)}f.exports=function(){for(var b=arguments.length,m=new Array(b),k=0;k0,function(S){d||(d=S),S&&y.forEach(u),E||(y.forEach(u),w(d))})});return m.reduce(h)}},2457:(f,a,i)=>{var t=i(4281).q.ERR_INVALID_OPT_VALUE;f.exports={getHighWaterMark:function(s,o,e,c){var u=function(h,b,m){return h.highWaterMark!=null?h.highWaterMark:b?h[m]:null}(o,c,e);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new t(c?e:"highWaterMark",u);return Math.floor(u)}return s.objectMode?16:16384}}},2503:(f,a,i)=>{f.exports=i(7187).EventEmitter},8473:(f,a,i)=>{(a=f.exports=i(9481)).Stream=a,a.Readable=a,a.Writable=i(4229),a.Duplex=i(6753),a.Transform=i(4605),a.PassThrough=i(2725),a.finished=i(8610),a.pipeline=i(9946)},9509:(f,a,i)=>{var t=i(8764),s=t.Buffer;function o(c,u){for(var h in c)u[h]=c[h]}function e(c,u,h){return s(c,u,h)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?f.exports=t:(o(t,a),a.Buffer=e),e.prototype=Object.create(s.prototype),o(s,e),e.from=function(c,u,h){if(typeof c=="number")throw new TypeError("Argument must not be a number");return s(c,u,h)},e.alloc=function(c,u,h){if(typeof c!="number")throw new TypeError("Argument must be a number");var b=s(c);return u!==void 0?typeof h=="string"?b.fill(u,h):b.fill(u):b.fill(0),b},e.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return s(c)},e.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(c)}},7771:(f,a,i)=>{var t=i(210),s=i(2296),o=i(1044)(),e=i(7296),c=t("%TypeError%"),u=t("%Math.floor%");f.exports=function(h,b){if(typeof h!="function")throw new c("`fn` is not a function");if(typeof b!="number"||b<0||b>4294967295||u(b)!==b)throw new c("`length` must be a positive 32-bit integer");var m=arguments.length>2&&!!arguments[2],k=!0,d=!0;if("length"in h&&e){var w=e(h,"length");w&&!w.configurable&&(k=!1),w&&!w.writable&&(d=!1)}return(k||d||!m)&&(o?s(h,"length",b,!0,!0):s(h,"length",b)),h}},4189:(f,a,i)=>{var t=i(9509).Buffer;function s(o,e){this._block=t.alloc(o),this._finalSize=e,this._blockSize=o,this._len=0}s.prototype.update=function(o,e){typeof o=="string"&&(e=e||"utf8",o=t.from(o,e));for(var c=this._block,u=this._blockSize,h=o.length,b=this._len,m=0;m=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var u=(4294967295&c)>>>0,h=(c-u)/4294967296;this._block.writeUInt32BE(h,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var b=this._hash();return o?b.toString(o):b},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},f.exports=s},9072:(f,a,i)=>{var t=f.exports=function(s){s=s.toLowerCase();var o=t[s];if(!o)throw new Error(s+" is not supported (we accept pull requests)");return new o};t.sha=i(4448),t.sha1=i(8336),t.sha224=i(8432),t.sha256=i(7499),t.sha384=i(1686),t.sha512=i(7816)},4448:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(m){return m<<30|m>>>2}function b(m,k,d,w){return m===0?k&d|~k&w:m===2?k&d|k&w|d&w:k^d^w}t(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(m){for(var k,d=this._w,w=0|this._a,y=0|this._b,_=0|this._c,x=0|this._d,E=0|this._e,S=0;S<16;++S)d[S]=m.readInt32BE(4*S);for(;S<80;++S)d[S]=d[S-3]^d[S-8]^d[S-14]^d[S-16];for(var C=0;C<80;++C){var T=~~(C/20),R=0|((k=w)<<5|k>>>27)+b(T,y,_,x)+E+d[C]+e[T];E=x,x=_,_=h(y),y=w,w=R}this._a=w+this._a|0,this._b=y+this._b|0,this._c=_+this._c|0,this._d=x+this._d|0,this._e=E+this._e|0},u.prototype._hash=function(){var m=o.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},f.exports=u},8336:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(k){return k<<5|k>>>27}function b(k){return k<<30|k>>>2}function m(k,d,w,y){return k===0?d&w|~d&y:k===2?d&w|d&y|w&y:d^w^y}t(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(k){for(var d,w=this._w,y=0|this._a,_=0|this._b,x=0|this._c,E=0|this._d,S=0|this._e,C=0;C<16;++C)w[C]=k.readInt32BE(4*C);for(;C<80;++C)w[C]=(d=w[C-3]^w[C-8]^w[C-14]^w[C-16])<<1|d>>>31;for(var T=0;T<80;++T){var R=~~(T/20),W=h(y)+m(R,_,x,E)+S+w[T]+e[R]|0;S=E,E=x,x=b(_),_=y,y=W}this._a=y+this._a|0,this._b=_+this._b|0,this._c=x+this._c|0,this._d=E+this._d|0,this._e=S+this._e|0},u.prototype._hash=function(){var k=o.allocUnsafe(20);return k.writeInt32BE(0|this._a,0),k.writeInt32BE(0|this._b,4),k.writeInt32BE(0|this._c,8),k.writeInt32BE(0|this._d,12),k.writeInt32BE(0|this._e,16),k},f.exports=u},8432:(f,a,i)=>{var t=i(5717),s=i(7499),o=i(4189),e=i(9509).Buffer,c=new Array(64);function u(){this.init(),this._w=c,o.call(this,64,56)}t(u,s),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var h=e.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},f.exports=u},7499:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function u(){this.init(),this._w=c,s.call(this,64,56)}function h(w,y,_){return _^w&(y^_)}function b(w,y,_){return w&y|_&(w|y)}function m(w){return(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10)}function k(w){return(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7)}function d(w){return(w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3}t(u,s),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(w){for(var y,_=this._w,x=0|this._a,E=0|this._b,S=0|this._c,C=0|this._d,T=0|this._e,R=0|this._f,W=0|this._g,j=0|this._h,L=0;L<16;++L)_[L]=w.readInt32BE(4*L);for(;L<64;++L)_[L]=0|(((y=_[L-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+_[L-7]+d(_[L-15])+_[L-16];for(var Q=0;Q<64;++Q){var U=j+k(T)+h(T,R,W)+e[Q]+_[Q]|0,Z=m(x)+b(x,E,S)|0;j=W,W=R,R=T,T=C+U|0,C=S,S=E,E=x,x=U+Z|0}this._a=x+this._a|0,this._b=E+this._b|0,this._c=S+this._c|0,this._d=C+this._d|0,this._e=T+this._e|0,this._f=R+this._f|0,this._g=W+this._g|0,this._h=j+this._h|0},u.prototype._hash=function(){var w=o.allocUnsafe(32);return w.writeInt32BE(this._a,0),w.writeInt32BE(this._b,4),w.writeInt32BE(this._c,8),w.writeInt32BE(this._d,12),w.writeInt32BE(this._e,16),w.writeInt32BE(this._f,20),w.writeInt32BE(this._g,24),w.writeInt32BE(this._h,28),w},f.exports=u},1686:(f,a,i)=>{var t=i(5717),s=i(7816),o=i(4189),e=i(9509).Buffer,c=new Array(160);function u(){this.init(),this._w=c,o.call(this,128,112)}t(u,s),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var h=e.allocUnsafe(48);function b(m,k,d){h.writeInt32BE(m,d),h.writeInt32BE(k,d+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),h},f.exports=u},7816:(f,a,i)=>{var t=i(5717),s=i(4189),o=i(9509).Buffer,e=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function u(){this.init(),this._w=c,s.call(this,128,112)}function h(E,S,C){return C^E&(S^C)}function b(E,S,C){return E&S|C&(E|S)}function m(E,S){return(E>>>28|S<<4)^(S>>>2|E<<30)^(S>>>7|E<<25)}function k(E,S){return(E>>>14|S<<18)^(E>>>18|S<<14)^(S>>>9|E<<23)}function d(E,S){return(E>>>1|S<<31)^(E>>>8|S<<24)^E>>>7}function w(E,S){return(E>>>1|S<<31)^(E>>>8|S<<24)^(E>>>7|S<<25)}function y(E,S){return(E>>>19|S<<13)^(S>>>29|E<<3)^E>>>6}function _(E,S){return(E>>>19|S<<13)^(S>>>29|E<<3)^(E>>>6|S<<26)}function x(E,S){return E>>>0>>0?1:0}t(u,s),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(E){for(var S=this._w,C=0|this._ah,T=0|this._bh,R=0|this._ch,W=0|this._dh,j=0|this._eh,L=0|this._fh,Q=0|this._gh,U=0|this._hh,Z=0|this._al,se=0|this._bl,te=0|this._cl,$=0|this._dl,P=0|this._el,A=0|this._fl,O=0|this._gl,z=0|this._hl,G=0;G<32;G+=2)S[G]=E.readInt32BE(4*G),S[G+1]=E.readInt32BE(4*G+4);for(;G<160;G+=2){var re=S[G-30],X=S[G-30+1],be=d(re,X),Be=w(X,re),ve=y(re=S[G-4],X=S[G-4+1]),he=_(X,re),le=S[G-14],ge=S[G-14+1],Ne=S[G-32],Ue=S[G-32+1],Le=Be+ge|0,De=be+le+x(Le,Be)|0;De=(De=De+ve+x(Le=Le+he|0,he)|0)+Ne+x(Le=Le+Ue|0,Ue)|0,S[G]=De,S[G+1]=Le}for(var Fe=0;Fe<160;Fe+=2){De=S[Fe],Le=S[Fe+1];var Oe=b(C,T,R),We=b(Z,se,te),ot=m(C,Z),Ke=m(Z,C),B=k(j,P),H=k(P,j),M=e[Fe],J=e[Fe+1],ue=h(j,L,Q),F=h(P,A,O),N=z+H|0,q=U+B+x(N,z)|0;q=(q=(q=q+ue+x(N=N+F|0,F)|0)+M+x(N=N+J|0,J)|0)+De+x(N=N+Le|0,Le)|0;var I=Ke+We|0,K=ot+Oe+x(I,Ke)|0;U=Q,z=O,Q=L,O=A,L=j,A=P,j=W+q+x(P=$+N|0,$)|0,W=R,$=te,R=T,te=se,T=C,se=Z,C=q+K+x(Z=N+I|0,N)|0}this._al=this._al+Z|0,this._bl=this._bl+se|0,this._cl=this._cl+te|0,this._dl=this._dl+$|0,this._el=this._el+P|0,this._fl=this._fl+A|0,this._gl=this._gl+O|0,this._hl=this._hl+z|0,this._ah=this._ah+C+x(this._al,Z)|0,this._bh=this._bh+T+x(this._bl,se)|0,this._ch=this._ch+R+x(this._cl,te)|0,this._dh=this._dh+W+x(this._dl,$)|0,this._eh=this._eh+j+x(this._el,P)|0,this._fh=this._fh+L+x(this._fl,A)|0,this._gh=this._gh+Q+x(this._gl,O)|0,this._hh=this._hh+U+x(this._hl,z)|0},u.prototype._hash=function(){var E=o.allocUnsafe(64);function S(C,T,R){E.writeInt32BE(C,R),E.writeInt32BE(T,R+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),E},f.exports=u},7478:(f,a,i)=>{var t=i(210),s=i(1924),o=i(631),e=t("%TypeError%"),c=t("%WeakMap%",!0),u=t("%Map%",!0),h=s("WeakMap.prototype.get",!0),b=s("WeakMap.prototype.set",!0),m=s("WeakMap.prototype.has",!0),k=s("Map.prototype.get",!0),d=s("Map.prototype.set",!0),w=s("Map.prototype.has",!0),y=function(_,x){for(var E,S=_;(E=S.next)!==null;S=E)if(E.key===x)return S.next=E.next,E.next=_.next,_.next=E,E};f.exports=function(){var _,x,E,S={assert:function(C){if(!S.has(C))throw new e("Side channel does not contain "+o(C))},get:function(C){if(c&&C&&(typeof C=="object"||typeof C=="function")){if(_)return h(_,C)}else if(u){if(x)return k(x,C)}else if(E)return function(T,R){var W=y(T,R);return W&&W.value}(E,C)},has:function(C){if(c&&C&&(typeof C=="object"||typeof C=="function")){if(_)return m(_,C)}else if(u){if(x)return w(x,C)}else if(E)return function(T,R){return!!y(T,R)}(E,C);return!1},set:function(C,T){c&&C&&(typeof C=="object"||typeof C=="function")?(_||(_=new c),b(_,C,T)):u?(x||(x=new u),d(x,C,T)):(E||(E={key:{},next:null}),function(R,W,j){var L=y(R,W);L?L.value=j:R.next={key:W,next:R.next,value:j}}(E,C,T))}};return S}},8501:(f,a,i)=>{var t=i(1989),s=i(5676),o=i(7529),e=i(584),c=i(8575),u=a;u.request=function(h,b){h=typeof h=="string"?c.parse(h):o(h);var m=i.g.location.protocol.search(/^https?:$/)===-1?"http:":"",k=h.protocol||m,d=h.hostname||h.host,w=h.port,y=h.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),h.url=(d?k+"//"+d:"")+(w?":"+w:"")+y,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var _=new t(h);return b&&_.on("response",b),_},u.get=function(h,b){var m=u.request(h,b);return m.end(),m},u.ClientRequest=t,u.IncomingMessage=s.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=e,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(f,a,i)=>{var t;function s(){if(t!==void 0)return t;if(i.g.XMLHttpRequest){t=new i.g.XMLHttpRequest;try{t.open("GET",i.g.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function o(c){var u=s();if(!u)return!1;try{return u.responseType=c,u.responseType===c}catch{}return!1}function e(c){return typeof c=="function"}a.fetch=e(i.g.fetch)&&e(i.g.ReadableStream),a.writableStream=e(i.g.WritableStream),a.abortController=e(i.g.AbortController),a.arraybuffer=a.fetch||o("arraybuffer"),a.msstream=!a.fetch&&o("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&o("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!s()&&e(s().overrideMimeType),t=null},1989:(f,a,i)=>{var t=i(8764).Buffer,s=i(8725),o=i(5717),e=i(5676),c=i(8473),u=e.IncomingMessage,h=e.readyStates,b=f.exports=function(k){var d,w=this;c.Writable.call(w),w._opts=k,w._body=[],w._headers={},k.auth&&w.setHeader("Authorization","Basic "+t.from(k.auth).toString("base64")),Object.keys(k.headers).forEach(function(_){w.setHeader(_,k.headers[_])});var y=!0;if(k.mode==="disable-fetch"||"requestTimeout"in k&&!s.abortController)y=!1,d=!0;else if(k.mode==="prefer-streaming")d=!1;else if(k.mode==="allow-wrong-content-type")d=!s.overrideMimeType;else{if(k.mode&&k.mode!=="default"&&k.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");d=!0}w._mode=function(_,x){return s.fetch&&x?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&_?"arraybuffer":"text"}(d,y),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})};o(b,c.Writable),b.prototype.setHeader=function(k,d){var w=k.toLowerCase();m.indexOf(w)===-1&&(this._headers[w]={name:k,value:d})},b.prototype.getHeader=function(k){var d=this._headers[k.toLowerCase()];return d?d.value:null},b.prototype.removeHeader=function(k){delete this._headers[k.toLowerCase()]},b.prototype._onFinish=function(){var k=this;if(!k._destroyed){var d=k._opts;"timeout"in d&&d.timeout!==0&&k.setTimeout(d.timeout);var w=k._headers,y=null;d.method!=="GET"&&d.method!=="HEAD"&&(y=new Blob(k._body,{type:(w["content-type"]||{}).value||""}));var _=[];if(Object.keys(w).forEach(function(C){var T=w[C].name,R=w[C].value;Array.isArray(R)?R.forEach(function(W){_.push([T,W])}):_.push([T,R])}),k._mode==="fetch"){var x=null;if(s.abortController){var E=new AbortController;x=E.signal,k._fetchAbortController=E,"requestTimeout"in d&&d.requestTimeout!==0&&(k._fetchTimer=i.g.setTimeout(function(){k.emit("requestTimeout"),k._fetchAbortController&&k._fetchAbortController.abort()},d.requestTimeout))}i.g.fetch(k._opts.url,{method:k._opts.method,headers:_,body:y||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:x}).then(function(C){k._fetchResponse=C,k._resetTimers(!1),k._connect()},function(C){k._resetTimers(!0),k._destroyed||k.emit("error",C)})}else{var S=k._xhr=new i.g.XMLHttpRequest;try{S.open(k._opts.method,k._opts.url,!0)}catch(C){return void process.nextTick(function(){k.emit("error",C)})}"responseType"in S&&(S.responseType=k._mode),"withCredentials"in S&&(S.withCredentials=!!d.withCredentials),k._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(S.timeout=d.requestTimeout,S.ontimeout=function(){k.emit("requestTimeout")}),_.forEach(function(C){S.setRequestHeader(C[0],C[1])}),k._response=null,S.onreadystatechange=function(){switch(S.readyState){case h.LOADING:case h.DONE:k._onXHRProgress()}},k._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){k._onXHRProgress()}),S.onerror=function(){k._destroyed||(k._resetTimers(!0),k.emit("error",new Error("XHR error")))};try{S.send(y)}catch(C){return void process.nextTick(function(){k.emit("error",C)})}}}},b.prototype._onXHRProgress=function(){var k=this;k._resetTimers(!1),function(d){try{var w=d.status;return w!==null&&w!==0}catch{return!1}}(k._xhr)&&!k._destroyed&&(k._response||k._connect(),k._response._onXHRProgress(k._resetTimers.bind(k)))},b.prototype._connect=function(){var k=this;k._destroyed||(k._response=new u(k._xhr,k._fetchResponse,k._mode,k._resetTimers.bind(k)),k._response.on("error",function(d){k.emit("error",d)}),k.emit("response",k._response))},b.prototype._write=function(k,d,w){this._body.push(k),w()},b.prototype._resetTimers=function(k){var d=this;i.g.clearTimeout(d._socketTimer),d._socketTimer=null,k?(i.g.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=i.g.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},b.prototype.abort=b.prototype.destroy=function(k){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),k&&d.emit("error",k)},b.prototype.end=function(k,d,w){typeof k=="function"&&(w=k,k=void 0),c.Writable.prototype.end.call(this,k,d,w)},b.prototype.setTimeout=function(k,d){var w=this;d&&w.once("timeout",d),w._socketTimeout=k,w._resetTimers(!1)},b.prototype.flushHeaders=function(){},b.prototype.setNoDelay=function(){},b.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(f,a,i)=>{var t=i(8764).Buffer,s=i(8725),o=i(5717),e=i(8473),c=a.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=a.IncomingMessage=function(h,b,m,k){var d=this;if(e.Readable.call(d),d._mode=m,d.headers={},d.rawHeaders=[],d.trailers={},d.rawTrailers=[],d.on("end",function(){process.nextTick(function(){d.emit("close")})}),m==="fetch"){if(d._fetchResponse=b,d.url=b.url,d.statusCode=b.status,d.statusMessage=b.statusText,b.headers.forEach(function(E,S){d.headers[S.toLowerCase()]=E,d.rawHeaders.push(S,E)}),s.writableStream){var w=new WritableStream({write:function(E){return k(!1),new Promise(function(S,C){d._destroyed?C():d.push(t.from(E))?S():d._resumeFetch=S})},close:function(){k(!0),d._destroyed||d.push(null)},abort:function(E){k(!0),d._destroyed||d.emit("error",E)}});try{return void b.body.pipeTo(w).catch(function(E){k(!0),d._destroyed||d.emit("error",E)})}catch{}}var y=b.body.getReader();(function E(){y.read().then(function(S){d._destroyed||(k(S.done),S.done?d.push(null):(d.push(t.from(S.value)),E()))}).catch(function(S){k(!0),d._destroyed||d.emit("error",S)})})()}else if(d._xhr=h,d._pos=0,d.url=h.responseURL,d.statusCode=h.status,d.statusMessage=h.statusText,h.getAllResponseHeaders().split(/\r?\n/).forEach(function(E){var S=E.match(/^([^:]+):\s*(.*)/);if(S){var C=S[1].toLowerCase();C==="set-cookie"?(d.headers[C]===void 0&&(d.headers[C]=[]),d.headers[C].push(S[2])):d.headers[C]!==void 0?d.headers[C]+=", "+S[2]:d.headers[C]=S[2],d.rawHeaders.push(S[1],S[2])}}),d._charset="x-user-defined",!s.overrideMimeType){var _=d.rawHeaders["mime-type"];if(_){var x=_.match(/;\s*charset=([^;])(;|$)/);x&&(d._charset=x[1].toLowerCase())}d._charset||(d._charset="utf-8")}};o(u,e.Readable),u.prototype._read=function(){var h=this._resumeFetch;h&&(this._resumeFetch=null,h())},u.prototype._onXHRProgress=function(h){var b=this,m=b._xhr,k=null;switch(b._mode){case"text":if((k=m.responseText).length>b._pos){var d=k.substr(b._pos);if(b._charset==="x-user-defined"){for(var w=t.alloc(d.length),y=0;yb._pos&&(b.push(t.from(new Uint8Array(_.result.slice(b._pos)))),b._pos=_.result.byteLength)},_.onload=function(){h(!0),b.push(null)},_.readAsArrayBuffer(k)}b._xhr.readyState===c.DONE&&b._mode!=="ms-stream"&&(h(!0),b.push(null))}},2553:(f,a,i)=>{var t=i(9509).Buffer,s=t.isEncoding||function(w){switch((w=""+w)&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(w){var y;switch(this.encoding=function(_){var x=function(E){if(!E)return"utf8";for(var S;;)switch(E){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return E;default:if(S)return;E=(""+E).toLowerCase(),S=!0}}(_);if(typeof x!="string"&&(t.isEncoding===s||!s(_)))throw new Error("Unknown encoding: "+_);return x||_}(w),this.encoding){case"utf16le":this.text=u,this.end=h,y=4;break;case"utf8":this.fillLast=c,y=4;break;case"base64":this.text=b,this.end=m,y=3;break;default:return this.write=k,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(y)}function e(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function c(w){var y=this.lastTotal-this.lastNeed,_=function(x,E,S){if((192&E[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&E.length>1){if((192&E[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&E.length>2&&(192&E[2])!=128)return x.lastNeed=2,"�"}}(this,w);return _!==void 0?_:this.lastNeed<=w.length?(w.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,y,0,w.length),void(this.lastNeed-=w.length))}function u(w,y){if((w.length-y)%2==0){var _=w.toString("utf16le",y);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",y,w.length-1)}function h(w){var y=w&&w.length?this.write(w):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,_)}return y}function b(w,y){var _=(w.length-y)%3;return _===0?w.toString("base64",y):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",y,w.length-_))}function m(w){var y=w&&w.length?this.write(w):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function k(w){return w.toString(this.encoding)}function d(w){return w&&w.length?this.write(w):""}a.s=o,o.prototype.write=function(w){if(w.length===0)return"";var y,_;if(this.lastNeed){if((y=this.fillLast(w))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(R>0&&(E.lastNeed=R-1),R):--T=0?(R>0&&(E.lastNeed=R-2),R):--T=0?(R>0&&(R===2?R=0:E.lastNeed=R-3),R):0))}(this,w,y);if(!this.lastNeed)return w.toString("utf8",y);this.lastTotal=_;var x=w.length-(_-this.lastNeed);return w.copy(this.lastChar,0,x),w.toString("utf8",y,x)},o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},5424:(f,a,i)=>{var t=i(8311),s=i(5133);f.exports={parse:function(o){var e=t.parse(o.toString());return s.compile(e)}}},5133:f=>{f.exports={compile:function(a){var i=[],t=[],s="",o=Object.create(null),e=o;return function(_){for(var x,E=0;E<_.length;E++)switch((x=_[E]).type){case"Assign":u(x);break;case"ObjectPath":k(x);break;case"ArrayPath":d(x)}return o}(a);function c(_,x,E){var S=new Error(_);throw S.line=x,S.column=E,S}function u(_){var x,E=_.key,S=_.value,C=_.line,T=_.column;x=s?s+"."+E:E,e[E]!==void 0&&c("Cannot redefine existing key '"+x+"'.",C,T),e[E]=b(S),h(x)||(i.push(x),t.push(x))}function h(_){return i.indexOf(_)!==-1}function b(_){return _.type==="Array"?function(x){for(var E=null,S=0;S-1&&c("Cannot redefine existing key '"+R+"'.",S,C),(W=W[L])instanceof Array&&W.length&&j-1?'"'+_+'"':_}}}},8311:f=>{f.exports=function(){function a(i,t,s,o,e,c){this.message=i,this.expected=t,this.found=s,this.offset=o,this.line=e,this.column=c,this.name="SyntaxError"}return function(i,t){function s(){this.constructor=i}s.prototype=t.prototype,i.prototype=new s}(a,Error),{SyntaxError:a,parse:function(i){var t,s=arguments.length>1?arguments[1]:{},o={},e={start:cr},c=cr,u=function(){return Se},h=o,b="#",m={type:"literal",value:"#",description:'"#"'},k=void 0,d={type:"any",description:"any character"},w="[",y={type:"literal",value:"[",description:'"["'},_="]",x={type:"literal",value:"]",description:'"]"'},E=function(D){He(ne("ObjectPath",D,Cn,kn))},S=function(D){He(ne("ArrayPath",D,Cn,kn))},C=function(D,fe){return D.concat(fe)},T=function(D){return[D]},R=function(D){return D},W=".",j={type:"literal",value:".",description:'"."'},L="=",Q={type:"literal",value:"=",description:'"="'},U=function(D,fe){He(ne("Assign",fe,Cn,kn,D))},Z=function(D){return D.join("")},se=function(D){return D.value},te='"""',$={type:"literal",value:'"""',description:'"\\"\\"\\""'},P=null,A=function(D){return ne("String",D.join(""),Cn,kn)},O='"',z={type:"literal",value:'"',description:'"\\""'},G="'''",re={type:"literal",value:"'''",description:`"'''"`},X="'",be={type:"literal",value:"'",description:`"'"`},Be=function(D){return D},ve=function(D){return D},he="\\",le={type:"literal",value:"\\",description:'"\\\\"'},ge=function(){return""},Ne="e",Ue={type:"literal",value:"e",description:'"e"'},Le="E",De={type:"literal",value:"E",description:'"E"'},Fe=function(D,fe){return ne("Float",parseFloat(D+"e"+fe),Cn,kn)},Oe=function(D){return ne("Float",parseFloat(D),Cn,kn)},We="+",ot={type:"literal",value:"+",description:'"+"'},Ke=function(D){return D.join("")},B="-",H={type:"literal",value:"-",description:'"-"'},M=function(D){return"-"+D.join("")},J=function(D){return ne("Integer",parseInt(D,10),Cn,kn)},ue="true",F={type:"literal",value:"true",description:'"true"'},N=function(){return ne("Boolean",!0,Cn,kn)},q="false",I={type:"literal",value:"false",description:'"false"'},K=function(){return ne("Boolean",!1,Cn,kn)},oe=function(){return ne("Array",[],Cn,kn)},ye=function(D){return ne("Array",D?[D]:[],Cn,kn)},Pe=function(D){return ne("Array",D,Cn,kn)},rt=function(D,fe){return ne("Array",D.concat(fe),Cn,kn)},lt=function(D){return D},vt=",",_t={type:"literal",value:",",description:'","'},qt="{",me={type:"literal",value:"{",description:'"{"'},we="}",xe={type:"literal",value:"}",description:'"}"'},V=function(D){return ne("InlineTable",D,Cn,kn)},Y=function(D,fe){return ne("InlineTableValue",fe,Cn,kn,D)},ke=function(D){return"."+D},$e=function(D){return D.join("")},ze=":",je={type:"literal",value:":",description:'":"'},ut=function(D){return D.join("")},nt="T",at={type:"literal",value:"T",description:'"T"'},It="Z",Nt={type:"literal",value:"Z",description:'"Z"'},Rt=function(D,fe){return ne("Date",new Date(D+"T"+fe+"Z"),Cn,kn)},Gt=function(D,fe){return ne("Date",new Date(D+"T"+fe),Cn,kn)},Jt=/^[ \t]/,Ht={type:"class",value:"[ \\t]",description:"[ \\t]"},Zt=` `,Vt={type:"literal",value:` `,description:'"\\n"'},Ut="\r",Qt={type:"literal",value:"\r",description:'"\\r"'},en=/^[0-9a-f]/i,Wt={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},mt=/^[0-9]/,St={type:"class",value:"[0-9]",description:"[0-9]"},Bt="_",Tt={type:"literal",value:"_",description:'"_"'},Ot=function(){return""},kt=/^[A-Za-z0-9_\-]/,ln={type:"class",value:"[A-Za-z0-9_\\-]",description:"[A-Za-z0-9_\\-]"},ce=function(D){return D.join("")},Ce='\\"',Ve={type:"literal",value:'\\"',description:'"\\\\\\""'},Qe=function(){return'"'},Je="\\\\",Ye={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Ze=function(){return"\\"},yt="\\b",wt={type:"literal",value:"\\b",description:'"\\\\b"'},ht=function(){return"\b"},ct="\\t",Mt={type:"literal",value:"\\t",description:'"\\\\t"'},jt=function(){return" "},zt="\\n",Dt={type:"literal",value:"\\n",description:'"\\\\n"'},tn=function(){return` `},an="\\f",fn={type:"literal",value:"\\f",description:'"\\\\f"'},wn=function(){return"\f"},bn="\\r",En={type:"literal",value:"\\r",description:'"\\\\r"'},qn=function(){return"\r"},lr="\\U",_r={type:"literal",value:"\\U",description:'"\\\\U"'},Yn=function(D){return function(fe,Ee,_e){var Re=parseInt("0x"+fe);if(!(!isFinite(Re)||Math.floor(Re)!=Re||Re<0||Re>1114111||Re>55295&&Re<57344))return function(){var qe,Ie,gt=16384,dt=[],pt=-1,xt=arguments.length;if(!xt)return"";for(var Lt="";++pt>10),Ie=bt%1024+56320,dt.push(qe,Ie)),(pt+1==xt||dt.length>gt)&&(Lt+=String.fromCharCode.apply(null,dt),dt.length=0)}return Lt}(Re);(function(qe,Ie,gt){var dt=new Error(qe);throw dt.line=Ie,dt.column=gt,dt})("Invalid Unicode escape code: "+fe,Ee,_e)}(D.join(""))},ur="\\u",Jn={type:"literal",value:"\\u",description:'"\\\\u"'},ee=0,Kt=0,Vn=0,nr={line:1,column:1,seenCR:!1},Wn=0,rr=[],At=0,Ct={};if("startRule"in s){if(!(s.startRule in e))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');c=e[s.startRule]}function Cn(){return or(Kt).line}function kn(){return or(Kt).column}function or(D){return Vn!==D&&(Vn>D&&(Vn=0,nr={line:1,column:1,seenCR:!1}),function(fe,Ee,_e){var Re,qe;for(Re=Ee;Re<_e;Re++)(qe=i.charAt(Re))===` -`?(fe.seenCR||fe.line++,fe.column=1,fe.seenCR=!1):qe==="\r"||qe==="\u2028"||qe==="\u2029"?(fe.line++,fe.column=1,fe.seenCR=!0):(fe.column++,fe.seenCR=!1)}(nr,Vn,D),Vn=D),nr}function Ft(D){eeWn&&(Wn=ee,rr=[]),rr.push(D))}function wr(D,fe,Ee){var _e=or(Ee),Re=Eedt.description?1:0});Ie1?dt.slice(0,-1).join(", ")+" or "+dt[qe.length-1]:dt[0])+" but "+(Ie?'"'+function(pt){function xt(Lt){return Lt.charCodeAt(0).toString(16).toUpperCase()}return pt.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(Lt){return"\\x0"+xt(Lt)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(Lt){return"\\x"+xt(Lt)}).replace(/[\u0180-\u0FFF]/g,function(Lt){return"\\u0"+xt(Lt)}).replace(/[\u1080-\uFFFF]/g,function(Lt){return"\\u"+xt(Lt)})}(Ie)+'"':"end of input")+" found."}(fe,Re),fe,Re,Ee,_e.line,_e.column)}function cr(){var D,fe,Ee,_e=49*ee+0,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;for(D=ee,fe=[],Ee=Zn();Ee!==o;)fe.push(Ee),Ee=Zn();return fe!==o&&(Kt=D,fe=u()),D=fe,Ct[_e]={nextPos:ee,result:D},D}function Zn(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+1,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if(Ee=function(){var pt,xt=49*ee+2,Lt=Ct[xt];return Lt?(ee=Lt.nextPos,Lt.result):(pt=er(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn=49*ee+4,dn=Ct[cn];if(dn)return ee=dn.nextPos,dn.result;if(bt=ee,i.charCodeAt(ee)===91?(Xt=w,ee++):(Xt=o,At===0&&Ft(y)),Xt!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if((nn=Gn())!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o?(i.charCodeAt(ee)===93?(Yt=_,ee++):(Yt=o,At===0&&Ft(x)),Yt!==o?(Kt=bt,bt=Xt=E(nn)):(ee=bt,bt=h)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;return Ct[cn]={nextPos:ee,result:bt},bt}(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn,dn,Et=49*ee+5,yn=Ct[Et];if(yn)return ee=yn.nextPos,yn.result;if(bt=ee,i.charCodeAt(ee)===91?(Xt=w,ee++):(Xt=o,At===0&&Ft(y)),Xt!==o)if(i.charCodeAt(ee)===91?(sn=w,ee++):(sn=o,At===0&&Ft(y)),sn!==o){for(nn=[],rn=$t();rn!==o;)nn.push(rn),rn=$t();if(nn!==o)if((rn=Gn())!==o){for(Yt=[],cn=$t();cn!==o;)Yt.push(cn),cn=$t();Yt!==o?(i.charCodeAt(ee)===93?(cn=_,ee++):(cn=o,At===0&&Ft(x)),cn!==o?(i.charCodeAt(ee)===93?(dn=_,ee++):(dn=o,At===0&&Ft(x)),dn!==o?(Kt=bt,bt=Xt=S(rn)):(ee=bt,bt=h)):(ee=bt,bt=h)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;else ee=bt,bt=h;return Ct[Et]={nextPos:ee,result:bt},bt}(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn=49*ee+9,dn=Ct[cn];if(dn)return ee=dn.nextPos,dn.result;if(bt=ee,Xt=In(),Xt!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if(i.charCodeAt(ee)===61?(nn=L,ee++):(nn=o,At===0&&Ft(Q)),nn!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o&&(Yt=Kn())!==o?(Kt=bt,bt=Xt=U(Xt,Yt)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;if(bt===o)if(bt=ee,(Xt=ir())!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if(i.charCodeAt(ee)===61?(nn=L,ee++):(nn=o,At===0&&Ft(Q)),nn!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o&&(Yt=Kn())!==o?(Kt=bt,bt=Xt=U(Xt,Yt)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;return Ct[cn]={nextPos:ee,result:bt},bt}()))),Ct[xt]={nextPos:ee,result:pt},pt)}(),Ee!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o){for(Re=[],qe=er();qe!==o;)Re.push(qe),qe=er();if(Re!==o){if(qe=[],(Ie=Ln())!==o)for(;Ie!==o;)qe.push(Ie),Ie=Ln();else qe=h;qe===o&&(qe=$n()),qe!==o?D=fe=[fe,Ee,_e,Re,qe]:(ee=D,D=h)}else ee=D,D=h}else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){if(D=ee,fe=[],(Ee=$t())!==o)for(;Ee!==o;)fe.push(Ee),Ee=$t();else fe=h;if(fe!==o){if(Ee=[],(_e=Ln())!==o)for(;_e!==o;)Ee.push(_e),_e=Ln();else Ee=h;Ee===o&&(Ee=$n()),Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)}else ee=D,D=h;D===o&&(D=Ln())}return Ct[gt]={nextPos:ee,result:D},D}function er(){var D,fe,Ee,_e,Re,qe,Ie=49*ee+3,gt=Ct[Ie];if(gt)return ee=gt.nextPos,gt.result;if(D=ee,i.charCodeAt(ee)===35?(fe=b,ee++):(fe=o,At===0&&Ft(p)),fe!==o){for(Ee=[],_e=ee,Re=ee,At++,(qe=Ln())===o&&(qe=$n()),At--,qe===o?Re=k:(ee=Re,Re=h),Re!==o?(i.length>ee?(qe=i.charAt(ee),ee++):(qe=o,At===0&&Ft(d)),qe!==o?_e=Re=[Re,qe]:(ee=_e,_e=h)):(ee=_e,_e=h);_e!==o;)Ee.push(_e),_e=ee,Re=ee,At++,(qe=Ln())===o&&(qe=$n()),At--,qe===o?Re=k:(ee=Re,Re=h),Re!==o?(i.length>ee?(qe=i.charAt(ee),ee++):(qe=o,At===0&&Ft(d)),qe!==o?_e=Re=[Re,qe]:(ee=_e,_e=h)):(ee=_e,_e=h);Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)}else ee=D,D=h;return Ct[Ie]={nextPos:ee,result:D},D}function Gn(){var D,fe,Ee,_e=49*ee+6,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=dr())!==o)for(;Ee!==o;)fe.push(Ee),Ee=dr();else fe=h;return fe!==o&&(Ee=fr())!==o?(Kt=D,D=fe=C(fe,Ee)):(ee=D,D=h),D===o&&(D=ee,(fe=fr())!==o&&(Kt=D,fe=T(fe)),D=fe),Ct[_e]={nextPos:ee,result:D},D}function fr(){var D,fe,Ee,_e,Re,qe=49*ee+7,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();_e!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=ir())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();_e!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}return Ct[qe]={nextPos:ee,result:D},D}function dr(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+8,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=ir())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}return Ct[gt]={nextPos:ee,result:D},D}function In(){var D,fe,Ee,_e=49*ee+10,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=Te())!==o)for(;Ee!==o;)fe.push(Ee),Ee=Te();else fe=h;return fe!==o&&(Kt=D,fe=Z(fe)),D=fe,Ct[_e]={nextPos:ee,result:D},D}function ir(){var D,fe,Ee=49*ee+11,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,(fe=tr())!==o&&(Kt=D,fe=se(fe)),(D=fe)===o&&(D=ee,(fe=hr())!==o&&(Kt=D,fe=se(fe)),D=fe),Ct[Ee]={nextPos:ee,result:D},D)}function Kn(){var D,fe=49*ee+12,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(D=function(){var _e,Re=49*ee+13,qe=Ct[Re];return qe?(ee=qe.nextPos,qe.result):(_e=function(){var Ie,gt,dt,pt,xt,Lt=49*ee+14,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;if(Ie=ee,i.substr(ee,3)===te?(gt=te,ee+=3):(gt=o,At===0&&Ft($)),gt!==o)if((dt=Ln())===o&&(dt=P),dt!==o){for(pt=[],xt=Hn();xt!==o;)pt.push(xt),xt=Hn();pt!==o?(i.substr(ee,3)===te?(xt=te,ee+=3):(xt=o,At===0&&Ft($)),xt!==o?(Kt=Ie,Ie=gt=A(pt)):(ee=Ie,Ie=h)):(ee=Ie,Ie=h)}else ee=Ie,Ie=h;else ee=Ie,Ie=h;return Ct[Lt]={nextPos:ee,result:Ie},Ie}(),_e===o&&(_e=tr())===o&&(_e=function(){var Ie,gt,dt,pt,xt,Lt=49*ee+16,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;if(Ie=ee,i.substr(ee,3)===G?(gt=G,ee+=3):(gt=o,At===0&&Ft(re)),gt!==o)if((dt=Ln())===o&&(dt=P),dt!==o){for(pt=[],xt=gr();xt!==o;)pt.push(xt),xt=gr();pt!==o?(i.substr(ee,3)===G?(xt=G,ee+=3):(xt=o,At===0&&Ft(re)),xt!==o?(Kt=Ie,Ie=gt=A(pt)):(ee=Ie,Ie=h)):(ee=Ie,Ie=h)}else ee=Ie,Ie=h;else ee=Ie,Ie=h;return Ct[Lt]={nextPos:ee,result:Ie},Ie}(),_e===o&&(_e=hr())),Ct[Re]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt=49*ee+38,pt=Ct[dt];return pt?(ee=pt.nextPos,pt.result):(_e=ee,(Re=sr())!==o?(i.charCodeAt(ee)===84?(qe=nt,ee++):(qe=o,At===0&&Ft(at)),qe!==o?(Ie=function(){var xt,Lt,bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn=49*ee+36,Fn=Ct[yn];return Fn?(ee=Fn.nextPos,Fn.result):(xt=ee,Lt=ee,bt=pn(),bt!==o&&(Xt=pn())!==o?(i.charCodeAt(ee)===58?(sn=ze,ee++):(sn=o,At===0&&Ft(je)),sn!==o&&(nn=pn())!==o&&(rn=pn())!==o?(i.charCodeAt(ee)===58?(Yt=ze,ee++):(Yt=o,At===0&&Ft(je)),Yt!==o&&(cn=pn())!==o&&(dn=pn())!==o?((Et=On())===o&&(Et=P),Et!==o?Lt=bt=[bt,Xt,sn,nn,rn,Yt,cn,dn,Et]:(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h),Lt!==o&&(Kt=xt,Lt=ut(Lt)),xt=Lt,Ct[yn]={nextPos:ee,result:xt},xt)}(),Ie!==o?(i.charCodeAt(ee)===90?(gt=It,ee++):(gt=o,At===0&&Ft(Nt)),gt!==o?(Kt=_e,_e=Re=Rt(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o&&(_e=ee,(Re=sr())!==o?(i.charCodeAt(ee)===84?(qe=nt,ee++):(qe=o,At===0&&Ft(at)),qe!==o?(Ie=function(){var xt,Lt,bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn,Fn,Tn,hn,_n,ae,de=49*ee+37,Ae=Ct[de];return Ae?(ee=Ae.nextPos,Ae.result):(xt=ee,Lt=ee,bt=pn(),bt!==o&&(Xt=pn())!==o?(i.charCodeAt(ee)===58?(sn=ze,ee++):(sn=o,At===0&&Ft(je)),sn!==o&&(nn=pn())!==o&&(rn=pn())!==o?(i.charCodeAt(ee)===58?(Yt=ze,ee++):(Yt=o,At===0&&Ft(je)),Yt!==o&&(cn=pn())!==o&&(dn=pn())!==o?((Et=On())===o&&(Et=P),Et!==o?(i.charCodeAt(ee)===45?(yn=B,ee++):(yn=o,At===0&&Ft(H)),yn===o&&(i.charCodeAt(ee)===43?(yn=We,ee++):(yn=o,At===0&&Ft(ot))),yn!==o&&(Fn=pn())!==o&&(Tn=pn())!==o?(i.charCodeAt(ee)===58?(hn=ze,ee++):(hn=o,At===0&&Ft(je)),hn!==o&&(_n=pn())!==o&&(ae=pn())!==o?Lt=bt=[bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn,Fn,Tn,hn,_n,ae]:(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h),Lt!==o&&(Kt=xt,Lt=ut(Lt)),xt=Lt,Ct[de]={nextPos:ee,result:xt},xt)}(),Ie!==o?(Kt=_e,_e=Re=Gt(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h)),Ct[dt]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt=49*ee+23,dt=Ct[gt];return dt?(ee=dt.nextPos,dt.result):(_e=ee,(Re=mr())===o&&(Re=Qn()),Re!==o?(i.charCodeAt(ee)===101?(qe=Ne,ee++):(qe=o,At===0&&Ft(Ue)),qe===o&&(i.charCodeAt(ee)===69?(qe=Le,ee++):(qe=o,At===0&&Ft(De))),qe!==o&&(Ie=Qn())!==o?(Kt=_e,_e=Re=Fe(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o&&(_e=ee,(Re=mr())!==o&&(Kt=_e,Re=Oe(Re)),_e=Re),Ct[gt]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe=49*ee+25,Ie=Ct[qe];return Ie?(ee=Ie.nextPos,Ie.result):(_e=ee,(Re=Qn())!==o&&(Kt=_e,Re=J(Re)),_e=Re,Ct[qe]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe=49*ee+27,Ie=Ct[qe];return Ie?(ee=Ie.nextPos,Ie.result):(_e=ee,i.substr(ee,4)===ue?(Re=ue,ee+=4):(Re=o,At===0&&Ft(F)),Re!==o&&(Kt=_e,Re=N()),_e=Re,_e===o&&(_e=ee,i.substr(ee,5)===q?(Re=q,ee+=5):(Re=o,At===0&&Ft(I)),Re!==o&&(Kt=_e,Re=K()),_e=Re),Ct[qe]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt=49*ee+28,pt=Ct[dt];if(pt)return ee=pt.nextPos,pt.result;if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){for(qe=[],Ie=Pn();Ie!==o;)qe.push(Ie),Ie=Pn();qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=oe()):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h;if(_e===o&&(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o?((qe=yr())===o&&(qe=P),qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=ye(qe)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o)){if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){if(qe=[],(Ie=zn())!==o)for(;Ie!==o;)qe.push(Ie),Ie=zn();else qe=h;qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=Pe(qe)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h;if(_e===o)if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){if(qe=[],(Ie=zn())!==o)for(;Ie!==o;)qe.push(Ie),Ie=zn();else qe=h;qe!==o&&(Ie=yr())!==o?(i.charCodeAt(ee)===93?(gt=_,ee++):(gt=o,At===0&&Ft(x)),gt!==o?(Kt=_e,_e=Re=rt(qe,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h}return Ct[dt]={nextPos:ee,result:_e},_e}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt,pt=49*ee+32,xt=Ct[pt];if(xt)return ee=xt.nextPos,xt.result;if(_e=ee,i.charCodeAt(ee)===123?(Re=qt,ee++):(Re=o,At===0&&Ft(me)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();if(qe!==o){for(Ie=[],gt=Nn();gt!==o;)Ie.push(gt),gt=Nn();if(Ie!==o){for(gt=[],dt=$t();dt!==o;)gt.push(dt),dt=$t();gt!==o?(i.charCodeAt(ee)===125?(dt=we,ee++):(dt=o,At===0&&Ft(xe)),dt!==o?(Kt=_e,_e=Re=V(Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h}else ee=_e,_e=h}else ee=_e,_e=h;return Ct[pt]={nextPos:ee,result:_e},_e}())))))),Ct[fe]={nextPos:ee,result:D},D)}function tr(){var D,fe,Ee,_e,Re=49*ee+15,qe=Ct[Re];if(qe)return ee=qe.nextPos,qe.result;if(D=ee,i.charCodeAt(ee)===34?(fe=O,ee++):(fe=o,At===0&&Ft(z)),fe!==o){for(Ee=[],_e=Xn();_e!==o;)Ee.push(_e),_e=Xn();Ee!==o?(i.charCodeAt(ee)===34?(_e=O,ee++):(_e=o,At===0&&Ft(z)),_e!==o?(Kt=D,D=fe=A(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[Re]={nextPos:ee,result:D},D}function hr(){var D,fe,Ee,_e,Re=49*ee+17,qe=Ct[Re];if(qe)return ee=qe.nextPos,qe.result;if(D=ee,i.charCodeAt(ee)===39?(fe=X,ee++):(fe=o,At===0&&Ft(be)),fe!==o){for(Ee=[],_e=pr();_e!==o;)Ee.push(_e),_e=pr();Ee!==o?(i.charCodeAt(ee)===39?(_e=X,ee++):(_e=o,At===0&&Ft(be)),_e!==o?(Kt=D,D=fe=A(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[Re]={nextPos:ee,result:D},D}function Xn(){var D,fe,Ee,_e=49*ee+18,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):((D=pe())===o&&(D=ee,fe=ee,At++,i.charCodeAt(ee)===34?(Ee=O,ee++):(Ee=o,At===0&&Ft(z)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h)),Ct[_e]={nextPos:ee,result:D},D)}function pr(){var D,fe,Ee,_e=49*ee+19,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,fe=ee,At++,i.charCodeAt(ee)===39?(Ee=X,ee++):(Ee=o,At===0&&Ft(be)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function Hn(){var D,fe,Ee,_e=49*ee+20,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):((D=pe())===o&&(D=function(){var qe,Ie,gt,dt,pt=49*ee+21,xt=Ct[pt];if(xt)return ee=xt.nextPos,xt.result;if(qe=ee,i.charCodeAt(ee)===92?(Ie=he,ee++):(Ie=o,At===0&&Ft(le)),Ie!==o)if(Ln()!==o){for(gt=[],dt=vr();dt!==o;)gt.push(dt),dt=vr();gt!==o?(Kt=qe,qe=Ie=ge()):(ee=qe,qe=h)}else ee=qe,qe=h;else ee=qe,qe=h;return Ct[pt]={nextPos:ee,result:qe},qe}(),D===o&&(D=ee,fe=ee,At++,i.substr(ee,3)===te?(Ee=te,ee+=3):(Ee=o,At===0&&Ft($)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=ve(Ee)):(ee=D,D=h)):(ee=D,D=h))),Ct[_e]={nextPos:ee,result:D},D)}function gr(){var D,fe,Ee,_e=49*ee+22,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,fe=ee,At++,i.substr(ee,3)===G?(Ee=G,ee+=3):(Ee=o,At===0&&Ft(re)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function mr(){var D,fe,Ee,_e,Re,qe,Ie=49*ee+24,gt=Ct[Ie];return gt?(ee=gt.nextPos,gt.result):(D=ee,i.charCodeAt(ee)===43?(fe=We,ee++):(fe=o,At===0&&Ft(ot)),fe===o&&(fe=P),fe!==o?(Ee=ee,(_e=ie())!==o?(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o&&(qe=ie())!==o?Ee=_e=[_e,Re,qe]:(ee=Ee,Ee=h)):(ee=Ee,Ee=h),Ee!==o?(Kt=D,D=fe=Ke(Ee)):(ee=D,D=h)):(ee=D,D=h),D===o&&(D=ee,i.charCodeAt(ee)===45?(fe=B,ee++):(fe=o,At===0&&Ft(H)),fe!==o?(Ee=ee,(_e=ie())!==o?(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o&&(qe=ie())!==o?Ee=_e=[_e,Re,qe]:(ee=Ee,Ee=h)):(ee=Ee,Ee=h),Ee!==o?(Kt=D,D=fe=M(Ee)):(ee=D,D=h)):(ee=D,D=h)),Ct[Ie]={nextPos:ee,result:D},D)}function Qn(){var D,fe,Ee,_e,Re,qe=49*ee+26,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;if(D=ee,i.charCodeAt(ee)===43?(fe=We,ee++):(fe=o,At===0&&Ft(ot)),fe===o&&(fe=P),fe!==o){if(Ee=[],(_e=pn())!==o)for(;_e!==o;)Ee.push(_e),_e=pn();else Ee=h;Ee!==o?(_e=ee,At++,i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),At--,Re===o?_e=k:(ee=_e,_e=h),_e!==o?(Kt=D,D=fe=Ke(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;if(D===o)if(D=ee,i.charCodeAt(ee)===45?(fe=B,ee++):(fe=o,At===0&&Ft(H)),fe!==o){if(Ee=[],(_e=pn())!==o)for(;_e!==o;)Ee.push(_e),_e=pn();else Ee=h;Ee!==o?(_e=ee,At++,i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),At--,Re===o?_e=k:(ee=_e,_e=h),_e!==o?(Kt=D,D=fe=M(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[qe]={nextPos:ee,result:D},D}function yr(){var D,fe,Ee,_e,Re,qe=49*ee+29,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;for(D=ee,fe=[],Ee=Pn();Ee!==o;)fe.push(Ee),Ee=Pn();if(fe!==o)if((Ee=Kn())!==o){for(_e=[],Re=Pn();Re!==o;)_e.push(Re),Re=Pn();_e!==o?(Kt=D,D=fe=lt(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h;return Ct[qe]={nextPos:ee,result:D},D}function zn(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+30,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=Pn();Ee!==o;)fe.push(Ee),Ee=Pn();if(fe!==o)if((Ee=Kn())!==o){for(_e=[],Re=Pn();Re!==o;)_e.push(Re),Re=Pn();if(_e!==o)if(i.charCodeAt(ee)===44?(Re=vt,ee++):(Re=o,At===0&&Ft(_t)),Re!==o){for(qe=[],Ie=Pn();Ie!==o;)qe.push(Ie),Ie=Pn();qe!==o?(Kt=D,D=fe=lt(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;return Ct[gt]={nextPos:ee,result:D},D}function Pn(){var D,fe=49*ee+31,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):((D=$t())===o&&(D=Ln())===o&&(D=er()),Ct[fe]={nextPos:ee,result:D},D)}function Nn(){var D,fe,Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt=49*ee+33,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===61?(Re=L,ee++):(Re=o,At===0&&Ft(Q)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();if(qe!==o)if((Ie=Kn())!==o){for(gt=[],dt=$t();dt!==o;)gt.push(dt),dt=$t();if(gt!==o)if(i.charCodeAt(ee)===44?(dt=vt,ee++):(dt=o,At===0&&Ft(_t)),dt!==o){for(pt=[],xt=$t();xt!==o;)pt.push(xt),xt=$t();pt!==o?(Kt=D,D=fe=Y(Ee,Ie)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===61?(Re=L,ee++):(Re=o,At===0&&Ft(Q)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o&&(Ie=Kn())!==o?(Kt=D,D=fe=Y(Ee,Ie)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}return Ct[Lt]={nextPos:ee,result:D},D}function On(){var D,fe,Ee,_e=49*ee+34,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,i.charCodeAt(ee)===46?(fe=W,ee++):(fe=o,At===0&&Ft(j)),fe!==o&&(Ee=ie())!==o?(Kt=D,D=fe=ke(Ee)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function sr(){var D,fe,Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt,bt=49*ee+35,Xt=Ct[bt];return Xt?(ee=Xt.nextPos,Xt.result):(D=ee,fe=ee,(Ee=pn())!==o&&(_e=pn())!==o&&(Re=pn())!==o&&(qe=pn())!==o?(i.charCodeAt(ee)===45?(Ie=B,ee++):(Ie=o,At===0&&Ft(H)),Ie!==o&&(gt=pn())!==o&&(dt=pn())!==o?(i.charCodeAt(ee)===45?(pt=B,ee++):(pt=o,At===0&&Ft(H)),pt!==o&&(xt=pn())!==o&&(Lt=pn())!==o?fe=Ee=[Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt]:(ee=fe,fe=h)):(ee=fe,fe=h)):(ee=fe,fe=h),fe!==o&&(Kt=D,fe=$e(fe)),D=fe,Ct[bt]={nextPos:ee,result:D},D)}function $t(){var D,fe=49*ee+39,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(Jt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(Ht)),Ct[fe]={nextPos:ee,result:D},D)}function Ln(){var D,fe,Ee,_e=49*ee+40,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(i.charCodeAt(ee)===10?(D=Zt,ee++):(D=o,At===0&&Ft(Vt)),D===o&&(D=ee,i.charCodeAt(ee)===13?(fe=Ut,ee++):(fe=o,At===0&&Ft(Qt)),fe!==o?(i.charCodeAt(ee)===10?(Ee=Zt,ee++):(Ee=o,At===0&&Ft(Vt)),Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)):(ee=D,D=h)),Ct[_e]={nextPos:ee,result:D},D)}function vr(){var D,fe=49*ee+41,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):((D=Ln())===o&&(D=$t()),Ct[fe]={nextPos:ee,result:D},D)}function $n(){var D,fe,Ee=49*ee+42,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,At++,i.length>ee?(fe=i.charAt(ee),ee++):(fe=o,At===0&&Ft(d)),At--,fe===o?D=k:(ee=D,D=h),Ct[Ee]={nextPos:ee,result:D},D)}function Dn(){var D,fe=49*ee+43,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(en.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(Wt)),Ct[fe]={nextPos:ee,result:D},D)}function pn(){var D,fe,Ee=49*ee+44,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(mt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(St)),D===o&&(D=ee,i.charCodeAt(ee)===95?(fe=Bt,ee++):(fe=o,At===0&&Ft(Tt)),fe!==o&&(Kt=D,fe=Ot()),D=fe),Ct[Ee]={nextPos:ee,result:D},D)}function Te(){var D,fe=49*ee+45,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(kt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(ln)),Ct[fe]={nextPos:ee,result:D},D)}function ie(){var D,fe,Ee,_e=49*ee+46,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=pn())!==o)for(;Ee!==o;)fe.push(Ee),Ee=pn();else fe=h;return fe!==o&&(Kt=D,fe=ce(fe)),D=fe,Ct[_e]={nextPos:ee,result:D},D}function pe(){var D,fe,Ee=49*ee+47,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,i.substr(ee,2)===Ce?(fe=Ce,ee+=2):(fe=o,At===0&&Ft(Ve)),fe!==o&&(Kt=D,fe=Qe()),(D=fe)===o&&(D=ee,i.substr(ee,2)===Je?(fe=Je,ee+=2):(fe=o,At===0&&Ft(Ye)),fe!==o&&(Kt=D,fe=Ze()),(D=fe)===o&&(D=ee,i.substr(ee,2)===yt?(fe=yt,ee+=2):(fe=o,At===0&&Ft(wt)),fe!==o&&(Kt=D,fe=ht()),(D=fe)===o&&(D=ee,i.substr(ee,2)===ct?(fe=ct,ee+=2):(fe=o,At===0&&Ft(Mt)),fe!==o&&(Kt=D,fe=jt()),(D=fe)===o&&(D=ee,i.substr(ee,2)===zt?(fe=zt,ee+=2):(fe=o,At===0&&Ft(Dt)),fe!==o&&(Kt=D,fe=tn()),(D=fe)===o&&(D=ee,i.substr(ee,2)===an?(fe=an,ee+=2):(fe=o,At===0&&Ft(fn)),fe!==o&&(Kt=D,fe=wn()),(D=fe)===o&&(D=ee,i.substr(ee,2)===bn?(fe=bn,ee+=2):(fe=o,At===0&&Ft(En)),fe!==o&&(Kt=D,fe=qn()),(D=fe)===o&&(D=function(){var Re,qe,Ie,gt,dt,pt,xt,Lt,bt,Xt,sn,nn=49*ee+48,rn=Ct[nn];return rn?(ee=rn.nextPos,rn.result):(Re=ee,i.substr(ee,2)===lr?(qe=lr,ee+=2):(qe=o,At===0&&Ft(_r)),qe!==o?(Ie=ee,(gt=Dn())!==o&&(dt=Dn())!==o&&(pt=Dn())!==o&&(xt=Dn())!==o&&(Lt=Dn())!==o&&(bt=Dn())!==o&&(Xt=Dn())!==o&&(sn=Dn())!==o?Ie=gt=[gt,dt,pt,xt,Lt,bt,Xt,sn]:(ee=Ie,Ie=h),Ie!==o?(Kt=Re,Re=qe=Yn(Ie)):(ee=Re,Re=h)):(ee=Re,Re=h),Re===o&&(Re=ee,i.substr(ee,2)===ur?(qe=ur,ee+=2):(qe=o,At===0&&Ft(Jn)),qe!==o?(Ie=ee,(gt=Dn())!==o&&(dt=Dn())!==o&&(pt=Dn())!==o&&(xt=Dn())!==o?Ie=gt=[gt,dt,pt,xt]:(ee=Ie,Ie=h),Ie!==o?(Kt=Re,Re=qe=Yn(Ie)):(ee=Re,Re=h)):(ee=Re,Re=h)),Ct[nn]={nextPos:ee,result:Re},Re)}()))))))),Ct[Ee]={nextPos:ee,result:D},D)}var Se=[];function He(D){Se.push(D)}function ne(D,fe,Ee,_e,Re){var qe={type:D,value:fe,line:Ee(),column:_e()};return Re&&(qe.key=Re),qe}if((t=c())!==o&&ee===i.length)return t;throw t!==o&&ee1;w++)h.splice(0,1);b[d]=h.join("")}var y=-1,_=0,x=0,E=-1,S=!1;for(d=0;d_&&(y=E,_=x)):b[d]==="0"&&(S=!0,E=d,x=1);x>_&&(y=E,_=x),_>1&&b.splice(y,_,""),p=b.length;var C="";for(b[0]===""&&(C=":"),d=0;d=u.length-1)return!1;var b=u.lastIndexOf(".",h-1);if(b<=0||b>=h-1)return!1;var p=c.list[u.slice(h+1)];return!!p&&p.indexOf(" "+u.slice(b+1,h)+" ")>=0},is:function(u){var h=u.lastIndexOf(".");if(h<=0||h>=u.length-1||u.lastIndexOf(".",h-1)>=0)return!1;var b=c.list[u.slice(h+1)];return!!b&&b.indexOf(" "+u.slice(0,h)+" ")>=0},get:function(u){var h=u.lastIndexOf(".");if(h<=0||h>=u.length-1)return null;var b=u.lastIndexOf(".",h-1);if(b<=0||b>=h-1)return null;var p=c.list[u.slice(h+1)];return p?p.indexOf(" "+u.slice(b+1,h)+" ")<0?null:u.slice(b+1):null},noConflict:function(){return o.SecondLevelDomains===this&&(o.SecondLevelDomains=e),this}};return c})},4998:function(f,a,i){var t,s,o;(function(e,c){f.exports?f.exports=c(i(3132),i(2251),i(8640)):(s=[i(3132),i(2251),i(8640)],(o=typeof(t=c)=="function"?t.apply(a,s):t)===void 0||(f.exports=o))})(0,function(e,c,u,h){var b=h&&h.URI;function p(A,O){var z=arguments.length>=1;if(!(this instanceof p))return z?arguments.length>=2?new p(A,O):new p(A):new p;if(A===void 0){if(z)throw new TypeError("undefined is not a valid argument for URI");A=typeof location<"u"?location.href+"":""}if(A===null&&z)throw new TypeError("null is not a valid argument for URI");return this.href(A),O!==void 0?this.absoluteTo(O):this}p.version="1.19.11";var k=p.prototype,d=Object.prototype.hasOwnProperty;function w(A){return A.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(A){return A===void 0?"Undefined":String(Object.prototype.toString.call(A)).slice(8,-1)}function _(A){return y(A)==="Array"}function x(A,O){var z,G,re={};if(y(O)==="RegExp")re=null;else if(_(O))for(z=0,G=O.length;z]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,p.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},p.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,p.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,p.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},p.hostProtocols=["http","https"],p.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,p.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},p.getDomAttribute=function(A){if(A&&A.nodeName){var O=A.nodeName.toLowerCase();if(O!=="input"||A.type==="image")return p.domAttributes[O]}},p.encode=R,p.decode=decodeURIComponent,p.iso8859=function(){p.encode=escape,p.decode=unescape},p.unicode=function(){p.encode=R,p.decode=decodeURIComponent},p.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},p.encodeQuery=function(A,O){var z=p.encode(A+"");return O===void 0&&(O=p.escapeQuerySpace),O?z.replace(/%20/g,"+"):z},p.decodeQuery=function(A,O){A+="",O===void 0&&(O=p.escapeQuerySpace);try{return p.decode(O?A.replace(/\+/g,"%20"):A)}catch{return A}};var W,j={encode:"encode",decode:"decode"},L=function(A,O){return function(z){try{return p[O](z+"").replace(p.characters[A][O].expression,function(G){return p.characters[A][O].map[G]})}catch{return z}}};for(W in j)p[W+"PathSegment"]=L("pathname",j[W]),p[W+"UrnPathSegment"]=L("urnpath",j[W]);var Q=function(A,O,z){return function(G){var re;re=z?function(ve){return p[O](p[z](ve))}:p[O];for(var X=(G+"").split(A),be=0,Be=X.length;be-1&&(O.fragment=A.substring(z+1)||null,A=A.substring(0,z)),(z=A.indexOf("?"))>-1&&(O.query=A.substring(z+1)||null,A=A.substring(0,z)),(A=(A=A.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)==="//"?(O.protocol=null,A=A.substring(2),A=p.parseAuthority(A,O)):(z=A.indexOf(":"))>-1&&(O.protocol=A.substring(0,z)||null,O.protocol&&!O.protocol.match(p.protocol_expression)?O.protocol=void 0:A.substring(z+1,z+3).replace(/\\/g,"/")==="//"?(A=A.substring(z+3),A=p.parseAuthority(A,O)):(A=A.substring(z+1),O.urn=!0)),O.path=A,O},p.parseHost=function(A,O){A||(A="");var z,G,re=(A=A.replace(/\\/g,"/")).indexOf("/");if(re===-1&&(re=A.length),A.charAt(0)==="[")z=A.indexOf("]"),O.hostname=A.substring(1,z)||null,O.port=A.substring(z+2,re)||null,O.port==="/"&&(O.port=null);else{var X=A.indexOf(":"),be=A.indexOf("/"),Be=A.indexOf(":",X+1);Be!==-1&&(be===-1||Be-1?re:A.length-1);return X>-1&&(re===-1||X-1?Ne.slice(0,Ue)+Ne.slice(Ue).replace(X,""):Ne.replace(X,"")).length<=ve[0].length||z.ignore&&z.ignore.test(Ne))){var Fe=O(Ne,he,ge=he+Ne.length,A);Fe!==void 0?(Fe=String(Fe),A=A.slice(0,he)+Fe+A.slice(ge),G.lastIndex=he+Fe.length):G.lastIndex=ge}}return G.lastIndex=0,A},p.ensureValidHostname=function(A,O){var z=!!A,G=!1;if(O&&(G=E(p.hostProtocols,O)),G&&!z)throw new TypeError("Hostname cannot be empty, if protocol is "+O);if(A&&A.match(p.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(A).match(p.invalid_hostname_characters))throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-:_]')}},p.ensureValidPort=function(A){if(A){var O=Number(A);if(!(/^[0-9]+$/.test(O)&&O>0&&O<65536))throw new TypeError('Port "'+A+'" is not a valid port')}},p.noConflict=function(A){if(A){var O={URI:this.noConflict()};return h.URITemplate&&typeof h.URITemplate.noConflict=="function"&&(O.URITemplate=h.URITemplate.noConflict()),h.IPv6&&typeof h.IPv6.noConflict=="function"&&(O.IPv6=h.IPv6.noConflict()),h.SecondLevelDomains&&typeof h.SecondLevelDomains.noConflict=="function"&&(O.SecondLevelDomains=h.SecondLevelDomains.noConflict()),O}return h.URI===this&&(h.URI=b),this},k.build=function(A){return A===!0?this._deferred_build=!0:(A===void 0||this._deferred_build)&&(this._string=p.build(this._parts),this._deferred_build=!1),this},k.clone=function(){return new p(this)},k.valueOf=k.toString=function(){return this.build(!1)._string},k.protocol=U("protocol"),k.username=U("username"),k.password=U("password"),k.hostname=U("hostname"),k.port=U("port"),k.query=Z("query","?"),k.fragment=Z("fragment","#"),k.search=function(A,O){var z=this.query(A,O);return typeof z=="string"&&z.length?"?"+z:z},k.hash=function(A,O){var z=this.fragment(A,O);return typeof z=="string"&&z.length?"#"+z:z},k.pathname=function(A,O){if(A===void 0||A===!0){var z=this._parts.path||(this._parts.hostname?"/":"");return A?(this._parts.urn?p.decodeUrnPath:p.decodePath)(z):z}return this._parts.urn?this._parts.path=A?p.recodeUrnPath(A):"":this._parts.path=A?p.recodePath(A):"/",this.build(!O),this},k.path=k.pathname,k.href=function(A,O){var z;if(A===void 0)return this.toString();this._string="",this._parts=p._parts();var G=A instanceof p,re=typeof A=="object"&&(A.hostname||A.path||A.pathname);if(A.nodeName&&(A=A[p.getDomAttribute(A)]||"",re=!1),!G&&re&&A.pathname!==void 0&&(A=A.toString()),typeof A=="string"||A instanceof String)this._parts=p.parse(String(A),this._parts);else{if(!G&&!re)throw new TypeError("invalid input");var X=G?A._parts:A;for(z in X)z!=="query"&&d.call(this._parts,z)&&(this._parts[z]=X[z]);X.query&&this.query(X.query,!1)}return this.build(!O),this},k.is=function(A){var O=!1,z=!1,G=!1,re=!1,X=!1,be=!1,Be=!1,ve=!this._parts.urn;switch(this._parts.hostname&&(ve=!1,z=p.ip4_expression.test(this._parts.hostname),G=p.ip6_expression.test(this._parts.hostname),X=(re=!(O=z||G))&&u&&u.has(this._parts.hostname),be=re&&p.idn_expression.test(this._parts.hostname),Be=re&&p.punycode_expression.test(this._parts.hostname)),A.toLowerCase()){case"relative":return ve;case"absolute":return!ve;case"domain":case"name":return re;case"sld":return X;case"ip":return O;case"ip4":case"ipv4":case"inet4":return z;case"ip6":case"ipv6":case"inet6":return G;case"idn":return be;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return Be}return null};var se=k.protocol,te=k.port,$=k.hostname;k.protocol=function(A,O){if(A&&!(A=A.replace(/:(\/\/)?$/,"")).match(p.protocol_expression))throw new TypeError('Protocol "'+A+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return se.call(this,A,O)},k.scheme=k.protocol,k.port=function(A,O){return this._parts.urn?A===void 0?"":this:(A!==void 0&&(A===0&&(A=null),A&&((A+="").charAt(0)===":"&&(A=A.substring(1)),p.ensureValidPort(A))),te.call(this,A,O))},k.hostname=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A!==void 0){var z={preventInvalidHostname:this._parts.preventInvalidHostname};if(p.parseHost(A,z)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');A=z.hostname,this._parts.preventInvalidHostname&&p.ensureValidHostname(A,this._parts.protocol)}return $.call(this,A,O)},k.origin=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){var z=this.protocol();return this.authority()?(z?z+"://":"")+this.authority():""}var G=p(A);return this.protocol(G.protocol()).authority(G.authority()).build(!O),this},k.host=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0)return this._parts.hostname?p.buildHost(this._parts):"";if(p.parseHost(A,this._parts)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},k.authority=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0)return this._parts.hostname?p.buildAuthority(this._parts):"";if(p.parseAuthority(A,this._parts)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},k.userinfo=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){var z=p.buildUserinfo(this._parts);return z&&z.substring(0,z.length-1)}return A[A.length-1]!=="@"&&(A+="@"),p.parseUserinfo(A,this._parts),this.build(!O),this},k.resource=function(A,O){var z;return A===void 0?this.path()+this.search()+this.hash():(z=p.parse(A),this._parts.path=z.path,this._parts.query=z.query,this._parts.fragment=z.fragment,this.build(!O),this)},k.subdomain=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,z)||""}var G=this._parts.hostname.length-this.domain().length,re=this._parts.hostname.substring(0,G),X=new RegExp("^"+w(re));if(A&&A.charAt(A.length-1)!=="."&&(A+="."),A.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return A&&p.ensureValidHostname(A,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(X,A),this.build(!O),this},k.domain=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A=="boolean"&&(O=A,A=void 0),A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.match(/\./g);if(z&&z.length<2)return this._parts.hostname;var G=this._parts.hostname.length-this.tld(O).length-1;return G=this._parts.hostname.lastIndexOf(".",G-1)+1,this._parts.hostname.substring(G)||""}if(!A)throw new TypeError("cannot set domain empty");if(A.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(p.ensureValidHostname(A,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=A;else{var re=new RegExp(w(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(re,A)}return this.build(!O),this},k.tld=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A=="boolean"&&(O=A,A=void 0),A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.lastIndexOf("."),G=this._parts.hostname.substring(z+1);return O!==!0&&u&&u.list[G.toLowerCase()]&&u.get(this._parts.hostname)||G}var re;if(!A)throw new TypeError("cannot set TLD empty");if(A.match(/[^a-zA-Z0-9-]/)){if(!u||!u.is(A))throw new TypeError('TLD "'+A+'" contains characters other than [A-Z0-9]');re=new RegExp(w(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(re,A)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");re=new RegExp(w(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(re,A)}return this.build(!O),this},k.directory=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0||A===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var z=this._parts.path.length-this.filename().length-1,G=this._parts.path.substring(0,z)||(this._parts.hostname?"/":"");return A?p.decodePath(G):G}var re=this._parts.path.length-this.filename().length,X=this._parts.path.substring(0,re),be=new RegExp("^"+w(X));return this.is("relative")||(A||(A="/"),A.charAt(0)!=="/"&&(A="/"+A)),A&&A.charAt(A.length-1)!=="/"&&(A+="/"),A=p.recodePath(A),this._parts.path=this._parts.path.replace(be,A),this.build(!O),this},k.filename=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A!="string"){if(!this._parts.path||this._parts.path==="/")return"";var z=this._parts.path.lastIndexOf("/"),G=this._parts.path.substring(z+1);return A?p.decodePathSegment(G):G}var re=!1;A.charAt(0)==="/"&&(A=A.substring(1)),A.match(/\.?\//)&&(re=!0);var X=new RegExp(w(this.filename())+"$");return A=p.recodePath(A),this._parts.path=this._parts.path.replace(X,A),re?this.normalizePath(O):this.build(!O),this},k.suffix=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0||A===!0){if(!this._parts.path||this._parts.path==="/")return"";var z,G,re=this.filename(),X=re.lastIndexOf(".");return X===-1?"":(z=re.substring(X+1),G=/^[a-z0-9%]+$/i.test(z)?z:"",A?p.decodePathSegment(G):G)}A.charAt(0)==="."&&(A=A.substring(1));var be,Be=this.suffix();if(Be)be=A?new RegExp(w(Be)+"$"):new RegExp(w("."+Be)+"$");else{if(!A)return this;this._parts.path+="."+p.recodePath(A)}return be&&(A=p.recodePath(A),this._parts.path=this._parts.path.replace(be,A)),this.build(!O),this},k.segment=function(A,O,z){var G=this._parts.urn?":":"/",re=this.path(),X=re.substring(0,1)==="/",be=re.split(G);if(A!==void 0&&typeof A!="number"&&(z=O,O=A,A=void 0),A!==void 0&&typeof A!="number")throw new Error('Bad segment "'+A+'", must be 0-based integer');if(X&&be.shift(),A<0&&(A=Math.max(be.length+A,0)),O===void 0)return A===void 0?be:be[A];if(A===null||be[A]===void 0)if(_(O)){be=[];for(var Be=0,ve=O.length;Be{}"`^| \\]/,b.expand=function(w,y,_){var x,E,S,C=d[w.operator],T=C.named?"Named":"Unnamed",R=w.variables,W=[];for(S=0;E=R[S];S++){if((x=y.get(E.name)).type===0&&_&&_.strict)throw new Error('Missing expansion value for variable "'+E.name+'"');if(x.val.length){if(x.type>1&&E.maxlength)throw new Error('Invalid expression: Prefix modifier not applicable to variable "'+E.name+'"');W.push(b["expand"+T](x,C,E.explode,E.explode&&C.separator||",",E.maxlength,E.name))}else x.type&&W.push("")}return W.length?C.prefix+W.join(C.separator):""},b.expandNamed=function(w,y,_,x,E,S){var C,T,R,W="",j=y.encode,L=y.empty_name_separator,Q=!w[j].length,U=w.type===2?"":e[j](S);for(T=0,R=w.val.length;T= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=u-h,T=Math.floor,R=String.fromCharCode;function W(P){throw new RangeError(S[P])}function j(P,A){for(var O=P.length,z=[];O--;)z[O]=A(P[O]);return z}function L(P,A){var O=P.split("@"),z="";return O.length>1&&(z=O[0]+"@",P=O[1]),z+j((P=P.replace(E,".")).split("."),A).join(".")}function Q(P){for(var A,O,z=[],G=0,re=P.length;G=55296&&A<=56319&&G65535&&(O+=R((A-=65536)>>>10&1023|55296),A=56320|1023&A),O+=R(A)}).join("")}function Z(P,A){return P+22+75*(P<26)-((A!=0)<<5)}function se(P,A,O){var z=0;for(P=O?T(P/k):P>>1,P+=T(P/A);P>C*b>>1;z+=u)P=T(P/C);return T(z+(C+1)*P/(P+p))}function te(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge=[],Ne=P.length,Ue=0,Le=w,De=d;for((O=P.lastIndexOf(y))<0&&(O=0),z=0;z=128&&W("not-basic"),ge.push(P.charCodeAt(z));for(G=O>0?O+1:0;G=Ne&&W("invalid-input"),((Be=(le=P.charCodeAt(G++))-48<10?le-22:le-65<26?le-65:le-97<26?le-97:u)>=u||Be>T((c-Ue)/X))&&W("overflow"),Ue+=Be*X,!(Be<(ve=be<=De?h:be>=De+b?b:be-De));be+=u)X>T(c/(he=u-ve))&&W("overflow"),X*=he;De=se(Ue-re,A=ge.length+1,re==0),T(Ue/A)>c-Le&&W("overflow"),Le+=T(Ue/A),Ue%=A,ge.splice(Ue++,0,Le)}return U(ge)}function $(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge,Ne,Ue,Le,De=[];for(ge=(P=Q(P)).length,A=w,O=0,re=d,X=0;X=A&&leT((c-O)/(Ne=z+1))&&W("overflow"),O+=(be-A)*Ne,A=be,X=0;Xc&&W("overflow"),le==A){for(Be=O,ve=u;!(Be<(he=ve<=re?h:ve>=re+b?b:ve-re));ve+=u)Le=Be-he,Ue=u-he,De.push(R(Z(he+Le%Ue,0))),Be=T(Le/Ue);De.push(R(Z(Be,0))),re=se(O,Ne,z==G),O=0,++z}++O,++A}return De.join("")}e={version:"1.3.2",ucs2:{decode:Q,encode:U},decode:te,encode:$,toASCII:function(P){return L(P,function(A){return x.test(A)?"xn--"+$(A):A})},toUnicode:function(P){return L(P,function(A){return _.test(A)?te(A.slice(4).toLowerCase()):A})}},(t=(function(){return e}).call(a,i,a,f))===void 0||(f.exports=t)}()},2511:function(f,a,i){var t;f=i.nmd(f),function(s){a&&a.nodeType,f&&f.nodeType;var o=typeof i.g=="object"&&i.g;o.global!==o&&o.window!==o&&o.self;var e,c=2147483647,u=36,h=1,b=26,p=38,k=700,d=72,w=128,y="-",_=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=u-h,T=Math.floor,R=String.fromCharCode;function W(P){throw new RangeError(S[P])}function j(P,A){for(var O=P.length,z=[];O--;)z[O]=A(P[O]);return z}function L(P,A){var O=P.split("@"),z="";return O.length>1&&(z=O[0]+"@",P=O[1]),z+j((P=P.replace(E,".")).split("."),A).join(".")}function Q(P){for(var A,O,z=[],G=0,re=P.length;G=55296&&A<=56319&&G65535&&(O+=R((A-=65536)>>>10&1023|55296),A=56320|1023&A),O+=R(A)}).join("")}function Z(P,A){return P+22+75*(P<26)-((A!=0)<<5)}function se(P,A,O){var z=0;for(P=O?T(P/k):P>>1,P+=T(P/A);P>C*b>>1;z+=u)P=T(P/C);return T(z+(C+1)*P/(P+p))}function te(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge=[],Ne=P.length,Ue=0,Le=w,De=d;for((O=P.lastIndexOf(y))<0&&(O=0),z=0;z=128&&W("not-basic"),ge.push(P.charCodeAt(z));for(G=O>0?O+1:0;G=Ne&&W("invalid-input"),((Be=(le=P.charCodeAt(G++))-48<10?le-22:le-65<26?le-65:le-97<26?le-97:u)>=u||Be>T((c-Ue)/X))&&W("overflow"),Ue+=Be*X,!(Be<(ve=be<=De?h:be>=De+b?b:be-De));be+=u)X>T(c/(he=u-ve))&&W("overflow"),X*=he;De=se(Ue-re,A=ge.length+1,re==0),T(Ue/A)>c-Le&&W("overflow"),Le+=T(Ue/A),Ue%=A,ge.splice(Ue++,0,Le)}return U(ge)}function $(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge,Ne,Ue,Le,De=[];for(ge=(P=Q(P)).length,A=w,O=0,re=d,X=0;X=A&&leT((c-O)/(Ne=z+1))&&W("overflow"),O+=(be-A)*Ne,A=be,X=0;Xc&&W("overflow"),le==A){for(Be=O,ve=u;!(Be<(he=ve<=re?h:ve>=re+b?b:ve-re));ve+=u)Le=Be-he,Ue=u-he,De.push(R(Z(he+Le%Ue,0))),Be=T(Le/Ue);De.push(R(Z(Be,0))),re=se(O,Ne,z==G),O=0,++z}++O,++A}return De.join("")}e={version:"1.4.1",ucs2:{decode:Q,encode:U},decode:te,encode:$,toASCII:function(P){return L(P,function(A){return x.test(A)?"xn--"+$(A):A})},toUnicode:function(P){return L(P,function(A){return _.test(A)?te(A.slice(4).toLowerCase()):A})}},(t=(function(){return e}).call(a,i,a,f))===void 0||(f.exports=t)}()},8575:(f,a,i)=>{var t=i(2511);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),h=["'"].concat(u),b=["%","/","?",";","#"].concat(h),p=["/","?","#"],k=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=i(129);function E(S,C,T){if(S&&typeof S=="object"&&S instanceof s)return S;var R=new s;return R.parse(S,C,T),R}s.prototype.parse=function(S,C,T){if(typeof S!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var R=S.indexOf("?"),W=R!==-1&&R127?be+="x":be+=X[Be];if(!be.match(k)){var he=G.slice(0,A),le=G.slice(A+1),ge=X.match(d);ge&&(he.push(ge[1]),le.unshift(ge[2])),le.length&&(L="/"+le.join(".")+L),this.hostname=he.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=t.toASCII(this.hostname));var Ne=this.port?":"+this.port:"",Ue=this.hostname||"";this.host=Ue+Ne,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!w[Z])for(A=0,re=h.length;A0)&&T.host.split("@"))&&(T.auth=ge.shift(),T.hostname=ge.shift(),T.host=T.hostname)),T.search=S.search,T.query=S.query,T.pathname===null&&T.search===null||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T;if(!X.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var Be=X.slice(-1)[0],ve=(T.host||S.host||X.length>1)&&(Be==="."||Be==="..")||Be==="",he=0,le=X.length;le>=0;le--)(Be=X[le])==="."?X.splice(le,1):Be===".."?(X.splice(le,1),he++):he&&(X.splice(le,1),he--);if(!G&&!re)for(;he--;he)X.unshift("..");!G||X[0]===""||X[0]&&X[0].charAt(0)==="/"||X.unshift(""),ve&&X.join("/").substr(-1)!=="/"&&X.push("");var ge,Ne=X[0]===""||X[0]&&X[0].charAt(0)==="/";return be&&(T.hostname=Ne?"":X.length?X.shift():"",T.host=T.hostname,(ge=!!(T.host&&T.host.indexOf("@")>0)&&T.host.split("@"))&&(T.auth=ge.shift(),T.hostname=ge.shift(),T.host=T.hostname)),(G=G||T.host&&X.length)&&!Ne&&X.unshift(""),X.length>0?T.pathname=X.join("/"):(T.pathname=null,T.path=null),T.pathname===null&&T.search===null||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=S.auth||T.auth,T.slashes=T.slashes||S.slashes,T.href=T.format(),T},s.prototype.parseHost=function(){var S=this.host,C=e.exec(S);C&&((C=C[0])!==":"&&(this.port=C.substr(1)),S=S.substr(0,S.length-C.length)),S&&(this.hostname=S)},a.parse=E,a.resolve=function(S,C){return E(S,!1,!0).resolve(C)},a.resolveObject=function(S,C){return S?E(S,!1,!0).resolveObject(C):C},a.format=function(S){return typeof S=="string"&&(S=E(S)),S instanceof s?S.format():s.prototype.format.call(S)},a.Url=s},4927:(f,a,i)=>{function t(s){try{if(!i.g.localStorage)return!1}catch{return!1}var o=i.g.localStorage[s];return o!=null&&String(o).toLowerCase()==="true"}f.exports=function(s,o){if(t("noDeprecation"))return s;var e=!1;return function(){if(!e){if(t("throwDeprecation"))throw new Error(o);t("traceDeprecation")?console.trace(o):console.warn(o),e=!0}return s.apply(this,arguments)}}},384:f=>{f.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},5955:(f,a,i)=>{var t=i(2584),s=i(8662),o=i(6430),e=i(5692);function c(A){return A.call.bind(A)}var u=typeof BigInt<"u",h=typeof Symbol<"u",b=c(Object.prototype.toString),p=c(Number.prototype.valueOf),k=c(String.prototype.valueOf),d=c(Boolean.prototype.valueOf);if(u)var w=c(BigInt.prototype.valueOf);if(h)var y=c(Symbol.prototype.valueOf);function _(A,O){if(typeof A!="object")return!1;try{return O(A),!0}catch{return!1}}function x(A){return b(A)==="[object Map]"}function E(A){return b(A)==="[object Set]"}function S(A){return b(A)==="[object WeakMap]"}function C(A){return b(A)==="[object WeakSet]"}function T(A){return b(A)==="[object ArrayBuffer]"}function R(A){return typeof ArrayBuffer<"u"&&(T.working?T(A):A instanceof ArrayBuffer)}function W(A){return b(A)==="[object DataView]"}function j(A){return typeof DataView<"u"&&(W.working?W(A):A instanceof DataView)}a.isArgumentsObject=t,a.isGeneratorFunction=s,a.isTypedArray=e,a.isPromise=function(A){return typeof Promise<"u"&&A instanceof Promise||A!==null&&typeof A=="object"&&typeof A.then=="function"&&typeof A.catch=="function"},a.isArrayBufferView=function(A){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(A):e(A)||j(A)},a.isUint8Array=function(A){return o(A)==="Uint8Array"},a.isUint8ClampedArray=function(A){return o(A)==="Uint8ClampedArray"},a.isUint16Array=function(A){return o(A)==="Uint16Array"},a.isUint32Array=function(A){return o(A)==="Uint32Array"},a.isInt8Array=function(A){return o(A)==="Int8Array"},a.isInt16Array=function(A){return o(A)==="Int16Array"},a.isInt32Array=function(A){return o(A)==="Int32Array"},a.isFloat32Array=function(A){return o(A)==="Float32Array"},a.isFloat64Array=function(A){return o(A)==="Float64Array"},a.isBigInt64Array=function(A){return o(A)==="BigInt64Array"},a.isBigUint64Array=function(A){return o(A)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),a.isMap=function(A){return typeof Map<"u"&&(x.working?x(A):A instanceof Map)},E.working=typeof Set<"u"&&E(new Set),a.isSet=function(A){return typeof Set<"u"&&(E.working?E(A):A instanceof Set)},S.working=typeof WeakMap<"u"&&S(new WeakMap),a.isWeakMap=function(A){return typeof WeakMap<"u"&&(S.working?S(A):A instanceof WeakMap)},C.working=typeof WeakSet<"u"&&C(new WeakSet),a.isWeakSet=function(A){return C(A)},T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer),a.isArrayBuffer=R,W.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&W(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=j;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Q(A){return b(A)==="[object SharedArrayBuffer]"}function U(A){return L!==void 0&&(Q.working===void 0&&(Q.working=Q(new L)),Q.working?Q(A):A instanceof L)}function Z(A){return _(A,p)}function se(A){return _(A,k)}function te(A){return _(A,d)}function $(A){return u&&_(A,w)}function P(A){return h&&_(A,y)}a.isSharedArrayBuffer=U,a.isAsyncFunction=function(A){return b(A)==="[object AsyncFunction]"},a.isMapIterator=function(A){return b(A)==="[object Map Iterator]"},a.isSetIterator=function(A){return b(A)==="[object Set Iterator]"},a.isGeneratorObject=function(A){return b(A)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(A){return b(A)==="[object WebAssembly.Module]"},a.isNumberObject=Z,a.isStringObject=se,a.isBooleanObject=te,a.isBigIntObject=$,a.isSymbolObject=P,a.isBoxedPrimitive=function(A){return Z(A)||se(A)||te(A)||$(A)||P(A)},a.isAnyArrayBuffer=function(A){return typeof Uint8Array<"u"&&(R(A)||U(A))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(A){Object.defineProperty(a,A,{enumerable:!1,value:function(){throw new Error(A+" is not supported in userland")}})})},9539:(f,a,i)=>{var t=Object.getOwnPropertyDescriptors||function($){for(var P=Object.keys($),A={},O=0;O=z)return X;switch(X){case"%s":return String(O[A++]);case"%d":return Number(O[A++]);case"%j":try{return JSON.stringify(O[A++])}catch{return"[Circular]"}default:return X}}),re=O[A];A"u")return function(){return a.deprecate($,P).apply(this,arguments)};var A=!1;return function(){if(!A){if(process.throwDeprecation)throw new Error(P);process.traceDeprecation?console.trace(P):console.error(P),A=!0}return $.apply(this,arguments)}};var o={},e=/^$/;if({}.NODE_DEBUG){var c={}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),e=new RegExp("^"+c+"$","i")}function u($,P){var A={seen:[],stylize:b};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),y(P)?A.showHidden=P:P&&a._extend(A,P),S(A.showHidden)&&(A.showHidden=!1),S(A.depth)&&(A.depth=2),S(A.colors)&&(A.colors=!1),S(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=h),p(A,$,A.depth)}function h($,P){var A=u.styles[P];return A?"\x1B["+u.colors[A][0]+"m"+$+"\x1B["+u.colors[A][1]+"m":$}function b($,P){return $}function p($,P,A){if($.customInspect&&P&&j(P.inspect)&&P.inspect!==a.inspect&&(!P.constructor||P.constructor.prototype!==P)){var O=P.inspect(A,$);return E(O)||(O=p($,O,A)),O}var z=function(le,ge){if(S(ge))return le.stylize("undefined","undefined");if(E(ge)){var Ne="'"+JSON.stringify(ge).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return le.stylize(Ne,"string")}if(x(ge))return le.stylize(""+ge,"number");if(y(ge))return le.stylize(""+ge,"boolean");if(_(ge))return le.stylize("null","null")}($,P);if(z)return z;var G=Object.keys(P),re=function(le){var ge={};return le.forEach(function(Ne,Ue){ge[Ne]=!0}),ge}(G);if($.showHidden&&(G=Object.getOwnPropertyNames(P)),W(P)&&(G.indexOf("message")>=0||G.indexOf("description")>=0))return k(P);if(G.length===0){if(j(P)){var X=P.name?": "+P.name:"";return $.stylize("[Function"+X+"]","special")}if(C(P))return $.stylize(RegExp.prototype.toString.call(P),"regexp");if(R(P))return $.stylize(Date.prototype.toString.call(P),"date");if(W(P))return k(P)}var be,Be="",ve=!1,he=["{","}"];return w(P)&&(ve=!0,he=["[","]"]),j(P)&&(Be=" [Function"+(P.name?": "+P.name:"")+"]"),C(P)&&(Be=" "+RegExp.prototype.toString.call(P)),R(P)&&(Be=" "+Date.prototype.toUTCString.call(P)),W(P)&&(Be=" "+k(P)),G.length!==0||ve&&P.length!=0?A<0?C(P)?$.stylize(RegExp.prototype.toString.call(P),"regexp"):$.stylize("[Object]","special"):($.seen.push(P),be=ve?function(le,ge,Ne,Ue,Le){for(var De=[],Fe=0,Oe=ge.length;FeWn&&(Wn=ee,rr=[]),rr.push(D))}function wr(D,fe,Ee){var _e=or(Ee),Re=Eedt.description?1:0});Ie1?dt.slice(0,-1).join(", ")+" or "+dt[qe.length-1]:dt[0])+" but "+(Ie?'"'+function(pt){function xt(Lt){return Lt.charCodeAt(0).toString(16).toUpperCase()}return pt.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(Lt){return"\\x0"+xt(Lt)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(Lt){return"\\x"+xt(Lt)}).replace(/[\u0180-\u0FFF]/g,function(Lt){return"\\u0"+xt(Lt)}).replace(/[\u1080-\uFFFF]/g,function(Lt){return"\\u"+xt(Lt)})}(Ie)+'"':"end of input")+" found."}(fe,Re),fe,Re,Ee,_e.line,_e.column)}function cr(){var D,fe,Ee,_e=49*ee+0,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;for(D=ee,fe=[],Ee=Zn();Ee!==o;)fe.push(Ee),Ee=Zn();return fe!==o&&(Kt=D,fe=u()),D=fe,Ct[_e]={nextPos:ee,result:D},D}function Zn(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+1,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if(Ee=function(){var pt,xt=49*ee+2,Lt=Ct[xt];return Lt?(ee=Lt.nextPos,Lt.result):(pt=er(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn=49*ee+4,dn=Ct[cn];if(dn)return ee=dn.nextPos,dn.result;if(bt=ee,i.charCodeAt(ee)===91?(Xt=w,ee++):(Xt=o,At===0&&Ft(y)),Xt!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if((nn=Gn())!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o?(i.charCodeAt(ee)===93?(Yt=_,ee++):(Yt=o,At===0&&Ft(x)),Yt!==o?(Kt=bt,bt=Xt=E(nn)):(ee=bt,bt=h)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;return Ct[cn]={nextPos:ee,result:bt},bt}(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn,dn,Et=49*ee+5,yn=Ct[Et];if(yn)return ee=yn.nextPos,yn.result;if(bt=ee,i.charCodeAt(ee)===91?(Xt=w,ee++):(Xt=o,At===0&&Ft(y)),Xt!==o)if(i.charCodeAt(ee)===91?(sn=w,ee++):(sn=o,At===0&&Ft(y)),sn!==o){for(nn=[],rn=$t();rn!==o;)nn.push(rn),rn=$t();if(nn!==o)if((rn=Gn())!==o){for(Yt=[],cn=$t();cn!==o;)Yt.push(cn),cn=$t();Yt!==o?(i.charCodeAt(ee)===93?(cn=_,ee++):(cn=o,At===0&&Ft(x)),cn!==o?(i.charCodeAt(ee)===93?(dn=_,ee++):(dn=o,At===0&&Ft(x)),dn!==o?(Kt=bt,bt=Xt=S(rn)):(ee=bt,bt=h)):(ee=bt,bt=h)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;else ee=bt,bt=h;return Ct[Et]={nextPos:ee,result:bt},bt}(),pt===o&&(pt=function(){var bt,Xt,sn,nn,rn,Yt,cn=49*ee+9,dn=Ct[cn];if(dn)return ee=dn.nextPos,dn.result;if(bt=ee,Xt=In(),Xt!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if(i.charCodeAt(ee)===61?(nn=L,ee++):(nn=o,At===0&&Ft(Q)),nn!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o&&(Yt=Kn())!==o?(Kt=bt,bt=Xt=U(Xt,Yt)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;if(bt===o)if(bt=ee,(Xt=ir())!==o){for(sn=[],nn=$t();nn!==o;)sn.push(nn),nn=$t();if(sn!==o)if(i.charCodeAt(ee)===61?(nn=L,ee++):(nn=o,At===0&&Ft(Q)),nn!==o){for(rn=[],Yt=$t();Yt!==o;)rn.push(Yt),Yt=$t();rn!==o&&(Yt=Kn())!==o?(Kt=bt,bt=Xt=U(Xt,Yt)):(ee=bt,bt=h)}else ee=bt,bt=h;else ee=bt,bt=h}else ee=bt,bt=h;return Ct[cn]={nextPos:ee,result:bt},bt}()))),Ct[xt]={nextPos:ee,result:pt},pt)}(),Ee!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o){for(Re=[],qe=er();qe!==o;)Re.push(qe),qe=er();if(Re!==o){if(qe=[],(Ie=Ln())!==o)for(;Ie!==o;)qe.push(Ie),Ie=Ln();else qe=h;qe===o&&(qe=$n()),qe!==o?D=fe=[fe,Ee,_e,Re,qe]:(ee=D,D=h)}else ee=D,D=h}else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){if(D=ee,fe=[],(Ee=$t())!==o)for(;Ee!==o;)fe.push(Ee),Ee=$t();else fe=h;if(fe!==o){if(Ee=[],(_e=Ln())!==o)for(;_e!==o;)Ee.push(_e),_e=Ln();else Ee=h;Ee===o&&(Ee=$n()),Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)}else ee=D,D=h;D===o&&(D=Ln())}return Ct[gt]={nextPos:ee,result:D},D}function er(){var D,fe,Ee,_e,Re,qe,Ie=49*ee+3,gt=Ct[Ie];if(gt)return ee=gt.nextPos,gt.result;if(D=ee,i.charCodeAt(ee)===35?(fe=b,ee++):(fe=o,At===0&&Ft(m)),fe!==o){for(Ee=[],_e=ee,Re=ee,At++,(qe=Ln())===o&&(qe=$n()),At--,qe===o?Re=k:(ee=Re,Re=h),Re!==o?(i.length>ee?(qe=i.charAt(ee),ee++):(qe=o,At===0&&Ft(d)),qe!==o?_e=Re=[Re,qe]:(ee=_e,_e=h)):(ee=_e,_e=h);_e!==o;)Ee.push(_e),_e=ee,Re=ee,At++,(qe=Ln())===o&&(qe=$n()),At--,qe===o?Re=k:(ee=Re,Re=h),Re!==o?(i.length>ee?(qe=i.charAt(ee),ee++):(qe=o,At===0&&Ft(d)),qe!==o?_e=Re=[Re,qe]:(ee=_e,_e=h)):(ee=_e,_e=h);Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)}else ee=D,D=h;return Ct[Ie]={nextPos:ee,result:D},D}function Gn(){var D,fe,Ee,_e=49*ee+6,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=dr())!==o)for(;Ee!==o;)fe.push(Ee),Ee=dr();else fe=h;return fe!==o&&(Ee=fr())!==o?(Kt=D,D=fe=C(fe,Ee)):(ee=D,D=h),D===o&&(D=ee,(fe=fr())!==o&&(Kt=D,fe=T(fe)),D=fe),Ct[_e]={nextPos:ee,result:D},D}function fr(){var D,fe,Ee,_e,Re,qe=49*ee+7,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();_e!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=ir())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();_e!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}return Ct[qe]={nextPos:ee,result:D},D}function dr(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+8,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=ir())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o?(Kt=D,D=fe=R(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}return Ct[gt]={nextPos:ee,result:D},D}function In(){var D,fe,Ee,_e=49*ee+10,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=Te())!==o)for(;Ee!==o;)fe.push(Ee),Ee=Te();else fe=h;return fe!==o&&(Kt=D,fe=Z(fe)),D=fe,Ct[_e]={nextPos:ee,result:D},D}function ir(){var D,fe,Ee=49*ee+11,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,(fe=tr())!==o&&(Kt=D,fe=se(fe)),(D=fe)===o&&(D=ee,(fe=hr())!==o&&(Kt=D,fe=se(fe)),D=fe),Ct[Ee]={nextPos:ee,result:D},D)}function Kn(){var D,fe=49*ee+12,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(D=function(){var _e,Re=49*ee+13,qe=Ct[Re];return qe?(ee=qe.nextPos,qe.result):(_e=function(){var Ie,gt,dt,pt,xt,Lt=49*ee+14,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;if(Ie=ee,i.substr(ee,3)===te?(gt=te,ee+=3):(gt=o,At===0&&Ft($)),gt!==o)if((dt=Ln())===o&&(dt=P),dt!==o){for(pt=[],xt=Hn();xt!==o;)pt.push(xt),xt=Hn();pt!==o?(i.substr(ee,3)===te?(xt=te,ee+=3):(xt=o,At===0&&Ft($)),xt!==o?(Kt=Ie,Ie=gt=A(pt)):(ee=Ie,Ie=h)):(ee=Ie,Ie=h)}else ee=Ie,Ie=h;else ee=Ie,Ie=h;return Ct[Lt]={nextPos:ee,result:Ie},Ie}(),_e===o&&(_e=tr())===o&&(_e=function(){var Ie,gt,dt,pt,xt,Lt=49*ee+16,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;if(Ie=ee,i.substr(ee,3)===G?(gt=G,ee+=3):(gt=o,At===0&&Ft(re)),gt!==o)if((dt=Ln())===o&&(dt=P),dt!==o){for(pt=[],xt=gr();xt!==o;)pt.push(xt),xt=gr();pt!==o?(i.substr(ee,3)===G?(xt=G,ee+=3):(xt=o,At===0&&Ft(re)),xt!==o?(Kt=Ie,Ie=gt=A(pt)):(ee=Ie,Ie=h)):(ee=Ie,Ie=h)}else ee=Ie,Ie=h;else ee=Ie,Ie=h;return Ct[Lt]={nextPos:ee,result:Ie},Ie}(),_e===o&&(_e=hr())),Ct[Re]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt=49*ee+38,pt=Ct[dt];return pt?(ee=pt.nextPos,pt.result):(_e=ee,(Re=sr())!==o?(i.charCodeAt(ee)===84?(qe=nt,ee++):(qe=o,At===0&&Ft(at)),qe!==o?(Ie=function(){var xt,Lt,bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn=49*ee+36,Fn=Ct[yn];return Fn?(ee=Fn.nextPos,Fn.result):(xt=ee,Lt=ee,bt=pn(),bt!==o&&(Xt=pn())!==o?(i.charCodeAt(ee)===58?(sn=ze,ee++):(sn=o,At===0&&Ft(je)),sn!==o&&(nn=pn())!==o&&(rn=pn())!==o?(i.charCodeAt(ee)===58?(Yt=ze,ee++):(Yt=o,At===0&&Ft(je)),Yt!==o&&(cn=pn())!==o&&(dn=pn())!==o?((Et=On())===o&&(Et=P),Et!==o?Lt=bt=[bt,Xt,sn,nn,rn,Yt,cn,dn,Et]:(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h),Lt!==o&&(Kt=xt,Lt=ut(Lt)),xt=Lt,Ct[yn]={nextPos:ee,result:xt},xt)}(),Ie!==o?(i.charCodeAt(ee)===90?(gt=It,ee++):(gt=o,At===0&&Ft(Nt)),gt!==o?(Kt=_e,_e=Re=Rt(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o&&(_e=ee,(Re=sr())!==o?(i.charCodeAt(ee)===84?(qe=nt,ee++):(qe=o,At===0&&Ft(at)),qe!==o?(Ie=function(){var xt,Lt,bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn,Fn,Tn,hn,_n,ae,de=49*ee+37,Ae=Ct[de];return Ae?(ee=Ae.nextPos,Ae.result):(xt=ee,Lt=ee,bt=pn(),bt!==o&&(Xt=pn())!==o?(i.charCodeAt(ee)===58?(sn=ze,ee++):(sn=o,At===0&&Ft(je)),sn!==o&&(nn=pn())!==o&&(rn=pn())!==o?(i.charCodeAt(ee)===58?(Yt=ze,ee++):(Yt=o,At===0&&Ft(je)),Yt!==o&&(cn=pn())!==o&&(dn=pn())!==o?((Et=On())===o&&(Et=P),Et!==o?(i.charCodeAt(ee)===45?(yn=B,ee++):(yn=o,At===0&&Ft(H)),yn===o&&(i.charCodeAt(ee)===43?(yn=We,ee++):(yn=o,At===0&&Ft(ot))),yn!==o&&(Fn=pn())!==o&&(Tn=pn())!==o?(i.charCodeAt(ee)===58?(hn=ze,ee++):(hn=o,At===0&&Ft(je)),hn!==o&&(_n=pn())!==o&&(ae=pn())!==o?Lt=bt=[bt,Xt,sn,nn,rn,Yt,cn,dn,Et,yn,Fn,Tn,hn,_n,ae]:(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h)):(ee=Lt,Lt=h),Lt!==o&&(Kt=xt,Lt=ut(Lt)),xt=Lt,Ct[de]={nextPos:ee,result:xt},xt)}(),Ie!==o?(Kt=_e,_e=Re=Gt(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h)),Ct[dt]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt=49*ee+23,dt=Ct[gt];return dt?(ee=dt.nextPos,dt.result):(_e=ee,(Re=mr())===o&&(Re=Qn()),Re!==o?(i.charCodeAt(ee)===101?(qe=Ne,ee++):(qe=o,At===0&&Ft(Ue)),qe===o&&(i.charCodeAt(ee)===69?(qe=Le,ee++):(qe=o,At===0&&Ft(De))),qe!==o&&(Ie=Qn())!==o?(Kt=_e,_e=Re=Fe(Re,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o&&(_e=ee,(Re=mr())!==o&&(Kt=_e,Re=Oe(Re)),_e=Re),Ct[gt]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe=49*ee+25,Ie=Ct[qe];return Ie?(ee=Ie.nextPos,Ie.result):(_e=ee,(Re=Qn())!==o&&(Kt=_e,Re=J(Re)),_e=Re,Ct[qe]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe=49*ee+27,Ie=Ct[qe];return Ie?(ee=Ie.nextPos,Ie.result):(_e=ee,i.substr(ee,4)===ue?(Re=ue,ee+=4):(Re=o,At===0&&Ft(F)),Re!==o&&(Kt=_e,Re=N()),_e=Re,_e===o&&(_e=ee,i.substr(ee,5)===q?(Re=q,ee+=5):(Re=o,At===0&&Ft(I)),Re!==o&&(Kt=_e,Re=K()),_e=Re),Ct[qe]={nextPos:ee,result:_e},_e)}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt=49*ee+28,pt=Ct[dt];if(pt)return ee=pt.nextPos,pt.result;if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){for(qe=[],Ie=Pn();Ie!==o;)qe.push(Ie),Ie=Pn();qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=oe()):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h;if(_e===o&&(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o?((qe=yr())===o&&(qe=P),qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=ye(qe)):(ee=_e,_e=h)):(ee=_e,_e=h)):(ee=_e,_e=h),_e===o)){if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){if(qe=[],(Ie=zn())!==o)for(;Ie!==o;)qe.push(Ie),Ie=zn();else qe=h;qe!==o?(i.charCodeAt(ee)===93?(Ie=_,ee++):(Ie=o,At===0&&Ft(x)),Ie!==o?(Kt=_e,_e=Re=Pe(qe)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h;if(_e===o)if(_e=ee,i.charCodeAt(ee)===91?(Re=w,ee++):(Re=o,At===0&&Ft(y)),Re!==o){if(qe=[],(Ie=zn())!==o)for(;Ie!==o;)qe.push(Ie),Ie=zn();else qe=h;qe!==o&&(Ie=yr())!==o?(i.charCodeAt(ee)===93?(gt=_,ee++):(gt=o,At===0&&Ft(x)),gt!==o?(Kt=_e,_e=Re=rt(qe,Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h}return Ct[dt]={nextPos:ee,result:_e},_e}(),D===o&&(D=function(){var _e,Re,qe,Ie,gt,dt,pt=49*ee+32,xt=Ct[pt];if(xt)return ee=xt.nextPos,xt.result;if(_e=ee,i.charCodeAt(ee)===123?(Re=qt,ee++):(Re=o,At===0&&Ft(me)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();if(qe!==o){for(Ie=[],gt=Nn();gt!==o;)Ie.push(gt),gt=Nn();if(Ie!==o){for(gt=[],dt=$t();dt!==o;)gt.push(dt),dt=$t();gt!==o?(i.charCodeAt(ee)===125?(dt=we,ee++):(dt=o,At===0&&Ft(xe)),dt!==o?(Kt=_e,_e=Re=V(Ie)):(ee=_e,_e=h)):(ee=_e,_e=h)}else ee=_e,_e=h}else ee=_e,_e=h}else ee=_e,_e=h;return Ct[pt]={nextPos:ee,result:_e},_e}())))))),Ct[fe]={nextPos:ee,result:D},D)}function tr(){var D,fe,Ee,_e,Re=49*ee+15,qe=Ct[Re];if(qe)return ee=qe.nextPos,qe.result;if(D=ee,i.charCodeAt(ee)===34?(fe=O,ee++):(fe=o,At===0&&Ft(z)),fe!==o){for(Ee=[],_e=Xn();_e!==o;)Ee.push(_e),_e=Xn();Ee!==o?(i.charCodeAt(ee)===34?(_e=O,ee++):(_e=o,At===0&&Ft(z)),_e!==o?(Kt=D,D=fe=A(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[Re]={nextPos:ee,result:D},D}function hr(){var D,fe,Ee,_e,Re=49*ee+17,qe=Ct[Re];if(qe)return ee=qe.nextPos,qe.result;if(D=ee,i.charCodeAt(ee)===39?(fe=X,ee++):(fe=o,At===0&&Ft(be)),fe!==o){for(Ee=[],_e=pr();_e!==o;)Ee.push(_e),_e=pr();Ee!==o?(i.charCodeAt(ee)===39?(_e=X,ee++):(_e=o,At===0&&Ft(be)),_e!==o?(Kt=D,D=fe=A(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[Re]={nextPos:ee,result:D},D}function Xn(){var D,fe,Ee,_e=49*ee+18,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):((D=pe())===o&&(D=ee,fe=ee,At++,i.charCodeAt(ee)===34?(Ee=O,ee++):(Ee=o,At===0&&Ft(z)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h)),Ct[_e]={nextPos:ee,result:D},D)}function pr(){var D,fe,Ee,_e=49*ee+19,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,fe=ee,At++,i.charCodeAt(ee)===39?(Ee=X,ee++):(Ee=o,At===0&&Ft(be)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function Hn(){var D,fe,Ee,_e=49*ee+20,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):((D=pe())===o&&(D=function(){var qe,Ie,gt,dt,pt=49*ee+21,xt=Ct[pt];if(xt)return ee=xt.nextPos,xt.result;if(qe=ee,i.charCodeAt(ee)===92?(Ie=he,ee++):(Ie=o,At===0&&Ft(le)),Ie!==o)if(Ln()!==o){for(gt=[],dt=vr();dt!==o;)gt.push(dt),dt=vr();gt!==o?(Kt=qe,qe=Ie=ge()):(ee=qe,qe=h)}else ee=qe,qe=h;else ee=qe,qe=h;return Ct[pt]={nextPos:ee,result:qe},qe}(),D===o&&(D=ee,fe=ee,At++,i.substr(ee,3)===te?(Ee=te,ee+=3):(Ee=o,At===0&&Ft($)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=ve(Ee)):(ee=D,D=h)):(ee=D,D=h))),Ct[_e]={nextPos:ee,result:D},D)}function gr(){var D,fe,Ee,_e=49*ee+22,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,fe=ee,At++,i.substr(ee,3)===G?(Ee=G,ee+=3):(Ee=o,At===0&&Ft(re)),At--,Ee===o?fe=k:(ee=fe,fe=h),fe!==o?(i.length>ee?(Ee=i.charAt(ee),ee++):(Ee=o,At===0&&Ft(d)),Ee!==o?(Kt=D,D=fe=Be(Ee)):(ee=D,D=h)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function mr(){var D,fe,Ee,_e,Re,qe,Ie=49*ee+24,gt=Ct[Ie];return gt?(ee=gt.nextPos,gt.result):(D=ee,i.charCodeAt(ee)===43?(fe=We,ee++):(fe=o,At===0&&Ft(ot)),fe===o&&(fe=P),fe!==o?(Ee=ee,(_e=ie())!==o?(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o&&(qe=ie())!==o?Ee=_e=[_e,Re,qe]:(ee=Ee,Ee=h)):(ee=Ee,Ee=h),Ee!==o?(Kt=D,D=fe=Ke(Ee)):(ee=D,D=h)):(ee=D,D=h),D===o&&(D=ee,i.charCodeAt(ee)===45?(fe=B,ee++):(fe=o,At===0&&Ft(H)),fe!==o?(Ee=ee,(_e=ie())!==o?(i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),Re!==o&&(qe=ie())!==o?Ee=_e=[_e,Re,qe]:(ee=Ee,Ee=h)):(ee=Ee,Ee=h),Ee!==o?(Kt=D,D=fe=M(Ee)):(ee=D,D=h)):(ee=D,D=h)),Ct[Ie]={nextPos:ee,result:D},D)}function Qn(){var D,fe,Ee,_e,Re,qe=49*ee+26,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;if(D=ee,i.charCodeAt(ee)===43?(fe=We,ee++):(fe=o,At===0&&Ft(ot)),fe===o&&(fe=P),fe!==o){if(Ee=[],(_e=pn())!==o)for(;_e!==o;)Ee.push(_e),_e=pn();else Ee=h;Ee!==o?(_e=ee,At++,i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),At--,Re===o?_e=k:(ee=_e,_e=h),_e!==o?(Kt=D,D=fe=Ke(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;if(D===o)if(D=ee,i.charCodeAt(ee)===45?(fe=B,ee++):(fe=o,At===0&&Ft(H)),fe!==o){if(Ee=[],(_e=pn())!==o)for(;_e!==o;)Ee.push(_e),_e=pn();else Ee=h;Ee!==o?(_e=ee,At++,i.charCodeAt(ee)===46?(Re=W,ee++):(Re=o,At===0&&Ft(j)),At--,Re===o?_e=k:(ee=_e,_e=h),_e!==o?(Kt=D,D=fe=M(Ee)):(ee=D,D=h)):(ee=D,D=h)}else ee=D,D=h;return Ct[qe]={nextPos:ee,result:D},D}function yr(){var D,fe,Ee,_e,Re,qe=49*ee+29,Ie=Ct[qe];if(Ie)return ee=Ie.nextPos,Ie.result;for(D=ee,fe=[],Ee=Pn();Ee!==o;)fe.push(Ee),Ee=Pn();if(fe!==o)if((Ee=Kn())!==o){for(_e=[],Re=Pn();Re!==o;)_e.push(Re),Re=Pn();_e!==o?(Kt=D,D=fe=lt(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h;return Ct[qe]={nextPos:ee,result:D},D}function zn(){var D,fe,Ee,_e,Re,qe,Ie,gt=49*ee+30,dt=Ct[gt];if(dt)return ee=dt.nextPos,dt.result;for(D=ee,fe=[],Ee=Pn();Ee!==o;)fe.push(Ee),Ee=Pn();if(fe!==o)if((Ee=Kn())!==o){for(_e=[],Re=Pn();Re!==o;)_e.push(Re),Re=Pn();if(_e!==o)if(i.charCodeAt(ee)===44?(Re=vt,ee++):(Re=o,At===0&&Ft(_t)),Re!==o){for(qe=[],Ie=Pn();Ie!==o;)qe.push(Ie),Ie=Pn();qe!==o?(Kt=D,D=fe=lt(Ee)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;return Ct[gt]={nextPos:ee,result:D},D}function Pn(){var D,fe=49*ee+31,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):((D=$t())===o&&(D=Ln())===o&&(D=er()),Ct[fe]={nextPos:ee,result:D},D)}function Nn(){var D,fe,Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt=49*ee+33,bt=Ct[Lt];if(bt)return ee=bt.nextPos,bt.result;for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===61?(Re=L,ee++):(Re=o,At===0&&Ft(Q)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();if(qe!==o)if((Ie=Kn())!==o){for(gt=[],dt=$t();dt!==o;)gt.push(dt),dt=$t();if(gt!==o)if(i.charCodeAt(ee)===44?(dt=vt,ee++):(dt=o,At===0&&Ft(_t)),dt!==o){for(pt=[],xt=$t();xt!==o;)pt.push(xt),xt=$t();pt!==o?(Kt=D,D=fe=Y(Ee,Ie)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h;if(D===o){for(D=ee,fe=[],Ee=$t();Ee!==o;)fe.push(Ee),Ee=$t();if(fe!==o)if((Ee=In())!==o){for(_e=[],Re=$t();Re!==o;)_e.push(Re),Re=$t();if(_e!==o)if(i.charCodeAt(ee)===61?(Re=L,ee++):(Re=o,At===0&&Ft(Q)),Re!==o){for(qe=[],Ie=$t();Ie!==o;)qe.push(Ie),Ie=$t();qe!==o&&(Ie=Kn())!==o?(Kt=D,D=fe=Y(Ee,Ie)):(ee=D,D=h)}else ee=D,D=h;else ee=D,D=h}else ee=D,D=h;else ee=D,D=h}return Ct[Lt]={nextPos:ee,result:D},D}function On(){var D,fe,Ee,_e=49*ee+34,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(D=ee,i.charCodeAt(ee)===46?(fe=W,ee++):(fe=o,At===0&&Ft(j)),fe!==o&&(Ee=ie())!==o?(Kt=D,D=fe=ke(Ee)):(ee=D,D=h),Ct[_e]={nextPos:ee,result:D},D)}function sr(){var D,fe,Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt,bt=49*ee+35,Xt=Ct[bt];return Xt?(ee=Xt.nextPos,Xt.result):(D=ee,fe=ee,(Ee=pn())!==o&&(_e=pn())!==o&&(Re=pn())!==o&&(qe=pn())!==o?(i.charCodeAt(ee)===45?(Ie=B,ee++):(Ie=o,At===0&&Ft(H)),Ie!==o&&(gt=pn())!==o&&(dt=pn())!==o?(i.charCodeAt(ee)===45?(pt=B,ee++):(pt=o,At===0&&Ft(H)),pt!==o&&(xt=pn())!==o&&(Lt=pn())!==o?fe=Ee=[Ee,_e,Re,qe,Ie,gt,dt,pt,xt,Lt]:(ee=fe,fe=h)):(ee=fe,fe=h)):(ee=fe,fe=h),fe!==o&&(Kt=D,fe=$e(fe)),D=fe,Ct[bt]={nextPos:ee,result:D},D)}function $t(){var D,fe=49*ee+39,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(Jt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(Ht)),Ct[fe]={nextPos:ee,result:D},D)}function Ln(){var D,fe,Ee,_e=49*ee+40,Re=Ct[_e];return Re?(ee=Re.nextPos,Re.result):(i.charCodeAt(ee)===10?(D=Zt,ee++):(D=o,At===0&&Ft(Vt)),D===o&&(D=ee,i.charCodeAt(ee)===13?(fe=Ut,ee++):(fe=o,At===0&&Ft(Qt)),fe!==o?(i.charCodeAt(ee)===10?(Ee=Zt,ee++):(Ee=o,At===0&&Ft(Vt)),Ee!==o?D=fe=[fe,Ee]:(ee=D,D=h)):(ee=D,D=h)),Ct[_e]={nextPos:ee,result:D},D)}function vr(){var D,fe=49*ee+41,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):((D=Ln())===o&&(D=$t()),Ct[fe]={nextPos:ee,result:D},D)}function $n(){var D,fe,Ee=49*ee+42,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,At++,i.length>ee?(fe=i.charAt(ee),ee++):(fe=o,At===0&&Ft(d)),At--,fe===o?D=k:(ee=D,D=h),Ct[Ee]={nextPos:ee,result:D},D)}function Dn(){var D,fe=49*ee+43,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(en.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(Wt)),Ct[fe]={nextPos:ee,result:D},D)}function pn(){var D,fe,Ee=49*ee+44,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(mt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(St)),D===o&&(D=ee,i.charCodeAt(ee)===95?(fe=Bt,ee++):(fe=o,At===0&&Ft(Tt)),fe!==o&&(Kt=D,fe=Ot()),D=fe),Ct[Ee]={nextPos:ee,result:D},D)}function Te(){var D,fe=49*ee+45,Ee=Ct[fe];return Ee?(ee=Ee.nextPos,Ee.result):(kt.test(i.charAt(ee))?(D=i.charAt(ee),ee++):(D=o,At===0&&Ft(ln)),Ct[fe]={nextPos:ee,result:D},D)}function ie(){var D,fe,Ee,_e=49*ee+46,Re=Ct[_e];if(Re)return ee=Re.nextPos,Re.result;if(D=ee,fe=[],(Ee=pn())!==o)for(;Ee!==o;)fe.push(Ee),Ee=pn();else fe=h;return fe!==o&&(Kt=D,fe=ce(fe)),D=fe,Ct[_e]={nextPos:ee,result:D},D}function pe(){var D,fe,Ee=49*ee+47,_e=Ct[Ee];return _e?(ee=_e.nextPos,_e.result):(D=ee,i.substr(ee,2)===Ce?(fe=Ce,ee+=2):(fe=o,At===0&&Ft(Ve)),fe!==o&&(Kt=D,fe=Qe()),(D=fe)===o&&(D=ee,i.substr(ee,2)===Je?(fe=Je,ee+=2):(fe=o,At===0&&Ft(Ye)),fe!==o&&(Kt=D,fe=Ze()),(D=fe)===o&&(D=ee,i.substr(ee,2)===yt?(fe=yt,ee+=2):(fe=o,At===0&&Ft(wt)),fe!==o&&(Kt=D,fe=ht()),(D=fe)===o&&(D=ee,i.substr(ee,2)===ct?(fe=ct,ee+=2):(fe=o,At===0&&Ft(Mt)),fe!==o&&(Kt=D,fe=jt()),(D=fe)===o&&(D=ee,i.substr(ee,2)===zt?(fe=zt,ee+=2):(fe=o,At===0&&Ft(Dt)),fe!==o&&(Kt=D,fe=tn()),(D=fe)===o&&(D=ee,i.substr(ee,2)===an?(fe=an,ee+=2):(fe=o,At===0&&Ft(fn)),fe!==o&&(Kt=D,fe=wn()),(D=fe)===o&&(D=ee,i.substr(ee,2)===bn?(fe=bn,ee+=2):(fe=o,At===0&&Ft(En)),fe!==o&&(Kt=D,fe=qn()),(D=fe)===o&&(D=function(){var Re,qe,Ie,gt,dt,pt,xt,Lt,bt,Xt,sn,nn=49*ee+48,rn=Ct[nn];return rn?(ee=rn.nextPos,rn.result):(Re=ee,i.substr(ee,2)===lr?(qe=lr,ee+=2):(qe=o,At===0&&Ft(_r)),qe!==o?(Ie=ee,(gt=Dn())!==o&&(dt=Dn())!==o&&(pt=Dn())!==o&&(xt=Dn())!==o&&(Lt=Dn())!==o&&(bt=Dn())!==o&&(Xt=Dn())!==o&&(sn=Dn())!==o?Ie=gt=[gt,dt,pt,xt,Lt,bt,Xt,sn]:(ee=Ie,Ie=h),Ie!==o?(Kt=Re,Re=qe=Yn(Ie)):(ee=Re,Re=h)):(ee=Re,Re=h),Re===o&&(Re=ee,i.substr(ee,2)===ur?(qe=ur,ee+=2):(qe=o,At===0&&Ft(Jn)),qe!==o?(Ie=ee,(gt=Dn())!==o&&(dt=Dn())!==o&&(pt=Dn())!==o&&(xt=Dn())!==o?Ie=gt=[gt,dt,pt,xt]:(ee=Ie,Ie=h),Ie!==o?(Kt=Re,Re=qe=Yn(Ie)):(ee=Re,Re=h)):(ee=Re,Re=h)),Ct[nn]={nextPos:ee,result:Re},Re)}()))))))),Ct[Ee]={nextPos:ee,result:D},D)}var Se=[];function He(D){Se.push(D)}function ne(D,fe,Ee,_e,Re){var qe={type:D,value:fe,line:Ee(),column:_e()};return Re&&(qe.key=Re),qe}if((t=c())!==o&&ee===i.length)return t;throw t!==o&&ee1;w++)h.splice(0,1);b[d]=h.join("")}var y=-1,_=0,x=0,E=-1,S=!1;for(d=0;d_&&(y=E,_=x)):b[d]==="0"&&(S=!0,E=d,x=1);x>_&&(y=E,_=x),_>1&&b.splice(y,_,""),m=b.length;var C="";for(b[0]===""&&(C=":"),d=0;d=u.length-1)return!1;var b=u.lastIndexOf(".",h-1);if(b<=0||b>=h-1)return!1;var m=c.list[u.slice(h+1)];return!!m&&m.indexOf(" "+u.slice(b+1,h)+" ")>=0},is:function(u){var h=u.lastIndexOf(".");if(h<=0||h>=u.length-1||u.lastIndexOf(".",h-1)>=0)return!1;var b=c.list[u.slice(h+1)];return!!b&&b.indexOf(" "+u.slice(0,h)+" ")>=0},get:function(u){var h=u.lastIndexOf(".");if(h<=0||h>=u.length-1)return null;var b=u.lastIndexOf(".",h-1);if(b<=0||b>=h-1)return null;var m=c.list[u.slice(h+1)];return m?m.indexOf(" "+u.slice(b+1,h)+" ")<0?null:u.slice(b+1):null},noConflict:function(){return o.SecondLevelDomains===this&&(o.SecondLevelDomains=e),this}};return c})},4998:function(f,a,i){var t,s,o;(function(e,c){f.exports?f.exports=c(i(3132),i(2251),i(8640)):(s=[i(3132),i(2251),i(8640)],(o=typeof(t=c)=="function"?t.apply(a,s):t)===void 0||(f.exports=o))})(0,function(e,c,u,h){var b=h&&h.URI;function m(A,O){var z=arguments.length>=1;if(!(this instanceof m))return z?arguments.length>=2?new m(A,O):new m(A):new m;if(A===void 0){if(z)throw new TypeError("undefined is not a valid argument for URI");A=typeof location<"u"?location.href+"":""}if(A===null&&z)throw new TypeError("null is not a valid argument for URI");return this.href(A),O!==void 0?this.absoluteTo(O):this}m.version="1.19.11";var k=m.prototype,d=Object.prototype.hasOwnProperty;function w(A){return A.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(A){return A===void 0?"Undefined":String(Object.prototype.toString.call(A)).slice(8,-1)}function _(A){return y(A)==="Array"}function x(A,O){var z,G,re={};if(y(O)==="RegExp")re=null;else if(_(O))for(z=0,G=O.length;z]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,m.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},m.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,m.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,m.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},m.hostProtocols=["http","https"],m.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,m.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},m.getDomAttribute=function(A){if(A&&A.nodeName){var O=A.nodeName.toLowerCase();if(O!=="input"||A.type==="image")return m.domAttributes[O]}},m.encode=R,m.decode=decodeURIComponent,m.iso8859=function(){m.encode=escape,m.decode=unescape},m.unicode=function(){m.encode=R,m.decode=decodeURIComponent},m.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},m.encodeQuery=function(A,O){var z=m.encode(A+"");return O===void 0&&(O=m.escapeQuerySpace),O?z.replace(/%20/g,"+"):z},m.decodeQuery=function(A,O){A+="",O===void 0&&(O=m.escapeQuerySpace);try{return m.decode(O?A.replace(/\+/g,"%20"):A)}catch{return A}};var W,j={encode:"encode",decode:"decode"},L=function(A,O){return function(z){try{return m[O](z+"").replace(m.characters[A][O].expression,function(G){return m.characters[A][O].map[G]})}catch{return z}}};for(W in j)m[W+"PathSegment"]=L("pathname",j[W]),m[W+"UrnPathSegment"]=L("urnpath",j[W]);var Q=function(A,O,z){return function(G){var re;re=z?function(ve){return m[O](m[z](ve))}:m[O];for(var X=(G+"").split(A),be=0,Be=X.length;be-1&&(O.fragment=A.substring(z+1)||null,A=A.substring(0,z)),(z=A.indexOf("?"))>-1&&(O.query=A.substring(z+1)||null,A=A.substring(0,z)),(A=(A=A.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)==="//"?(O.protocol=null,A=A.substring(2),A=m.parseAuthority(A,O)):(z=A.indexOf(":"))>-1&&(O.protocol=A.substring(0,z)||null,O.protocol&&!O.protocol.match(m.protocol_expression)?O.protocol=void 0:A.substring(z+1,z+3).replace(/\\/g,"/")==="//"?(A=A.substring(z+3),A=m.parseAuthority(A,O)):(A=A.substring(z+1),O.urn=!0)),O.path=A,O},m.parseHost=function(A,O){A||(A="");var z,G,re=(A=A.replace(/\\/g,"/")).indexOf("/");if(re===-1&&(re=A.length),A.charAt(0)==="[")z=A.indexOf("]"),O.hostname=A.substring(1,z)||null,O.port=A.substring(z+2,re)||null,O.port==="/"&&(O.port=null);else{var X=A.indexOf(":"),be=A.indexOf("/"),Be=A.indexOf(":",X+1);Be!==-1&&(be===-1||Be-1?re:A.length-1);return X>-1&&(re===-1||X-1?Ne.slice(0,Ue)+Ne.slice(Ue).replace(X,""):Ne.replace(X,"")).length<=ve[0].length||z.ignore&&z.ignore.test(Ne))){var Fe=O(Ne,he,ge=he+Ne.length,A);Fe!==void 0?(Fe=String(Fe),A=A.slice(0,he)+Fe+A.slice(ge),G.lastIndex=he+Fe.length):G.lastIndex=ge}}return G.lastIndex=0,A},m.ensureValidHostname=function(A,O){var z=!!A,G=!1;if(O&&(G=E(m.hostProtocols,O)),G&&!z)throw new TypeError("Hostname cannot be empty, if protocol is "+O);if(A&&A.match(m.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(A).match(m.invalid_hostname_characters))throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-:_]')}},m.ensureValidPort=function(A){if(A){var O=Number(A);if(!(/^[0-9]+$/.test(O)&&O>0&&O<65536))throw new TypeError('Port "'+A+'" is not a valid port')}},m.noConflict=function(A){if(A){var O={URI:this.noConflict()};return h.URITemplate&&typeof h.URITemplate.noConflict=="function"&&(O.URITemplate=h.URITemplate.noConflict()),h.IPv6&&typeof h.IPv6.noConflict=="function"&&(O.IPv6=h.IPv6.noConflict()),h.SecondLevelDomains&&typeof h.SecondLevelDomains.noConflict=="function"&&(O.SecondLevelDomains=h.SecondLevelDomains.noConflict()),O}return h.URI===this&&(h.URI=b),this},k.build=function(A){return A===!0?this._deferred_build=!0:(A===void 0||this._deferred_build)&&(this._string=m.build(this._parts),this._deferred_build=!1),this},k.clone=function(){return new m(this)},k.valueOf=k.toString=function(){return this.build(!1)._string},k.protocol=U("protocol"),k.username=U("username"),k.password=U("password"),k.hostname=U("hostname"),k.port=U("port"),k.query=Z("query","?"),k.fragment=Z("fragment","#"),k.search=function(A,O){var z=this.query(A,O);return typeof z=="string"&&z.length?"?"+z:z},k.hash=function(A,O){var z=this.fragment(A,O);return typeof z=="string"&&z.length?"#"+z:z},k.pathname=function(A,O){if(A===void 0||A===!0){var z=this._parts.path||(this._parts.hostname?"/":"");return A?(this._parts.urn?m.decodeUrnPath:m.decodePath)(z):z}return this._parts.urn?this._parts.path=A?m.recodeUrnPath(A):"":this._parts.path=A?m.recodePath(A):"/",this.build(!O),this},k.path=k.pathname,k.href=function(A,O){var z;if(A===void 0)return this.toString();this._string="",this._parts=m._parts();var G=A instanceof m,re=typeof A=="object"&&(A.hostname||A.path||A.pathname);if(A.nodeName&&(A=A[m.getDomAttribute(A)]||"",re=!1),!G&&re&&A.pathname!==void 0&&(A=A.toString()),typeof A=="string"||A instanceof String)this._parts=m.parse(String(A),this._parts);else{if(!G&&!re)throw new TypeError("invalid input");var X=G?A._parts:A;for(z in X)z!=="query"&&d.call(this._parts,z)&&(this._parts[z]=X[z]);X.query&&this.query(X.query,!1)}return this.build(!O),this},k.is=function(A){var O=!1,z=!1,G=!1,re=!1,X=!1,be=!1,Be=!1,ve=!this._parts.urn;switch(this._parts.hostname&&(ve=!1,z=m.ip4_expression.test(this._parts.hostname),G=m.ip6_expression.test(this._parts.hostname),X=(re=!(O=z||G))&&u&&u.has(this._parts.hostname),be=re&&m.idn_expression.test(this._parts.hostname),Be=re&&m.punycode_expression.test(this._parts.hostname)),A.toLowerCase()){case"relative":return ve;case"absolute":return!ve;case"domain":case"name":return re;case"sld":return X;case"ip":return O;case"ip4":case"ipv4":case"inet4":return z;case"ip6":case"ipv6":case"inet6":return G;case"idn":return be;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return Be}return null};var se=k.protocol,te=k.port,$=k.hostname;k.protocol=function(A,O){if(A&&!(A=A.replace(/:(\/\/)?$/,"")).match(m.protocol_expression))throw new TypeError('Protocol "'+A+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return se.call(this,A,O)},k.scheme=k.protocol,k.port=function(A,O){return this._parts.urn?A===void 0?"":this:(A!==void 0&&(A===0&&(A=null),A&&((A+="").charAt(0)===":"&&(A=A.substring(1)),m.ensureValidPort(A))),te.call(this,A,O))},k.hostname=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A!==void 0){var z={preventInvalidHostname:this._parts.preventInvalidHostname};if(m.parseHost(A,z)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');A=z.hostname,this._parts.preventInvalidHostname&&m.ensureValidHostname(A,this._parts.protocol)}return $.call(this,A,O)},k.origin=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){var z=this.protocol();return this.authority()?(z?z+"://":"")+this.authority():""}var G=m(A);return this.protocol(G.protocol()).authority(G.authority()).build(!O),this},k.host=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0)return this._parts.hostname?m.buildHost(this._parts):"";if(m.parseHost(A,this._parts)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},k.authority=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0)return this._parts.hostname?m.buildAuthority(this._parts):"";if(m.parseAuthority(A,this._parts)!=="/")throw new TypeError('Hostname "'+A+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},k.userinfo=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){var z=m.buildUserinfo(this._parts);return z&&z.substring(0,z.length-1)}return A[A.length-1]!=="@"&&(A+="@"),m.parseUserinfo(A,this._parts),this.build(!O),this},k.resource=function(A,O){var z;return A===void 0?this.path()+this.search()+this.hash():(z=m.parse(A),this._parts.path=z.path,this._parts.query=z.query,this._parts.fragment=z.fragment,this.build(!O),this)},k.subdomain=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,z)||""}var G=this._parts.hostname.length-this.domain().length,re=this._parts.hostname.substring(0,G),X=new RegExp("^"+w(re));if(A&&A.charAt(A.length-1)!=="."&&(A+="."),A.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return A&&m.ensureValidHostname(A,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(X,A),this.build(!O),this},k.domain=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A=="boolean"&&(O=A,A=void 0),A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.match(/\./g);if(z&&z.length<2)return this._parts.hostname;var G=this._parts.hostname.length-this.tld(O).length-1;return G=this._parts.hostname.lastIndexOf(".",G-1)+1,this._parts.hostname.substring(G)||""}if(!A)throw new TypeError("cannot set domain empty");if(A.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(m.ensureValidHostname(A,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=A;else{var re=new RegExp(w(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(re,A)}return this.build(!O),this},k.tld=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A=="boolean"&&(O=A,A=void 0),A===void 0){if(!this._parts.hostname||this.is("IP"))return"";var z=this._parts.hostname.lastIndexOf("."),G=this._parts.hostname.substring(z+1);return O!==!0&&u&&u.list[G.toLowerCase()]&&u.get(this._parts.hostname)||G}var re;if(!A)throw new TypeError("cannot set TLD empty");if(A.match(/[^a-zA-Z0-9-]/)){if(!u||!u.is(A))throw new TypeError('TLD "'+A+'" contains characters other than [A-Z0-9]');re=new RegExp(w(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(re,A)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");re=new RegExp(w(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(re,A)}return this.build(!O),this},k.directory=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0||A===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var z=this._parts.path.length-this.filename().length-1,G=this._parts.path.substring(0,z)||(this._parts.hostname?"/":"");return A?m.decodePath(G):G}var re=this._parts.path.length-this.filename().length,X=this._parts.path.substring(0,re),be=new RegExp("^"+w(X));return this.is("relative")||(A||(A="/"),A.charAt(0)!=="/"&&(A="/"+A)),A&&A.charAt(A.length-1)!=="/"&&(A+="/"),A=m.recodePath(A),this._parts.path=this._parts.path.replace(be,A),this.build(!O),this},k.filename=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(typeof A!="string"){if(!this._parts.path||this._parts.path==="/")return"";var z=this._parts.path.lastIndexOf("/"),G=this._parts.path.substring(z+1);return A?m.decodePathSegment(G):G}var re=!1;A.charAt(0)==="/"&&(A=A.substring(1)),A.match(/\.?\//)&&(re=!0);var X=new RegExp(w(this.filename())+"$");return A=m.recodePath(A),this._parts.path=this._parts.path.replace(X,A),re?this.normalizePath(O):this.build(!O),this},k.suffix=function(A,O){if(this._parts.urn)return A===void 0?"":this;if(A===void 0||A===!0){if(!this._parts.path||this._parts.path==="/")return"";var z,G,re=this.filename(),X=re.lastIndexOf(".");return X===-1?"":(z=re.substring(X+1),G=/^[a-z0-9%]+$/i.test(z)?z:"",A?m.decodePathSegment(G):G)}A.charAt(0)==="."&&(A=A.substring(1));var be,Be=this.suffix();if(Be)be=A?new RegExp(w(Be)+"$"):new RegExp(w("."+Be)+"$");else{if(!A)return this;this._parts.path+="."+m.recodePath(A)}return be&&(A=m.recodePath(A),this._parts.path=this._parts.path.replace(be,A)),this.build(!O),this},k.segment=function(A,O,z){var G=this._parts.urn?":":"/",re=this.path(),X=re.substring(0,1)==="/",be=re.split(G);if(A!==void 0&&typeof A!="number"&&(z=O,O=A,A=void 0),A!==void 0&&typeof A!="number")throw new Error('Bad segment "'+A+'", must be 0-based integer');if(X&&be.shift(),A<0&&(A=Math.max(be.length+A,0)),O===void 0)return A===void 0?be:be[A];if(A===null||be[A]===void 0)if(_(O)){be=[];for(var Be=0,ve=O.length;Be{}"`^| \\]/,b.expand=function(w,y,_){var x,E,S,C=d[w.operator],T=C.named?"Named":"Unnamed",R=w.variables,W=[];for(S=0;E=R[S];S++){if((x=y.get(E.name)).type===0&&_&&_.strict)throw new Error('Missing expansion value for variable "'+E.name+'"');if(x.val.length){if(x.type>1&&E.maxlength)throw new Error('Invalid expression: Prefix modifier not applicable to variable "'+E.name+'"');W.push(b["expand"+T](x,C,E.explode,E.explode&&C.separator||",",E.maxlength,E.name))}else x.type&&W.push("")}return W.length?C.prefix+W.join(C.separator):""},b.expandNamed=function(w,y,_,x,E,S){var C,T,R,W="",j=y.encode,L=y.empty_name_separator,Q=!w[j].length,U=w.type===2?"":e[j](S);for(T=0,R=w.val.length;T= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=u-h,T=Math.floor,R=String.fromCharCode;function W(P){throw new RangeError(S[P])}function j(P,A){for(var O=P.length,z=[];O--;)z[O]=A(P[O]);return z}function L(P,A){var O=P.split("@"),z="";return O.length>1&&(z=O[0]+"@",P=O[1]),z+j((P=P.replace(E,".")).split("."),A).join(".")}function Q(P){for(var A,O,z=[],G=0,re=P.length;G=55296&&A<=56319&&G65535&&(O+=R((A-=65536)>>>10&1023|55296),A=56320|1023&A),O+=R(A)}).join("")}function Z(P,A){return P+22+75*(P<26)-((A!=0)<<5)}function se(P,A,O){var z=0;for(P=O?T(P/k):P>>1,P+=T(P/A);P>C*b>>1;z+=u)P=T(P/C);return T(z+(C+1)*P/(P+m))}function te(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge=[],Ne=P.length,Ue=0,Le=w,De=d;for((O=P.lastIndexOf(y))<0&&(O=0),z=0;z=128&&W("not-basic"),ge.push(P.charCodeAt(z));for(G=O>0?O+1:0;G=Ne&&W("invalid-input"),((Be=(le=P.charCodeAt(G++))-48<10?le-22:le-65<26?le-65:le-97<26?le-97:u)>=u||Be>T((c-Ue)/X))&&W("overflow"),Ue+=Be*X,!(Be<(ve=be<=De?h:be>=De+b?b:be-De));be+=u)X>T(c/(he=u-ve))&&W("overflow"),X*=he;De=se(Ue-re,A=ge.length+1,re==0),T(Ue/A)>c-Le&&W("overflow"),Le+=T(Ue/A),Ue%=A,ge.splice(Ue++,0,Le)}return U(ge)}function $(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge,Ne,Ue,Le,De=[];for(ge=(P=Q(P)).length,A=w,O=0,re=d,X=0;X=A&&leT((c-O)/(Ne=z+1))&&W("overflow"),O+=(be-A)*Ne,A=be,X=0;Xc&&W("overflow"),le==A){for(Be=O,ve=u;!(Be<(he=ve<=re?h:ve>=re+b?b:ve-re));ve+=u)Le=Be-he,Ue=u-he,De.push(R(Z(he+Le%Ue,0))),Be=T(Le/Ue);De.push(R(Z(Be,0))),re=se(O,Ne,z==G),O=0,++z}++O,++A}return De.join("")}e={version:"1.3.2",ucs2:{decode:Q,encode:U},decode:te,encode:$,toASCII:function(P){return L(P,function(A){return x.test(A)?"xn--"+$(A):A})},toUnicode:function(P){return L(P,function(A){return _.test(A)?te(A.slice(4).toLowerCase()):A})}},(t=(function(){return e}).call(a,i,a,f))===void 0||(f.exports=t)}()},2511:function(f,a,i){var t;f=i.nmd(f),function(s){a&&a.nodeType,f&&f.nodeType;var o=typeof i.g=="object"&&i.g;o.global!==o&&o.window!==o&&o.self;var e,c=2147483647,u=36,h=1,b=26,m=38,k=700,d=72,w=128,y="-",_=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=u-h,T=Math.floor,R=String.fromCharCode;function W(P){throw new RangeError(S[P])}function j(P,A){for(var O=P.length,z=[];O--;)z[O]=A(P[O]);return z}function L(P,A){var O=P.split("@"),z="";return O.length>1&&(z=O[0]+"@",P=O[1]),z+j((P=P.replace(E,".")).split("."),A).join(".")}function Q(P){for(var A,O,z=[],G=0,re=P.length;G=55296&&A<=56319&&G65535&&(O+=R((A-=65536)>>>10&1023|55296),A=56320|1023&A),O+=R(A)}).join("")}function Z(P,A){return P+22+75*(P<26)-((A!=0)<<5)}function se(P,A,O){var z=0;for(P=O?T(P/k):P>>1,P+=T(P/A);P>C*b>>1;z+=u)P=T(P/C);return T(z+(C+1)*P/(P+m))}function te(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge=[],Ne=P.length,Ue=0,Le=w,De=d;for((O=P.lastIndexOf(y))<0&&(O=0),z=0;z=128&&W("not-basic"),ge.push(P.charCodeAt(z));for(G=O>0?O+1:0;G=Ne&&W("invalid-input"),((Be=(le=P.charCodeAt(G++))-48<10?le-22:le-65<26?le-65:le-97<26?le-97:u)>=u||Be>T((c-Ue)/X))&&W("overflow"),Ue+=Be*X,!(Be<(ve=be<=De?h:be>=De+b?b:be-De));be+=u)X>T(c/(he=u-ve))&&W("overflow"),X*=he;De=se(Ue-re,A=ge.length+1,re==0),T(Ue/A)>c-Le&&W("overflow"),Le+=T(Ue/A),Ue%=A,ge.splice(Ue++,0,Le)}return U(ge)}function $(P){var A,O,z,G,re,X,be,Be,ve,he,le,ge,Ne,Ue,Le,De=[];for(ge=(P=Q(P)).length,A=w,O=0,re=d,X=0;X=A&&leT((c-O)/(Ne=z+1))&&W("overflow"),O+=(be-A)*Ne,A=be,X=0;Xc&&W("overflow"),le==A){for(Be=O,ve=u;!(Be<(he=ve<=re?h:ve>=re+b?b:ve-re));ve+=u)Le=Be-he,Ue=u-he,De.push(R(Z(he+Le%Ue,0))),Be=T(Le/Ue);De.push(R(Z(Be,0))),re=se(O,Ne,z==G),O=0,++z}++O,++A}return De.join("")}e={version:"1.4.1",ucs2:{decode:Q,encode:U},decode:te,encode:$,toASCII:function(P){return L(P,function(A){return x.test(A)?"xn--"+$(A):A})},toUnicode:function(P){return L(P,function(A){return _.test(A)?te(A.slice(4).toLowerCase()):A})}},(t=(function(){return e}).call(a,i,a,f))===void 0||(f.exports=t)}()},8575:(f,a,i)=>{var t=i(2511);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),h=["'"].concat(u),b=["%","/","?",";","#"].concat(h),m=["/","?","#"],k=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=i(129);function E(S,C,T){if(S&&typeof S=="object"&&S instanceof s)return S;var R=new s;return R.parse(S,C,T),R}s.prototype.parse=function(S,C,T){if(typeof S!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var R=S.indexOf("?"),W=R!==-1&&R127?be+="x":be+=X[Be];if(!be.match(k)){var he=G.slice(0,A),le=G.slice(A+1),ge=X.match(d);ge&&(he.push(ge[1]),le.unshift(ge[2])),le.length&&(L="/"+le.join(".")+L),this.hostname=he.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=t.toASCII(this.hostname));var Ne=this.port?":"+this.port:"",Ue=this.hostname||"";this.host=Ue+Ne,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!w[Z])for(A=0,re=h.length;A0)&&T.host.split("@"))&&(T.auth=ge.shift(),T.hostname=ge.shift(),T.host=T.hostname)),T.search=S.search,T.query=S.query,T.pathname===null&&T.search===null||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T;if(!X.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var Be=X.slice(-1)[0],ve=(T.host||S.host||X.length>1)&&(Be==="."||Be==="..")||Be==="",he=0,le=X.length;le>=0;le--)(Be=X[le])==="."?X.splice(le,1):Be===".."?(X.splice(le,1),he++):he&&(X.splice(le,1),he--);if(!G&&!re)for(;he--;he)X.unshift("..");!G||X[0]===""||X[0]&&X[0].charAt(0)==="/"||X.unshift(""),ve&&X.join("/").substr(-1)!=="/"&&X.push("");var ge,Ne=X[0]===""||X[0]&&X[0].charAt(0)==="/";return be&&(T.hostname=Ne?"":X.length?X.shift():"",T.host=T.hostname,(ge=!!(T.host&&T.host.indexOf("@")>0)&&T.host.split("@"))&&(T.auth=ge.shift(),T.hostname=ge.shift(),T.host=T.hostname)),(G=G||T.host&&X.length)&&!Ne&&X.unshift(""),X.length>0?T.pathname=X.join("/"):(T.pathname=null,T.path=null),T.pathname===null&&T.search===null||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=S.auth||T.auth,T.slashes=T.slashes||S.slashes,T.href=T.format(),T},s.prototype.parseHost=function(){var S=this.host,C=e.exec(S);C&&((C=C[0])!==":"&&(this.port=C.substr(1)),S=S.substr(0,S.length-C.length)),S&&(this.hostname=S)},a.parse=E,a.resolve=function(S,C){return E(S,!1,!0).resolve(C)},a.resolveObject=function(S,C){return S?E(S,!1,!0).resolveObject(C):C},a.format=function(S){return typeof S=="string"&&(S=E(S)),S instanceof s?S.format():s.prototype.format.call(S)},a.Url=s},4927:(f,a,i)=>{function t(s){try{if(!i.g.localStorage)return!1}catch{return!1}var o=i.g.localStorage[s];return o!=null&&String(o).toLowerCase()==="true"}f.exports=function(s,o){if(t("noDeprecation"))return s;var e=!1;return function(){if(!e){if(t("throwDeprecation"))throw new Error(o);t("traceDeprecation")?console.trace(o):console.warn(o),e=!0}return s.apply(this,arguments)}}},384:f=>{f.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},5955:(f,a,i)=>{var t=i(2584),s=i(8662),o=i(6430),e=i(5692);function c(A){return A.call.bind(A)}var u=typeof BigInt<"u",h=typeof Symbol<"u",b=c(Object.prototype.toString),m=c(Number.prototype.valueOf),k=c(String.prototype.valueOf),d=c(Boolean.prototype.valueOf);if(u)var w=c(BigInt.prototype.valueOf);if(h)var y=c(Symbol.prototype.valueOf);function _(A,O){if(typeof A!="object")return!1;try{return O(A),!0}catch{return!1}}function x(A){return b(A)==="[object Map]"}function E(A){return b(A)==="[object Set]"}function S(A){return b(A)==="[object WeakMap]"}function C(A){return b(A)==="[object WeakSet]"}function T(A){return b(A)==="[object ArrayBuffer]"}function R(A){return typeof ArrayBuffer<"u"&&(T.working?T(A):A instanceof ArrayBuffer)}function W(A){return b(A)==="[object DataView]"}function j(A){return typeof DataView<"u"&&(W.working?W(A):A instanceof DataView)}a.isArgumentsObject=t,a.isGeneratorFunction=s,a.isTypedArray=e,a.isPromise=function(A){return typeof Promise<"u"&&A instanceof Promise||A!==null&&typeof A=="object"&&typeof A.then=="function"&&typeof A.catch=="function"},a.isArrayBufferView=function(A){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(A):e(A)||j(A)},a.isUint8Array=function(A){return o(A)==="Uint8Array"},a.isUint8ClampedArray=function(A){return o(A)==="Uint8ClampedArray"},a.isUint16Array=function(A){return o(A)==="Uint16Array"},a.isUint32Array=function(A){return o(A)==="Uint32Array"},a.isInt8Array=function(A){return o(A)==="Int8Array"},a.isInt16Array=function(A){return o(A)==="Int16Array"},a.isInt32Array=function(A){return o(A)==="Int32Array"},a.isFloat32Array=function(A){return o(A)==="Float32Array"},a.isFloat64Array=function(A){return o(A)==="Float64Array"},a.isBigInt64Array=function(A){return o(A)==="BigInt64Array"},a.isBigUint64Array=function(A){return o(A)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),a.isMap=function(A){return typeof Map<"u"&&(x.working?x(A):A instanceof Map)},E.working=typeof Set<"u"&&E(new Set),a.isSet=function(A){return typeof Set<"u"&&(E.working?E(A):A instanceof Set)},S.working=typeof WeakMap<"u"&&S(new WeakMap),a.isWeakMap=function(A){return typeof WeakMap<"u"&&(S.working?S(A):A instanceof WeakMap)},C.working=typeof WeakSet<"u"&&C(new WeakSet),a.isWeakSet=function(A){return C(A)},T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer),a.isArrayBuffer=R,W.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&W(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=j;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Q(A){return b(A)==="[object SharedArrayBuffer]"}function U(A){return L!==void 0&&(Q.working===void 0&&(Q.working=Q(new L)),Q.working?Q(A):A instanceof L)}function Z(A){return _(A,m)}function se(A){return _(A,k)}function te(A){return _(A,d)}function $(A){return u&&_(A,w)}function P(A){return h&&_(A,y)}a.isSharedArrayBuffer=U,a.isAsyncFunction=function(A){return b(A)==="[object AsyncFunction]"},a.isMapIterator=function(A){return b(A)==="[object Map Iterator]"},a.isSetIterator=function(A){return b(A)==="[object Set Iterator]"},a.isGeneratorObject=function(A){return b(A)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(A){return b(A)==="[object WebAssembly.Module]"},a.isNumberObject=Z,a.isStringObject=se,a.isBooleanObject=te,a.isBigIntObject=$,a.isSymbolObject=P,a.isBoxedPrimitive=function(A){return Z(A)||se(A)||te(A)||$(A)||P(A)},a.isAnyArrayBuffer=function(A){return typeof Uint8Array<"u"&&(R(A)||U(A))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(A){Object.defineProperty(a,A,{enumerable:!1,value:function(){throw new Error(A+" is not supported in userland")}})})},9539:(f,a,i)=>{var t=Object.getOwnPropertyDescriptors||function($){for(var P=Object.keys($),A={},O=0;O=z)return X;switch(X){case"%s":return String(O[A++]);case"%d":return Number(O[A++]);case"%j":try{return JSON.stringify(O[A++])}catch{return"[Circular]"}default:return X}}),re=O[A];A"u")return function(){return a.deprecate($,P).apply(this,arguments)};var A=!1;return function(){if(!A){if(process.throwDeprecation)throw new Error(P);process.traceDeprecation?console.trace(P):console.error(P),A=!0}return $.apply(this,arguments)}};var o={},e=/^$/;if({}.NODE_DEBUG){var c={}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),e=new RegExp("^"+c+"$","i")}function u($,P){var A={seen:[],stylize:b};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),y(P)?A.showHidden=P:P&&a._extend(A,P),S(A.showHidden)&&(A.showHidden=!1),S(A.depth)&&(A.depth=2),S(A.colors)&&(A.colors=!1),S(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=h),m(A,$,A.depth)}function h($,P){var A=u.styles[P];return A?"\x1B["+u.colors[A][0]+"m"+$+"\x1B["+u.colors[A][1]+"m":$}function b($,P){return $}function m($,P,A){if($.customInspect&&P&&j(P.inspect)&&P.inspect!==a.inspect&&(!P.constructor||P.constructor.prototype!==P)){var O=P.inspect(A,$);return E(O)||(O=m($,O,A)),O}var z=function(le,ge){if(S(ge))return le.stylize("undefined","undefined");if(E(ge)){var Ne="'"+JSON.stringify(ge).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return le.stylize(Ne,"string")}if(x(ge))return le.stylize(""+ge,"number");if(y(ge))return le.stylize(""+ge,"boolean");if(_(ge))return le.stylize("null","null")}($,P);if(z)return z;var G=Object.keys(P),re=function(le){var ge={};return le.forEach(function(Ne,Ue){ge[Ne]=!0}),ge}(G);if($.showHidden&&(G=Object.getOwnPropertyNames(P)),W(P)&&(G.indexOf("message")>=0||G.indexOf("description")>=0))return k(P);if(G.length===0){if(j(P)){var X=P.name?": "+P.name:"";return $.stylize("[Function"+X+"]","special")}if(C(P))return $.stylize(RegExp.prototype.toString.call(P),"regexp");if(R(P))return $.stylize(Date.prototype.toString.call(P),"date");if(W(P))return k(P)}var be,Be="",ve=!1,he=["{","}"];return w(P)&&(ve=!0,he=["[","]"]),j(P)&&(Be=" [Function"+(P.name?": "+P.name:"")+"]"),C(P)&&(Be=" "+RegExp.prototype.toString.call(P)),R(P)&&(Be=" "+Date.prototype.toUTCString.call(P)),W(P)&&(Be=" "+k(P)),G.length!==0||ve&&P.length!=0?A<0?C(P)?$.stylize(RegExp.prototype.toString.call(P),"regexp"):$.stylize("[Object]","special"):($.seen.push(P),be=ve?function(le,ge,Ne,Ue,Le){for(var De=[],Fe=0,Oe=ge.length;Fe=0,Le+De.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ue>60?Ne[0]+(ge===""?"":ge+` `)+" "+le.join(`, - `)+" "+Ne[1]:Ne[0]+ge+" "+le.join(", ")+" "+Ne[1]}(be,Be,he)):he[0]+Be+he[1]}function k($){return"["+Error.prototype.toString.call($)+"]"}function d($,P,A,O,z,G){var re,X,be;if((be=Object.getOwnPropertyDescriptor(P,z)||{value:P[z]}).get?X=be.set?$.stylize("[Getter/Setter]","special"):$.stylize("[Getter]","special"):be.set&&(X=$.stylize("[Setter]","special")),Z(O,z)||(re="["+z+"]"),X||($.seen.indexOf(be.value)<0?(X=_(A)?p($,be.value,null):p($,be.value,A-1)).indexOf(` + `)+" "+Ne[1]:Ne[0]+ge+" "+le.join(", ")+" "+Ne[1]}(be,Be,he)):he[0]+Be+he[1]}function k($){return"["+Error.prototype.toString.call($)+"]"}function d($,P,A,O,z,G){var re,X,be;if((be=Object.getOwnPropertyDescriptor(P,z)||{value:P[z]}).get?X=be.set?$.stylize("[Getter/Setter]","special"):$.stylize("[Getter]","special"):be.set&&(X=$.stylize("[Setter]","special")),Z(O,z)||(re="["+z+"]"),X||($.seen.indexOf(be.value)<0?(X=_(A)?m($,be.value,null):m($,be.value,A-1)).indexOf(` `)>-1&&(X=G?X.split(` `).map(function(Be){return" "+Be}).join(` `).slice(2):` `+X.split(` `).map(function(Be){return" "+Be}).join(` -`)):X=$.stylize("[Circular]","special")),S(re)){if(G&&z.match(/^\d+$/))return X;(re=JSON.stringify(""+z)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.slice(1,-1),re=$.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=$.stylize(re,"string"))}return re+": "+X}function w($){return Array.isArray($)}function y($){return typeof $=="boolean"}function _($){return $===null}function x($){return typeof $=="number"}function E($){return typeof $=="string"}function S($){return $===void 0}function C($){return T($)&&L($)==="[object RegExp]"}function T($){return typeof $=="object"&&$!==null}function R($){return T($)&&L($)==="[object Date]"}function W($){return T($)&&(L($)==="[object Error]"||$ instanceof Error)}function j($){return typeof $=="function"}function L($){return Object.prototype.toString.call($)}function Q($){return $<10?"0"+$.toString(10):$.toString(10)}a.debuglog=function($){if($=$.toUpperCase(),!o[$])if(e.test($)){var P=process.pid;o[$]=function(){var A=a.format.apply(a,arguments);console.error("%s %d: %s",$,P,A)}}else o[$]=function(){};return o[$]},a.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=i(5955),a.isArray=w,a.isBoolean=y,a.isNull=_,a.isNullOrUndefined=function($){return $==null},a.isNumber=x,a.isString=E,a.isSymbol=function($){return typeof $=="symbol"},a.isUndefined=S,a.isRegExp=C,a.types.isRegExp=C,a.isObject=T,a.isDate=R,a.types.isDate=R,a.isError=W,a.types.isNativeError=W,a.isFunction=j,a.isPrimitive=function($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||$===void 0},a.isBuffer=i(384);var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z($,P){return Object.prototype.hasOwnProperty.call($,P)}a.log=function(){var $,P;console.log("%s - %s",($=new Date,P=[Q($.getHours()),Q($.getMinutes()),Q($.getSeconds())].join(":"),[$.getDate(),U[$.getMonth()],P].join(" ")),a.format.apply(a,arguments))},a.inherits=i(5717),a._extend=function($,P){if(!P||!T(P))return $;for(var A=Object.keys(P),O=A.length;O--;)$[A[O]]=P[A[O]];return $};var se=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function te($,P){if(!$){var A=new Error("Promise was rejected with a falsy value");A.reason=$,$=A}return P($)}a.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(se&&$[se]){var P;if(typeof(P=$[se])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(P,se,{value:P,enumerable:!1,writable:!1,configurable:!0}),P}function P(){for(var A,O,z=new Promise(function(X,be){A=X,O=be}),G=[],re=0;re{var t=i(4029),s=i(3083),o=i(5559),e=i(1924),c=i(7296),u=e("Object.prototype.toString"),h=i(6410)(),b=typeof globalThis>"u"?i.g:globalThis,p=s(),k=e("String.prototype.slice"),d=Object.getPrototypeOf,w=e("Array.prototype.indexOf",!0)||function(_,x){for(var E=0;E<_.length;E+=1)if(_[E]===x)return E;return-1},y={__proto__:null};t(p,h&&c&&d?function(_){var x=new b[_];if(Symbol.toStringTag in x){var E=d(x),S=c(E,Symbol.toStringTag);if(!S){var C=d(E);S=c(C,Symbol.toStringTag)}y["$"+_]=o(S.get)}}:function(_){var x=new b[_],E=x.slice||x.set;E&&(y["$"+_]=o(E))}),f.exports=function(_){if(!_||typeof _!="object")return!1;if(!h){var x=k(u(_),8,-1);return w(p,x)>-1?x:x==="Object"&&function(E){var S=!1;return t(y,function(C,T){if(!S)try{C(E),S=k(T,1)}catch{}}),S}(_)}return c?function(E){var S=!1;return t(y,function(C,T){if(!S)try{"$"+C(E)===T&&(S=k(T,1))}catch{}}),S}(_):null}},7529:f=>{f.exports=function(){for(var i={},t=0;t{},4654:()=>{},2361:()=>{},4616:()=>{},3083:(f,a,i)=>{var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],s=typeof globalThis>"u"?i.g:globalThis;f.exports=function(){for(var o=[],e=0;e{i.d(a,{Z:()=>ln});var t={};function s(ce,Ce){return function(){return ce.apply(Ce,arguments)}}i.r(t),i.d(t,{hasBrowserEnv:()=>ue,hasStandardBrowserEnv:()=>F,hasStandardBrowserWebWorkerEnv:()=>q});const{toString:o}=Object.prototype,{getPrototypeOf:e}=Object,c=(u=Object.create(null),ce=>{const Ce=o.call(ce);return u[Ce]||(u[Ce]=Ce.slice(8,-1).toLowerCase())});var u;const h=ce=>(ce=ce.toLowerCase(),Ce=>c(Ce)===ce),b=ce=>Ce=>typeof Ce===ce,{isArray:p}=Array,k=b("undefined"),d=h("ArrayBuffer"),w=b("string"),y=b("function"),_=b("number"),x=ce=>ce!==null&&typeof ce=="object",E=ce=>{if(c(ce)!=="object")return!1;const Ce=e(ce);return!(Ce!==null&&Ce!==Object.prototype&&Object.getPrototypeOf(Ce)!==null||Symbol.toStringTag in ce||Symbol.iterator in ce)},S=h("Date"),C=h("File"),T=h("Blob"),R=h("FileList"),W=h("URLSearchParams");function j(ce,Ce,{allOwnKeys:Ve=!1}={}){if(ce==null)return;let Qe,Je;if(typeof ce!="object"&&(ce=[ce]),p(ce))for(Qe=0,Je=ce.length;Qe0;)if(Qe=Ve[Je],Ce===Qe.toLowerCase())return Qe;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal,U=ce=>!k(ce)&&ce!==Q,Z=(se=typeof Uint8Array<"u"&&e(Uint8Array),ce=>se&&ce instanceof se);var se;const te=h("HTMLFormElement"),$=(({hasOwnProperty:ce})=>(Ce,Ve)=>ce.call(Ce,Ve))(Object.prototype),P=h("RegExp"),A=(ce,Ce)=>{const Ve=Object.getOwnPropertyDescriptors(ce),Qe={};j(Ve,(Je,Ye)=>{let Ze;(Ze=Ce(Je,Ye,ce))!==!1&&(Qe[Ye]=Ze||Je)}),Object.defineProperties(ce,Qe)},O="abcdefghijklmnopqrstuvwxyz",z="0123456789",G={DIGIT:z,ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+z},re=h("AsyncFunction"),X={isArray:p,isArrayBuffer:d,isBuffer:function(ce){return ce!==null&&!k(ce)&&ce.constructor!==null&&!k(ce.constructor)&&y(ce.constructor.isBuffer)&&ce.constructor.isBuffer(ce)},isFormData:ce=>{let Ce;return ce&&(typeof FormData=="function"&&ce instanceof FormData||y(ce.append)&&((Ce=c(ce))==="formdata"||Ce==="object"&&y(ce.toString)&&ce.toString()==="[object FormData]"))},isArrayBufferView:function(ce){let Ce;return Ce=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):ce&&ce.buffer&&d(ce.buffer),Ce},isString:w,isNumber:_,isBoolean:ce=>ce===!0||ce===!1,isObject:x,isPlainObject:E,isUndefined:k,isDate:S,isFile:C,isBlob:T,isRegExp:P,isFunction:y,isStream:ce=>x(ce)&&y(ce.pipe),isURLSearchParams:W,isTypedArray:Z,isFileList:R,forEach:j,merge:function ce(){const{caseless:Ce}=U(this)&&this||{},Ve={},Qe=(Je,Ye)=>{const Ze=Ce&&L(Ve,Ye)||Ye;E(Ve[Ze])&&E(Je)?Ve[Ze]=ce(Ve[Ze],Je):E(Je)?Ve[Ze]=ce({},Je):p(Je)?Ve[Ze]=Je.slice():Ve[Ze]=Je};for(let Je=0,Ye=arguments.length;Je(j(Ce,(Je,Ye)=>{Ve&&y(Je)?ce[Ye]=s(Je,Ve):ce[Ye]=Je},{allOwnKeys:Qe}),ce),trim:ce=>ce.trim?ce.trim():ce.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:ce=>(ce.charCodeAt(0)===65279&&(ce=ce.slice(1)),ce),inherits:(ce,Ce,Ve,Qe)=>{ce.prototype=Object.create(Ce.prototype,Qe),ce.prototype.constructor=ce,Object.defineProperty(ce,"super",{value:Ce.prototype}),Ve&&Object.assign(ce.prototype,Ve)},toFlatObject:(ce,Ce,Ve,Qe)=>{let Je,Ye,Ze;const yt={};if(Ce=Ce||{},ce==null)return Ce;do{for(Je=Object.getOwnPropertyNames(ce),Ye=Je.length;Ye-- >0;)Ze=Je[Ye],Qe&&!Qe(Ze,ce,Ce)||yt[Ze]||(Ce[Ze]=ce[Ze],yt[Ze]=!0);ce=Ve!==!1&&e(ce)}while(ce&&(!Ve||Ve(ce,Ce))&&ce!==Object.prototype);return Ce},kindOf:c,kindOfTest:h,endsWith:(ce,Ce,Ve)=>{ce=String(ce),(Ve===void 0||Ve>ce.length)&&(Ve=ce.length),Ve-=Ce.length;const Qe=ce.indexOf(Ce,Ve);return Qe!==-1&&Qe===Ve},toArray:ce=>{if(!ce)return null;if(p(ce))return ce;let Ce=ce.length;if(!_(Ce))return null;const Ve=new Array(Ce);for(;Ce-- >0;)Ve[Ce]=ce[Ce];return Ve},forEachEntry:(ce,Ce)=>{const Ve=(ce&&ce[Symbol.iterator]).call(ce);let Qe;for(;(Qe=Ve.next())&&!Qe.done;){const Je=Qe.value;Ce.call(ce,Je[0],Je[1])}},matchAll:(ce,Ce)=>{let Ve;const Qe=[];for(;(Ve=ce.exec(Ce))!==null;)Qe.push(Ve);return Qe},isHTMLForm:te,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:A,freezeMethods:ce=>{A(ce,(Ce,Ve)=>{if(y(ce)&&["arguments","caller","callee"].indexOf(Ve)!==-1)return!1;const Qe=ce[Ve];y(Qe)&&(Ce.enumerable=!1,"writable"in Ce?Ce.writable=!1:Ce.set||(Ce.set=()=>{throw Error("Can not rewrite read-only method '"+Ve+"'")}))})},toObjectSet:(ce,Ce)=>{const Ve={},Qe=Je=>{Je.forEach(Ye=>{Ve[Ye]=!0})};return p(ce)?Qe(ce):Qe(String(ce).split(Ce)),Ve},toCamelCase:ce=>ce.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Ce,Ve,Qe){return Ve.toUpperCase()+Qe}),noop:()=>{},toFiniteNumber:(ce,Ce)=>(ce=+ce,Number.isFinite(ce)?ce:Ce),findKey:L,global:Q,isContextDefined:U,ALPHABET:G,generateString:(ce=16,Ce=G.ALPHA_DIGIT)=>{let Ve="";const{length:Qe}=Ce;for(;ce--;)Ve+=Ce[Math.random()*Qe|0];return Ve},isSpecCompliantForm:function(ce){return!!(ce&&y(ce.append)&&ce[Symbol.toStringTag]==="FormData"&&ce[Symbol.iterator])},toJSONObject:ce=>{const Ce=new Array(10),Ve=(Qe,Je)=>{if(x(Qe)){if(Ce.indexOf(Qe)>=0)return;if(!("toJSON"in Qe)){Ce[Je]=Qe;const Ye=p(Qe)?[]:{};return j(Qe,(Ze,yt)=>{const wt=Ve(Ze,Je+1);!k(wt)&&(Ye[yt]=wt)}),Ce[Je]=void 0,Ye}}return Qe};return Ve(ce,0)},isAsyncFn:re,isThenable:ce=>ce&&(x(ce)||y(ce))&&y(ce.then)&&y(ce.catch)};function be(ce,Ce,Ve,Qe,Je){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=ce,this.name="AxiosError",Ce&&(this.code=Ce),Ve&&(this.config=Ve),Qe&&(this.request=Qe),Je&&(this.response=Je)}X.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Be=be.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(ce=>{ve[ce]={value:ce}}),Object.defineProperties(be,ve),Object.defineProperty(Be,"isAxiosError",{value:!0}),be.from=(ce,Ce,Ve,Qe,Je,Ye)=>{const Ze=Object.create(Be);return X.toFlatObject(ce,Ze,function(yt){return yt!==Error.prototype},yt=>yt!=="isAxiosError"),be.call(Ze,ce.message,Ce,Ve,Qe,Je),Ze.cause=ce,Ze.name=ce.name,Ye&&Object.assign(Ze,Ye),Ze};const he=be;var le=i(8764).Buffer;function ge(ce){return X.isPlainObject(ce)||X.isArray(ce)}function Ne(ce){return X.endsWith(ce,"[]")?ce.slice(0,-2):ce}function Ue(ce,Ce,Ve){return ce?ce.concat(Ce).map(function(Qe,Je){return Qe=Ne(Qe),!Ve&&Je?"["+Qe+"]":Qe}).join(Ve?".":""):Ce}const Le=X.toFlatObject(X,{},null,function(ce){return/^is[A-Z]/.test(ce)}),De=function(ce,Ce,Ve){if(!X.isObject(ce))throw new TypeError("target must be an object");Ce=Ce||new FormData;const Qe=(Ve=X.toFlatObject(Ve,{metaTokens:!0,dots:!1,indexes:!1},!1,function(jt,zt){return!X.isUndefined(zt[jt])})).metaTokens,Je=Ve.visitor||ht,Ye=Ve.dots,Ze=Ve.indexes,yt=(Ve.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(Ce);if(!X.isFunction(Je))throw new TypeError("visitor must be a function");function wt(jt){if(jt===null)return"";if(X.isDate(jt))return jt.toISOString();if(!yt&&X.isBlob(jt))throw new he("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(jt)||X.isTypedArray(jt)?yt&&typeof Blob=="function"?new Blob([jt]):le.from(jt):jt}function ht(jt,zt,Dt){let tn=jt;if(jt&&!Dt&&typeof jt=="object"){if(X.endsWith(zt,"{}"))zt=Qe?zt:zt.slice(0,-2),jt=JSON.stringify(jt);else if(X.isArray(jt)&&function(an){return X.isArray(an)&&!an.some(ge)}(jt)||(X.isFileList(jt)||X.endsWith(zt,"[]"))&&(tn=X.toArray(jt)))return zt=Ne(zt),tn.forEach(function(an,fn){!X.isUndefined(an)&&an!==null&&Ce.append(Ze===!0?Ue([zt],fn,Ye):Ze===null?zt:zt+"[]",wt(an))}),!1}return!!ge(jt)||(Ce.append(Ue(Dt,zt,Ye),wt(jt)),!1)}const ct=[],Mt=Object.assign(Le,{defaultVisitor:ht,convertValue:wt,isVisitable:ge});if(!X.isObject(ce))throw new TypeError("data must be an object");return function jt(zt,Dt){if(!X.isUndefined(zt)){if(ct.indexOf(zt)!==-1)throw Error("Circular reference detected in "+Dt.join("."));ct.push(zt),X.forEach(zt,function(tn,an){(!(X.isUndefined(tn)||tn===null)&&Je.call(Ce,tn,X.isString(an)?an.trim():an,Dt,Mt))===!0&&jt(tn,Dt?Dt.concat(an):[an])}),ct.pop()}}(ce),Ce};function Fe(ce){const Ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ce).replace(/[!'()~]|%20|%00/g,function(Ve){return Ce[Ve]})}function Oe(ce,Ce){this._pairs=[],ce&&De(ce,this,Ce)}const We=Oe.prototype;We.append=function(ce,Ce){this._pairs.push([ce,Ce])},We.toString=function(ce){const Ce=ce?function(Ve){return ce.call(this,Ve,Fe)}:Fe;return this._pairs.map(function(Ve){return Ce(Ve[0])+"="+Ce(Ve[1])},"").join("&")};const ot=Oe;function Ke(ce){return encodeURIComponent(ce).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function B(ce,Ce,Ve){if(!Ce)return ce;const Qe=Ve&&Ve.encode||Ke,Je=Ve&&Ve.serialize;let Ye;if(Ye=Je?Je(Ce,Ve):X.isURLSearchParams(Ce)?Ce.toString():new ot(Ce,Ve).toString(Qe),Ye){const Ze=ce.indexOf("#");Ze!==-1&&(ce=ce.slice(0,Ze)),ce+=(ce.indexOf("?")===-1?"?":"&")+Ye}return ce}const H=class{constructor(){this.handlers=[]}use(ce,Ce,Ve){return this.handlers.push({fulfilled:ce,rejected:Ce,synchronous:!!Ve&&Ve.synchronous,runWhen:Ve?Ve.runWhen:null}),this.handlers.length-1}eject(ce){this.handlers[ce]&&(this.handlers[ce]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ce){X.forEach(this.handlers,function(Ce){Ce!==null&&ce(Ce)})}},M={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ot,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ue=typeof window<"u"&&typeof document<"u",F=(N=typeof navigator<"u"&&navigator.product,ue&&["ReactNative","NativeScript","NS"].indexOf(N)<0);var N;const q=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",I={...t,...J},K=function(ce){function Ce(Ve,Qe,Je,Ye){let Ze=Ve[Ye++];const yt=Number.isFinite(+Ze),wt=Ye>=Ve.length;return Ze=!Ze&&X.isArray(Je)?Je.length:Ze,wt?(X.hasOwnProp(Je,Ze)?Je[Ze]=[Je[Ze],Qe]:Je[Ze]=Qe,!yt):(Je[Ze]&&X.isObject(Je[Ze])||(Je[Ze]=[]),Ce(Ve,Qe,Je[Ze],Ye)&&X.isArray(Je[Ze])&&(Je[Ze]=function(ht){const ct={},Mt=Object.keys(ht);let jt;const zt=Mt.length;let Dt;for(jt=0;jt{Ce(function(Ye){return X.matchAll(/\w+|\[(\w*)]/g,Ye).map(Ze=>Ze[0]==="[]"?"":Ze[1]||Ze[0])}(Qe),Je,Ve,0)}),Ve}return null},oe={transitional:M,adapter:["xhr","http"],transformRequest:[function(ce,Ce){const Ve=Ce.getContentType()||"",Qe=Ve.indexOf("application/json")>-1,Je=X.isObject(ce);if(Je&&X.isHTMLForm(ce)&&(ce=new FormData(ce)),X.isFormData(ce))return Qe&&Qe?JSON.stringify(K(ce)):ce;if(X.isArrayBuffer(ce)||X.isBuffer(ce)||X.isStream(ce)||X.isFile(ce)||X.isBlob(ce))return ce;if(X.isArrayBufferView(ce))return ce.buffer;if(X.isURLSearchParams(ce))return Ce.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ce.toString();let Ye;if(Je){if(Ve.indexOf("application/x-www-form-urlencoded")>-1)return function(Ze,yt){return De(Ze,new I.classes.URLSearchParams,Object.assign({visitor:function(wt,ht,ct,Mt){return I.isNode&&X.isBuffer(wt)?(this.append(ht,wt.toString("base64")),!1):Mt.defaultVisitor.apply(this,arguments)}},yt))}(ce,this.formSerializer).toString();if((Ye=X.isFileList(ce))||Ve.indexOf("multipart/form-data")>-1){const Ze=this.env&&this.env.FormData;return De(Ye?{"files[]":ce}:ce,Ze&&new Ze,this.formSerializer)}}return Je||Qe?(Ce.setContentType("application/json",!1),function(Ze,yt,wt){if(X.isString(Ze))try{return(yt||JSON.parse)(Ze),X.trim(Ze)}catch(ht){if(ht.name!=="SyntaxError")throw ht}return(wt||JSON.stringify)(Ze)}(ce)):ce}],transformResponse:[function(ce){const Ce=this.transitional||oe.transitional,Ve=Ce&&Ce.forcedJSONParsing,Qe=this.responseType==="json";if(ce&&X.isString(ce)&&(Ve&&!this.responseType||Qe)){const Je=!(Ce&&Ce.silentJSONParsing)&&Qe;try{return JSON.parse(ce)}catch(Ye){if(Je)throw Ye.name==="SyntaxError"?he.from(Ye,he.ERR_BAD_RESPONSE,this,null,this.response):Ye}}return ce}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(ce){return ce>=200&&ce<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],ce=>{oe.headers[ce]={}});const ye=oe,Pe=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rt=Symbol("internals");function lt(ce){return ce&&String(ce).trim().toLowerCase()}function vt(ce){return ce===!1||ce==null?ce:X.isArray(ce)?ce.map(vt):String(ce)}function _t(ce,Ce,Ve,Qe,Je){return X.isFunction(Qe)?Qe.call(this,Ce,Ve):(Je&&(Ce=Ve),X.isString(Ce)?X.isString(Qe)?Ce.indexOf(Qe)!==-1:X.isRegExp(Qe)?Qe.test(Ce):void 0:void 0)}class qt{constructor(Ce){Ce&&this.set(Ce)}set(Ce,Ve,Qe){const Je=this;function Ye(yt,wt,ht){const ct=lt(wt);if(!ct)throw new Error("header name must be a non-empty string");const Mt=X.findKey(Je,ct);(!Mt||Je[Mt]===void 0||ht===!0||ht===void 0&&Je[Mt]!==!1)&&(Je[Mt||wt]=vt(yt))}const Ze=(yt,wt)=>X.forEach(yt,(ht,ct)=>Ye(ht,ct,wt));return X.isPlainObject(Ce)||Ce instanceof this.constructor?Ze(Ce,Ve):X.isString(Ce)&&(Ce=Ce.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ce.trim())?Ze((yt=>{const wt={};let ht,ct,Mt;return yt&&yt.split(` +`)):X=$.stylize("[Circular]","special")),S(re)){if(G&&z.match(/^\d+$/))return X;(re=JSON.stringify(""+z)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.slice(1,-1),re=$.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=$.stylize(re,"string"))}return re+": "+X}function w($){return Array.isArray($)}function y($){return typeof $=="boolean"}function _($){return $===null}function x($){return typeof $=="number"}function E($){return typeof $=="string"}function S($){return $===void 0}function C($){return T($)&&L($)==="[object RegExp]"}function T($){return typeof $=="object"&&$!==null}function R($){return T($)&&L($)==="[object Date]"}function W($){return T($)&&(L($)==="[object Error]"||$ instanceof Error)}function j($){return typeof $=="function"}function L($){return Object.prototype.toString.call($)}function Q($){return $<10?"0"+$.toString(10):$.toString(10)}a.debuglog=function($){if($=$.toUpperCase(),!o[$])if(e.test($)){var P=process.pid;o[$]=function(){var A=a.format.apply(a,arguments);console.error("%s %d: %s",$,P,A)}}else o[$]=function(){};return o[$]},a.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=i(5955),a.isArray=w,a.isBoolean=y,a.isNull=_,a.isNullOrUndefined=function($){return $==null},a.isNumber=x,a.isString=E,a.isSymbol=function($){return typeof $=="symbol"},a.isUndefined=S,a.isRegExp=C,a.types.isRegExp=C,a.isObject=T,a.isDate=R,a.types.isDate=R,a.isError=W,a.types.isNativeError=W,a.isFunction=j,a.isPrimitive=function($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||$===void 0},a.isBuffer=i(384);var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z($,P){return Object.prototype.hasOwnProperty.call($,P)}a.log=function(){var $,P;console.log("%s - %s",($=new Date,P=[Q($.getHours()),Q($.getMinutes()),Q($.getSeconds())].join(":"),[$.getDate(),U[$.getMonth()],P].join(" ")),a.format.apply(a,arguments))},a.inherits=i(5717),a._extend=function($,P){if(!P||!T(P))return $;for(var A=Object.keys(P),O=A.length;O--;)$[A[O]]=P[A[O]];return $};var se=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function te($,P){if(!$){var A=new Error("Promise was rejected with a falsy value");A.reason=$,$=A}return P($)}a.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(se&&$[se]){var P;if(typeof(P=$[se])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(P,se,{value:P,enumerable:!1,writable:!1,configurable:!0}),P}function P(){for(var A,O,z=new Promise(function(X,be){A=X,O=be}),G=[],re=0;re{var t=i(4029),s=i(3083),o=i(5559),e=i(1924),c=i(7296),u=e("Object.prototype.toString"),h=i(6410)(),b=typeof globalThis>"u"?i.g:globalThis,m=s(),k=e("String.prototype.slice"),d=Object.getPrototypeOf,w=e("Array.prototype.indexOf",!0)||function(_,x){for(var E=0;E<_.length;E+=1)if(_[E]===x)return E;return-1},y={__proto__:null};t(m,h&&c&&d?function(_){var x=new b[_];if(Symbol.toStringTag in x){var E=d(x),S=c(E,Symbol.toStringTag);if(!S){var C=d(E);S=c(C,Symbol.toStringTag)}y["$"+_]=o(S.get)}}:function(_){var x=new b[_],E=x.slice||x.set;E&&(y["$"+_]=o(E))}),f.exports=function(_){if(!_||typeof _!="object")return!1;if(!h){var x=k(u(_),8,-1);return w(m,x)>-1?x:x==="Object"&&function(E){var S=!1;return t(y,function(C,T){if(!S)try{C(E),S=k(T,1)}catch{}}),S}(_)}return c?function(E){var S=!1;return t(y,function(C,T){if(!S)try{"$"+C(E)===T&&(S=k(T,1))}catch{}}),S}(_):null}},7529:f=>{f.exports=function(){for(var i={},t=0;t{},4654:()=>{},2361:()=>{},4616:()=>{},3083:(f,a,i)=>{var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],s=typeof globalThis>"u"?i.g:globalThis;f.exports=function(){for(var o=[],e=0;e{i.d(a,{Z:()=>ln});var t={};function s(ce,Ce){return function(){return ce.apply(Ce,arguments)}}i.r(t),i.d(t,{hasBrowserEnv:()=>ue,hasStandardBrowserEnv:()=>F,hasStandardBrowserWebWorkerEnv:()=>q});const{toString:o}=Object.prototype,{getPrototypeOf:e}=Object,c=(u=Object.create(null),ce=>{const Ce=o.call(ce);return u[Ce]||(u[Ce]=Ce.slice(8,-1).toLowerCase())});var u;const h=ce=>(ce=ce.toLowerCase(),Ce=>c(Ce)===ce),b=ce=>Ce=>typeof Ce===ce,{isArray:m}=Array,k=b("undefined"),d=h("ArrayBuffer"),w=b("string"),y=b("function"),_=b("number"),x=ce=>ce!==null&&typeof ce=="object",E=ce=>{if(c(ce)!=="object")return!1;const Ce=e(ce);return!(Ce!==null&&Ce!==Object.prototype&&Object.getPrototypeOf(Ce)!==null||Symbol.toStringTag in ce||Symbol.iterator in ce)},S=h("Date"),C=h("File"),T=h("Blob"),R=h("FileList"),W=h("URLSearchParams");function j(ce,Ce,{allOwnKeys:Ve=!1}={}){if(ce==null)return;let Qe,Je;if(typeof ce!="object"&&(ce=[ce]),m(ce))for(Qe=0,Je=ce.length;Qe0;)if(Qe=Ve[Je],Ce===Qe.toLowerCase())return Qe;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal,U=ce=>!k(ce)&&ce!==Q,Z=(se=typeof Uint8Array<"u"&&e(Uint8Array),ce=>se&&ce instanceof se);var se;const te=h("HTMLFormElement"),$=(({hasOwnProperty:ce})=>(Ce,Ve)=>ce.call(Ce,Ve))(Object.prototype),P=h("RegExp"),A=(ce,Ce)=>{const Ve=Object.getOwnPropertyDescriptors(ce),Qe={};j(Ve,(Je,Ye)=>{let Ze;(Ze=Ce(Je,Ye,ce))!==!1&&(Qe[Ye]=Ze||Je)}),Object.defineProperties(ce,Qe)},O="abcdefghijklmnopqrstuvwxyz",z="0123456789",G={DIGIT:z,ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+z},re=h("AsyncFunction"),X={isArray:m,isArrayBuffer:d,isBuffer:function(ce){return ce!==null&&!k(ce)&&ce.constructor!==null&&!k(ce.constructor)&&y(ce.constructor.isBuffer)&&ce.constructor.isBuffer(ce)},isFormData:ce=>{let Ce;return ce&&(typeof FormData=="function"&&ce instanceof FormData||y(ce.append)&&((Ce=c(ce))==="formdata"||Ce==="object"&&y(ce.toString)&&ce.toString()==="[object FormData]"))},isArrayBufferView:function(ce){let Ce;return Ce=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):ce&&ce.buffer&&d(ce.buffer),Ce},isString:w,isNumber:_,isBoolean:ce=>ce===!0||ce===!1,isObject:x,isPlainObject:E,isUndefined:k,isDate:S,isFile:C,isBlob:T,isRegExp:P,isFunction:y,isStream:ce=>x(ce)&&y(ce.pipe),isURLSearchParams:W,isTypedArray:Z,isFileList:R,forEach:j,merge:function ce(){const{caseless:Ce}=U(this)&&this||{},Ve={},Qe=(Je,Ye)=>{const Ze=Ce&&L(Ve,Ye)||Ye;E(Ve[Ze])&&E(Je)?Ve[Ze]=ce(Ve[Ze],Je):E(Je)?Ve[Ze]=ce({},Je):m(Je)?Ve[Ze]=Je.slice():Ve[Ze]=Je};for(let Je=0,Ye=arguments.length;Je(j(Ce,(Je,Ye)=>{Ve&&y(Je)?ce[Ye]=s(Je,Ve):ce[Ye]=Je},{allOwnKeys:Qe}),ce),trim:ce=>ce.trim?ce.trim():ce.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:ce=>(ce.charCodeAt(0)===65279&&(ce=ce.slice(1)),ce),inherits:(ce,Ce,Ve,Qe)=>{ce.prototype=Object.create(Ce.prototype,Qe),ce.prototype.constructor=ce,Object.defineProperty(ce,"super",{value:Ce.prototype}),Ve&&Object.assign(ce.prototype,Ve)},toFlatObject:(ce,Ce,Ve,Qe)=>{let Je,Ye,Ze;const yt={};if(Ce=Ce||{},ce==null)return Ce;do{for(Je=Object.getOwnPropertyNames(ce),Ye=Je.length;Ye-- >0;)Ze=Je[Ye],Qe&&!Qe(Ze,ce,Ce)||yt[Ze]||(Ce[Ze]=ce[Ze],yt[Ze]=!0);ce=Ve!==!1&&e(ce)}while(ce&&(!Ve||Ve(ce,Ce))&&ce!==Object.prototype);return Ce},kindOf:c,kindOfTest:h,endsWith:(ce,Ce,Ve)=>{ce=String(ce),(Ve===void 0||Ve>ce.length)&&(Ve=ce.length),Ve-=Ce.length;const Qe=ce.indexOf(Ce,Ve);return Qe!==-1&&Qe===Ve},toArray:ce=>{if(!ce)return null;if(m(ce))return ce;let Ce=ce.length;if(!_(Ce))return null;const Ve=new Array(Ce);for(;Ce-- >0;)Ve[Ce]=ce[Ce];return Ve},forEachEntry:(ce,Ce)=>{const Ve=(ce&&ce[Symbol.iterator]).call(ce);let Qe;for(;(Qe=Ve.next())&&!Qe.done;){const Je=Qe.value;Ce.call(ce,Je[0],Je[1])}},matchAll:(ce,Ce)=>{let Ve;const Qe=[];for(;(Ve=ce.exec(Ce))!==null;)Qe.push(Ve);return Qe},isHTMLForm:te,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:A,freezeMethods:ce=>{A(ce,(Ce,Ve)=>{if(y(ce)&&["arguments","caller","callee"].indexOf(Ve)!==-1)return!1;const Qe=ce[Ve];y(Qe)&&(Ce.enumerable=!1,"writable"in Ce?Ce.writable=!1:Ce.set||(Ce.set=()=>{throw Error("Can not rewrite read-only method '"+Ve+"'")}))})},toObjectSet:(ce,Ce)=>{const Ve={},Qe=Je=>{Je.forEach(Ye=>{Ve[Ye]=!0})};return m(ce)?Qe(ce):Qe(String(ce).split(Ce)),Ve},toCamelCase:ce=>ce.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Ce,Ve,Qe){return Ve.toUpperCase()+Qe}),noop:()=>{},toFiniteNumber:(ce,Ce)=>(ce=+ce,Number.isFinite(ce)?ce:Ce),findKey:L,global:Q,isContextDefined:U,ALPHABET:G,generateString:(ce=16,Ce=G.ALPHA_DIGIT)=>{let Ve="";const{length:Qe}=Ce;for(;ce--;)Ve+=Ce[Math.random()*Qe|0];return Ve},isSpecCompliantForm:function(ce){return!!(ce&&y(ce.append)&&ce[Symbol.toStringTag]==="FormData"&&ce[Symbol.iterator])},toJSONObject:ce=>{const Ce=new Array(10),Ve=(Qe,Je)=>{if(x(Qe)){if(Ce.indexOf(Qe)>=0)return;if(!("toJSON"in Qe)){Ce[Je]=Qe;const Ye=m(Qe)?[]:{};return j(Qe,(Ze,yt)=>{const wt=Ve(Ze,Je+1);!k(wt)&&(Ye[yt]=wt)}),Ce[Je]=void 0,Ye}}return Qe};return Ve(ce,0)},isAsyncFn:re,isThenable:ce=>ce&&(x(ce)||y(ce))&&y(ce.then)&&y(ce.catch)};function be(ce,Ce,Ve,Qe,Je){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=ce,this.name="AxiosError",Ce&&(this.code=Ce),Ve&&(this.config=Ve),Qe&&(this.request=Qe),Je&&(this.response=Je)}X.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Be=be.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(ce=>{ve[ce]={value:ce}}),Object.defineProperties(be,ve),Object.defineProperty(Be,"isAxiosError",{value:!0}),be.from=(ce,Ce,Ve,Qe,Je,Ye)=>{const Ze=Object.create(Be);return X.toFlatObject(ce,Ze,function(yt){return yt!==Error.prototype},yt=>yt!=="isAxiosError"),be.call(Ze,ce.message,Ce,Ve,Qe,Je),Ze.cause=ce,Ze.name=ce.name,Ye&&Object.assign(Ze,Ye),Ze};const he=be;var le=i(8764).Buffer;function ge(ce){return X.isPlainObject(ce)||X.isArray(ce)}function Ne(ce){return X.endsWith(ce,"[]")?ce.slice(0,-2):ce}function Ue(ce,Ce,Ve){return ce?ce.concat(Ce).map(function(Qe,Je){return Qe=Ne(Qe),!Ve&&Je?"["+Qe+"]":Qe}).join(Ve?".":""):Ce}const Le=X.toFlatObject(X,{},null,function(ce){return/^is[A-Z]/.test(ce)}),De=function(ce,Ce,Ve){if(!X.isObject(ce))throw new TypeError("target must be an object");Ce=Ce||new FormData;const Qe=(Ve=X.toFlatObject(Ve,{metaTokens:!0,dots:!1,indexes:!1},!1,function(jt,zt){return!X.isUndefined(zt[jt])})).metaTokens,Je=Ve.visitor||ht,Ye=Ve.dots,Ze=Ve.indexes,yt=(Ve.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(Ce);if(!X.isFunction(Je))throw new TypeError("visitor must be a function");function wt(jt){if(jt===null)return"";if(X.isDate(jt))return jt.toISOString();if(!yt&&X.isBlob(jt))throw new he("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(jt)||X.isTypedArray(jt)?yt&&typeof Blob=="function"?new Blob([jt]):le.from(jt):jt}function ht(jt,zt,Dt){let tn=jt;if(jt&&!Dt&&typeof jt=="object"){if(X.endsWith(zt,"{}"))zt=Qe?zt:zt.slice(0,-2),jt=JSON.stringify(jt);else if(X.isArray(jt)&&function(an){return X.isArray(an)&&!an.some(ge)}(jt)||(X.isFileList(jt)||X.endsWith(zt,"[]"))&&(tn=X.toArray(jt)))return zt=Ne(zt),tn.forEach(function(an,fn){!X.isUndefined(an)&&an!==null&&Ce.append(Ze===!0?Ue([zt],fn,Ye):Ze===null?zt:zt+"[]",wt(an))}),!1}return!!ge(jt)||(Ce.append(Ue(Dt,zt,Ye),wt(jt)),!1)}const ct=[],Mt=Object.assign(Le,{defaultVisitor:ht,convertValue:wt,isVisitable:ge});if(!X.isObject(ce))throw new TypeError("data must be an object");return function jt(zt,Dt){if(!X.isUndefined(zt)){if(ct.indexOf(zt)!==-1)throw Error("Circular reference detected in "+Dt.join("."));ct.push(zt),X.forEach(zt,function(tn,an){(!(X.isUndefined(tn)||tn===null)&&Je.call(Ce,tn,X.isString(an)?an.trim():an,Dt,Mt))===!0&&jt(tn,Dt?Dt.concat(an):[an])}),ct.pop()}}(ce),Ce};function Fe(ce){const Ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ce).replace(/[!'()~]|%20|%00/g,function(Ve){return Ce[Ve]})}function Oe(ce,Ce){this._pairs=[],ce&&De(ce,this,Ce)}const We=Oe.prototype;We.append=function(ce,Ce){this._pairs.push([ce,Ce])},We.toString=function(ce){const Ce=ce?function(Ve){return ce.call(this,Ve,Fe)}:Fe;return this._pairs.map(function(Ve){return Ce(Ve[0])+"="+Ce(Ve[1])},"").join("&")};const ot=Oe;function Ke(ce){return encodeURIComponent(ce).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function B(ce,Ce,Ve){if(!Ce)return ce;const Qe=Ve&&Ve.encode||Ke,Je=Ve&&Ve.serialize;let Ye;if(Ye=Je?Je(Ce,Ve):X.isURLSearchParams(Ce)?Ce.toString():new ot(Ce,Ve).toString(Qe),Ye){const Ze=ce.indexOf("#");Ze!==-1&&(ce=ce.slice(0,Ze)),ce+=(ce.indexOf("?")===-1?"?":"&")+Ye}return ce}const H=class{constructor(){this.handlers=[]}use(ce,Ce,Ve){return this.handlers.push({fulfilled:ce,rejected:Ce,synchronous:!!Ve&&Ve.synchronous,runWhen:Ve?Ve.runWhen:null}),this.handlers.length-1}eject(ce){this.handlers[ce]&&(this.handlers[ce]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ce){X.forEach(this.handlers,function(Ce){Ce!==null&&ce(Ce)})}},M={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ot,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ue=typeof window<"u"&&typeof document<"u",F=(N=typeof navigator<"u"&&navigator.product,ue&&["ReactNative","NativeScript","NS"].indexOf(N)<0);var N;const q=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",I={...t,...J},K=function(ce){function Ce(Ve,Qe,Je,Ye){let Ze=Ve[Ye++];const yt=Number.isFinite(+Ze),wt=Ye>=Ve.length;return Ze=!Ze&&X.isArray(Je)?Je.length:Ze,wt?(X.hasOwnProp(Je,Ze)?Je[Ze]=[Je[Ze],Qe]:Je[Ze]=Qe,!yt):(Je[Ze]&&X.isObject(Je[Ze])||(Je[Ze]=[]),Ce(Ve,Qe,Je[Ze],Ye)&&X.isArray(Je[Ze])&&(Je[Ze]=function(ht){const ct={},Mt=Object.keys(ht);let jt;const zt=Mt.length;let Dt;for(jt=0;jt{Ce(function(Ye){return X.matchAll(/\w+|\[(\w*)]/g,Ye).map(Ze=>Ze[0]==="[]"?"":Ze[1]||Ze[0])}(Qe),Je,Ve,0)}),Ve}return null},oe={transitional:M,adapter:["xhr","http"],transformRequest:[function(ce,Ce){const Ve=Ce.getContentType()||"",Qe=Ve.indexOf("application/json")>-1,Je=X.isObject(ce);if(Je&&X.isHTMLForm(ce)&&(ce=new FormData(ce)),X.isFormData(ce))return Qe&&Qe?JSON.stringify(K(ce)):ce;if(X.isArrayBuffer(ce)||X.isBuffer(ce)||X.isStream(ce)||X.isFile(ce)||X.isBlob(ce))return ce;if(X.isArrayBufferView(ce))return ce.buffer;if(X.isURLSearchParams(ce))return Ce.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ce.toString();let Ye;if(Je){if(Ve.indexOf("application/x-www-form-urlencoded")>-1)return function(Ze,yt){return De(Ze,new I.classes.URLSearchParams,Object.assign({visitor:function(wt,ht,ct,Mt){return I.isNode&&X.isBuffer(wt)?(this.append(ht,wt.toString("base64")),!1):Mt.defaultVisitor.apply(this,arguments)}},yt))}(ce,this.formSerializer).toString();if((Ye=X.isFileList(ce))||Ve.indexOf("multipart/form-data")>-1){const Ze=this.env&&this.env.FormData;return De(Ye?{"files[]":ce}:ce,Ze&&new Ze,this.formSerializer)}}return Je||Qe?(Ce.setContentType("application/json",!1),function(Ze,yt,wt){if(X.isString(Ze))try{return(yt||JSON.parse)(Ze),X.trim(Ze)}catch(ht){if(ht.name!=="SyntaxError")throw ht}return(wt||JSON.stringify)(Ze)}(ce)):ce}],transformResponse:[function(ce){const Ce=this.transitional||oe.transitional,Ve=Ce&&Ce.forcedJSONParsing,Qe=this.responseType==="json";if(ce&&X.isString(ce)&&(Ve&&!this.responseType||Qe)){const Je=!(Ce&&Ce.silentJSONParsing)&&Qe;try{return JSON.parse(ce)}catch(Ye){if(Je)throw Ye.name==="SyntaxError"?he.from(Ye,he.ERR_BAD_RESPONSE,this,null,this.response):Ye}}return ce}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(ce){return ce>=200&&ce<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],ce=>{oe.headers[ce]={}});const ye=oe,Pe=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rt=Symbol("internals");function lt(ce){return ce&&String(ce).trim().toLowerCase()}function vt(ce){return ce===!1||ce==null?ce:X.isArray(ce)?ce.map(vt):String(ce)}function _t(ce,Ce,Ve,Qe,Je){return X.isFunction(Qe)?Qe.call(this,Ce,Ve):(Je&&(Ce=Ve),X.isString(Ce)?X.isString(Qe)?Ce.indexOf(Qe)!==-1:X.isRegExp(Qe)?Qe.test(Ce):void 0:void 0)}class qt{constructor(Ce){Ce&&this.set(Ce)}set(Ce,Ve,Qe){const Je=this;function Ye(yt,wt,ht){const ct=lt(wt);if(!ct)throw new Error("header name must be a non-empty string");const Mt=X.findKey(Je,ct);(!Mt||Je[Mt]===void 0||ht===!0||ht===void 0&&Je[Mt]!==!1)&&(Je[Mt||wt]=vt(yt))}const Ze=(yt,wt)=>X.forEach(yt,(ht,ct)=>Ye(ht,ct,wt));return X.isPlainObject(Ce)||Ce instanceof this.constructor?Ze(Ce,Ve):X.isString(Ce)&&(Ce=Ce.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ce.trim())?Ze((yt=>{const wt={};let ht,ct,Mt;return yt&&yt.split(` `).forEach(function(jt){Mt=jt.indexOf(":"),ht=jt.substring(0,Mt).trim().toLowerCase(),ct=jt.substring(Mt+1).trim(),!ht||wt[ht]&&Pe[ht]||(ht==="set-cookie"?wt[ht]?wt[ht].push(ct):wt[ht]=[ct]:wt[ht]=wt[ht]?wt[ht]+", "+ct:ct)}),wt})(Ce),Ve):Ce!=null&&Ye(Ve,Ce,Qe),this}get(Ce,Ve){if(Ce=lt(Ce)){const Qe=X.findKey(this,Ce);if(Qe){const Je=this[Qe];if(!Ve)return Je;if(Ve===!0)return function(Ye){const Ze=Object.create(null),yt=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let wt;for(;wt=yt.exec(Ye);)Ze[wt[1]]=wt[2];return Ze}(Je);if(X.isFunction(Ve))return Ve.call(this,Je,Qe);if(X.isRegExp(Ve))return Ve.exec(Je);throw new TypeError("parser must be boolean|regexp|function")}}}has(Ce,Ve){if(Ce=lt(Ce)){const Qe=X.findKey(this,Ce);return!(!Qe||this[Qe]===void 0||Ve&&!_t(0,this[Qe],Qe,Ve))}return!1}delete(Ce,Ve){const Qe=this;let Je=!1;function Ye(Ze){if(Ze=lt(Ze)){const yt=X.findKey(Qe,Ze);!yt||Ve&&!_t(0,Qe[yt],yt,Ve)||(delete Qe[yt],Je=!0)}}return X.isArray(Ce)?Ce.forEach(Ye):Ye(Ce),Je}clear(Ce){const Ve=Object.keys(this);let Qe=Ve.length,Je=!1;for(;Qe--;){const Ye=Ve[Qe];Ce&&!_t(0,this[Ye],Ye,Ce,!0)||(delete this[Ye],Je=!0)}return Je}normalize(Ce){const Ve=this,Qe={};return X.forEach(this,(Je,Ye)=>{const Ze=X.findKey(Qe,Ye);if(Ze)return Ve[Ze]=vt(Je),void delete Ve[Ye];const yt=Ce?function(wt){return wt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(ht,ct,Mt)=>ct.toUpperCase()+Mt)}(Ye):String(Ye).trim();yt!==Ye&&delete Ve[Ye],Ve[yt]=vt(Je),Qe[yt]=!0}),this}concat(...Ce){return this.constructor.concat(this,...Ce)}toJSON(Ce){const Ve=Object.create(null);return X.forEach(this,(Qe,Je)=>{Qe!=null&&Qe!==!1&&(Ve[Je]=Ce&&X.isArray(Qe)?Qe.join(", "):Qe)}),Ve}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Ce,Ve])=>Ce+": "+Ve).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Ce){return Ce instanceof this?Ce:new this(Ce)}static concat(Ce,...Ve){const Qe=new this(Ce);return Ve.forEach(Je=>Qe.set(Je)),Qe}static accessor(Ce){const Ve=(this[rt]=this[rt]={accessors:{}}).accessors,Qe=this.prototype;function Je(Ye){const Ze=lt(Ye);Ve[Ze]||(function(yt,wt){const ht=X.toCamelCase(" "+wt);["get","set","has"].forEach(ct=>{Object.defineProperty(yt,ct+ht,{value:function(Mt,jt,zt){return this[ct].call(this,wt,Mt,jt,zt)},configurable:!0})})}(Qe,Ye),Ve[Ze]=!0)}return X.isArray(Ce)?Ce.forEach(Je):Je(Ce),this}}qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(qt.prototype,({value:ce},Ce)=>{let Ve=Ce[0].toUpperCase()+Ce.slice(1);return{get:()=>ce,set(Qe){this[Ve]=Qe}}}),X.freezeMethods(qt);const me=qt;function we(ce,Ce){const Ve=this||ye,Qe=Ce||Ve,Je=me.from(Qe.headers);let Ye=Qe.data;return X.forEach(ce,function(Ze){Ye=Ze.call(Ve,Ye,Je.normalize(),Ce?Ce.status:void 0)}),Je.normalize(),Ye}function xe(ce){return!(!ce||!ce.__CANCEL__)}function V(ce,Ce,Ve){he.call(this,ce??"canceled",he.ERR_CANCELED,Ce,Ve),this.name="CanceledError"}X.inherits(V,he,{__CANCEL__:!0});const Y=V,ke=I.hasStandardBrowserEnv?{write(ce,Ce,Ve,Qe,Je,Ye){const Ze=[ce+"="+encodeURIComponent(Ce)];X.isNumber(Ve)&&Ze.push("expires="+new Date(Ve).toGMTString()),X.isString(Qe)&&Ze.push("path="+Qe),X.isString(Je)&&Ze.push("domain="+Je),Ye===!0&&Ze.push("secure"),document.cookie=Ze.join("; ")},read(ce){const Ce=document.cookie.match(new RegExp("(^|;\\s*)("+ce+")=([^;]*)"));return Ce?decodeURIComponent(Ce[3]):null},remove(ce){this.write(ce,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $e(ce,Ce){return ce&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ce)?function(Ve,Qe){return Qe?Ve.replace(/\/+$/,"")+"/"+Qe.replace(/^\/+/,""):Ve}(ce,Ce):Ce}const ze=I.hasStandardBrowserEnv?function(){const ce=/(msie|trident)/i.test(navigator.userAgent),Ce=document.createElement("a");let Ve;function Qe(Je){let Ye=Je;return ce&&(Ce.setAttribute("href",Ye),Ye=Ce.href),Ce.setAttribute("href",Ye),{href:Ce.href,protocol:Ce.protocol?Ce.protocol.replace(/:$/,""):"",host:Ce.host,search:Ce.search?Ce.search.replace(/^\?/,""):"",hash:Ce.hash?Ce.hash.replace(/^#/,""):"",hostname:Ce.hostname,port:Ce.port,pathname:Ce.pathname.charAt(0)==="/"?Ce.pathname:"/"+Ce.pathname}}return Ve=Qe(window.location.href),function(Je){const Ye=X.isString(Je)?Qe(Je):Je;return Ye.protocol===Ve.protocol&&Ye.host===Ve.host}}():function(){return!0},je=function(ce,Ce){ce=ce||10;const Ve=new Array(ce),Qe=new Array(ce);let Je,Ye=0,Ze=0;return Ce=Ce!==void 0?Ce:1e3,function(yt){const wt=Date.now(),ht=Qe[Ze];Je||(Je=wt),Ve[Ye]=yt,Qe[Ye]=wt;let ct=Ze,Mt=0;for(;ct!==Ye;)Mt+=Ve[ct++],ct%=ce;if(Ye=(Ye+1)%ce,Ye===Ze&&(Ze=(Ze+1)%ce),wt-Je{const Ye=Je.loaded,Ze=Je.lengthComputable?Je.total:void 0,yt=Ye-Ve,wt=Qe(yt);Ve=Ye;const ht={loaded:Ye,total:Ze,progress:Ze?Ye/Ze:void 0,bytes:yt,rate:wt||void 0,estimated:wt&&Ze&&Ye<=Ze?(Ze-Ye)/wt:void 0,event:Je};ht[Ce?"download":"upload"]=!0,ce(ht)}}const nt={http:null,xhr:typeof XMLHttpRequest<"u"&&function(ce){return new Promise(function(Ce,Ve){let Qe=ce.data;const Je=me.from(ce.headers).normalize();let Ye,Ze,{responseType:yt,withXSRFToken:wt}=ce;function ht(){ce.cancelToken&&ce.cancelToken.unsubscribe(Ye),ce.signal&&ce.signal.removeEventListener("abort",Ye)}if(X.isFormData(Qe)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)Je.setContentType(!1);else if((Ze=Je.getContentType())!==!1){const[Dt,...tn]=Ze?Ze.split(";").map(an=>an.trim()).filter(Boolean):[];Je.setContentType([Dt||"multipart/form-data",...tn].join("; "))}}let ct=new XMLHttpRequest;if(ce.auth){const Dt=ce.auth.username||"",tn=ce.auth.password?unescape(encodeURIComponent(ce.auth.password)):"";Je.set("Authorization","Basic "+btoa(Dt+":"+tn))}const Mt=$e(ce.baseURL,ce.url);function jt(){if(!ct)return;const Dt=me.from("getAllResponseHeaders"in ct&&ct.getAllResponseHeaders());(function(tn,an,fn){const wn=fn.config.validateStatus;fn.status&&wn&&!wn(fn.status)?an(new he("Request failed with status code "+fn.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(fn.status/100)-4],fn.config,fn.request,fn)):tn(fn)})(function(tn){Ce(tn),ht()},function(tn){Ve(tn),ht()},{data:yt&&yt!=="text"&&yt!=="json"?ct.response:ct.responseText,status:ct.status,statusText:ct.statusText,headers:Dt,config:ce,request:ct}),ct=null}if(ct.open(ce.method.toUpperCase(),B(Mt,ce.params,ce.paramsSerializer),!0),ct.timeout=ce.timeout,"onloadend"in ct?ct.onloadend=jt:ct.onreadystatechange=function(){ct&&ct.readyState===4&&(ct.status!==0||ct.responseURL&&ct.responseURL.indexOf("file:")===0)&&setTimeout(jt)},ct.onabort=function(){ct&&(Ve(new he("Request aborted",he.ECONNABORTED,ce,ct)),ct=null)},ct.onerror=function(){Ve(new he("Network Error",he.ERR_NETWORK,ce,ct)),ct=null},ct.ontimeout=function(){let Dt=ce.timeout?"timeout of "+ce.timeout+"ms exceeded":"timeout exceeded";const tn=ce.transitional||M;ce.timeoutErrorMessage&&(Dt=ce.timeoutErrorMessage),Ve(new he(Dt,tn.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,ce,ct)),ct=null},I.hasStandardBrowserEnv&&(wt&&X.isFunction(wt)&&(wt=wt(ce)),wt||wt!==!1&&ze(Mt))){const Dt=ce.xsrfHeaderName&&ce.xsrfCookieName&&ke.read(ce.xsrfCookieName);Dt&&Je.set(ce.xsrfHeaderName,Dt)}Qe===void 0&&Je.setContentType(null),"setRequestHeader"in ct&&X.forEach(Je.toJSON(),function(Dt,tn){ct.setRequestHeader(tn,Dt)}),X.isUndefined(ce.withCredentials)||(ct.withCredentials=!!ce.withCredentials),yt&&yt!=="json"&&(ct.responseType=ce.responseType),typeof ce.onDownloadProgress=="function"&&ct.addEventListener("progress",ut(ce.onDownloadProgress,!0)),typeof ce.onUploadProgress=="function"&&ct.upload&&ct.upload.addEventListener("progress",ut(ce.onUploadProgress)),(ce.cancelToken||ce.signal)&&(Ye=Dt=>{ct&&(Ve(!Dt||Dt.type?new Y(null,ce,ct):Dt),ct.abort(),ct=null)},ce.cancelToken&&ce.cancelToken.subscribe(Ye),ce.signal&&(ce.signal.aborted?Ye():ce.signal.addEventListener("abort",Ye)));const zt=function(Dt){const tn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Dt);return tn&&tn[1]||""}(Mt);zt&&I.protocols.indexOf(zt)===-1?Ve(new he("Unsupported protocol "+zt+":",he.ERR_BAD_REQUEST,ce)):ct.send(Qe||null)})}};X.forEach(nt,(ce,Ce)=>{if(ce){try{Object.defineProperty(ce,"name",{value:Ce})}catch{}Object.defineProperty(ce,"adapterName",{value:Ce})}});const at=ce=>`- ${ce}`,It=ce=>X.isFunction(ce)||ce===null||ce===!1,Nt=ce=>{ce=X.isArray(ce)?ce:[ce];const{length:Ce}=ce;let Ve,Qe;const Je={};for(let Ye=0;Ye`adapter ${yt} `+(wt===!1?"is not supported by the environment":"is not available in the build"));let Ze=Ce?Ye.length>1?`since : `+Ye.map(at).join(` -`):" "+at(Ye[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+Ze,"ERR_NOT_SUPPORT")}return Qe};function Rt(ce){if(ce.cancelToken&&ce.cancelToken.throwIfRequested(),ce.signal&&ce.signal.aborted)throw new Y(null,ce)}function Gt(ce){return Rt(ce),ce.headers=me.from(ce.headers),ce.data=we.call(ce,ce.transformRequest),["post","put","patch"].indexOf(ce.method)!==-1&&ce.headers.setContentType("application/x-www-form-urlencoded",!1),Nt(ce.adapter||ye.adapter)(ce).then(function(Ce){return Rt(ce),Ce.data=we.call(ce,ce.transformResponse,Ce),Ce.headers=me.from(Ce.headers),Ce},function(Ce){return xe(Ce)||(Rt(ce),Ce&&Ce.response&&(Ce.response.data=we.call(ce,ce.transformResponse,Ce.response),Ce.response.headers=me.from(Ce.response.headers))),Promise.reject(Ce)})}const Jt=ce=>ce instanceof me?ce.toJSON():ce;function Ht(ce,Ce){Ce=Ce||{};const Ve={};function Qe(ht,ct,Mt){return X.isPlainObject(ht)&&X.isPlainObject(ct)?X.merge.call({caseless:Mt},ht,ct):X.isPlainObject(ct)?X.merge({},ct):X.isArray(ct)?ct.slice():ct}function Je(ht,ct,Mt){return X.isUndefined(ct)?X.isUndefined(ht)?void 0:Qe(void 0,ht,Mt):Qe(ht,ct,Mt)}function Ye(ht,ct){if(!X.isUndefined(ct))return Qe(void 0,ct)}function Ze(ht,ct){return X.isUndefined(ct)?X.isUndefined(ht)?void 0:Qe(void 0,ht):Qe(void 0,ct)}function yt(ht,ct,Mt){return Mt in Ce?Qe(ht,ct):Mt in ce?Qe(void 0,ht):void 0}const wt={url:Ye,method:Ye,data:Ye,baseURL:Ze,transformRequest:Ze,transformResponse:Ze,paramsSerializer:Ze,timeout:Ze,timeoutMessage:Ze,withCredentials:Ze,withXSRFToken:Ze,adapter:Ze,responseType:Ze,xsrfCookieName:Ze,xsrfHeaderName:Ze,onUploadProgress:Ze,onDownloadProgress:Ze,decompress:Ze,maxContentLength:Ze,maxBodyLength:Ze,beforeRedirect:Ze,transport:Ze,httpAgent:Ze,httpsAgent:Ze,cancelToken:Ze,socketPath:Ze,responseEncoding:Ze,validateStatus:yt,headers:(ht,ct)=>Je(Jt(ht),Jt(ct),!0)};return X.forEach(Object.keys(Object.assign({},ce,Ce)),function(ht){const ct=wt[ht]||Je,Mt=ct(ce[ht],Ce[ht],ht);X.isUndefined(Mt)&&ct!==yt||(Ve[ht]=Mt)}),Ve}const Zt="1.6.2",Vt={};["object","boolean","number","function","string","symbol"].forEach((ce,Ce)=>{Vt[ce]=function(Ve){return typeof Ve===ce||"a"+(Ce<1?"n ":" ")+ce}});const Ut={};Vt.transitional=function(ce,Ce,Ve){function Qe(Je,Ye){return"[Axios v1.6.2] Transitional option '"+Je+"'"+Ye+(Ve?". "+Ve:"")}return(Je,Ye,Ze)=>{if(ce===!1)throw new he(Qe(Ye," has been removed"+(Ce?" in "+Ce:"")),he.ERR_DEPRECATED);return Ce&&!Ut[Ye]&&(Ut[Ye]=!0,console.warn(Qe(Ye," has been deprecated since v"+Ce+" and will be removed in the near future"))),!ce||ce(Je,Ye,Ze)}};const Qt={assertOptions:function(ce,Ce,Ve){if(typeof ce!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const Qe=Object.keys(ce);let Je=Qe.length;for(;Je-- >0;){const Ye=Qe[Je],Ze=Ce[Ye];if(Ze){const yt=ce[Ye],wt=yt===void 0||Ze(yt,Ye,ce);if(wt!==!0)throw new he("option "+Ye+" must be "+wt,he.ERR_BAD_OPTION_VALUE)}else if(Ve!==!0)throw new he("Unknown option "+Ye,he.ERR_BAD_OPTION)}},validators:Vt},en=Qt.validators;class Wt{constructor(Ce){this.defaults=Ce,this.interceptors={request:new H,response:new H}}request(Ce,Ve){typeof Ce=="string"?(Ve=Ve||{}).url=Ce:Ve=Ce||{},Ve=Ht(this.defaults,Ve);const{transitional:Qe,paramsSerializer:Je,headers:Ye}=Ve;Qe!==void 0&&Qt.assertOptions(Qe,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),Je!=null&&(X.isFunction(Je)?Ve.paramsSerializer={serialize:Je}:Qt.assertOptions(Je,{encode:en.function,serialize:en.function},!0)),Ve.method=(Ve.method||this.defaults.method||"get").toLowerCase();let Ze=Ye&&X.merge(Ye.common,Ye[Ve.method]);Ye&&X.forEach(["delete","get","head","post","put","patch","common"],Dt=>{delete Ye[Dt]}),Ve.headers=me.concat(Ze,Ye);const yt=[];let wt=!0;this.interceptors.request.forEach(function(Dt){typeof Dt.runWhen=="function"&&Dt.runWhen(Ve)===!1||(wt=wt&&Dt.synchronous,yt.unshift(Dt.fulfilled,Dt.rejected))});const ht=[];let ct;this.interceptors.response.forEach(function(Dt){ht.push(Dt.fulfilled,Dt.rejected)});let Mt,jt=0;if(!wt){const Dt=[Gt.bind(this),void 0];for(Dt.unshift.apply(Dt,yt),Dt.push.apply(Dt,ht),Mt=Dt.length,ct=Promise.resolve(Ve);jt{if(!Qe._listeners)return;let Ye=Qe._listeners.length;for(;Ye-- >0;)Qe._listeners[Ye](Je);Qe._listeners=null}),this.promise.then=Je=>{let Ye;const Ze=new Promise(yt=>{Qe.subscribe(yt),Ye=yt}).then(Je);return Ze.cancel=function(){Qe.unsubscribe(Ye)},Ze},Ce(function(Je,Ye,Ze){Qe.reason||(Qe.reason=new Y(Je,Ye,Ze),Ve(Qe.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Ce){this.reason?Ce(this.reason):this._listeners?this._listeners.push(Ce):this._listeners=[Ce]}unsubscribe(Ce){if(!this._listeners)return;const Ve=this._listeners.indexOf(Ce);Ve!==-1&&this._listeners.splice(Ve,1)}static source(){let Ce;return{token:new St(function(Ve){Ce=Ve}),cancel:Ce}}}const Bt=St,Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach(([ce,Ce])=>{Tt[Ce]=ce});const Ot=Tt,kt=function ce(Ce){const Ve=new mt(Ce),Qe=s(mt.prototype.request,Ve);return X.extend(Qe,mt.prototype,Ve,{allOwnKeys:!0}),X.extend(Qe,Ve,null,{allOwnKeys:!0}),Qe.create=function(Je){return ce(Ht(Ce,Je))},Qe}(ye);kt.Axios=mt,kt.CanceledError=Y,kt.CancelToken=Bt,kt.isCancel=xe,kt.VERSION=Zt,kt.toFormData=De,kt.AxiosError=he,kt.Cancel=kt.CanceledError,kt.all=function(ce){return Promise.all(ce)},kt.spread=function(ce){return function(Ce){return ce.apply(null,Ce)}},kt.isAxiosError=function(ce){return X.isObject(ce)&&ce.isAxiosError===!0},kt.mergeConfig=Ht,kt.AxiosHeaders=me,kt.formToJSON=ce=>K(X.isHTMLForm(ce)?new FormData(ce):ce),kt.getAdapter=Nt,kt.HttpStatusCode=Ot,kt.default=kt;const ln=kt},4147:f=>{f.exports={i8:"11.1.0"}}},g={};function v(f){var a=g[f];if(a!==void 0)return a.exports;var i=g[f]={id:f,loaded:!1,exports:{}};return m[f].call(i.exports,i,i.exports,v),i.loaded=!0,i.exports}return v.n=f=>{var a=f&&f.__esModule?()=>f.default:()=>f;return v.d(a,{a}),a},v.d=(f,a)=>{for(var i in a)v.o(a,i)&&!v.o(f,i)&&Object.defineProperty(f,i,{enumerable:!0,get:a[i]})},v.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),v.hmd=f=>((f=Object.create(f)).children||(f.children=[]),Object.defineProperty(f,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+f.id)}}),f),v.o=(f,a)=>Object.prototype.hasOwnProperty.call(f,a),v.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},v.nmd=f=>(f.paths=[],f.children||(f.children=[]),f),v(5085)})())})(stellarSdk_min);var stellarSdk_minExports=stellarSdk_min.exports;const OperationParams={"":{type:"",params:{}},createAccount:{type:"createAccount",params:{destination:"string:address",startingBalance:"number"}},payment:{type:"payment",params:{destination:"string:address",asset:"asset",amount:"number"}},pathPaymentStrictReceive:{type:"pathPaymentStrictReceive",params:{sendAsset:"asset",sendMax:"number",destination:"string:address",destAsset:"asset",destAmount:"number",path:"array:asset"}},pathPaymentStrictSend:{type:"pathPaymentStrictSend",params:{sendAsset:"asset",sendAmount:"number",destination:"string:address",destAsset:"asset",destMin:"number",path:"array:asset"}},changeTrust:{type:"changeTrust",params:{asset:"asset",limit:"number"}},allowTrust:{type:"allowTrust",params:{trustor:"string:address",assetCode:"string:assetCode",authorize:"enum:0|1|2"}},setOptions:{type:"setOptions",params:{inflationDest:"optional:string:address",clearFlags:"number",setFlags:"number",masterWeight:"number",lowThreshold:"number",medThreshold:"number",highThreshold:"number",signer:"signer"}},manageOffer:{type:"manageOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price",offerId:"number:offerId"}},manageSellOffer:{type:"manageSellOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price",offerId:"optional:number:offerId"}},manageBuyOffer:{type:"manageBuyOffer",params:{selling:"asset",buying:"asset",buyAmount:"number",price:"price",offerId:"optional:number:offerId"}},createPassiveOffer:{type:"createPassiveOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price"}},createPassiveSellOffer:{type:"createPassiveSellOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price"}},accountMerge:{type:"accountMerge",params:{destination:"string:address"}},manageData:{type:"manageData",params:{name:"string",value:"string"}},inflation:{type:"inflation",params:{}},bumpSequence:{type:"bumpSequence",params:{bumpTo:"number"}},createClaimableBalance:{type:"createClaimableBalance",params:{asset:"asset",amount:"number",claimants:"array:claimant"}},claimClaimableBalance:{type:"claimClaimableBalance",params:{balanceId:"string:balanceId"}},beginSponsoringFutureReserves:{type:"beginSponsoringFutureReserves",params:{sponsoredId:"string"}},endSponsoringFutureReserves:{type:"endSponsoringFutureReserves",params:{}},revokeSponsorship:{type:"revokeSponsorship",params:"object"},revokeAccountSponsorship:{type:"revokeAccountSponsorship",params:{account:"string:accountId"}},revokeTrustlineSponsorship:{type:"revokeTrustlineSponsorship",params:{account:"string:accountId",asset:"asset"}},revokeOfferSponsorship:{type:"revokeOfferSponsorship",params:{seller:"string:accountId",offerId:"number:offerId"}},revokeDataSponsorship:{type:"revokeDataSponsorship",params:{account:"string:accountId",name:"string"}},revokeClaimableBalanceSponsorship:{type:"revokeClaimableBalanceSponsorship",params:{balanceId:"string:balanceId"}},revokeLiquidityPoolSponsorship:{type:"revokeLiquidityPoolSponsorship",params:{liquidityPoolId:"string:liquidityPoolId"}},revokeSignerSponsorship:{type:"revokeSignerSponsorship",params:{account:"string:accountId",signer:"signer"}},clawback:{type:"clawback",params:{amount:"number",from:"string:address",asset:"asset"}},clawbackClaimableBalance:{type:"clawbackClaimableBalance",params:{balanceId:"string:balanceId"}},setTrustLineFlags:{type:"setTrustLineFlags",params:{asset:"asset",trustor:"string:address",flags:"trustLineFlags"}},liquidityPoolDeposit:{type:"liquidityPoolDeposit",params:{liquidityPoolId:"string:liquidityPoolId",maxAmountA:"number",maxAmountB:"number",minPrice:"price",maxPrice:"price"}},liquidityPoolWithdraw:{type:"liquidityPoolWithdraw",params:{liquidityPoolId:"string:liquidityPoolId",amount:"number",minAmountA:"number",minAmountB:"number"}}};function get_each_context$2(l,r,m){const g=l.slice();return g[18]=r[m],g}function create_if_block_1$2(l){let r,m,g;return m=new Button({props:{color:"light",style:"width:100%;",$$slots:{default:[create_default_slot_3$2]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(m.$$.fragment),set_style(r,"flex","3")},m(v,f){insert(v,r,f),mount_component(m,r,null),g=!0},p(v,f){const a={};f&2097160&&(a.$$scope={dirty:f,ctx:v}),m.$set(a)},i(v){g||(transition_in(m.$$.fragment,v),g=!0)},o(v){transition_out(m.$$.fragment,v),g=!1},d(v){v&&detach(r),destroy_component(m)}}}function create_default_slot_3$2(l){let r,m,g,v,f,a=l[3].code+"",i;return{c(){r=element("img"),v=space(),f=element("p"),i=text(a),attr(r,"height","20"),attr(r,"width","20"),attr(r,"alt",m=l[3].code+" logo"),src_url_equal(r.src,g=l[3].image)||attr(r,"src",g)},m(t,s){insert(t,r,s),insert(t,v,s),insert(t,f,s),append(f,i)},p(t,s){s&8&&m!==(m=t[3].code+" logo")&&attr(r,"alt",m),s&8&&!src_url_equal(r.src,g=t[3].image)&&attr(r,"src",g),s&8&&a!==(a=t[3].code+"")&&set_data(i,a)},d(t){t&&(detach(r),detach(v),detach(f))}}}function create_if_block$3(l){let r,m,g;return m=new Listgroup({props:{$$slots:{default:[create_default_slot$5]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(m.$$.fragment),attr(r,"class","h-36 overflow-y-scroll")},m(v,f){insert(v,r,f),mount_component(m,r,null),g=!0},p(v,f){const a={};f&2097188&&(a.$$scope={dirty:f,ctx:v}),m.$set(a)},i(v){g||(transition_in(m.$$.fragment,v),g=!0)},o(v){transition_out(m.$$.fragment,v),g=!1},d(v){v&&detach(r),destroy_component(m)}}}function create_default_slot_2$2(l){let r,m,g,v,f,a,i,t=l[18].code+"",s,o,e,c,u,h=l[18].domain+"",b,p;return e=new Rating({props:{id:"example-1",total:10,count:!0,size:20,rating:l[18].score.toFixed(1)}}),{c(){r=element("div"),m=element("div"),g=element("img"),a=space(),i=element("p"),s=text(t),o=space(),create_component(e.$$.fragment),c=space(),u=element("p"),b=text(h),attr(g,"height","20"),attr(g,"width","20"),attr(g,"alt",v=l[18].code+" logo"),src_url_equal(g.src,f=l[18].image)||attr(g,"src",f),attr(m,"class","flex"),attr(r,"class","flex-col")},m(k,d){insert(k,r,d),append(r,m),append(m,g),append(m,a),append(m,i),append(i,s),append(m,o),mount_component(e,m,null),append(r,c),append(r,u),append(u,b),p=!0},p(k,d){(!p||d&32&&v!==(v=k[18].code+" logo"))&&attr(g,"alt",v),(!p||d&32&&!src_url_equal(g.src,f=k[18].image))&&attr(g,"src",f),(!p||d&32)&&t!==(t=k[18].code+"")&&set_data(s,t);const w={};d&32&&(w.rating=k[18].score.toFixed(1)),e.$set(w),(!p||d&32)&&h!==(h=k[18].domain+"")&&set_data(b,h)},i(k){p||(transition_in(e.$$.fragment,k),p=!0)},o(k){transition_out(e.$$.fragment,k),p=!1},d(k){k&&detach(r),destroy_component(e)}}}function create_default_slot_1$2(l){let r,m,g;return r=new Button({props:{color:"light",class:"w-full",$$slots:{default:[create_default_slot_2$2]},$$scope:{ctx:l}}}),r.$on("mouseenter",l[14]),r.$on("mouseleave",l[15]),r.$on("click",function(){is_function(l[7](l[18]))&&l[7](l[18]).apply(this,arguments)}),{c(){create_component(r.$$.fragment),m=space()},m(v,f){mount_component(r,v,f),insert(v,m,f),g=!0},p(v,f){l=v;const a={};f&2097184&&(a.$$scope={dirty:f,ctx:l}),r.$set(a)},i(v){g||(transition_in(r.$$.fragment,v),g=!0)},o(v){transition_out(r.$$.fragment,v),g=!1},d(v){v&&detach(m),destroy_component(r,v)}}}function create_each_block$2(l){let r,m;return r=new ListgroupItem({props:{$$slots:{default:[create_default_slot_1$2]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&2097188&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot$5(l){let r,m,g=ensure_array_like(l[5]),v=[];for(let a=0;atransition_out(v[a],1,1,()=>{v[a]=null});return{c(){for(let a=0;abind(g,"value",s)),g.$on("focus",l[12]),g.$on("keyup",l[6]),g.$on("blur",l[13]);let e=l[1]&&create_if_block_1$2(l),c=l[0]&&create_if_block$3(l);return{c(){r=element("div"),m=element("div"),create_component(g.$$.fragment),f=space(),e&&e.c(),a=space(),c&&c.c(),i=empty(),set_style(m,"flex","1"),attr(r,"class","flex")},m(u,h){insert(u,r,h),append(r,m),mount_component(g,m,null),append(r,f),e&&e.m(r,null),insert(u,a,h),c&&c.m(u,h),insert(u,i,h),t=!0},p(u,[h]){const b={};!v&&h&16&&(v=!0,b.value=u[4],add_flush_callback(()=>v=!1)),g.$set(b),u[1]?e?(e.p(u,h),h&2&&transition_in(e,1)):(e=create_if_block_1$2(u),e.c(),transition_in(e,1),e.m(r,null)):e&&(group_outros(),transition_out(e,1,1,()=>{e=null}),check_outros()),u[0]?c?(c.p(u,h),h&1&&transition_in(c,1)):(c=create_if_block$3(u),c.c(),transition_in(c,1),c.m(i.parentNode,i)):c&&(group_outros(),transition_out(c,1,1,()=>{c=null}),check_outros())},i(u){t||(transition_in(g.$$.fragment,u),transition_in(e),transition_in(c),t=!0)},o(u){transition_out(g.$$.fragment,u),transition_out(e),transition_out(c),t=!1},d(u){u&&(detach(r),detach(a),detach(i)),destroy_component(g),e&&e.d(),c&&c.d(u)}}}const stellarImage="https://upload.wikimedia.org/wikipedia/commons/5/56/Stellar_Symbol.png";function getAssetDisp(l){let r,m,g,v;return l.tomlInfo!==void 0?(r=l.tomlInfo.image,m=l.tomlInfo.code):(r="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQErufEdC325ECfUANYh7lzYRbsQxI67-xbjj3kfbovEQ&s",m=l.asset.split("-")[0]),g=l.domain,v=l.asset.split("-")[1],{image:r,code:m,domain:g,asset:v,score:l.rating.trustlines}}async function search_asset(l,r){r==="mainnet"&&(r="public");const m="https://api.stellar.expert/explorer/";console.log("here");const g=await fetch(m+`${r}/asset?search=${l}&limit=8&sort=trustlines`),v=[];if(g.ok){const f=await g.json();console.log(f);const a=f._embedded.records;return console.log(a),v.push(...a),console.log(v),v}}function instance$5(l,r,m){let{ownedAssets:g=[]}=r,{selectedAsset:v}=r,{network:f="mainnet"}=r,a=!1,i=!1,t=!1,s,o="";const e={image:stellarImage,asset:void 0,code:"XLM",domain:"stellar.org",score:10};let c=[...g,e];function u(_){let x=[e];for(let E of _)x.push(getAssetDisp(E));x.push(...g),console.log("search complete setting output array"),m(0,a=!0),m(5,c=x),console.log(x),console.log(c)}function h(){console.log("inputchange"),search_asset(o,f).then(u)}function b(_){return function(E){console.log(E),E.preventDefault(),E.stopPropagation(),console.log("asset is: "),console.log(_.asset),console.log(_),m(8,v=new stellarSdk_minExports.Asset(_.code,_.asset)),console.log(v),m(1,i=!0),m(3,s=_),m(0,a=!1),console.log(v)}}function p(_){o=_,m(4,o)}const k=()=>{m(1,i=!1),m(0,a=!0)},d=()=>t?null:m(0,a=!1),w=()=>m(2,t=!0),y=()=>m(2,t=!1);return l.$$set=_=>{"ownedAssets"in _&&m(9,g=_.ownedAssets),"selectedAsset"in _&&m(8,v=_.selectedAsset),"network"in _&&m(10,f=_.network)},[a,i,t,s,o,c,h,b,v,g,f,p,k,d,w,y]}class AssetSelect extends SvelteComponent{constructor(r){super(),init(this,r,instance$5,create_fragment$5,safe_not_equal,{ownedAssets:9,selectedAsset:8,network:10})}}function get_each_context$1(l,r,m){const g=l.slice();return g[13]=r[m][0],g[14]=r[m][1],g[15]=r,g[16]=m,g}function create_if_block_9(l){let r;return{c(){r=text("*optional")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_default_slot$4(l){let r=l[13]+"",m,g=l[14].startsWith("optional:"),v,f=g&&create_if_block_9();return{c(){m=text(r),f&&f.c(),v=empty()},m(a,i){insert(a,m,i),f&&f.m(a,i),insert(a,v,i)},p:noop,d(a){a&&(detach(m),detach(v)),f&&f.d(a)}}}function create_if_block_6(l){let r=l[14].startsWith("optional:string"),m,g=l[14].startsWith("optional:offerId"),v,f,a=r&&create_if_block_8(l),i=g&&create_if_block_7(l);return{c(){a&&a.c(),m=space(),i&&i.c(),v=empty()},m(t,s){a&&a.m(t,s),insert(t,m,s),i&&i.m(t,s),insert(t,v,s),f=!0},p(t,s){r&&a.p(t,s),g&&i.p(t,s)},i(t){f||(transition_in(a),transition_in(i),f=!0)},o(t){transition_out(a),transition_out(i),f=!1},d(t){t&&(detach(m),detach(v)),a&&a.d(t),i&&i.d(t)}}}function create_if_block_8(l){let r,m,g;function v(a){l[4](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_7(l){let r,m,g;function v(a){l[5](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_5(l){let r,m,g;function v(a){l[11](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_4(l){let r,m,g,v,f,a;function i(){l[10].call(r,l[13])}return{c(){r=element("select"),m=element("option"),m.textContent="0",g=element("option"),g.textContent="1",v=element("option"),v.textContent="2",m.__value=0,set_input_value(m,m.__value),g.__value=1,set_input_value(g,g.__value),v.__value=2,set_input_value(v,v.__value),l[0].params[l[13]]===void 0&&add_render_callback(i)},m(t,s){insert(t,r,s),append(r,m),append(r,g),append(r,v),select_option(r,l[0].params[l[13]],!0),f||(a=listen(r,"change",i),f=!0)},p(t,s){l=t,s&5&&select_option(r,l[0].params[l[13]])},i:noop,o:noop,d(t){t&&detach(r),f=!1,a()}}}function create_if_block_3(l){let r,m,g;function v(a){l[9](a,l[13])}let f={network:l[1]};return l[0].params[l[13]]!==void 0&&(f.selectedAsset=l[0].params[l[13]]),r=new AssetSelect({props:f}),binding_callbacks.push(()=>bind(r,"selectedAsset",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};i&2&&(t.network=l[1]),!m&&i&5&&(m=!0,t.selectedAsset=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_2(l){let r,m,g;function v(a){l[8](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block_1$1(l){let r,m,g;function v(a){l[7](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_if_block$2(l){let r,m,g;function v(a){l[6](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};!m&&i&5&&(m=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_each_block$1(l,r){let m,g,v,f=r[14].startsWith("optional:"),a,i,t,s,o,e;g=new Label({props:{for:"first_name",class:"mb-2",$$slots:{default:[create_default_slot$4]},$$scope:{ctx:r}}});let c=f&&create_if_block_6(r);const u=[create_if_block$2,create_if_block_1$1,create_if_block_2,create_if_block_3,create_if_block_4,create_if_block_5],h=[];function b(p,k){return p[14].startsWith("string:")?0:p[14]==="string"?1:p[14]==="number"?2:p[14]==="asset"?3:p[14]==="enum:0|1|2"?4:p[14]==="price"?5:-1}return~(i=b(r))&&(t=h[i]=u[i](r)),{key:l,first:null,c(){m=empty(),create_component(g.$$.fragment),v=space(),c&&c.c(),a=space(),t&&t.c(),s=space(),o=element("br"),this.first=m},m(p,k){insert(p,m,k),mount_component(g,p,k),insert(p,v,k),c&&c.m(p,k),insert(p,a,k),~i&&h[i].m(p,k),insert(p,s,k),insert(p,o,k),e=!0},p(p,k){r=p;const d={};k&131072&&(d.$$scope={dirty:k,ctx:r}),g.$set(d),f&&c.p(r,k),t&&t.p(r,k)},i(p){e||(transition_in(g.$$.fragment,p),transition_in(c),transition_in(t),e=!0)},o(p){transition_out(g.$$.fragment,p),transition_out(c),transition_out(t),e=!1},d(p){p&&(detach(m),detach(v),detach(a),detach(s),detach(o)),destroy_component(g,p),c&&c.d(p),~i&&h[i].d(p)}}}function create_fragment$4(l){let r,m=[],g=new Map,v,f=ensure_array_like(Object.entries(l[2].params));const a=i=>i[13];for(let i=0;i{"operationType"in b&&m(3,g=b.operationType),"network"in b&&m(1,v=b.network),"operation"in b&&m(0,f=b.operation)},[f,v,a,g,i,t,s,o,e,c,u,h]}class OperationForm extends SvelteComponent{constructor(r){super(),init(this,r,instance$4,create_fragment$4,safe_not_equal,{operationType:3,network:1,operation:0})}}function get_each_context(l,r,m){const g=l.slice();return g[12]=r[m],g[13]=r,g[14]=m,g}function create_key_block_1(l){let r,m,g;function v(a){l[9](a,l[14])}let f={network:l[1],operationType:l[0][l[14]].type};return l[0][l[14]]!==void 0&&(f.operation=l[0][l[14]]),r=new OperationForm({props:f}),binding_callbacks.push(()=>bind(r,"operation",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),g=!0},p(a,i){l=a;const t={};i&2&&(t.network=l[1]),i&1&&(t.operationType=l[0][l[14]].type),!m&&i&1&&(m=!0,t.operation=l[0][l[14]],add_flush_callback(()=>m=!1)),r.$set(t)},i(a){g||(transition_in(r.$$.fragment,a),g=!0)},o(a){transition_out(r.$$.fragment,a),g=!1},d(a){destroy_component(r,a)}}}function create_default_slot_4$1(l){let r;return{c(){r=text("Add")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_if_block$1(l){let r,m;return r=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_3$1]},$$scope:{ctx:l}}}),r.$on("click",l[3](l[14])),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&32768&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_3$1(l){let r;return{c(){r=text("remove")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_default_slot_2$1(l){let r,m,g,v,f,a,i=l[0][l[14]].type,t,s,o,e,c,u;function h(d){l[8](d,l[14])}let b={placeholder:"Operation Type",items:l[2]};l[0][l[14]].type!==void 0&&(b.value=l[0][l[14]].type),m=new Select({props:b}),binding_callbacks.push(()=>bind(m,"value",h)),f=new Hr({});let p=create_key_block_1(l);o=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_4$1]},$$scope:{ctx:l}}}),o.$on("click",l[4](l[14]));let k=l[14]!==0&&create_if_block$1(l);return{c(){r=element("div"),create_component(m.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),p.c(),t=space(),s=element("div"),create_component(o.$$.fragment),e=space(),k&&k.c(),c=space(),attr(r,"class","flex"),set_style(s,"display","flex"),set_style(s,"justify-content","left"),set_style(s,"gap","10px")},m(d,w){insert(d,r,w),mount_component(m,r,null),insert(d,v,w),mount_component(f,d,w),insert(d,a,w),p.m(d,w),insert(d,t,w),insert(d,s,w),mount_component(o,s,null),append(s,e),k&&k.m(s,null),insert(d,c,w),u=!0},p(d,w){l=d;const y={};!g&&w&1&&(g=!0,y.value=l[0][l[14]].type,add_flush_callback(()=>g=!1)),m.$set(y),w&1&&safe_not_equal(i,i=l[0][l[14]].type)?(group_outros(),transition_out(p,1,1,noop),check_outros(),p=create_key_block_1(l),p.c(),transition_in(p,1),p.m(t.parentNode,t)):p.p(l,w);const _={};w&32768&&(_.$$scope={dirty:w,ctx:l}),o.$set(_),l[14]!==0&&k.p(l,w)},i(d){u||(transition_in(m.$$.fragment,d),transition_in(f.$$.fragment,d),transition_in(p),transition_in(o.$$.fragment,d),transition_in(k),u=!0)},o(d){transition_out(m.$$.fragment,d),transition_out(f.$$.fragment,d),transition_out(p),transition_out(o.$$.fragment,d),transition_out(k),u=!1},d(d){d&&(detach(r),detach(v),detach(a),detach(t),detach(s),detach(c)),destroy_component(m),destroy_component(f,d),p.d(d),destroy_component(o),k&&k.d()}}}function create_each_block(l){let r,m;return r=new Card({props:{$$slots:{default:[create_default_slot_2$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&32771&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_key_block(l){let r,m,g=ensure_array_like(l[0]),v=[];for(let a=0;atransition_out(v[a],1,1,()=>{v[a]=null});return{c(){for(let a=0;a{"network"in u&&m(1,g=u.network),"address"in u&&m(6,v=u.address),"callback"in u&&m(7,f=u.callback),"operations"in u&&m(0,i=u.operations)},[i,g,a,t,s,o,v,f,e,c]}class TransactionMaker extends SvelteComponent{constructor(r){super(),init(this,r,instance$3,create_fragment$3,safe_not_equal,{network:1,address:6,callback:7,operations:0})}}function create_default_slot$2(l){let r;return{c(){r=text("Fund Wallet")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_fragment$2(l){let r,m,g,v,f,a,i,t,s,o,e;return t=new Button({props:{$$slots:{default:[create_default_slot$2]},$$scope:{ctx:l}}}),t.$on("click",l[1]),{c(){r=element("div"),m=element("h2"),m.textContent="Metamask Account",g=space(),v=text(l[0]),f=space(),a=element("br"),i=space(),create_component(t.$$.fragment),s=space(),o=element("br"),attr(r,"class","w-fit flex-col justify-start p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700")},m(c,u){insert(c,r,u),append(r,m),append(r,g),append(r,v),append(r,f),append(r,a),append(r,i),mount_component(t,r,null),insert(c,s,u),insert(c,o,u),e=!0},p(c,[u]){(!e||u&1)&&set_data(v,c[0]);const h={};u&4&&(h.$$scope={dirty:u,ctx:c}),t.$set(h)},i(c){e||(transition_in(t.$$.fragment,c),e=!0)},o(c){transition_out(t.$$.fragment,c),e=!1},d(c){c&&(detach(r),detach(s),detach(o)),destroy_component(t)}}}function instance$2(l,r,m){let g;component_subscribe(l,address,f=>m(0,g=f));async function v(){await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"fund"}}})}return[g,v]}class Wallet extends SvelteComponent{constructor(r){super(),init(this,r,instance$2,create_fragment$2,safe_not_equal,{})}}function create_title_slot_7$1(l){let r;return{c(){r=element("p"),r.textContent="list the wallet Accounts",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_6$1(l){let r;return{c(){r=element("p"),r.textContent="set The currentAccount",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_5$1(l){let r;return{c(){r=element("p"),r.textContent="get the current Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_4$1(l){let r;return{c(){r=element("p"),r.textContent="import An Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_3$1(l){let r;return{c(){r=element("p"),r.textContent="Create A new Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_2$1(l){let r;return{c(){r=element("p"),r.textContent="rename an Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_1$1(l){let r;return{c(){r=element("p"),r.textContent="import An Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot$1(l){let r;return{c(){r=element("p"),r.textContent="list the wallet Accounts",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot$1(l){let r;return{c(){r=text("Clear All Accounts")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_fragment$1(l){let r,m,g,v,f,a,i,t,s,o,e,c,u,h,b,p,k,d;return r=new FunctionContainer({props:{method:"listAccounts",code:l[0]("listAccounts",{}),params:{},$$slots:{title:[create_title_slot_7$1]},$$scope:{ctx:l}}}),g=new FunctionContainer({props:{method:"setCurrentAccount",code:l[0]("setCurrentAccount",{address:"ADDRESS"}),params:{address:"string"},$$slots:{title:[create_title_slot_6$1]},$$scope:{ctx:l}}}),f=new FunctionContainer({props:{method:"getCurrentAccount",code:l[0]("getCurrentAccount",{}),$$slots:{title:[create_title_slot_5$1]},$$scope:{ctx:l}}}),i=new FunctionContainer({props:{method:"importAccount",code:l[0]("getCurrentAccount",{}),$$slots:{title:[create_title_slot_4$1]},$$scope:{ctx:l}}}),s=new FunctionContainer({props:{method:"createAccount",code:l[0]("getCurrentAccount",{}),params:{name:"string"},$$slots:{title:[create_title_slot_3$1]},$$scope:{ctx:l}}}),e=new FunctionContainer({props:{method:"renameAccount",code:l[0]("getCurrentAccount",{}),params:{address:"string",name:"string"},$$slots:{title:[create_title_slot_2$1]},$$scope:{ctx:l}}}),u=new FunctionContainer({props:{method:"dispPrivateKey",code:l[0]("dispPrivateKey",{}),$$slots:{title:[create_title_slot_1$1]},$$scope:{ctx:l}}}),b=new FunctionContainer({props:{method:"signStr",code:l[0]("signStr",{challenge:"string"}),params:{challenge:"string"},$$slots:{title:[create_title_slot$1]},$$scope:{ctx:l}}}),k=new FunctionButton({props:{method:"clearState",$$slots:{default:[create_default_slot$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),m=space(),create_component(g.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment),t=space(),create_component(s.$$.fragment),o=space(),create_component(e.$$.fragment),c=space(),create_component(u.$$.fragment),h=space(),create_component(b.$$.fragment),p=space(),create_component(k.$$.fragment)},m(w,y){mount_component(r,w,y),insert(w,m,y),mount_component(g,w,y),insert(w,v,y),mount_component(f,w,y),insert(w,a,y),mount_component(i,w,y),insert(w,t,y),mount_component(s,w,y),insert(w,o,y),mount_component(e,w,y),insert(w,c,y),mount_component(u,w,y),insert(w,h,y),mount_component(b,w,y),insert(w,p,y),mount_component(k,w,y),d=!0},p(w,[y]){const _={};y&2&&(_.$$scope={dirty:y,ctx:w}),r.$set(_);const x={};y&2&&(x.$$scope={dirty:y,ctx:w}),g.$set(x);const E={};y&2&&(E.$$scope={dirty:y,ctx:w}),f.$set(E);const S={};y&2&&(S.$$scope={dirty:y,ctx:w}),i.$set(S);const C={};y&2&&(C.$$scope={dirty:y,ctx:w}),s.$set(C);const T={};y&2&&(T.$$scope={dirty:y,ctx:w}),e.$set(T);const R={};y&2&&(R.$$scope={dirty:y,ctx:w}),u.$set(R);const W={};y&2&&(W.$$scope={dirty:y,ctx:w}),b.$set(W);const j={};y&2&&(j.$$scope={dirty:y,ctx:w}),k.$set(j)},i(w){d||(transition_in(r.$$.fragment,w),transition_in(g.$$.fragment,w),transition_in(f.$$.fragment,w),transition_in(i.$$.fragment,w),transition_in(s.$$.fragment,w),transition_in(e.$$.fragment,w),transition_in(u.$$.fragment,w),transition_in(b.$$.fragment,w),transition_in(k.$$.fragment,w),d=!0)},o(w){transition_out(r.$$.fragment,w),transition_out(g.$$.fragment,w),transition_out(f.$$.fragment,w),transition_out(i.$$.fragment,w),transition_out(s.$$.fragment,w),transition_out(e.$$.fragment,w),transition_out(u.$$.fragment,w),transition_out(b.$$.fragment,w),transition_out(k.$$.fragment,w),d=!1},d(w){w&&(detach(m),detach(v),detach(a),detach(t),detach(o),detach(c),detach(h),detach(p)),destroy_component(r,w),destroy_component(g,w),destroy_component(f,w),destroy_component(i,w),destroy_component(s,w),destroy_component(e,w),destroy_component(u,w),destroy_component(b,w),destroy_component(k,w)}}}function instance$1(l){function r(m,g){return` +`):" "+at(Ye[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+Ze,"ERR_NOT_SUPPORT")}return Qe};function Rt(ce){if(ce.cancelToken&&ce.cancelToken.throwIfRequested(),ce.signal&&ce.signal.aborted)throw new Y(null,ce)}function Gt(ce){return Rt(ce),ce.headers=me.from(ce.headers),ce.data=we.call(ce,ce.transformRequest),["post","put","patch"].indexOf(ce.method)!==-1&&ce.headers.setContentType("application/x-www-form-urlencoded",!1),Nt(ce.adapter||ye.adapter)(ce).then(function(Ce){return Rt(ce),Ce.data=we.call(ce,ce.transformResponse,Ce),Ce.headers=me.from(Ce.headers),Ce},function(Ce){return xe(Ce)||(Rt(ce),Ce&&Ce.response&&(Ce.response.data=we.call(ce,ce.transformResponse,Ce.response),Ce.response.headers=me.from(Ce.response.headers))),Promise.reject(Ce)})}const Jt=ce=>ce instanceof me?ce.toJSON():ce;function Ht(ce,Ce){Ce=Ce||{};const Ve={};function Qe(ht,ct,Mt){return X.isPlainObject(ht)&&X.isPlainObject(ct)?X.merge.call({caseless:Mt},ht,ct):X.isPlainObject(ct)?X.merge({},ct):X.isArray(ct)?ct.slice():ct}function Je(ht,ct,Mt){return X.isUndefined(ct)?X.isUndefined(ht)?void 0:Qe(void 0,ht,Mt):Qe(ht,ct,Mt)}function Ye(ht,ct){if(!X.isUndefined(ct))return Qe(void 0,ct)}function Ze(ht,ct){return X.isUndefined(ct)?X.isUndefined(ht)?void 0:Qe(void 0,ht):Qe(void 0,ct)}function yt(ht,ct,Mt){return Mt in Ce?Qe(ht,ct):Mt in ce?Qe(void 0,ht):void 0}const wt={url:Ye,method:Ye,data:Ye,baseURL:Ze,transformRequest:Ze,transformResponse:Ze,paramsSerializer:Ze,timeout:Ze,timeoutMessage:Ze,withCredentials:Ze,withXSRFToken:Ze,adapter:Ze,responseType:Ze,xsrfCookieName:Ze,xsrfHeaderName:Ze,onUploadProgress:Ze,onDownloadProgress:Ze,decompress:Ze,maxContentLength:Ze,maxBodyLength:Ze,beforeRedirect:Ze,transport:Ze,httpAgent:Ze,httpsAgent:Ze,cancelToken:Ze,socketPath:Ze,responseEncoding:Ze,validateStatus:yt,headers:(ht,ct)=>Je(Jt(ht),Jt(ct),!0)};return X.forEach(Object.keys(Object.assign({},ce,Ce)),function(ht){const ct=wt[ht]||Je,Mt=ct(ce[ht],Ce[ht],ht);X.isUndefined(Mt)&&ct!==yt||(Ve[ht]=Mt)}),Ve}const Zt="1.6.2",Vt={};["object","boolean","number","function","string","symbol"].forEach((ce,Ce)=>{Vt[ce]=function(Ve){return typeof Ve===ce||"a"+(Ce<1?"n ":" ")+ce}});const Ut={};Vt.transitional=function(ce,Ce,Ve){function Qe(Je,Ye){return"[Axios v1.6.2] Transitional option '"+Je+"'"+Ye+(Ve?". "+Ve:"")}return(Je,Ye,Ze)=>{if(ce===!1)throw new he(Qe(Ye," has been removed"+(Ce?" in "+Ce:"")),he.ERR_DEPRECATED);return Ce&&!Ut[Ye]&&(Ut[Ye]=!0,console.warn(Qe(Ye," has been deprecated since v"+Ce+" and will be removed in the near future"))),!ce||ce(Je,Ye,Ze)}};const Qt={assertOptions:function(ce,Ce,Ve){if(typeof ce!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const Qe=Object.keys(ce);let Je=Qe.length;for(;Je-- >0;){const Ye=Qe[Je],Ze=Ce[Ye];if(Ze){const yt=ce[Ye],wt=yt===void 0||Ze(yt,Ye,ce);if(wt!==!0)throw new he("option "+Ye+" must be "+wt,he.ERR_BAD_OPTION_VALUE)}else if(Ve!==!0)throw new he("Unknown option "+Ye,he.ERR_BAD_OPTION)}},validators:Vt},en=Qt.validators;class Wt{constructor(Ce){this.defaults=Ce,this.interceptors={request:new H,response:new H}}request(Ce,Ve){typeof Ce=="string"?(Ve=Ve||{}).url=Ce:Ve=Ce||{},Ve=Ht(this.defaults,Ve);const{transitional:Qe,paramsSerializer:Je,headers:Ye}=Ve;Qe!==void 0&&Qt.assertOptions(Qe,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),Je!=null&&(X.isFunction(Je)?Ve.paramsSerializer={serialize:Je}:Qt.assertOptions(Je,{encode:en.function,serialize:en.function},!0)),Ve.method=(Ve.method||this.defaults.method||"get").toLowerCase();let Ze=Ye&&X.merge(Ye.common,Ye[Ve.method]);Ye&&X.forEach(["delete","get","head","post","put","patch","common"],Dt=>{delete Ye[Dt]}),Ve.headers=me.concat(Ze,Ye);const yt=[];let wt=!0;this.interceptors.request.forEach(function(Dt){typeof Dt.runWhen=="function"&&Dt.runWhen(Ve)===!1||(wt=wt&&Dt.synchronous,yt.unshift(Dt.fulfilled,Dt.rejected))});const ht=[];let ct;this.interceptors.response.forEach(function(Dt){ht.push(Dt.fulfilled,Dt.rejected)});let Mt,jt=0;if(!wt){const Dt=[Gt.bind(this),void 0];for(Dt.unshift.apply(Dt,yt),Dt.push.apply(Dt,ht),Mt=Dt.length,ct=Promise.resolve(Ve);jt{if(!Qe._listeners)return;let Ye=Qe._listeners.length;for(;Ye-- >0;)Qe._listeners[Ye](Je);Qe._listeners=null}),this.promise.then=Je=>{let Ye;const Ze=new Promise(yt=>{Qe.subscribe(yt),Ye=yt}).then(Je);return Ze.cancel=function(){Qe.unsubscribe(Ye)},Ze},Ce(function(Je,Ye,Ze){Qe.reason||(Qe.reason=new Y(Je,Ye,Ze),Ve(Qe.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Ce){this.reason?Ce(this.reason):this._listeners?this._listeners.push(Ce):this._listeners=[Ce]}unsubscribe(Ce){if(!this._listeners)return;const Ve=this._listeners.indexOf(Ce);Ve!==-1&&this._listeners.splice(Ve,1)}static source(){let Ce;return{token:new St(function(Ve){Ce=Ve}),cancel:Ce}}}const Bt=St,Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach(([ce,Ce])=>{Tt[Ce]=ce});const Ot=Tt,kt=function ce(Ce){const Ve=new mt(Ce),Qe=s(mt.prototype.request,Ve);return X.extend(Qe,mt.prototype,Ve,{allOwnKeys:!0}),X.extend(Qe,Ve,null,{allOwnKeys:!0}),Qe.create=function(Je){return ce(Ht(Ce,Je))},Qe}(ye);kt.Axios=mt,kt.CanceledError=Y,kt.CancelToken=Bt,kt.isCancel=xe,kt.VERSION=Zt,kt.toFormData=De,kt.AxiosError=he,kt.Cancel=kt.CanceledError,kt.all=function(ce){return Promise.all(ce)},kt.spread=function(ce){return function(Ce){return ce.apply(null,Ce)}},kt.isAxiosError=function(ce){return X.isObject(ce)&&ce.isAxiosError===!0},kt.mergeConfig=Ht,kt.AxiosHeaders=me,kt.formToJSON=ce=>K(X.isHTMLForm(ce)?new FormData(ce):ce),kt.getAdapter=Nt,kt.HttpStatusCode=Ot,kt.default=kt;const ln=kt},4147:f=>{f.exports={i8:"11.1.0"}}},p={};function v(f){var a=p[f];if(a!==void 0)return a.exports;var i=p[f]={id:f,loaded:!1,exports:{}};return g[f].call(i.exports,i,i.exports,v),i.loaded=!0,i.exports}return v.n=f=>{var a=f&&f.__esModule?()=>f.default:()=>f;return v.d(a,{a}),a},v.d=(f,a)=>{for(var i in a)v.o(a,i)&&!v.o(f,i)&&Object.defineProperty(f,i,{enumerable:!0,get:a[i]})},v.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),v.hmd=f=>((f=Object.create(f)).children||(f.children=[]),Object.defineProperty(f,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+f.id)}}),f),v.o=(f,a)=>Object.prototype.hasOwnProperty.call(f,a),v.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},v.nmd=f=>(f.paths=[],f.children||(f.children=[]),f),v(5085)})())})(stellarSdk_min);var stellarSdk_minExports=stellarSdk_min.exports;const OperationParams={"":{type:"",params:{}},createAccount:{type:"createAccount",params:{destination:"string:address",startingBalance:"number"}},payment:{type:"payment",params:{destination:"string:address",asset:"asset",amount:"number"}},pathPaymentStrictReceive:{type:"pathPaymentStrictReceive",params:{sendAsset:"asset",sendMax:"number",destination:"string:address",destAsset:"asset",destAmount:"number",path:"array:asset"}},pathPaymentStrictSend:{type:"pathPaymentStrictSend",params:{sendAsset:"asset",sendAmount:"number",destination:"string:address",destAsset:"asset",destMin:"number",path:"array:asset"}},changeTrust:{type:"changeTrust",params:{asset:"asset",limit:"number"}},allowTrust:{type:"allowTrust",params:{trustor:"string:address",assetCode:"string:assetCode",authorize:"enum:0|1|2"}},setOptions:{type:"setOptions",params:{inflationDest:"optional:string:address",clearFlags:"number",setFlags:"number",masterWeight:"number",lowThreshold:"number",medThreshold:"number",highThreshold:"number",signer:"signer"}},manageOffer:{type:"manageOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price",offerId:"number:offerId"}},manageSellOffer:{type:"manageSellOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price",offerId:"optional:number:offerId"}},manageBuyOffer:{type:"manageBuyOffer",params:{selling:"asset",buying:"asset",buyAmount:"number",price:"price",offerId:"optional:number:offerId"}},createPassiveOffer:{type:"createPassiveOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price"}},createPassiveSellOffer:{type:"createPassiveSellOffer",params:{selling:"asset",buying:"asset",amount:"number",price:"price"}},accountMerge:{type:"accountMerge",params:{destination:"string:address"}},manageData:{type:"manageData",params:{name:"string",value:"string"}},inflation:{type:"inflation",params:{}},bumpSequence:{type:"bumpSequence",params:{bumpTo:"number"}},createClaimableBalance:{type:"createClaimableBalance",params:{asset:"asset",amount:"number",claimants:"array:claimant"}},claimClaimableBalance:{type:"claimClaimableBalance",params:{balanceId:"string:balanceId"}},beginSponsoringFutureReserves:{type:"beginSponsoringFutureReserves",params:{sponsoredId:"string"}},endSponsoringFutureReserves:{type:"endSponsoringFutureReserves",params:{}},revokeSponsorship:{type:"revokeSponsorship",params:"object"},revokeAccountSponsorship:{type:"revokeAccountSponsorship",params:{account:"string:accountId"}},revokeTrustlineSponsorship:{type:"revokeTrustlineSponsorship",params:{account:"string:accountId",asset:"asset"}},revokeOfferSponsorship:{type:"revokeOfferSponsorship",params:{seller:"string:accountId",offerId:"number:offerId"}},revokeDataSponsorship:{type:"revokeDataSponsorship",params:{account:"string:accountId",name:"string"}},revokeClaimableBalanceSponsorship:{type:"revokeClaimableBalanceSponsorship",params:{balanceId:"string:balanceId"}},revokeLiquidityPoolSponsorship:{type:"revokeLiquidityPoolSponsorship",params:{liquidityPoolId:"string:liquidityPoolId"}},revokeSignerSponsorship:{type:"revokeSignerSponsorship",params:{account:"string:accountId",signer:"signer"}},clawback:{type:"clawback",params:{amount:"number",from:"string:address",asset:"asset"}},clawbackClaimableBalance:{type:"clawbackClaimableBalance",params:{balanceId:"string:balanceId"}},setTrustLineFlags:{type:"setTrustLineFlags",params:{asset:"asset",trustor:"string:address",flags:"trustLineFlags"}},liquidityPoolDeposit:{type:"liquidityPoolDeposit",params:{liquidityPoolId:"string:liquidityPoolId",maxAmountA:"number",maxAmountB:"number",minPrice:"price",maxPrice:"price"}},liquidityPoolWithdraw:{type:"liquidityPoolWithdraw",params:{liquidityPoolId:"string:liquidityPoolId",amount:"number",minAmountA:"number",minAmountB:"number"}}};function get_each_context$2(l,r,g){const p=l.slice();return p[18]=r[g],p}function create_if_block_1$2(l){let r,g,p;return g=new Button({props:{color:"light",style:"width:100%;",$$slots:{default:[create_default_slot_3$3]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(g.$$.fragment),set_style(r,"flex","3")},m(v,f){insert(v,r,f),mount_component(g,r,null),p=!0},p(v,f){const a={};f&2097160&&(a.$$scope={dirty:f,ctx:v}),g.$set(a)},i(v){p||(transition_in(g.$$.fragment,v),p=!0)},o(v){transition_out(g.$$.fragment,v),p=!1},d(v){v&&detach(r),destroy_component(g)}}}function create_default_slot_3$3(l){let r,g,p,v,f,a=l[3].code+"",i;return{c(){r=element("img"),v=space(),f=element("p"),i=text(a),attr(r,"height","20"),attr(r,"width","20"),attr(r,"alt",g=l[3].code+" logo"),src_url_equal(r.src,p=l[3].image)||attr(r,"src",p)},m(t,s){insert(t,r,s),insert(t,v,s),insert(t,f,s),append(f,i)},p(t,s){s&8&&g!==(g=t[3].code+" logo")&&attr(r,"alt",g),s&8&&!src_url_equal(r.src,p=t[3].image)&&attr(r,"src",p),s&8&&a!==(a=t[3].code+"")&&set_data(i,a)},d(t){t&&(detach(r),detach(v),detach(f))}}}function create_if_block$3(l){let r,g,p;return g=new Listgroup({props:{$$slots:{default:[create_default_slot$6]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(g.$$.fragment),attr(r,"class","h-36 overflow-y-scroll")},m(v,f){insert(v,r,f),mount_component(g,r,null),p=!0},p(v,f){const a={};f&2097188&&(a.$$scope={dirty:f,ctx:v}),g.$set(a)},i(v){p||(transition_in(g.$$.fragment,v),p=!0)},o(v){transition_out(g.$$.fragment,v),p=!1},d(v){v&&detach(r),destroy_component(g)}}}function create_default_slot_2$3(l){let r,g,p,v,f,a,i,t=l[18].code+"",s,o,e,c,u,h=l[18].domain+"",b,m;return e=new Rating({props:{id:"example-1",total:10,count:!0,size:20,rating:l[18].score.toFixed(1)}}),{c(){r=element("div"),g=element("div"),p=element("img"),a=space(),i=element("p"),s=text(t),o=space(),create_component(e.$$.fragment),c=space(),u=element("p"),b=text(h),attr(p,"height","20"),attr(p,"width","20"),attr(p,"alt",v=l[18].code+" logo"),src_url_equal(p.src,f=l[18].image)||attr(p,"src",f),attr(g,"class","flex"),attr(r,"class","flex-col")},m(k,d){insert(k,r,d),append(r,g),append(g,p),append(g,a),append(g,i),append(i,s),append(g,o),mount_component(e,g,null),append(r,c),append(r,u),append(u,b),m=!0},p(k,d){(!m||d&32&&v!==(v=k[18].code+" logo"))&&attr(p,"alt",v),(!m||d&32&&!src_url_equal(p.src,f=k[18].image))&&attr(p,"src",f),(!m||d&32)&&t!==(t=k[18].code+"")&&set_data(s,t);const w={};d&32&&(w.rating=k[18].score.toFixed(1)),e.$set(w),(!m||d&32)&&h!==(h=k[18].domain+"")&&set_data(b,h)},i(k){m||(transition_in(e.$$.fragment,k),m=!0)},o(k){transition_out(e.$$.fragment,k),m=!1},d(k){k&&detach(r),destroy_component(e)}}}function create_default_slot_1$3(l){let r,g,p;return r=new Button({props:{color:"light",class:"w-full",$$slots:{default:[create_default_slot_2$3]},$$scope:{ctx:l}}}),r.$on("mouseenter",l[14]),r.$on("mouseleave",l[15]),r.$on("click",function(){is_function(l[7](l[18]))&&l[7](l[18]).apply(this,arguments)}),{c(){create_component(r.$$.fragment),g=space()},m(v,f){mount_component(r,v,f),insert(v,g,f),p=!0},p(v,f){l=v;const a={};f&2097184&&(a.$$scope={dirty:f,ctx:l}),r.$set(a)},i(v){p||(transition_in(r.$$.fragment,v),p=!0)},o(v){transition_out(r.$$.fragment,v),p=!1},d(v){v&&detach(g),destroy_component(r,v)}}}function create_each_block$2(l){let r,g;return r=new ListgroupItem({props:{$$slots:{default:[create_default_slot_1$3]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&2097188&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot$6(l){let r,g,p=ensure_array_like(l[5]),v=[];for(let a=0;atransition_out(v[a],1,1,()=>{v[a]=null});return{c(){for(let a=0;abind(p,"value",s)),p.$on("focus",l[12]),p.$on("keyup",l[6]),p.$on("blur",l[13]);let e=l[1]&&create_if_block_1$2(l),c=l[0]&&create_if_block$3(l);return{c(){r=element("div"),g=element("div"),create_component(p.$$.fragment),f=space(),e&&e.c(),a=space(),c&&c.c(),i=empty(),set_style(g,"flex","1"),attr(r,"class","flex")},m(u,h){insert(u,r,h),append(r,g),mount_component(p,g,null),append(r,f),e&&e.m(r,null),insert(u,a,h),c&&c.m(u,h),insert(u,i,h),t=!0},p(u,[h]){const b={};!v&&h&16&&(v=!0,b.value=u[4],add_flush_callback(()=>v=!1)),p.$set(b),u[1]?e?(e.p(u,h),h&2&&transition_in(e,1)):(e=create_if_block_1$2(u),e.c(),transition_in(e,1),e.m(r,null)):e&&(group_outros(),transition_out(e,1,1,()=>{e=null}),check_outros()),u[0]?c?(c.p(u,h),h&1&&transition_in(c,1)):(c=create_if_block$3(u),c.c(),transition_in(c,1),c.m(i.parentNode,i)):c&&(group_outros(),transition_out(c,1,1,()=>{c=null}),check_outros())},i(u){t||(transition_in(p.$$.fragment,u),transition_in(e),transition_in(c),t=!0)},o(u){transition_out(p.$$.fragment,u),transition_out(e),transition_out(c),t=!1},d(u){u&&(detach(r),detach(a),detach(i)),destroy_component(p),e&&e.d(),c&&c.d(u)}}}const stellarImage="https://upload.wikimedia.org/wikipedia/commons/5/56/Stellar_Symbol.png";function getAssetDisp(l){let r,g,p,v;return l.tomlInfo!==void 0?(r=l.tomlInfo.image,g=l.tomlInfo.code):(r="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQErufEdC325ECfUANYh7lzYRbsQxI67-xbjj3kfbovEQ&s",g=l.asset.split("-")[0]),p=l.domain,v=l.asset.split("-")[1],{image:r,code:g,domain:p,asset:v,score:l.rating.trustlines}}async function search_asset(l,r){r==="mainnet"&&(r="public");const g="https://api.stellar.expert/explorer/";console.log("here");const p=await fetch(g+`${r}/asset?search=${l}&limit=8&sort=trustlines`),v=[];if(p.ok){const f=await p.json();console.log(f);const a=f._embedded.records;return console.log(a),v.push(...a),console.log(v),v}}function instance$7(l,r,g){let{ownedAssets:p=[]}=r,{selectedAsset:v}=r,{network:f="mainnet"}=r,a=!1,i=!1,t=!1,s,o="";const e={image:stellarImage,asset:void 0,code:"XLM",domain:"stellar.org",score:10};let c=[...p,e];function u(_){let x=[e];for(let E of _)x.push(getAssetDisp(E));x.push(...p),console.log("search complete setting output array"),g(0,a=!0),g(5,c=x),console.log(x),console.log(c)}function h(){console.log("inputchange"),search_asset(o,f).then(u)}function b(_){return function(E){console.log(E),E.preventDefault(),E.stopPropagation(),console.log("asset is: "),console.log(_.asset),console.log(_),g(8,v=new stellarSdk_minExports.Asset(_.code,_.asset)),console.log(v),g(1,i=!0),g(3,s=_),g(0,a=!1),console.log(v)}}function m(_){o=_,g(4,o)}const k=()=>{g(1,i=!1),g(0,a=!0)},d=()=>t?null:g(0,a=!1),w=()=>g(2,t=!0),y=()=>g(2,t=!1);return l.$$set=_=>{"ownedAssets"in _&&g(9,p=_.ownedAssets),"selectedAsset"in _&&g(8,v=_.selectedAsset),"network"in _&&g(10,f=_.network)},[a,i,t,s,o,c,h,b,v,p,f,m,k,d,w,y]}class AssetSelect extends SvelteComponent{constructor(r){super(),init(this,r,instance$7,create_fragment$7,safe_not_equal,{ownedAssets:9,selectedAsset:8,network:10})}}function get_each_context$1(l,r,g){const p=l.slice();return p[13]=r[g][0],p[14]=r[g][1],p[15]=r,p[16]=g,p}function create_if_block_9(l){let r;return{c(){r=text("*optional")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot$5(l){let r=l[13]+"",g,p=l[14].startsWith("optional:"),v,f=p&&create_if_block_9();return{c(){g=text(r),f&&f.c(),v=empty()},m(a,i){insert(a,g,i),f&&f.m(a,i),insert(a,v,i)},p:noop,d(a){a&&(detach(g),detach(v)),f&&f.d(a)}}}function create_if_block_6(l){let r=l[14].startsWith("optional:string"),g,p=l[14].startsWith("optional:offerId"),v,f,a=r&&create_if_block_8(l),i=p&&create_if_block_7(l);return{c(){a&&a.c(),g=space(),i&&i.c(),v=empty()},m(t,s){a&&a.m(t,s),insert(t,g,s),i&&i.m(t,s),insert(t,v,s),f=!0},p(t,s){r&&a.p(t,s),p&&i.p(t,s)},i(t){f||(transition_in(a),transition_in(i),f=!0)},o(t){transition_out(a),transition_out(i),f=!1},d(t){t&&(detach(g),detach(v)),a&&a.d(t),i&&i.d(t)}}}function create_if_block_8(l){let r,g,p;function v(a){l[4](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_7(l){let r,g,p;function v(a){l[5](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_5(l){let r,g,p;function v(a){l[11](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_4(l){let r,g,p,v,f,a;function i(){l[10].call(r,l[13])}return{c(){r=element("select"),g=element("option"),g.textContent="0",p=element("option"),p.textContent="1",v=element("option"),v.textContent="2",g.__value=0,set_input_value(g,g.__value),p.__value=1,set_input_value(p,p.__value),v.__value=2,set_input_value(v,v.__value),l[0].params[l[13]]===void 0&&add_render_callback(i)},m(t,s){insert(t,r,s),append(r,g),append(r,p),append(r,v),select_option(r,l[0].params[l[13]],!0),f||(a=listen(r,"change",i),f=!0)},p(t,s){l=t,s&5&&select_option(r,l[0].params[l[13]])},i:noop,o:noop,d(t){t&&detach(r),f=!1,a()}}}function create_if_block_3(l){let r,g,p;function v(a){l[9](a,l[13])}let f={network:l[1]};return l[0].params[l[13]]!==void 0&&(f.selectedAsset=l[0].params[l[13]]),r=new AssetSelect({props:f}),binding_callbacks.push(()=>bind(r,"selectedAsset",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};i&2&&(t.network=l[1]),!g&&i&5&&(g=!0,t.selectedAsset=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_2(l){let r,g,p;function v(a){l[8](a,l[13])}let f={type:"number",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block_1$1(l){let r,g,p;function v(a){l[7](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_if_block$2(l){let r,g,p;function v(a){l[6](a,l[13])}let f={type:"text",placeholder:l[13]};return l[0].params[l[13]]!==void 0&&(f.value=l[0].params[l[13]]),r=new Input({props:f}),binding_callbacks.push(()=>bind(r,"value",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};!g&&i&5&&(g=!0,t.value=l[0].params[l[13]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_each_block$1(l,r){let g,p,v,f=r[14].startsWith("optional:"),a,i,t,s,o,e;p=new Label({props:{for:"first_name",class:"mb-2",$$slots:{default:[create_default_slot$5]},$$scope:{ctx:r}}});let c=f&&create_if_block_6(r);const u=[create_if_block$2,create_if_block_1$1,create_if_block_2,create_if_block_3,create_if_block_4,create_if_block_5],h=[];function b(m,k){return m[14].startsWith("string:")?0:m[14]==="string"?1:m[14]==="number"?2:m[14]==="asset"?3:m[14]==="enum:0|1|2"?4:m[14]==="price"?5:-1}return~(i=b(r))&&(t=h[i]=u[i](r)),{key:l,first:null,c(){g=empty(),create_component(p.$$.fragment),v=space(),c&&c.c(),a=space(),t&&t.c(),s=space(),o=element("br"),this.first=g},m(m,k){insert(m,g,k),mount_component(p,m,k),insert(m,v,k),c&&c.m(m,k),insert(m,a,k),~i&&h[i].m(m,k),insert(m,s,k),insert(m,o,k),e=!0},p(m,k){r=m;const d={};k&131072&&(d.$$scope={dirty:k,ctx:r}),p.$set(d),f&&c.p(r,k),t&&t.p(r,k)},i(m){e||(transition_in(p.$$.fragment,m),transition_in(c),transition_in(t),e=!0)},o(m){transition_out(p.$$.fragment,m),transition_out(c),transition_out(t),e=!1},d(m){m&&(detach(g),detach(v),detach(a),detach(s),detach(o)),destroy_component(p,m),c&&c.d(m),~i&&h[i].d(m)}}}function create_fragment$6(l){let r,g=[],p=new Map,v,f=ensure_array_like(Object.entries(l[2].params));const a=i=>i[13];for(let i=0;i{"operationType"in b&&g(3,p=b.operationType),"network"in b&&g(1,v=b.network),"operation"in b&&g(0,f=b.operation)},[f,v,a,p,i,t,s,o,e,c,u,h]}class OperationForm extends SvelteComponent{constructor(r){super(),init(this,r,instance$6,create_fragment$6,safe_not_equal,{operationType:3,network:1,operation:0})}}function get_each_context(l,r,g){const p=l.slice();return p[12]=r[g],p[13]=r,p[14]=g,p}function create_key_block_1(l){let r,g,p;function v(a){l[9](a,l[14])}let f={network:l[1],operationType:l[0][l[14]].type};return l[0][l[14]]!==void 0&&(f.operation=l[0][l[14]]),r=new OperationForm({props:f}),binding_callbacks.push(()=>bind(r,"operation",v)),{c(){create_component(r.$$.fragment)},m(a,i){mount_component(r,a,i),p=!0},p(a,i){l=a;const t={};i&2&&(t.network=l[1]),i&1&&(t.operationType=l[0][l[14]].type),!g&&i&1&&(g=!0,t.operation=l[0][l[14]],add_flush_callback(()=>g=!1)),r.$set(t)},i(a){p||(transition_in(r.$$.fragment,a),p=!0)},o(a){transition_out(r.$$.fragment,a),p=!1},d(a){destroy_component(r,a)}}}function create_default_slot_4$2(l){let r;return{c(){r=text("Add")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_if_block$1(l){let r,g;return r=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_3$2]},$$scope:{ctx:l}}}),r.$on("click",l[3](l[14])),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&32768&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot_3$2(l){let r;return{c(){r=text("remove")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot_2$2(l){let r,g,p,v,f,a,i=l[0][l[14]].type,t,s,o,e,c,u;function h(d){l[8](d,l[14])}let b={placeholder:"Operation Type",items:l[2]};l[0][l[14]].type!==void 0&&(b.value=l[0][l[14]].type),g=new Select({props:b}),binding_callbacks.push(()=>bind(g,"value",h)),f=new Hr({});let m=create_key_block_1(l);o=new Button({props:{size:"xs",$$slots:{default:[create_default_slot_4$2]},$$scope:{ctx:l}}}),o.$on("click",l[4](l[14]));let k=l[14]!==0&&create_if_block$1(l);return{c(){r=element("div"),create_component(g.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),m.c(),t=space(),s=element("div"),create_component(o.$$.fragment),e=space(),k&&k.c(),c=space(),attr(r,"class","flex"),set_style(s,"display","flex"),set_style(s,"justify-content","left"),set_style(s,"gap","10px")},m(d,w){insert(d,r,w),mount_component(g,r,null),insert(d,v,w),mount_component(f,d,w),insert(d,a,w),m.m(d,w),insert(d,t,w),insert(d,s,w),mount_component(o,s,null),append(s,e),k&&k.m(s,null),insert(d,c,w),u=!0},p(d,w){l=d;const y={};!p&&w&1&&(p=!0,y.value=l[0][l[14]].type,add_flush_callback(()=>p=!1)),g.$set(y),w&1&&safe_not_equal(i,i=l[0][l[14]].type)?(group_outros(),transition_out(m,1,1,noop),check_outros(),m=create_key_block_1(l),m.c(),transition_in(m,1),m.m(t.parentNode,t)):m.p(l,w);const _={};w&32768&&(_.$$scope={dirty:w,ctx:l}),o.$set(_),l[14]!==0&&k.p(l,w)},i(d){u||(transition_in(g.$$.fragment,d),transition_in(f.$$.fragment,d),transition_in(m),transition_in(o.$$.fragment,d),transition_in(k),u=!0)},o(d){transition_out(g.$$.fragment,d),transition_out(f.$$.fragment,d),transition_out(m),transition_out(o.$$.fragment,d),transition_out(k),u=!1},d(d){d&&(detach(r),detach(v),detach(a),detach(t),detach(s),detach(c)),destroy_component(g),destroy_component(f,d),m.d(d),destroy_component(o),k&&k.d()}}}function create_each_block(l){let r,g;return r=new Card({props:{$$slots:{default:[create_default_slot_2$2]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&32771&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_key_block(l){let r,g,p=ensure_array_like(l[0]),v=[];for(let a=0;atransition_out(v[a],1,1,()=>{v[a]=null});return{c(){for(let a=0;a{"network"in u&&g(1,p=u.network),"address"in u&&g(6,v=u.address),"callback"in u&&g(7,f=u.callback),"operations"in u&&g(0,i=u.operations)},[i,p,a,t,s,o,v,f,e,c]}class TransactionMaker extends SvelteComponent{constructor(r){super(),init(this,r,instance$5,create_fragment$5,safe_not_equal,{network:1,address:6,callback:7,operations:0})}}function create_default_slot$3(l){let r;return{c(){r=text("Fund Wallet")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_fragment$4(l){let r,g,p,v,f,a,i,t,s,o,e;return t=new Button({props:{$$slots:{default:[create_default_slot$3]},$$scope:{ctx:l}}}),t.$on("click",l[1]),{c(){r=element("div"),g=element("h2"),g.textContent="Metamask Account",p=space(),v=text(l[0]),f=space(),a=element("br"),i=space(),create_component(t.$$.fragment),s=space(),o=element("br"),attr(r,"class","w-fit flex-col justify-start p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700")},m(c,u){insert(c,r,u),append(r,g),append(r,p),append(r,v),append(r,f),append(r,a),append(r,i),mount_component(t,r,null),insert(c,s,u),insert(c,o,u),e=!0},p(c,[u]){(!e||u&1)&&set_data(v,c[0]);const h={};u&4&&(h.$$scope={dirty:u,ctx:c}),t.$set(h)},i(c){e||(transition_in(t.$$.fragment,c),e=!0)},o(c){transition_out(t.$$.fragment,c),e=!1},d(c){c&&(detach(r),detach(s),detach(o)),destroy_component(t)}}}function instance$4(l,r,g){let p;component_subscribe(l,address,f=>g(0,p=f));async function v(){await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"fund"}}})}return[p,v]}class Wallet extends SvelteComponent{constructor(r){super(),init(this,r,instance$4,create_fragment$4,safe_not_equal,{})}}function create_title_slot_7$1(l){let r;return{c(){r=element("p"),r.textContent="list the wallet Accounts",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_6$1(l){let r;return{c(){r=element("p"),r.textContent="set The currentAccount",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_5$1(l){let r;return{c(){r=element("p"),r.textContent="get the current Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_4$1(l){let r;return{c(){r=element("p"),r.textContent="import An Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_3$1(l){let r;return{c(){r=element("p"),r.textContent="Create A new Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_2$1(l){let r;return{c(){r=element("p"),r.textContent="rename an Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_1$1(l){let r;return{c(){r=element("p"),r.textContent="import An Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot$1(l){let r;return{c(){r=element("p"),r.textContent="list the wallet Accounts",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot$2(l){let r;return{c(){r=text("Clear All Accounts")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_fragment$3(l){let r,g,p,v,f,a,i,t,s,o,e,c,u,h,b,m,k,d;return r=new FunctionContainer({props:{method:"listAccounts",code:l[0]("listAccounts",{}),params:{},$$slots:{title:[create_title_slot_7$1]},$$scope:{ctx:l}}}),p=new FunctionContainer({props:{method:"setCurrentAccount",code:l[0]("setCurrentAccount",{address:"ADDRESS"}),params:{address:"string"},$$slots:{title:[create_title_slot_6$1]},$$scope:{ctx:l}}}),f=new FunctionContainer({props:{method:"getCurrentAccount",code:l[0]("getCurrentAccount",{}),$$slots:{title:[create_title_slot_5$1]},$$scope:{ctx:l}}}),i=new FunctionContainer({props:{method:"importAccount",code:l[0]("getCurrentAccount",{}),$$slots:{title:[create_title_slot_4$1]},$$scope:{ctx:l}}}),s=new FunctionContainer({props:{method:"createAccount",code:l[0]("getCurrentAccount",{}),params:{name:"string"},$$slots:{title:[create_title_slot_3$1]},$$scope:{ctx:l}}}),e=new FunctionContainer({props:{method:"renameAccount",code:l[0]("getCurrentAccount",{}),params:{address:"string",name:"string"},$$slots:{title:[create_title_slot_2$1]},$$scope:{ctx:l}}}),u=new FunctionContainer({props:{method:"dispPrivateKey",code:l[0]("dispPrivateKey",{}),$$slots:{title:[create_title_slot_1$1]},$$scope:{ctx:l}}}),b=new FunctionContainer({props:{method:"signStr",code:l[0]("signStr",{challenge:"string"}),params:{challenge:"string"},$$slots:{title:[create_title_slot$1]},$$scope:{ctx:l}}}),k=new FunctionButton({props:{method:"clearState",$$slots:{default:[create_default_slot$2]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment),t=space(),create_component(s.$$.fragment),o=space(),create_component(e.$$.fragment),c=space(),create_component(u.$$.fragment),h=space(),create_component(b.$$.fragment),m=space(),create_component(k.$$.fragment)},m(w,y){mount_component(r,w,y),insert(w,g,y),mount_component(p,w,y),insert(w,v,y),mount_component(f,w,y),insert(w,a,y),mount_component(i,w,y),insert(w,t,y),mount_component(s,w,y),insert(w,o,y),mount_component(e,w,y),insert(w,c,y),mount_component(u,w,y),insert(w,h,y),mount_component(b,w,y),insert(w,m,y),mount_component(k,w,y),d=!0},p(w,[y]){const _={};y&2&&(_.$$scope={dirty:y,ctx:w}),r.$set(_);const x={};y&2&&(x.$$scope={dirty:y,ctx:w}),p.$set(x);const E={};y&2&&(E.$$scope={dirty:y,ctx:w}),f.$set(E);const S={};y&2&&(S.$$scope={dirty:y,ctx:w}),i.$set(S);const C={};y&2&&(C.$$scope={dirty:y,ctx:w}),s.$set(C);const T={};y&2&&(T.$$scope={dirty:y,ctx:w}),e.$set(T);const R={};y&2&&(R.$$scope={dirty:y,ctx:w}),u.$set(R);const W={};y&2&&(W.$$scope={dirty:y,ctx:w}),b.$set(W);const j={};y&2&&(j.$$scope={dirty:y,ctx:w}),k.$set(j)},i(w){d||(transition_in(r.$$.fragment,w),transition_in(p.$$.fragment,w),transition_in(f.$$.fragment,w),transition_in(i.$$.fragment,w),transition_in(s.$$.fragment,w),transition_in(e.$$.fragment,w),transition_in(u.$$.fragment,w),transition_in(b.$$.fragment,w),transition_in(k.$$.fragment,w),d=!0)},o(w){transition_out(r.$$.fragment,w),transition_out(p.$$.fragment,w),transition_out(f.$$.fragment,w),transition_out(i.$$.fragment,w),transition_out(s.$$.fragment,w),transition_out(e.$$.fragment,w),transition_out(u.$$.fragment,w),transition_out(b.$$.fragment,w),transition_out(k.$$.fragment,w),d=!1},d(w){w&&(detach(g),detach(v),detach(a),detach(t),detach(o),detach(c),detach(h),detach(m)),destroy_component(r,w),destroy_component(p,w),destroy_component(f,w),destroy_component(i,w),destroy_component(s,w),destroy_component(e,w),destroy_component(u,w),destroy_component(b,w),destroy_component(k,w)}}}function instance$3(l){function r(g,p){return` window.ethereum.request({ method: 'wallet_invokeSnap', params: { snapId: '${snapId}', request: { - method: '${m}', - params: ${JSON.stringify(g)} + method: '${g}', + params: ${JSON.stringify(p)} }, }, }) .then((result)=>alert(JSON.stringify(result))) - `}return[r]}class WalletPage extends SvelteComponent{constructor(r){super(),init(this,r,instance$1,create_fragment$1,safe_not_equal,{})}}const App_svelte_svelte_type_style_lang="";function create_default_slot_12(l){let r;return{c(){r=element("div"),r.innerHTML='

on Metamask

',set_style(r,"display","flex"),set_style(r,"flex-direction","column"),set_style(r,"justify-content","left")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_11(l){let r,m;return r=new ConnectButton({props:{callback:l[6]}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p:noop,i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_10(l){let r,m;return r=new NavLi({props:{$$slots:{default:[create_default_slot_11]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},p(g,v){const f={};v&512&&(f.$$scope={dirty:v,ctx:g}),r.$set(f)},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_default_slot_9(l){let r,m,g,v,f,a;return r=new NavBrand({props:{href:"/",$$slots:{default:[create_default_slot_12]},$$scope:{ctx:l}}}),g=new NavHamburger({}),f=new NavUl({props:{$$slots:{default:[create_default_slot_10]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),m=space(),create_component(g.$$.fragment),v=space(),create_component(f.$$.fragment)},m(i,t){mount_component(r,i,t),insert(i,m,t),mount_component(g,i,t),insert(i,v,t),mount_component(f,i,t),a=!0},p(i,t){const s={};t&512&&(s.$$scope={dirty:t,ctx:i}),r.$set(s);const o={};t&512&&(o.$$scope={dirty:t,ctx:i}),f.$set(o)},i(i){a||(transition_in(r.$$.fragment,i),transition_in(g.$$.fragment,i),transition_in(f.$$.fragment,i),a=!0)},o(i){transition_out(r.$$.fragment,i),transition_out(g.$$.fragment,i),transition_out(f.$$.fragment,i),a=!1},d(i){i&&(detach(m),detach(v)),destroy_component(r,i),destroy_component(g,i),destroy_component(f,i)}}}function create_if_block_1(l){let r,m,g,v,f;return m=new Chasing({props:{color:"#6366f1"}}),{c(){r=element("div"),create_component(m.$$.fragment),g=space(),v=element("p"),v.textContent="Funding Your testnet and Futurenet Accounts. Please Wait.",set_style(v,"color","white background-color:black"),attr(r,"class","flex")},m(a,i){insert(a,r,i),mount_component(m,r,null),append(r,g),append(r,v),f=!0},i(a){f||(transition_in(m.$$.fragment,a),f=!0)},o(a){transition_out(m.$$.fragment,a),f=!1},d(a){a&&detach(r),destroy_component(m)}}}function create_else_block(l){let r,m,g,v,f,a,i,t,s,o,e,c;return t=new ConnectButton({}),{c(){r=element("section"),m=element("div"),g=element("h1"),g.textContent="Unlock The Power of Stellar with Metamask",v=space(),f=element("p"),f.textContent="Unlock Stellar to 30 Million Metamask Users",a=space(),i=element("div"),create_component(t.$$.fragment),s=space(),o=element("a"),o.textContent="Learn more",attr(g,"class","mb-4 px-10 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white"),set_style(f,"text-align","left"),set_style(f,"padding-right","40%"),attr(f,"class","mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-10 lg:px-10 dark:text-gray-400"),attr(o,"href","https://www.youtube.com/watch?v=-VenhahQ5zo"),attr(o,"target","_blank"),attr(o,"class","inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-700 dark:focus:ring-gray-800"),attr(i,"class","flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0 sm:space-x-4"),attr(m,"class","py-8 px-10 mx-auto max-w-screen-xl text-left lg:py-16"),attr(r,"class","bg-no-repeat bg-[url('https://chaindebrief.com/wp-content/uploads/2021/08/Metamask-logo.png')] bg-blend-multiply")},m(u,h){insert(u,r,h),append(r,m),append(m,g),append(m,v),append(m,f),append(m,a),append(m,i),mount_component(t,i,null),append(i,s),append(i,o),c=!0},p:noop,i(u){c||(transition_in(t.$$.fragment,u),u&&add_render_callback(()=>{c&&(e||(e=create_bidirectional_transition(r,fade,{delay:0,duration:300},!0)),e.run(1))}),c=!0)},o(u){transition_out(t.$$.fragment,u),u&&(e||(e=create_bidirectional_transition(r,fade,{delay:0,duration:300},!1)),e.run(0)),c=!1},d(u){u&&detach(r),destroy_component(t),u&&e&&e.end()}}}function create_if_block(l){let r,m,g,v,f,a,i,t,s,o;return m=new Wallet({}),v=new Toggle({props:{checked:!0,$$slots:{default:[create_default_slot_8]},$$scope:{ctx:l}}}),v.$on("change",l[7]),t=new Tabs({props:{defaultClass:"flex",$$slots:{default:[create_default_slot]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(m.$$.fragment),g=space(),create_component(v.$$.fragment),f=space(),a=element("br"),i=space(),create_component(t.$$.fragment)},m(e,c){insert(e,r,c),mount_component(m,r,null),append(r,g),mount_component(v,r,null),append(r,f),append(r,a),append(r,i),mount_component(t,r,null),o=!0},p(e,c){const u={};c&512&&(u.$$scope={dirty:c,ctx:e}),v.$set(u);const h={};c&534&&(h.$$scope={dirty:c,ctx:e}),t.$set(h)},i(e){o||(transition_in(m.$$.fragment,e),transition_in(v.$$.fragment,e),transition_in(t.$$.fragment,e),e&&add_render_callback(()=>{o&&(s||(s=create_bidirectional_transition(r,fade,{delay:0,duration:300},!0)),s.run(1))}),o=!0)},o(e){transition_out(m.$$.fragment,e),transition_out(v.$$.fragment,e),transition_out(t.$$.fragment,e),e&&(s||(s=create_bidirectional_transition(r,fade,{delay:0,duration:300},!1)),s.run(0)),o=!1},d(e){e&&detach(r),destroy_component(m),destroy_component(v),destroy_component(t),e&&s&&s.end()}}}function create_default_slot_8(l){let r;return{c(){r=text("Testnet")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_title_slot_16(l){let r;return{c(){r=element("p"),r.textContent="Get Address of Wallet",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_15(l){let r;return{c(){r=element("p"),r.textContent="display the address of the Wallet",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_14(l){let r;return{c(){r=element("p"),r.textContent="Get Balance of Wallet",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_13(l){let r;return{c(){r=element("p"),r.textContent="Get Account Info",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_12(l){let r;return{c(){r=element("p"),r.textContent="Get Account Assets",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_11(l){let r;return{c(){r=element("p"),r.textContent="create federation Account",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_10(l){let r;return{c(){r=element("p"),r.textContent="look up federation address (0xdfnsklf....)",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_9(l){let r;return{c(){r=element("p"),r.textContent="look up federation address (example*metastellar.io)",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_8(l){let r;return{c(){r=element("p"),r.textContent="get the federation name of the wallet",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_7(l){let r,m,g,v,f,a,i,t,s,o,e,c,u,h,b,p,k,d,w;return m=new FunctionContainer({props:{code:l[5]("getAddress",{testnet:l[1]}),testnet:l[1],method:"getAddress",$$slots:{title:[create_title_slot_16]},$$scope:{ctx:l}}}),v=new FunctionContainer({props:{code:l[5]("showAddress",{testnet:l[1]}),testnet:l[1],method:"showAddress",$$slots:{title:[create_title_slot_15]},$$scope:{ctx:l}}}),a=new FunctionContainer({props:{code:l[5]("getBalance",{testnet:l[1]}),testnet:l[1],method:"getBalance",$$slots:{title:[create_title_slot_14]},$$scope:{ctx:l}}}),t=new FunctionContainer({props:{code:l[5]("getAccountInfo",{testnet:l[1]}),testnet:l[1],method:"getAccountInfo",$$slots:{title:[create_title_slot_13]},$$scope:{ctx:l}}}),o=new FunctionContainer({props:{code:l[5]("getAssets",{testnet:l[1]}),testnet:l[1],method:"getAssets",$$slots:{title:[create_title_slot_12]},$$scope:{ctx:l}}}),c=new FunctionContainer({props:{method:"createFederationAccount",code:l[5]("createFederationAccount",{}),params:{},$$slots:{title:[create_title_slot_11]},$$scope:{ctx:l}}}),h=new FunctionContainer({props:{method:"lookUpFedAccountByAddress",code:l[5]("lookUpFedAccountByAddress",{address:"string"}),params:{address:"string:"},$$slots:{title:[create_title_slot_10]},$$scope:{ctx:l}}}),p=new FunctionContainer({props:{method:"lookUpFedAccountByName",code:l[5]("lookUpFedAccountByName",{url:"string"}),params:{url:"string:"},$$slots:{title:[create_title_slot_9]},$$scope:{ctx:l}}}),d=new FunctionContainer({props:{method:"getWalletName",code:l[5]("getWalletName",{}),params:{},$$slots:{title:[create_title_slot_8]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(m.$$.fragment),g=space(),create_component(v.$$.fragment),f=space(),create_component(a.$$.fragment),i=space(),create_component(t.$$.fragment),s=space(),create_component(o.$$.fragment),e=space(),create_component(c.$$.fragment),u=space(),create_component(h.$$.fragment),b=space(),create_component(p.$$.fragment),k=space(),create_component(d.$$.fragment),attr(r,"class","grid-container svelte-17jvefj")},m(y,_){insert(y,r,_),mount_component(m,r,null),append(r,g),mount_component(v,r,null),append(r,f),mount_component(a,r,null),append(r,i),mount_component(t,r,null),append(r,s),mount_component(o,r,null),append(r,e),mount_component(c,r,null),append(r,u),mount_component(h,r,null),append(r,b),mount_component(p,r,null),append(r,k),mount_component(d,r,null),w=!0},p(y,_){const x={};_&2&&(x.code=y[5]("getAddress",{testnet:y[1]})),_&2&&(x.testnet=y[1]),_&512&&(x.$$scope={dirty:_,ctx:y}),m.$set(x);const E={};_&2&&(E.code=y[5]("showAddress",{testnet:y[1]})),_&2&&(E.testnet=y[1]),_&512&&(E.$$scope={dirty:_,ctx:y}),v.$set(E);const S={};_&2&&(S.code=y[5]("getBalance",{testnet:y[1]})),_&2&&(S.testnet=y[1]),_&512&&(S.$$scope={dirty:_,ctx:y}),a.$set(S);const C={};_&2&&(C.code=y[5]("getAccountInfo",{testnet:y[1]})),_&2&&(C.testnet=y[1]),_&512&&(C.$$scope={dirty:_,ctx:y}),t.$set(C);const T={};_&2&&(T.code=y[5]("getAssets",{testnet:y[1]})),_&2&&(T.testnet=y[1]),_&512&&(T.$$scope={dirty:_,ctx:y}),o.$set(T);const R={};_&512&&(R.$$scope={dirty:_,ctx:y}),c.$set(R);const W={};_&512&&(W.$$scope={dirty:_,ctx:y}),h.$set(W);const j={};_&512&&(j.$$scope={dirty:_,ctx:y}),p.$set(j);const L={};_&512&&(L.$$scope={dirty:_,ctx:y}),d.$set(L)},i(y){w||(transition_in(m.$$.fragment,y),transition_in(v.$$.fragment,y),transition_in(a.$$.fragment,y),transition_in(t.$$.fragment,y),transition_in(o.$$.fragment,y),transition_in(c.$$.fragment,y),transition_in(h.$$.fragment,y),transition_in(p.$$.fragment,y),transition_in(d.$$.fragment,y),w=!0)},o(y){transition_out(m.$$.fragment,y),transition_out(v.$$.fragment,y),transition_out(a.$$.fragment,y),transition_out(t.$$.fragment,y),transition_out(o.$$.fragment,y),transition_out(c.$$.fragment,y),transition_out(h.$$.fragment,y),transition_out(p.$$.fragment,y),transition_out(d.$$.fragment,y),w=!1},d(y){y&&detach(r),destroy_component(m),destroy_component(v),destroy_component(a),destroy_component(t),destroy_component(o),destroy_component(c),destroy_component(h),destroy_component(p),destroy_component(d)}}}function create_title_slot_7(l){let r;return{c(){r=element("span"),r.textContent="Query Stellar",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_6(l){let r,m;return r=new WalletPage({}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_title_slot_6(l){let r;return{c(){r=element("span"),r.textContent="Wallet Functions",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_5(l){let r;return{c(){r=element("p"),r.textContent="TRANSFER XLM",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_5(l){let r;return{c(){r=element("br")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_title_slot_4(l){let r;return{c(){r=element("p"),r.textContent="Sign Transaction",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_4(l){let r,m,g,v,f,a,i;return g=new FunctionContainer({props:{code:l[5]("transfer",{to:"GDPZOWVRHQV2SQ3N47CILKNU4NZQOXYDVXGKKJI32TVWIF7V7364G2QM",amount:"1"}),params:{to:"string:GDPZOWVRHQV2SQ3N47CILKNU4NZQOXYDVXGKKJI32TVWIF7V7364G2QM",amount:"number:0"},testnet:l[1],method:"transfer",$$slots:{title:[create_title_slot_5]},$$scope:{ctx:l}}}),a=new FunctionContainer({props:{method:"signTransaction",code:` -async function signTransaction(){ - const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); - + `}return[r]}class WalletPage extends SvelteComponent{constructor(r){super(),init(this,r,instance$3,create_fragment$3,safe_not_equal,{})}}function create_default_slot_8$1(l){let r;return{c(){r=element("div"),r.innerHTML='

on Metamask

',set_style(r,"display","flex"),set_style(r,"flex-direction","column"),set_style(r,"justify-content","left")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_7$1(l){let r;return{c(){r=text("Demo")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot_6$1(l){let r;return{c(){r=text("Docs")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot_5$1(l){let r;return{c(){r=text("FAQ")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot_4$1(l){let r;return{c(){r=text("Wallet")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_default_slot_3$1(l){let r,g,p,v,f,a,i,t;return r=new NavLi({props:{active:!0,$$slots:{default:[create_default_slot_7$1]},$$scope:{ctx:l}}}),p=new NavLi({props:{$$slots:{default:[create_default_slot_6$1]},$$scope:{ctx:l}}}),f=new NavLi({props:{$$slots:{default:[create_default_slot_5$1]},$$scope:{ctx:l}}}),i=new NavLi({props:{$$slots:{default:[create_default_slot_4$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment)},m(s,o){mount_component(r,s,o),insert(s,g,o),mount_component(p,s,o),insert(s,v,o),mount_component(f,s,o),insert(s,a,o),mount_component(i,s,o),t=!0},p(s,o){const e={};o&4&&(e.$$scope={dirty:o,ctx:s}),r.$set(e);const c={};o&4&&(c.$$scope={dirty:o,ctx:s}),p.$set(c);const u={};o&4&&(u.$$scope={dirty:o,ctx:s}),f.$set(u);const h={};o&4&&(h.$$scope={dirty:o,ctx:s}),i.$set(h)},i(s){t||(transition_in(r.$$.fragment,s),transition_in(p.$$.fragment,s),transition_in(f.$$.fragment,s),transition_in(i.$$.fragment,s),t=!0)},o(s){transition_out(r.$$.fragment,s),transition_out(p.$$.fragment,s),transition_out(f.$$.fragment,s),transition_out(i.$$.fragment,s),t=!1},d(s){s&&(detach(g),detach(v),detach(a)),destroy_component(r,s),destroy_component(p,s),destroy_component(f,s),destroy_component(i,s)}}}function create_default_slot_2$1(l){let r,g;return r=new ConnectButton({props:{callback:l[0]}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p:noop,i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot_1$1(l){let r,g;return r=new NavLi({props:{$$slots:{default:[create_default_slot_2$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,v){const f={};v&4&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_default_slot$1(l){let r,g,p,v,f,a,i,t;return r=new NavBrand({props:{href:"/",$$slots:{default:[create_default_slot_8$1]},$$scope:{ctx:l}}}),p=new NavHamburger({}),f=new NavUl({props:{$$slots:{default:[create_default_slot_3$1]},$$scope:{ctx:l}}}),i=new NavUl({props:{$$slots:{default:[create_default_slot_1$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment)},m(s,o){mount_component(r,s,o),insert(s,g,o),mount_component(p,s,o),insert(s,v,o),mount_component(f,s,o),insert(s,a,o),mount_component(i,s,o),t=!0},p(s,o){const e={};o&4&&(e.$$scope={dirty:o,ctx:s}),r.$set(e);const c={};o&4&&(c.$$scope={dirty:o,ctx:s}),f.$set(c);const u={};o&4&&(u.$$scope={dirty:o,ctx:s}),i.$set(u)},i(s){t||(transition_in(r.$$.fragment,s),transition_in(p.$$.fragment,s),transition_in(f.$$.fragment,s),transition_in(i.$$.fragment,s),t=!0)},o(s){transition_out(r.$$.fragment,s),transition_out(p.$$.fragment,s),transition_out(f.$$.fragment,s),transition_out(i.$$.fragment,s),t=!1},d(s){s&&(detach(g),detach(v),detach(a)),destroy_component(r,s),destroy_component(p,s),destroy_component(f,s),destroy_component(i,s)}}}function create_fragment$2(l){let r,g;return r=new Navbar({props:{rounded:!0,$$slots:{default:[create_default_slot$1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},p(p,[v]){const f={};v&4&&(f.$$scope={dirty:v,ctx:p}),r.$set(f)},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function instance$2(l,r,g){let{loading:p=!1}=r;async function v(){g(1,p=!0);try{console.log("in here");const f=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"fund"}}});console.log(f)}catch{}g(1,p=!1)}return l.$$set=f=>{"loading"in f&&g(1,p=f.loading)},[v,p]}class Header extends SvelteComponent{constructor(r){super(),init(this,r,instance$2,create_fragment$2,safe_not_equal,{loading:1})}}const Demo_svelte_svelte_type_style_lang="";function create_if_block_1(l){let r,g,p,v,f;return g=new Chasing({props:{color:"#6366f1"}}),{c(){r=element("div"),create_component(g.$$.fragment),p=space(),v=element("p"),v.textContent="Funding Your testnet and Futurenet Accounts. Please Wait.",set_style(v,"color","white background-color:black"),attr(r,"class","flex")},m(a,i){insert(a,r,i),mount_component(g,r,null),append(r,p),append(r,v),f=!0},i(a){f||(transition_in(g.$$.fragment,a),f=!0)},o(a){transition_out(g.$$.fragment,a),f=!1},d(a){a&&detach(r),destroy_component(g)}}}function create_else_block(l){let r,g,p,v,f,a,i,t,s,o,e,c;return t=new ConnectButton({}),{c(){r=element("section"),g=element("div"),p=element("h1"),p.textContent="Unlock The Power of Stellar with Metamask",v=space(),f=element("p"),f.textContent="Unlock Stellar to 30 Million Metamask Users",a=space(),i=element("div"),create_component(t.$$.fragment),s=space(),o=element("a"),o.textContent="Learn more",attr(p,"class","mb-4 px-10 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white"),set_style(f,"text-align","left"),set_style(f,"padding-right","40%"),attr(f,"class","mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-10 lg:px-10 dark:text-gray-400"),attr(o,"href","https://www.youtube.com/watch?v=-VenhahQ5zo"),attr(o,"target","_blank"),attr(o,"class","inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-700 dark:focus:ring-gray-800"),attr(i,"class","flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0 sm:space-x-4"),attr(g,"class","py-8 px-10 mx-auto max-w-screen-xl text-left lg:py-16"),attr(r,"class","bg-no-repeat bg-[url('https://chaindebrief.com/wp-content/uploads/2021/08/Metamask-logo.png')] bg-blend-multiply")},m(u,h){insert(u,r,h),append(r,g),append(g,p),append(g,v),append(g,f),append(g,a),append(g,i),mount_component(t,i,null),append(i,s),append(i,o),c=!0},p:noop,i(u){c||(transition_in(t.$$.fragment,u),u&&add_render_callback(()=>{c&&(e||(e=create_bidirectional_transition(r,fade,{delay:0,duration:300},!0)),e.run(1))}),c=!0)},o(u){transition_out(t.$$.fragment,u),u&&(e||(e=create_bidirectional_transition(r,fade,{delay:0,duration:300},!1)),e.run(0)),c=!1},d(u){u&&detach(r),destroy_component(t),u&&e&&e.end()}}}function create_if_block(l){let r,g,p,v,f,a,i,t,s,o;return g=new Wallet({}),v=new Toggle({props:{checked:!0,$$slots:{default:[create_default_slot_8]},$$scope:{ctx:l}}}),v.$on("change",l[6]),t=new Tabs({props:{defaultClass:"flex",$$slots:{default:[create_default_slot]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(g.$$.fragment),p=space(),create_component(v.$$.fragment),f=space(),a=element("br"),i=space(),create_component(t.$$.fragment)},m(e,c){insert(e,r,c),mount_component(g,r,null),append(r,p),mount_component(v,r,null),append(r,f),append(r,a),append(r,i),mount_component(t,r,null),o=!0},p(e,c){const u={};c&256&&(u.$$scope={dirty:c,ctx:e}),v.$set(u);const h={};c&278&&(h.$$scope={dirty:c,ctx:e}),t.$set(h)},i(e){o||(transition_in(g.$$.fragment,e),transition_in(v.$$.fragment,e),transition_in(t.$$.fragment,e),e&&add_render_callback(()=>{o&&(s||(s=create_bidirectional_transition(r,fade,{delay:0,duration:300},!0)),s.run(1))}),o=!0)},o(e){transition_out(g.$$.fragment,e),transition_out(v.$$.fragment,e),transition_out(t.$$.fragment,e),e&&(s||(s=create_bidirectional_transition(r,fade,{delay:0,duration:300},!1)),s.run(0)),o=!1},d(e){e&&detach(r),destroy_component(g),destroy_component(v),destroy_component(t),e&&s&&s.end()}}}function create_default_slot_8(l){let r;return{c(){r=text("Testnet")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_title_slot_16(l){let r;return{c(){r=element("p"),r.textContent="Get Address of Wallet",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_15(l){let r;return{c(){r=element("p"),r.textContent="display the address of the Wallet",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_14(l){let r;return{c(){r=element("p"),r.textContent="Get Balance of Wallet",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_13(l){let r;return{c(){r=element("p"),r.textContent="Get Account Info",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_12(l){let r;return{c(){r=element("p"),r.textContent="Get Account Assets",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_11(l){let r;return{c(){r=element("p"),r.textContent="create federation Account",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_10(l){let r;return{c(){r=element("p"),r.textContent="look up federation address (0xdfnsklf....)",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_9(l){let r;return{c(){r=element("p"),r.textContent="look up federation address (example*metastellar.io)",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_8(l){let r;return{c(){r=element("p"),r.textContent="get the federation name of the wallet",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_7(l){let r,g,p,v,f,a,i,t,s,o,e,c,u,h,b,m,k,d,w;return g=new FunctionContainer({props:{code:l[5]("getAddress",{testnet:l[1]}),testnet:l[1],method:"getAddress",$$slots:{title:[create_title_slot_16]},$$scope:{ctx:l}}}),v=new FunctionContainer({props:{code:l[5]("showAddress",{testnet:l[1]}),testnet:l[1],method:"showAddress",$$slots:{title:[create_title_slot_15]},$$scope:{ctx:l}}}),a=new FunctionContainer({props:{code:l[5]("getBalance",{testnet:l[1]}),testnet:l[1],method:"getBalance",$$slots:{title:[create_title_slot_14]},$$scope:{ctx:l}}}),t=new FunctionContainer({props:{code:l[5]("getAccountInfo",{testnet:l[1]}),testnet:l[1],method:"getAccountInfo",$$slots:{title:[create_title_slot_13]},$$scope:{ctx:l}}}),o=new FunctionContainer({props:{code:l[5]("getAssets",{testnet:l[1]}),testnet:l[1],method:"getAssets",$$slots:{title:[create_title_slot_12]},$$scope:{ctx:l}}}),c=new FunctionContainer({props:{method:"createFederationAccount",code:l[5]("createFederationAccount",{}),params:{},$$slots:{title:[create_title_slot_11]},$$scope:{ctx:l}}}),h=new FunctionContainer({props:{method:"lookUpFedAccountByAddress",code:l[5]("lookUpFedAccountByAddress",{address:"string"}),params:{address:"string:"},$$slots:{title:[create_title_slot_10]},$$scope:{ctx:l}}}),m=new FunctionContainer({props:{method:"lookUpFedAccountByName",code:l[5]("lookUpFedAccountByName",{url:"string"}),params:{url:"string:"},$$slots:{title:[create_title_slot_9]},$$scope:{ctx:l}}}),d=new FunctionContainer({props:{method:"getWalletName",code:l[5]("getWalletName",{}),params:{},$$slots:{title:[create_title_slot_8]},$$scope:{ctx:l}}}),{c(){r=element("div"),create_component(g.$$.fragment),p=space(),create_component(v.$$.fragment),f=space(),create_component(a.$$.fragment),i=space(),create_component(t.$$.fragment),s=space(),create_component(o.$$.fragment),e=space(),create_component(c.$$.fragment),u=space(),create_component(h.$$.fragment),b=space(),create_component(m.$$.fragment),k=space(),create_component(d.$$.fragment),attr(r,"class","grid-container svelte-kpde8f")},m(y,_){insert(y,r,_),mount_component(g,r,null),append(r,p),mount_component(v,r,null),append(r,f),mount_component(a,r,null),append(r,i),mount_component(t,r,null),append(r,s),mount_component(o,r,null),append(r,e),mount_component(c,r,null),append(r,u),mount_component(h,r,null),append(r,b),mount_component(m,r,null),append(r,k),mount_component(d,r,null),w=!0},p(y,_){const x={};_&2&&(x.code=y[5]("getAddress",{testnet:y[1]})),_&2&&(x.testnet=y[1]),_&256&&(x.$$scope={dirty:_,ctx:y}),g.$set(x);const E={};_&2&&(E.code=y[5]("showAddress",{testnet:y[1]})),_&2&&(E.testnet=y[1]),_&256&&(E.$$scope={dirty:_,ctx:y}),v.$set(E);const S={};_&2&&(S.code=y[5]("getBalance",{testnet:y[1]})),_&2&&(S.testnet=y[1]),_&256&&(S.$$scope={dirty:_,ctx:y}),a.$set(S);const C={};_&2&&(C.code=y[5]("getAccountInfo",{testnet:y[1]})),_&2&&(C.testnet=y[1]),_&256&&(C.$$scope={dirty:_,ctx:y}),t.$set(C);const T={};_&2&&(T.code=y[5]("getAssets",{testnet:y[1]})),_&2&&(T.testnet=y[1]),_&256&&(T.$$scope={dirty:_,ctx:y}),o.$set(T);const R={};_&256&&(R.$$scope={dirty:_,ctx:y}),c.$set(R);const W={};_&256&&(W.$$scope={dirty:_,ctx:y}),h.$set(W);const j={};_&256&&(j.$$scope={dirty:_,ctx:y}),m.$set(j);const L={};_&256&&(L.$$scope={dirty:_,ctx:y}),d.$set(L)},i(y){w||(transition_in(g.$$.fragment,y),transition_in(v.$$.fragment,y),transition_in(a.$$.fragment,y),transition_in(t.$$.fragment,y),transition_in(o.$$.fragment,y),transition_in(c.$$.fragment,y),transition_in(h.$$.fragment,y),transition_in(m.$$.fragment,y),transition_in(d.$$.fragment,y),w=!0)},o(y){transition_out(g.$$.fragment,y),transition_out(v.$$.fragment,y),transition_out(a.$$.fragment,y),transition_out(t.$$.fragment,y),transition_out(o.$$.fragment,y),transition_out(c.$$.fragment,y),transition_out(h.$$.fragment,y),transition_out(m.$$.fragment,y),transition_out(d.$$.fragment,y),w=!1},d(y){y&&detach(r),destroy_component(g),destroy_component(v),destroy_component(a),destroy_component(t),destroy_component(o),destroy_component(c),destroy_component(h),destroy_component(m),destroy_component(d)}}}function create_title_slot_7(l){let r;return{c(){r=element("span"),r.textContent="Query Stellar",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_6(l){let r,g;return r=new WalletPage({}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_title_slot_6(l){let r;return{c(){r=element("span"),r.textContent="Wallet Functions",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_5(l){let r;return{c(){r=element("p"),r.textContent="TRANSFER XLM",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_5(l){let r;return{c(){r=element("br")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_title_slot_4(l){let r;return{c(){r=element("p"),r.textContent="Sign Transaction",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_4(l){let r,g,p,v,f,a,i;return p=new FunctionContainer({props:{code:l[5]("transfer",{to:"GDPZOWVRHQV2SQ3N47CILKNU4NZQOXYDVXGKKJI32TVWIF7V7364G2QM",amount:"1"}),params:{to:"string:GDPZOWVRHQV2SQ3N47CILKNU4NZQOXYDVXGKKJI32TVWIF7V7364G2QM",amount:"number:0"},testnet:l[1],method:"transfer",$$slots:{title:[create_title_slot_5]},$$scope:{ctx:l}}}),a=new FunctionContainer({props:{method:"signTransaction",code:` + async function signTransaction(){ + const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); - const sourcePublicKey = await ethereum.request({ + + const sourcePublicKey = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:'${snapId}', request:{ + method: 'getAddress', + }} + }) + const account = await server.loadAccount(sourcePublicKey); + const fee = await server.fetchBaseFee(); + console.log("base fee is"); + console.log(fee); + const receiverPublicKey = 'GAIRISXKPLOWZBMFRPU5XRGUUX3VMA3ZEWKBM5MSNRU3CHV6P4PYZ74D'; + console.log("metamask public key: "); + console.log(sourcePublicKey); + console.log("account is"); + console.log(account); + console.log("building Transaction"); + + + const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); + // Add a payment operation to the transaction + console.log("transaction builder initilazed"); + await transaction.addOperation(StellarSdk.Operation.payment({ + destination: receiverPublicKey, + // The term native asset refers to lumens + asset: StellarSdk.Asset.native(), + // Specify 350.1234567 lumens. Lumens are divisible to seven digits past + // the decimal. They are represented in JS Stellar SDK in string format + // to avoid errors from the use of the JavaScript Number data structure. + amount: '350.1234567', + })); + console.log("operations added") + // Make this transaction valid for the next 30 seconds only + await transaction.setTimeout(30); + console.log("timeout set"); + // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) + // .addMemo(StellarSdk.Memo.text('Hello world!')) + const endTransaction = await transaction.build(); + const xdrTransaction = endTransaction.toXDR(); + console.log(xdrTransaction); + const response = await ethereum.request({ method: 'wallet_invokeSnap', - params: {snapId:'${snapId}', request:{ - method: 'getAddress', + params:{snapId:'${snapId}', request:{ + method: 'signTransaction', + params:{ + transaction: xdrTransaction, + testnet: ${l[1]} + } }} - }) - const account = await server.loadAccount(sourcePublicKey); - const fee = await server.fetchBaseFee(); - console.log("base fee is"); - console.log(fee); - const receiverPublicKey = 'GAIRISXKPLOWZBMFRPU5XRGUUX3VMA3ZEWKBM5MSNRU3CHV6P4PYZ74D'; - console.log("metamask public key: "); - console.log(sourcePublicKey); - console.log("account is"); - console.log(account); - console.log("building Transaction"); - - - const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); - // Add a payment operation to the transaction - console.log("transaction builder initilazed"); - await transaction.addOperation(StellarSdk.Operation.payment({ - destination: receiverPublicKey, - // The term native asset refers to lumens - asset: StellarSdk.Asset.native(), - // Specify 350.1234567 lumens. Lumens are divisible to seven digits past - // the decimal. They are represented in JS Stellar SDK in string format - // to avoid errors from the use of the JavaScript Number data structure. - amount: '350.1234567', - })); - console.log("operations added") - // Make this transaction valid for the next 30 seconds only - await transaction.setTimeout(30); - console.log("timeout set"); - // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) - // .addMemo(StellarSdk.Memo.text('Hello world!')) - const endTransaction = await transaction.build(); - const xdrTransaction = endTransaction.toXDR(); - console.log(xdrTransaction); - const response = await ethereum.request({ - method: 'wallet_invokeSnap', - params:{snapId:'${snapId}', request:{ - method: 'signTransaction', - params:{ - transaction: xdrTransaction, - testnet: ${l[1]} - } - }} - }); - return response -} -(async () => alert(await signTransaction()))(); -`,codeView:!0,lockView:!0,testnet:l[1],$$slots:{title:[create_title_slot_4],default:[create_default_slot_5]},$$scope:{ctx:l}}}),{c(){r=element("div"),m=element("div"),create_component(g.$$.fragment),v=space(),f=element("div"),create_component(a.$$.fragment),attr(m,"class","grow"),attr(f,"class","grow"),attr(r,"class","flex")},m(t,s){insert(t,r,s),append(r,m),mount_component(g,m,null),append(r,v),append(r,f),mount_component(a,f,null),i=!0},p(t,s){const o={};s&2&&(o.testnet=t[1]),s&512&&(o.$$scope={dirty:s,ctx:t}),g.$set(o);const e={};s&2&&(e.code=` -async function signTransaction(){ - const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); - + }); + return response + } + (async () => alert(await signTransaction()))(); + `,codeView:!0,lockView:!0,testnet:l[1],$$slots:{title:[create_title_slot_4],default:[create_default_slot_5]},$$scope:{ctx:l}}}),{c(){r=element("div"),g=element("div"),create_component(p.$$.fragment),v=space(),f=element("div"),create_component(a.$$.fragment),attr(g,"class","grow"),attr(f,"class","grow"),attr(r,"class","flex")},m(t,s){insert(t,r,s),append(r,g),mount_component(p,g,null),append(r,v),append(r,f),mount_component(a,f,null),i=!0},p(t,s){const o={};s&2&&(o.testnet=t[1]),s&256&&(o.$$scope={dirty:s,ctx:t}),p.$set(o);const e={};s&2&&(e.code=` + async function signTransaction(){ + const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); - const sourcePublicKey = await ethereum.request({ + + const sourcePublicKey = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:'${snapId}', request:{ + method: 'getAddress', + }} + }) + const account = await server.loadAccount(sourcePublicKey); + const fee = await server.fetchBaseFee(); + console.log("base fee is"); + console.log(fee); + const receiverPublicKey = 'GAIRISXKPLOWZBMFRPU5XRGUUX3VMA3ZEWKBM5MSNRU3CHV6P4PYZ74D'; + console.log("metamask public key: "); + console.log(sourcePublicKey); + console.log("account is"); + console.log(account); + console.log("building Transaction"); + + + const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); + // Add a payment operation to the transaction + console.log("transaction builder initilazed"); + await transaction.addOperation(StellarSdk.Operation.payment({ + destination: receiverPublicKey, + // The term native asset refers to lumens + asset: StellarSdk.Asset.native(), + // Specify 350.1234567 lumens. Lumens are divisible to seven digits past + // the decimal. They are represented in JS Stellar SDK in string format + // to avoid errors from the use of the JavaScript Number data structure. + amount: '350.1234567', + })); + console.log("operations added") + // Make this transaction valid for the next 30 seconds only + await transaction.setTimeout(30); + console.log("timeout set"); + // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) + // .addMemo(StellarSdk.Memo.text('Hello world!')) + const endTransaction = await transaction.build(); + const xdrTransaction = endTransaction.toXDR(); + console.log(xdrTransaction); + const response = await ethereum.request({ method: 'wallet_invokeSnap', - params: {snapId:'${snapId}', request:{ - method: 'getAddress', + params:{snapId:'${snapId}', request:{ + method: 'signTransaction', + params:{ + transaction: xdrTransaction, + testnet: ${t[1]} + } }} - }) - const account = await server.loadAccount(sourcePublicKey); - const fee = await server.fetchBaseFee(); - console.log("base fee is"); - console.log(fee); - const receiverPublicKey = 'GAIRISXKPLOWZBMFRPU5XRGUUX3VMA3ZEWKBM5MSNRU3CHV6P4PYZ74D'; - console.log("metamask public key: "); - console.log(sourcePublicKey); - console.log("account is"); - console.log(account); - console.log("building Transaction"); - - - const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); - // Add a payment operation to the transaction - console.log("transaction builder initilazed"); - await transaction.addOperation(StellarSdk.Operation.payment({ - destination: receiverPublicKey, - // The term native asset refers to lumens - asset: StellarSdk.Asset.native(), - // Specify 350.1234567 lumens. Lumens are divisible to seven digits past - // the decimal. They are represented in JS Stellar SDK in string format - // to avoid errors from the use of the JavaScript Number data structure. - amount: '350.1234567', - })); - console.log("operations added") - // Make this transaction valid for the next 30 seconds only - await transaction.setTimeout(30); - console.log("timeout set"); - // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) - // .addMemo(StellarSdk.Memo.text('Hello world!')) - const endTransaction = await transaction.build(); - const xdrTransaction = endTransaction.toXDR(); - console.log(xdrTransaction); - const response = await ethereum.request({ - method: 'wallet_invokeSnap', - params:{snapId:'${snapId}', request:{ - method: 'signTransaction', - params:{ - transaction: xdrTransaction, - testnet: ${t[1]} - } - }} - }); - return response -} -(async () => alert(await signTransaction()))(); -`),s&2&&(e.testnet=t[1]),s&512&&(e.$$scope={dirty:s,ctx:t}),a.$set(e)},i(t){i||(transition_in(g.$$.fragment,t),transition_in(a.$$.fragment,t),i=!0)},o(t){transition_out(g.$$.fragment,t),transition_out(a.$$.fragment,t),i=!1},d(t){t&&detach(r),destroy_component(g),destroy_component(a)}}}function create_title_slot_3(l){let r;return{c(){r=element("span"),r.textContent="Signing Functions",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_3(l){let r,m;return r=new SorobanPage({}),{c(){create_component(r.$$.fragment)},m(g,v){mount_component(r,g,v),m=!0},i(g){m||(transition_in(r.$$.fragment,g),m=!0)},o(g){transition_out(r.$$.fragment,g),m=!1},d(g){destroy_component(r,g)}}}function create_title_slot_2(l){let r;return{c(){r=element("span"),r.textContent="Soroban",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_2(l){let r;return{c(){r=text("This project Utilizes Metamask snaps, This is code that runs inside of metamask secure execution enviroment, but is seemless from a user experence.")},m(m,g){insert(m,r,g)},d(m){m&&detach(r)}}}function create_title_slot_1(l){let r;return{c(){r=element("span"),r.textContent="Project Info",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot_1(l){let r,m,g,v;return r=new OperationForm({}),g=new TransactionMaker({props:{callback:l[8],address:l[4],network:l[2]}}),{c(){create_component(r.$$.fragment),m=space(),create_component(g.$$.fragment)},m(f,a){mount_component(r,f,a),insert(f,m,a),mount_component(g,f,a),v=!0},p(f,a){const i={};a&16&&(i.address=f[4]),a&4&&(i.network=f[2]),g.$set(i)},i(f){v||(transition_in(r.$$.fragment,f),transition_in(g.$$.fragment,f),v=!0)},o(f){transition_out(r.$$.fragment,f),transition_out(g.$$.fragment,f),v=!1},d(f){f&&detach(m),destroy_component(r,f),destroy_component(g,f)}}}function create_title_slot(l){let r;return{c(){r=element("span"),r.textContent="Transaction Maker",attr(r,"slot","title")},m(m,g){insert(m,r,g)},p:noop,d(m){m&&detach(r)}}}function create_default_slot(l){let r,m,g,v,f,a,i,t,s,o,e,c;return r=new TabItem({props:{open:!0,$$slots:{title:[create_title_slot_7],default:[create_default_slot_7]},$$scope:{ctx:l}}}),g=new TabItem({props:{$$slots:{title:[create_title_slot_6],default:[create_default_slot_6]},$$scope:{ctx:l}}}),f=new TabItem({props:{$$slots:{title:[create_title_slot_3],default:[create_default_slot_4]},$$scope:{ctx:l}}}),i=new TabItem({props:{$$slots:{title:[create_title_slot_2],default:[create_default_slot_3]},$$scope:{ctx:l}}}),s=new TabItem({props:{$$slots:{title:[create_title_slot_1],default:[create_default_slot_2]},$$scope:{ctx:l}}}),e=new TabItem({props:{$$slots:{title:[create_title_slot],default:[create_default_slot_1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),m=space(),create_component(g.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment),t=space(),create_component(s.$$.fragment),o=space(),create_component(e.$$.fragment)},m(u,h){mount_component(r,u,h),insert(u,m,h),mount_component(g,u,h),insert(u,v,h),mount_component(f,u,h),insert(u,a,h),mount_component(i,u,h),insert(u,t,h),mount_component(s,u,h),insert(u,o,h),mount_component(e,u,h),c=!0},p(u,h){const b={};h&514&&(b.$$scope={dirty:h,ctx:u}),r.$set(b);const p={};h&512&&(p.$$scope={dirty:h,ctx:u}),g.$set(p);const k={};h&514&&(k.$$scope={dirty:h,ctx:u}),f.$set(k);const d={};h&512&&(d.$$scope={dirty:h,ctx:u}),i.$set(d);const w={};h&512&&(w.$$scope={dirty:h,ctx:u}),s.$set(w);const y={};h&532&&(y.$$scope={dirty:h,ctx:u}),e.$set(y)},i(u){c||(transition_in(r.$$.fragment,u),transition_in(g.$$.fragment,u),transition_in(f.$$.fragment,u),transition_in(i.$$.fragment,u),transition_in(s.$$.fragment,u),transition_in(e.$$.fragment,u),c=!0)},o(u){transition_out(r.$$.fragment,u),transition_out(g.$$.fragment,u),transition_out(f.$$.fragment,u),transition_out(i.$$.fragment,u),transition_out(s.$$.fragment,u),transition_out(e.$$.fragment,u),c=!1},d(u){u&&(detach(m),detach(v),detach(a),detach(t),detach(o)),destroy_component(r,u),destroy_component(g,u),destroy_component(f,u),destroy_component(i,u),destroy_component(s,u),destroy_component(e,u)}}}function create_fragment(l){let r,m,g,v,f,a,i,t,s,o,e;r=new Navbar({props:{rounded:!0,$$slots:{default:[create_default_slot_9]},$$scope:{ctx:l}}});let c=l[0]&&create_if_block_1();const u=[create_if_block,create_else_block],h=[];function b(p,k){return p[3]?0:1}return t=b(l),s=h[t]=u[t](l),{c(){create_component(r.$$.fragment),m=space(),c&&c.c(),g=space(),v=element("br"),f=space(),a=element("br"),i=space(),s.c(),o=empty()},m(p,k){mount_component(r,p,k),insert(p,m,k),c&&c.m(p,k),insert(p,g,k),insert(p,v,k),insert(p,f,k),insert(p,a,k),insert(p,i,k),h[t].m(p,k),insert(p,o,k),e=!0},p(p,[k]){const d={};k&512&&(d.$$scope={dirty:k,ctx:p}),r.$set(d),p[0]?c?k&1&&transition_in(c,1):(c=create_if_block_1(),c.c(),transition_in(c,1),c.m(g.parentNode,g)):c&&(group_outros(),transition_out(c,1,1,()=>{c=null}),check_outros());let w=t;t=b(p),t===w?h[t].p(p,k):(group_outros(),transition_out(h[w],1,1,()=>{h[w]=null}),check_outros(),s=h[t],s?s.p(p,k):(s=h[t]=u[t](p),s.c()),transition_in(s,1),s.m(o.parentNode,o))},i(p){e||(transition_in(r.$$.fragment,p),transition_in(c),transition_in(s),e=!0)},o(p){transition_out(r.$$.fragment,p),transition_out(c),transition_out(s),e=!1},d(p){p&&(detach(m),detach(g),detach(v),detach(f),detach(a),detach(i),detach(o)),destroy_component(r,p),c&&c.d(p),h[t].d(p)}}}function instance(l,r,m){let g,v,f,a;component_subscribe(l,testnet,c=>m(1,g=c)),component_subscribe(l,network,c=>m(2,v=c)),component_subscribe(l,connected,c=>m(3,f=c)),component_subscribe(l,address,c=>m(4,a=c));let i=!1;function t(c,u){return` - window.ethereum.request({ - method: 'wallet_invokeSnap', - params: { - snapId: '${snapId}', - request: { - method: '${c}', - params: ${JSON.stringify(u)} + }); + return response + } + (async () => alert(await signTransaction()))(); + `),s&2&&(e.testnet=t[1]),s&256&&(e.$$scope={dirty:s,ctx:t}),a.$set(e)},i(t){i||(transition_in(p.$$.fragment,t),transition_in(a.$$.fragment,t),i=!0)},o(t){transition_out(p.$$.fragment,t),transition_out(a.$$.fragment,t),i=!1},d(t){t&&detach(r),destroy_component(p),destroy_component(a)}}}function create_title_slot_3(l){let r;return{c(){r=element("span"),r.textContent="Signing Functions",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_3(l){let r,g;return r=new SorobanPage({}),{c(){create_component(r.$$.fragment)},m(p,v){mount_component(r,p,v),g=!0},i(p){g||(transition_in(r.$$.fragment,p),g=!0)},o(p){transition_out(r.$$.fragment,p),g=!1},d(p){destroy_component(r,p)}}}function create_title_slot_2(l){let r;return{c(){r=element("span"),r.textContent="Soroban",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_2(l){let r;return{c(){r=text("This project Utilizes Metamask snaps, This is code that runs inside of metamask secure execution enviroment, but is seemless from a user experence.")},m(g,p){insert(g,r,p)},d(g){g&&detach(r)}}}function create_title_slot_1(l){let r;return{c(){r=element("span"),r.textContent="Project Info",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot_1(l){let r,g,p,v;return r=new OperationForm({}),p=new TransactionMaker({props:{callback:l[7],address:l[4],network:l[2]}}),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment)},m(f,a){mount_component(r,f,a),insert(f,g,a),mount_component(p,f,a),v=!0},p(f,a){const i={};a&16&&(i.address=f[4]),a&4&&(i.network=f[2]),p.$set(i)},i(f){v||(transition_in(r.$$.fragment,f),transition_in(p.$$.fragment,f),v=!0)},o(f){transition_out(r.$$.fragment,f),transition_out(p.$$.fragment,f),v=!1},d(f){f&&detach(g),destroy_component(r,f),destroy_component(p,f)}}}function create_title_slot(l){let r;return{c(){r=element("span"),r.textContent="Transaction Maker",attr(r,"slot","title")},m(g,p){insert(g,r,p)},p:noop,d(g){g&&detach(r)}}}function create_default_slot(l){let r,g,p,v,f,a,i,t,s,o,e,c;return r=new TabItem({props:{open:!0,$$slots:{title:[create_title_slot_7],default:[create_default_slot_7]},$$scope:{ctx:l}}}),p=new TabItem({props:{$$slots:{title:[create_title_slot_6],default:[create_default_slot_6]},$$scope:{ctx:l}}}),f=new TabItem({props:{$$slots:{title:[create_title_slot_3],default:[create_default_slot_4]},$$scope:{ctx:l}}}),i=new TabItem({props:{$$slots:{title:[create_title_slot_2],default:[create_default_slot_3]},$$scope:{ctx:l}}}),s=new TabItem({props:{$$slots:{title:[create_title_slot_1],default:[create_default_slot_2]},$$scope:{ctx:l}}}),e=new TabItem({props:{$$slots:{title:[create_title_slot],default:[create_default_slot_1]},$$scope:{ctx:l}}}),{c(){create_component(r.$$.fragment),g=space(),create_component(p.$$.fragment),v=space(),create_component(f.$$.fragment),a=space(),create_component(i.$$.fragment),t=space(),create_component(s.$$.fragment),o=space(),create_component(e.$$.fragment)},m(u,h){mount_component(r,u,h),insert(u,g,h),mount_component(p,u,h),insert(u,v,h),mount_component(f,u,h),insert(u,a,h),mount_component(i,u,h),insert(u,t,h),mount_component(s,u,h),insert(u,o,h),mount_component(e,u,h),c=!0},p(u,h){const b={};h&258&&(b.$$scope={dirty:h,ctx:u}),r.$set(b);const m={};h&256&&(m.$$scope={dirty:h,ctx:u}),p.$set(m);const k={};h&258&&(k.$$scope={dirty:h,ctx:u}),f.$set(k);const d={};h&256&&(d.$$scope={dirty:h,ctx:u}),i.$set(d);const w={};h&256&&(w.$$scope={dirty:h,ctx:u}),s.$set(w);const y={};h&276&&(y.$$scope={dirty:h,ctx:u}),e.$set(y)},i(u){c||(transition_in(r.$$.fragment,u),transition_in(p.$$.fragment,u),transition_in(f.$$.fragment,u),transition_in(i.$$.fragment,u),transition_in(s.$$.fragment,u),transition_in(e.$$.fragment,u),c=!0)},o(u){transition_out(r.$$.fragment,u),transition_out(p.$$.fragment,u),transition_out(f.$$.fragment,u),transition_out(i.$$.fragment,u),transition_out(s.$$.fragment,u),transition_out(e.$$.fragment,u),c=!1},d(u){u&&(detach(g),detach(v),detach(a),detach(t),detach(o)),destroy_component(r,u),destroy_component(p,u),destroy_component(f,u),destroy_component(i,u),destroy_component(s,u),destroy_component(e,u)}}}function create_fragment$1(l){let r,g,p,v,f,a,i,t,s,o=l[0]&&create_if_block_1();const e=[create_if_block,create_else_block],c=[];function u(h,b){return h[3]?0:1}return a=u(l),i=c[a]=e[a](l),{c(){o&&o.c(),r=space(),g=element("br"),p=space(),v=element("br"),f=space(),i.c(),t=empty()},m(h,b){o&&o.m(h,b),insert(h,r,b),insert(h,g,b),insert(h,p,b),insert(h,v,b),insert(h,f,b),c[a].m(h,b),insert(h,t,b),s=!0},p(h,[b]){h[0]?o?b&1&&transition_in(o,1):(o=create_if_block_1(),o.c(),transition_in(o,1),o.m(r.parentNode,r)):o&&(group_outros(),transition_out(o,1,1,()=>{o=null}),check_outros());let m=a;a=u(h),a===m?c[a].p(h,b):(group_outros(),transition_out(c[m],1,1,()=>{c[m]=null}),check_outros(),i=c[a],i?i.p(h,b):(i=c[a]=e[a](h),i.c()),transition_in(i,1),i.m(t.parentNode,t))},i(h){s||(transition_in(o),transition_in(i),s=!0)},o(h){transition_out(o),transition_out(i),s=!1},d(h){h&&(detach(r),detach(g),detach(p),detach(v),detach(f),detach(t)),o&&o.d(h),c[a].d(h)}}}function instance$1(l,r,g){let p,v,f,a;component_subscribe(l,testnet,e=>g(1,p=e)),component_subscribe(l,network,e=>g(2,v=e)),component_subscribe(l,connected,e=>g(3,f=e)),component_subscribe(l,address,e=>g(4,a=e));let{isFunding:i=!1}=r;function t(e,c){return` + window.ethereum.request({ + method: 'wallet_invokeSnap', + params: { + snapId: '${snapId}', + request: { + method: '${e}', + params: ${JSON.stringify(c)} + }, }, - }, - }) - .then((result)=>alert(JSON.stringify(result))) - - `}async function s(){m(0,i=!0);try{console.log("in here");const c=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"fund"}}});console.log(c)}catch{}m(0,i=!1)}function o(){console.log("here"),console.log(v),v==="mainnet"?(console.log("in side network === 'mainnet'"),network.set("testnet"),testnet.set(!0)):v==="testnet"&&(console.log("in side network === 'testnet'"),network.set("mainnet"),testnet.set(!1)),console.log("network after swap is:"),console.log(v)}async function e(c){console.log("here in sign transaction");const u=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"signAndSubmitTransaction",params:{transaction:c,testnet:g}}}});console.log(u)}return[i,g,v,f,a,t,s,o,e]}class App extends SvelteComponent{constructor(r){super(),init(this,r,instance,create_fragment,safe_not_equal,{})}}new App({target:document.getElementById("app")}); + }) + .then((result)=>alert(JSON.stringify(result))) + + `}function s(){console.log("here"),console.log(v),v==="mainnet"?(console.log("in side network === 'mainnet'"),network.set("testnet"),testnet.set(!0)):v==="testnet"&&(console.log("in side network === 'testnet'"),network.set("mainnet"),testnet.set(!1)),console.log("network after swap is:"),console.log(v)}async function o(e){console.log("here in sign transaction");const c=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId,request:{method:"signAndSubmitTransaction",params:{transaction:e,testnet:p}}}});console.log(c)}return l.$$set=e=>{"isFunding"in e&&g(0,i=e.isFunding)},[i,p,v,f,a,t,s,o]}class Demo extends SvelteComponent{constructor(r){super(),init(this,r,instance$1,create_fragment$1,safe_not_equal,{isFunding:0})}}function create_fragment(l){let r,g,p,v,f,a;function i(e){l[1](e)}let t={};l[0]!==void 0&&(t.loading=l[0]),r=new Header({props:t}),binding_callbacks.push(()=>bind(r,"loading",i));function s(e){l[2](e)}let o={};return l[0]!==void 0&&(o.isFunding=l[0]),v=new Demo({props:o}),binding_callbacks.push(()=>bind(v,"isFunding",s)),{c(){create_component(r.$$.fragment),p=space(),create_component(v.$$.fragment)},m(e,c){mount_component(r,e,c),insert(e,p,c),mount_component(v,e,c),a=!0},p(e,[c]){const u={};!g&&c&1&&(g=!0,u.loading=e[0],add_flush_callback(()=>g=!1)),r.$set(u);const h={};!f&&c&1&&(f=!0,h.isFunding=e[0],add_flush_callback(()=>f=!1)),v.$set(h)},i(e){a||(transition_in(r.$$.fragment,e),transition_in(v.$$.fragment,e),a=!0)},o(e){transition_out(r.$$.fragment,e),transition_out(v.$$.fragment,e),a=!1},d(e){e&&detach(p),destroy_component(r,e),destroy_component(v,e)}}}function instance(l,r,g){let p=!1;function v(a){p=a,g(0,p)}function f(a){p=a,g(0,p)}return[p,v,f]}class App extends SvelteComponent{constructor(r){super(),init(this,r,instance,create_fragment,safe_not_equal,{})}}new App({target:document.getElementById("app")}); diff --git a/site_dist/assets/index-b58a0405.css b/site_dist/assets/index-27c2ae45.css similarity index 99% rename from site_dist/assets/index-b58a0405.css rename to site_dist/assets/index-27c2ae45.css index 25c9f6f..050f488 100644 --- a/site_dist/assets/index-b58a0405.css +++ b/site_dist/assets/index-27c2ae45.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}input[type=range].range-sm::-webkit-slider-thumb{height:1rem;width:1rem}input[type=range].range-lg::-webkit-slider-thumb{height:1.5rem;width:1.5rem}input[type=range].range-sm::-moz-range-thumb{height:1rem;width:1rem}input[type=range].range-lg::-moz-range-thumb{height:1.5rem;width:1.5rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1{top:-.25rem;right:-.25rem;bottom:-.25rem;left:-.25rem}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-14{left:-3.5rem}.-left-3{left:-.75rem}.-left-\[17px\]{left:-17px}.-right-\[16px\]{right:-16px}.-right-\[17px\]{right:-17px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-5{left:1.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-5{right:1.25rem}.right-6{right:1.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.top-\[124px\]{top:124px}.top-\[142px\]{top:142px}.top-\[178px\]{top:178px}.top-\[40px\]{top:40px}.top-\[72px\]{top:72px}.top-\[88px\]{top:88px}.top-\[calc\(100\%\+1rem\)\]{top:calc(100% + 1rem)}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2 / span 2}.m-0{margin:0}.m-0\.5{margin:.125rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.-ml-4{margin-left:-1rem}.-mr-1{margin-right:-.25rem}.-mr-1\.5{margin-right:-.375rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-px{margin-bottom:1px}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-36{height:9rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[140px\]{height:140px}.h-\[156px\]{height:156px}.h-\[172px\]{height:172px}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[193px\]{height:193px}.h-\[213px\]{height:213px}.h-\[24px\]{height:24px}.h-\[32px\]{height:32px}.h-\[41px\]{height:41px}.h-\[426px\]{height:426px}.h-\[454px\]{height:454px}.h-\[46px\]{height:46px}.h-\[52px\]{height:52px}.h-\[55px\]{height:55px}.h-\[572px\]{height:572px}.h-\[5px\]{height:5px}.h-\[600px\]{height:600px}.h-\[63px\]{height:63px}.h-\[64px\]{height:64px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.max-h-64{max-height:16rem}.max-h-full{max-height:100%}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-10\/12{width:83.333333%}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/4{width:50%}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-8\/12{width:66.666667%}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-\[100\%\]{width:100%}.w-\[10px\]{width:10px}.w-\[148px\]{width:148px}.w-\[188px\]{width:188px}.w-\[1px\]{width:1px}.w-\[208px\]{width:208px}.w-\[272px\]{width:272px}.w-\[300px\]{width:300px}.w-\[3px\]{width:3px}.w-\[52px\]{width:52px}.w-\[56px\]{width:56px}.w-\[6px\]{width:6px}.w-\[calc\(100\%-2rem\)\]{width:calc(100% - 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[100\%\]{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[133px\]{max-width:133px}.max-w-\[301px\]{max-width:301px}.max-w-\[341px\]{max-width:341px}.max-w-\[351px\]{max-width:351px}.max-w-\[540px\]{max-width:540px}.max-w-\[640px\]{max-width:640px}.max-w-\[83px\]{max-width:83px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-md{max-width:768px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\[0\]{transform-origin:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\/3{--tw-translate-x: -33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/3{--tw-translate-y: -33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-4{--tw-translate-y: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-6{--tw-translate-y: -1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/3{--tw-translate-x: 33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/3{--tw-translate-y: 33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-y-4{row-gap:1rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-blue-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(164 202 254 / var(--tw-divide-opacity))}.divide-blue-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(118 169 250 / var(--tw-divide-opacity))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.divide-gray-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(156 163 175 / var(--tw-divide-opacity))}.divide-gray-500>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(107 114 128 / var(--tw-divide-opacity))}.divide-gray-700>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.divide-green-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(132 225 188 / var(--tw-divide-opacity))}.divide-green-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(49 196 141 / var(--tw-divide-opacity))}.divide-indigo-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(180 198 252 / var(--tw-divide-opacity))}.divide-indigo-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(141 162 251 / var(--tw-divide-opacity))}.divide-orange-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(253 186 140 / var(--tw-divide-opacity))}.divide-pink-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(248 180 217 / var(--tw-divide-opacity))}.divide-pink-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(241 126 184 / var(--tw-divide-opacity))}.divide-primary-500>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(99 102 241 / var(--tw-divide-opacity))}.divide-purple-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(202 191 253 / var(--tw-divide-opacity))}.divide-purple-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(172 148 250 / var(--tw-divide-opacity))}.divide-red-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(248 180 180 / var(--tw-divide-opacity))}.divide-red-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(249 128 128 / var(--tw-divide-opacity))}.divide-yellow-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(250 202 21 / var(--tw-divide-opacity))}.divide-yellow-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(227 160 8 / var(--tw-divide-opacity))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!rounded-md{border-radius:.375rem!important}.rounded{border-radius:.25rem}.rounded-\[2\.5rem\]{border-radius:2.5rem}.rounded-\[2rem\]{border-radius:2rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[1rem\]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-\[2\.5rem\]{border-bottom-right-radius:2.5rem;border-bottom-left-radius:2.5rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[2\.5rem\]{border-top-left-radius:2.5rem;border-top-right-radius:2.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[10px\]{border-width:10px}.border-\[14px\]{border-width:14px}.border-\[16px\]{border-width:16px}.border-\[8px\]{border-width:8px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(132 225 188 / var(--tw-border-opacity))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(49 196 141 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(180 198 252 / var(--tw-border-opacity))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(141 162 251 / var(--tw-border-opacity))}.border-inherit{border-color:inherit}.border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 140 / var(--tw-border-opacity))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(248 180 217 / var(--tw-border-opacity))}.border-pink-400{--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity))}.border-primary-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-primary-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-primary-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(202 191 253 / var(--tw-border-opacity))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(248 180 180 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(249 128 128 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(243 250 247 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(240 245 255 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 248 241 / var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(208 56 1 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-primary-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(246 245 255 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(6 148 162 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(253 253 234 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(159 88 10 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-75{--tw-bg-opacity: .75}.bg-\[url\(\'https\:\/\/chaindebrief\.com\/wp-content\/uploads\/2021\/08\/Metamask-logo\.png\'\)\]{background-image:url(https://chaindebrief.com/wp-content/uploads/2021/08/Metamask-logo.png)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-400{--tw-gradient-from: #22d3ee var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 211 238 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-200{--tw-gradient-from: #d9f99d var(--tw-gradient-from-position);--tw-gradient-to: rgb(217 249 157 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-400{--tw-gradient-from: #F17EB8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(241 126 184 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-400{--tw-gradient-from: #F98080 var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 128 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-sky-400{--tw-gradient-from: #38bdf8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(56 189 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-400{--tw-gradient-from: #16BDCA var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 189 202 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-500{--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #06b6d4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-500{--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0E9F6E var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-400{--tw-gradient-to: rgb(163 230 53 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #a3e635 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-500{--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E74694 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-500{--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F05252 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-500{--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0694A2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-600{--tw-gradient-to: #0891b2 var(--tw-gradient-to-position)}.to-emerald-600{--tw-gradient-to: #059669 var(--tw-gradient-to-position)}.to-green-600{--tw-gradient-to: #057A55 var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-500{--tw-gradient-to: #84cc16 var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-600{--tw-gradient-to: #D61F69 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-600{--tw-gradient-to: #E02424 var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to: #047481 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-no-repeat{background-repeat:no-repeat}.fill-blue-600{fill:#1c64f2}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-primary-600{fill:#4f46e5}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.\!p-2{padding:.5rem!important}.\!p-3{padding:.75rem!important}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-0{padding-left:0;padding-right:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-2\.5{padding-bottom:.625rem}.pl-10{padding-left:2.5rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-11{padding-right:2.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-9xl{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-loose{line-height:2}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(235 245 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-100{--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(229 237 255 / var(--tw-text-opacity))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(141 162 251 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-800{--tw-text-opacity: 1;color:rgb(138 44 13 / var(--tw-text-opacity))}.text-pink-100{--tw-text-opacity: 1;color:rgb(252 232 243 / var(--tw-text-opacity))}.text-pink-400{--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-primary-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity))}.text-primary-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-primary-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-primary-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity))}.text-purple-100{--tw-text-opacity: 1;color:rgb(237 235 254 / var(--tw-text-opacity))}.text-purple-400{--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(253 246 178 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.decoration-blue-400{text-decoration-color:#76a9fa}.decoration-2{text-decoration-thickness:2px}.placeholder-green-700::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(4 108 78 / var(--tw-placeholder-opacity))}.placeholder-green-700::placeholder{--tw-placeholder-opacity: 1;color:rgb(4 108 78 / var(--tw-placeholder-opacity))}.placeholder-red-700::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(200 30 30 / var(--tw-placeholder-opacity))}.placeholder-red-700::placeholder{--tw-placeholder-opacity: 1;color:rgb(200 30 30 / var(--tw-placeholder-opacity))}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.bg-blend-multiply{background-blend-mode:multiply}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-primary-500\/50{--tw-shadow-color: rgb(99 102 241 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-500\/50{--tw-shadow-color: rgb(194 120 3 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-primary-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.first-letter\:float-left:first-letter{float:left}.first-letter\:mr-3:first-letter{margin-right:.75rem}.first-letter\:text-7xl:first-letter{font-size:4.5rem;line-height:1}.first-letter\:font-bold:first-letter{font-weight:700}.first-letter\:text-gray-900:first-letter{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.first-line\:uppercase:first-line{text-transform:uppercase}.first-line\:tracking-widest:first-line{letter-spacing:.1em}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:right-0:before{content:var(--tw-content);right:0}.before\:z-10:before{content:var(--tw-content);z-index:10}.before\:block:before{content:var(--tw-content);display:block}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:shadow-\[-10px_0_50px_65px_rgba\(256\,256\,256\,1\)\]:before{content:var(--tw-content);--tw-shadow: -10px 0 50px 65px rgba(256,256,256,1);--tw-shadow-colored: -10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.before\:content-\[\'\'\]:before{--tw-content: "";content:var(--tw-content)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[2px\]:after{content:var(--tw-content);left:2px}.after\:left-\[4px\]:after{content:var(--tw-content);left:4px}.after\:top-0:after{content:var(--tw-content);top:0}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:z-10:after{content:var(--tw-content);z-index:10}.after\:block:after{content:var(--tw-content);display:block}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:h-6:after{content:var(--tw-content);height:1.5rem}.after\:h-full:after{content:var(--tw-content);height:100%}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:w-6:after{content:var(--tw-content);width:1.5rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:shadow-\[10px_0_50px_65px_rgba\(256\,256\,256\,1\)\]:after{content:var(--tw-content);--tw-shadow: 10px 0 50px 65px rgba(256,256,256,1);--tw-shadow-colored: 10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.first\:rounded-l-full:first-child{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.first\:border-l:first-child{border-left-width:1px}.last\:mr-0:last-child{margin-right:0}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-full:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.odd\:bg-blue-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.odd\:bg-green-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.odd\:bg-purple-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.odd\:bg-red-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.odd\:bg-white:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.odd\:bg-yellow-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}.even\:bg-blue-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.even\:bg-green-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.even\:bg-purple-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.even\:bg-red-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.even\:bg-yellow-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(142 75 16 / var(--tw-bg-opacity))}.focus-within\:border-primary-500:focus-within{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.hover\:bg-pink-200:hover{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.hover\:bg-primary-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.hover\:bg-primary-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\:bg-primary-800:hover{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}.hover\:bg-purple-200:hover{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.hover\:bg-purple-400:hover{--tw-bg-opacity: 1;background-color:rgb(172 148 250 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-400:hover{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:\!text-inherit:hover{color:inherit!important}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-blue-900:hover{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.hover\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-900:hover{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.hover\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.hover\:text-pink-900:hover{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.hover\:text-primary-700:hover{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.hover\:text-primary-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.hover\:text-purple-900:hover{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.hover\:text-red-900:hover{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-900:hover{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:z-10:focus{z-index:10}.focus\:z-40:focus{z-index:40}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-gray-200:focus{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.focus\:border-green-500:focus{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.focus\:border-green-600:focus{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.focus\:border-primary-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:border-primary-600:focus{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.focus\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.focus\:border-red-600:focus{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.focus\:bg-gray-900:focus{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:text-primary-700:focus{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:\!ring-gray-300:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity)) !important}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity))}.focus\:ring-indigo-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(141 162 251 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-orange-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 90 31 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-pink-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(241 126 184 / var(--tw-ring-opacity))}.focus\:ring-primary-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-primary-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(129 140 248 / var(--tw-ring-opacity))}.focus\:ring-primary-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-primary-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(67 56 202 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-purple-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(172 148 250 / var(--tw-ring-opacity))}.focus\:ring-purple-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(144 97 249 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-teal-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(6 148 162 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-yellow-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(194 120 3 / var(--tw-ring-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:first-child .group-first\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.group:first-child .group-first\:rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.group:first-child .group-first\:border-t{border-top-width:1px}.group:last-child .group-last\:rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.group:hover .group-hover\:rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:\!bg-opacity-0{--tw-bg-opacity: 0 !important}.group:hover .group-hover\:\!text-inherit{color:inherit!important}.group:hover .group-hover\:text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(255 90 31 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(4 116 129 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%}.peer:placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:left-0{left:0}.peer:focus~.peer-focus\:top-2{top:.5rem}.peer:focus~.peer-focus\:-translate-y-4{--tw-translate-y: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:-translate-y-6{--tw-translate-y: -1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:px-2{padding-left:.5rem;padding-right:.5rem}.peer:focus~.peer-focus\:text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-green-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-orange-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 186 140 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-primary-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-purple-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-red-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-teal-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-yellow-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}:is(.dark .dark\:block){display:block}:is(.dark .dark\:hidden){display:none}:is(.dark .dark\:divide-blue-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(26 86 219 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-blue-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(30 66 159 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-600)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(75 85 99 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(31 41 55 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-green-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(4 108 78 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-green-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(3 84 63 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-indigo-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(81 69 205 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-indigo-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(66 56 157 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-orange-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(138 44 13 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-pink-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(191 18 93 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-pink-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(153 21 75 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-primary-200)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(199 210 254 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-purple-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(108 43 217 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-purple-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(85 33 181 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-red-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(200 30 30 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-red-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(155 28 28 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-yellow-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(142 75 16 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-yellow-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(114 59 19 / var(--tw-divide-opacity))}:is(.dark .dark\:\!border-gray-600){--tw-border-opacity: 1 !important;border-color:rgb(75 85 99 / var(--tw-border-opacity))!important}:is(.dark .dark\:border-blue-400){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-800){--tw-border-opacity: 1;border-color:rgb(30 66 159 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(49 196 141 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-800){--tw-border-opacity: 1;border-color:rgb(3 84 63 / var(--tw-border-opacity))}:is(.dark .dark\:border-indigo-400){--tw-border-opacity: 1;border-color:rgb(141 162 251 / var(--tw-border-opacity))}:is(.dark .dark\:border-indigo-800){--tw-border-opacity: 1;border-color:rgb(66 56 157 / var(--tw-border-opacity))}:is(.dark .dark\:border-orange-800){--tw-border-opacity: 1;border-color:rgb(138 44 13 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-800){--tw-border-opacity: 1;border-color:rgb(153 21 75 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-200){--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-400){--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-500){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-800){--tw-border-opacity: 1;border-color:rgb(85 33 181 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-400){--tw-border-opacity: 1;border-color:rgb(249 128 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-800){--tw-border-opacity: 1;border-color:rgb(155 28 28 / var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:border-yellow-800){--tw-border-opacity: 1;border-color:rgb(114 59 19 / var(--tw-border-opacity))}:is(.dark .dark\:border-r-gray-600){--tw-border-opacity: 1;border-right-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-r-gray-700){--tw-border-opacity: 1;border-right-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:bg-blue-400){--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-400){--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-900){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-400){--tw-bg-opacity: 1;background-color:rgb(141 162 251 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-800){--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-900){--tw-bg-opacity: 1;background-color:rgb(54 47 120 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-inherit){background-color:inherit}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-400){--tw-bg-opacity: 1;background-color:rgb(241 126 184 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-900){--tw-bg-opacity: 1;background-color:rgb(117 26 61 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-200){--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-400){--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-500){--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-600){--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-800){--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-900){--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-400){--tw-bg-opacity: 1;background-color:rgb(172 148 250 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-800){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-900){--tw-bg-opacity: 1;background-color:rgb(74 29 150 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:transparent}:is(.dark .dark\:bg-yellow-400){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-600){--tw-bg-opacity: 1;background-color:rgb(159 88 10 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-800){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-900){--tw-bg-opacity: 1;background-color:rgb(99 49 18 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:\!text-white){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}:is(.dark .dark\:text-blue-100){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-400){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-300){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-400){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-100){--tw-text-opacity: 1;color:rgb(229 237 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-200){--tw-text-opacity: 1;color:rgb(205 219 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-300){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-400){--tw-text-opacity: 1;color:rgb(141 162 251 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-400){--tw-text-opacity: 1;color:rgb(255 138 76 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-100){--tw-text-opacity: 1;color:rgb(252 232 243 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-300){--tw-text-opacity: 1;color:rgb(248 180 217 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-200){--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-300){--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-400){--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-700){--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-800){--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-900){--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-100){--tw-text-opacity: 1;color:rgb(237 235 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-200){--tw-text-opacity: 1;color:rgb(220 215 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-300){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-100){--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-400){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-100){--tw-text-opacity: 1;color:rgb(253 246 178 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(252 233 106 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:decoration-blue-600){text-decoration-color:#1c64f2}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-green-500)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(14 159 110 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-green-500)::placeholder{--tw-placeholder-opacity: 1;color:rgb(14 159 110 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-red-500)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(240 82 82 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-red-500)::placeholder{--tw-placeholder-opacity: 1;color:rgb(240 82 82 / var(--tw-placeholder-opacity))}:is(.dark .dark\:opacity-25){opacity:.25}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-gray-800\/80){--tw-shadow-color: rgb(31 41 55 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-primary-800\/80){--tw-shadow-color: rgb(55 48 163 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-yellow-800\/80){--tw-shadow-color: rgb(114 59 19 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-gray-900){--tw-ring-opacity: 1;--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-primary-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:first-letter\:text-gray-100):first-letter{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:before\:shadow-\[-10px_0_50px_65px_rgba\(16\,24\,39\,1\)\]):before{content:var(--tw-content);--tw-shadow: -10px 0 50px 65px rgba(16,24,39,1);--tw-shadow-colored: -10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:after\:shadow-\[10px_0_50px_65px_rgba\(16\,24\,39\,1\)\]):after{content:var(--tw-content);--tw-shadow: 10px 0 50px 65px rgba(16,24,39,1);--tw-shadow-colored: 10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:last\:border-r-gray-500:last-child){--tw-border-opacity: 1;border-right-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:last\:border-r-gray-600:last-child){--tw-border-opacity: 1;border-right-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .odd\:dark\:bg-blue-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-gray-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-green-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-purple-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-red-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-yellow-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-blue-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-gray-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-green-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-purple-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-red-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-yellow-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(142 75 16 / var(--tw-bg-opacity))}:is(.dark .dark\:focus-within\:border-primary-500:focus-within){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-500:hover){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-700:hover){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-800:hover){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-indigo-800:hover){--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-800:hover){--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-600:hover){--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-700:hover){--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-800:hover){--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-800:hover){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-800:hover){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-800:hover){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-gray-800):hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-blue-300:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-green-300:hover){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-indigo-300:hover){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-pink-300:hover){--tw-text-opacity: 1;color:rgb(248 180 217 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary-300:hover){--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary-900:hover){--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-purple-300:hover){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-red-300:hover){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-yellow-300:hover){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-green-500:focus){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-primary-500:focus){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-red-500:focus){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 122 85 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-orange-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(208 56 1 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 48 163 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(126 58 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(224 36 36 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(4 116 129 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(159 88 10 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}.peer:focus~:is(.dark .peer-focus\:dark\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-blue-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-green-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-orange-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(138 44 13 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-primary-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 48 163 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-purple-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-red-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-teal-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-yellow-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(114 59 19 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:order-last{order:9999}.sm\:mb-0{margin-bottom:0}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:h-7{height:1.75rem}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-96{width:24rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-center{justify-content:center}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:p-8{padding:2rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:pl-4{padding-left:1rem}.sm\:pr-4{padding-right:1rem}.sm\:pr-8{padding-right:2rem}.sm\:text-center{text-align:center}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.sm\:ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.first\:sm\:pl-0:first-child{padding-left:0}.last\:sm\:pr-0:last-child{padding-right:0}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:mb-0{margin-bottom:0}.md\:ml-2{margin-left:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-\[21px\]{height:21px}.md\:h-\[262px\]{height:262px}.md\:h-\[278px\]{height:278px}.md\:h-\[294px\]{height:294px}.md\:h-\[42px\]{height:42px}.md\:h-\[654px\]{height:654px}.md\:h-\[682px\]{height:682px}.md\:h-\[8px\]{height:8px}.md\:h-\[95px\]{height:95px}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:w-48{width:12rem}.md\:w-\[96px\]{width:96px}.md\:w-auto{width:auto}.md\:max-w-\[142px\]{max-width:142px}.md\:max-w-\[512px\]{max-width:512px}.md\:max-w-\[597px\]{max-width:597px}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-row-reverse{flex-direction:row-reverse}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-8{gap:2rem}.md\:gap-x-0{-moz-column-gap:0px;column-gap:0px}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:p-8{padding:2rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-primary-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-primary-700:hover{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-transparent){background-color:transparent}:is(.dark .md\:dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:max-w-7xl{max-width:80rem}.lg\:px-10{padding-left:2.5rem;padding-right:2.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\:h-80{height:20rem}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}}.circle.svelte-dqjlks{height:var(--size);width:var(--size);border-color:var(--color) transparent var(--color) var(--color);border-width:calc(var(--size) / 15);border-style:solid;-o-border-image:initial;border-image:initial;border-radius:50%;animation:var(--duration) linear 0s infinite normal none running svelte-dqjlks-rotate}.pause-animation.svelte-dqjlks{animation-play-state:paused}@keyframes svelte-dqjlks-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.circle.svelte-1w4sjib{width:var(--size);height:var(--size);box-sizing:border-box;position:relative;border:3px solid transparent;border-top-color:var(--colorOuter);border-radius:50%;animation:svelte-1w4sjib-circleSpin var(--durationOuter) linear infinite}.circle.svelte-1w4sjib:before,.circle.svelte-1w4sjib:after{content:"";box-sizing:border-box;position:absolute;border:3px solid transparent;border-radius:50%}.circle.svelte-1w4sjib:after{border-top-color:var(--colorInner);top:9px;left:9px;right:9px;bottom:9px;animation:svelte-1w4sjib-circleSpin var(--durationInner) linear infinite}.circle.svelte-1w4sjib:before{border-top-color:var(--colorCenter);top:3px;left:3px;right:3px;bottom:3px;animation:svelte-1w4sjib-circleSpin var(--durationCenter) linear infinite}.pause-animation.svelte-1w4sjib,.pause-animation.svelte-1w4sjib:after,.pause-animation.svelte-1w4sjib:before{animation-play-state:paused}@keyframes svelte-1w4sjib-circleSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.wrapper.svelte-7wj78d{width:var(--size);height:var(--size);display:flex;justify-content:center;align-items:center;line-height:0;box-sizing:border-box}.inner.svelte-7wj78d{transform:scale(calc(var(--floatSize) / 52))}.ball-container.svelte-7wj78d{animation:svelte-7wj78d-ballTwo var(--duration) infinite;width:44px;height:44px;flex-shrink:0;position:relative}.single-ball.svelte-7wj78d{width:44px;height:44px;position:absolute}.ball.svelte-7wj78d{width:20px;height:20px;border-radius:50%;position:absolute;animation:svelte-7wj78d-ballOne var(--duration) infinite ease}.pause-animation.svelte-7wj78d{animation-play-state:paused}.ball-top-left.svelte-7wj78d{background-color:var(--ballTopLeftColor);top:0;left:0}.ball-top-right.svelte-7wj78d{background-color:var(--ballTopRightColor);top:0;left:24px}.ball-bottom-left.svelte-7wj78d{background-color:var(--ballBottomLeftColor);top:24px;left:0}.ball-bottom-right.svelte-7wj78d{background-color:var(--ballBottomRightColor);top:24px;left:24px}@keyframes svelte-7wj78d-ballOne{0%{position:absolute}50%{top:12px;left:12px;position:absolute;opacity:.5}to{position:absolute}}@keyframes svelte-7wj78d-ballTwo{0%{transform:rotate(0) scale(1)}50%{transform:rotate(360deg) scale(1.3)}to{transform:rotate(720deg) scale(1)}}.wrapper.svelte-1bsg8wv{position:relative;width:var(--size);height:var(--size)}.circle.svelte-1bsg8wv{position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:.6;top:0;left:0;animation-fill-mode:both;animation-name:svelte-1bsg8wv-bounce!important}.pause-animation.svelte-1bsg8wv{animation-play-state:paused}@keyframes svelte-1bsg8wv-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.svelte-rhgdjk{overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;background:#f86;border-radius:50%;transform:rotate(90deg);transform-origin:50% 50%;animation:svelte-rhgdjk-plus-loader-background var(--duration) infinite ease-in-out}.svelte-rhgdjk:after{background:#f86;border-radius:50% 0 0 50%;content:"";position:absolute;right:50%;top:0;width:50%;height:100%;transform-origin:100% 50%;animation:svelte-rhgdjk-plus-loader-top var(--duration) infinite linear}.svelte-rhgdjk:before{background:#fc6;border-radius:50% 0 0 50%;content:"";position:absolute;right:50%;top:0;width:50%;height:100%;transform-origin:100% 50%;animation:svelte-rhgdjk-plus-loader-bottom var(--duration) infinite linear}.pause-animation.svelte-rhgdjk,.pause-animation.svelte-rhgdjk:before,.pause-animation.svelte-rhgdjk:after{animation-play-state:paused}@keyframes svelte-rhgdjk-plus-loader-top{2.5%{background:#f86;transform:rotateY(0);animation-timing-function:ease-in}13.75%{background:#ff430d;transform:rotateY(90deg);animation-timing-function:step-start}13.76%{background:#ffae0d;transform:rotateY(90deg);animation-timing-function:ease-out}25%{background:#fc6;transform:rotateY(180deg)}27.5%{background:#fc6;transform:rotateY(180deg);animation-timing-function:ease-in}41.25%{background:#ffae0d;transform:rotateY(90deg);animation-timing-function:step-start}41.26%{background:#2cc642;transform:rotateY(90deg);animation-timing-function:ease-out}50%{background:#6d7;transform:rotateY(0)}52.5%{background:#6d7;transform:rotateY(0);animation-timing-function:ease-in}63.75%{background:#2cc642;transform:rotateY(90deg);animation-timing-function:step-start}63.76%{background:#1386d2;transform:rotateY(90deg);animation-timing-function:ease-out}75%{background:#4ae;transform:rotateY(180deg)}77.5%{background:#4ae;transform:rotateY(180deg);animation-timing-function:ease-in}91.25%{background:#1386d2;transform:rotateY(90deg);animation-timing-function:step-start}91.26%{background:#ff430d;transform:rotateY(90deg);animation-timing-function:ease-in}to{background:#f86;transform:rotateY(0);animation-timing-function:step-start}}@keyframes svelte-rhgdjk-plus-loader-bottom{0%{background:#fc6;animation-timing-function:step-start}50%{background:#fc6;animation-timing-function:step-start}75%{background:#4ae;animation-timing-function:step-start}to{background:#4ae;animation-timing-function:step-start}}@keyframes svelte-rhgdjk-plus-loader-background{0%{background:#f86;transform:rotate(180deg)}25%{background:#f86;transform:rotate(180deg);animation-timing-function:step-start}27.5%{background:#6d7;transform:rotate(90deg)}50%{background:#6d7;transform:rotate(90deg);animation-timing-function:step-start}52.5%{background:#6d7;transform:rotate(0)}75%{background:#6d7;transform:rotate(0);animation-timing-function:step-start}77.5%{background:#f86;transform:rotate(270deg)}to{background:#f86;transform:rotate(270deg);animation-timing-function:step-start}}.wrapper.svelte-1w1ueev{width:var(--size);height:var(--size)}.circle.svelte-1w1ueev{width:var(--size);height:var(--size);background-color:var(--color);animation-duration:var(--duration);border-radius:100%;display:inline-block;animation:svelte-1w1ueev-scaleOut var(--duration) ease-in-out infinite}.pause-animation.svelte-1w1ueev{animation-play-state:paused}@keyframes svelte-1w1ueev-scaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}.wrapper.svelte-nfuakd{width:var(--size);height:var(--stroke);transform:scale(calc(var(--floatSize) / 75));display:flex;justify-content:center;align-items:center}.line.svelte-nfuakd{width:var(--size);height:var(--stroke);background:var(--color);border-radius:var(--stroke);transform-origin:center center;animation:svelte-nfuakd-spineLine var(--duration) ease infinite}.pause-animation.svelte-nfuakd{animation-play-state:paused}@keyframes svelte-nfuakd-spineLine{0%{transform:rotate(-20deg);height:5px;width:75px}5%{height:5px;width:75px}30%{transform:rotate(380deg);height:5px;width:75px}40%{transform:rotate(360deg);height:5px;width:75px}55%{transform:rotate(0);height:5px;width:5px}65%{transform:rotate(0);height:5px;width:85px}68%{transform:rotate(0);height:5px}75%{transform:rotate(0);height:5px;width:1px}78%{height:5px;width:5px}90%{height:5px;width:75px;transform:rotate(0)}99%,to{height:5px;width:75px;transform:rotate(-20deg)}}.wrapper.svelte-cihful{height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px}.rect.svelte-cihful{height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(.4);background-color:var(--color);animation:svelte-cihful-stretch var(--duration) ease-in-out infinite}.pause-animation.svelte-cihful{animation-play-state:paused}@keyframes svelte-cihful-stretch{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.wrapper.svelte-bnawe9{height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box}.lines.svelte-bnawe9{height:calc(var(--size) / 15);background-color:var(--color)}.small-lines.svelte-bnawe9{position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left,right;animation-fill-mode:forwards}.small-lines.\31.svelte-bnawe9{animation:var(--duration) cubic-bezier(.65,.815,.735,.395) 0s infinite normal none running svelte-bnawe9-long}.small-lines.\32.svelte-bnawe9{animation:var(--duration) cubic-bezier(.165,.84,.44,1) calc((var(--duration) + .1) / 2) infinite normal none running svelte-bnawe9-short}.pause-animation.svelte-bnawe9{animation-play-state:paused}@keyframes svelte-bnawe9-long{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes svelte-bnawe9-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}.wrapper.svelte-c0n7a9{width:var(--size);height:var(--size)}.circle.svelte-c0n7a9{border-radius:100%;animation-fill-mode:both;position:absolute;opacity:0;width:var(--size);height:var(--size);background-color:var(--color);animation:svelte-c0n7a9-bounce var(--duration) linear infinite}.pause-animation.svelte-c0n7a9{animation-play-state:paused}@keyframes svelte-c0n7a9-bounce{0%{opacity:0;transform:scale(0)}5%{opacity:1}to{opacity:0;transform:scale(1)}}.wrapper.svelte-kxapcj{position:relative;width:var(--size);height:var(--size)}.border.svelte-kxapcj{border-color:var(--color);position:absolute;top:0;left:0;width:var(--size);height:var(--size);opacity:.4;perspective:800px;border-width:6px;border-style:solid;-o-border-image:initial;border-image:initial;border-radius:100%}.border.\31.svelte-kxapcj{animation:var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringOne}.border.\32.svelte-kxapcj{animation:var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringTwo}.pause-animation.svelte-kxapcj{animation-play-state:paused}@keyframes svelte-kxapcj-ringOne{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(360deg) rotateY(180deg) rotate(360deg)}}@keyframes svelte-kxapcj-ringTwo{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(180deg) rotateY(360deg) rotate(360deg)}}.wrapper.svelte-14x3x60{height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center}.dot.svelte-14x3x60{height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;animation:svelte-14x3x60-sync var(--duration) ease-in-out infinite alternate both running}.pause-animation.svelte-14x3x60{animation-play-state:paused}@keyframes svelte-14x3x60-sync{33%{transform:translateY(10px)}66%{transform:translateY(-10px)}to{transform:translateY(0)}}.wrapper.svelte-1lgkc8y{width:var(--size);height:calc(var(--size) / 2);overflow:hidden}.rainbow.svelte-1lgkc8y{width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;animation:var(--duration) ease-in-out 0s infinite normal none running svelte-1lgkc8y-rotate}.pause-animation.svelte-1lgkc8y{animation-play-state:paused}@keyframes svelte-1lgkc8y-rotate{0%{border-width:10px}25%{border-width:3px}50%{transform:rotate(115deg);border-width:10px}75%{border-width:3px}to{border-width:10px}}.wrapper.svelte-x7zza7{width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center}.firework.svelte-x7zza7{border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;animation:svelte-x7zza7-fire var(--duration) cubic-bezier(.165,.84,.44,1) infinite}.pause-animation.svelte-x7zza7{animation-play-state:paused}@keyframes svelte-x7zza7-fire{0%{opacity:1;transform:scale(.1)}25%{opacity:.85}to{transform:scale(1);opacity:0}}.wrapper.svelte-1w8rpx6{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5)}.cube.svelte-1w8rpx6{position:absolute;top:0;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);animation:svelte-1w8rpx6-motion var(--duration) cubic-bezier(.895,.03,.685,.22) infinite}.pause-animation.svelte-1w8rpx6{animation-play-state:paused}@keyframes svelte-1w8rpx6-motion{0%{opacity:1}50%{opacity:0}to{opacity:1}}.wrapper.svelte-1rvptk{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size)}.ring.svelte-1rvptk{position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;animation:svelte-1rvptk-motion var(--duration) ease infinite}.pause-animation.svelte-1rvptk{animation-play-state:paused}@keyframes svelte-1rvptk-motion{0%{transform:translateY(var(--motionOne))}50%{transform:translateY(var(--motionTwo))}to{transform:translateY(var(--motionThree))}}.wrapper.svelte-1uhddr4{height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center}.spinner.svelte-1uhddr4{height:var(--size);width:var(--size);animation:svelte-1uhddr4-rotate var(--duration) infinite linear}.dot.svelte-1uhddr4{width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:var(--color);border-radius:100%;animation:svelte-1uhddr4-bounce var(--duration) infinite ease-in-out}.pause-animation.svelte-1uhddr4{animation-play-state:paused}@keyframes svelte-1uhddr4-rotate{to{transform:rotate(360deg)}}@keyframes svelte-1uhddr4-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.square.svelte-x90y{height:var(--size);width:var(--size);background-color:var(--color);animation:svelte-x90y-squareDelay var(--duration) 0s infinite cubic-bezier(.09,.57,.49,.9);animation-fill-mode:both;perspective:100px;display:inline-block}.pause-animation.svelte-x90y{animation-play-state:paused}@keyframes svelte-x90y-squareDelay{25%{transform:rotateX(180deg) rotateY(0)}50%{transform:rotateX(180deg) rotateY(180deg)}75%{transform:rotateX(0) rotateY(180deg)}to{transform:rotateX(0) rotateY(0)}}.wrapper.svelte-5bpnhx{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size)}.shadow.svelte-5bpnhx{color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);animation:svelte-5bpnhx-load var(--duration) infinite ease,svelte-5bpnhx-round var(--duration) infinite ease}.pause-animation.svelte-5bpnhx{animation-play-state:paused}@keyframes svelte-5bpnhx-load{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}}@keyframes svelte-5bpnhx-round{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.wrapper.svelte-e653jg{height:var(--size);width:var(--size);border-radius:100%;animation:svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;position:relative}.circle-one.svelte-e653jg{top:var(--moonSize);background-color:var(--color);width:calc(var(--size) / 7);height:calc(var(--size) / 7);border-radius:100%;animation:svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;opacity:.8;position:absolute}.circle-two.svelte-e653jg{opacity:.1;border:calc(var(--size) / 7) solid var(--color);height:var(--size);width:var(--size);border-radius:100%;box-sizing:border-box}.pause-animation.svelte-e653jg{animation-play-state:paused}@keyframes svelte-e653jg-moonStretchDelay{to{transform:rotate(360deg)}}.wrapper.svelte-1cx3779.svelte-1cx3779{height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center}.wrapper.svelte-1cx3779 .svelte-1cx3779{line-height:0;box-sizing:border-box}.spinner-inner.svelte-1cx3779.svelte-1cx3779{height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70))}.mask.svelte-1cx3779.svelte-1cx3779{position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden}.plane.svelte-1cx3779.svelte-1cx3779{background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden}#top.svelte-1cx3779 .plane.svelte-1cx3779{z-index:2000;animation:svelte-1cx3779-trans1 var(--duration) ease-in infinite 0s backwards}#middle.svelte-1cx3779 .plane.svelte-1cx3779{transform:translateZ(0);background:var(--rgba);animation:svelte-1cx3779-trans2 var(--duration) linear infinite calc(var(--duration) / 4) backwards}#bottom.svelte-1cx3779 .plane.svelte-1cx3779{z-index:2000;animation:svelte-1cx3779-trans3 var(--duration) ease-out infinite calc(var(--duration) / 2) backwards}#top.svelte-1cx3779.svelte-1cx3779{width:53px;height:20px;left:20px;top:5px;transform:skew(-15deg);z-index:100}#middle.svelte-1cx3779.svelte-1cx3779{width:33px;height:20px;left:20px;top:21px;transform:skew(-15deg,40deg)}#bottom.svelte-1cx3779.svelte-1cx3779{width:53px;height:20px;top:35px;transform:skew(-15deg)}.pause-animation.svelte-1cx3779 .plane.svelte-1cx3779{animation-play-state:paused}@keyframes svelte-1cx3779-trans1{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-250px,0,0)}}@keyframes svelte-1cx3779-trans2{0%{transform:translate3d(-160px,0,0)}to{transform:translate3d(53px,0,0)}}@keyframes svelte-1cx3779-trans3{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-220px,0,0)}}span.svelte-1jnfmql.svelte-1jnfmql{width:var(--size);height:calc(var(--size) / 4);position:relative;display:block}div.svelte-1jnfmql.svelte-1jnfmql{width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translate(-50%) rotate(45deg) scale(0);animation:svelte-1jnfmql-diamonds var(--duration) linear infinite}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(1){animation-delay:calc(var(--duration) * 2 / 3 * -1)}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(2){animation-delay:calc(var(--duration) * 2 / 3 * -2)}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(3){animation-delay:calc(var(--duration) * 2 / 3 * -3)}.pause-animation.svelte-1jnfmql div.svelte-1jnfmql{animation-play-state:paused}@keyframes svelte-1jnfmql-diamonds{50%{left:50%;transform:translate(-50%) rotate(45deg) scale(1)}to{left:100%;transform:translate(-50%) rotate(45deg) scale(0)}}div.svelte-db2m9w{position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0 0 0 2px var(--color);border-radius:50%}div.svelte-db2m9w:before,div.svelte-db2m9w:after{position:absolute;content:"";background-color:var(--color)}div.svelte-db2m9w:after{width:calc(var(--size) / 2.4);height:2px;top:calc(var(--size) / 2);left:calc(var(--size) / 2);transform-origin:1px 1px;animation:svelte-db2m9w-rotate calc(var(--duration) / 4) linear infinite}div.svelte-db2m9w:before{width:calc(var(--size) / 3);height:2px;top:calc((var(--size) / 2));left:calc((var(--size) / 2));transform-origin:1px 1px;animation:svelte-db2m9w-rotate var(--duration) linear infinite}.pause-animation.svelte-db2m9w,.pause-animation.svelte-db2m9w:before,.pause-animation.svelte-db2m9w:after{animation-play-state:paused}@keyframes svelte-db2m9w-rotate{to{transform:rotate(360deg)}}.wrapper.svelte-1vzsw15{position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden}.bar.svelte-1vzsw15{position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0);background-color:var(--color);animation:svelte-1vzsw15-motion var(--duration) ease-in-out infinite}.pause-animation.svelte-1vzsw15{animation-play-state:paused}@keyframes svelte-1vzsw15-motion{25%{transform:skewY(25deg)}50%{height:100%;margin-top:0}75%{transform:skewY(-25deg)}}.wrapper.svelte-bv9t2p{display:inherit;position:relative;width:var(--size);height:var(--size)}.circle.svelte-bv9t2p{position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0;left:0;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.165,.84,.44,1),cubic-bezier(.3,.61,.355,1);animation-direction:normal,normal;animation-fill-mode:none,none;animation-play-state:running,running;animation-name:svelte-bv9t2p-puff-1,svelte-bv9t2p-puff-2;box-sizing:border-box}.pause-animation.svelte-bv9t2p{animation-play-state:paused}@keyframes svelte-bv9t2p-puff-1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes svelte-bv9t2p-puff-2{0%{opacity:1}to{opacity:0}}.wrapper.svelte-f6hkgc{width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;animation:svelte-f6hkgc-bump var(--duration) ease-in infinite alternate}.wrapper.svelte-f6hkgc:after{content:"";box-sizing:border-box;left:50%;top:100%;transform:translate(-50%);position:absolute;border:var(--size) solid transparent;border-top-color:var(--color)}.pause-animation.svelte-f6hkgc{animation-play-state:paused}@keyframes svelte-f6hkgc-bump{0%{transform:translate(-50%,5px)}to{transform:translate(-50%,-5px)}}.wrapper.svelte-1ju64u{width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;animation:svelte-1ju64u-bump var(--duration) ease-in infinite alternate}.wrapper.svelte-1ju64u:after{content:"";box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color)}.pause-animation.svelte-1ju64u{animation-play-state:paused}@keyframes svelte-1ju64u-bump{0%{transform:translate(-50%,5px)}to{transform:translate(-50%,-5px)}}p.svelte-1veany6{word-break:break-all}.grid-container.svelte-17jvefj{display:grid;grid-template-columns:1fr 1fr 1fr;width:auto;padding:10px;gap:10px} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}input[type=range].range-sm::-webkit-slider-thumb{height:1rem;width:1rem}input[type=range].range-lg::-webkit-slider-thumb{height:1.5rem;width:1.5rem}input[type=range].range-sm::-moz-range-thumb{height:1rem;width:1rem}input[type=range].range-lg::-moz-range-thumb{height:1.5rem;width:1.5rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1{top:-.25rem;right:-.25rem;bottom:-.25rem;left:-.25rem}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-14{left:-3.5rem}.-left-3{left:-.75rem}.-left-\[17px\]{left:-17px}.-right-\[16px\]{right:-16px}.-right-\[17px\]{right:-17px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-5{left:1.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-5{right:1.25rem}.right-6{right:1.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.top-\[124px\]{top:124px}.top-\[142px\]{top:142px}.top-\[178px\]{top:178px}.top-\[40px\]{top:40px}.top-\[72px\]{top:72px}.top-\[88px\]{top:88px}.top-\[calc\(100\%\+1rem\)\]{top:calc(100% + 1rem)}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2 / span 2}.m-0{margin:0}.m-0\.5{margin:.125rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.-ml-4{margin-left:-1rem}.-mr-1{margin-right:-.25rem}.-mr-1\.5{margin-right:-.375rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-px{margin-bottom:1px}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-36{height:9rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[140px\]{height:140px}.h-\[156px\]{height:156px}.h-\[172px\]{height:172px}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[193px\]{height:193px}.h-\[213px\]{height:213px}.h-\[24px\]{height:24px}.h-\[32px\]{height:32px}.h-\[41px\]{height:41px}.h-\[426px\]{height:426px}.h-\[454px\]{height:454px}.h-\[46px\]{height:46px}.h-\[52px\]{height:52px}.h-\[55px\]{height:55px}.h-\[572px\]{height:572px}.h-\[5px\]{height:5px}.h-\[600px\]{height:600px}.h-\[63px\]{height:63px}.h-\[64px\]{height:64px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.max-h-64{max-height:16rem}.max-h-full{max-height:100%}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-10\/12{width:83.333333%}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/4{width:50%}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-8\/12{width:66.666667%}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-\[100\%\]{width:100%}.w-\[10px\]{width:10px}.w-\[148px\]{width:148px}.w-\[188px\]{width:188px}.w-\[1px\]{width:1px}.w-\[208px\]{width:208px}.w-\[272px\]{width:272px}.w-\[300px\]{width:300px}.w-\[3px\]{width:3px}.w-\[52px\]{width:52px}.w-\[56px\]{width:56px}.w-\[6px\]{width:6px}.w-\[calc\(100\%-2rem\)\]{width:calc(100% - 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[100\%\]{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[133px\]{max-width:133px}.max-w-\[301px\]{max-width:301px}.max-w-\[341px\]{max-width:341px}.max-w-\[351px\]{max-width:351px}.max-w-\[540px\]{max-width:540px}.max-w-\[640px\]{max-width:640px}.max-w-\[83px\]{max-width:83px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-md{max-width:768px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\[0\]{transform-origin:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\/3{--tw-translate-x: -33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/3{--tw-translate-y: -33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-4{--tw-translate-y: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-6{--tw-translate-y: -1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/3{--tw-translate-x: 33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/3{--tw-translate-y: 33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-y-4{row-gap:1rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-blue-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(164 202 254 / var(--tw-divide-opacity))}.divide-blue-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(118 169 250 / var(--tw-divide-opacity))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.divide-gray-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(156 163 175 / var(--tw-divide-opacity))}.divide-gray-500>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(107 114 128 / var(--tw-divide-opacity))}.divide-gray-700>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.divide-green-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(132 225 188 / var(--tw-divide-opacity))}.divide-green-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(49 196 141 / var(--tw-divide-opacity))}.divide-indigo-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(180 198 252 / var(--tw-divide-opacity))}.divide-indigo-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(141 162 251 / var(--tw-divide-opacity))}.divide-orange-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(253 186 140 / var(--tw-divide-opacity))}.divide-pink-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(248 180 217 / var(--tw-divide-opacity))}.divide-pink-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(241 126 184 / var(--tw-divide-opacity))}.divide-primary-500>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(99 102 241 / var(--tw-divide-opacity))}.divide-purple-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(202 191 253 / var(--tw-divide-opacity))}.divide-purple-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(172 148 250 / var(--tw-divide-opacity))}.divide-red-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(248 180 180 / var(--tw-divide-opacity))}.divide-red-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(249 128 128 / var(--tw-divide-opacity))}.divide-yellow-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(250 202 21 / var(--tw-divide-opacity))}.divide-yellow-400>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(227 160 8 / var(--tw-divide-opacity))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!rounded-md{border-radius:.375rem!important}.rounded{border-radius:.25rem}.rounded-\[2\.5rem\]{border-radius:2.5rem}.rounded-\[2rem\]{border-radius:2rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[1rem\]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-\[2\.5rem\]{border-bottom-right-radius:2.5rem;border-bottom-left-radius:2.5rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[2\.5rem\]{border-top-left-radius:2.5rem;border-top-right-radius:2.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[10px\]{border-width:10px}.border-\[14px\]{border-width:14px}.border-\[16px\]{border-width:16px}.border-\[8px\]{border-width:8px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(132 225 188 / var(--tw-border-opacity))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(49 196 141 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(180 198 252 / var(--tw-border-opacity))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(141 162 251 / var(--tw-border-opacity))}.border-inherit{border-color:inherit}.border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 140 / var(--tw-border-opacity))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(248 180 217 / var(--tw-border-opacity))}.border-pink-400{--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity))}.border-primary-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-primary-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-primary-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(202 191 253 / var(--tw-border-opacity))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(248 180 180 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(249 128 128 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(243 250 247 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(240 245 255 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 248 241 / var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(208 56 1 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-primary-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(246 245 255 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(6 148 162 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(253 253 234 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(159 88 10 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-75{--tw-bg-opacity: .75}.bg-\[url\(\'https\:\/\/chaindebrief\.com\/wp-content\/uploads\/2021\/08\/Metamask-logo\.png\'\)\]{background-image:url(https://chaindebrief.com/wp-content/uploads/2021/08/Metamask-logo.png)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-400{--tw-gradient-from: #22d3ee var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 211 238 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-200{--tw-gradient-from: #d9f99d var(--tw-gradient-from-position);--tw-gradient-to: rgb(217 249 157 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-400{--tw-gradient-from: #F17EB8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(241 126 184 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-400{--tw-gradient-from: #F98080 var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 128 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-sky-400{--tw-gradient-from: #38bdf8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(56 189 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-400{--tw-gradient-from: #16BDCA var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 189 202 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-500{--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #06b6d4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-500{--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0E9F6E var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-400{--tw-gradient-to: rgb(163 230 53 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #a3e635 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-500{--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E74694 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-500{--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F05252 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-500{--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0694A2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-600{--tw-gradient-to: #0891b2 var(--tw-gradient-to-position)}.to-emerald-600{--tw-gradient-to: #059669 var(--tw-gradient-to-position)}.to-green-600{--tw-gradient-to: #057A55 var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-500{--tw-gradient-to: #84cc16 var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-600{--tw-gradient-to: #D61F69 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-600{--tw-gradient-to: #E02424 var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to: #047481 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-no-repeat{background-repeat:no-repeat}.fill-blue-600{fill:#1c64f2}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-primary-600{fill:#4f46e5}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-0{padding:0!important}.\!p-2{padding:.5rem!important}.\!p-3{padding:.75rem!important}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-0{padding-left:0;padding-right:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-2\.5{padding-bottom:.625rem}.pl-10{padding-left:2.5rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-11{padding-right:2.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-9xl{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-loose{line-height:2}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(235 245 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-100{--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(229 237 255 / var(--tw-text-opacity))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(141 162 251 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-800{--tw-text-opacity: 1;color:rgb(138 44 13 / var(--tw-text-opacity))}.text-pink-100{--tw-text-opacity: 1;color:rgb(252 232 243 / var(--tw-text-opacity))}.text-pink-400{--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-primary-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity))}.text-primary-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-primary-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-primary-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity))}.text-purple-100{--tw-text-opacity: 1;color:rgb(237 235 254 / var(--tw-text-opacity))}.text-purple-400{--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(253 246 178 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.decoration-blue-400{text-decoration-color:#76a9fa}.decoration-2{text-decoration-thickness:2px}.placeholder-green-700::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(4 108 78 / var(--tw-placeholder-opacity))}.placeholder-green-700::placeholder{--tw-placeholder-opacity: 1;color:rgb(4 108 78 / var(--tw-placeholder-opacity))}.placeholder-red-700::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(200 30 30 / var(--tw-placeholder-opacity))}.placeholder-red-700::placeholder{--tw-placeholder-opacity: 1;color:rgb(200 30 30 / var(--tw-placeholder-opacity))}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.bg-blend-multiply{background-blend-mode:multiply}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-primary-500\/50{--tw-shadow-color: rgb(99 102 241 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-500\/50{--tw-shadow-color: rgb(194 120 3 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-primary-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.first-letter\:float-left:first-letter{float:left}.first-letter\:mr-3:first-letter{margin-right:.75rem}.first-letter\:text-7xl:first-letter{font-size:4.5rem;line-height:1}.first-letter\:font-bold:first-letter{font-weight:700}.first-letter\:text-gray-900:first-letter{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.first-line\:uppercase:first-line{text-transform:uppercase}.first-line\:tracking-widest:first-line{letter-spacing:.1em}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:right-0:before{content:var(--tw-content);right:0}.before\:z-10:before{content:var(--tw-content);z-index:10}.before\:block:before{content:var(--tw-content);display:block}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:shadow-\[-10px_0_50px_65px_rgba\(256\,256\,256\,1\)\]:before{content:var(--tw-content);--tw-shadow: -10px 0 50px 65px rgba(256,256,256,1);--tw-shadow-colored: -10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.before\:content-\[\'\'\]:before{--tw-content: "";content:var(--tw-content)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[2px\]:after{content:var(--tw-content);left:2px}.after\:left-\[4px\]:after{content:var(--tw-content);left:4px}.after\:top-0:after{content:var(--tw-content);top:0}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:z-10:after{content:var(--tw-content);z-index:10}.after\:block:after{content:var(--tw-content);display:block}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:h-6:after{content:var(--tw-content);height:1.5rem}.after\:h-full:after{content:var(--tw-content);height:100%}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:w-6:after{content:var(--tw-content);width:1.5rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:shadow-\[10px_0_50px_65px_rgba\(256\,256\,256\,1\)\]:after{content:var(--tw-content);--tw-shadow: 10px 0 50px 65px rgba(256,256,256,1);--tw-shadow-colored: 10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.first\:rounded-l-full:first-child{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.first\:border-l:first-child{border-left-width:1px}.last\:mr-0:last-child{margin-right:0}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-full:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.odd\:bg-blue-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.odd\:bg-green-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.odd\:bg-purple-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.odd\:bg-red-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.odd\:bg-white:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.odd\:bg-yellow-800:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}.even\:bg-blue-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.even\:bg-green-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.even\:bg-purple-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.even\:bg-red-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.even\:bg-yellow-700:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(142 75 16 / var(--tw-bg-opacity))}.focus-within\:border-primary-500:focus-within{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.hover\:bg-pink-200:hover{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.hover\:bg-primary-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.hover\:bg-primary-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\:bg-primary-800:hover{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}.hover\:bg-purple-200:hover{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.hover\:bg-purple-400:hover{--tw-bg-opacity: 1;background-color:rgb(172 148 250 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-400:hover{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:\!text-inherit:hover{color:inherit!important}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-blue-900:hover{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.hover\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-900:hover{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.hover\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.hover\:text-pink-900:hover{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.hover\:text-primary-700:hover{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.hover\:text-primary-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.hover\:text-purple-900:hover{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.hover\:text-red-900:hover{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-900:hover{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:z-10:focus{z-index:10}.focus\:z-40:focus{z-index:40}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-gray-200:focus{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.focus\:border-green-500:focus{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.focus\:border-green-600:focus{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.focus\:border-primary-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:border-primary-600:focus{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.focus\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.focus\:border-red-600:focus{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.focus\:bg-gray-900:focus{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:text-primary-700:focus{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:\!ring-gray-300:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity)) !important}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity))}.focus\:ring-indigo-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(141 162 251 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-orange-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 90 31 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-pink-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(241 126 184 / var(--tw-ring-opacity))}.focus\:ring-primary-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-primary-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(129 140 248 / var(--tw-ring-opacity))}.focus\:ring-primary-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-primary-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(67 56 202 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-purple-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(172 148 250 / var(--tw-ring-opacity))}.focus\:ring-purple-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(144 97 249 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-teal-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(6 148 162 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-yellow-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(194 120 3 / var(--tw-ring-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:first-child .group-first\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.group:first-child .group-first\:rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.group:first-child .group-first\:border-t{border-top-width:1px}.group:last-child .group-last\:rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.group:hover .group-hover\:rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:\!bg-opacity-0{--tw-bg-opacity: 0 !important}.group:hover .group-hover\:\!text-inherit{color:inherit!important}.group:hover .group-hover\:text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(255 90 31 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(4 116 129 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%}.peer:placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:left-0{left:0}.peer:focus~.peer-focus\:top-2{top:.5rem}.peer:focus~.peer-focus\:-translate-y-4{--tw-translate-y: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:-translate-y-6{--tw-translate-y: -1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:px-2{padding-left:.5rem;padding-right:.5rem}.peer:focus~.peer-focus\:text-primary-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-green-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-orange-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 186 140 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-primary-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-purple-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-red-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-teal-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:ring-yellow-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}:is(.dark .dark\:block){display:block}:is(.dark .dark\:hidden){display:none}:is(.dark .dark\:divide-blue-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(26 86 219 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-blue-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(30 66 159 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-600)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(75 85 99 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-gray-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(31 41 55 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-green-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(4 108 78 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-green-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(3 84 63 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-indigo-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(81 69 205 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-indigo-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(66 56 157 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-orange-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(138 44 13 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-pink-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(191 18 93 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-pink-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(153 21 75 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-primary-200)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(199 210 254 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-purple-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(108 43 217 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-purple-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(85 33 181 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-red-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(200 30 30 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-red-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(155 28 28 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-yellow-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(142 75 16 / var(--tw-divide-opacity))}:is(.dark .dark\:divide-yellow-800)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(114 59 19 / var(--tw-divide-opacity))}:is(.dark .dark\:\!border-gray-600){--tw-border-opacity: 1 !important;border-color:rgb(75 85 99 / var(--tw-border-opacity))!important}:is(.dark .dark\:border-blue-400){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-800){--tw-border-opacity: 1;border-color:rgb(30 66 159 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(49 196 141 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-800){--tw-border-opacity: 1;border-color:rgb(3 84 63 / var(--tw-border-opacity))}:is(.dark .dark\:border-indigo-400){--tw-border-opacity: 1;border-color:rgb(141 162 251 / var(--tw-border-opacity))}:is(.dark .dark\:border-indigo-800){--tw-border-opacity: 1;border-color:rgb(66 56 157 / var(--tw-border-opacity))}:is(.dark .dark\:border-orange-800){--tw-border-opacity: 1;border-color:rgb(138 44 13 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-800){--tw-border-opacity: 1;border-color:rgb(153 21 75 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-200){--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-400){--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-primary-500){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-800){--tw-border-opacity: 1;border-color:rgb(85 33 181 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-400){--tw-border-opacity: 1;border-color:rgb(249 128 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-800){--tw-border-opacity: 1;border-color:rgb(155 28 28 / var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:border-yellow-800){--tw-border-opacity: 1;border-color:rgb(114 59 19 / var(--tw-border-opacity))}:is(.dark .dark\:border-r-gray-600){--tw-border-opacity: 1;border-right-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-r-gray-700){--tw-border-opacity: 1;border-right-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:bg-blue-400){--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-400){--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-900){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-400){--tw-bg-opacity: 1;background-color:rgb(141 162 251 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-800){--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-900){--tw-bg-opacity: 1;background-color:rgb(54 47 120 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-inherit){background-color:inherit}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-400){--tw-bg-opacity: 1;background-color:rgb(241 126 184 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-900){--tw-bg-opacity: 1;background-color:rgb(117 26 61 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-200){--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-400){--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-500){--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-600){--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-800){--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary-900){--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-400){--tw-bg-opacity: 1;background-color:rgb(172 148 250 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-800){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-900){--tw-bg-opacity: 1;background-color:rgb(74 29 150 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:transparent}:is(.dark .dark\:bg-yellow-400){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-600){--tw-bg-opacity: 1;background-color:rgb(159 88 10 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-800){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-900){--tw-bg-opacity: 1;background-color:rgb(99 49 18 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:\!text-white){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}:is(.dark .dark\:text-blue-100){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-400){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-300){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-400){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-100){--tw-text-opacity: 1;color:rgb(229 237 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-200){--tw-text-opacity: 1;color:rgb(205 219 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-300){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-400){--tw-text-opacity: 1;color:rgb(141 162 251 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-400){--tw-text-opacity: 1;color:rgb(255 138 76 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-100){--tw-text-opacity: 1;color:rgb(252 232 243 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-300){--tw-text-opacity: 1;color:rgb(248 180 217 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-200){--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-300){--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-400){--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-700){--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-800){--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary-900){--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-100){--tw-text-opacity: 1;color:rgb(237 235 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-200){--tw-text-opacity: 1;color:rgb(220 215 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-300){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-100){--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-400){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-100){--tw-text-opacity: 1;color:rgb(253 246 178 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(252 233 106 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:decoration-blue-600){text-decoration-color:#1c64f2}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-green-500)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(14 159 110 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-green-500)::placeholder{--tw-placeholder-opacity: 1;color:rgb(14 159 110 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-red-500)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(240 82 82 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-red-500)::placeholder{--tw-placeholder-opacity: 1;color:rgb(240 82 82 / var(--tw-placeholder-opacity))}:is(.dark .dark\:opacity-25){opacity:.25}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-gray-800\/80){--tw-shadow-color: rgb(31 41 55 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-primary-800\/80){--tw-shadow-color: rgb(55 48 163 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-yellow-800\/80){--tw-shadow-color: rgb(114 59 19 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-gray-900){--tw-ring-opacity: 1;--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-primary-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:first-letter\:text-gray-100):first-letter{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:before\:shadow-\[-10px_0_50px_65px_rgba\(16\,24\,39\,1\)\]):before{content:var(--tw-content);--tw-shadow: -10px 0 50px 65px rgba(16,24,39,1);--tw-shadow-colored: -10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:after\:shadow-\[10px_0_50px_65px_rgba\(16\,24\,39\,1\)\]):after{content:var(--tw-content);--tw-shadow: 10px 0 50px 65px rgba(16,24,39,1);--tw-shadow-colored: 10px 0 50px 65px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:last\:border-r-gray-500:last-child){--tw-border-opacity: 1;border-right-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:last\:border-r-gray-600:last-child){--tw-border-opacity: 1;border-right-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .odd\:dark\:bg-blue-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-gray-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-green-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-purple-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-red-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .odd\:dark\:bg-yellow-800):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-blue-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-gray-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-green-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-purple-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-red-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .even\:dark\:bg-yellow-700):nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(142 75 16 / var(--tw-bg-opacity))}:is(.dark .dark\:focus-within\:border-primary-500:focus-within){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-500:hover){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-gray-700:hover){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-800:hover){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-indigo-800:hover){--tw-bg-opacity: 1;background-color:rgb(66 56 157 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-800:hover){--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-600:hover){--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-700:hover){--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary-800:hover){--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-800:hover){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-800:hover){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-800:hover){--tw-bg-opacity: 1;background-color:rgb(114 59 19 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-gray-800):hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-blue-300:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-green-300:hover){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-indigo-300:hover){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-pink-300:hover){--tw-text-opacity: 1;color:rgb(248 180 217 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary-300:hover){--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary-900:hover){--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-purple-300:hover){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-red-300:hover){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-yellow-300:hover){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-green-500:focus){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-primary-500:focus){--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-red-500:focus){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 122 85 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-orange-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(208 56 1 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-primary-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 48 163 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(126 58 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(224 36 36 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(4 116 129 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(159 88 10 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}.peer:focus~:is(.dark .peer-focus\:dark\:text-primary-500){--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-blue-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-green-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-orange-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(138 44 13 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-primary-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 48 163 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-purple-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-red-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-teal-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .peer:focus~.dark\:peer-focus\:ring-yellow-800){--tw-ring-opacity: 1;--tw-ring-color: rgb(114 59 19 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:order-last{order:9999}.sm\:mb-0{margin-bottom:0}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:h-7{height:1.75rem}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-96{width:24rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-center{justify-content:center}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:p-8{padding:2rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:pl-4{padding-left:1rem}.sm\:pr-4{padding-right:1rem}.sm\:pr-8{padding-right:2rem}.sm\:text-center{text-align:center}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.sm\:ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.first\:sm\:pl-0:first-child{padding-left:0}.last\:sm\:pr-0:last-child{padding-right:0}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:mb-0{margin-bottom:0}.md\:ml-2{margin-left:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-\[21px\]{height:21px}.md\:h-\[262px\]{height:262px}.md\:h-\[278px\]{height:278px}.md\:h-\[294px\]{height:294px}.md\:h-\[42px\]{height:42px}.md\:h-\[654px\]{height:654px}.md\:h-\[682px\]{height:682px}.md\:h-\[8px\]{height:8px}.md\:h-\[95px\]{height:95px}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:w-48{width:12rem}.md\:w-\[96px\]{width:96px}.md\:w-auto{width:auto}.md\:max-w-\[142px\]{max-width:142px}.md\:max-w-\[512px\]{max-width:512px}.md\:max-w-\[597px\]{max-width:597px}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-row-reverse{flex-direction:row-reverse}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-8{gap:2rem}.md\:gap-x-0{-moz-column-gap:0px;column-gap:0px}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:p-8{padding:2rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-primary-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-primary-700:hover{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-transparent){background-color:transparent}:is(.dark .md\:dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:max-w-7xl{max-width:80rem}.lg\:px-10{padding-left:2.5rem;padding-right:2.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\:h-80{height:20rem}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}}.circle.svelte-dqjlks{height:var(--size);width:var(--size);border-color:var(--color) transparent var(--color) var(--color);border-width:calc(var(--size) / 15);border-style:solid;-o-border-image:initial;border-image:initial;border-radius:50%;animation:var(--duration) linear 0s infinite normal none running svelte-dqjlks-rotate}.pause-animation.svelte-dqjlks{animation-play-state:paused}@keyframes svelte-dqjlks-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.circle.svelte-1w4sjib{width:var(--size);height:var(--size);box-sizing:border-box;position:relative;border:3px solid transparent;border-top-color:var(--colorOuter);border-radius:50%;animation:svelte-1w4sjib-circleSpin var(--durationOuter) linear infinite}.circle.svelte-1w4sjib:before,.circle.svelte-1w4sjib:after{content:"";box-sizing:border-box;position:absolute;border:3px solid transparent;border-radius:50%}.circle.svelte-1w4sjib:after{border-top-color:var(--colorInner);top:9px;left:9px;right:9px;bottom:9px;animation:svelte-1w4sjib-circleSpin var(--durationInner) linear infinite}.circle.svelte-1w4sjib:before{border-top-color:var(--colorCenter);top:3px;left:3px;right:3px;bottom:3px;animation:svelte-1w4sjib-circleSpin var(--durationCenter) linear infinite}.pause-animation.svelte-1w4sjib,.pause-animation.svelte-1w4sjib:after,.pause-animation.svelte-1w4sjib:before{animation-play-state:paused}@keyframes svelte-1w4sjib-circleSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.wrapper.svelte-7wj78d{width:var(--size);height:var(--size);display:flex;justify-content:center;align-items:center;line-height:0;box-sizing:border-box}.inner.svelte-7wj78d{transform:scale(calc(var(--floatSize) / 52))}.ball-container.svelte-7wj78d{animation:svelte-7wj78d-ballTwo var(--duration) infinite;width:44px;height:44px;flex-shrink:0;position:relative}.single-ball.svelte-7wj78d{width:44px;height:44px;position:absolute}.ball.svelte-7wj78d{width:20px;height:20px;border-radius:50%;position:absolute;animation:svelte-7wj78d-ballOne var(--duration) infinite ease}.pause-animation.svelte-7wj78d{animation-play-state:paused}.ball-top-left.svelte-7wj78d{background-color:var(--ballTopLeftColor);top:0;left:0}.ball-top-right.svelte-7wj78d{background-color:var(--ballTopRightColor);top:0;left:24px}.ball-bottom-left.svelte-7wj78d{background-color:var(--ballBottomLeftColor);top:24px;left:0}.ball-bottom-right.svelte-7wj78d{background-color:var(--ballBottomRightColor);top:24px;left:24px}@keyframes svelte-7wj78d-ballOne{0%{position:absolute}50%{top:12px;left:12px;position:absolute;opacity:.5}to{position:absolute}}@keyframes svelte-7wj78d-ballTwo{0%{transform:rotate(0) scale(1)}50%{transform:rotate(360deg) scale(1.3)}to{transform:rotate(720deg) scale(1)}}.wrapper.svelte-1bsg8wv{position:relative;width:var(--size);height:var(--size)}.circle.svelte-1bsg8wv{position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:.6;top:0;left:0;animation-fill-mode:both;animation-name:svelte-1bsg8wv-bounce!important}.pause-animation.svelte-1bsg8wv{animation-play-state:paused}@keyframes svelte-1bsg8wv-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.svelte-rhgdjk{overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;background:#f86;border-radius:50%;transform:rotate(90deg);transform-origin:50% 50%;animation:svelte-rhgdjk-plus-loader-background var(--duration) infinite ease-in-out}.svelte-rhgdjk:after{background:#f86;border-radius:50% 0 0 50%;content:"";position:absolute;right:50%;top:0;width:50%;height:100%;transform-origin:100% 50%;animation:svelte-rhgdjk-plus-loader-top var(--duration) infinite linear}.svelte-rhgdjk:before{background:#fc6;border-radius:50% 0 0 50%;content:"";position:absolute;right:50%;top:0;width:50%;height:100%;transform-origin:100% 50%;animation:svelte-rhgdjk-plus-loader-bottom var(--duration) infinite linear}.pause-animation.svelte-rhgdjk,.pause-animation.svelte-rhgdjk:before,.pause-animation.svelte-rhgdjk:after{animation-play-state:paused}@keyframes svelte-rhgdjk-plus-loader-top{2.5%{background:#f86;transform:rotateY(0);animation-timing-function:ease-in}13.75%{background:#ff430d;transform:rotateY(90deg);animation-timing-function:step-start}13.76%{background:#ffae0d;transform:rotateY(90deg);animation-timing-function:ease-out}25%{background:#fc6;transform:rotateY(180deg)}27.5%{background:#fc6;transform:rotateY(180deg);animation-timing-function:ease-in}41.25%{background:#ffae0d;transform:rotateY(90deg);animation-timing-function:step-start}41.26%{background:#2cc642;transform:rotateY(90deg);animation-timing-function:ease-out}50%{background:#6d7;transform:rotateY(0)}52.5%{background:#6d7;transform:rotateY(0);animation-timing-function:ease-in}63.75%{background:#2cc642;transform:rotateY(90deg);animation-timing-function:step-start}63.76%{background:#1386d2;transform:rotateY(90deg);animation-timing-function:ease-out}75%{background:#4ae;transform:rotateY(180deg)}77.5%{background:#4ae;transform:rotateY(180deg);animation-timing-function:ease-in}91.25%{background:#1386d2;transform:rotateY(90deg);animation-timing-function:step-start}91.26%{background:#ff430d;transform:rotateY(90deg);animation-timing-function:ease-in}to{background:#f86;transform:rotateY(0);animation-timing-function:step-start}}@keyframes svelte-rhgdjk-plus-loader-bottom{0%{background:#fc6;animation-timing-function:step-start}50%{background:#fc6;animation-timing-function:step-start}75%{background:#4ae;animation-timing-function:step-start}to{background:#4ae;animation-timing-function:step-start}}@keyframes svelte-rhgdjk-plus-loader-background{0%{background:#f86;transform:rotate(180deg)}25%{background:#f86;transform:rotate(180deg);animation-timing-function:step-start}27.5%{background:#6d7;transform:rotate(90deg)}50%{background:#6d7;transform:rotate(90deg);animation-timing-function:step-start}52.5%{background:#6d7;transform:rotate(0)}75%{background:#6d7;transform:rotate(0);animation-timing-function:step-start}77.5%{background:#f86;transform:rotate(270deg)}to{background:#f86;transform:rotate(270deg);animation-timing-function:step-start}}.wrapper.svelte-1w1ueev{width:var(--size);height:var(--size)}.circle.svelte-1w1ueev{width:var(--size);height:var(--size);background-color:var(--color);animation-duration:var(--duration);border-radius:100%;display:inline-block;animation:svelte-1w1ueev-scaleOut var(--duration) ease-in-out infinite}.pause-animation.svelte-1w1ueev{animation-play-state:paused}@keyframes svelte-1w1ueev-scaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}.wrapper.svelte-nfuakd{width:var(--size);height:var(--stroke);transform:scale(calc(var(--floatSize) / 75));display:flex;justify-content:center;align-items:center}.line.svelte-nfuakd{width:var(--size);height:var(--stroke);background:var(--color);border-radius:var(--stroke);transform-origin:center center;animation:svelte-nfuakd-spineLine var(--duration) ease infinite}.pause-animation.svelte-nfuakd{animation-play-state:paused}@keyframes svelte-nfuakd-spineLine{0%{transform:rotate(-20deg);height:5px;width:75px}5%{height:5px;width:75px}30%{transform:rotate(380deg);height:5px;width:75px}40%{transform:rotate(360deg);height:5px;width:75px}55%{transform:rotate(0);height:5px;width:5px}65%{transform:rotate(0);height:5px;width:85px}68%{transform:rotate(0);height:5px}75%{transform:rotate(0);height:5px;width:1px}78%{height:5px;width:5px}90%{height:5px;width:75px;transform:rotate(0)}99%,to{height:5px;width:75px;transform:rotate(-20deg)}}.wrapper.svelte-cihful{height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px}.rect.svelte-cihful{height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(.4);background-color:var(--color);animation:svelte-cihful-stretch var(--duration) ease-in-out infinite}.pause-animation.svelte-cihful{animation-play-state:paused}@keyframes svelte-cihful-stretch{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.wrapper.svelte-bnawe9{height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box}.lines.svelte-bnawe9{height:calc(var(--size) / 15);background-color:var(--color)}.small-lines.svelte-bnawe9{position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left,right;animation-fill-mode:forwards}.small-lines.\31.svelte-bnawe9{animation:var(--duration) cubic-bezier(.65,.815,.735,.395) 0s infinite normal none running svelte-bnawe9-long}.small-lines.\32.svelte-bnawe9{animation:var(--duration) cubic-bezier(.165,.84,.44,1) calc((var(--duration) + .1) / 2) infinite normal none running svelte-bnawe9-short}.pause-animation.svelte-bnawe9{animation-play-state:paused}@keyframes svelte-bnawe9-long{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes svelte-bnawe9-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}.wrapper.svelte-c0n7a9{width:var(--size);height:var(--size)}.circle.svelte-c0n7a9{border-radius:100%;animation-fill-mode:both;position:absolute;opacity:0;width:var(--size);height:var(--size);background-color:var(--color);animation:svelte-c0n7a9-bounce var(--duration) linear infinite}.pause-animation.svelte-c0n7a9{animation-play-state:paused}@keyframes svelte-c0n7a9-bounce{0%{opacity:0;transform:scale(0)}5%{opacity:1}to{opacity:0;transform:scale(1)}}.wrapper.svelte-kxapcj{position:relative;width:var(--size);height:var(--size)}.border.svelte-kxapcj{border-color:var(--color);position:absolute;top:0;left:0;width:var(--size);height:var(--size);opacity:.4;perspective:800px;border-width:6px;border-style:solid;-o-border-image:initial;border-image:initial;border-radius:100%}.border.\31.svelte-kxapcj{animation:var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringOne}.border.\32.svelte-kxapcj{animation:var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringTwo}.pause-animation.svelte-kxapcj{animation-play-state:paused}@keyframes svelte-kxapcj-ringOne{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(360deg) rotateY(180deg) rotate(360deg)}}@keyframes svelte-kxapcj-ringTwo{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(180deg) rotateY(360deg) rotate(360deg)}}.wrapper.svelte-14x3x60{height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center}.dot.svelte-14x3x60{height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;animation:svelte-14x3x60-sync var(--duration) ease-in-out infinite alternate both running}.pause-animation.svelte-14x3x60{animation-play-state:paused}@keyframes svelte-14x3x60-sync{33%{transform:translateY(10px)}66%{transform:translateY(-10px)}to{transform:translateY(0)}}.wrapper.svelte-1lgkc8y{width:var(--size);height:calc(var(--size) / 2);overflow:hidden}.rainbow.svelte-1lgkc8y{width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;animation:var(--duration) ease-in-out 0s infinite normal none running svelte-1lgkc8y-rotate}.pause-animation.svelte-1lgkc8y{animation-play-state:paused}@keyframes svelte-1lgkc8y-rotate{0%{border-width:10px}25%{border-width:3px}50%{transform:rotate(115deg);border-width:10px}75%{border-width:3px}to{border-width:10px}}.wrapper.svelte-x7zza7{width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center}.firework.svelte-x7zza7{border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;animation:svelte-x7zza7-fire var(--duration) cubic-bezier(.165,.84,.44,1) infinite}.pause-animation.svelte-x7zza7{animation-play-state:paused}@keyframes svelte-x7zza7-fire{0%{opacity:1;transform:scale(.1)}25%{opacity:.85}to{transform:scale(1);opacity:0}}.wrapper.svelte-1w8rpx6{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5)}.cube.svelte-1w8rpx6{position:absolute;top:0;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);animation:svelte-1w8rpx6-motion var(--duration) cubic-bezier(.895,.03,.685,.22) infinite}.pause-animation.svelte-1w8rpx6{animation-play-state:paused}@keyframes svelte-1w8rpx6-motion{0%{opacity:1}50%{opacity:0}to{opacity:1}}.wrapper.svelte-1rvptk{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size)}.ring.svelte-1rvptk{position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;animation:svelte-1rvptk-motion var(--duration) ease infinite}.pause-animation.svelte-1rvptk{animation-play-state:paused}@keyframes svelte-1rvptk-motion{0%{transform:translateY(var(--motionOne))}50%{transform:translateY(var(--motionTwo))}to{transform:translateY(var(--motionThree))}}.wrapper.svelte-1uhddr4{height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center}.spinner.svelte-1uhddr4{height:var(--size);width:var(--size);animation:svelte-1uhddr4-rotate var(--duration) infinite linear}.dot.svelte-1uhddr4{width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:var(--color);border-radius:100%;animation:svelte-1uhddr4-bounce var(--duration) infinite ease-in-out}.pause-animation.svelte-1uhddr4{animation-play-state:paused}@keyframes svelte-1uhddr4-rotate{to{transform:rotate(360deg)}}@keyframes svelte-1uhddr4-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.square.svelte-x90y{height:var(--size);width:var(--size);background-color:var(--color);animation:svelte-x90y-squareDelay var(--duration) 0s infinite cubic-bezier(.09,.57,.49,.9);animation-fill-mode:both;perspective:100px;display:inline-block}.pause-animation.svelte-x90y{animation-play-state:paused}@keyframes svelte-x90y-squareDelay{25%{transform:rotateX(180deg) rotateY(0)}50%{transform:rotateX(180deg) rotateY(180deg)}75%{transform:rotateX(0) rotateY(180deg)}to{transform:rotateX(0) rotateY(0)}}.wrapper.svelte-5bpnhx{position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size)}.shadow.svelte-5bpnhx{color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);animation:svelte-5bpnhx-load var(--duration) infinite ease,svelte-5bpnhx-round var(--duration) infinite ease}.pause-animation.svelte-5bpnhx{animation-play-state:paused}@keyframes svelte-5bpnhx-load{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}}@keyframes svelte-5bpnhx-round{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.wrapper.svelte-e653jg{height:var(--size);width:var(--size);border-radius:100%;animation:svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;position:relative}.circle-one.svelte-e653jg{top:var(--moonSize);background-color:var(--color);width:calc(var(--size) / 7);height:calc(var(--size) / 7);border-radius:100%;animation:svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;opacity:.8;position:absolute}.circle-two.svelte-e653jg{opacity:.1;border:calc(var(--size) / 7) solid var(--color);height:var(--size);width:var(--size);border-radius:100%;box-sizing:border-box}.pause-animation.svelte-e653jg{animation-play-state:paused}@keyframes svelte-e653jg-moonStretchDelay{to{transform:rotate(360deg)}}.wrapper.svelte-1cx3779.svelte-1cx3779{height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center}.wrapper.svelte-1cx3779 .svelte-1cx3779{line-height:0;box-sizing:border-box}.spinner-inner.svelte-1cx3779.svelte-1cx3779{height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70))}.mask.svelte-1cx3779.svelte-1cx3779{position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden}.plane.svelte-1cx3779.svelte-1cx3779{background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden}#top.svelte-1cx3779 .plane.svelte-1cx3779{z-index:2000;animation:svelte-1cx3779-trans1 var(--duration) ease-in infinite 0s backwards}#middle.svelte-1cx3779 .plane.svelte-1cx3779{transform:translateZ(0);background:var(--rgba);animation:svelte-1cx3779-trans2 var(--duration) linear infinite calc(var(--duration) / 4) backwards}#bottom.svelte-1cx3779 .plane.svelte-1cx3779{z-index:2000;animation:svelte-1cx3779-trans3 var(--duration) ease-out infinite calc(var(--duration) / 2) backwards}#top.svelte-1cx3779.svelte-1cx3779{width:53px;height:20px;left:20px;top:5px;transform:skew(-15deg);z-index:100}#middle.svelte-1cx3779.svelte-1cx3779{width:33px;height:20px;left:20px;top:21px;transform:skew(-15deg,40deg)}#bottom.svelte-1cx3779.svelte-1cx3779{width:53px;height:20px;top:35px;transform:skew(-15deg)}.pause-animation.svelte-1cx3779 .plane.svelte-1cx3779{animation-play-state:paused}@keyframes svelte-1cx3779-trans1{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-250px,0,0)}}@keyframes svelte-1cx3779-trans2{0%{transform:translate3d(-160px,0,0)}to{transform:translate3d(53px,0,0)}}@keyframes svelte-1cx3779-trans3{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-220px,0,0)}}span.svelte-1jnfmql.svelte-1jnfmql{width:var(--size);height:calc(var(--size) / 4);position:relative;display:block}div.svelte-1jnfmql.svelte-1jnfmql{width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translate(-50%) rotate(45deg) scale(0);animation:svelte-1jnfmql-diamonds var(--duration) linear infinite}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(1){animation-delay:calc(var(--duration) * 2 / 3 * -1)}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(2){animation-delay:calc(var(--duration) * 2 / 3 * -2)}div.svelte-1jnfmql.svelte-1jnfmql:nth-child(3){animation-delay:calc(var(--duration) * 2 / 3 * -3)}.pause-animation.svelte-1jnfmql div.svelte-1jnfmql{animation-play-state:paused}@keyframes svelte-1jnfmql-diamonds{50%{left:50%;transform:translate(-50%) rotate(45deg) scale(1)}to{left:100%;transform:translate(-50%) rotate(45deg) scale(0)}}div.svelte-db2m9w{position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0 0 0 2px var(--color);border-radius:50%}div.svelte-db2m9w:before,div.svelte-db2m9w:after{position:absolute;content:"";background-color:var(--color)}div.svelte-db2m9w:after{width:calc(var(--size) / 2.4);height:2px;top:calc(var(--size) / 2);left:calc(var(--size) / 2);transform-origin:1px 1px;animation:svelte-db2m9w-rotate calc(var(--duration) / 4) linear infinite}div.svelte-db2m9w:before{width:calc(var(--size) / 3);height:2px;top:calc((var(--size) / 2));left:calc((var(--size) / 2));transform-origin:1px 1px;animation:svelte-db2m9w-rotate var(--duration) linear infinite}.pause-animation.svelte-db2m9w,.pause-animation.svelte-db2m9w:before,.pause-animation.svelte-db2m9w:after{animation-play-state:paused}@keyframes svelte-db2m9w-rotate{to{transform:rotate(360deg)}}.wrapper.svelte-1vzsw15{position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden}.bar.svelte-1vzsw15{position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0);background-color:var(--color);animation:svelte-1vzsw15-motion var(--duration) ease-in-out infinite}.pause-animation.svelte-1vzsw15{animation-play-state:paused}@keyframes svelte-1vzsw15-motion{25%{transform:skewY(25deg)}50%{height:100%;margin-top:0}75%{transform:skewY(-25deg)}}.wrapper.svelte-bv9t2p{display:inherit;position:relative;width:var(--size);height:var(--size)}.circle.svelte-bv9t2p{position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0;left:0;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.165,.84,.44,1),cubic-bezier(.3,.61,.355,1);animation-direction:normal,normal;animation-fill-mode:none,none;animation-play-state:running,running;animation-name:svelte-bv9t2p-puff-1,svelte-bv9t2p-puff-2;box-sizing:border-box}.pause-animation.svelte-bv9t2p{animation-play-state:paused}@keyframes svelte-bv9t2p-puff-1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes svelte-bv9t2p-puff-2{0%{opacity:1}to{opacity:0}}.wrapper.svelte-f6hkgc{width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;animation:svelte-f6hkgc-bump var(--duration) ease-in infinite alternate}.wrapper.svelte-f6hkgc:after{content:"";box-sizing:border-box;left:50%;top:100%;transform:translate(-50%);position:absolute;border:var(--size) solid transparent;border-top-color:var(--color)}.pause-animation.svelte-f6hkgc{animation-play-state:paused}@keyframes svelte-f6hkgc-bump{0%{transform:translate(-50%,5px)}to{transform:translate(-50%,-5px)}}.wrapper.svelte-1ju64u{width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;animation:svelte-1ju64u-bump var(--duration) ease-in infinite alternate}.wrapper.svelte-1ju64u:after{content:"";box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color)}.pause-animation.svelte-1ju64u{animation-play-state:paused}@keyframes svelte-1ju64u-bump{0%{transform:translate(-50%,5px)}to{transform:translate(-50%,-5px)}}p.svelte-1veany6{word-break:break-all}.grid-container.svelte-kpde8f{display:grid;grid-template-columns:1fr 1fr 1fr;width:auto;padding:10px;gap:10px} diff --git a/site_dist/docs/.nojekyll b/site_dist/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/site_dist/docs/README.md b/site_dist/docs/README.md new file mode 100644 index 0000000..42833e8 --- /dev/null +++ b/site_dist/docs/README.md @@ -0,0 +1,267 @@ +# Stellar Snap +adds stellar to metamask, by creating a non-custodial wallet built directly into metamask + +## Standard Useage + +### connecting + +calling this method will connect to metamask and automatically install the snap if it isn't already installed. +As well as generate the users wallet. +Calling this method or any subsequent methods does not requiring installing anything to a webpage, provided the the user +has metamask (flask) installed. + +```javascript +const result = await ethereum.request({ + method: 'wallet_requestSnaps', + params: { + [`npm:stellar-snap`]: {} + }, + }); +``` +### calling methods + +example method call +```javascript + const result = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {`npm:stellar-snap`, request:{ + method: `${methodName}`, + params:{ + paramName: `${paramValue}` + } + }} + }) +``` + +### specifying network +by default all methods are treated as mainnet, but any method can be issued to the testnet +by using the testnet param. + +example: +```javascript + const result = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + testnet: true + } + }} + }) +``` + +### current Methods + +#### + +#### 'getAddress' +returns the accounts address as a string +```javascript + const address = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getAddress`, + }} + }) +``` + +#### 'getAccountInfo' +grabs infomation related to the account +requires account to be funded +```typescript + const info = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getAccountInfo`, + params:{ + testnet?: true | false + } + }} + }) +``` + +#### 'getBalance' +gets the XLM balance of a wallet, returns 0 in unfunded wallets + +```typescript + const balance = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + testnet?: true | false + } + }} + }) +``` + +### 'transfer' +this method is used to transfer xlm and requires a funded account. +after being called the wallet will generate a transaction, then prompt a user to accept +if the user accepts the transaction it will be signed and broadcast to the network. +will return transaction infomation. And send a notification stating whether the transaction was +successful. +```typescript +const transactionInfomation = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, request:{ + method: `getBalance`, + params:{ + to: 'stellarAddress' //string + amount: '1000.45' //string represention of amount xlm to send + testnet?: true | false + } + }} + }) + +``` + +### 'fund' +this method funds the users wallet on the testnet +```javascript +const success = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:`npm:stellar-snap`, + request:{ + method: 'fund' + } + } + }) +``` +### 'signTransaction' +This method signs an Arbitary Transaction +```javascript + async function signTransaction(){ + const transaction = new StellarSdk.TransactionBuilder(account, { fee, networkPassphrase: "Test SDF Network ; September 2015" }); + // Add a payment operation to the transaction + console.log("transaction builder initilazed"); + await transaction.addOperation(StellarSdk.Operation.payment({ + destination: receiverPublicKey, + // The term native asset refers to lumens + asset: StellarSdk.Asset.native(), + // Specify 350.1234567 lumens. Lumens are divisible to seven digits past + // the decimal. They are represented in JS Stellar SDK in string format + // to avoid errors from the use of the JavaScript Number data structure. + amount: '350.1234567', + })); + console.log("operations added") + // Make this transaction valid for the next 30 seconds only + await transaction.setTimeout(30); + console.log("timeout set"); + // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html) + // .addMemo(StellarSdk.Memo.text('Hello world!')) + const endTransaction = await transaction.build(); + const xdrTransaction = endTransaction.toXDR(); + console.log(xdrTransaction); + const response = await ethereum.request({ + method: 'wallet_invokeSnap', + params:{snapId:snapId, request:{ + method: 'signTransaction', + params:{ + transaction: xdrTransaction, + testnet: testnet + } + }} + }) + console.log(response); + } +``` +### 'Soroban' +The Wallet also supports sorroban, To sign a SorobanCall +futurenet must be set to true on the params object. +```javascript + async function callContract() { + console.log("here in callContract"); + const sourcePublicKey = await ethereum.request({ + method: 'wallet_invokeSnap', + params: {snapId:snapId, request:{ + method: 'getAddress', + }} + }) + const server = new SorobanClient.Server('https://rpc-futurenet.stellar.org'); + + console.log("getting account") + const account = await server.getAccount(sourcePublicKey); + console.log("account is: ") + console.log(account); + + console.log(SorobanClient); + + const contract = new SorobanClient.Contract("CCNLUNUY66TU4MB6JK4Y4EHVQTAO6KDWXDUSASQD2BBURMQT22H2CQU7") + console.log(contract) + const arg = SorobanClient.nativeToScVal("world") + console.log("arg is: ") + console.log(arg) + let call_operation = contract.call('hello', arg); + console.log(call_operation) + + let transaction = new SorobanClient.TransactionBuilder(account, { fee: "150", networkPassphrase: SorobanClient.Networks.FUTURENET }) + .addOperation(call_operation) // <- funds and creates destinationA + .setTimeout(30) + .build(); + + console.log(transaction) + + + const preparedTransaction = await server.prepareTransaction(transaction, SorobanClient.Networks.FUTURENET); + console.log("prepairedTxn: "); + console.log(preparedTransaction); + const tx_XDR = preparedTransaction.toXDR(); + const signedXDR = await ethereum.request( + {method: 'wallet_invokeSnap', + params: { + snapId:snapId, + request:{ + method: 'signTransaction', + params:{ + transaction: tx_XDR, + futurenet: true + } + } + } + } + ) + console.log(signedXDR) + try{ + + const transactionResult = await server.sendTransaction(signedXDR); + console.log(JSON.stringify(transactionResult, null, 2)); + console.log('\nSuccess! View the transaction at: '); + console.log(transactionResult) + } catch (e) { + console.log('An error has occured:'); + console.log(e); + } +} + +``` +## building from Source + +```shell +foo@bar:~$ yarn +... + +foo@bar:~$ npx mm-snap build + +... +Build success: 'src\index.ts' bundled as 'dist\bundle.js'! +Eval Success: evaluated 'dist\bundle.js' in SES! + +foo@bar:npx mm-snap serve + +Starting server... +Server listening on: http://localhost:8080 +``` +and just like that you should be good to go. + +## Key Generation and Storeage +keys are generated on the fly, anytime a method is invoked. +This works by requesting private entropy from the metamask wallet inside +of the snaps secure execution enviroment, and using that entropy to generate +a users keys. This entropy is static, and based on the users ethereum account. +This means that we at no point store keys, and the fissile material is handled +by metamask. + +## Account Recovery +Because keys are handled in this way, when a user recovers their metamask account, they will also recover their stellar +account, which means that there isn't another mnemonic to save. \ No newline at end of file diff --git a/site_dist/docs/index.html b/site_dist/docs/index.html new file mode 100644 index 0000000..04dd4a7 --- /dev/null +++ b/site_dist/docs/index.html @@ -0,0 +1,22 @@ + + + + + Document + + + + + + +
+ + + + + diff --git a/site_dist/index.html b/site_dist/index.html index 2f2cbcb..5188d3b 100644 --- a/site_dist/index.html +++ b/site_dist/index.html @@ -13,8 +13,8 @@ var Buffer = buffer.Buffer Metamask Snap - - + +