var headContent = "<!-- FORM: HEAD SECTION --><head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <meta name=\"referrer\" content=\"no-referrer-when-downgrade\">\n    <title><\/title>\n                                        <link href=\"https:\/\/publicartfund.tfaforms.net\/dist\/form-builder\/5.0.0\/wforms-layout.css?v=1765179308\" rel=\"stylesheet\" type=\"text\/css\">\n                                                <link href=\"https:\/\/publicartfund.tfaforms.net\/dist\/form-builder\/5.0.0\/wforms-jsonly.css?v=1765179308\" rel=\"stylesheet\" type=\"text\/css\">\n                                                <link href=\"https:\/\/publicartfund.tfaforms.net\/uploads\/themes\/theme-22.css?v=1765179308\" rel=\"stylesheet\" type=\"text\/css\">\n                                                        <script src=\"https:\/\/publicartfund.tfaforms.net\/js\/FA__DOMContentLoadedEventDispatcher.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/wForms\/3.11\/js\/wforms.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/wForms\/3.11\/js\/localization-en_US.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/wForms\/3.11\/js\/wforms_prefill.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/dist\/jquery\/jquery.0416573c648d279fd758.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/js\/typeahead\/v1.2.0\/typeahead.bundle.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/dist\/analytics\/data-collector.e86d94bd97a6d88cf5db.js?v=1765179308\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/publicartfund.tfaforms.net\/api_v2\/sst\/quick-publish?v=1765179308\" type=\"text\/javascript\"><\/script>\n                            \n    <\/head>";
var bodyContent = "<!-- FORM: BODY SECTION --><body class=\"default wFormWebPage\">\n\n    \n\n<div id=\"tfaContent\">\n\n            <div class=\"wFormContainer\">\n    <div class=\"wFormHeader\"><\/div>\n\n    \n    <style type=\"text\/css\">\n                #tfa_1,\n                *[id^=\"tfa_1[\"] {\n                    width: 150px !important;\n                }\n                #tfa_1-D,\n                *[id^=\"tfa_1[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_1-L,\n                label[id^=\"tfa_1[\"] {\n                    width: 258px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_319,\n                *[id^=\"tfa_319[\"] {\n                    width: 618px !important;\n                }\n                #tfa_319-D,\n                *[id^=\"tfa_319[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_10,\n                *[id^=\"tfa_10[\"] {\n                    width: 655px !important;\n                }\n                #tfa_10-D,\n                *[id^=\"tfa_10[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_10-L,\n                label[id^=\"tfa_10[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_12,\n                *[id^=\"tfa_12[\"] {\n                    width: 655px !important;\n                }\n                #tfa_12-D,\n                *[id^=\"tfa_12[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_12-L,\n                label[id^=\"tfa_12[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_318,\n                *[id^=\"tfa_318[\"] {\n                    width: 638px !important;\n                }\n                #tfa_318-D,\n                *[id^=\"tfa_318[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_318-L,\n                label[id^=\"tfa_318[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_252,\n                *[id^=\"tfa_252[\"] {\n                    width: 638px !important;\n                }\n                #tfa_252-D,\n                *[id^=\"tfa_252[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_252-L,\n                label[id^=\"tfa_252[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_254,\n                *[id^=\"tfa_254[\"] {\n                    width: 635px !important;\n                }\n                #tfa_254-D,\n                *[id^=\"tfa_254[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_254-L,\n                label[id^=\"tfa_254[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_344,\n                *[id^=\"tfa_344[\"] {\n                    width: 655px !important;\n                }\n                #tfa_344-D,\n                *[id^=\"tfa_344[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_344-L,\n                label[id^=\"tfa_344[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_346,\n                *[id^=\"tfa_346[\"] {\n                    width: 638px !important;\n                }\n                #tfa_346-D,\n                *[id^=\"tfa_346[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_346-L,\n                label[id^=\"tfa_346[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_313,\n                *[id^=\"tfa_313[\"] {\n                    width: 635px !important;\n                }\n                #tfa_313-D,\n                *[id^=\"tfa_313[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_313-L,\n                label[id^=\"tfa_313[\"] {\n                    width: 135px !important;\n                    min-width: 0px;\n                }\n            \n                #tfa_316,\n                *[id^=\"tfa_316[\"] {\n                    width: 217px !important;\n                }\n                #tfa_316-D,\n                *[id^=\"tfa_316[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_320,\n                *[id^=\"tfa_320[\"] {\n                    width: 77px !important;\n                }\n                #tfa_320-D,\n                *[id^=\"tfa_320[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_323,\n                *[id^=\"tfa_323[\"] {\n                    width: 77px !important;\n                }\n                #tfa_323-D,\n                *[id^=\"tfa_323[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_325,\n                *[id^=\"tfa_325[\"] {\n                    width: 77px !important;\n                }\n                #tfa_325-D,\n                *[id^=\"tfa_325[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            <\/style><div class=\"\"><div class=\"wForm\" id=\"30-WRPR\" data-language=\"en_US\" dir=\"ltr\">\n<div class=\"codesection\" id=\"code-30\"><style>\nspan.twitter-typeahead {\n    max-width: 100%;\n}\n<\/style>\n\n\n<noscript><iframe src=\"https:\/\/www.googletagmanager.com\/ns.html?id=GTM-NLC4NRZ\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"><\/iframe><\/noscript>\n\n\n<script>\nwindow.dataLayer = window.dataLayer || [];\ndataLayer.push({\nevent: \"donation\",\namount: amountCalculated\n});\n<\/script><\/div>\n<h3 class=\"wFormTitle\" data-testid=\"form-title\" id=\"30-T\">Year End Appeal<\/h3>\n<form method=\"post\" action=\"https:\/\/publicartfund.tfaforms.net\/api_v2\/workflow\/processor\" class=\"hintsBelow labelsAbove\" id=\"30\">\n<fieldset id=\"tfa_362\" class=\"section wf-acl-hidden\">\n<legend id=\"tfa_362-L\">HIDDEN INFORMATION<\/legend>\n<div class=\"oneField field-container-D    \" id=\"tfa_363-D\">\n<label id=\"tfa_363-L\" class=\"label preField \" for=\"tfa_363\">Campaign Name<\/label><br><div class=\"inputWrapper\"><input type=\"text\" id=\"tfa_363\" name=\"tfa_363\" value=\"Individual Donors:\" default=\"Individual Donors:\" title=\"Campaign Name\" class=\"\"><\/div>\n<\/div>\n<\/fieldset>\n<fieldset id=\"tfa_8\" class=\"section\">\n<legend id=\"tfa_8-L\"><b>Gift Amount<\/b><\/legend>\n<div class=\"oneField field-container-D    \" id=\"tfa_351-D\" role=\"radiogroup\" aria-labelledby=\"tfa_351-L\" data-tfa-labelledby=\"-L tfa_351-L\">\n<label id=\"tfa_351-L\" class=\"label preField reqMark\" data-tfa-check-label-for=\"tfa_351\">How much would you like to donate?<\/label><br><div class=\"inputWrapper\"><span id=\"tfa_351\" class=\"choices horizontal required\"><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_354\" class=\"calc-AmountPredefined calcval-50\" id=\"tfa_354\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_354-L\" data-tfa-labelledby=\"tfa_351-L tfa_354-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_354-L\" for=\"tfa_354\"><span class=\"input-radio-faux\"><\/span>$50<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_355\" class=\"calc-AmountPredefined calcval-100\" id=\"tfa_355\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_355-L\" data-tfa-labelledby=\"tfa_351-L tfa_355-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_355-L\" for=\"tfa_355\"><span class=\"input-radio-faux\"><\/span>$100<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_365\" class=\"calc-AmountPredefined calcval-250\" id=\"tfa_365\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_365-L\" data-tfa-labelledby=\"tfa_351-L tfa_365-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_365-L\" for=\"tfa_365\"><span class=\"input-radio-faux\"><\/span>$250<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_366\" class=\"calc-AmountPredefined calcval-500\" id=\"tfa_366\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_366-L\" data-tfa-labelledby=\"tfa_351-L tfa_366-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_366-L\" for=\"tfa_366\"><span class=\"input-radio-faux\"><\/span>$500<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_367\" class=\"calc-AmountPredefined calcval-1000\" id=\"tfa_367\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_367-L\" data-tfa-labelledby=\"tfa_351-L tfa_367-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_367-L\" for=\"tfa_367\"><span class=\"input-radio-faux\"><\/span>$1,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_368\" class=\"calc-AmountPredefined calcval-2500\" id=\"tfa_368\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_368-L\" data-tfa-labelledby=\"tfa_351-L tfa_368-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_368-L\" for=\"tfa_368\"><span class=\"input-radio-faux\"><\/span>$2,500<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_369\" class=\"calc-AmountPredefined calcval-5000\" id=\"tfa_369\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_369-L\" data-tfa-labelledby=\"tfa_351-L tfa_369-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_369-L\" for=\"tfa_369\"><span class=\"input-radio-faux\"><\/span>$5,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_372\" class=\"calc-AmountPredefined calcval-10000\" id=\"tfa_372\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_372-L\" data-tfa-labelledby=\"tfa_351-L tfa_372-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_372-L\" for=\"tfa_372\"><span class=\"input-radio-faux\"><\/span>$10,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_373\" class=\"calc-AmountPredefined calcval-15000\" id=\"tfa_373\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_373-L\" data-tfa-labelledby=\"tfa_351-L tfa_373-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_373-L\" for=\"tfa_373\"><span class=\"input-radio-faux\"><\/span>$15,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_374\" class=\"calc-AmountPredefined calcval-20000\" id=\"tfa_374\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_374-L\" data-tfa-labelledby=\"tfa_351-L tfa_374-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_374-L\" for=\"tfa_374\"><span class=\"input-radio-faux\"><\/span>$20,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_375\" class=\"calc-AmountPredefined calcval-25000\" id=\"tfa_375\" name=\"tfa_351\" aria-required=\"true\" aria-labelledby=\"tfa_375-L\" data-tfa-labelledby=\"tfa_351-L tfa_375-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_375-L\" for=\"tfa_375\"><span class=\"input-radio-faux\"><\/span>$25,000<\/label><\/span><span class=\"oneChoice\"><input type=\"radio\" value=\"tfa_370\" class=\"calc-AmountPredefined\" id=\"tfa_370\" name=\"tfa_351\" aria-required=\"true\" data-conditionals=\"#tfa_1\" aria-labelledby=\"tfa_370-L\" data-tfa-labelledby=\"tfa_351-L tfa_370-L\" data-tfa-parent-id=\"tfa_351\"><label class=\"label postField\" id=\"tfa_370-L\" for=\"tfa_370\"><span class=\"input-radio-faux\"><\/span>Other amount<\/label><\/span><\/span><\/div>\n<\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_1-D\"><div class=\"inputWrapper\">\n<div class=\"delimiter delimiterBefore\" id=\"tfa_1-DB\">$<\/div>\n<input type=\"text\" id=\"tfa_1\" name=\"tfa_1\" value=\"\" placeholder=\"Amount\" min=\"1\" max=\"1000000\" data-condition=\"`#tfa_370`\" title=\"How much would you like to donate?\" class=\"validate-float calc-AmountAdhoc\">\n<\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_4-D\" role=\"group\" aria-labelledby=\"tfa_4-L\" data-tfa-labelledby=\"-L tfa_4-L\"><div class=\"inputWrapper\"><span id=\"tfa_4\" class=\"choices vertical \"><span class=\"oneChoice\"><input type=\"checkbox\" value=\"tfa_7\" class=\"\" id=\"tfa_7\" name=\"tfa_7\" aria-labelledby=\"tfa_7-L\" data-tfa-labelledby=\"tfa_4-L tfa_7-L\" data-tfa-parent-id=\"tfa_4\"><label class=\"label postField\" id=\"tfa_7-L\" for=\"tfa_7\"><span class=\"input-checkbox-faux\"><\/span>I would like to remain anonymous<\/label><\/span><\/span><\/div><\/div>\n<div id=\"tfa_360\" class=\"section inline group\">\n<div class=\"oneField field-container-D    \" id=\"tfa_319-D\">\n<label id=\"tfa_319-L\" class=\"label preField reqMark\" for=\"tfa_319\">What name(s) would you like listed in your acknowledgement?<\/label><br><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_319\" name=\"tfa_319\" value=\"\" maxlength=\"255\" title=\"What name(s) would you like listed in your acknowledgement?\" class=\"required\"><\/div>\n<\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_356-D\" role=\"group\" aria-labelledby=\"tfa_356-L\" data-tfa-labelledby=\"-L tfa_356-L\"><div class=\"inputWrapper\"><span id=\"tfa_356\" class=\"choices vertical \"><span class=\"oneChoice\"><input type=\"checkbox\" value=\"tfa_361\" class=\"\" checked data-default-value=\"true\" id=\"tfa_361\" name=\"tfa_361\" aria-labelledby=\"tfa_361-L\" data-tfa-labelledby=\"tfa_356-L tfa_361-L\" data-tfa-parent-id=\"tfa_356\"><label class=\"label postField\" id=\"tfa_361-L\" for=\"tfa_361\"><span class=\"input-checkbox-faux\"><\/span>Yes, sign me up for emails about Public Art Fund news and events<\/label><\/span><\/span><\/div><\/div>\n<\/div>\n<\/fieldset>\n<fieldset id=\"tfa_9\" class=\"section\">\n<legend id=\"tfa_9-L\"><b>Your Information<\/b><\/legend>\n<div id=\"tfa_331\" class=\"section inline group\">\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_10-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_10\" name=\"tfa_10\" value=\"\" placeholder=\"First name\" title=\"First name\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_12-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_12\" name=\"tfa_12\" value=\"\" placeholder=\"Last name\" title=\"Last name\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_318-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_318\" name=\"tfa_318\" value=\"\" placeholder=\"Email\" title=\"Email\" class=\"validate-email required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_252-D\"><div class=\"inputWrapper\">\n<input aria-required=\"true\" type=\"text\" id=\"tfa_252\" name=\"tfa_252\" value=\"\" placeholder=\"Street address\" title=\"Street address\" data-dataset-allow-free-responses=\"1\" data-dataset-clear-cache=\"\" autocomplete=\"no-address-autocomplete\" data-dataset-timestamp=\"1728058632\" data-dataset-id=\"b62cf506-df4d-4220-8821-9662b105bb6b\" data-dataset-map=\"b=tfa_254,c=tfa_313,d=tfa_344,e=tfa_346,\" data-dataset-type=\"address-autocomplete\" data-dataset-url=\"https:\/\/publicartfund.tfaforms.net\/api_v2\/datasets\" class=\"required wfAutosuggest\"><i class=\"fa fa-spinner fa-pulse fa-fw tt-spinner\"><\/i><i class=\"fa fa-search tt-search\" aria-hidden=\"true\"><\/i><i class=\"fa fa-times-circle tt-clear no-input\" tabindex=\"0\" aria-label=\"Clear field\" role=\"button\"><\/i>\n<\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_254-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_254\" name=\"tfa_254\" value=\"\" placeholder=\"City\" title=\"City\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_344-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_344\" name=\"tfa_344\" value=\"\" placeholder=\"State or province\" title=\"State\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_346-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_346\" name=\"tfa_346\" value=\"\" placeholder=\"Country\" title=\"Country\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_313-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_313\" name=\"tfa_313\" value=\"\" placeholder=\"Postal code\" maxlength=\"5\" title=\"Postal code\" class=\"validate-integer required\"><\/div><\/div>\n<\/div>\n<\/fieldset>\n<fieldset id=\"tfa_315\" class=\"section\">\n<legend id=\"tfa_315-L\"><b>Credit Card Information<\/b><\/legend>\n<div id=\"tfa_371\" class=\"section inline group\">\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_316-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_316\" name=\"tfa_316\" value=\"\" autocomplete=\"off\" placeholder=\"Credit or debit card number\" title=\"Credit or debit card number\" class=\"required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_320-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_320\" name=\"tfa_320\" value=\"\" placeholder=\"Month\" maxlength=\"2\" title=\"Card expiry month\" class=\"validate-integer required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_323-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_323\" name=\"tfa_323\" value=\"\" placeholder=\"Year\" maxlength=\"4\" min=\"2024\" max=\"2100\" title=\"Card expiry year\" class=\"validate-integer required\"><\/div><\/div>\n<div class=\"oneField field-container-D  labelsRemoved  \" id=\"tfa_325-D\"><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_325\" name=\"tfa_325\" value=\"\" autocomplete=\"off\" placeholder=\"Code\" maxlength=\"4\" title=\"Security code\" class=\"validate-integer required\"><\/div><\/div>\n<\/div>\n<\/fieldset>\n<input type=\"hidden\" id=\"STRIPE_CUSTOMER_60\" name=\"STRIPE_CUSTOMER_60\" value=\"\" class=\"\"><input type=\"hidden\" id=\"STRIPE_PAYMENT_METHOD_60\" name=\"STRIPE_PAYMENT_METHOD_60\" value=\"\" class=\"\"><input type=\"hidden\" id=\"STRIPE_PAYMENT_INTENT_60\" name=\"STRIPE_PAYMENT_INTENT_60\" value=\"\" class=\"\"><input type=\"hidden\" id=\"STRIPE_SETUP_INTENT_60\" name=\"STRIPE_SETUP_INTENT_60\" value=\"\" class=\"\"><input type=\"hidden\" id=\"STRIPE_SUBSCR_60\" name=\"STRIPE_SUBSCR_60\" value=\"\" class=\"\"><input type=\"hidden\" id=\"STRIPE_CHARGE_60\" name=\"STRIPE_CHARGE_60\" value=\"\" class=\"\"><div class=\"actions\" id=\"30-A\" data-contentid=\"submit_button\"><input type=\"submit\" data-label=\"Donate\" class=\"primaryAction\" id=\"submit_button\" value=\"Donate\"><\/div>\n<div style=\"clear:both\"><\/div>\n<input type=\"hidden\" value=\"543-f146e620975d398784274ee107a05863\" name=\"tfa_dbCounters\" id=\"tfa_dbCounters\" autocomplete=\"off\"><input type=\"hidden\" value=\"30\" name=\"tfa_dbFormId\" id=\"tfa_dbFormId\"><input type=\"hidden\" value=\"\" name=\"tfa_dbResponseId\" id=\"tfa_dbResponseId\"><input type=\"hidden\" value=\"596b3607ad137148e2d937b3a1c6a66d\" name=\"tfa_dbControl\" id=\"tfa_dbControl\"><input type=\"hidden\" value=\"\" name=\"tfa_dbWorkflowSessionUuid\" id=\"tfa_dbWorkflowSessionUuid\"><input type=\"hidden\" value=\"0\" name=\"tfa_dbDataflowId\" id=\"tfa_dbDataflowId\"><input type=\"hidden\" value=\"1765179308\" name=\"tfa_dbTimeStarted\" id=\"tfa_dbTimeStarted\" autocomplete=\"off\"><input type=\"hidden\" value=\"12\" name=\"tfa_dbVersionId\" id=\"tfa_dbVersionId\"><input type=\"hidden\" value=\"false\" name=\"startWorkflow\" id=\"startWorkflow\"><input type=\"hidden\" value=\"\" name=\"tfa_switchedoff\" id=\"tfa_switchedoff\">\n<\/form>\n<\/div><\/div><div class=\"wFormFooter\"><p class=\"supportInfo\"><br><\/p><\/div>\n\n<\/div>\n\n\n            <script id=\"analytics-collector-script\" type=\"text\/javascript\" src=\"https:\/\/publicartfund.tfaforms.net\/dist\/analytics\/data-collector.e86d94bd97a6d88cf5db.js\" data-customer-id=\"219473\" data-endpoint=\"https:\/\/analytics.formassembly.com\/v1\/traces\"><\/script>\n\n    \n<script type=\"text\/javascript\" data-for=\"FA__DOMContentLoadedEventDispatch\" src=\"https:\/\/publicartfund.tfaforms.net\/js\/FA__DOMContentLoadedEventDispatcher.js\" defer><\/script>\n\n\n<script type=\"text\/javascript\">\n    document.addEventListener(\"FA__DOMContentLoaded\", function(){\n        const FORM_TIME_START = Math.floor((new Date).getTime()\/1000);\n        let formElement = document.getElementById(\"tfa_0\");\n        if (null === formElement) {\n            formElement = document.getElementById(\"0\");\n        }\n        let appendJsTimerElement = function(){\n            let formTimeDiff = Math.floor((new Date).getTime()\/1000) - FORM_TIME_START;\n            let cumulatedTimeElement = document.getElementById(\"tfa_dbCumulatedTime\");\n            if (null !== cumulatedTimeElement) {\n                let cumulatedTime = parseInt(cumulatedTimeElement.value);\n                if (null !== cumulatedTime && cumulatedTime > 0) {\n                    formTimeDiff += cumulatedTime;\n                }\n            }\n            let jsTimeInput = document.createElement(\"input\");\n            jsTimeInput.setAttribute(\"type\", \"hidden\");\n            jsTimeInput.setAttribute(\"value\", formTimeDiff.toString());\n            jsTimeInput.setAttribute(\"name\", \"tfa_dbElapsedJsTime\");\n            jsTimeInput.setAttribute(\"id\", \"tfa_dbElapsedJsTime\");\n            jsTimeInput.setAttribute(\"autocomplete\", \"off\");\n            if (null !== formElement) {\n                formElement.appendChild(jsTimeInput);\n            }\n        };\n        if (null !== formElement) {\n            if(formElement.addEventListener){\n                formElement.addEventListener('submit', appendJsTimerElement, false);\n            } else if(formElement.attachEvent){\n                formElement.attachEvent('onsubmit', appendJsTimerElement);\n            }\n        }\n    });\n<\/script>\n\n<script type=\"text\/javascript\">\n    if(wFORMS.behaviors.prefill) wFORMS.behaviors.prefill.skip = true;\n<\/script>\n\n\n    <script>\n        var FAoldJQ;\n        if (typeof $ != 'undefined' && $.noConflict) FAoldJQ = $.noConflict(true);\n    <\/script>\n    <script src=\"https:\/\/publicartfund.tfaforms.net\/dist\/jquery\/jquery.0416573c648d279fd758.js\"><\/script>\n    <script src=\"https:\/\/publicartfund.tfaforms.net\/js\/typeahead\/v1.2.0\/typeahead.bundle.js\"><\/script>\n    <script>\n        var FA$ = $.noConflict(true);\n        if (FAoldJQ) $ = FAoldJQ;\n    <\/script>\n\n    <link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.4.0\/css\/font-awesome.min.css\" rel=\"stylesheet\" type=\"text\/css\">\n\n    <\/div>\n\n\n    \n\n\n\n<\/body>";
var resumeUrl = null;
var baseUrl = "https:\/\/publicartfund.tfaforms.net";

/**
 * Main entry point, called when the DOM is loaded.
 */
function loadFormAssemblyFormHeadAndBodyContents() {
    var targetElement = getTargetElement();
    var formBodyWrapper = createFormBodyWrapper();

    injectHeadContent();
    injectBodyContent(formBodyWrapper, targetElement);
    addResumeLink();

    document.addEventListener('FA__DOMContentLoaded', function () {
        executeBodyScripts(formBodyWrapper);
        
        // Set up FA$ for autosuggest behavior (jQuery in noConflict mode)
        if (typeof $ !== 'undefined' && $.noConflict) {
            window.FA$ = $.noConflict(true);
        }
        
        // Apply prefill behavior to enable URL parameter prefilling
        var forms = document.querySelectorAll('form');
        forms.forEach(function(form) {
            if (wFORMS && wFORMS.behaviors && wFORMS.behaviors.prefill) {
                wFORMS.behaviors.prefill.skip = false;
                wFORMS.behaviors.prefill.applyTo(form);
            }
        });
    });
}
window.addEventListener('DOMContentLoaded', loadFormAssemblyFormHeadAndBodyContents);

/**
 * Finds the target DOM element where the form should be injected.
 * @returns {HTMLElement|null} The target element or null if not found.
 */
function getTargetElement() {
    var quickPublishScript = document.querySelector('script[data-qp-target-id]');
    if (quickPublishScript) {
        var elementID = quickPublishScript.getAttribute('data-qp-target-id');
        return document.getElementById(elementID);
    }
    return null;
}

/**
 * Creates the main wrapper div for the form's body content.
 * @returns {HTMLDivElement}
 */
function createFormBodyWrapper() {
    var bodyWrapperDiv = document.createElement('div');
    bodyWrapperDiv.id = "FA__QP__BODYWRAPPERDIV";
    return bodyWrapperDiv;
}

/**
 * Injects the form's header content (styles, scripts) into the main document.
 */
function injectHeadContent() {
    var head = document.createElement('head');
    head.innerHTML = headContent;

    var headElements = Array.from(head.children);
    var scriptElements = headElements.filter(function(el) { return el.nodeName === 'SCRIPT'; });
    var otherElements = headElements.filter(function(el) { return el.nodeName !== 'SCRIPT'; });

    otherElements.forEach(function(el) { document.head.appendChild(el); });
    loadHeadScriptsSequentially(scriptElements);
}

/**
 * Loads header script tags sequentially to maintain order.
 * @param {HTMLScriptElement[]} scriptElements - An array of script elements to load.
 */
function loadHeadScriptsSequentially(scriptElements) {
    var script = scriptElements.shift();
    if (!script) {
        document.dispatchEvent(new Event('FA__DOMContentLoaded'));
        return;
    }

    var newScript = document.createElement('script');
    Array.from(script.attributes).forEach(function(attr) { newScript.setAttribute(attr.name, attr.value); });
    newScript.innerHTML = script.innerHTML;

    if (script.src) {
        newScript.onload = function() { loadHeadScriptsSequentially(scriptElements); };
        document.head.appendChild(newScript);
    } else {
        document.head.appendChild(newScript);
        loadHeadScriptsSequentially(scriptElements);
    }
}

/**
 * Injects the form's body content into the target element.
 * @param {HTMLDivElement} formBodyWrapper - The div that will contain the form.
 * @param {HTMLElement|null} targetElement - The element to inject the form into.
 */
function injectBodyContent(formBodyWrapper, targetElement) {
    var body = document.createElement('body');
    body.innerHTML = bodyContent;

    Array.from(body.children).forEach(function(el) { formBodyWrapper.appendChild(el); });

    if (targetElement) {
        targetElement.appendChild(formBodyWrapper);
    } else {
        document.body.appendChild(formBodyWrapper);
    }
}

/**
 * If a resume URL is provided, it finds the "Save and Resume" containers
 * and injects the resume link.
 */
function addResumeLink() {
    if (!resumeUrl) return;

    var oneFieldContainers = document.querySelectorAll('.wForm .saveAndResume > .oneField');
    oneFieldContainers.forEach(function (container) {
        var separator = document.createTextNode(' | ');

        var resumeLink = document.createElement('a');
        resumeLink.href = baseUrl + resumeUrl;
        resumeLink.innerHTML = 'Resume a previously saved form';
        
        resumeLink.addEventListener('click', function(event) {
            if (!confirm('Are you sure you want to resume a previous response? Any information you just entered on this page will be discarded.')) {
                event.preventDefault();
            }
        });

        container.appendChild(separator);
        container.appendChild(resumeLink);
    });
}

/**
 * Finds and re-executes script tags from the form's body.
 * @param {HTMLDivElement} formBodyWrapper - The wrapper containing the form.
 */
function executeBodyScripts(formBodyWrapper) {
    var scriptTags = formBodyWrapper.querySelectorAll('script');
    scriptTags.forEach(function (scriptTag) {
        // Skip jQuery, Typeahead, Kalendae, and Calendar scripts that are already loaded in the head
        if (scriptTag.src && (
            scriptTag.src.includes('jquery.js') || 
            scriptTag.src.includes('typeahead.bundle.js') ||
            scriptTag.src.includes('/js/kalendae/') ||
            scriptTag.src.includes('wforms_calendar.js')
        )) {
            return;
        }
        
        // Skip noConflict scripts that are meant for jQuery/Typeahead
        if (scriptTag.innerHTML && scriptTag.innerHTML.includes('noConflict')) {
            return;
        }
        
        var script = document.createElement('script');
        Array.from(scriptTag.attributes).forEach(function(attr) { script.setAttribute(attr.name, attr.value); });
        script.innerHTML = scriptTag.innerHTML;
        scriptTag.parentNode.replaceChild(script, scriptTag);
    });
}
